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

# KPIs for UPG v2.0.0

## SCG Setup

![SCG Setup](https://docs.cennso.com/api/assets/components/upg/2.2/images/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 PCG-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** |
|---|---|---|---|
| PCG-UPG | 3.42 GiB | 100% | 451 kpps / 2.8975 Gbps |
| SCG-UPG | 4.83 GiB | 100% | 451 kpps / 2.8975 Gbps |

100% CPU consumption is by design as UPG works in poll mode for better
throughput.

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

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

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

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

## PCG Setup

![PCG Setup](https://docs.cennso.com/api/assets/components/upg/2.2/images/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 PCG
  - 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** |
|---|---|---|---|
| PCG-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
  hugepages-2Mi: 2Gi
```
