A popular way of load balancing is creating eth-trunk interfaces, but many times this is done without considering this little fact, when adding interfaces to the eth-trunk it is important to remember that if the number is the nth power of 2, the load balance will be more even. Here is a simple and effective way to check if the eth-trunk contains an nth power of 2 number of interfaces.
Checking Whether the Number of Member Interfaces is the nth Power of 2
Procedure
<HUAWEI> display eth-trunk 1 verbose
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: LACP
Preempt Delay Time: 1 Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 0018-82d4-04c3
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2 Selected 1GE 10 262 2609 10111100 1
GigabitEthernet0/0/3 Selected 1GE 10 263 2609 10111100 1
GigabitEthernet0/0/4 Unselect 1GE 32768 264 2609 10100000 1
NOTE:
Method for identifying the selected Eth-Trunk member interface:
In LACP mode (the value of WorkingMode is LACP), the value of Status of the interface is Selected.
In manual load balancing mode (the value of WorkingMode is NORMAL), the value of Status of the interface is Up.