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 lists measured forwarding rates of Fast Path Provider (FPP). FPP runs Vector Packet Processing (VPP) on each node, and VPP forwards the Data Plane traffic.

The following setup is the recommended way to run FPP and the Connectivity Gateway (CGW). This page calls it the baseline:

  • The uplink uses single root I/O virtualization (SR-IOV) with the Data Plane Development Kit (DPDK).
  • The bond mode is ActiveBackup.
  • Each VPP thread has its own physical core. This page calls this setup dedicated cores.

The page shows how the baseline rate grows with more VPP worker threads. It measures two paths: the SR-IOV uplink between two nodes, and memif (in-memory interface) inside one node. The page then shows two changes to the baseline:

  • VPP threads on hyper-threading siblings, the two logical CPUs of one physical core
  • AF_XDP, the Linux express data path socket, in place of SR-IOV

The figures come from two test runs:

Use the FPP 3.1.0 test run as the reference. The FPP 3.0.3 test run was earlier, on other nodes and with another bond mode. Compare the FPP 3.0.3 figures only with other FPP 3.0.3 figures.

The figures apply to the hardware and traffic in Test environment. Use them to compare setups. Measure on your own hardware before you plan capacity.

Key results

The following list sums up the results:

  • On the SR-IOV uplink with dedicated cores, two worker threads forward 9.20 million packets per second (Mpps) per node. With four and eight workers, the rate stays at 13.70 Mpps per node.
  • On memif with dedicated cores, VPP forwards 12.05 Mpps with two workers, at least 23.93 Mpps with four, and at least 27.95 Mpps with eight.
  • On hyper-threading siblings, each thread forwards less, but each physical core forwards more. With two workers, a sibling thread forwards 54% to 67% of the rate of a dedicated-core thread. See Hyper-threading siblings.
  • In the FPP 3.0.3 test run, SR-IOV DPDK forwarded 10.98 Mpps of small packets. AF_XDP on macvlan-xdp forwarded 1.07 Mpps, about ten times less. See SR-IOV compared to AF_XDP.
  • Use kernel 6.x or later for macvlan-xdp, as AF_XDP requirements states. On interfaces shared with Kubernetes, AF_XDP forwarded 0.30 Mpps of small packets on kernel 5.15 with FPP 3.0.2. On kernel 6.8.0 with FPP 3.0.3, it forwarded 1.72 Mpps.
  • Some figures stop at a limit before VPP runs out of threads. See What the figures depend on.

Thread allocation

Two settings set the number of VPP threads: spec.resources.cpu and spec.vpp.allowHtSiblings. VPP runs one main thread and the worker threads. The FPP 3.1.0 test run uses two, four, and eight worker threads, on dedicated cores and on siblings. Configure resource usage lists the CPU that each setup takes.

The test run measures two paths:

  • On the uplink path, traffic generators on two nodes send traffic to each other. Every packet crosses the SR-IOV uplink once, and VPP on each node forwards it once.
  • On the memif path, all traffic stays on one node and passes through four CGW instances in turn. VPP forwards each packet five times, and no packet reaches the uplink.

The FPP 3.1.0 tables count every packet that VPP forwards. On the memif path, each packet counts five times.

The following table lists the rate that VPP on each node forwarded across the uplink. The test used small packets and dedicated cores. The physical cores include the main thread:

With four and eight workers, the rate stays at 13.70 Mpps. The threads can forward more than these two rows show. See What the figures depend on.

With the Internet mix (IMIX) profile, four workers forward 5.51 Mpps in total, or 14.85 Gb/s of payload. At this rate, the IMIX packets fill the 10 Gb/s link in each direction.

Forwarding rate on the SR-IOV DPDK uplink
Forwarding rate on the SR-IOV DPDK uplink

memif path

The following table lists the rate that VPP forwarded on the memif path, with dedicated cores:

With four and eight workers, the generators and the queue layout set the limit. The real rate can be higher. See What the figures depend on.

Forwarding rate on the memif path
Forwarding rate on the memif path

Hyper-threading siblings

A physical core has two logical CPUs, called hyper-threading siblings. When spec.vpp.allowHtSiblings is true, each VPP thread takes one sibling instead of a whole physical core. The following table compares dedicated cores with siblings on the uplink:

With four and eight workers, the dedicated-core rate stays at 13.70 Mpps, so the sibling share looks higher than it is. With the IMIX profile and four workers, both setups reach 5.51 Mpps, which fills the 10 Gb/s link.

