Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

EVPN-VXLAN Type 5 Unequal Load Balancing

EVPN-VXLAN Type 5 Unequal Load Balancing uses the EVPN Link Bandwidth Extended Community to advertise Layer 3 link bandwidth and dynamically balance traffic across multihomed devices.

The EVPN-VXLAN Type 5 unequal load-balancing feature optimizes traffic distribution across multihomed devices by leveraging the EVPN Link Bandwidth Extended Community to advertise and use bandwidth information from Layer 3 links. This functionality enables bandwidth-based load balancing across multihomed devices by dynamically adjusting traffic distribution based on available bandwidth, ensuring efficient load management, especially during link failures. You can configure OSPF, IS-IS, and BGP protocols to integrate this bandwidth data, enhancing route management and inter-data center communications. The EVPN Link Bandwidth Extended Community enables efficient bandwidth data exchange, using megabits per second (Mbps) as the measurement unit. This mechanism is essential for networks with variable link bandwidth, ensuring efficient and reliable traffic flow across various platforms. In the event of inconsistent bandwidth data, the system defaults to equal-cost multipath (ECMP) routing to maintain network stability.

Benefits of Unequal Load Balancing

  • Improves traffic distribution by utilizing real-time bandwidth information, reducing congestion and enhancing overall network performance.

  • Enables unequal load balancing across multihomed devices, ensuring more efficient use of available network resources.

  • Enhances inter-data center communications through aggregate bandwidth calculations, facilitating smoother and more reliable data exchanges.

  • Provides robust traffic management by integrating bandwidth data from OSPF, IS-IS, and BGP learned routes, offering better route optimization.

  • Alerts users to bandwidth inconsistencies via system logs, allowing for proactive monitoring and troubleshooting to maintain optimal network operations.

Overview of Unequal Load Balancing for EVPN-VXLAN Type 5 Routing

Unequal load balancing in EVPN-VXLAN Type 5 overlays leverages the EVPN Link Bandwidth Extended Community to distribute network traffic based on the actual bandwidth of Layer 3 links. When you configure this feature your network can prioritize paths with higher bandwidth capacity, optimizing traffic flow and reducing congestion. The feature dynamically balances traffic by advertising bandwidth information, which remote PE devices use to calculate precise traffic balance factors for next-hop routes. This capability is crucial for maintaining optimal performance in complex, multihomed network scenarios.

We support OSPF, IS-IS, and BGP protocols in unequal load balancing to ensure that bandwidth-based traffic management is seamless across various network architectures. You can achieve comprehensive bandwidth distribution across data centers by aggregating bandwidth information from multiple multihomed leaf devices and propagating it using Type 5 routes. Syslog notifications alert you to any inconsistencies or missing bandwidth information for timely troubleshooting and to ensure the reliability of your network's traffic management.

You configure unequal load balancing by applying bandwidth policy statements and monitoring the results, as follows:

  • Use policy statements such as set policy-options policy-statement name then aggregate-bandwidth.

  • Export the policies using set routing-instances name protocols evpn ip-prefix-routes export name.

  • Verify the distribution and balance of traffic across multihomed devices using the show evpn ip-prefix-database extensive command.

These policies facilitate advertising the bandwidth details in EVPN Type 5 routes, including the EVPN Link Bandwidth Extended Community, which is essential for the remote PE devices to perform accurate load balancing.

How EVPN-VXLAN Unequal Load Balancing Works

In this illustration we have a customer edge device CE 1, connected to two multihomed devices, Leaf 1 and Leaf 2.

  • The link between Leaf 1 and CE 1 has a bandwidth capacity of 3 flow units.

  • The link between Leaf 2 and CE 1 has a bandwidth capacity of 5 flow units.

The flow units here represent the aggregated capacity and could be a single or multiple physical links.

The multihomed devices use the EVPN Link Bandwidth Extended Community to advertise the available bandwidth in Type 5 routes to a route reflector (not shown).

The Remote PE router in the EVPN network connects to the multihomed devices via a VXLAN-encapsulated tunnel.

A route reflector (not shown) distributes the EVPN routes between the multihomed devices and the remote PE device.

Figure 1: Traffic Flows Traffic Flows

In Figure 1, Leaf 1 advertises a link bandwidth capacity of 3 flows to the remote PE device, while Leaf 2 advertises a bandwidth capacity of 5 flows. As a result, the remote PE device maintains a unilist of next hops, which includes the VXLAN-encapsulated tunnels to Leaf 1 and Leaf 2, with a traffic distribution balance factor based on the 3:5 ratio of flows. This ratio reflects the relative link bandwidth capacities between the two multihomed devices, ensuring traffic is distributed accordingly.

The remote PE device ensures it receives the Type 5 route with the EVPN Link Bandwidth Extended Community from all multihomed devices, and verifies the consistency of the Value-Units fields. If the EVPN Link Bandwidth Extended Community is missing from the Type 5 route of any multihomed device, or if there is an inconsistency in the Value-Units, the remote PE device generates a syslog message and follows regular ECMP forwarding to the multihomed devices.

