Redundant links make networks resilient — but without protection they create switching loops that flood the network. Spanning Tree Protocol prevents exactly that.
Spanning Tree Protocol (STP)
How redundant switch links stay loop-free.
Tap or hover a part to learn more.
The reference switch.
STP elects one switch as the root bridge (the lowest bridge ID wins). Every path decision is made relative to it, so set it deliberately on a core switch rather than letting it be chosen by accident.
Check your understanding
1. What problem does STP prevent?
2. What does STP elect first?
Keep learning
The core idea
- A Layer 2 loop causes broadcast storms that can take down a network.
- STP elects a root bridge and blocks redundant paths, leaving one active route.
- If the active path fails, a blocked path is unblocked to restore connectivity.
How it works in practice
- RSTP (Rapid STP) converges much faster than the original STP.
- PortFast puts access (end-device) ports straight into forwarding.
- Root bridge placement should be deliberate, not accidental.
Common mistakes
- Disabling STP and creating loops.
- Letting a random switch become the root bridge.
- Enabling PortFast on a link to another switch.
Why it matters for your career
STP is a core CCNA topic and a common cause of real outages — understanding it signals genuine switching knowledge.
Technical interview questions
- Why do redundant switch links need STP?
- What is a root bridge?
- What is the difference between STP and RSTP?
Practice questions
- What does a Layer 2 loop cause? (Broadcast storm)
- What does STP elect? (A root bridge)
- What converges faster than STP? (RSTP)
Where this fits in your networking journey
This is one concept in the Networking Fundamentals path, which leads into CompTIA Network+ and Cisco CCNA. When this clicks, review Switching & VLANs and continue with Routing.
Practise with Missiora
- AI Interview™ — rehearse networking interview questions with scored feedback.
- Career Coach™ — build a fundamentals → certification → job plan.
- Job Intelligence™ — see which networking skills real adverts demand.
