You are on page 1of 31

ISSUE 1.




STP

STP

RSTPMSTP

STP

RSTP

MSTP

PCA

1
A

1 1 1

SWA SWB SWC


3 2 3 2 3 2

PCB

www.h3c.com
STP

B
ROOT

A C
D





www.h3c.com

STP

RSTP

MSTP

STPSpanning Tree Protocol



BPDUBridge Protocol Data Unit


SWA

BPDU BPDU

BPDU
SWB SWC

www.h3c.com
BPDU

BPDU

IDRootID
RootPathCost
IDDesignatedBridgeID
ID DesignatedPortID

Root Bridge

BPDU
BPDU

www.h3c.com

SWA
BridgeID: 0.0000-0000-0000

SWB SWC

BridgeID: 16.0000-0000-0001 BridgeID: 0.0000-0000-0002

IDBridgePriorityMAC
BridgeMacAddress
ID

www.h3c.com

SWA

Root
DP DP

Cost=10 Cost=20

RP RP
Cost=30
DP AP
SWB SWC

Designated Port
RootPathCost
Root Port
Designated
Bridge
STP
www.h3c.com

SWA

Root
1000M 100M

Cost=10 Cost=20

1000M 100M
Cost=30
10M 10M
SWB SWC

RootPathCost
Cost

www.h3c.com
ID
SWA

Root
DP DP

Cost=10 Cost=10

RP RP
DP AP
SWB SWC
BridgeID: 0.0000-0000-0001 BridgeID: 0.0000-0000-0002
DP DP
Cost=10 Cost=10
RP AP

SWD

ID
ID

www.h3c.com
ID
SWA
BridgeID: 0.0000-0000-0001
Root

G0/1 G0/2

Cost=10 Cost=10

RP AP

SWB

IDID

www.h3c.com

STP BPDU
Disabled

BPDU
Blocking

BPDU
-- Listening

BPDU
-- Learning

BPDU
Forwarding

www.h3c.com

Blocking
ListeningLearningForwarding
Forwarding Delay15

Blocking

Listening

Forwarding Delay

Learning

Forwarding Delay

Forwarding

www.h3c.com


Forwarding Delay

SWA Server
DP DP


30

RP RP

DP
SWB SWC

www.h3c.com

STP

RSTP

MSTP


RSTP

RSTPRapid Spanning Tree Protocol


STP
RSTPSTP
RSTP


www.h3c.com
RSTP

STP RSTP

2

Forwarding Delay



2
Forwarding Delay

www.h3c.com

STP

RSTP

MSTP


STPRSTP

TrunkVLAN
VLAN
VLANTrunk

SWA Server

VLAN

PCA SWB SWC PCB

VLAN 10 VLAN 20

www.h3c.com
MSTP
MSTPMultiple Spanning Tree Protocol

VLAN

TrunkVLAN

SWA Server
A: VLAN1~10
B: VLAN11~20

PCA SWC PCB


SWB
VLAN 10 VLAN 20
www.h3c.com

STP RSTP MSTP



Y Y Y

N Y Y


N N Y

MSTPRSTP

MSTPSTPRSTP

www.h3c.com

Blocking Discarding

Listening Forwarding Delay

Forwarding Delay

Learning Learning

Forwarding Delay Forwarding Delay

Forwarding Forwarding

STP RSTP/MSTP
www.h3c.com

STP

RSTP

MSTP


STP

STP
[Switch] stp enable

STP
[Switch-Ethernet1/0/1] stp disable

STP

[Switch] stp mode { stp | rstp | mstp }

www.h3c.com
STP


[Switch] stp [ instance instance-id ] priority priority


[Switch-Ethernet1/0/1] stp edged-port enable

www.h3c.com
STP

SWA SWB
[SWA]stp enable [SWB]stp enable
[SWA]stp priority 0 [SWB]stp priority 4096

SWC [SWC]stp enable


[SWC]interface Ethernet 1/0/1
[SWC-Ethernet1/0/1] stp edged-
E1/0/1 port enable

www.h3c.com
STP
[SWA]display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.000f-e23e-f9b0 ID
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.000f-e23e-f9b0 / 0
CIST RegRoot/IRPC :32768.000f-e23e-f9b0 / 0
CIST RootPortId :0.0
BPDU-Protection :disabled
Bridge Config-
Digest-Snooping :disabled
TC or TCN received :0
......

[SWA]display stp brief


MSTID Port Role STP State Protection
0 Ethernet1/0/1 DESI FORWARDING NONE
0 Ethernet1/0/2 DESI FORWARDING NONE
......

ID

www.h3c.com

STP

STP

RSTPMSTP



www.h3c.com

You might also like