> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/3.2/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/upg/3.2.md).

# Introduction

User Plane Gateway (UPG) is a Cennso Network Function (CNF) designed to manage user traffic between Access and Data Networks, applying policy enforcement and charging as needed. It integrates with Control Plane (CP) components using the Packet Forwarding Control Protocol (PFCP) interface.

![UPG architecture](https://docs.cennso.com/api/assets/components/upg/3.2/assets/upg-architecture.svg)

Typically, UPG forms part of a Mobile Core Network Service as a Packet Gateway (PGW), often paired with a Session Management Function (SMF) or PGW-C Function, depending on the RAN technology (2G-5G). In Cennso Composable Cloud Core, it connects with the [Session Management Controller](https://docs.cennso.com/cennso/smc/main.md) (SMC) to create a fully functional Packet Gateway.

UPG aligns with 3GPP’s 5G UPF specifications and uses the Control User Plane Split (CUPS) architecture, enabling it to serve as the User Plane for 2G-4G GGSN or PGW configurations. It includes SGi-LAN features like IP Routing, Traffic and Application Detection (TDF/ADF), and Carrier-grade NAT (CG-NAT).

Fully containerised and cloud-native, UPG is optimised for deployment in Kubernetes environments.

The distinguishing features of UPG are:

- 5G User Plane Function (UPF) per [3GPP TS 23.501][TS23501] (R15-16)
- 4G [PGW-U](https://docs.cennso.com/components/upg/3.2/concepts/upgdeployment.md#installation-type) per [3GPP TS 23.214][TS23214] (R14)
- GTP-U tunnel management for 2G/3G CUPS-based GGSN
- GTP-U encapsulation and decapsulation (encap/decap)
- TEID pooling, charging, and PFCP (Sx, N4)
- Time and volume accounting for both Online and Offline Charging (URR)
- Policy enforcement for Online Charging based on time and volume
- [Traffic Detection Function (TDF)](https://docs.cennso.com/components/upg/3.2/concepts/upgdeployment.md#installation-type) and [Application Detection Function (ADF)](https://docs.cennso.com/components/upg/3.2/concepts/upgapplication.md)
- [IP routing](https://docs.cennso.com/components/upg/3.2/concepts/upgdeployment.md#network-configuration), [Carrier-grade NAT](https://docs.cennso.com/components/upg/3.2/concepts/upgdeployment.md#cg-nat), [policy-based routing](https://docs.cennso.com/components/upg/3.2/concepts/upgdeployment.md#policy-based-routing)

UPG can be deployed in the following use cases:
- [Packet Gateway](https://docs.cennso.com/components/upg/3.2/use-cases/pgw.md) (PGW-U) - to handle GTP-U tunnel management, data traffic routing, forwarding, packet inspection, QoS enforcement, and usage reporting on the User Plane.
- [Traffic Detection Function](https://docs.cennso.com/components/upg/3.2/use-cases/tdf.md) (TDF-U) - to inspect traffic flows in real time, enforce policies directly on the data path, and report per-flow usage data.

[TS23214]: https://www.3gpp.org/ftp/Specs/html-info/23214.htm
[TS23501]: https://www.3gpp.org/ftp/Specs/html-info/23501.htm
