Spanning-Tree Protocol (STP & RSTP)
STP prevents L2 loops by electing a Root Bridge and blocking redundant links. This chapter covers the BPDU exchange, port roles and states, the Bridge ID, and Rapid Spanning-Tree improvements.
STP prevents L2 loops by electing a Root Bridge and blocking redundant links. This chapter covers the BPDU exchange, port roles and states, the Bridge ID, and Rapid Spanning-Tree improvements.
Ethernet frames have no TTL. Send a single broadcast into a network with a loop, and switches flood it forever — multiplied each time it crosses a switch. Within seconds, every link saturates with copies of the same frame, the network collapses, and no useful traffic gets through. STP exists to make redundant L2 paths safe.
Every switch has a Bridge ID = priority (default 32768) + base MAC. The switch with the lowest Bridge ID becomes the Root Bridge. All other switches calculate their shortest path (root cost) to the root, then block any port that would create a redundant path.
| Speed | Cost (legacy 802.1D) | Cost (long 802.1t) |
|---|---|---|
| 10 Mbps | 100 | 2,000,000 |
| 100 Mbps | 19 | 200,000 |
| 1 Gbps | 4 | 20,000 |
| 10 Gbps | 2 | 2,000 |
| 100 Gbps | — | 200 |
3 more sections in this chapter, plus a 2-question quiz.
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: Network Foundations end-to-end and saves your labs — start there, no card required.
NetForge-AI is an independent educational platform and is not affiliated with, endorsed by, or sponsored by any networking vendor or certification body. All product names, protocols, and standards referenced are the property of their respective owners and are used for descriptive, educational purposes only.
Free account · no card required · compare plans any time