An STP port role determines how a switch port participates in a loop-free Layer 2 topology. Root and designated ports forward traffic; alternate and backup ports block traffic to prevent loops. section 15.2.3 section 14.0
In RSTP, identify roles by their path and relationship to the designated bridge:
- Root: the forwarding port that provides the switch’s only active path toward the root bridge. section 15.2.3
- Designated: the forwarding port pointing away from the root bridge; each segment has exactly one. section 15.2.3
- Alternate: a blocked path toward the root bridge that can transition to forwarding if the root port fails. section 15.2.3
- Backup: a blocked path to the same segment through another port on the same switch, usually involving a hub. section 15.2.3
Reading Cisco output
show spanning-tree may display Root/FWD, Desg/FWD, Altn/BLK, or Back/BLK. SW1 G0/1 is alternate, while SW3 G0/1 is backup when both switches have multiple connections to one segment.
