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.

Deploy Fast Path Provider on multiple nodes using SRIOV networks as FPP uplinks

This document describes the prerequisites and steps for a multi-node deployment of Fast Path Provider (FPP) using SRIOV networks as FPP uplinks. This guide uses the fpp-dpdk composition.

For alternative configurations, please refer to the tutorials on a direct NIC assignment and the AF_XDP driver.

Prerequisites

Terminology used in the installation document:

  • FPP node - FPP pod in the node mode, which acts as a virtual switch on each Data Plane node
  • Uplink - network interface, virtual or physical, which is used by FPP node to communicate inside the cluster and create a VXLAN mesh to interconnect workload CNFs between nodes

Supported NICs

The following Network Interface Cards are supported using this installation guide:

  • Intel X710, vendor ID: 8086, device ID: 1572, model: Ethernet Controller X710 for 10GbE SFP+
  • Intel XL710, vendor ID: 8086, device ID: 1583, model: Ethernet Controller XL710 for 40GbE QSFP+
  • Intel X710, vendor ID: 8086, device ID: 1589, model: Ethernet Controller X710/X557-AT 10GBASE-T
  • Intel XXV710, vendor ID: 8086, device ID: 158b, model: Ethernet Controller XXV710 for 25GbE SFP28

FPP requires the SR-IOV Network Operator to set PCIDEVICE_ as environment variables with a PCI device ID, for example:

sh

The above variable is set by SRIOV Network Device Plugin, which can be installed independently or by SRIOV Operator.

FPP was tested with the following versions of SRIOV Operator:

Steps

  1. Configure the SR-IOV Operator to generate the required Network Attachment Definitions for Uplinks as described here.
  2. Create FPPDeployment object for a multi-node SRIOV deployment and configure the basic options.
  3. Configure the uplinks as described in the corresponding section.
  4. Optionally, configure external networks to meet your specific networking requirements.
  5. Verify the FPPDeployment status to ensure it is working correctly.

Configuration example

The following FPPDeployment configuration example demonstrates the use of SR-IOV Virtual Functions (VFs). This specified resource allocation is optimized to ensure best performance.

yaml

Configuration options

Basic configuration

For basic FPPDeployment option, see Single Node deployment guide.

For a need of this guide, we will use these SRIOV networks:

  • fpp/uplink0-vfio
  • fpp/uplink1-vfio

The fpp-dpdk composition defines the spec.dpdkComposition field, allowing you to specify the SR-IOV Operator resource name and associated networks:

yaml

The configuration above ensures the proper setup of the SR-IOV Virtual Functions as VPP uplink interfaces.

When using the fpp-generic composition, you need to explicitly configure the spec.uplinkResources and spec.vppConfigs:

yaml

The uplink interfaces are configured in spec.vppConfigs[].spec.uplinkConfig. Set spec.vppConfigs[].nodeName to "" and this will apply configuration to all FPP node pods. Configuration example:

yaml

External network interfaces

The fpp-dpdk composition does not automatically configure external networking. To set up external network interfaces using Virtual Functions (VFs), you must define the spec.externalNetworks field:

yaml

To configure an external network interface with a specific IP address, MTU, or FPPNetwork name, use the spec.vppConfigs setting as shown in the following example:

yaml

vppConfigs[].spec.externalNetworkConfig.ifacePrefix must match spec.externalNetworks key name (ext-net or anotherExtNet from above example).

The vppConfigs[].spec.externalNetworkConfig.networkName must reference existing FPPNetwork object on the Core Cluster. FPP-based workloads (CGW, UPG) which are connected to this FPPNetwork (fpp-ext-net) can use defined IP (10.100.0.1/24) as a routing gateway.

For more information on other available settings in spec.vppConfigs, refer to the VPPConfig documentation.

Enable FPP Overlay Network monitoring

FPP 3.0.5 introduces node-to-node monitoring using an FPPNetwork with VXLAN VNI 1 over the Uplink interface. You can enable this feature (disabled by default) by setting spec.enableUplinkMonitoring to true within the FPPDeployment, and then monitor the network state on the FPP Overview Grafana dashboard. For more details, see the docs.

Detailed configuration

Configure the SRIOV Operator

You need to configure SriovNetworkNodePolicy objects for uplinks. The configuration includes the NIC selector, node selector and resource name.

Set spec.resourceName to uplink0, uplink1 and so on, which together with RESOURCE_NAME of openshift.io specified for SR-IOV Network Operator results in Kubernetes resource names like openshift.io/uplink0, openshift.io/uplink1 and so on.

The following is an example of SriovNetworkNodePolicy for Intel XL710 VFs:

yaml

The above example creates 4 VFs on eth0 NIC on nodes that match nodeSelector. If the hardware is different across different nodes of the cluster (different NICs or their PCI configurations), there should be multiple SriovNetworkNodePolicy objects created with different nodeSelector values. This also requires creating multiple FPP node deployments with different networks attached to it through NetworkAttachmentDefinitions.

If multiple uplinks are used, VPP Operator creates a bond that is comprised of these uplinks.

You also need to create SriovNetwork objects for the uplinks. For uplinks that are used without bonding, you need to specify IP address in the ipam section. In the case of bonded interfaces, the first interface among bonded must have an IP address. You can use Whereabouts CNI IPAM pluginOpens in a new tab to facilitate this task. A SriovNetwork with an assigned IP address may look like this:

yaml

Verification

First, check if FPPDeployment was setup correctly.

Next, verify the SR-IOV setup and perform a connectivity check to ensure everything is functioning correctly.

Once enabled in the FPPDeployment, you can verify node-to-node connectivity by viewing the FPP Overlay Network status on the FPP Overview Grafana dashboard.