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 direct NIC assignment

This document describes the prerequisites and steps for a multi-node deployment of Fast Path Provider (FPP) using direct NIC assignment. This guide utilizes the fpp-generic composition.

For alternative configurations, please refer to the tutorials on a SRIOV Networks 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 E810, vendor ID: 8086, device ID: 1593, model name: E810-XXVDA4

Intel E810 support

Check the Intel DDP package section of the Data Plane configuration guide for more details.

Steps

  1. Identify the PCI IDs for the NICs that will be assigned to the FPP node pods. To perform the initial NIC configuration, follow the steps outlined in the Configure Direct NIC Access section.
  2. Create an FPPDeployment object for a multi-node direct-NIC deployment and configure basic options.
  3. Configure the init container to use the identified PCI IDs by following the steps in the init container configuration guide.
  4. Map the PCI IDs to the spec.directNICMappings field in the FPPDeployment. For detailed instructions, see Configure Direct NIC Access.
  5. Configure the uplink IP addresses and external networks by following the instructions in the Uplink IPs and External Networks section.
  6. Verify the FPPDeployment status to ensure it is working correctly.

Configuration example

This configuration example deploys FPP multi-node deployment using Direct NIC attachment.

yaml

Configuration options

Basic configuration

For basic FPPDeployment options, see Single Node deployment guide.

For purpose of this guide, we will use NICs with PCI IDs:

  • 0000:8a:00.1
  • 0000:8a:00.3

Configure init container

The FPP node deployment utilizes spec.additionalInitContainers to define an init container that binds NICs to the vfio-pci driver. Since the binding is reapplied every time the FPP node pod restarts, this method is inherently reboot-safe. The following example demonstrates how to use spec.additionalVolumes to grant the container access to the host's /sys directory.

yaml

Specify NIC mappings

Use spec.directNICMappings to map each interface name to its corresponding PCI ID:

yaml

The keys define the NIC interface prefixes (to which an index is automatically appended), while the values consist of a list of PCI IDs. For example, the mapping above will generate the uplink0 and uplink1 network interfaces in VPP for use as uplinks.

To assign an IP address to the FPP uplink interface, use the spec.vppConfigs setting in the FPPDeployment. Each per-node entry should specify the uplink interface's IP address and VLAN ID. Additionally, you can define external network interfaces by providing extra VLAN IDs. Refer to the example below:

yaml

Use spec.uplinkConfig.ips to assign IP addresses to the uplink interface. Additionally, spec.uplinkConfig.vlanId can be used to create a dedicated VLAN subinterface for the uplink.

Configure spec.externalNetworkConfig.vlanId to create a VLAN subinterface connected to an FPPNetwork with VXLAN ID 1. This setup enables external connectivity for workloads associated with that FPPNetwork. Additionally, set spec.externalNetworkConfig.ifacePrefix to uplink-bond, which is the prefix automatically generated for bonded DPDK interfaces.

NIC preparation

Configure direct NIC access

The FPP node can use Physical Functions (PFs) as uplinks. This approach eliminates the need for an SR-IOV operator, allowing NIC PCI IDs to be passed directly within the FPP deployment.

To identify which network cards the FPP should use, run the following command on the dataplane node in the Core Cluster:

bash

Sample output:

bash

In this example, the PCI IDs 8a:00.1 and 8a:00.3 are selected. When using PFs with VPP, you must utilize the vfio-pci driver.

Ensure that no Virtual Functions (VFs) are created on these NICs. If the SR-IOV Network Operator is active, any SriovNetworkNodePolicy Custom Resources associated with these NICs must be removed.

Below is an example of how to manually disable VFs on the machine:

bash

Once the VFs are disabled, you must bind the NICs to the vfio-pci driver. This is typically handled by an init container within the FPP node deployment. Below is an example of the commands executed:

bash

In the configuration above, 8086 1593 represents the vendor and device ID of the NIC. You can retrieve this information for your specific hardware by running:

bash

Sample output:

bash

NIC mappings

The FPPDeployment's spec.directNICMappings setting is translated into environmental variables in the FPP Node DaemonSet:

yaml

The following DPDK interfaces are configured in startup.conf:

sh

uplink0 and uplink1 can be used in spec.vppConfigs beforeCommands and afterCommands sections. VPP Operator creates these VPPInterface objects corresponding to these NICs to be used as uplinks or as external network interfaces according to the external network prefixes defined in spec.vppConfigs (interfaces not matching any interface name prefixes are used as uplinks).

Verification

First, check if FPPDeployment was setup correctly.

Next, you can verify whether a VPPInterface VLAN object with your desired vlanId was created on the Core Cluster and whether its status is ready.

Run the following command on the Core Cluster to do it:

bash

As a response, you get a VPPInterface object. See the example:

yaml

You can also verify the interface creation by running the following command in the FPP node pods:

bash

In the resulting list, look for your interface by its ID (as in uplink-bond.{ID}):

text