For both PAgP and LACP EtherChannels, Catalyst switches use a polymorphic algorithm that utilises key fields from the header of the packet to generate a hash, which is then matched to a physical link in the EtherChannel group. In other words, the switch distributes the traffic load across the links in an EtherChannel by reducing part of the binary pattern formed from the addresses in the frame to a numerical value that selects one of the links in the EtherChannel.
This operation can be performed on MAC addresses or IP addresses and can be based solely on source or destination addresses, or even both source and destination addresses. While delving into detail on the actual computation of the hash used in EtherChannel load distribution is beyond the scope of the CCNA exam requirements, it is important to know that the administrator can define which fields in the header can be used as input to the algorithm used to determine the physical link transport to the packet.
The load-distribution method is configured via the port-channel load-balance [method] global configuration command. Only a single method can be used at any given time. Table 33.3 below lists and describes the different methods available in Cisco IOS Catalyst switches when configuring EtherChannel load distribution:
Table33.3 – EtherChannel Load-Distribution (Load-Balancing) Options
|
Method |
Description |
| dst-ip | Performs load distribution based on the destination IP address |
| dst-mac | Performs load distribution based on the destination MAC address |
| dst-port | Performs load distribution based on the destination Layer 4 port |
| src-dst-ip | Performs load distribution based on the source and destination IP address |
| src-dst-mac | Performs load distribution based on the source and destination MAC address |
| src-dst-port | Performs load distribution based on the source and destination Layer 4 port |
| src-ip | Performs load distribution based on the source IP address |
| src-mac | Performs load distribution based on the source MAC address |
| src-port | Performs load distribution based on the source Layer 4 port |