The following table compares dedicated cores with siblings on memif:

The following chart shows both setups on both paths:

Forwarding rate against worker threads
Forwarding rate against worker threads

Only the two-worker rows reach no limit. In these rows, a sibling thread forwards 67% of the rate of a dedicated-core thread on memif. On the uplink, it forwards 54%.

Per physical core, siblings forward more on both paths. With two workers, siblings forward 1.33 times the rate per core of dedicated cores on memif, and 1.07 times on the uplink. With four workers, the figures are 1.42 on memif and 1.45 on the uplink. The uplink figure is too high, because the dedicated-core row stays at 13.70 Mpps. The memif figure can be too high or too low, because the test setup limits both four-worker rows.

Forwarding rate per physical core
Forwarding rate per physical core

With eight workers, siblings also reach the uplink limit: 13.59 Mpps compared to 13.70 Mpps on dedicated cores. They use half the physical cores, 4.5 compared to 9.

If a fixed number of threads must reach a target rate, use dedicated cores.

Important

The schema marks spec.vpp.allowHtSiblings for testing purposes only. Set it to true only in test environments.

SR-IOV compared to AF_XDP

This comparison comes from the FPP 3.0.3 test run. It ran on other nodes with one fixed CPU setup. The SR-IOV DPDK deployment used a static bond with XOR hashing, which spreads traffic over two 10 Gb/s interfaces. Its large-packet figures are higher than one ActiveBackup link can carry. See Bonding parameters.

Configuration

Both deployments use the same VPP configuration:

yaml

The SR-IOV deployment sets the following values for each virtual function (VF):

yaml

The SR-IOV deployment sets the VPP bond mode to XOR, which is a static bond.

The AF_XDP deployment does not bond the uplinks in VPP. It uses one Linux host interface, and that interface can be a bond.

SR-IOV DPDK with a static bond

The following table lists the results for the SR-IOV DPDK deployment with a static XOR bond over the dedicated interfaces wan0 and wan1:

With large packets, the deployment reaches 92% of the 20 Gb/s bond capacity with no loss.

AF_XDP with macvlan-xdp

The following table lists the results for the AF_XDP deployment with macvlan-xdp over a dedicated LACP bond of wan0 and wan1:

Comparison

The following table compares the two deployments:

What the figures depend on

Three limits stop some FPP 3.1.0 figures before VPP runs out of threads. The following table lists them:

Method

Each figure comes from one throughput search. The search raises the offered rate until packet loss goes above the loss budget. It then narrows the range between the last rate that passed and the first rate that failed. It stops when the step is smaller than the convergence value, which is a share of the start rate. Each figure is a single measurement.

The following table lists the parameters:

The test runs use the following traffic profiles:

  • Small packets: payloads of 20 to 24 bytes.
  • IMIX: a mix of 40-, 576-, and 1,374-byte packets.
  • Large packets: near the maximum transmission unit (MTU), about 1,372 bytes. Only the FPP 3.0.3 test run uses this profile.

The Gb/s figures count payload bytes only, without packet headers and Ethernet framing.

Test environment

The two test runs used different nodes. The following sections describe them.

FPP 3.1.0 test nodes

The FPP 3.1.0 test run uses two nodes for the uplink path and one node for the memif path. The following table lists their specification:

The following diagram shows the uplink path. The generator on each node sends and receives traffic at the same time. It connects to VPP on the same node over memif. The two VPP instances send the traffic to each other across the SR-IOV uplink:

The following diagram shows the memif path. Three generators on each side send traffic to VPP. VPP passes every packet through the four CGW instances in turn and then to the generators on the other side. The numbers show the order of the steps for upload traffic. Download traffic goes through the chain in the reverse order:

FPP 3.0.3 test nodes

The FPP 3.0.3 test run uses the following hardware and software:

The following diagram shows the SR-IOV deployment:

SR-IOV deployment
SR-IOV deployment

The following diagram shows the AF_XDP deployment:

AF_XDP deployment
AF_XDP deployment

Each node uses two bonded interfaces, one for cluster networking and one for the FPP Data Plane:

The network requires LACP bonds, so both bonds are 802.3ad LACP bonds on the host. LACP does not run on VFs. VPP with DPDK takes VFs from the bond members and runs a static XOR bond that matches the host LACP bond.