About this interactive
Spanning tree is usually taught as a finished picture - a topology with every port already labelled root, designated or blocking - and the picture never shows which comparison produced which label. This drill runs the algorithm forwards instead, one decision per typed answer. It starts on the arithmetic the election rests on: the default priority of 32768, the 4096 increment that is the only step priority can move in, and the extended system ID that adds the VLAN number to every advertised value. Then it elects root bridges from tables of priorities and MAC addresses, including the cases students most often get backwards - the switch with the lowest MAC address in the room losing to one with a lower priority, and a per-VLAN priority that applies in one VLAN and not the next. Root path cost comes next, accumulated the way a switch actually accumulates it, by adding the local port cost to the cost that arrived in the BPDU, which is what makes a two-hop gigabit path cheaper than a single 100 Mbps link. Root ports are elected on lowest cost and then on the two tiebreakers in order, sender bridge ID and sender port ID, each with an item where that tiebreaker is the only thing deciding. Designated ports are settled per segment, and everything left over is shown going into the blocking state. Two full topologies are then worked from first comparison to last blocked port, so the rules are seen assembling a loop-free tree rather than only being recited.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →