Configuring MBGP Load Balancing

MBGP load balancing improves network resource usage.

Usage Scenario

Traffic can be balanced among BGP routes only when the first nine attributes described in "BGP Route Selection Rules" and the AS_Path of the routes are the same.

Pre-configuration Tasks

Before configuring MBGP load balancing, configure an MBGP peer.

Procedure

  • Configure MBGP peer or peer group-based load balancing.

    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv4-family multicast

      The BGP-IPv4 multicast address family view is displayed.

    4. Run peer { ipv4-address | group-name } load-balancing [ as-path-ignore | as-path-relax ]

      MBGP peer or peer group-based load balancing is configured.

      After the peer load-balancing command is run, BGP peer-based load balancing is implemented only when the following conditions are met:
      • The routes are received from the specified peer or peer group.
      • The optimal route and optimal equal-cost routes exist.
      • The AS_Path attribute is the same as that of the optimal route, or as-path-ignore or as-path-relax is specified in the peer load-balancing command.
        • If as-path-ignore is specified, the device ignores comparing AS_Path attributes when selecting routes for load balancing. In this case, routes can participate in load balancing even if their AS_Path attributes are different.
        • If as-path-relax is specified, the device ignores comparing the AS_Path attributes of the same length when selecting routes for load balancing. In this case, routes cannot participate in load balancing if their AS_Path attributes are of different lengths. For example, the AS_Path attribute of route A is 10, and the AS_Path attribute of route B is 10, 20. Because the two AS_Path attributes are of different lengths, the two routes cannot participate in load balancing.
    5. Run commit

      The configuration is committed.

  • Configure global MBGP load balancing.

    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv4-family multicast

      The BGP-IPv4 multicast address family view is displayed.

    4. Run maximum load-balancing [ ebgp | ibgp ] number

      The maximum number of MBGP routes for load balancing is set.

    5. Run commit

      The configuration is committed.

Checking the Configurations

After configuring MBGP load balancing, check the configurations.

# Run the display bgp multicast routing-table command. The command output shows the MBGP routes for load balancing.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >