> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/3.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/fpp/3.2/releases/2.4.0.md).

# 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](#migration-guide).

## Features

### Add VPP interface traffic capturing

FPP 2.4.0 introduces VPP interface traffic capturing using the NetCap plugin. You can configure any VPP interface to copy packets to the shared memory interface (NetCap connection ring) from where a separate component - NetCap Collector - processes the traffic stream. The FPP pod acts as a traffic capturer and only the single copy of the packet is done on the FPP side. The NetCap Collector 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** Grafana 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
apiVersion: fpp-manager.cennso.com/v1alpha1
kind: VPPConfig
metadata:
  name: vpp-example
  labels:
    fpp-manager.cennso.com/plumbing-instance: vpp-instance
spec:
  afterCommands:
  - set acl-plugin acl permit src 10.0.0.0/24
  - abf policy add id 0 acl 0 via ip4-lookup-in-table 100
  - abf attach ip4 policy 0 {{ .Ifs.srv.Name }}
  - set acl-plugin acl permit src 10.0.1.0/24
  - abf policy add id 1 acl 1 via ip4-lookup-in-table 200
  - abf attach ip4 policy 1 {{ .Ifs.srv.Name }}
  interfaces:
  - srv
  # Creates IPv4 and IPv6 empty routing tables
  routingTables:
  - 100
  - 200
```

## 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`.
1. Install FPP Operator in version `2.4.0`. This may trigger a restart of FPP deployments.
1. Install the FPP Support chart in version `2.4.0` (if not installed before).
1. 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.
