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.
| Rule | Full name | What it does |
|---|---|---|
| PDR | Packet Detection Rule | Classifies packets by tunnel, address, port or application |
| FAR | Forwarding Action Rule | Forwards, drops, buffers or duplicates matching packets |
| QER | QoS Enforcement Rule | Applies bit rate limits and QoS flow marking |
| URR | Usage Reporting Rule | Counts volume and time for charging and quotas |
| BAR | Buffering Action Rule | Controls buffering while an idle device is paged |
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.
| Interface | Connects the UPF to | Main purpose |
|---|---|---|
| N3 | gNodeB in the radio access network | User data in GTP-U tunnels |
| N4 | SMF | Session rules and usage reports over PFCP |
| N6 | External data network | Plain IP or Ethernet traffic to the internet or enterprise |
| N9 | Another UPF | Chaining between intermediate and anchor UPFs |
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.
| Aspect | 4G SGW and PGW | 5G UPF |
|---|---|---|
| Control and user plane | Combined, CUPS optional | Always separated |
| Control protocol | GTP-C between gateways | PFCP from the SMF |
| QoS model | Bearer-based | Flow-based with QoS flow identifiers |
| Deployment | Mostly centralized appliances | Central, regional or edge, often cloud-native |
| Traffic steering | Limited local breakout | ULCL and multi-homing for edge routing |
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.
| Scenario | Recommended placement | Reason |
|---|---|---|
| Consumer mobile broadband | Central or regional data center | Cost efficiency at large scale |
| Low-latency industrial control | Edge site or customer premises | Minimum delay and local data retention |
| Private 5G network | On-premises UPF | Traffic stays inside the enterprise |
| Network slicing | Dedicated UPF per slice when needed | Isolation and separate performance targets |
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.