The central problem
Keep redundant links safe.
Good network reasoning separates the mechanism from the symptom. Start with the boundary, identify the evidence, and test the explanation that accounts for the observation.
Loop prevention
STP keeps redundancy without forwarding in circles.
Spanning Tree Protocol (STP) lets switches exchange bridge information, choose a root bridge, and calculate a loop-free tree. A redundant link can remain physically connected while its forwarding path is placed in a blocking state.
If an active path fails, STP can recalculate and move a useful redundant path into forwarding. The goal is not to remove redundancy; it is to control which links forward at the same time.
Inside the protocol
BPDUs let switches agree on port roles.
Bridge Protocol Data Units (BPDUs) carry the information switches use to compare bridge identities and path costs. The elected root bridge anchors the tree; each non-root switch selects a root port toward it, while designated ports forward for their network segment.
Other redundant ports stay blocked or alternate until the topology changes. Rapid Spanning Tree Protocol (RSTP) keeps the same loop-free goal but reaches a new forwarding state faster after a change.
Protect the boundary
Edge ports need a different trust assumption.
An access port normally connects to an endpoint, not another switch. Edge protections can keep an unexpected BPDU from changing the spanning-tree topology, and can disable or quarantine a port when a device violates that assumption.
Apply these protections deliberately: an uplink or a legitimate switch-to-switch connection must not be treated as an edge port. Review the port role, the expected device, and the recovery procedure together.
Shape the tree
Root choice changes the forwarding path.
STP elects the bridge with the best bridge identifier as the root, unless the network operator sets a deliberate priority. Each switch then prefers the lowest-cost path toward that root, so root placement influences which links forward and which links remain blocked.
A poorly placed root can send traffic across a longer or less suitable path even when the topology is loop-free. Review the root, path costs, blocked ports, and traffic direction together; changing priority is a topology decision, not merely a cosmetic setting.
Build the model
Four useful signals
Loop
Lets a frame return through the same topology.
Broadcast
Can multiply when no boundary stops it.
STP (Spanning Tree Protocol)
Blocks selected redundant paths.
Recovery
Reopens a useful path after a failure.
Mini investigation
Inspect the evidence
Select the observation and identify the most direct next check.
This observation narrows the mechanism but does not prove every downstream layer.
Compare it with one nearby-layer check.
Knowledge check
Test your model
Answer seven questions.