Load Unbalancing Occurs When an IP-Trunk Performs the Hash Algorithm Based on the Source and Destination IP Addresses

Publication Date:  2013-12-31 Views:  551 Downloads:  0
Issue Description
On the customer's live network, an NE40 router of version 5.30 (NE40&80 V300R002C01B599) provides Internet Protocol television (IPTV) live broadcast service. Two POS interfaces (6/0/0 and 6/0/1) on the NE40 router are bundled into an IP-Trunk to send packets to a multicast group (containing multiple multicast sources). The load-balance src-dst-ip command is executed to configure IP-Trunk load balancing, but the two POS interfaces fail to balance traffic (traffic proportion reaching 2:1).
Alarm Information
eSight is used as the network management platform. Based on statistics collected by eSight software, bandwidth usage of POS6/0/0 reaches 80% for a long period of time, while that of POS6/0/1 only reaches about 40%. eSight prompts an orange alarm.
Handling Process
The direct solution is to change the IP addresses. IP addresses on the customer's live network are fixed and cannot be modified. Therefore, replace the load-balance src-dst-ip command with the load-balance packet-all command that performs the hash algorithm on all packets. In this way, load balancing is implemented.
Root Cause
The load-balance src-dst-ip command is executed to configure IP-Trunk load balancing. However, this command configures an IP-Trunk to perform the hash algorithm based on the source and destination IP addresses. The last bits of the source and destination IP addresses are used to perform exclusive OR (XOR) operation. The operation result (0 or 1) is used as the basis for traffic allocation. Collect relevant configurations. It is found that the IP-Trunk address is 182.138.0.117 30 and multicast network segments in the multicast group are as follows:
238.123.41.0 24
238.128.43.64 26
238.128.43.32 27
238.128.43.16 28
238.123.43.8 32
238.128.43.128 25
238.123.145.0 24
238.123.43.10 32
238.123.43.11 32
238.123.43.13 32
238.123.43.12 32
238.123.43.14 32
238.123.43.15 32
238.123.45.192 26
238.123.45.132 32
238.123.45.150 32
238.123.45.12 32
238.123.45.11 32    
238.123.45.18 32
The XOR operation is performed. Fifteen 1s and three 0s are found in the XOR operation result. The proportion of operation result 1 to operation result 0 is 5:1. Such an algorithm results in unbalanced traffic on the interfaces, failing to reach the expected load balancing effect.
Suggestions
IP addresses should be well planned and assigned for load balancing.

END