JEX - Chapter 4: Spanning Tree Flashcards

1
Q

The process a switch goes through to create a spanning tree. (High Level)

A
  1. Switches exchange Bridge Protocol Units (BPDUs)
  2. Root bridge is elected
  3. Port role and state are determined
  4. Tree is fully converged
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bridge ID

A

Unique identifier for each switch

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

Root bridge

A

Switch with the lowest bridge ID

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

Root port

A

The port on each bridge closest to the root bridge

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

Root path cost

A

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

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

Port cost

A

Every interface on a bridge has an assigned port cost value

  1. Used in the calculation of the root path cost for the local bridge
  2. Configurable value (1-200,000,000)
  3. The default value is 20,000 for 1 Gigabit Ethernet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Designated bridge

A

A switch representing the LAN segement

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

Port ID

A

A unique identifier for each port on each switch

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

Designated port

A

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.

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

Bridge protocol data unit

A

Packets used to exchange information between switches

Types of BPDUs:

  1. Configuration BPDU
  2. Topology change notification BPDU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In STP, what are the four states a bridge’s port can be in?

A
  1. Blocking
  2. Listening
  3. Learning
  4. Forwarding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Blocking state (STP)

A
  1. The port drops all data packets and listens to BPDUs

2. The port is not used in active topology

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

Listening state (STP)

A
  1. The port drops all data packets and listens to BPDUs

2. The port is transitioning and will be used in active topology

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

Learning state (STP)

A
  1. The port drops all data packets and listens to BPDUs

2. The port is transitioning and the switch is learning MAC addresses

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

Forwarding state (STP)

A
  1. The port receives and forwards data packets and sends and receives BPDUs.
  2. The port has transitioned and the switch continues to learn MAC addresses.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Ethernet Frame Format

A
  1. Destination Address: The multicast MAC address that is reserved for STP (01:80:c2:00:00:00)
  2. Source Address: MAC of the outgoing port of the originating switch.
  3. Length
  4. LLC Header: DSAP and SAAP = 0x42
  5. BPDU
  6. FCS
17
Q

BPDU Format

A
  1. Protocol ID: 2 octets
  2. Protocol Version: 1 octet
  3. BPDU Type: 1 octet
  4. Flags: 1 octet
  5. Root ID: 8 octets
  6. Root Path Cost: 4 octets
  7. Bridge ID: 8 octets
  8. Port ID: 2 octets
  9. Message Age: 2 octets
  10. Max Age: 2 octets
  11. Hello Time: 2 octets
  12. Forward Delay: 2 octets
18
Q

BPDU Field: Protocol ID

A

This value is always 0

19
Q

BPDU Field: Protocol Version

A

This value is always 0

20
Q

BPDU Field: BPDU Type

A

This field determines which of the two BPDU formats this frame contains:

  1. Configuration BPDU (0x00)
  2. TCN BPDU (0x80)
21
Q

BPDU Field: Flags

A

This field is used to handle changes in the active topology

22
Q

BPDU Field: Root ID

A

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:

  1. Bridge Priority
  2. Bridge MAC Address