STP and RSTP Flashcards
(120 cards)
What is the primary purpose of STP?
a) To prevent routing loops
b) To prevent switching loops
c) To encrypt network traffic
d) To increase bandwidth
Answer: b) To prevent switching loops
Which algorithm does STP use to prevent loops?
a) Dijkstra’s algorithm
b) Bellman-Ford algorithm
c) Spanning Tree Algorithm (STA)
d) Diffie-Hellman algorithm
Answer: c) Spanning Tree Algorithm (STA)
What is the default STP mode on Cisco switches?
a) Rapid PVST+
b) MSTP
c) PVST+
d) RSTP
Answer: c) PVST+
Which STP state blocks traffic but listens to BPDUs?
a) Blocking
b) Listening
c) Learning
d) Forwarding
Answer: a) Blocking
How long does STP take to converge by default?
a) 15 seconds
b) 30 seconds
c) 50 seconds
d) 60 seconds
Answer: c) 50 seconds
Which STP state allows MAC address learning but does not forward traffic?
a) Blocking
b) Listening
c) Learning
d) Forwarding
Answer: c) Learning
What is the default STP priority value on a Cisco switch?
a) 0
b) 32768
c) 4096
d) 8192
Answer: b) 32768
Which STP port state forwards traffic and learns MAC addresses?
a) Blocking
b) Listening
c) Learning
d) Forwarding
Answer: d) Forwarding
What is the first step in the STP election process?
a) Elect root ports
b) Elect designated ports
c) Elect the root bridge
d) Block redundant ports
Answer: c) Elect the root bridge
Which BPDU field is used to elect the root bridge?
a) Root ID
b) Bridge ID
c) Port ID
d) Max Age
Answer: b) Bridge ID
Which STP port role is responsible for forwarding traffic toward the root bridge?
a) Root Port
b) Designated Port
c) Alternate Port
d) Disabled Port
Answer: a) Root Port
What is the role of a designated port in STP?
a) Blocks traffic to prevent loops
b) Forwards traffic away from the root bridge
c) Connects to end devices
d) Elects the root bridge
Answer: b) Forwards traffic away from the root bridge
Which STP port role is a backup path to a designated port?
a) Root Port
b) Alternate Port
c) Backup Port
d) Disabled Port
Answer: c) Backup Port
What happens to a port in the “Listening” state?
a) It discards traffic and ignores BPDUs
b) It forwards traffic and learns MAC addresses
c) It processes BPDUs but does not forward traffic
d) It blocks traffic but listens to BPDUs
Answer: c) It processes BPDUs but does not forward traffic
Which STP port state is not part of the original 802.1D standard?
a) Blocking
b) Listening
c) Learning
d) Discarding
Answer: d) Discarding (introduced in RSTP)
What is the purpose of the “Disabled” state in STP?
a) Temporarily blocks traffic
b) Administratively shuts down the port
c) Acts as a backup port
d) Elects the root bridge
Answer: b) Administratively shuts down the port
Which STP port role is only present in RSTP and not in traditional STP?
a) Root Port
b) Alternate Port
c) Designated Port
d) Backup Port
Answer: b) Alternate Port
How does a switch determine the root port?
a) Lowest root path cost
b) Highest bridge ID
c) Fastest link speed
d) Oldest BPDU timestamp
Answer: a) Lowest root path cost
What is the default path cost for a 1 Gbps link in STP?
a) 4
b) 19
c) 100
d) 2000
Answer: a) 4
Which STP port state comes after “Listening”?
a) Blocking
b) Learning
c) Forwarding
d) Disabled
Answer: b) Learning
What is the default Hello timer in STP?
a) 1 second
b) 2 seconds
c) 10 seconds
d) 20 seconds
Answer: b) 2 seconds
What is the default Max Age timer in STP?
a) 6 seconds
b) 10 seconds
c) 20 seconds
d) 50 seconds
Answer: c) 20 seconds
What happens if a switch does not receive BPDUs within the Max Age time?
a) The switch becomes the root bridge
b) The port transitions to the Listening state
c) The switch recalculates the STP topology
d) The port is disabled
Answer: c) The switch recalculates the STP topology
Which BPDU flag indicates a topology change in STP?
a) TC (Topology Change)
b) TCA (Topology Change Acknowledgment)
c) TCN (Topology Change Notification)
d) TCD (Topology Change Detection)
Answer: a) TC (Topology Change)