After the remote PE device validates the consistency of the Value-Units fields, the remote PE device:

  • Uses the Value-Weight received from each multihomed device to compute a relative weight for each device.

  • Uses that relative weight to compute a weighted path-list for load balancing instead of using an ECMP path-list.

Configure and Manage Unequal Load Balancing

To effectively manage and use bandwidth-based load balancing in EVPN-VXLAN Type 5 networks, ensure that the EVPN Link Bandwidth Extended Community is consistently applied across all multihomed devices. If discrepancies occur, the system defaults to standard ECMP forwarding, and generates system log messages to alert you of the issues.

You use CLI commands to set up bandwidth aggregation options, ensuring efficient configuration and verification of load balancing settings. Begin by defining bandwidth policies using the policy-statement configuration to aggregate bandwidth from Layer 3 links and ensure these policies are correctly exported through EVPN Type 5 routes. You can also configure OSPF, IS-IS, and BGP protocols to integrate their bandwidth data to enhance route management.

You use the show route and show evpn ip-prefix-database extensive commands to verify the bandwidth distribution and see detailed information about bandwidth allocation and balance factors. Check the system log messages for missing or inconsistent bandwidth information that can trigger an ECMP fallback.

Integrate OSPF Learned Bandwidth

Use the OSPF spf-options multipath weighted one-hop configuration to associate the gateway L3 link bandwidth with OSPF learned routes.

This configuration enables WECMP for load-sharing data based on the bandwidth for incoming traffic destined to OSPFv2 neighbors that are at a one-hop distance. This associates the bandwidth information with each gateway as shown in the outputs below.

When the above route is advertised as an EVPN Type 5 route, it aggregates the L3 gateway links bandwidth and adds it to the EVPN Link Bandwidth Extended Community as shown in the outputs below:

Integrate IS-IS Learned Bandwidth

Use the IS-IS spf-options multipath weighted one-hop configuration to associate the gateway L3 link bandwidth with IS-IS learned routes.

This configuration enables WECMP for load-sharing data based on the bandwidth for incoming traffic destined to for IS-IS interfaces like the OSPF version does for OSPF. You can use the same show route commands to view the IS-IS information as you would for OSPF.

Integrate BGP Learned Bandwidth

Use the BGP multipath and auto-sense configurations to associate the gateway L3 link bandwidth with BGP learned routes.

The BGP multipath configuration enables load sharing among multiple EBGP paths and multiple IBGP paths.

The auto-sense configuration enables auto-sensing of link bandwidth and attaching the BGP Link Bandwidth community to a route at import.

Note:

You can configure automatic sensing of link bandwidth only on single-hop EBGP neighbors.

When more than one BGP link-bandwidth community is attached to the route, BGP ignores transitivity and installs the lowest link-bandwidth value to the forwarding table (FIB).

With the above configurations, you can view the bandwidth and the balance factor associated with each gateway using the show route and show route extensive expanded-nh commands.

When the above route is advertised as an EVPN Type 5 route, it aggregates the L3 gateway links bandwidth and adds it to the EVPN Link Bandwidth Extended Community as shown in the outputs below:

Link Bandwidth Aggregation Across Data Centers

When a data center spine device receives a Type 5 route with the EVPN Link Bandwidth Extended Community from a multihomed device, it installs the route into its VRF.inet.x table. The spine device aggregates the bandwidth received from each multihomed device and adds that to the EVPN Link Bandwidth Extended Community when it advertises that route to another data center.

Verify and Troubleshoot Unequal Load Balancing

You can verify the bandwidth distribution with the show evpn ip-prefix-database extensive command. This command provides detailed insights into bandwidth allocation and balance factors. It will also indicate the Unequal ECMP status. For example, in the first output below, the Unequal ecmp state: is Enabled. However, in the second output, gateway 10.255.1.2 is not advertising EVPN link bandwidth information, so Unequal ecmp state: is Disabled. In this case the system defaults to ECMP routing to maintain network stability.

Note:

The show evpn ip-prefix-database extensive outputs only display the bandwidth information when the feature is enabled.

In the event of an error, such as a PE router not advertising bandwidth information, or an inconsistent Value-Units in the EVPN Link Bandwidth Extended Community, the output displays Unequal ecmp state: Disabled.

The outputs below illustrate what might be seen on the Remote PE device in Figure 1 when looking at the information received from Leaf 1 and Leaf 2.

This output shows the Remote PE receiving EVPN link bandwidth data from both Leaf 1 and Leaf 2.

This output shows the Remote PE receiving EVPN link bandwidth data from Leaf 1, but not receiving it from Leaf 2.

To help troubleshoot this feature, check the syslog for EVPN_WECMP messages. These messages alert you to missing or inconsistent bandwidth information that will trigger an ECMP fallback. For example, the following message alerts you to an ECMP fallback due to a PE router not advertising the EVPN Link Bandwidth Extended Community. In this case you also run the show evpn ip-prefix-database extensive command (see the command output above) to find more information about unequal load balancing issues.