The load-balance command configures a load balancing mode for an Eth-Trunk interface, and this command is used for unicast packets only.
The undo load-balance command restores the default load balancing mode, and this command is used for unicast packets only.
By default, the load balancing mode of an Eth-Trunk interface is per-flow load balancing, which uses hash factors configured in the slot view for each service.
Parameter | Description | Value |
---|---|---|
src-dst-mac | Indicates that Eth-Trunk interfaces perform load balancing based on source and destination MAC addresses. |
- |
src-dst-ip | Indicates that Eth-Trunk interfaces perform load balancing based on source and destination IP addresses. |
- |
packet-all | Indicates that Eth-Trunk interfaces perform load balancing based on all the packets. |
- |
symmetric-hash | Indicates symmetric load balancing. |
- |
complement | Indicates the compensation mode for symmetric load balancing. |
- |
Usage Scenario
A data flow is a group of datagrams with the same source and destination MAC addresses and source and destination IP addresses. For example, a Telnet or FTP connection between two devices is a data flow.
Frames of the same data flow sent from an interface rather than a trunk interface can arrive at the destination in sequence because only one physical connection exists between the two devices. However, if a trunk interface is configured, multiple physical links exist between two devices. The first sent frame may arrive later than the second sent frame. To prevent frame disorder, a data forwarding mechanism is introduced into the trunking technology to ensure that the frames of the same data flow are sent to the destination in sequence. This mechanism distinguishes data flows based on MAC or IP addresses and sends diagrams that belong to the same data flow over the same physical link. After the data forwarding mechanism is introduced:Configuration Impact
If packet-all is specified to perform per-packet load balancing, note the following points:
Precautions
If the load-balance command is run more than once, the latest configuration overrides the previous one, and the load-balance command can take effect to the unicast traffic.
Symmetric load balancing support only Eth-Trunk interfaces, and does not support non Eth-Trunk interfaces and ECMP scenarios. When the function is configured on P-nodes, hash factors of traffic on different directions of GRE,IPv6 over IPv4 and GTP, tunnels may be different, which may cause traffic to be hashed to different links.Whether to reverse IP addresses on both directions is ensured by configuration. Choose the parameter symmetric-hash to configure symmetric load balancing, and choose the parameter symmetric-hash complement to configure the compensation mode for symmetric load balancing.