Analysis and introduction of load balancing principle
The following brings you an analysis and introduction of the principle of load balancing, hoping to give you some help in practical application. There are many things involved in load balancing, not many theories, and there are many books on the Internet. today, we will use the accumulated experience in the industry to do an answer.
1. Experimental Topology
2. The principle of load balancing
Equal-cost load balancing: by default, EIGRP only supports equal-cost load balancing. By default, it supports equal-cost load balancing of 4 lines. You can view it through show ip protocols. It can support equal-cost load balancing of up to 16 lines. The number of load balancing lines can be modified through maximum-paths 16 during the EIGRP routing process.
Unequal-cost load balancer: the condition for unequal-cost load balancing is: FD of FS < variance * FD of Successor. It must be noted that it must be FS, otherwise even the FD that satisfies FD < variance * Successor cannot form unequal cost load balancer.
3. Basic configuration
R1
Interface Serial0/0
Ip address 13.1.1.1 255.255.255.0
Interface Serial0/1
Ip address 14.1.1.1 255.255.255.0
Router eigrp 90
Network 13.1.1.0 0.0.0.255
Network 14.1.1.0 0.0.0.255
No auto-summary
R2
Interface Serial0/0
Ip address 24.1.1.2 255.255.255.0
Interface Serial0/1
Ip address 23.1.1.2 255.255.255.0
Router eigrp 90
Network 23.1.1.0 0.0.0.255
Network 24.1.1.0 0.0.0.255
No auto-summary
R3
Interface Loopback0
Ip address 3.3.3.3 255.255.255.0
Interface Serial0/0
Ip address 13.1.1.3 255.255.255.0
Interface Serial0/1
Ip address 23.1.1.3 255.255.255.0
Router eigrp 90
Network 3.3.3.0 0.0.0.255
Network 13.1.1.0 0.0.0.255
Network 23.1.1.0 0.0.0.255
No auto-summary
R4
Interface Serial0/0
Ip address 24.1.1.4 255.255.255.0
Interface Serial0/1
Ip address 14.1.1.4 255.255.255.0
Router eigrp 90
Network 14.1.1.0 0.0.0.255
Network 24.1.1.0 0.0.0.255
Maximum-paths 16
No auto-summary
4. Equal cost load balancing
After configuring EIGRP based on the experimental topology, two equal-cost load-balanced routes are formed by default to the loop 3.3.3.3 of R3.
In the case of equal-cost load balancing, the traffic is shared equally.
5. Unequal cost load balancing
In order to achieve the effect of unequal cost load balancing, we first modify the delay of R4's s0max 0 port and change the original DLY 20000 usec to DLY 2000 usec, so that the next hop of the optimal route to 3.3.3.0 will be 24.1.1.2.
At this point, it can be seen that the AD with the next hop of 14.1.1.1 is smaller than the FD of the Successor with the next hop of 24.1.1.2, so it can form a FS. To achieve unequal cost load balancing, we just need to set variance to 2: 2297856