> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/1.3/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/fpp/1.3.md).

# Fast Path Provider (FPP) Manager

>**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 enables [VPP](https://fd.io/)-centric fast
network plumbing for Kubernetes clusters. 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 VPP](https://github.com/travelping/fpp-vpp) with downstream VPP patches that support Cennso Network Solutions.

![FPP Architecture](https://docs.cennso.com/api/assets/components/fpp/1.3/assets/fpp-architecture.svg)

The distinguishing features of FPP are:

* 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 CNI](https://github.com/k8snetworkplumbingwg/multus-cni)
* works with [SR-IOV Network Operator](https://github.com/openshift/sriov-network-operator)
* 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 Manager](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/)-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 Diagram](https://docs.cennso.com/api/assets/components/fpp/1.3/fpp.svg)

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 nodes
- `IPFIXExporter`: configures IPFIX export functionality in VPP
- `RoutingTable`: specifies routes to be installed in VPP
- `VPPConfig`:  general VPP configuration, including VPP CLI commands
- `VPPInterface`: configures VPP interface inside the local VPP instance

A detailed description is available in the [Custom Resources](https://docs.cennso.com/components/fpp/1.3/crs.md) section.

## FPP-CNI
FPP-CNI is a Kubernetes CNI plugin, which can be used together with [Multus CNI](https://github.com/k8snetworkplumbingwg/multus-cni)
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 Overview` dashboard for observability
- FPP - the main chart that deploys FPP Manager and FPP-CNI software
