netmap
More info
- Creator
- Luigi Rizzo (Università di Pisa)
- Released
- 2011
- Type
- Packet I/O framework
- License
- BSD
A FreeBSD framework that lets programs read and write a network card's ring buffers directly, with line rate as the target.
Luigi Rizzo at the University of Pisa built netmap around 2011, and his USENIX ATC 2012 paper showed a single core could saturate a 10 Gbit/s link with minimum-size packets. The trick is to map the NIC's rings and packet buffers into the process's address space, so packets aren't copied and allocated on every hop through the stack.
Unlike DPDK, the driver stays in the kernel, and applications wait for traffic with plain poll() or kqueue. Netmap is part of the FreeBSD base kernel, is available as a Linux module, and comes with its own software switch, VALE, which bhyve among others can use. Firewalls such as ipfw have borrowed it for faster filtering.