Broadcast frames circulate forever in a looped topology.
Spanning tree algorithm
Bridges elect a root and block redundant ports.
Root election
The switch with the smallest ID becomes the root, and the root forwards on all of its ports.
Root ports and designated switches
Each switch forwards toward the root on its port with the shortest path; each LAN's designated switch, the one closest to the root, forwards its frames toward the root.
Port roles
Root, designated, alternate and backup ports; only root and designated ports forward.
Port states
Ports discard, learn or forward, and move to forwarding quickly on point-to-point links.
Per-VLAN spanning tree
A separate tree for each VLAN lets different VLANs use different root bridges and links.
Choosing the root bridge
Lowering a switch's bridge priority makes it the root, or the backup root when the first one fails.
Edge ports
Ports facing hosts skip the listening and learning delay and forward at once.
BPDU guard
An edge port that receives a BPDU is shut down, so a switch plugged in there cannot join the tree.
Root guard
A port with root guard is never allowed to become a root port, protecting the chosen root bridge.
Loop guard
A blocked port stays blocked when BPDUs stop arriving, instead of forwarding and creating a loop.
Sample question
Try it, then open the answer. Our questions are written by AI and checked independently before they are published.
EasySingle choice
What determines which switch is elected as the root bridge in a Spanning Tree Protocol domain?
A. bridge ID with the lowest priority value
B. port count with the maximum active links
C. MAC address with the highest numerical value
D. interface speed with the highest bandwidth
Show the answer
Answer: A. bridge ID with the lowest priority value
Spanning Tree Protocol elects a single root bridge for the topology by comparing the bridge ID of participating switches. The bridge ID is composed of a configurable priority and the switch's MAC address. The switch with the lowest priority value wins the election, and if priorities are tied, the lowest MAC address breaks the tie.