GNS3 / ubridge

Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces.
GNU General Public License v3.0
115 stars 46 forks source link

Zero Copy networking #2

Open grossmj opened 9 years ago

grossmj commented 9 years ago

Performances could potentially be increased using "zero copy" networking features on Linux (PACKET_RX_RING or PACKET_TX_RING).

Some examples can be found there:

https://github.com/vieites4/rawsockets/blob/master/docs/snippets/packet_mmap.c http://codemonkeytips.blogspot.ca/2011/07/asynchronous-packet-socket-reading-with.html http://yusufonlinux.blogspot.ca/2010/11/data-link-access-and-zero-copy.html

grossmj commented 8 years ago

Implementation example: https://github.com/PhiloZhang/PacketMmap