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

# Performance

This page records measured forwarding throughput for User Plane Gateway (UPG) deployed as a Packet Gateway. The benchmark covers Vector Packet Processing (VPP) thread scaling in UPG 3.1.0, with UPG 2.17.1 as the reference point, and it also measures session churn and three traffic profiles. Use it to size **spec.vpp** and **spec.resources**. For the fields themselves, see [Multithreading](https://docs.cennso.com/components/upg/latest/deployment-guides/multithreading.md).

The following table lists what this benchmark covers:

| Item | Value |
|---|---|
| Measured on | 2026-09-13 |
| UPG versions | 3.1.0, compared against 2.17.1 |
| Fast Path Provider (FPP) | 3.1.0 |
| Environment | see [Test environment](#test-environment) |

The numbers hold for the hardware and the traffic mix described in [Test environment](#test-environment). They show relative behavior for sizing. They are not an absolute performance guarantee, so re-measure on the target hardware before you commit to a capacity plan.

## Key results

- UPG 2.17.1 has no multithreading. It reached 1.398 million packets per second (Mpps), and no CPU allocation raises that rate.
- UPG 3.1 needs two forwarding threads to pass that rate. Below that it delivers less than 2.17.1 on the same workload.
- The first worker adds no throughput. Once a worker exists, the main thread stops forwarding. One main thread plus one worker is still a single forwarding thread, at twice the CPU.
- Throughput rises with every worker added, and the return per thread starts to fall after four. Eight forwarding threads on dedicated cores reached 6.366 Mpps, which is 4.6 times the 2.17.1 rate and 5.8 times a single worker.
- Hyper-threading siblings deliver less per thread and more per physical core. At four forwarding threads they reached 68% of the dedicated-core rate on half the physical cores, which is 1.36 times the throughput for the same cores.
- Session churn costs between 2.7% and 5.0% on dedicated cores, and between 5.2% and 19.0% on hyper-threading siblings.
- These figures depend on the dataplane switch that feeds UPG. See [What the figures depend on](#what-the-figures-depend-on).

## Thread allocation

The number of VPP threads follows from two fields: **spec.resources.cpu** and **spec.vpp.allowHtSiblings**. With `allowHtSiblings: false`, the default, a VPP thread occupies a whole physical core. On a hyper-threaded host that is two logical CPUs. With `allowHtSiblings: true`, a thread occupies a single sibling.

> [!IMPORTANT]
> **spec.resources.cpu** and **spec.vpp.maxCPUCores** do different things. **spec.resources.cpu** is the CPU that Kubernetes gives the pod, in logical CPUs, and it sets both the request and the limit. It is the upper bound on the threads VPP can run. **spec.vpp.maxCPUCores** caps the thread count below that bound. `maxCPUCores: "4"` yields four threads only when the allocation already provides four usable cores, and VPP ignores a cap larger than that. The following table is indexed by **spec.resources.cpu**, because that is the field this benchmark swept.

Thread 0 is `vpp_main`. Once a worker exists, `vpp_main` stops forwarding, as [Sizing](https://docs.cennso.com/components/upg/latest/deployment-guides/multithreading.md#sizing) describes. On such a pod, `vppctl show interface rx-placement` assigns every receive queue to a worker thread and none to `vpp_main`. The forwarding thread count determines throughput.

The following table lists the threads each CPU allocation produces:

| allowHtSiblings | spec.resources.cpu | VPP threads | Composition | Forwarding threads | Physical cores |
|---|---|---|---|---|---|
| `false` | 2 | 1 | main only | 1 | 1 |
| `false` | 4 | 2 | main + 1 worker | 1 | 2 |
| `false` | 6 | 3 | main + 2 workers | 2 | 3 |
| `false` | 8 | 4 | main + 3 workers | 3 | 4 |
| `false` | 10 | 5 | main + 4 workers | 4 | 5 |
| `false` | 18 | 9 | main + 8 workers | 8 | 9 |
| `true` | 1 | 1 | main only | 1 | 0.5 |
| `true` | 2 | 2 | main + 1 worker | 1 | 1 |
| `true` | 3 | 3 | main + 2 workers | 2 | 1.5 |
| `true` | 5 | 5 | main + 4 workers | 4 | 2.5 |
| `true` | 7 | 7 | main + 6 workers | 6 | 3.5 |
| `true` | 9 | 9 | main + 8 workers | 8 | 4.5 |

Verify the result on a running pod with `vppctl show threads`. For the procedure, see [Verification](https://docs.cennso.com/components/upg/latest/deployment-guides/multithreading.md#verification).

## Results

The following table lists sustained throughput at 0.3% median packet loss or below. Each run used 100,000 concurrent sessions and a symmetric small-packet load. The total receive rate sums both directions.

| Version | allowHtSiblings | spec.resources.cpu | Composition | Forwarding threads | Total receive rate, Mpps | Compared to 2.17.1 |
|---|---|---|---|---|---|---|
| 2.17.1 | not supported | 2 | main only | 1 | 1.398 | reference |
| 3.1.0 | `false` | 2 | main only | 1 | 1.148 | 82% |
| 3.1.0 | `false` | 4 | main + 1 worker | 1 | 1.100 | 79% |
| 3.1.0 | `false` | 6 | main + 2 workers | 2 | 2.001 | 143% |
| 3.1.0 | `false` | 10 | main + 4 workers | 4 | 4.107 | 294% |
| 3.1.0 | `false` | 18 | main + 8 workers | 8 | 6.366 | 455% |
| 3.1.0 | `true` | 1 | main only | 1 | 1.097 | 78% |
| 3.1.0 | `true` | 2 | main + 1 worker | 1 | 1.049 | 75% |
| 3.1.0 | `true` | 3 | main + 2 workers | 2 | 1.798 | 129% |
| 3.1.0 | `true` | 5 | main + 4 workers | 4 | 2.795 | 200% |
| 3.1.0 | `true` | 9 | main + 8 workers | 8 | 4.801 | 343% |

![Throughput against CPU allocation](https://docs.cennso.com/api/assets/components/upg/latest/assets/upg-throughput-vs-cpu.svg)

Both 3.1 curves stay under the 2.17.1 rate until the second forwarding thread. The dedicated-core curve is flat between two and four CPUs, where the first worker adds no throughput.

The 18-CPU allocation is the upper bound of these measurements rather than a recommended size. It occupies nine physical cores on one Non-Uniform Memory Access (NUMA) node, and the benchmark host had room for it beside the dataplane switch.

### Behind a four-worker dataplane switch

The [Results](#results) figures come from a dataplane switch with eight workers and eight uplink queues. A narrower switch is a valid deployment, and it caps UPG before UPG runs out of threads. The following table lists the same sweep measured on 2026-09-08 behind a switch with four workers and four queues, at 250,000 sessions and with the slower search of that date: a base rate of 100 thousand packets per second (kpps), a convergence of 0.1, and a two-minute hold.

| Version | allowHtSiblings | spec.resources.cpu | Forwarding threads | Total receive rate, Mpps |
|---|---|---|---|---|
| 2.17.1 | not supported | 2 | 1 | 1.346 |
| 3.1.0 | `false` | 2 | 1 | 1.284 |
| 3.1.0 | `false` | 4 | 1 | 1.245 |
| 3.1.0 | `false` | 6 | 2 | 1.945 |
| 3.1.0 | `false` | 8 | 3 | 2.748 |
| 3.1.0 | `false` | 10 | 4 | 3.119 |
| 3.1.0 | `true` | 1 | 1 | 0.923 |
| 3.1.0 | `true` | 2 | 1 | 1.086 |
| 3.1.0 | `true` | 3 | 2 | 1.685 |
| 3.1.0 | `true` | 5 | 4 | 2.949 |
| 3.1.0 | `true` | 7 | 6 | 3.384 |

On dedicated cores, the wider switch delivers more from two forwarding threads up. The difference grows with the thread count: 3% at two threads and 32% at four. At a single forwarding thread the narrower switch measured 12% to 13% higher, so the wider one costs a little where UPG cannot use it. The hyper-threading points move between 5% down and 19% up. The largest of them is the main-only point, where the earlier series measured 0.923 Mpps against 1.097 here and 1.110 in a run on 2026-09-11, so that one reads as an outlier of the earlier series rather than an effect of the switch.

Size the switch alongside UPG, and read the figures that match the switch you deploy.

## Comparison against 2.17.1

One forwarding thread does not reach the 2.17.1 rate. With `multicore: true` at the default **spec.resources.cpu** of `2`, 3.1 measured 18% below 2.17.1. The following table lists the smallest configurations that pass it.

| Configuration | spec.resources.cpu | Total receive rate | Compared to 2.17.1 | Physical cores |
|---|---|---|---|---|
| `allowHtSiblings: true` | 3 | 1.798 Mpps | +29% | 1.5 |
| `allowHtSiblings: false` | 6 | 2.001 Mpps | +43% | 3 |

A single worker costs CPU without adding a forwarding thread. On dedicated cores that is a four-CPU allocation, twice the CPU of the main-only configuration for the same one forwarding thread. The following table compares the two.

| Configuration | spec.resources.cpu | Forwarding threads | Total receive rate | Compared to main only |
|---|---|---|---|---|
| main only | 2 | 1 | 1.148 Mpps | reference |
| main + 1 worker | 4 | 1 | 1.100 Mpps | 4% slower at twice the CPU |

## Scaling efficiency

Each figure compares throughput against the main plus one worker configuration of the same mode, which has one forwarding thread. The following table lists the result per forwarding thread.

| Forwarding threads | Dedicated cores | Hyper-threading siblings |
|---|---|---|
| 1 | 100% | 100% |
| 2 | 91% | 86% |
| 4 | 93% | 67% |
| 8 | 72% | 57% |

![Scaling efficiency per forwarding thread](https://docs.cennso.com/api/assets/components/upg/latest/assets/upg-throughput-per-thread.svg)

On dedicated cores the first four threads scale almost linearly: four threads return 3.73 times the rate of one, and each thread still carries about 1.0 Mpps. The eighth thread is where the curve bends. Eight threads return 5.79 times a single thread, and the rate per thread falls to 0.796 Mpps.

On hyper-threading siblings the return falls from the second thread onwards, because two threads share the pipeline of one physical core.

## Hyper-threading siblings

At one and two forwarding threads, siblings deliver almost as much as dedicated cores. The gap is largest at four forwarding threads. The following table compares the two modes.

| Forwarding threads | Dedicated cores | Hyper-threading siblings | Siblings compared to dedicated |
|---|---|---|---|
| 1 (main only) | 1.148 Mpps | 1.097 Mpps | 96% |
| 1 (main + 1 worker) | 1.100 Mpps | 1.049 Mpps | 95% |
| 2 | 2.001 Mpps | 1.798 Mpps | 90% |
| 4 | 4.107 Mpps | 2.795 Mpps | 68% |
| 8 | 6.366 Mpps | 4.801 Mpps | 75% |

Per physical core the order reverses, because a sibling thread costs half a core. At four forwarding threads siblings delivered 1.118 Mpps per physical core against 0.821, and at eight threads 1.067 against 0.707.

![Throughput per physical core](https://docs.cennso.com/api/assets/components/upg/latest/assets/upg-throughput-per-core.svg)

The two modes suit different limits. Set `allowHtSiblings: true` when physical cores are scarce. Leave it at the default when each thread has to carry as much traffic as the host allows.

## Session churn

The churn runs create and tear down sessions throughout the measurement, at 250 sessions per second, while the packet rate search proceeds. The following table lists what that costs.

| allowHtSiblings | spec.resources.cpu | Forwarding threads | Without churn | With churn | Cost |
|---|---|---|---|---|---|
| `false` | 4 | 1 | 1.100 Mpps | 1.050 Mpps | 4.6% |
| `false` | 6 | 2 | 2.001 Mpps | 1.948 Mpps | 2.7% |
| `false` | 10 | 4 | 4.107 Mpps | 3.950 Mpps | 3.8% |
| `false` | 18 | 8 | 6.366 Mpps | 6.049 Mpps | 5.0% |
| `true` | 2 | 1 | 1.049 Mpps | 0.849 Mpps | 19.0% |
| `true` | 3 | 2 | 1.798 Mpps | 1.498 Mpps | 16.7% |
| `true` | 5 | 4 | 2.795 Mpps | 2.649 Mpps | 5.2% |
| `true` | 9 | 8 | 4.801 Mpps | 3.946 Mpps | 17.8% |

Churn is cheap on dedicated cores, where it stays between 2.7% and 5.0%, and expensive on siblings, where three of the four points cost between 16.7% and 19.0%. The fourth, four workers on siblings, cost 5.2%. A possible reason is that session handling runs on thread 0, which under `allowHtSiblings: true` shares a physical core with a worker. The benchmark did not measure how the load splits between the two threads, so it does not confirm this reason.

Plan for the cost that matches the deployment. A gateway that holds sessions for a long time sits near the figures without churn, and one that sets up and tears down constantly sits near the figures with it.

## Traffic profiles

The packet rate figures on this page use small packets, which keep the gateway rather than the link busy. The following table lists what the other two profiles measure.

| Profile | Where it measures UPG | Ceiling reached |
|---|---|---|
| Small packets, 20 to 24 byte payloads | Every configuration. The fastest point used 1.83 Gb/s of the link | none |
| Internet mix (IMIX) | Up to two forwarding threads, at 3.11 and 5.51 Gb/s on dedicated cores | 7.35 Gb/s from four forwarding threads up, in both modes |
| Large packets, 1400 to 1420 bytes | Nowhere. One forwarding thread already fills the link | 9.12 Gb/s at one thread and at eight |

Compare configurations with the small-packet profile. Above their crossover the other two report the test environment, not the gateway: every configuration from four forwarding threads up returns the same IMIX figure, and every configuration returns the same large-packet figure.

## What the figures depend on

The benchmark measured four influences separately, so you can attribute a difference between two runs.

| Influence | Effect |
|---|---|
| Repeating a configuration with everything held still | 0.5% or less at three of the four points repeated, and 4.8% at one worker on siblings |
| Session count, 100,000 against 250,000 | 0.1% at one forwarding thread in both modes, and 3.2% at eight threads on dedicated cores against 2.2% on siblings |
| Search settings, the base rate, convergence and hold time | between 0.8% below and 1.7% above |
| Dataplane switch, four workers against eight | 32% at four forwarding threads on dedicated cores, the largest difference measured, and 12% to 13% the other way at a single thread |

Read a difference against that scale. A few percent can come from the session count or from the search, and the smallest sibling configurations move that much on their own between runs. A third or more means the traffic source changed, and the first thing to check is the switch.

## Method

Each data point is a completed throughput binary search. The offered rate doubles until median packet loss exceeds the budget, then bisects until it converges. The reported figure is the last step whose median loss stayed within budget. The mean loss of a reported step can therefore sit slightly above 0.3%. The following table lists the parameters.

| Parameter | Value |
|---|---|
| Condition metric | median total drop rate at or below 0.3% |
| Hold time per step | 1 minute |
| Convergence | 0.25 rate multiplier |
| Base rate | 200 thousand packets per second (kpps) per direction |
| Concurrent sessions | 100,000 |
| Session setup rate | 500 sessions per second, and 250 in the churn runs |
| Traffic | symmetric, 1 flow per session, three profiles as listed in [Traffic profiles](#traffic-profiles) |
| VPP mode | `multicore: true` for every measured configuration |
| Time per data point | 28 minutes on average |
| Total run time | 13.7 hours for 29 data points |

Between points the benchmark re-applies the UPG release with the new CPU allocation and deletes the pod once, so each point starts on a new pod.

Behind the eight-worker switch, the single-threaded gap between 2.17.1 and 3.1 is 18%. Behind the four-worker switch it was 5%, 1.284 against 1.346 Mpps. The widest spread seen when a configuration is repeated under the same conditions is 4.8%. The 18% gap is larger than that spread and the 5% gap is not, so the size of the gap depends on the switch that feeds UPG.

## Test environment

The test environment is a two-node bare-metal Kubernetes cluster. Both nodes are identical dataplane hosts. UPG, the control plane, and the FPP dataplane switch run on one node. All traffic generators run on the other. Only the traffic under test crosses the node boundary.

The following diagram shows how the components connect:

```likec4 viewId=index
// Test environment for the UPG multithreading benchmark.
// Rendered on the Performance page under Observability.

specification {
  // Cennso brand colors
  color cnc-blue #1E75BC
  color cnc-blue-bright #4A9FE0
  color cnf-cyan #00C1D4
  color cnf-cyan-bright #5FE3F0
  color ctt-orange #FF5D18
  color ctt-orange-bright #FF9466

  // Cluster: visual grouping for components that share a deployment context
  element cluster {
    style {
      color cnc-blue
      multiple true
    }
  }

  // CNC component (Cennso Network Core)
  element cnc-component {
    style {
      color cnc-blue
      size md
      textSize lg
      iconSize lg
    }
  }

  // CNF component (Cennso Network Function)
  element cnf-component {
    style {
      color cnf-cyan
      size md
      textSize lg
      iconSize lg
    }
  }

  // CTT component (Cennso Test Tools)
  element ctt-component {
    style {
      color ctt-orange
      size md
      textSize lg
      iconSize lg
    }
  }

  tag protocol
  tag transport

  relationship tunneled {
    head odot
  }
  relationship directLink {
    head odiamond
  }
}

model {

  // ────────────────────────────────────────────────────────────
  // NODE UNDER TEST
  // Runs the measured forwarding path and the control plane.
  // ────────────────────────────────────────────────────────────
  sut = cluster 'Node under test' {
    description 'Dataplane host that runs UPG, the control plane, and the dataplane switch'

    fpp = cnc-component 'FPP' {
      description 'Fast Path Provider. Owns the physical NIC and presents memif interfaces to UPG'
      icon https://www.cennso.com/assets/diagrams/icons/fpp.svg
    }

    upg = cnf-component 'UPG' {
      description 'User Plane Gateway under test, deployed as a Packet Gateway'
      icon https://www.cennso.com/assets/diagrams/icons/upg.svg
    }

    smc = cnf-component 'SMC' {
      description 'Session Management Controller. Holds the PFCP association with UPG'
      icon https://www.cennso.com/assets/diagrams/icons/smc.svg
    }
  }

  // ────────────────────────────────────────────────────────────
  // TRAFFIC GENERATOR NODE
  // Identical hardware. Holds the traffic generators.
  // ────────────────────────────────────────────────────────────
  tester = cluster 'Traffic generator node' {
    description 'Identical dataplane host that runs the traffic generators'

    tploadCore = ctt-component 'TPLoad Core' {
      description 'Sets up 100,000 sessions at 500 sessions per second and provisions the generators'
    }

    tploadAccess = ctt-component 'TPLoad Generator, access side' {
      description 'Three generators offering the load on the access side'
    }

    tploadDn = ctt-component 'TPLoad Generator, data network side' {
      description 'Three generators offering the matching load on the data network side'
    }
  }

  // ────────────────────────────────────────────────────────────
  // CONTROL PLANE
  // ────────────────────────────────────────────────────────────
  tester.tploadCore -> sut.smc 'Creates and releases sessions' #protocol
  sut.smc -> sut.upg 'Manages sessions over Sxb' #protocol

  // ────────────────────────────────────────────────────────────
  // MEASURED FORWARDING PATH
  // ────────────────────────────────────────────────────────────
  tester.tploadAccess -[tunneled]-> sut.fpp 'Offers GTP-U load on GRX' #transport
  sut.fpp -[directLink]-> sut.upg 'Carries GRX, Sxb, and SGi on memif rings' #transport
  tester.tploadDn -[tunneled]-> sut.fpp 'Offers the matching load on SGi' #transport
}

views {
  view index {
    title 'Benchmark test environment'
    include *
  }
}
```

TPLoad Core creates the sessions through the control plane. The generators then offer the same rate on the access side and on the data network side, and UPG forwards between them across memif (in-memory interface) rings on the FPP dataplane switch.

### Hardware

Both nodes use the following hardware.

| Component | Specification |
|---|---|
| CPU | 2 × Intel Xeon E5-2683 v3 @ 2.00 GHz (Haswell-EP), 14 cores per socket, 2 threads per core, so 28 physical cores and 56 logical CPUs per node |
| Memory | 252 GiB per node, 24,000 × 2 MiB hugepages, approximately 47 GiB |
| Network interface card (NIC) | 2 × Intel X710 (`8086:1572`), `i40e` driver, 10 Gb/s per port, PCI `0000:81:00.x` and `0000:82:00.x`, both on Non-Uniform Memory Access (NUMA) node 1 |
| NUMA layout | node 0 = CPUs 0-13, 28-41; node 1 = CPUs 14-27, 42-55 |

### Software

Both nodes run the following software.

| Component | Version |
|---|---|
| Operating system | Ubuntu 22.04.5 LTS, kernel 6.8.0-138-generic |
| Kernel command line | `iommu=pt intel_iommu=on pci=realloc pci=assign-busses`. No `isolcpus` |
| Kubernetes | v1.34.4+k0s, containerd 1.7.30, Multus and Single Root I/O Virtualization (SR-IOV) network operator |
| UPG | 3.1.0 (`vpp-worker-upg:v3.1.0`), compared against 2.17.1 |
| FPP | 3.1.0 (`vpp-worker-fpp:v3.1.0`) |

The hosts boot without `isolcpus`, so the operator pins VPP threads but does not shield them from the scheduler.

### FPP dataplane switch

The switch owns the physical NIC and presents memif interfaces to UPG. The following table lists its configuration.

| Setting | Value |
|---|---|
| CPU and memory | 18 CPU, 2 GiB, 5 GiB hugepages |
| Threads | 1 main and 8 workers, pinned to NUMA node 1, local to the NIC |
| Uplinks | 2 × SR-IOV virtual function through `vfio`, 8 receive and 8 transmit queues each, 4096 descriptor rings |
| Data Plane Development Kit (DPDK) | enabled, multicore enabled |
| Buffers | 256,000 buffers per NUMA node, 3328 byte default data size |
| Heap and stats | 3 GiB heap, 512 MiB stat segment |

### UPG under test

The following table lists the configuration of the UPG instance under test.

| Setting | Value |
|---|---|
| Deployment | Packet Gateway, single instance, one Packet Forwarding Control Protocol (PFCP) association |
| Networks | GPRS Roaming Exchange (GRX), Sxb, and SGi as memif interfaces backed by Virtual Extensible LAN (VXLAN), maximum transmission unit (MTU) 8930 |
| CPU allocation | **spec.resources.cpu** swept over 2, 4, 6, 10, and 18 on dedicated cores, and over 1, 2, 3, 5, and 9 with `allowHtSiblings: true` |
| VPP options | `multicore: true`, `queuesFastAutoAllocation: true` |
| Memory | 8 GiB, 2 GiB hugepages, 6 GiB VPP heap |
| DPDK | disabled. UPG attaches through memif only |
| Threads | pinned to NUMA node 0, one hop from the NIC |
| NAT | disabled |
| Application detection | one classic rule permitting any IPv4 |

Bearer type is IPv4 only. The deployment configures no charging, accounting, or IP Flow Information Export (IPFIX), so the measurement isolates the forwarding path.
