LACP (Link Aggregation Control Protocol)
What it is for
When two switches need more bandwidth, connecting a second cable directly creates an L2 loop, and STP blocks one of the links, so the extra bandwidth goes unused.
LACP (802.1AX) aggregates several links into one logical port. STP sees it as a single link with no loop, so all the links can forward at once.
How traffic is spread
Traffic is spread across member links by flow hash, not packet by packet in turn.
The device hashes the five-tuple (or source/destination MAC) to choose which member link a flow uses. All packets of that flow always use the same link.
Per-packet round-robin is not used because it delivers packets out of order; TCP mistakes reordering for loss and slows down, making the bundle slower.
So a single flow cannot use the aggregate bandwidth: with two 10G links bundled, one large file transfer still gets 10G.
Common misconceptions
With two 10G links bundled, a single download still gets 10G. A single flow uses one member link; only multiple flows can fill the aggregate.
Static bonding does not negotiate. If one end is configured for bundling and the other is not, a loop forms. LACP handshakes first and does not bundle without a reply from the peer.
Losing a member link does not trigger reconvergence. LACP just removes that member from the bundle; the logical port stays up and the layers above (STP, routing) do not notice.