Vol 1 Ch 9 - Spanning Tree Protocol Flashcards
How does Spanning Tree Protocol (STP) work?
STP works by blocking ports that are not attached to the ROOT switch and have the highest cost to reach the ROOT switch. The ROOT switch is auto-designated after the switches exchange IDs. The switch with the lowest ID is the ROOT switch. The ROOT switch cannot have blocking ports. After that the switches determine the cost for each port to reach the ROOT switch. The port with the highest cost is blocked.
The switches exchange information as soon as a link goes down so that a new port can be chosen for blocking.
What is the vocabulary used in Spanning Tree Protocol?
ROOT switch FORWARDING STATE LEAST ADMINISTRATIVE COST between switch and the root switch ROOT COST ROOT PORT DESIGNATED SWITCH DESIGNATED PORT SPANNING TREE ALGORITHM (STA) ELECTION OF ROOT SWITCH BRIDGE ID (BID) 8 BYTES = 2 BYTE PRIORITY AND 6 BYTE MAC ADDRESS BRIDGE PROTCOL DATA UNITS (BPDU) CONFIGURATION BPDUs HELLO BPDU
What is inside a BPDU ( a Bridge Protocol Data Unit)?
Root Bridge ID
Sender Bridge ID
Sender’s root cost
Timer values on the root switch
Which switch becomes the root switch?
The switch with the lowest value Bridge ID (BID) becomes the root switch.
Which port on each switch becomes the root port?
The port with the smallest path cost to the root bridge.
What are the steps in the STP process?
- Elect the root switch.
- Choose each switch’s root port
- Choose each switch’s designated port
- Block the port with the highest path cost to the root bridge.
What is a root port?
The root port on an STP device has the smallest path cost to the root bridge and is responsible for forwarding data to the root bridge. Among all STP-capable ports on a device, the port with the smallest root path cost is a root port.
How does STP work with EtherChannel?
STP only blocks the link if all the links in EtherChannel fail. This avoids convergence any time a link within the bundle fails, making the network more available.
On which layers can EtherChannel be configured?
EtherChannel can be configured with either layer 2 logic or layer 3 logic.
How is PortFast used?
PortFast allows a switch to immediately transition from blocking to forwarding. To avoid loops, it only makes sense to apply PortFast to ports that are connected to non-STP speaking devices.
PortFast is most appropriate for connections to end user devices to speed up convergence when a device boots up.
How is BPDU Guard used?
The BPDU Guard is used on access ports and blocks any BPDU messages received via these ports.