You are on page 1of 2

Checking Whether Packet Characteristics Match the Load Balancing Mode

Procedure

1. Check whether the characteristics of packets forwarded by the Eth-Trunk match the configured load balancing mode. If the
packet characteristics does not match the load balancing mode, for example, the MAC address of packets is variable but the
load balancing mode is src-ip, load balancing cannot be performed.
Perform the following steps:
a. Determine packet characteristics.
i. Determine the variable field of packets.
Check whether the MAC address, IP address, or MPLS label in packets changes.
ii. Determine the packet type.
Check whether packets are IP packets, MPLS packets, or Layer 2 packets.
iii. Determine the forwarding mode of packets.
The forwarding processes and the default hash algorithms are different for known and unknown unicast
packets.

NOTE:
If the destination MAC address of packets does not exist in the MAC address table, the packets are unknown
unicast packets.
b. Check the load balancing mode of the Eth-Trunk.
Check the load balancing mode of the Eth-Trunk based on the determined packet forwarding mode (known or
unknown unicast packets).
 Check the load balancing mode of known unicast packets.
Run the display eth-trunk command to check the Hash arithmetic field. This field specifies the configured load
balancing mode. You can also run the display this command in the Eth-Trunk interface view.
<HUAWEI> display eth-trunk 1
display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: down Number Of Up Port In Trunk: 0
------------------------------------------------------------------
PortName Status Weight
……

NOTE:
Load balancing parameters:
SIP indicates the source IP address; DIP indicates the destination IP address; SA indicates the source MAC
address; DA indicates the destination MAC address.
SIP-XOR-DIP indicates that the outbound interface is selected based on the Exclusive-OR result of source and
destination IP addresses.
SA-XOR-DA indicates that the outbound interface is selected based on the Exclusive-OR result of source and
destination MAC addresses.
ENHANCED indicates that a load balancing profile is applied and the outbound interface is selected based on
the load balancing mode specified in the profile.
If the load balancing mode is set to ENHANCED, check the load balancing mode specified in the profile.
There is only one global load balancing profile. This profile takes effect for both known and unknown unicast
packets, and uses different fields for calculation based on the packet type.
<HUAWEI> display load-balance-profile
Load-balance-profile: test //name of the load balancing profile
Packet HashField
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IPV4 sip dip
IPV6 sip dip
L2 smac dmac
MPLS top-label 2nd-label

 Check the load balancing mode of unknown unicast packets.


 <HUAWEI> display current-configuration | include unknown-unicast load-balance
unknown-unicast load-balance dmac
c. Check whether packet characteristics match the load balancing mode.
If packet characteristics do not match the load balancing mode, change the load balancing mode based on the traffic
model on the live network. When the load balancing mode based on the variable parameter is used, traffic is evenly
load balanced.
For example, one PC is used for testing, and the source IP address and source MAC address of packets remain
unchanged but the destination IP address and destination MAC address change. If the load balancing mode is based
on the source IP address or source MAC address, traffic cannot be load balanced. Load balancing must be based on
the destination IP address or destination MAC address so that packets can be load balanced.
If known unicast packets are used, run the following commands:
<HUAWEI> system-view
[HUAWEI] interface Eth-Trunk 1
[HUAWEI-Eth-Trunk1] load-balance dst-mac
[HUAWEI-Eth-Trunk1] quit
If unknown unicast packets are used, run the following commands:
<HUAWEI> system-view
[HUAWEI] unknown-unicast load-balance smac
If the load balancing profile is used, change the load balancing mode for specific type of packets (IPv4, IPv6, MPLS, or
Layer 2 packets).
For example, the load balancing mode for IPv4 packets in the load balancing profile test is dip.
<HUAWEI> system-view
[HUAWEI] load-balance-profile test
[HUAWEI-load-balance-profile-test] ipv4 field dip
[HUAWEI-load-balance-profile-test] quit
Revelations | Next

You might also like