The switch will need to support doing the encapsulation. Open vSwitch can do VXLAN, GRE, and a few other types of encapsulation, but last I checked, I don't think classic IP-in-IP was one of them. Are you willing/able to switch to another type (e.g., VXLAN) or modify Open vSwitch to support your encapsulation?
-- Murphy On Mar 31, 2014, at 10:54 AM, Ting Xie <tx...@nyu.edu> wrote: > Hi, > > I am working on a project where I need to simulate IP-in-IP encapsulation > using mininet and POX. The encapsulation part works, but it is very > inefficient and slow, since all packets get sent to the controller to get > encapsulated/decapsulated. Can you please guide me to a way where only the > first new packet is sent to the controller, after which a new rule is > installed in the switch to encapsulate/decapsulate the rest of the packets > belonging to the same flow? > > > Thanks, > Best > Ting