Fast Path Provider
Note
FPP is the abbreviation used to refer to the networking framework, while FPP Manager is the Golang application. This applies to the whole project documentation.
Fast Path Provider (FPP) is a Cennso Network Core (CNC) project, which provides a framework for running VPPOpens in a new tab (Vector Packet Processing) on Kubernetes clusters to provide a fast data path for the user plane traffic. Vector Packet Processing (VPP) is an open-source software-based network processing framework that provides a fast, scalable, and extensible platform for building high-performance network applications. It is designed to run on commodity hardware and supports a wide range of network protocols, including IPv4/IPv6, GRE, VXLAN, and much more.
This diagram describes the general architecture and workflow of Fast Path Provider (FPP) and its correlation to the related resources:
- User creates the FastPathProvider Custom Resource (CR) and modifies it according to their needs to deploy VPP in a Kubernetes cluster.
- Cennso Operator watches for the FastPathProvider CR based on which it either creates or modifies two technical CRs:
- VPPDeployment - CR based on which FPP Operator creates the VPP DaemonSet
- VPPConfig - CR based on which FPP Operator configures the VPP DaemonSet
- FPP Operator, which is a part of the Cennso Operator, watches for the VPPConfig and VPPDeployment CRs and creates or updates the VPP DaemonSet based on them.
- To set up the infrastructure, the user creates a set of CRs:
- RoutingTable - CR used to create routes and routing for a network
- FPPNetwork - CR used to create a virtual network for FPP
- NetworkAttachmentDefinitionOpens in a new tab - external, Multus CNI-based CR that contains the specification of a network interface. Multus CNI, that is a prerequisite to Cennso installation, watches for the NetworkAttachmentDefinition CR and forwards its content to the FPP CNI that translates it further to the VPPInterface CR.
- FPP Operator watches for the RoutingTable, FPPNetwork, and VPPInterface CRs and configures the VPP DaemonSet according to them.
VPP uses a vectorized approach to packet processing, which means that it processes packets in batches, rather than one at a time. This enables VPP to achieve very high packet processing rates and low latency, even on commodity hardware.
FPP creates high-performance distributed networks based on the virtual L2 switch concept. Such networks can be connected to the host NICs and external networks, providing connectivity for the CNFs running on the cluster. This allows you to build solutions based on fast packet processing in user space.
FPP uses FPP VPPOpens in a new tab with downstream VPP patches that support Cennso Network Solutions.
The distinguishing features of FPP are:
- single central controller managing VPP configuration and lifecycle
- memif interface is used to connect VPP-based workloads
- VPP's fast tap driver is used to connect pods with Linux networking
- VXLANs are used to connect the pods together and different VNIs for interfaces can be used to partition the network
- both VPP-based and Linux networking pods can have multiple FPP interfaces with the help of Multus CNIOpens in a new tab
- works with SR-IOV Network OperatorOpens in a new tab
- NICs or VFs are handled by VPP out of the box, without the use of a slow AF_PACKET driver
- VPP interface configuration for both VPPSwitch daemon pods and VPP-based workloads is stored in Kubernetes CRs, which are continuously reconciled against the state of corresponding VPP processes, enabling dynamic reconfiguration
- CNI is provided for the pods (although you can also configure VPPInterface CRs directly)
- CPU ManagerOpens in a new tab-aware VPP core selection out of the box
FPP Components
FPP Manager
FPP Manager is used for creating VPP-based L2 switches (VPP Switches) that run as daemon pods on the nodes of the cluster.
FPP manages network interfaces of the following types in the cluster:
- memif - high-performance user space in memory interface usually for VPP-based CNFs
- TAP - userspace interface to connect regular Linux Based CNFs and Workloads, to be used by standard Linux networking-based applications
- DPDK NIC Interface - interfaces utilizing high-performance NIC Driver based on DPDK that can handle physical NICs and SR-IOV Virtual Functions
- Tunnel-Based Interfaces: VXLAN, GRE or similar, to interconnect cluster endpoint with remote endpoints
FPP Manager synchronizes VPP configuration with the state of Kubernetes API resources (Custom Resources, CRs). The application is implemented in Go, which makes it possible to import it as a Go module, extending the VPP reconciliation mechanism and the set of metrics that it exposes.
Kubernetes API extensions
FPP provides a set of Custom Resource Definitions to extend Kubernetes API with FPP-related objects.
The FPP Management API provides the Resources belonging to the fpp-manager.cennso.com API group:
FPPNetwork: creates overlay L2 networks that connect cluster nodesIPFIXExporter: configures IPFIX export functionality in VPPRoutingTable: specifies routes to be installed in VPPVPPConfig: general VPP configuration, including VPP CLI commandsVPPInterface: configures VPP interface inside the local VPP instance
A detailed description is available in the Custom Resources section.
FPP-CNI
FPP-CNI is a Kubernetes CNI plugin, which can be used together with Multus CNIOpens in a new tab to setup FPP-based interfaces.
Deployment method
FPP provides a Helm chart for the installation of all FPP components. There are 3 charts available:
- FPP CRD - installs FPP Custom Resource Definitions
- FPP Support - installs Prometheus Service Monitor for gathering metrics and Grafana
FPP Overviewdashboard for observability - FPP - the main chart that deploys FPP Manager and FPP-CNI software