Integration of BMv2 and eBPF/XDP for Dynamic Forwarding in 5G Transport Networks

  • Jefferson M. O. das Mercês IFPB / UFPB
  • José S. da S. Galvão IFPB / UFPB
  • Ruan D. Gomes IFPB / UFPB
  • Marcelo P. Sousa IFPB
  • Moacy Pereira da Silva IFPB
  • Waslon Terllizzie A. Lopes UFPB

Abstract


This paper analyzes the impact on end-to-end latency of 5G applications by integrating eBPF/XDP-based observability mechanisms with programmable switches in the transport network. This proposal uses eBPF to monitor the UPF and identify UE traffic encapsulated in GTP-U tunnels. An orchestrator processes events related to end-to-end delay variation per-flow and dynamically updates the tables of the switches, enabling real-time route switching according to network conditions. The results indicate that the proposed dynamic forwarding mechanism significantly reduces latency under degraded conditions, achieving up to 78% improvement depending on the duration of the degradation period.

References

Borda, S. T. and Ermont, J. (2022). An evaluation of software-based tsn traffic shapers using linux tc. In 2022 IEEE 18th International Conference on Factory Communication Systems (WFCS), pages 1–4.

da Silva, R. L., das Merces, J. M. O., Sousa, M. P., Araujo, A. S., Alencar, A., Meneses, T. F., Dias, M., and Santos, D. F. S. (2025). Redirecionamento dinâmico de tráfego em rede de transporte 5G definida por software. In Anais do XLIII Simpósio Brasileiro de Telecomunicações e Processamento de Sinais (SBrT 2025).

Dahlman, E., Parkvall, S., and Skold, J. (2020). 5G NR: The Next Generation Wireless Access Technology. Elsevier Science.

Domb, M., Cg, B., Suman, M., A., G., and Joshi, S. (2025). Securing 5G networks by mitigating cybersecurity risks for transformative applications. International Journal of Interactive Mobile Technologies (iJIM), 19:227–255.

Liatifis, A., Sarigiannidis, P., Argyriou, V., and Lagkas, T. (2023). Advancing SDN from openflow to P4: A survey. ACM Comput. Surv., 55(9).

Makhroute, E.-M., Elharti, M.-A., Brouillard, V., Savaria, Y., and Ould-Bachir, T. (2023). Implementing and evaluating a P4-based access gateway function on a tofino switch. In 2023 6th International Conference on Advanced Communication Technologies and Networking (CommNet), pages 1–7.

Nunziati, G., Fiandrino, C., Foschini, L., and Bellavista, P. (2025). Monitoring 5G core networks vulnerabilities with eBPF. IEEE Networking Letters, 7(3):220–223.

Paolucci, F., Scano, D., Cugini, F., Sgambelluri, A., Valcarenghi, L., Cavazzoni, C., Ferraris, G., and Castoldi, P. (2021). User plane function offloading in P4 switches for enhanced 5G mobile edge computing. In 2021 17th International Conference on the Design of Reliable Communication Networks (DRCN), pages 1–3.

Peterson, L. and Sunay, M. O. (2020). 5G Mobile Networks: A Systems Approach. Synthesis Lectures on Network Systems. Morgan & Claypool Publishers.

Puttlitz, C., Parizotto, R., and Schaeffer-Filho, A. (2024). P4netintel: End-to-end network telemetry with ebpf and xdp. In 2024 IEEE Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN), pages 1–6.

Rice, L. (2023). Learning eBPF: Programming the Linux Kernel for Enhanced Observability, Networking, and Security. O’Reilly Media, 1 edition.

Segura, D., Damsgaard, S. B., Kabaci, A., Mogensen, P., Khatib, E. J., and Barco, R. (2024). An empirical study of 5G, Wi-Fi 6, and multi-connectivity scalability in an indoor industrial scenario. IEEE Access, 12:74406–74416.

Tsareva, I., Scholz, D., and Gallenmüller, S. (2021). Taxonomy of the performance of P4 targets. Seminar IITM SS 21, network architectures and services, Technical University of Munich.

Vieira, M. A. M., Castanho, M. S., Pacífico, R. D. G., Santos, E. R. S., Júnior, E. P. M. C., and Vieira, L. F. M. (2020). Fast packet processing with ebpf and xdp: Concepts, code, challenges, and applications. ACM Comput. Surv., 53(1).

Ye, M., Han, B., Fang, X., Zou, X., Bao, X., Xie, X., Xiao, S., Lin, Y., and Chao, H. J. (2025). Dynamic path switching for traffic engineering in SD-WAN with eBPF. In 2025 IEEE 26th International Conference on High Performance Switching and Routing (HPSR), pages 1–7.
Published
2026-05-25
MERCÊS, Jefferson M. O. das; GALVÃO, José S. da S.; GOMES, Ruan D.; SOUSA, Marcelo P.; SILVA, Moacy Pereira da; LOPES, Waslon Terllizzie A.. Integration of BMv2 and eBPF/XDP for Dynamic Forwarding in 5G Transport Networks. In: WORKSHOP ON EXPERIMENTAL RESEARCH OF THE FUTURE INTERNET (WPEIF), 17. , 2026, Praia do Forte/BA. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2026 . p. 41-48. ISSN 2595-2692. DOI: https://doi.org/10.5753/wpeif.2026.23167.