UPF

Also known as: User Plane Function

On this page 7

UPF (User Plane Function) is the 5G Core network function that carries user data traffic, forwarding packets between the radio access network and external data networks such as the internet or an enterprise LAN. In 5G networks, it is the element through which every video stream, web page and sensor reading actually flows, while other functions only make decisions about that traffic.

The UPF is the result of control and user plane separation (CUPS): signaling logic lives in control plane functions such as the AMF and the SMF (Session Management Function), and packet handling lives in the UPF. This split allows operators to place UPFs close to users at the network edge without moving the whole core.

How the UPF processes user traffic

The UPF handles traffic belonging to PDU sessions, the 5G equivalent of a data connection. When a device requests a session, the SMF selects a UPF and programs it with packet handling rules over the N4 interface using the Packet Forwarding Control Protocol (PFCP).

Packets from the gNodeB arrive at the UPF inside GTP-U tunnels on the N3 interface. The UPF removes the tunnel header, applies the rules and forwards the packet to the data network over the N6 interface. Downlink traffic follows the reverse path.

The rules installed through PFCP fall into a small set of types, summarized below.

RuleFull nameWhat it does
PDRPacket Detection RuleClassifies packets by tunnel, address, port or application
FARForwarding Action RuleForwards, drops, buffers or duplicates matching packets
QERQoS Enforcement RuleApplies bit rate limits and QoS flow marking
URRUsage Reporting RuleCounts volume and time for charging and quotas
BARBuffering Action RuleControls buffering while an idle device is paged
Packet handling rules programmed into the UPF

Interfaces and roles of the UPF

A UPF can take on several logical roles in one session, and an operator may chain multiple UPFs. The PDU session anchor (PSA) is the UPF that holds the device’s IP address toward the data network, while an intermediate UPF (I-UPF) relays traffic when the device moves or when traffic is split.

InterfaceConnects the UPF toMain purpose
N3gNodeB in the radio access networkUser data in GTP-U tunnels
N4SMFSession rules and usage reports over PFCP
N6External data networkPlain IP or Ethernet traffic to the internet or enterprise
N9Another UPFChaining between intermediate and anchor UPFs
Standard interfaces of the UPF

With an uplink classifier (ULCL) or IPv6 multi-homing, a single session can send some flows to a local edge application and the rest to the central internet breakout. This local breakout is the basis of multi-access edge computing in 5G.

UPF compared with 4G packet gateways

The UPF replaces the user plane parts of the 4G Evolved Packet Core gateways. In early LTE, the serving gateway and the PDN gateway combined control logic and packet forwarding in the same box; the CUPS option in later LTE releases split them, and 5G made the split mandatory.

Aspect4G SGW and PGW5G UPF
Control and user planeCombined, CUPS optionalAlways separated
Control protocolGTP-C between gatewaysPFCP from the SMF
QoS modelBearer-basedFlow-based with QoS flow identifiers
DeploymentMostly centralized appliancesCentral, regional or edge, often cloud-native
Traffic steeringLimited local breakoutULCL and multi-homing for edge routing
UPF and its 4G predecessors

Deploying and sizing a UPF

UPF placement is a trade-off between latency, cost and manageability. A central UPF is cheap to operate but adds transport delay; an edge UPF near the base stations cuts round-trip latency to a few milliseconds but multiplies the number of sites to maintain.

Because the UPF must forward traffic at hundreds of gigabits per second per instance, vendors use DPDK, SmartNICs or hardware offload rather than ordinary kernel networking. Throughput, packets per second and the number of concurrent sessions are the key sizing parameters.

Modern UPFs are usually delivered as cloud-native network functions running in containers on Kubernetes, which lets operators scale instances with demand. Redundancy is handled by running UPFs in pairs or pools, because a failed UPF drops every active session it anchors until the SMF re-establishes them elsewhere.

Operators also size UPFs for lawful interception and charging. Usage reports for billing and duplicated traffic for authorized interception both consume processing capacity, so a UPF dimensioned only for raw forwarding can become a bottleneck under full feature load.

ScenarioRecommended placementReason
Consumer mobile broadbandCentral or regional data centerCost efficiency at large scale
Low-latency industrial controlEdge site or customer premisesMinimum delay and local data retention
Private 5G networkOn-premises UPFTraffic stays inside the enterprise
Network slicingDedicated UPF per slice when neededIsolation and separate performance targets
Choosing UPF placement

Limitations and common misconceptions

  • The UPF does not decide policy on its own; it enforces what the SMF and the policy control function instruct.
  • Edge UPFs alone do not create low latency: the application server must also sit at the edge, otherwise traffic still travels to a distant data center.
  • Deep packet inspection in the UPF is constrained by encryption, since most traffic is protected by TLS or QUIC.
  • Session continuity during mobility between edge UPFs requires careful design, because the IP anchor may change.
  • Many distributed UPFs increase the attack surface and the operational burden of patching and monitoring.

The short version

The UPF is the part of a 5G network that actually moves your data. When you watch a video or send a message, the packets pass through the UPF on their way between your phone’s radio connection and the internet.

Other parts of the network act like a traffic control office that decides the rules, while the UPF is the busy road junction that follows them. Because the junction can be built close to where people are, operators can make some services noticeably faster.

Where it makes a difference

A car parts factory runs a private 5G network to connect automated guided vehicles and machine vision cameras on its production line. The cameras send high-resolution images to a quality inspection server, and the vehicles need control commands within about 10 ms.

The integrator installs an on-premises UPF in the factory server room next to the inspection server, while the control plane functions run in the operator’s cloud. Video and control traffic never leaves the site, and round-trip latency stays below 10 ms with stable jitter.

The result is that defective parts are detected before they reach assembly, and production data remains inside the factory, which satisfies the company’s data protection requirements without a fully on-site 5G Core.