Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Spanning Tree Protocol ( STP ) is applied to loop network to block some undesirable redundant paths with certain algorithms and prune the network into a loop-free tree, thereby avoiding the proliferation and infinite cycling of the packet in the loop network
Page 1
References
Clause 8 of IEEE Std 802.1D, 1998 Edition Clause 17 of IEEE Std 802.1D, 2004 Edition Ethernet Switch Operation Manual
Page 2
Page 3
Page 4
Expand LAN scale Free and dynamic learning of site address information Problem: frames or packets might be forwarded circularly and continuously, resulting in network congestion
Page 5
LAN 1
1 1 1
B1
3 2
B2
3 2
B3
3 2
LAN 2
Site B
Page 6
LAN A
ROOT
LAN B LAN E
LAN C
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7
Page 8
Contents Of BPDU
The content of BPDU is organized as (Root ID, Root Path Cost, Designated Bridge ID, Designated Port ID) Root ID: Identifier of root Root Path Cost: The smallest path cost from the designated bridge to the root Designated Bridge ID : Identifier of the designated bridge Designated Port ID :Identifier of the designated port
Page 9
DMA: Destination MAC Address SMA: Source MAC Address L/T: Frame length LLC Header: Fixed link head of configuration message Payload: BPDU Data
Domain
Protocol ID Protocol Version BPDU Type Flag Bit Root Bridge ID Root Path Cost Designated Bridge ID Designated Port ID Message Age Max Age Hello Time Forward Delay
Byte
2 1 1 1 8 4 8 2 2 2 2 2
Page 10
Construct BPDU
Select the best BPDU from all the BPDUs to construct its own BPDU. Select RootID: the RootID of the BPDU with the highest priority Calculate Root Path Cost: Root Path Cost is the sum of the Root Path Cost of best BPDU and the cost of the port that receives this BPDU Select Root Port: The root port is the one that receives the best BPDU Select designated port: the ports used to forward the packets Send the new BPDU from a designated port
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11
B32
Port 2
B123
B321
B100
B80
LAN A
B102
B23
Root
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13
Select Port4 as the root select Port1 and Port2 as designated ports, and meanwhile block Port3 and Port5. Send new BPDU from Port1 and Port2: (23, 15, 81) Root ID = 23 Root Path Cost = 14+1 = 15 Root Port ID = Port4 Designated Bridge ID=81
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14
Page 15
When the message of the BPDU of Port4 is timeout, this BPDU is abandoned, and a new spanning tree are calculated, so as to select Port3 as the new root port, while the BPDU of bridge 81 remains unchanged
Page 16
Port 5
root
32032 231681
2318123 231681
231681
231681
231580
When the message of the BPDU of Port3 is timeout, this BPDU is abandoned, and a new spanning tree are calculated, so as to select Port5 as the new root port, while the BPDU of bridge 81 changes to 231681
Page 17
81081
81081
81081
81081
81081
When the message of the BPDU of Port5 is timeout, this BPDU is abandoned, and it is taken itself as the root bridge to send the BPDU (81081) till a BPDU of a higher priority is received from any port
Page 18
ROOT
Page 19
Page 20
Port Status
Port Status Disabled Port Ability Not receive/send any message Not receive/forward data, receive but not transfer BPDUs, and not learn addresses Not receive/forward data, receive and transfer BPDUs, but not learn addresses Not receive/forward data, receive and transfer BPDUs, and start to learn addresses Receive and forward data, receive and transfer BPDUs, and learn addresses
All rights reserved Page 21
Blocking
Listening Learning
Forwarding
Listening
3 4 1 5
Blocking
2 4
Learning
5
12
Forwarding
12
1interface enabled
5Forward Delay 2interface disabled 3interface is selected as root port or designated port
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22
ROOT
B3
4 3
5 2 1
Topology change notice message Topology change response message Topology change message
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24
Disadvantages of STP
Recovery time is too long: two Forward Delay
Page 25
Questions
What is the working mechanism of STP? How to select the best BPDU?
Page 26
Page 27
Page 28
Page 29
Page 30
LAN A
LAN A
Designated Port
Designated Port
Designated Port
Designated Port
LAN A
Blocked Port
LAN A F
Root Port
LAN A
Root Port F
LAN A
Blocked Port
A new root port can immediately enter the Forwarding status, if the original root port has entered the blocked status, and the designated port of the peer connected to the new root port is in the Forwarding status.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 31
Designated Port 4
F 1
Page 32
Attention
Handshakes must occur on point to point links.
LAN A
Designated Port F
LAN B
F Designated Port
LAN C
Handshake Diffusion
Page 33
LAN A
LAN B
LAN C
Designated Port
Page 34
Questions
Tell the port state of RSTP ? Describe the three improvements of RSTP in simple words ?
Page 35
Summary
The functions of STP & RSTP Basic principles of STP & RSTP
Thank You
www.huawei.com