(Optional) Configuring a Load Balancing Mode
Context
An Eth-Trunk uses flow-based load balancing. Flow-based load balancing ensures that frames of the same data flow are forwarded on the same physical link. Different data flows are forwarded on different physical links to balance the network load.
You can configure a common load balancing mode in which IP addresses or MAC addresses of packets are used to load balance packets; you can also configure an enhanced load balancing mode for Layer 2 packets, IP packets, and MPLS packets.
Load balancing is valid only for outgoing traffic; therefore, the load balancing modes for the interfaces at both ends of the link can be different without affecting each other.
When more than 128 Eth-Trunks or 16 member interfaces are configured using the assign trunk { trunk-group group-number | trunk-member member-number }* command, only the enhanced mode can be used for load balancing. If the enhanced mode is not used, problems such as packet loss and uneven load balancing may occur.
SA series cards do not support the enhanced load balancing mode. SA series cards still use the common load balancing mode even if enhanced load balancing is configured.
Procedure
- Configure a common load balancing mode.
- Configure
an enhanced load balancing mode.
The preceding load balancing modes apply only to known unicast traffic. To configure a load balancing mode for unknown unicast traffic, run the unknown-unicast load-balance { dmac | smac | smacxordmac | enhanced } command in the system view.
When the enhanced load balancing mode is used for unknown unicast traffic, specify the VLAN ID in the load balancing profile. When the outbound interface is an Eth-Trunk and is added to a user VLAN, multicast traffic on the device equipped with all X series cards can be load balanced based on the user VLAN. If other cards are installed on the device, multicast traffic on the device cannot be load balanced based on the user VLAN.