Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

BGP Deterministic Path Forwarding in a CLOS Network

BGP Deterministic Path Forwarding Overview

BGP deterministic path forwarding (DPF) divides a physical fabric into multiple logical fabrics, where different flows are mapped to different logical fabrics to serve the requirements of the flows. Single-hop EBGP's best effort service might not meet all data center flow requirements, especially for drop and latency-sensitive AI-ML flows. BGP DPF selects a path based on the specified logical fabric to ensure optimum link utilization.

BGP DPF is an alternative to RSVP-TE for data center IP fabrics. Data centers usually use single-hop EBGP for IPv4 and IPv6 routing. This is a simple and scalable hop-by-hop EBGP routing that provides a single best effort service for all traffic flows. BGP DPF divides a physical fabric into multiple logical fabrics. This allows both IPv4, and IPv6 traffic to be mapped to different logical fabrics. You can use separate logical fabrics for load balancing across links based on available bandwidth, and with different service level agreements (SLA). You can configure DPF to map flows to multiple logical fabrics to avoid fate sharing.

BGP DPF colors the single-hop EBGP session on each link with a fabric color. For example, if a link belongs to the red fabric, the EBGP session over the link is assigned a red BGP color community. A single-hop EBGP neighbor can be assigned a color at the global, group or neighbor level. A route with no color community assigned can be advertised over any colored or uncolored EBGP sessions.

Note:
  • If there is a color mismatch on either side, the receiver marks the route as hidden.

  • All colored routes can be advertised over an uncolored BGP neighbor. To allow certain routes over only certain colors, do not have a mix of uncolored and colored fabrics.

  • You can advertise uncolored routes over all colored fabrics. To advertise matching colored routes over a colored fabric, do not have uncolored routes, except for those carrying light control traffic only.

In Figure 1, Spine1 and Spine 2 are connected to leaf 1 and leaf 2 devices with multiple connections. BGP DPF colors the single-hop EBGP session on each link with a fabric color. Spine 1 belongs to the red fabric, the EBGP sessions over the red link are also colored red. Spine 2 belongs to the blue fabric, the EBGP sessions over the link are also colored blue. BGP advertises IP routes over the EBGP session based on color matching. BGP advertises a route over a red EBGP session if it only has the red color community. BGP advertises a route over a blue EBGP session if it belongs to the blue color community.

Figure 1: BGP DPF: Divide a physical fabric using colored EBGP sessions BGP DPF: Divide a physical fabric using colored EBGP sessions

Benefits of BGP DPF

  • A lightweight traffic engineering solution for IP fabrics.

  • Correlation of underlay with overlay that isolates large elephant flows from small mice flows.

Note: We do not support Egress Link Protection (ELP) and Assisted Replication with fabric-color configuration. However, we still support these features for uncolored routes.

Configure BGP Deterministic Path Forwarding in a CLOS Network

This example shows how to configure BGP DPF in a 3-CLOS IP fabric:
  1. Configure EBGP sessions between the spine and leaf nodes.
  2. Specify a color for BGP neighbors at the global level.
  3. (Optional) Configure fabric color at the BGP group or neighbor levels. When a neighbor is colored, only routes with the same color or no assigned color are advertised through this neighbor. Also, only routes with the same color or no assigned color are allowed to be received by this neighbor. Routes with any other colors are marked as hidden.
  4. Enable route advertisement with fabric color. These routes are advertised automatically based on the color configurations. They do not need an export policy to advertise these routes. If a color is configured, the route is advertised over the EBGP neighbors of the same color. The color community is also added for the route advertised over the colored fabric.
    Note: If you do not configure a color, the route is advertised to all EBGP peers.
  5. (Optional) Configure route advertisement with a backup color. When both color and backup-color are configured for a fabric-advertise route, an AIGP metric of 0 is added to the route. This metric signals the receiver to prefer the route when advertised over primary color neighbors.
  6. Verify the configuration using the following commands.
    • Use the show bgp summary fabric-color color command to display neighbors with the specified fabric color only.

    • Use the show bgp neighbor fabric-color color command to display neighbors with the specified fabric color only.

    • Use the show bgp fabric-advertise command to display all advertise routes configured and their colors.

    • Use the show route command to display the route details of the advertising protocol.