1. Root election
Each bridge begins by advertising itself as root. The lowest Bridge ID wins. A Bridge ID is ordered first by configured priority and then by MAC address.
superior BPDU = minimum of:
(root ID, root path cost,
sender bridge ID, sender port ID)
2. Port roles
Every non-root bridge selects exactly one Root Port. Each segment selects one Designated Port. A remaining redundant port becomes Alternate/Blocked; the bridge itself remains active.
R = best path toward root
D = best BPDU onto segment
B× = redundant path blocked
3. Loop-free forwarding
The physical cable remains connected, but blocked ports do not forward ordinary frames. In the example, B3→B2 and B4→B3 block after convergence. If a forwarding link fails, STP elects a new tree and may reactivate an alternate port.
physical links: 5
tree links: |V| - 1 = 3
redundant links retained for recovery