Sub topic 16
Design considerations and limits
This chapter assumes you can configure and verify an LACP port channel, and that you know what a hash policy is and how spanning tree treats a bundle. Here you learn what a LAG cannot do, so you can size and design one before you build it.
A flow stays on one link
The switch hashes each flow to one member, so a single TCP session never exceeds one member's speed. A bundle of four 1 Gbps links gives 4 Gbps in total, but one backup job still runs at 1 Gbps. If a single flow needs more than a member can carry, use a faster link (10 Gbps instead of 4 x 1 Gbps) or split the work across many flows.
Distribution is statistical
A hash spreads traffic evenly only when there are many different flows. Three things commonly skew it:
- Few flows. Two large flows can land on the same member while others sit idle.
- Poor hash inputs. If all traffic goes between two hosts, a source/destination IP hash always produces the same value. Add Layer 4 ports where the platform allows it.
- Odd member counts. Many switches map the hash to 8 buckets. With 3 members, the buckets split 3, 3 and 2, so one link carries less.
BUCKETS = 8
def share(n_links):
counts = [0] * n_links
for bucket in range(BUCKETS):
counts[bucket % n_links] += 1
return [round(100 * c / BUCKETS, 1) for c in counts]
for n in (2, 3, 4):
print(n, "links:", share(n))The output shows 50/50 for two links, 37.5/37.5/25 for three, and 25 each for four. This is a simplified model, and real hardware differs. Prefer 2, 4 or 8 members when even balance matters.
Hard limits
Check your platform's documentation, because these limits vary:
| Limit | Typical value |
|---|---|
| Active members per bundle | Up to 8 |
| Members configured with LACP | Up to 16, where 8 are active and 8 are standby |
| Port channels per switch | Platform dependent |
| Member speed and duplex | Must match inside one bundle |
| Members across chassis | Only with MLAG or stacking |
Plan for failure
When a member fails, the surviving links carry its traffic. If the bundle ran at 70% utilization on four links, losing one pushes the remaining three to about 93%. Size the bundle so the surviving links can carry the peak load, or accept degraded service on purpose. Set a minimum-links threshold only if you want the whole bundle to drop when capacity falls too low, so traffic moves to another path.
A bundle on one switch is also a single point of failure. If that switch dies, all members die with it. MLAG removes that weakness, but it adds complexity: both peers need a peer link, consistent configuration, and a plan for split-brain behavior.
Choose the right tool
Exercise
A server with a four-member LACP bond (4 x 10 Gbps) runs one large file transfer between two hosts. The transfer reaches only 10 Gbps. Is the bond misconfigured? Name two ways to use more of the capacity.
Show answer
No. The hash maps one flow (one tuple of addresses and ports) to a single member, so one flow is limited to 10 Gbps. To use more capacity, split the transfer into several parallel flows with different source ports, or use a Layer 3+4 hash so the flows spread out. Alternatively, replace the bundle with a single faster link such as 40 Gbps.