Sub topic 16
Design considerations and limits
This chapter covers the design limits of link aggregation and how to plan around them. It assumes you know how a LAG distributes frames with a hash, how LACP negotiates a bundle, and what minimum links does. It also assumes you can read basic switch and Linux CLI output.
What a LAG does not give you
A LAG adds capacity in aggregate and tolerates link failure. It does not make any single conversation faster. Most design mistakes come from forgetting this.
One flow, one link
The hash maps every frame of a flow to the same member, which keeps frames in order. A flow therefore never exceeds one member's speed. Four 10 Gbps members do not give a single backup job 40 Gbps. The job gets 10 Gbps, and the other three links serve other flows.
Typical cases where this bites:
- A single large file copy or database replication stream between two hosts.
- Traffic from one source to one destination when the hash uses only MAC or IP addresses. Every flow between the pair then looks identical.
- Tunnels such as IPsec, GRE, or VXLAN. The switch hashes the outer headers, so many inner flows can collapse into one outer flow. Some platforms can inspect inner headers, and some UDP-based tunnels vary the outer source port to restore entropy. Do not assume either.
If one application needs more than a member's speed, use faster member links (for example 25 or 100 Gbps) or an application that opens several parallel connections.
Each direction is hashed independently
Each end of the LAG chooses its own transmit member. The switch's hash policy does not control server-to-switch traffic, and the server's xmit_hash_policy does not control switch-to-server traffic. A good design configures both ends deliberately and checks utilization in both directions.
Uneven distribution
Hashing is statistical. With a few large flows, the distribution can be badly uneven even when the average looks fine.
| Cause | Symptom | Mitigation |
|---|---|---|
| Few flows, some very large | One member near line rate, others idle | Include L4 ports in the hash; use faster members |
| Hash inputs too coarse (MAC only) | All traffic behind a router uses one member | Use IP or IP plus port hashing |
| Member count not a power of two | Some members carry more flows than others on some platforms | Prefer 2, 4, or 8 members |
| Same hash at every tier | Traffic concentrates on the same member at each hop (polarization) | Vary the hash seed or inputs per tier, where the platform allows |
Some switches map hash results to members through a fixed number of buckets (often 8). With 3, 5, 6, or 7 members, the buckets do not divide evenly and some members receive more. This varies by platform, so check the vendor documentation before choosing an odd member count.
Averages hide hot links
Monitor each member's counters, not only the port channel's total. A port channel at 40% average utilization can have one member dropping packets at 100%.
Plan capacity for failure
A LAG with a failed member keeps working at reduced capacity. The remaining flows rehash onto the surviving members. Size the bundle for the load you expect after a failure, not only for the healthy case.
members = 4
speed_gbps = 10
peak_gbps = 28
for failed in range(0, 3):
capacity = (members - failed) * speed_gbps
print(f"{failed} failed: capacity {capacity} G, average utilisation {peak_gbps / capacity:.0%}")The output shows 70% with all links up, 93% after one failure, and 140% after two. The 93% figure is an average. With uneven hashing, one member can already be saturated. Congestion starts well before the average reaches 100%.
Two settings control what happens when the bundle shrinks:
interface Port-channel1
port-channel min-links 2
!
interface Port-channel1
lacp max-bundle 4min-linkstakes the whole port channel down when fewer than the given number of members are active. This is useful when the remaining capacity cannot carry the load and you prefer that traffic move to another path, such as the other switch or an alternate uplink. It only helps if an alternate path exists. Otherwise you have turned a degraded link into an outage.max-bundlelimits the number of active members. Extra members become hot standby, which is useful when you want spare links ready.
On Linux, min_links in the bonding driver plays a similar role.
Limits you will meet
Exact numbers depend on the platform and software version. Treat the following as things to look up before the design is final.
| Limit | Typical shape |
|---|---|
| Active members per bundle | Commonly 8; some platforms allow up to 16 with 8 in standby |
| Number of port channels per switch | Fixed by hardware, often dozens to a few hundred |
| Hash input options | Differ by platform and sometimes by line card |
| Member speeds | All active members must match in speed and duplex |
| Members across devices | Not allowed in a plain LAG; requires MLAG or stacking |
Mixed members are a common trap. A 1 Gbps and a 10 Gbps member cannot normally be bundled together. Even where a platform allows it, equal-share hashing would overload the slower link.
LAG, MLAG, ECMP, or faster links
A plain LAG ends on one switch. If that switch fails, the whole bundle fails with it. MLAG removes that single point of failure by letting two switches present themselves as one LACP partner. It brings costs of its own: a peer link between the two switches, a consistency check between their configurations, extra upgrade planning, and vendor-specific behavior. Do not mix MLAG implementations from different vendors.
At Layer 3, equal-cost multipath (ECMP) does a similar job to a LAG, spreading flows over several routed links with the same hash principle and the same one-flow-one-path limit. It avoids Layer 2 bundling and spanning tree entirely. Many data center designs use routed links with ECMP for that reason.
Operational guidance
- Prefer LACP over static mode. Static bundles cannot detect a miswired or misconfigured partner, and a mismatch can cause loops or black holes. Use static mode only when a device does not speak LACP.
- Keep members identical. Same speed, duplex, VLAN or trunk settings, and same MTU. Configure through the port channel interface, so the settings apply to all members.
- Spread members across line cards or stack members where the platform allows, so a single card failure does not remove the whole bundle.
- Test failure. Pull a cable during a maintenance window and watch member counters, LACP state, and application behavior. Confirm that min-links does what you intended.
- Use consistent LACP timers. Fast timers (1 second) detect a failing partner sooner than slow timers (30 seconds), at the cost of slightly more control traffic. Check that both ends agree on the intent, and that very fast failure detection (such as BFD at Layer 3) is not needed instead.
- Document the hash. Record the hash policy on every device in the path, so the next engineer can explain uneven traffic.
Summary of trade-offs
A LAG is simple and widely supported, and it improves aggregate throughput and resilience. Its limits are flow-level: one link per flow, imperfect balancing, and capacity that drops when members fail. Good designs size for the post-failure case, choose hash inputs that match real traffic, keep members identical, and pick MLAG, ECMP, or faster links when the requirements go beyond what a plain LAG delivers.
Exercise
A server with a 4 x 10 Gbps LACP bond runs one backup stream to a single storage host and only reaches about 10 Gbps. The team proposes adding a fifth member link. Will this help, and what would you suggest instead?
Show answer
Adding a fifth member will not help. The backup is a single flow (one source, one destination, one set of ports), so the hash maps it to one member and it cannot exceed that member's 10 Gbps. Better options are to move to faster member links (for example 25 Gbps), or to split the backup into several parallel connections, with different TCP ports, and use a hash policy that includes L4 ports (such as layer3+4) so the flows spread over several members.
Exercise
A bundle of four 10 Gbps links carries a peak of 28 Gbps. Is it safe to rely on it if one member fails? What setting could you consider, and when would it be harmful?
Show answer
Not entirely. After one failure, the remaining 30 Gbps gives an average utilization of about 93%, and uneven hashing could saturate one member sooner. You could add capacity or set min-links so the bundle goes down when too few members remain and traffic moves to an alternate path. That is harmful if no alternate path exists, because it converts a degraded link into a full outage.