Sub topic 1
Why Aggregate Links: Bandwidth and Redundancy
Prerequisites
This chapter assumes you know the following:
- Ethernet switching basics: MAC addresses, VLANs and trunks.
- What a loop is and why Spanning Tree Protocol (STP) exists.
- Basic switch CLI navigation.
- Basic IP addressing and TCP/UDP ports.
The problem with a single uplink
Picture an access switch with 48 gigabit ports and a single 1 Gb/s uplink to the distribution switch. If ten users each pull 200 Mb/s at the same moment, the uplink has to carry 2 Gb/s. It can't, so frames queue and then get dropped. This is called oversubscription.
The uplink is also a single point of failure. A bad cable, a failed transceiver or a port reset cuts off every user behind that switch.
You have three ways to fix this:
- Replace the link with a faster one, such as 10 Gb/s. This works but needs new optics and often new ports.
- Add a second link and let STP handle it. STP blocks one of the two links to prevent a loop, so you gain redundancy but no extra bandwidth.
- Bundle the links. Several physical links act as one logical link, so you get both bandwidth and redundancy.
The idea: one logical link
Link aggregation combines several physical Ethernet links between the same two devices into one logical link. Vendors use different names for it:
| Name | Where you see it |
|---|---|
| LAG (link aggregation group) | The standard term, IEEE 802.3ad and 802.1AX |
| Port channel | Cisco and many other switch CLIs |
| EtherChannel | Cisco's name for the technology |
| Bond or team | Linux and Windows servers |
The individual physical links are the members. The switch and the neighbor both treat the bundle as a single interface. STP sees one port, and you configure VLANs and trunking once on the logical interface.
What you gain
Bandwidth. Four 1 Gb/s members give a bundle with 4 Gb/s of total capacity. Traffic is spread across the members, so many conversations can run in parallel.
Redundancy. If one member fails, the bundle stays up. The remaining members take over the traffic, usually within milliseconds to a few seconds depending on the failure type. Users see a capacity drop, not an outage. The capacity drop is 25% for a four-member bundle that loses one link.
Incremental growth. You can add a member to an existing bundle without redesigning the network.
What you do not gain
A bundle's total capacity is not the speed of any one conversation. The switch assigns each flow, such as one TCP connection, to a single member link. A single file transfer over a bundle of four 1 Gb/s links is still limited to about 1 Gb/s. Aggregation helps when many flows run at once. It does not speed up one flow. The next chapters explain how the switch picks a member.
Where it is used
- Switch-to-switch uplinks between access, distribution and core layers.
- Servers with two or more NICs connected to a switch, such as hypervisors and storage hosts.
- Links to firewalls, load balancers and routers that carry heavy traffic.
Exercise
An access switch has two 1 Gb/s uplinks to the distribution switch, bundled into one port channel. One user starts a single large TCP download. What is the most bandwidth that download can use, and what happens to the user's session if one uplink fails?
Show answer
The download can use about 1 Gb/s, because all packets of one TCP flow are sent over the same member link. If one uplink fails, the bundle stays up on the remaining link. The flow is moved to that link, so the session usually continues, and the total capacity falls to 1 Gb/s.
Exercise
Why does adding a second, unbundled link between two switches normally add redundancy but no bandwidth?
Show answer
STP sees a loop and blocks one of the two links. Only one link forwards traffic, and the blocked link takes over only if the active one fails.