For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

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.

The following table lists what this benchmark covers:

The numbers hold for the hardware and the traffic mix described in 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.

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 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:

Verify the result on a running pod with vppctl show threads. For the procedure, see 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.

Throughput against CPU allocation
Throughput against CPU allocation

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 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.

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.

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.

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.

Scaling efficiency per forwarding thread
Scaling efficiency per forwarding thread

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.

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
Throughput per physical core

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.

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.

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.

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.

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:

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.

Software

Both nodes run the following software.

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.

UPG under test

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

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