Performance Implications of Packet Filtering with Linux eBPF
Performance Implications of Packet Filtering with Linux eBPF
复制标题
使用 Linux eBPF 进行数据包过滤的性能影响
DOI:
10.1109/itc30.2018.00039
复制
发表时间:
2018
期刊:
影响因子:
--
通讯作者:
G. Carle
中科院分区:
文献类型:
--
作者:
D. Scholz;Daniel Raumer;Paul Emmerich;Alexander Kurtz;Krzysztof Lesiak;G. Carle
Firewall capabilities of operating systems are traditionally provided by inflexible filter routines or hooks in the kernel. These require privileged access to be configured and are not easily extensible for custom low-level actions. Since Linux 3.0, the Berkeley Packet Filter (BPF) allows user-written extensions in the kernel processing path. The successor, extended BPF (eBPF), improves flexibility and is realized via a virtual machine featuring both a just-in-time (JIT) compiler and an interpreter running in the kernel. It executes custom eBPF programs supplied by the user, effectively moving kernel functionality into user space. We present two case studies on the usage of Linux eBPF. First, we analyze the performance of the eXpress Data Path (XDP). XDP uses eBPF to process ingress traffic before the allocation of kernel data structures which comes along with performance benefits. In the second case study, eBPF is used to install application-specific packet filtering configurations acting on the socket level. Our case studies focus on performance aspects and discuss benefits and drawbacks.