MindMap Gallery HCNA RS STP Spanning Tree Protocol
HCNA RS STP Spanning Tree Protocol, BPDU: Bridge Protocol Data Unit, PID: Default=0x0000 Spanning Tree, MSTP: Multiple Spanning Tree (default for Huawei switches), Configuration BPDU: Sent when calculating spanning tree.
Edited at 2023-01-10 21:02:19This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
STP-Spanning Tree
cause
Network redundancy creates loops
Loop problem
broadcast storm
MAC address table oscillation
Duplicate data frame
calculation process
four steps
1. Elect the root switch among all switches
Compare root bridge IP (smaller than)
priority
Default: 32768
Step size: 4096
MAC address
2. Elect a root port (RP) on the non-root switch
Compare and Path Cost (RPC)
Huawei
802.1T
802.1D
3. Elect a designated port (DP) in each network segment (conflict domain)
Sender bridge ID
4. Block non-root and non-designated ports (preparatory port AP)
four elements
Root Bridge ID (RID)
Root path cost (RPC)
Sender's Bridge ID (BID)
Peer port ID (PID)
Priority: 128
port number
Local port ID
port status
port role
Disabled
Blocking
Listening
15s
Learning
15s
Forwarding
state
1: Port initialization or enablement
2: The port is selected as the root port or designated port
3: The port is no longer a root port or a designated port
4: forward delay timer times out
5: Port disabled or link failed
Topology changes
Root bridge failure
If the non-root bridge switch cannot receive the BPDU from the original root bridge after waiting for the Max-Age time, it will recalculate the spanning tree.
To enter the forwarding state of a blocked port requires: MaxAge 2
FordDelay=20 15 2=50s
Direct port failure
The original blocked port becomes the root port and calculation of the spanning tree requires two forwarding delays (30s)
Indirect port failure
It takes 50s for a blocked port to enter the forwarding state: MaxAge 2
FordDelay=20 15 2=50s
Topology changes lead to changes in the MAC address table TCN BPDU
The aging time of the MAC address table of all interfaces that receive TC packets sent by the root bridge becomes 15s.
Configuration
stp enable
stp mode stp
stppri 0
stp root primaer=
stp root secondary
Set as backup root
stp pathcost-standard (802.1d/802.1t/legacy Huawei proprietary)
[R1-g0/0/0] stp cost 2000
dis stp
dis stp brief
BPDU: Bridge Protocol Data Unit
PID: Default=0x0000 spanning tree
PVI: spanning tree version
STP
RSTP: Rapid Spanning Tree
MSTP: Multiple spanning tree (default for Huawei switches)
Flags
The highest bit: TCA
Lowest bit: TC
Classification
TCN BPDU: Topology change BPDU
Configuration BPDU: sent when calculating spanning tree
constitute
RID
RPC
BID
PID
Hello time=2s
Forward Delay=15s
Message Age=forwarded through switch 1
Max Age=20s