ECMP and UCMP

Route load balancing can be classified as Equal-Cost Multiple Path (ECMP) or Unequal-Cost Multiple Path (UCMP).

ECMP

ECMP evenly load-balances traffic over multiple equal-cost paths to a destination, irrespective of bandwidth. Equal-cost paths have the same cost to the destination.

When the bandwidth of these paths differs greatly, the bandwidth usage is low. On the network shown in Figure 1, traffic is load-balanced over three paths, with the bandwidth of 10 Mbit/s, 20 Mbit/s, and 30 Mbit/s, respectively. If ECMP is used, the total bandwidth can reach 30 Mbit/s, but the bandwidth usage can only be 50%, the highest.

Figure 1 ECMP networking

UCMP

UCMP load-balances traffic over multiple equal-cost paths to a destination based on bandwidth ratios. All paths carry traffic based on their bandwidth ratios. As shown in Figure 2. This increases bandwidth usage.

Figure 2 UCMP networking

Trunk load balancing does not have ECMP or UCMP, but has similar functions. For example, if interfaces of different rates, for example, GE and FE interfaces, are bundled into a trunk interface, and weights are assigned to the trunk member interfaces, traffic can be load-balanced over trunk member links based on link weights. This is implemented in a similar way as UCMP. By default, the trunk member interfaces have the same weight of 1. The default implementation is similar to ECMP, but all member interfaces can only have the lowest forwarding capability among all.

Additional Explanation of UCMP

  • Currently, only per-flow load balancing is supported by UCMP. If both UCMP and per-packet load balancing are configured, per-packet load balancing with ECMP takes effect.
  • Among the paths used for UCMP, the bandwidth of any link cannot be smaller than the total bandwidth divided by the maximum number of load balanced paths supported on the board. Otherwise, the path carries no traffic.
  • The interfaces that support UCMP are Ethernet interfaces, GE interfaces, Eth-Trunk interfaces, and TE tunnel interfaces.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >