- No switches added yet.
- No links added yet.
Build a network topology, run STP or RSTP, and inspect root bridge election, port states, and convergence timeline.
The switch with the lowest Bridge ID wins. Bridge ID = Priority (default 32768) + MAC address. Ties on priority go to numerically lower MAC. Only one root bridge per VLAN.
Every non-root switch elects one Root Port — the port with the lowest cumulative path cost to the root bridge. Ties are broken by neighbor Bridge ID, then port ID.
Each network segment has exactly one Designated Port — the port that offers the best (lowest cost) path to the root. All ports on the root bridge are designated.
Any port that is neither a Root Port nor a Designated Port is blocked (STP) or discarding (RSTP). These break Layer-2 loops while maintaining a loop-free topology.
RSTP edge ports connect to end hosts, not other switches. They transition immediately to Forwarding (no listening/learning delay), equivalent to STP's PortFast feature.
STP convergence takes 30–50 seconds (Listening 15s + Learning 15s per port). RSTP uses a Proposal/Agreement handshake, converging in under 2 seconds per hop.
10 Gbps = 2, 1 Gbps = 4, 100 Mbps = 19, 10 Mbps = 100, 1.5 Mbps = 1000. Lower cost = preferred path. Root bridge advertises cost 0; each hop adds its port cost.
BPDUs carry: Root Bridge ID, Root Path Cost, Sender Bridge ID, Port ID, and timers. Root bridge originates BPDUs every Hello Time (2s). Other bridges relay them outbound on Designated Ports.