0

I'm new to OVS and I'm working on an OVS project, and i read a lot of documents about it but i didn't find anything that can make things clear to me about matching a packet and in userspace and datapath and if there is a match then what the ovs do ? Thank you.

1
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 13 '17 at 20:25
1

Things happens in kernel module(datapath) are very fast compared to userspace.

First packet hits the kernel module, at very first time there will be no cache. It will send the packet to userspace, then the packet is routed. In this process, the kernel module make hash cache of the header of packet.

So, the subsequent packet hits the kernel module, then OVS calculate the hash for the header of the subsequent packet and checks whether that hash already present or not. If it is there, it will route or send it to userspace. Check this video and PPT

OVS

Thanks!

0

Packets received into OVS hit the datapath module first. If there is an entry in the flow cache, corresponding action is applied on the packet. If there is no entry, an "upcall" happens and the packet is sent to the user space over netlink protocol via the dpif interface. Actually there are queues present to buffer upcalls to the userspace where the handling is done.

Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.