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
- Requirements
- VPP Operator deployed
- SR-IOV Network OperatorOpens in a new tab installed in the Core Cluster
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 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
Uplinks using SRIOV VFs
FPP requires the SR-IOV Network Operator to set PCIDEVICE_ as environment variables with a PCI device ID, for example:
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:
- origin-sriov-operatorOpens in a new tab
4.3.0 - openshift/sriov-network operatorOpens in a new tab commit
104db73503782b16900ebc1ce14f809bde2f1086, based on release 4.9
Steps
- Configure the SR-IOV Operator to generate the required Network Attachment Definitions for Uplinks as described here.
- Create FPPDeployment object for a multi-node SRIOV deployment and configure the basic options.
- Configure the uplinks as described in the corresponding section.
- Optionally, configure external networks to meet your specific networking requirements.
- 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.
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-vfiofpp/uplink1-vfio
Configure uplinks
The fpp-dpdk composition defines the spec.dpdkComposition field, allowing you to specify the SR-IOV Operator resource name and associated networks:
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:
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:
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:
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:
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:
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:
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.