LACP

Also known as: Link Aggregation Control Protocol

On this page 7

LACP, the Link Aggregation Control Protocol, is a standard protocol that lets two directly connected devices negotiate, form and monitor a bundle of parallel Ethernet links that behaves as a single logical interface. In Ethernet & switching, it is the dynamic control plane for link aggregation, defined originally in IEEE 802.3ad and now maintained in IEEE 802.1AX.

By exchanging small control frames, LACP makes sure that only compatible, correctly cabled links join a bundle and that a failed link is removed automatically. The result is more aggregate bandwidth and redundancy without the loops that Spanning Tree Protocol would otherwise have to block.

LACP works by sending LACPDUs (LACP data units) out of every member port to the slow protocols multicast address 01-80-C2-00-00-02. Each LACPDU describes the sender as the actor and repeats what it last learned about the other side, called the partner.

A port joins the aggregate only when both ends agree on key values. The table lists the main fields that drive this decision.

FieldPurposeEffect on bundling
System priority and IDIdentifies the device, usually by MAC addressAll member links must reach the same partner system
Port keyGroups ports with identical capabilitiesPorts with different keys cannot share a bundle
Port priorityRanks ports when too many are availableLower value wins an active slot
Actor state flagsSignal activity, timeout, synchronization, collecting and distributingA link carries traffic only when both sides are in sync
Key fields carried in LACPDUs

When the state flags show synchronization, collecting and distributing on both sides, the link starts carrying frames. If LACPDUs stop arriving, the port is removed after a timeout, so a unidirectional fault or miscabling does not silently drop traffic.

Modes, timers and parameters

Each LACP port runs in either active or passive mode. An active port sends LACPDUs on its own, while a passive port only responds. At least one side must be active, otherwise no negotiation ever starts.

Side ASide BResult
ActiveActiveBundle forms, recommended setting
ActivePassiveBundle forms
PassivePassiveNo bundle, neither side starts
ActiveStatic onUsually fails or forms inconsistently
LACP mode combinations

Timers control how quickly a failure is detected. In slow rate, LACPDUs are sent every 30 seconds with a timeout of 90 seconds; in fast rate, they are sent every 1 second with a 3-second timeout. Fast rate detects silent failures much sooner, at the cost of slightly more control traffic and CPU work.

Most platforms also limit bundle size. Common limits are 8 active links, with some vendors allowing 16 or more and additional ports held as hot-standby members that activate when an active link fails.

Link aggregation can be configured statically, without any protocol, or dynamically with LACP. The difference matters most when something goes wrong, as the table shows.

ApproachFailure detectionMain risk
LACP (802.1AX)Detects physical and logical faults via LACPDUsMismatched keys keep ports out of the bundle
Static link aggregationPhysical link-down onlyMiscabling can black-hole traffic
Vendor protocols such as PAgPSimilar to LACP, proprietaryWorks only between devices of one vendor
Spanning Tree Protocol onlyBlocks redundant linksUnused capacity on blocked links
LACP versus other ways to use parallel links

LACP does not replace Spanning Tree Protocol; instead, STP sees the bundle as one logical port, so none of its members is blocked. LACP also differs from ECMP, which balances traffic across routed paths at layer 3 rather than across bundled Ethernet ports. LLDP is a separate discovery protocol that helps verify cabling but does not form bundles.

How traffic is distributed

LACP negotiates membership, but it does not decide which link carries each frame. That task belongs to a local hashing algorithm that maps every flow to one member link, which keeps frames of a flow in order.

The hash typically uses MAC addresses, IP addresses or TCP and UDP ports. Including layer 4 ports usually spreads traffic more evenly between many hosts. An important consequence is that a single flow never exceeds the speed of one member link: a four-link bundle of 10 Gbit/s ports offers 40 Gbit/s in aggregate, yet one file transfer still tops out at 10 Gbit/s.

Deploying LACP in practice

LACP is common between access and distribution switches, between switches and servers or hypervisors, and toward storage arrays and firewalls. For redundancy against a whole switch failing, vendors offer multi-chassis link aggregation, such as stacking or MLAG, where two physical switches present one LACP system ID.

Successful deployments follow a few rules that experienced engineers apply consistently. The table summarizes the most frequent mistakes.

MistakeSymptomFix
Mismatched speed or duplexSome ports stay suspendedUse identical speed on all members
Different VLAN or trunk settings per portPorts refused by the bundleConfigure on the logical interface
Passive mode on both endsBundle never comes upSet at least one side to active
Odd number of member linksUneven load on linksPrefer two, four or eight members
Expecting faster single transfersOne flow uses one linkUse faster links or parallel flows
Common LACP mistakes and fixes

Operators should also verify the partner system ID on every member port, because a cable patched to the wrong switch is exactly the fault that LACP is designed to catch. Using fast rate on links to servers and firewalls is a frequent recommendation when the platform supports it.

Understanding it simply

LACP is a way for two network devices to join several cables into one wider connection. Imagine a highway that gets extra lanes: more cars can travel at once, and if one lane closes, traffic keeps moving in the others.

The protocol is the conversation the two devices have to agree on which lanes belong together. They keep talking every few seconds, so if one lane is broken or plugged into the wrong place, it is taken out of use automatically. One car, however, still uses only one lane at a time.

Applied in practice

A hospital data center connects each virtualization host to a pair of top-of-rack switches running MLAG. Every host uses two 25 Gbit/s ports in an LACP bundle, with both sides in active mode and fast rate enabled, giving 50 Gbit/s of aggregate capacity for virtual machine traffic.

During maintenance, a technician mistakenly moves one host cable to a port on a different switch pair. Because the LACPDUs now report a different partner system ID, the switch suspends that port within about three seconds instead of forwarding traffic into the wrong network. The host keeps running on its remaining 25 Gbit/s link, monitoring raises an alert, and the cable is corrected before any patient record system is affected. LACP turned a cabling error into a harmless warning.