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
- Requirements
- VPP Operator deployed
- NIC firmware updated to the latest version in the case of Intel e810 cards for direct NIC assignment in FPP node pod
Terminology used in the installation document:
- FPP node - FPP pod in the
nodemode, 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
- 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.
- Create an FPPDeployment object for a multi-node direct-NIC deployment and configure basic options.
- Configure the init container to use the identified PCI IDs by following the steps in the init container configuration guide.
- Map the PCI IDs to the
spec.directNICMappingsfield in the FPPDeployment. For detailed instructions, see Configure Direct NIC Access. - Configure the uplink IP addresses and external networks by following the instructions in the Uplink IPs and External Networks section.
- Verify the FPPDeployment status to ensure it is working correctly.
Configuration example
This configuration example deploys FPP multi-node deployment using Direct NIC attachment.
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.10000: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.
Specify NIC mappings
Use spec.directNICMappings to map each interface name to its corresponding PCI ID:
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.
Configure Uplink IPs and external networks
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:
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:
Sample output:
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:
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:
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:
Sample output:
NIC mappings
The FPPDeployment's spec.directNICMappings setting is translated into environmental variables in the FPP Node DaemonSet:
The following DPDK interfaces are configured in startup.conf:
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:
As a response, you get a VPPInterface object. See the example:
You can also verify the interface creation by running the following command in the FPP node pods:
In the resulting list, look for your interface by its ID (as in uplink-bond.{ID}):