Adi Juliawan PawanaCollaborate

Home/Kaluza/Kaluza eUPF

5G research testbed

Kaluza eUPF

A 5G user plane built on eBPF and XDP, forwarding each user's packets inside the Linux kernel.

eBPFprograms run in the network card's driver (native XDP), before the Linux network stack
4session types: IPv4, IPv6, dual-stack and Ethernet
Realphones have used it on air, including VoNR calls

How a packet travels

The usual Linux path

Network cardKernel network stackRouting and firewallOut

Kaluza eUPFeBPF at the XDP hook, native mode

Network cardXDP hookin the card's driver
eBPF programs
  1. Find the user
  2. Check the packet is really theirs
  3. Apply their rules: send, hold or drop, speed limit
  4. Count the bytes
  5. Unwrap or wrap the tunnel and send it on
Out

Each packet is handled by eBPF programs attached at the network card through XDP, before it reaches the rest of the Linux network stack. The rules for each user live in eBPF maps that the control part fills in when KaluzaCore sets up a session. Counting comes after the speed limit, so dropped bytes are not counted. Packets eUPF does not own, such as the machine's own management traffic, go on to normal Linux.

KaluzaCore The core's session function

Decides each user's rules and sends them over PFCP.

PFCP

One control part Shared

Written in Go. Turns each session into rules for whichever datapath runs below it.

rules

Kaluza eUPF

eBPF and XDP in the Linux kernel.

Kaluza UPF-VPP

FD.io VPP with the Kaluza plugin.

Two datapaths, one brain

Both Kaluza user planes share one control part, so KaluzaCore talks to either in the same way and can use one in place of the other. That is why eUPF remains the reference engine beside UPF-VPP.

Its PFCP behaviour is checked against 3GPP TS 29.244 Release 19. A request it cannot honour is refused with a reason, never silently ignored.

What Kaluza added to the fork

  • The uplink source check: every packet from a phone must come from that phone's own address
  • Full IPv6 and dual-stack for phones, end to end
  • Ethernet sessions for 5G LAN: MAC learning, an ARP proxy and local switching between devices
  • Networks behind a phone (framed routes)
  • Usage reports, quotas and time limits sent to the core
  • Holding data for sleeping phones and telling the core
  • Roaming protection for partner networks (IPUPS)
  • Release 19 behaviour checks, with refusals that name their reason
  • The shared datapath interface that Kaluza UPF-VPP builds on

Already in the original eUPF project: the XDP and eBPF design, GTP-U tunnels, finding a session by tunnel or address, speed limits, traffic filters and basic byte counters.

Design highlights

Per-user policy

A maximum speed, usage counting, quotas and time limits for each user.

Usage is reported back to the core, so limits are enforced as they happen.

Waits for sleeping phones

Holds incoming data while a phone wakes up, and tells the core so the network can page it.

Incoming data waits instead of being dropped.

Roaming protection

Drops traffic from a partner network unless it is well-formed and belongs to a tunnel set up for a real session.

Only traffic for real sessions crosses from a partner network.

Verified features

On real phonesIn lab simulation
  • Has carried phones' voice, video and internetOn real phones
  • Uplink source check (anti-spoofing), active on phones' trafficOn real phones
  • Blocking forged packetsIn lab simulation
  • Local exit for edge computingIn lab simulation
  • Ethernet sessions for 5G LAN, one to one with local switchingIn lab simulation

Place in the network

Kaluza eUPF or UPF‑VPP. Carry each user's traffic and apply that user's rules: Kaluza eUPF with eBPF in the Linux kernel, or Kaluza UPF-VPP with Vector Packet Processing. Either engine can do the job.

Have a 5G security idea to test on a real network?

Kaluza is open to joint experiments with research groups and companies working on mobile network security.