Research on Efficient Packet Filter Technology Based on eBPF
The research on efficient packet filter technology based on eBPF aims to address the performance bottleneck of traditional kernel protocol stacks in high concurrency scenarios. This paper proposes an efficient network packet filtering scheme based on eBPF and XDP technologies. By mounting the eBPF program at the kernel driver layer, zero copy processing is achieved by bypassing the TCP/IP protocol stack, and combining hash table rule matching to reduce time complexity to O(1). The experiment shows that this scheme supports dynamic loading of filtering rules and can accurately achieve packet filtering in both single rule and multi rule scenarios, significantly improving processing efficiency compared to traditional tools such as Iptables. The technical core includes: using XDP hooks to directly arbitrate data packets at the network card driver layer, ensuring program security through eBPF validators, and using mapping systems to achieve efficient interaction between user mode and kernel mode. This technology can be applied to DDoS defense, sensitive port access control, and other scenarios.
Authors
- Han Wang (ORCID: https://orcid.org/0000-0002-6970-9806)
- Yakun Zhang (ORCID: https://orcid.org/0000-0002-9636-8576)
- Pengxiang Gao
Institutions
- China Academy of Engineering Physics (CN)
Publication Details
- Published
- 2025-08-08
- DOI
- https://doi.org/10.1109/iaeac65194.2025.11165810
- Primary Topic
- Advanced Computing and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00