01Chapter 1: Why redundant switch links create loopsEthernet switches flood frames they cannot place, and Ethernet frames carry no hop counter. Together these two facts make a redundant switch topology dangerous. This chapter shows how a loop forms, what it does to the network, and why Spanning Tree Protocol (STP) exists. Later chapters cover how STP6 min read
02Chapter 2: BPDUs: how switches talk about the topologySpanning tree only works if every switch in the Layer 2 network agrees on one loop-free tree. Switches agree by exchanging a small control frame called a Bridge Protocol Data Unit (BPDU). This chapter covers what a BPDU carries, how it is sent and forwarded, which types exist, and how a switch decid7 min read
03Chapter 3: The bridge ID and why priority comes firstThis chapter assumes you know how switches learn MAC addresses, what a VLAN and a trunk are, and how to read a switch command line. It covers the bridge ID, the value every switch puts in its BPDUs to say who it is. The next chapter uses that value to elect the root bridge.5 min read
04Chapter 4: Electing the root bridgeThis chapter assumes you know how switches learn MAC addresses and flood unknown frames. It also assumes you can read a switch command line and know what a VLAN is. You have already seen that BPDUs carry bridge IDs. This chapter shows how switches use those IDs to agree on one root bridge.5 min read
05Chapter 5: Path cost and root path costThis chapter assumes you know how a switch learns MAC addresses, what a BPDU carries, and how the bridge ID decides the root bridge election. It covers the number that decides which links the tree uses. That number is path cost.5 min read
06Chapter 6: Port roles in the spanning treeThis chapter assumes you already know how a switch learns MAC addresses, how broadcast and unknown-unicast flooding work, and what a VLAN and a trunk are. It also assumes you can read a switch command line. It builds on the root bridge election: once every switch agrees on one root, each switch must6 min read
07Chapter 7: Choosing root and designated ports, and breaking tiesThis chapter assumes you know how the bridge ID and root bridge election work, what BPDUs carry, and how path cost is calculated. It also assumes you can read a switch CLI. Here you apply those pieces to decide which ports forward and which block.5 min read
08Chapter 8: Port states: blocking, listening, learning, forwardingThis chapter covers the four classic 802.1D port states plus the disabled state. It assumes you already know how switches learn MAC addresses and flood unknown unicast frames. It also assumes you can read the port roles from the previous chapter: root, designated, alternate and backup.6 min read
09Chapter 9: Timers and why classic STP converges slowlyThis chapter assumes you know how BPDUs carry root and cost information, how the root bridge is elected, and what the root, designated, and blocked port roles mean. It also assumes you know the four classic 802.1D port states (blocking, listening, learning, forwarding). Here you will see the three t6 min read
10Chapter 10: Topology changes and MAC table agingThis chapter assumes you know how a switch learns MAC addresses into its forwarding table and floods unknown unicast frames. It also assumes you can read the output of show spanning-tree. You should already understand port roles and the classic 802.1D port states from earlier chapters.6 min read
11Chapter 11: Reading spanning tree outputThis chapter assumes you know how switches learn MAC addresses and how VLANs and trunks work. It also assumes you have met root bridge election, path cost and port roles earlier in this tutorial. The goal here is to read show spanning-tree output quickly and turn it into answers. Which switch is t4 min read
12Chapter 12: Rapid STP: faster convergence with the same tree logicThis chapter assumes you know how classic STP (802.1D) elects a root bridge, how bridge IDs and path costs work, and how root, designated and blocked ports are chosen. It also assumes you can read a switch command-line interface. Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) keeps all of that log7 min read
13Chapter 13: Proposal/agreement handshake and link typesThis chapter assumes you know how classic 802.1D elects a root bridge and assigns root, designated and alternate port roles. It also assumes you know why classic STP waits through the listening and learning states. Here you will see how Rapid STP (802.1w) skips those waits safely, and why the answer5 min read
14Chapter 14: Edge ports and PortFastThis chapter assumes you know how root bridges, port roles and the classic 802.1D port states work, and that you can read basic Cisco IOS configuration. It covers what an edge port is, how PortFast implements it, and the mistakes that go with it.5 min read
15Chapter 15: One tree per VLAN: PVST+ and Rapid PVST+This chapter assumes you already know how a single spanning tree is built: root bridge election, root and designated ports, path cost, and the difference between classic 802.1D and Rapid STP. It also assumes you know what a VLAN and an 802.1Q trunk are. Here you will see what changes when each VLAN 6 min read
16Chapter 16: Placing the root bridge on purposeThis chapter assumes you know how switches learn MAC addresses, what a VLAN and a trunk are, and how to read a switch command line. It also assumes you have seen how the bridge ID, path cost and port roles work in spanning tree. Here we use that knowledge to decide where the root bridge should be, a5 min read
17Chapter 17: BPDU Guard, Root Guard and Loop GuardThis chapter assumes you know how the root bridge is elected, what the root, designated and alternate port roles mean, and what PortFast does on an edge port. It also assumes you can read a switch command-line interface. Spanning tree trusts every BPDU it receives and trusts the links to behave. The5 min read
18Chapter 18: MSTP: mapping many VLANs to a few treesThis chapter assumes you know how classic STP and Rapid STP elect a root, assign port roles, and run one tree per VLAN with Rapid PVST+. It also assumes you can read a Cisco IOS-style command line. Multiple Spanning Tree Protocol (MSTP, IEEE 802.1s) keeps the RSTP logic and changes how many trees ru5 min read
19Chapter 19: Troubleshooting loops and unstable topologiesThis chapter assumes you know how switches learn MAC addresses and flood unknown-unicast and broadcast frames. It also assumes you know basic VLANs and trunks, and the STP concepts from earlier chapters: root bridge election, port roles, port states, Rapid PVST+, and the guard features. The commands6 min read