5-STP Principle and Configuration ISSUE1.00
5-STP Principle and Configuration ISSUE1.00
5-STP Principle and Configuration ISSUE1.00
Configuration
www.huawei.com
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page2
Objectives
Upon completion of this course, you will be able to:
Describe calculation process of spanning tree
Describe the function of configuration BPDU
Describe the flood process of topology change information
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page3
Contents
1. Problems Caused by Loop
3. Configuration BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page4
Switch Forwarding Principle Review
PCA 1
SWA Destination
Destination MAC
port
00-0D-56-BF-88-10 00-0D-56-BF-88-10 E0/2
E0/2
00-0D-56-BF-88-20 E0/3
E0/3
..... .....
2 ..... .....
E0/5
3 Destination
Destination MAC
port
E0/6 00-0D-56-BF-88-10 E0/5
SWB
PCB 00-0D-56-BF-88-20 E0/6
..... .....
00-0D-56-BF-88-20 ..... .....
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page5
The First Problem Caused by Loop---
Broadcast Storm
Broadcast
1
PCA
SWA
4 2 3
SWB
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page6
Switch MAC Address Learning
Review
PCA 1
SWA Destination
Destination MAC
00-0D-56-BF-88-10 port
E0/2 00-0D-56-BF-88-10 E0/2
E0/3 ..... .....
..... .....
2
E0/5
3
Destination
Destination MAC
E0/6 port
PCB SWB 00-0D-56-BF-88-10 E0/5
..... .....
00-0D-56-BF-88-20 ..... .....
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page7
The Second Problem Caused by
Loop---MAC Table Flapping
PCA
SWA Destination
Destination MAC
00-0D-56-BF-88-10 port
E0/2 00-0D-56-BF-88-10 E0/2
E0/3 00-0D-56-BF-88-10 E0/4
E0/4
E0/5 E0/6
SWB
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page8
Contents
1. Problems Caused by Loop
3. Configuration BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page9
Calculation Process of Spanning
Tree-Select Root Switch
SWA
Root Bridge
32768.00e0-fc16-ee43
LANA LANB
SWB SWC
32768. 32768.
00e0-fc41-4259 LANC 00e0-fc41-43b9
LAND LANE
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page10
Calculation Process of Spanning Tree
-Select Root Port of non-root bridge
SWA
Root Bridge
32768.00e0-fc16-ee43
LANA LANB
Root Port Root Port
LAND LANE
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page11
Calculation Process of Spanning
Tree-Select Designated Port
SWA
Root
32768.00e0-fc16-ee43
Designated port Designated port for
for LANA LANB
LANA LANB
SWB SWC
32768. 32768.
00e0-fc41-4259 LANC 00e0-fc41-43b9
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page12
Switch Port Role
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page13
Possible Temporary Loop
SWA SWB
Root
E0/1
LANB
Designated port
E0/2
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page14
Transform of Port Status
Disabled
Listening
1
2 3 Port disables
Port disables 2
Blocking Learning
3
2
Forwarding
Port disables
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page15
Port Status Description
Port
Description
status
Port will not forward data, learn MAC address and calculate
Disabled
spanning tree
Port will not forward data and learn MAC address, but it will
Listening
calculate spanning tree, receive and send BPDU
Port will not forward data and learn MAC address; it will
Blocking
receive and deal with BPDU but not send BPDU.
Port will not forward data ,but it will learn MAC address,
Learning
calculate spanning tree, receive and send BPDU.
Port will forward data, learn MAC address, calculate
Forwarding
spanning tree, receive and send BPDU.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page16
STP Basic Configuration-Physical
Topology
SWA
Root
E0/10 E0/20
LANA LANB
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
Designated
port for LANC
LAND LANE
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page17
STP Basic Configuration-
Configuration Command
SWA [Quidway]sysname SWA
Root [SWA]stp enable
[SWA]stp mode stp
E0/10 [SWA]stp priority 4096
E0/20
[Quidway]sysname SWB
[SWB]stp enable
[SWB]stp mode stp LANA LANB
[SWB]stp priority 8192
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
E0/24 [Quidway]sysname SWC
[SWC]stp enable
Designated [SWC]stp mode stp
port for LANC
LAND LANE
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page18
STP Basic Configuration-Verify
STP Global Status
[SWC]display stp
Protocol mode: IEEE compatible STP
"bridge ID (Pri.MAC) : 32768.00e0-fc41-43b9
The bridge times: Hello Time 2 sec, Max Age 20 sec, Forward Delay 15
sec
Root bridge ID (Pri.MAC) : 4096.00e0-fc41-4259
Root path cost: 200
Bridge bpdu-protection: disabled
Timeout factor: 3
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page19
STP Basic Configuration-
Verify STP Port Information
[SWC]display stp interface Ethernet 0/20
Port 20 (Ethernet0/20) of bridge is Forwarding
Port spanning tree protocol: enabled
Port role: Root Port
Port path cost: 200
Port priority: 128
Designated bridge ID (Pri.MAC) : 4096.00e0-fc41-4259
The Port is a non-edged port
Connected to a point-to-point LAN segment
Maximum transmission limit is 3 Packets / hello time
Times: Hello Time 2 sec, Max Age 20 sec
Forward Delay 15 sec, Message Age 0
BPDU sent: 4
TCN: 2, RST: 2, Config BPDU: 0
BPDU received: 806
TCN: 0, RST: 11, Config BPDU: 795
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page20
Contents
1. Problems Caused by Loop
3. Configuration BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page21
Configuration BPDU Encapsulate
01-80-C2-00- Configuration
LLC Header
00-00 BPDU
DSAP SSAP
Control
01000010 01000010
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page22
Content of Configuration BPDU
2 Bytes Protocol Identifier 0x0000
1 Bytes Protocol Version Identifier 0x00
1 Bytes BPDU Type 0x00
1 Bytes Flags 0x00
8 Bytes Root Identifier
4 Bytes Root Path Cost Check the best
8 Bytes Bridge Identifier BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page23
Important Parameters in
Configuration BPDU
Parameters Description
Root The identifier of switch which is taken as the root
Identifier by current switch sending the configuration BPDU.
The total cost of the shortest path from switch that
Root Path send configuration BPDU to root switch, it includes
Cost the cost of root port, but the cost of port sending
configuration BPDU is not included.
Bridge The identifier of switch that sends the configuration
Identifier BPDU
Port The identifier of port that sends the configuration
Identifier BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page24
Contents
1. Problems Caused by Loop
3. Configuration BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page25
Topology Change Causes MAC
Address Table Error
SWA
Root
Destination
Destination MAC
port
00-0D-56-BF-88-20 E1
Root port
LANA LANB ..... .....
..... .....
E1
E1 SWC
SWB wrong
LANC
E2 E2 destination port,
it should be E2
New root port
LAND LANE
00-0D-56-BF-88-20
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page26
Flood Topology Change Information
Root
SWA
Topology change
notification BPDU
SWB
Topology change
acknowledge
configuration BPDU
LAND
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page27
Encapsulate Topology Change
Notification BPDU
DSAP SSAP
Control
01000010 01000010
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page28
Topology Change Notification BPDU
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page29
The Position of Flag in Configuration
BPDU
2 Bytes Protocol Identifier
1 Bytes Protocol Version Identifier
1 Bytes BPDU Type
1 Bytes Flags X 0 0 0 0 0 0 X
8 Bytes Root Identifier
4 Bytes Root Path Cost
8 Bytes Bridge Identifier Topology
2 Bytes Port Identifier change tag
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page30
Summary
How does STP calculate a tree without loop in the network?
How does STP solve temporary loop problem?
How does STP solve the problem of MAC address table
error caused by topology change?
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page31
Thank you
www.huawei.com