The rise of user space packet processing frameworks like DPDK and netmap makes low-level code more accessible to developers and researchers. Previously, driver code was hidden in the kernel and rarely modified, or even looked at, by developers working at higher layers. These barriers are gone nowadays, yet developers still treat user space drivers as black-boxes magically accelerating applications. We want to change this: every researcher building network applications should understand the intricacies of the underlying drivers, especially if they impact performance. We present ixy, a user space network driver designed for simplicity and educational purposes to show that fast packet IO is not black magic but careful engineering. Ixy focuses on the bare essentials of user space packet processing: a packet forwarder including the whole NIC driver uses less than 1000 lines of C code. This paper is partially written in tutorial style on the case study of our implementations of drivers for both the Intel 82599 family and for virtual VirtIO NICs. The former allows us to reason about driver and framework performance on a stripped-down implementation to assess individual optimizations in isolation. VirtIO support ensures that everyone can run it in a virtual machine. Our code is available as free and open source under the BSD license at this https URL
[1]
Laurent Mathy,et al.
Fast userspace packet processing
,
2015,
2015 ACM/IEEE Symposium on Architectures for Networking and Communications Systems (ANCS).
[2]
Daniel Raumer,et al.
MoonGen: A Scriptable High-Speed Packet Generator
,
2014,
Internet Measurement Conference.
[3]
G. Bertin.
XDP in practice: integrating XDP into our DDoS mitigation pipeline
,
2017
.
[4]
Stefano Giordano,et al.
Network Traffic Processing With PFQ
,
2016,
IEEE Journal on Selected Areas in Communications.
[5]
Luigi Rizzo,et al.
netmap: A Novel Framework for Fast Packet I/O
,
2012,
USENIX ATC.
[6]
Daniel Raumer,et al.
Comparison of frameworks for high-performance packet IO
,
2015,
2015 ACM/IEEE Symposium on Architectures for Networking and Communications Systems (ANCS).
[7]
Daniel Raumer,et al.
Throughput and Latency of Virtual Switching with Open vSwitch: A Quantitative Analysis
,
2018,
Journal of Network and Systems Management.
[8]
Martín Casado,et al.
The Design and Implementation of Open vSwitch
,
2015,
NSDI.
[9]
Michio Honda,et al.
StackMap: Low-Latency Networking with the OS Stack and Dedicated NICs
,
2016,
USENIX Annual Technical Conference.
[10]
EDDIE KOHLER,et al.
The click modular router
,
2000,
TOCS.