Professional Documents
Culture Documents
13 - HC110110013 Spanning Tree Protocol
13 - HC110110013 Spanning Tree Protocol
13 - HC110110013 Spanning Tree Protocol
age 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this section, you will be able to:
Describe the issues faced when using a multi-switched network.
Explain the loop prevention process of the spanning tree protocol.
Configure parameters for managing the STP network design.
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Layer 2 Redundancy
Switch A Switch B
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Broadcast Storms
Switch B
G0/0/3 Host A
G0/0/2
00-01-02-03-04-AA
Switch A
Host B
Switch C
00-01-02-03-04-BB
Switching loops allow for broadcast storms to occur and duplication of fra
mes to be received by end stations.
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MAC Instability
Switch B
Host A
G0/0/3
G0/0/2
00-01-02-03-04-AA
Switch A
MAC Interface
00-01-02-03-04-AA G0/0/3
00-01-02-03-04-AA G0/0/2
Host B
Switch C
00-01-02-03-04-BB
Receiving previously forwarded frames generates false MAC entries, and in
stability within the MAC address table.
age 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Resolving Layer 2 Redundancy Issues
Switch B
G0/0/3 Host A
G0/0/2
00-01-02-03-04-AA
Switch A
Host B
Switch C
00-01-02-03-04-BB
age 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The Spanning Tree Root Bridge
Root
Non-Root Non-Root
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Bridge ID
4096 00-01-02-03-04-AA
Root
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved. Page 9
Bridge Protocol Data Unit
Root
BPDU BPDU
Hell
BPDU Root Bridge Port Message Max Fwd
PID PVI Flags RPC o
Type ID ID ID Age Age Delay
Time
Configuration TCN
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Path Cost
Root
RPC 0 RPC 0
20000 20000
RPC 20000 20000
20000
20000
RPC 20000 RPC 20000 RPC 20000
20000
Root path cost is carried in the BPDU and used to determine the shortest p
ath to the root.
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Path Cost Standards
Path Cost
Port Speed 802.1D 802.1t
Legacy
10 Mbps 99 1999999 1999
100 Mbps 18 199999 199
1 Gbps 4 20000 20
10 Gbps 2 2000 2
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Spanning Tree Port Roles
Root
RPC 0 RPC 0
D D
R RPC 20000 R
A D
R R R
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Port ID
A 128.2
R
128.1
32768 00-01-02-03-04-CC
Where the root path cost is equal, a port identifier is used to determine the
active and alternate paths to the root.
age 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Timers
age 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Root Election Process
Switch A
32768 00-e0-fc-16-ee-
43
BPDU BPDU
BPDU BPDU
BPDU
Switch B Switch C
32768 00-e0-fc-41-42-59
BPDU 32768 00-e0-fc-41-43-69
age 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port Role Establishment Process
Switch A
32768 00-e0-fc-16-ee-43
Root
G0/0/1 G0/0/2
D D
RPC 0 RPC 0
D A
Switch B Switch C
G0/0/2 G0/0/2
The Bridge ID and Root Path Cost are used to elect port roles.
age 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port State Transition
Disabled
① ⑤
⑤
③
Forwarding Blocking
⑤ ③
③
④ ⑤
Learning Listening
④
age 18 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Root Failure
Switch A
Root
SWD SWE
age 19 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Indirect Link Failure
Switch A
Root
BPDU
Switch B Switch C
A
BPDU
Switch B begins root election, but BPDU is ignored by Switch C.
Root BDPU is propagated to switch B after MAX Age expires.
age 20 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Direct Link Failure
A
R Switch C
age 21 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Topology Change MAC Instability
Switch B
G0/0/3 Host A
G0/0/2
A 00-01-02-03-04-AA
Switch A
MAC Interface
00-01-02-03-04-AA G0/0/3
00-01-02-03-04-BB G0/0/2
R
Host B
Switch C
00-01-02-03-04-BB
Changes in the STP topology may invalidate MAC table entries.
MAC table entries expire only after 300 seconds by default.
age 22 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Topology Change Process
Root
BPDU BPDU
TCN BPDU
TCN BPDU
age 23 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Topology Change MAC Refresh
Host A
Switch B
G0/0/3
G0/0/2 00-01-02-03-04-AA
Switch A G0/0/1 D
MAC Interface
00-01-02-03-04-AA G0/0/3
00-01-02-03-04-BB G0/0/2
Root G0/0/1
R 00-01-02-03-04-BB G0/0/1
Switch C Host B
00-01-02-03-04-BB
age 24 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved. Page 24
STP Modes
Switch A
Switch B Switch C
[SWA]stp mode ?
mstp Multiple Spanning Tree Protocol (MSTP) mode
rstp Rapid Spanning Tree Protocol (RSTP) mode
stp Spanning Tree Protocol (STP) mode
[SWA]stp mode stp
age 25 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Assigning The Root
Switch A 4096 00-01-02-03-04-AA
Switch B Switch C
age 26 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Assigning Path Cost
Switch A 4096 00-01-02-03-04-AA
Switch B Switch C
G0/
0 /1
[SWC]stp pathcost-standard ?
dot1d-1998 IEEE 802.1D-1998
dot1t IEEE 802.1T
legacy Legacy
[SWC]interface GigabitEthernet 0/0/1
[SWC-GigabitEthernet0/0/1]stp cost 2000
age 27 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Root Protection
Switch A 4096 00-01-02-03-04-AA
G0/
0 /1
Switch B Switch C
age 28 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Validation
[SWA]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :4096 .00-01-02-03-04-BB
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :4096 .00-01-02-03-04-BB / 0
CIST RegRoot/IRPC :4096 .00-01-02-03-04-BB / 0
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :37
TC count per hello :0
STP Converge Mode :Normal
Share region-configuration :Enabled
Time since last TC :0 days 0h:1m:29s
……
age 29 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Validation
[SWA]display stp
……
----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
Port Protocol :Enabled
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=2000 / Active=2000
Designated Bridge/Port :4096.00-01-02-03-04-BB / 128.1
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit :147 packets/hello-time
Protection Type :Root
……
age 30 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
In the event that a root bridge (switch) temporarily fails in the STP network, the
next viable switch will take over as the root bridge. What will occur once the fail
ed root bridge once again becomes active in the network?
What is the difference between Path Cost and Root Path Cost?
age 31 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com