Explain it simpler
Switches are often connected with extra cables so that if one breaks, another can take over. The trouble is that these extra cables create circles. A broadcast message, one meant for everyone, would race around the circle forever, copying itself at every switch until the network drowns. Spanning Tree Protocol is a set of rules the switches follow to agree on one main switch (the root) and then switch off just enough extra cables to break every circle. The spare cables stay plugged in and ready, like a closed side road with a detour sign waiting to be lifted. If a main cable fails, Spanning Tree reopens a spare one.
Thursday, 9:40 a.m., Summit Ridge Insurance. A sales meeting starts in conference room B, and someone helpfully plugs a loose patch cable from one wall jack into the jack beside it. Within seconds the whole third floor freezes. Phones drop calls, the switch fans roar, every link light in the closet blinks in a frantic blur, and the logs scroll with messages about one MAC address flapping between ports. Ana from the help desk sprints upstairs. A single short cable has brought down a floor of 200 people. How can one cable do that, and what should have stopped it?
Redundant links between switches are good for availability but dangerous at Layer 2. Ethernet frames have no TTL (time to live) field, so a broadcast sent around a loop of switches circulates forever, and because switches flood broadcasts out every port, it multiplies at every switch. Within seconds a broadcast storm consumes all bandwidth and CPU, MAC address tables flap as the same source address appears on different ports, and the network grinds to a halt. Spanning Tree Protocol (STP), originally IEEE 802.1D, prevents this by logically blocking redundant paths while keeping them available as backups that come into use if an active link fails.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.