Link Aggregation Control Protocol (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 LACP 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. This concept will be described later in this chapter when we learn about the different EtherChannel load-distribution methods.
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 Gigabit Ethernet port channel. Unlike PAgP, where ports are required to have the same speed and duplex settings, LACP mandates that ports be only full-duplex, as half-duplex is not supported. Half-duplex ports in an LACP EtherChannel are placed into the 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. LACP frames are encoded with the EtherType value 0x8809. Figure 5-6 below illustrates these fields in an Ethernet frame:

Fig. 5-6. IEEE 802.3 LACP Frame
LACP Architecture
Architecturally, the LACP application is a client to the MAC Sub-Layer. In other words, with LACP, link aggregation applies to the MAC Sub-Layer of the Data Link Layer. The Link Aggregation Sub-Layer binds multiple physical ports and presents them to upper Layers of the stack as a single logical port. The major LACP architectural components (or blocks) are illustrated in Figure 5-7 below:

Fig. 5-7. LACP Architectural Blocks
Table 5-2 below lists and describes the core components illustrated in Figure 5-7:
Table 5-2. EtherChannel Formation Using Different LACP Modes
| Component | Description |
|---|---|
| Collector | The Collector accepts frames from the physical link and passes them to upper layers. The Collector parses special marker packets from the incoming stream. These packets are then passed to the LACP agent. The LACP agent can also instruct the Distributor to generate marker response packets. |
| Distributor | The Distributor transmits outgoing frames from the MAC client to links in the aggregation group. This block also implements the distribution algorithm, which is used to redistribute traffic among links. To do so, the higher layer sends a special marker packet at the point where it wishes to re-distribute traffic and waits for the marker response packet. The marker response packet is generated by the receiving agent only after all frames have been passed to the higher layer applications. |
| Marker and Marker Response | These are used to maintain frame ordering when moving frames from one link in the group to another, such as when a physical link fails. |
The LACP defines frame collection and distribution along with an LACP agent. The LACP defines two modes to re-distribute traffic among links. First is with the use of special packets called markers. The frame collector at either end of the link parses special marker packets from the incoming stream. These packets are then passed to the LACP agent. In addition to this, the LACP agent can also instruct the distributor to generate marker response packets.