JEX - Chapter 4: Spanning Tree Flashcards
The process a switch goes through to create a spanning tree. (High Level)
- Switches exchange Bridge Protocol Units (BPDUs)
- Root bridge is elected
- Port role and state are determined
- Tree is fully converged
Bridge ID
Unique identifier for each switch
Root bridge
Switch with the lowest bridge ID
Root port
The port on each bridge closest to the root bridge
Root path cost
A bridge’s calculated cost to get from itself to the root bridge
Equal to the received root path cost from configuration BPDUs plus the port cost of the root port on the bridge
Port cost
Every interface on a bridge has an assigned port cost value
- Used in the calculation of the root path cost for the local bridge
- Configurable value (1-200,000,000)
- The default value is 20,000 for 1 Gigabit Ethernet
Designated bridge
A switch representing the LAN segement
Port ID
A unique identifier for each port on each switch
Designated port
The designated bridge’s forwarding port on a LAN segment.
The port used by a designated bridge to send traffic from the direction of the root to the LAN or from the LAN toward the root.
Bridge protocol data unit
Packets used to exchange information between switches
Types of BPDUs:
- Configuration BPDU
- Topology change notification BPDU
In STP, what are the four states a bridge’s port can be in?
- Blocking
- Listening
- Learning
- Forwarding
Blocking state (STP)
- The port drops all data packets and listens to BPDUs
2. The port is not used in active topology
Listening state (STP)
- The port drops all data packets and listens to BPDUs
2. The port is transitioning and will be used in active topology
Learning state (STP)
- The port drops all data packets and listens to BPDUs
2. The port is transitioning and the switch is learning MAC addresses
Forwarding state (STP)
- The port receives and forwards data packets and sends and receives BPDUs.
- The port has transitioned and the switch continues to learn MAC addresses.
Ethernet Frame Format
- Destination Address: The multicast MAC address that is reserved for STP (01:80:c2:00:00:00)
- Source Address: MAC of the outgoing port of the originating switch.
- Length
- LLC Header: DSAP and SAAP = 0x42
- BPDU
- FCS
BPDU Format
- Protocol ID: 2 octets
- Protocol Version: 1 octet
- BPDU Type: 1 octet
- Flags: 1 octet
- Root ID: 8 octets
- Root Path Cost: 4 octets
- Bridge ID: 8 octets
- Port ID: 2 octets
- Message Age: 2 octets
- Max Age: 2 octets
- Hello Time: 2 octets
- Forward Delay: 2 octets
BPDU Field: Protocol ID
This value is always 0
BPDU Field: Protocol Version
This value is always 0
BPDU Field: BPDU Type
This field determines which of the two BPDU formats this frame contains:
- Configuration BPDU (0x00)
- TCN BPDU (0x80)
BPDU Field: Flags
This field is used to handle changes in the active topology
BPDU Field: Root ID
This field contains the bridge ID (BID) of the Root Bridge.
After convergence, all configuration BPDUs in the bridge network should contain the same value for this field (for a single VLAN).
Some network sniffers break out the two BID subfields:
- Bridge Priority
- Bridge MAC Address