Interface bonding is a generic term for the following:
- Link aggregation
- Link teaming
- NIC teaming
- Port channeling
- EtherChannels
The idea behind this technique is taking multiple interfaces and bundling them to increase the amount of throughput between two devices and add some redundancy. Link aggregation can use any type of interfaces (e.g., 100Mbps, 1Gbps, and 10Gbps), but all the interfaces within a bundle must have the same capacity. Such connections are used in scenarios in which you need redundancy and/or you have a high amount of traffic traveling between two network devices, usually in data center environments at the Core or Distribution Layer. The most common use for link aggregation is connecting two switches, as shown in Figure 19.5 below:
Figure 19.5 – Link Aggregation
In addition to increasing throughput, interface bonding also offers another important benefit, which is redundancy. If one link in the bundle fails, the rest keep forwarding traffic and the logical link (the bundle) remains active. If the logical link goes down, that means all of the components on the physical link also go down.
| Note: Devices on both ends of the connection must be configured for link aggregation; otherwise, the logical link bundle will not function.
|
Link aggregation is a very popular technology and is typically deployed between the Distribution Layer and the Core Layer, or between Core Layer devices where increased availability and scalability is needed. However, port aggregation is usually disabled on interfaces that are facing end-users.
Two commonly used link aggregation protocols are:
- Link Aggregation Control Protocol (LACP): an open standard protocol
- Port Aggregation Protocol (PAgP): a Cisco proprietary protocol
Link Aggregation Control Protocol Overview
LACP is part of the IEEE 802.3ad specification for creating a logical link from multiple physical links. Because LACP and PAgP are incompatible, both ends of the link need to run either LACP or PAgP in order to automate the formation of EtherChannel groups.
As is the case with PAgP, when configuring LACP EtherChannels, all LAN ports must be the same speed and must all be configured as either Layer 2 or Layer 3 LAN ports. If a link within a port channel fails, traffic previously carried over the failed link is switched over to the remaining links within the port channel. Additionally, when you change the number of active bundled ports in a port channel, traffic patterns will reflect the rebalanced state of the port channel.
LACP supports the automatic creation of port channels by exchanging LACP packets between ports. It learns the capabilities of port groups dynamically and informs the other ports. Once LACP identifies correctly matched Ethernet links, it facilitates grouping the links into a GigabitEthernet port channel. Unlike PAgP, where ports are required to have the same speed and duplex settings, LACP mandates that ports be full-duplex only, as half-duplex is not supported. Half-duplex ports in an LACP EtherChannel are placed into a suspended state.
By default, all inbound Broadcast and Multicast packets on one link in a port channel are blocked from returning on any other link of the port channel. LACP packets are sent to the IEEE 802.3 Slow Protocols Multicast group address 01-80-C2-00-00-02, and LACP frames are encoded with the EtherType value 0x8809. The screenshot below illustrates these fields in an Ethernet frame:
Figure 19.6 – Ethernet Frame (LACP)
LACP Port Modes
LACP supports the automatic creation of port channels by exchanging LACP packets between ports. LACP does this by learning the capabilities of port groups dynamically and informing the other ports. Once LACP identifies correctly matched Ethernet links, it facilitates grouping the links into a port channel. Once an LACP mode has been configured, it can only be changed if a single interface has been assigned to the specified channel group. LACP supports two modes: active and passive.
LACP Active Mode
LACP active mode places a switch port into an active negotiating state in which the switch port initiates negotiations with remote ports by sending LACP packets. Active mode is the LACP equivalent of PAgP desirable mode. In other words, in this mode, the switch port actively attempts to establish an EtherChannel with another switch that is also running LACP.
LACP Passive Mode
When a switch port is configured in passive mode, it will negotiate an LACP channel only if it receives another LACP packet. In passive mode, the port responds to LACP packets that the interface receives but does not start LACP packet negotiation. This setting minimizes the transmission of LACP packets. In this mode, the port channel group attaches the interface to the EtherChannel bundle. This mode is similar to the auto mode that is used with PAgP.
Table 19.1 below shows the different LACP combinations and the result of their use in establishing an EtherChannel between two switches:
Table 19.1 – LACP Modes
|
Switch 1 LACP Mode |
Switch 2 LACP Mode |
EtherChannel Result |
|
Passive |
Passive |
No EtherChannel Formed |
|
Passive |
Active |
EtherChannel Formed |
|
Active |
Active |
EtherChannel Formed |
|
Active |
Passive |
EtherChannel Formed |
Port Aggregation Protocol
PAgP is a Cisco proprietary link aggregation protocol that enables the automatic creation of EtherChannels. By default, PAgP packets are sent between EtherChannel-capable ports to negotiate the forming of an EtherChannel. These packets are sent to the destination Multicast MAC address 01-00-0C-CC-CC-CC. The screenshot below shows the fields contained within a PAgP frame as seen on the wire:
Figure 19.7 – PAgP Frame
PAgP Port Modes
PAgP supports different port modes that determine whether an EtherChannel will be formed between two PAgP-capable switches. Before we delve into the two PAgP port modes, one particular mode deserves special attention. The “on” mode is sometimes incorrectly referenced as a PAgP mode: however, it is not a PAgP port mode.
The on mode forces a port to be placed into a channel unconditionally. The channel will be created only if another switch port is connected and is configured in the on mode. When this mode is enabled, there is no negotiation of the channel performed by the local EtherChannel protocol. In other words, this effectively disables EtherChannel negotiation and forces the port to the channel. It is important to remember that switch interfaces that are configured in the on mode do not exchange PAgP packets. Switch EtherChannels using PAgP may be configured to operate in one of two modes: auto or desirable.
Auto Mode
Auto mode is a PAgP mode that will negotiate with another PAgP port only if the port receives a PAgP packet. When this mode is enabled, the port(s) will never initiate PAgP communication but instead will listen passively for any received PAgP packets before creating an EtherChannel with the neighboring switch.
Desirable Mode
Desirable mode is a PAgP mode that causes the port to initiate PAgP negotiation for a channel with another PAgP port. In other words, in this mode, the port actively attempts to establish an EtherChannel with another switch running PAgP.
Table 19.2 below shows the different PAgP combinations and the result of their use in establishing an EtherChannel:
Table 19.2 – PAgP Modes
|
Switch 1 PAgP Mode |
Switch 2 PAgP Mode |
EtherChannel Result |
|
Auto |
Auto |
No EtherChannel Formed |
|
Auto |
Desirable |
EtherChannel Formed |
|
Desirable |
Auto |
EtherChannel Formed |
|
Desirable |
Desirable |
EtherChannel Formed |


