For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Fast Path Provider 2.11, an older release. The newest release is 3.2. Go to 3.2

FPP BGP support

Border Gateway Protocol (BGP) is supported using the VPPTool Custom Resource which defines the tool (in the case of BGP, Bird application) to be deployed inside the FPP pod as a side container.

The FPP pod which supports BGP has an init container and multiple main containers. One is fpp main container, and the others are VPPTool containers like tool-bird or tool-bird-exporter.

FPP uses the VPP Linux Control Plane (LCP) pluginOpens in a new tab. This plugin allows VPP to integrate with the Linux kernel. The general model is that Linux is the network stack, which means that it has the control plane protocols, like ARP, IPv6 ND/MLD, ping, and so on, and VPP provides a SW-based ASIC for forwarding.

BGP as VPPTool

To use BGP support in FPP, create VPPTool outside of the FPP Helm chart:

yaml

BGP metrics exporter

Bird Exporter is supported with another VPPTool:

yaml

Caution

Modifying the VPPTool objects restarts all Amberd pods that use it, which causes network downtime.

Sample BGP IPv4 configuration

Reference the created bird tools in FPP chart values YAML:

yaml

The reference is based on VPPTool object name (VPPTool.metadata.name). Bird metrics needs to be enabled in the values.yaml file.

The following diagram shows an example of CGW with BGP deployment:

CGW BGP Diagram
CGW BGP Diagram

See the full YAML configuration for the CGW with BGP example:

yaml

BGP configuration

The BGP configuration is kept in VPPConfig, for example:

yaml

spec.toolsConfigs[].name must match VPPTool.metadata.name.

BGP monitoring

The fpp-support chart allows the creation of a Grafana dashboard and Prometheus ServiceMonitor to enable BGP monitoring, example values.yaml:

yaml

BGP-related metrics are exposed in the Routing row.

BGP over GRE

In complex scenarios, BGP peering can occur over a GRE tunnel, so a GRE interface must be created. Also, the LCP interface is required to be created for the BGP daemon to populate the routes into VPP:

yaml

In the above example, 10.10.0.1/24 is the IP address of the GRE tunnel endpoint using the external-nic interface to communicate to the other end of the GRE tunnel located at 10.0.0.2. external-nic is created by a Helm chart in the networks section.

It is important to use the same name in vppInterfaces[].ifname and in vppInterfaces[].lcp.attachTo. This is the VPPInterface CR object name and will be adjusted by the Helm chart to be unique by using the chart release name as a prefix.

Networking configuration

Use this configuration to create connected routing tables:

yaml

These are the networks used for the CGW1 example:

yaml

See the configuration for FPPNetworks that are created outside of the FPP Helm chart:

yaml

BGP IPv6 support

FPP 2.3.1 introduces the BGP IPv6 support. To enable this, you must create a new VPPTool with bird6:

yaml

BGP dual stack

FPP supports dual IPv4 and IPv6 BGP configuration using two VPPTools: one for bird (IPv4) and a second for bird6 (IPv6). The BGP metrics exporter supports dual stack configuration.

Caution

Make sure that bird-exporter VPPTool is updated as provided in BGP metrics exporter section.

The following diagram shows an example of CGW with BGP dual stack deployment:

CGW BGP Dual Diagram
CGW BGP Dual Diagram

The full BGP dual configuration is included as an FPP Helm chart values YAMLOpens a file.

The difference between a single stack bird setup and a dual stack configuration is:

  • Include bird6 as VPPTool:
yaml
  • Add BGP configuration:
yaml
  • Add LCP1 interface connected to external-nic:
yaml
  • Configure the IPv6 addresses on internal and external NICs:
yaml

Bird2 support

FPP supports bird2 using the registry.cennso.com/cennso/nettools:v1.13.0 image. The new version of bird2 supports a different BGP configuration than bird 1.6 used in the FPP image. bird2 enables the dual-stack configuration using a single binary (single VPPTool). A new VPPTool bird2-exporter is required to gather BGP metrics.

Define bird2 VPPTool

Define the following VPPTool:

yaml

Define bird2-exporter

Bird exporter with bird2 support:

yaml

Configure bird2

This diagram shows a sample CGW deployment used in the dual-stack configuration where bird2 supports the use of both IPv4 and IPv6 in a single binary (single VPPTool):

CGW BGP Bird2 diagram
CGW BGP Bird2 diagram

Sample BGP configuration for bird2 dual-stack IPv4 and IPv6:

conf

The full BGP bird2 configuration is included as an FPP Helm chart values YAMLOpens a file.

The setup uses a single GRE tunnel for both IPv4 and IPv6. A single VPPTool is used, which uses a single bird.conf file.

Setup verification

Check the number of containers

The BGP-enabled VPP pod needs to have at least three containers: one main FPP container (fpp), a container with a running BIRD process (tool-bird), and a tool-bird-exporter container that exposes metrics in Prometheus format. Also, the init container must be present. If IPv6 is also used, tool-bird6 must be present as well.

Check tool-bird container logs

Bird logs are visible in the tool-bird container logs of the FPP pod.

Check the applied BGP configuration

To check if BGP configuration and peering is active, run this command in the Amberd pod of the fpp container:

bash

Table number (10) must match the internal-rt table created above.

See the output example:

text

To check BGP peering on the tool-bird container, use the birdc diagnostic tool to get the state:

bash
bash
bash

See the output example:

bash