Deploy Fast Path Provider on multiple nodes using AF_XDP
This document describes the prerequisites and steps for a multi-node deployment of Fast Path Provider (FPP) using AF_XDP driver. This guide uses the fpp-af-xdp composition, which automatically creates a macvlan NetworkAttachmentDefinition for uplink connectivity.
For deployments using SRIOV, see SRIOV Networks as uplinks. For direct NIC assignment, see direct NIC assignment.
Prerequisites
- Requirements
- VPP Operator deployed
- Ensure you use linux kernel 6.X to successfully create AF_XDP interfaces for your uplinks.
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
How it works
The fpp-af-xdp composition uses the AF_XDP (Address Family - eXpress Data Path) driver for uplink connectivity. Unlike DPDK or SRIOV, AF_XDP works with standard Linux network interfaces without requiring specialized hardware or drivers.
The composition automatically:
- Creates a macvlan NetworkAttachmentDefinition on the target cluster
- Configures the FPP pods to use AF_XDP NIC mappings with the macvlan interface
- Uses WhereaboutsOpens in a new tab for IP address management within the uplink network
Steps
- Identify the network interface on the Core Cluster nodes that you intend to use for FPP uplinks. Any Linux interface with cross-node connectivity is suitable.
- Create an
FPPDeploymentobject on the Management Cluster using the fpp-af-xdp composition, and configure its basic options. - Configure the AF_XDP uplinks by properly defining the spec.afXDPComposition field.
- Adjust the VPP configuration as needed. Refer to the available configuration options for more details.
- Verify the FPPDeployment status to ensure it is working correctly.
Configuration example
Configuration options
Basic configuration
For basic FPPDeployment options, see Single Node deployment guide.
For purpose of this guide, we will use linux kernel interface bond0.
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.
AF_XDP uplink configuration
The spec.afXDPComposition section configures the uplink network:
- masterInterface - Name of the host network interface to use as the master for the macvlan network attachment (e.g.,
bond0,eth0). This interface must exist on all Data Plane nodes. - uplinkCIDR - CIDR for the FPP overlay network (e.g.,
10.10.0.0/24). Each FPP pod receives an IP address from this range via Whereabouts.
Note
AF_XDP uses a single uplink interface, so bonding configuration is not applicable. For bonded uplinks, use the SRIOV deployment instead.
VPP configuration
You can customize VPP behavior through the spec.vppConfigs field. A typical configuration for multi-node deployments:
Verification
First, check if FPPDeployment was setup correctly.
Next, verify that the fpp-node-macvlan NetworkAttachmentDefinition was created on the Core Cluster:
Sample output:
The uplink interfaces are created for each worker node, you can verify its existence using kubectl on the Core Cluster:
Sample output:
You can also verify the VPP interfaces by running the following command in the FPP node pods:
Sample output:
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.
Otherwise, you can initiate a manual ping using the uplink-xdp0 interface. First, determine the IP addresses of the FPP nodes by executing the following kubectl command on the Core Cluster:
Sample output:
This IP address is allocated from the IPAM range defined in the FPPDeployment's spec.afXDPComposition.uplinkCIDR field (e.g., 10.10.0.0/24).
Next, execute the vppctl ping command within the FPP node pod located on the {worker-node-name-1} node:
Proper output: