> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/2.16/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/2.16/performance.md).

# Performance

This document presents key performance indicators (KPIs) for User Plane Gateway (UPG) working in two setups:
- PGW setup
- SCG setup

## PGW setup

The Packet Gateway (PGW) setup is used to serve, encapsulate and decapsulate the GTPv2/GTPu traffic, and create sessions for subscribers in Travelping Open Subscriber Server (TPOSS).

![PGW setup](https://docs.cennso.com/api/assets/components/upg/2.16/assets/pcg.svg)

Software versions:

- SMC: 3.4.0
- UPG: 2.0.0

SUT (System Under Test Node):

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

Generator Node:

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

APN configuration:

- Gy enabled, 4 peers, TCP
- Ga enabled
- RTS enabled
- Charging configuration on PGW
  - Standard: RG 3000
  - 3 port-based traffic charging rules
- 2 UPGs are serving user-plane traffic
- UPG is in forwarding mode
- 3 port-based traffic charging rules

Test configuration:

- UDP Sessions: 250000 sessions
- TCP Sessions: 1000 sessions
- CSR-DSR Rate: 250
- UDP Download Traffic
  - Min Packet Payload Size: 1000 Bytes
  - Max Packet Payload Size: 1250 Bytes
  - Target throughput: 3200 Mbit/s
- UDP Upload Traffic Pattern
  - Min Packet Payload Size: 150 Bytes
  - Max Packet Payload Size: 400 Bytes
  - Target throughput: 800 Mbit/s
- Session count: 250,000
- Session setup / deletion rate: 250 sessions/second
- Duration: \~14h

Resulting KPI parameters for UPG 2.0.0 (UPG handling 125k sessions):

| **Component** | **RAM** | **CPU** | **Forwarding speed** |
|---|---|---|---|
| PGW-UPG | 3.22 GiB | 100% | 455 kpps / 2.9885 Gbps |

UPG resources configuration that supports above KPIs (125k sessions):

```
heapsize: 4G
enableHugepagesAllocation: false
resources:
  cpu: 2
  memory: 5Gi
```

## SCG setup

The Session Control Gateway (SCG) setup is used as the service gateway for the user traffic.

![SCG setup](https://docs.cennso.com/api/assets/components/upg/2.16/assets/pcg-scg.svg)

Software versions:

- SMC: 3.4.0
- UPG: 2.0.0

SUT (System Under Test Node):

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

Generator Node:

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

APN configuration:

- Gy disabled
- Ga disabled
- Charging configuration on SCG: Portal, Redirect and Online
- 2 PGW-UPG is serving user-plane traffic
- 2 SCG-UPG is serving user-plane traffic
- UPG is in forwarding mode

Test configuration:

- UDP Sessions: 250000 sessions
- TCP Sessions: 1000 sessions
- CSR-DSR Rate 250
- UDP Download Traffic
  - Min Packet Payload Size: 1000 Bytes
  - Max Packet Payload Size: 1250 Bytes
  - Target throughput: 3200 Mbit/s
- UDP Upload Traffic Pattern
  - Min Packet Payload Size: 150 Bytes
  - Max Packet Payload Size: 400 Bytes
  - Target throughput: 800 Mbit/s
- Session count: 250,000
- Session setup / deletion rate: 250 sessions/second
- Duration: \~14h

Resulting KPI parameters for UPG 2.0.0 (UPG handling 125k sessions):

| **Component** | **RAM** | **CPU** | **Forwarding speed** |
|---|---|---|---|
| PGW-UPG | 3.42 GiB | 100% | 451 kpps / 2.8975 Gbps |
| SCG-UPG | 4.83 GiB | 100% | 451 kpps / 2.8975 Gbps |

>**NOTE:** 100% CPU consumption is intended by design as UPG works in the poll mode for better
throughput.

This is the PGW-UPG resources configuration that supports the above KPIs (125k sessions):

```
heapsize: 4G
enableHugepagesAllocation: false
resources:
  cpu: 2
  memory: 5Gi
```

This is the SCG-UPG resources configuration that supports the above KPIs (125k sessions):

```
heapsize: 5G
enableHugepagesAllocation: false
resources:
  cpu: 2
  memory: 6Gi
```
