arXiv:2610.02296cs.NIOct 2026

Manuscript Offprint

arXiv:2610.02296

Line-Rate GTP-U Admission Control at the Edge of a Cloud-Native 5G Core: An XDP-Based Design for Kubernetes-Hosted User Plane Functions

Simhadri Podala Narasimha

Simhadri Podala Narasimha

Independent Researcher

Littleton, Colorado, USA

podalas@gmail.com

Abstract—The User Plane Function (UPF) of a 5G Standalone core terminates every GPRS Tunnelling Protocol user-plane (GTP-U) packet arriving from the radio access network, which makes its N3 interface both the busiest and the most exposed point of the mobile data path. As operators migrate the core onto Kubernetes and public cloud, the UPF increasingly shares a general-purpose Linux kernel with other workloads, and kernel-bypass frameworks such as DPDK become harder to operate. This paper presents GTP-Guard, a design for line-rate GTP-U admission control built on the eXpress Data Path (XDP) hook of the Linux kernel. GTP-Guard drops illegitimate tunnel traffic in the network driver, before socket-buffer allocation, using six ordered stages: peer allow-listing, GTP-U header validation, Tunnel Endpoint Identifier (TEID) admission against session state derived from the Packet Forwarding Control Protocol (PFCP), bounded extension-header parsing, inner-packet anti-spoofing with GTP-in-GTP detection, and per-session policing. We formalize stage ordering as a cost-minimization problem and show that sorting stages by the ratio of per-packet cost to rejection probability minimizes expected per-packet work, which motivates run-time reordering through tail-call program arrays when traffic mix shifts under attack. We further describe a Kubernetes deployment model based on a node-level DaemonSet with pinned eBPF maps that survive agent upgrades, discuss constraints specific to public-cloud virtual NICs, and define a reproducible evaluation methodology, with explicit hypotheses, for throughput, latency, CPU efficiency and attack resilience. This paper presents the design and methodology; experimental results will be reported in a subsequent version.

Index Terms—eBPF, XDP, 5G core, UPF, GTP-U, packet filtering, Kubernetes, DDoS mitigation, cloud-native network functions

I. INTRODUCTION

In a 5G Standalone (SA) system, the UPF anchors user sessions and forwards traffic between the radio access network (RAN) and external data networks [1]. Uplink traffic arrives on the N3 reference point encapsulated in GTP-U over UDP port 2152 [2], and the UPF is programmed by the Session Management Function (SMF) over the N4 interface using PFCP [3]. Because the UPF must accept tunnelled packets from a large population of gNBs and, in roaming and multi-UPF topologies, from peer UPFs on N9, its ingress is a natural target for volumetric floods, TEID scanning, spoofed inner sources and GTP-in-GTP injection [4].

Historically, high-capacity UPFs have relied on kernel-bypass frameworks such as DPDK [5], which dedicate polling cores and take the NIC away from the kernel. That model fits poorly with cloud-native operations: Kubernetes schedulers, container network interfaces, observability agents and public-cloud virtual NICs all assume the kernel owns the device. The eXpress Data Path (XDP) [6] offers a middle ground. An XDP program is an eBPF program that runs in the driver's receive path before the kernel allocates a socket buffer, can return a verdict for each frame (drop, pass, transmit, or redirect), and co-exists with the regular networking stack. XDP has been used for in-kernel UPFs [7]–[9] and for GTP-U-aware receive-side scaling [10], [11], but considerably less attention has been paid to XDP as a dedicated admission-control layer placed in front of an existing UPF, regardless of how that UPF implements forwarding.

This paper addresses that gap. Our contributions are:

  1. A six-stage XDP pipeline, GTP-Guard, that validates GTP-U traffic against PFCP-derived session state and drops illegitimate packets in the driver (Section V).

  2. A cost model for ordering filter stages, with a closed-form optimal order and a mechanism for re-ordering at run time without detaching the program (Section V-D).

  3. A Kubernetes deployment model, including state persistence across upgrades, privilege scoping, and public-cloud NIC considerations (Section VI).

  4. A reproducible evaluation methodology for XDP-based user-plane protection, stated as testable hypotheses (Section VII). Measured results are deferred to a later version of this paper.