STP Interview Questions 1 Flashcards
1
Q
What is STP?
A
STP is a protocol that prevents layer 2 loops by electing a Root Bridge, Root Ports, Designated ports, and Blocking ports.
2
Q
How STP works?
A
STP chooses a Root Bridge. Then it picks one path by which to forward frames and blocks other redundant paths.
3
Q
What are the different port states?
A
- Disabled - A port in the disabled state does not participate in the STP.
- Blocking - A blocked port does not forward frames. It only listens to BPDUs.
- Listening - The port sends and listens to BPDUs to ensure no loops occur on the network.
- Learning - A port in the learning state populates the MAC address table but doesn’t forward data frames. The port still sends and receives BPDUs as before.
- Forwarding - The port can now send and receive data frames, collect MAC addresses in its address table, and send and receive BPDUs.
4
Q
Explain types of STP Port Roles.
A
- Root port - The root port is always the link directly connected to the root bridge or the shortest path to the root bridge.
- Designated port - A designated port will be marked as a forwarding port. It can be on both the Root Bridge & Non-Root Bridge. All ports of Root Bridge are Designated ports.
- Forwarding port - A forwarding port forwards frames.
- Blocked port - A blocked port is the port that is used to prevent loops. It only listens to frames.
5
Q
What is the STP blocking state?
A
When a switch starts, all ports are in the blocking state to prevent any loop in the network.