Sections:
Overview:
Load Balancing Methods
EtherChannel utilizes load balancing methods to allow for more efficient and optimized use of the available bandwidth for the distribution of traffic across multiple physical links in an EtherChannel group.
When traffic is forwarded through a channel, the switch uses a hashing algorithm to decide which of the available physical links of the group will be responsible for carrying each packet.
The goal of load balancing methods is to help evenly distribute the traffic load and maximize the available throughput, ensuring all links are utilized.
The load balancing method in either LACP or PAgP is configured in global configuration mode of a Cisco switch or router.
Available Load Balancing Methods (Hashing Methods)
Command to configure Load Balancing method: 'port-channel load-balance'
Key Load Balancing Points for EtherChannels
Once a packet is assigned to a particular link, it will follow the same link for the duration of the flow/session.
It's important to note that some traffic patterns might not be well distributed if the hashing algorithm doesn't account for the specific distribution of traffic.
The hashing algorithms typically work best in diverse environments and not concentrated on a small sample of addresses.
Load Balancing Method Best Practices
LACP - LACPDUs
The LACP protocol uses LACPDUs as a keepalive protocol mechanism to maintain both sides of a logical link
Lab Topology
Scenario: Lets analyze the LACPDUs sent and received by HQ-Distro-SW1
Cisco command to view the LACPDU counters: 'show lacp counters'
Example of the Fast LACPDU Interface Configuration
LACP - System Priority
LACP uses a concept of System Priorities to represent the master switch of an LACP configuration
Cisco command to view the system priority: 'show lacp sys-id'
LACP - Maximum Links
LACP uses a concept of Maximum Links to set a max number of physical interfaces to be active members in an EtherChannel
Cisco command to configure maximum links: 'lacp max-bundle'
LACP - Minimum Links
LACP uses a concept of Minimum Links to set a minimum number of physical interfaces for an EtherChannel to be active
Cisco command to configure minimum links: 'port-channel min-links'
LACP - Interface Priority
Similar to the System Priority feature, the master switch uses the concept of interface priorities to consider which link/port will be in the EtherChannel bundle
Cisco command to configure the LACP interface priority: 'lacp port-priority'
LACP - Hot Standby Example
LACP Hot Standby Lab Topology
Scenario: In this lab exercise, let's configure Hot standby links by implementing the Maximum & Minimum Links, System Priority, & Interface Priority advanced features simultaneously. In my GNS3 lab topology, DistroSW1 and CoreSW1 will consist of 3 redundant links in which 1 out of 3 will serve as a Hot standby state link.
System Priority
Notes:
Port Priority
Notes:
LACP EtherChannel Configuration
Core Switch
Next step is to configure and assign the EtherChannel group number to the interfaces of the core switch to bring up the logical bundle.
Maximum Links
Core Switch
Notes:
Testing Hot Standby Failover
Notes: