Performance implications of packet filtering with linux eBPF

Dominik Scholz, Daniel Raumer, Paul Emmerich, Alexander Kurtz, Krzysztof Lesiak, Georg Carle

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

59 Scopus citations

Abstract

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.

Original languageEnglish
Title of host publicationProceedings of the 30th International Teletraffic Congress, ITC 2018
EditorsEitan Altman, Giuseppe Bianchi, Thomas Zinner
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages209-217
Number of pages9
ISBN (Electronic)9780988304550
DOIs
StatePublished - 15 Oct 2018
Event30th International Teletraffic Congress, ITC 2018 - Vienna, Austria
Duration: 4 Sep 20187 Sep 2018

Publication series

NameProceedings of the 30th International Teletraffic Congress, ITC 2018

Conference

Conference30th International Teletraffic Congress, ITC 2018
Country/TerritoryAustria
CityVienna
Period4/09/187/09/18

Keywords

  • EBPF
  • Linux
  • Performance Measurement
  • XDP

Fingerprint

Dive into the research topics of 'Performance implications of packet filtering with linux eBPF'. Together they form a unique fingerprint.

Cite this