Ethernet loops and STP
Why redundant links can fail
A triangle of switches provides a backup path, but if every port forwards in the same VLAN, broadcast and unknown-unicast frames can circulate. Ordinary Ethernet bridging does not decrement an IP-style hop limit. Copies may multiply and source MAC addresses may appear on changing ports, making delivery unstable. A physical cycle is not itself a failure: the active forwarding topology must be loop-free.
What spanning tree changes
Spanning Tree Protocol (STP) uses control messages called bridge protocol data units (BPDUs) to elect a root bridge and select a loop-free logical tree. A blocked data path can still carry spanning-tree control information. The physical redundancy remains available for a later topology change. In this example all links carry a single VLAN and belong to one tree. The diagram shows A connected to B and C, and B connected to C; each receiving port has cost 10.
A (root) / \10/ \10 B--10--CChoose the root
A bridge ID contains priority information and a MAC address; in systems with an extended system ID, that extension participates in the comparison. The lowest complete bridge ID wins, not the switch with most ports. Assume the effective priority values are equal and MACs are ordered A < B < C. A wins. A root has zero root-path cost. Each of B and C has direct root cost 10, versus 20 through the other. On B–C, B advertises the better information because its bridge ID is lower after the cost tie. B is designated; C does not forward data on that link. In a more complex topology, root-port selection compares advertised root ID, total path cost, sender bridge ID, sender port ID and, if needed, receiving port ID. A port ID combines priority and port number. Our triangle has no parallel links, so the final port-level tie-breakers are unnecessary here.
Trace the active tree
A broadcast entering B from a host can travel B → A → C. It cannot travel directly B → C as a second forwarding path because C blocks data there. A tree connecting three switches has two active inter-switch links; the unused physical path is not a disconnected switch. A Layer 2 broadcast loop differs from an IP routing loop, for which TTL or Hop Limit can bound packet lifetime.
Diagnose before changing
High broadcast traffic, repeated MAC moves and loss can suggest a loop but are not proof individually. Inspect the intended topology, spanning-tree roles, counters and recent changes, then compare actual versus intended redundant links. Do not disable STP or deliberately create a loop on a real network. Practice: if C has the lowest bridge ID instead, and A < B among the remaining IDs, C becomes root and B blocks its port toward A. The next lesson explains these roles and failure recovery.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Ethernet loops and STP — knowledge check
Reason about stable spanning-tree topology and safeguards.
Why can a broadcast continue circulating in a bridged Ethernet loop?
Equal priorities and bridge IDs ordered A < B < C: which is root?
In the equal-cost triangle rooted at A, which port discards data on B–C?
How many active inter-switch edges connect three switches in a tree?
Which observation alone proves a Layer 2 loop?