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.

You are reading Fast Path Provider 2.9, an older release. The newest release is 3.2. Read this page in 3.2

Fast Path Provider 2.4.0

Release date: 2024-06-24

Fast Path Provider (FPP) 2.4.0 provides the following features and fixes:

  • Add VPP interface traffic capturing
  • Add NAT metrics
  • Simplified routing tables creation in VPPConfig
  • Fix the loops_per_second metric
  • Change defaultDataSize to 3776 for memifs

Note

Before upgrading to the newest version, read the instructions provided in the migration guide.

Features

Add VPP interface traffic capturing

FPP 2.4.0 introduces VPP interface traffic capturing using the MEMCAP plugin. You can configure any VPP interface to copy packets to the shared memory interface (MEMCAP connection ring) from where a separate component - MEMCAP Sink - processes the traffic stream. The FPP pod acts as a traffic collector and only the single copy of the packet is done on the FPP side. The MEMCAP Sink component is responsible for processing the received traffic.

Add NAT metrics

FPP 2.4.0 exposes VPP NAT metrics:

  • vpp_nat_flow_count - current number of NAT flows. Example: vpp_nat_flow_count{index="0",thread="0"} 123.
  • vpp_max_nat_flows - maximum number of NAT flows. Example: vpp_max_nat_flows 10000000.

The new metrics are available in the NAT row in the CGW Overview Gradafa dashboard.

Simplified routing tables creation in VPPConfig

Previously, you had to create required routing tables manually as CLI commands in the spec.afterCommands section in the VPPConfig custom resource (CR). With this release, you can create required routing tables by simply providing a list of routing table IDs in the spec.routingTables section. This creates empty routing tables for both IPv4 and IPv6.

See the example of the new configuration:

yaml

Fixes

Fix the loops_per_second metric

In previous releases, the loops_per_worker metric was wrongly scraped and always showed the value 0. FPP 2.4.0 fixes this issue and adds per VPP worker thread label to this metric, for example: vpp_sys_loops_per_second{index="0",thread="0"} 1.

Change defaultDataSize to 3776 for memifs

The defaultDataSize for memifs set in FPP 2.3.0 was incorrect. The VPP data size (which consists of data size plus VPP header) needs to fit 4096 bytes for efficient memory layout. The memif header is 320 B, so the defaultDataSize must be set to 3776 to fit into the 4096 bytes limit.

FPP 2.4.0 sets defaultDataSize to 3776 for memif interfaces.

Known issues

The number of Rx/Tx queues and buffer/queue size cannot be modified when using CNI-less

The current implementation of CNI-less does not allow you to modify the following parameters in the VPPInterface object:

  • spec.memif.bufferSize
  • spec.memif.ringSize
  • spec.memif.numRxQueues
  • spec.memif.numTxQueues

It results from the VPP internal implementation.

If one of the above parameters requires change, remove and recreate VPPInterface with a new configuration. This action restarts the FPP/UPG instances if VPPInterface is used in VPPConfig.

Migration guide

This section describes in detail how to perform the FPP upgrade from version 2.X to 2.4.

Follow the migration steps below to use FPP 2.4.0 and its new functionalities, such as traffic capturing in FPP pods and the new VPPConfig parameter routingTables.

Caution

FPP 2.4.0 changes the default value of the defaultDataSize parameter for memif. If defaultDataSize is not defined and vpp.dpdk.enabled is set to false, FPP deployments will be restarted to apply the new default value of defaultDataSize=3776 to memif interfaces.

  1. Install FPP CRD in version 2.4.0.
  2. Install FPP Operator in version 2.4.0. This may trigger a restart of FPP deployments.
  3. Install the FPP Support chart in version 2.4.0 (if not installed before).
  4. Install the FPP chart in the node mode in version 2.4.0. It is required if:
    • FPP node is in version older than 2.2.0
    • You want to gather traffic capturing on the FPP node pod

Note

Starting from FPP 2.2.0, FPP provides the CNI-less feature, where FPP-CNI adds a legacy-instance label to VPPInterface created by pods labelled legacy-instance. This compatibility requirement occurs, for example, in UPG 2.X.