spanning tree Flashcards

(29 cards)

1
Q

What is the purpose of spanning tree protocol?

A

(IEEE 802.1D) provide redundancy and prevent broadcast storms (layer 2 loops)

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

Designated Port

A

port in a forwarding state

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

Blocked ports

A

Ports that have been blocked in order to prevent loops. Can be switched to a forwarding state if designated port goes down. Can send or receive BPDUs only

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

How does a switch know that another switch is connected to it?

A

STP switches sends out “hello” BPDUs every 2 secs and switches receiving it know

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

How is it determined which switch is the root bridge?

A

In order of precedence
1. Bridge ID
2. MAC address

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

What is special bout the root bridge?

A

all ports on it are in a forwarding state and all other switches must have a path to it

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

PVST

A

Per VLAN Spanning Tree. this is Cisco’s version that allows for STP for each VLAN

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

Root port

A

non root switches have one of their interfaces as a root port and it is the one with the lowest cost

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

How do you determine which port should be the designated port?

A
  1. lowest root cost
  2. lowest bridge ID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are transitional states in STP and what are the two of them?

A

States the interface passes through when the interface is turned on or moved from blocking to forwarding.
1. Listening
2. Learning

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

What is listening state and how long does it last?

A

15 secs default, the interface will forward BPDU traffic only

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

What is learning state and how long does it last?

A

15 secs default, The interface will forward BPDU traffic and also learn MAC address

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

Forward Delay

A

How long the interface goes through the listening and learning state before getting into forwarding

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

How does the switch react to not receiving BPDUs on an interface?

A

If an interface does not get a hello BPDU in 20s (default), it will start changing its topology (blocking -> designated or vice versa). Resets timer if recieves BPDU

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

PortFast

A

A special feature that allows an interface to transition immediately into a forwarding state without the transitional states. recommended for end hosts only

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

BPDUguard

A

a feature that will shut down the interface if an unauthorized switch tries to send a BPDU into the network

17
Q

RootGuard

A

The designated root bridge will not change even if a switch with a lower bridge ID is added

18
Q

Loopguard

A

Even if a interface stops receiving BPDUs, it will not start forwarding (goes to broken/root inconsistent state)

19
Q

BPDU filter

A

port will not send, recieve, or forward BPDUs

20
Q

how do you manually change the root bridge?

A

spanning-tree vlan num root primary

21
Q

How do you create a secondary root bridge (if first fails)

A

spanning-tree vlan num root secondary

22
Q

What’s special about Multiple Spanning Tree Protocol?

A

can group multiple vlans into different instances

23
Q

What’s special about Per VLan Spanning Tree Plus Protocol?

A

load balance by blocking different ports for different vlans

24
Q

Discarding state

A

port is disabled or blocking traffic in RSTP

25
Alternate port role
Equivalent to blocking port in classic STP
26
Backup port
Only exists when a hub is used and is used as backup if the designated port goes down
27
What's the difference in how RSTP behaves vs STP?
1. All switches create their own BPDUs while the root bridge only creates BPDUs in classic 2. switches consider a neighbour lost faster (3 BPDUs in 6 secs vs 10 hello intervals in 20s) and flushes mac addresses from that interface
28
What are the RSTP link types?
edge: end hosts point-to-point: between two switches (full duplex) Shared: connection to hub (half duplex)
29