Lecture 11: Spanning Tree Protocol (STP) Flashcards

(12 cards)

1
Q

What is STP?

A

STP is a Layer 2 loop-prevention protocol that creates a loop-free logical topology while allowing physical redundancy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What issues occur without STP?

A

Loops, broadcast storms, MAC table instability, high CPU usage, and more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Who invented the STP algorithm and when?

A

Radia Perlman in 1985 while working at Digital Equipment Corporation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does STP create a loop-free topology?

A
  1. Elects a Root Bridge (central switch)
  2. Blocks redundant paths to prevent loops
  3. Creates one logical path from each switch to the root
  4. Recalculates paths and reactivates blocked ports if failure occurs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 4 main steps in STP?

A
  1. Elect the Root Bridge
  2. Elect Root Ports (lowest-cost path to root)
  3. Elect Designated Ports (best path on a network segment)
  4. Elect Alternate (Blocked) Ports
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a BPDU in STP?

A

Bridge Protocol Data Unit – control messages used for STP decisions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is the best path (root port) determined?

A

Based on path cost – lower cumulative link cost to the Root Bridge wins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the STP variants and key differences?

A

STP – Classic version (802.1D)
PVST – Per-VLAN STP
Rapid PVST – Faster convergence (802.1w)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to configure different STP modes?

A

spanning-tree mode stp (classic)

spanning-tree mode pvst

spanning-tree mode rapid-pvst

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does PortFast do?

A

It allows a port to enter forwarding state immediately, bypassing listening and learning states — useful for end devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is BPDU Guard used for?

A

Protects the network by shutting down edge ports if they receive BPDUs. Not recommended between switches.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the key differences between STP and RSTP?

A
  • STP has states: Blocking, Listening, Learning, Forwarding
  • RSTP replaces Blocking/Listening with Discarding
  • In RSTP, all switches send BPDUs every 2 sec
  • RSTP has Backup and Alternate port roles
How well did you know this?
1
Not at all
2
3
4
5
Perfectly