Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 29

MSTP principles and

configuration

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


Foreword

This section introduces the basic principles and configuration of


MSTP. MSTP implements fast convergence and provides
multiple paths to load balance VLAN traffic.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page2


Objective

Upon completion of this section, you will be able to:

 Describe the basic concepts of MSTP

 Implement advanced configuration of MSTP

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page3


Content

Basic concepts of MSTP


Advanced configuration of MSTP

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page4


Disadvantage of Single Spanning Tree -
Some VLAN Paths are Disconnected

permit all
D VLANs to pass R
5700-A 5700-B

D D
Root VLAN2 VLAN2 The path is cut,
VLAN3 VLAN3 path
disconnects
R A
Discarding
D D
3700
VLAN2 VLAN3

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5


Disadvantage of Single Spanning Tree -
Flow Balance Can Not Be Implemented

D R
5700-A 5700-B
D D
Root VLAN2 This path is cut,
flow balance
VLAN3 can not be
R implemented
A
Discarding
D D
3700
VLAN2 VLAN3

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6


Disadvantage of Single Spanning Tree - Sub-
optimal Layer-2 Path

Create layer-3 Create layer-3


interface for VLAN2 interface for VLAN3
D R
5700-A 5700-B
D D
Root VLAN2
VLAN3 sub-optimal
VLAN3 path
R A
Discarding
D 3700 D

VLAN2 VLAN3

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7


MSTP Basic Concept - Multiple Spanning Tree
Instance

D R
5700-A R D 5700-B
D D D D
Root bridge Root bridge
for Instance 1 for Instance 2
A R
R A
Instance 1 includes Instance 2 includes
VLAN2 VLAN3
D D
3700
VLAN2 VLAN3

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8


MST Configuration Table

4096 2-byte element

0x0000 2 Bytes ............ 2 Bytes 0x0000

This value is MSTID of This value is MSTID of


MST Instance that MST Instance that
VLAN 1 maps to VLAN 4094 maps to

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9


MSTP Basic Concept - MST Region

Region A

Root bridge Region B Region C Root bridge


for Instance 1 for Instance 1

Instance 1 includes VLAN2 Instance 1 includes VLAN2

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10


MST Configuration Identifier

Configuration Identifier
1 Byte 0x00
Format Selector

Configuration
32 Bytes Configuration Name
Name

2 Bytes Revision Level Revision Level

MST Configuration
16 Bytes Configuration Digest
Digest

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11


MST Instance Calculation Process

SWA SWB
4096. D R 8192.
00e0-fc16-ee43 00e0-fc41-4259
D D
MSTI Regional
Root
R A
32768.
Instance 1: VLAN2 00e0-fc41-43b9
D
3700
VLAN2

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13


MSTP Basic Configuration - Physical Topology

SWA SWB
E1/0/15 E1/0/15
Trunk

MSTI E1/0/12 E1/0/13 MSTI


Regional Root Trunk Trunk Regional Root

E1/0/12 A A E1/0/13
Instance 1: VLAN2 Instance 2: VLAN3
E1/0/2 E1/0/3
SWC
VLAN2 VLAN3

LANA LANB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15


MSTP Basic Configuration - Configure the
MST Region Parameter of SWA

[SWA]stp enable

[SWA]stp mode mstp

[SWA]stp region-configuration

[SWA-mst-region]region-name RegionA

[SWA-mst-region]revision-level 1

[SWA-mst-region]instance 1 vlan 2

[SWA-mst-region]instance 2 vlan 3

[SWA-mst-region]active region-configuration

[SWA]stp instance 1 priority 4096

[SWA]stp instance 2 priority 8192

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 16


MSTP Basic Configuration - Set RSTP Point-to-
point Link and Edge Ports
[SWA]interface Ethernet 1/0/12
[SWA-Ethernet1/0/12]stp point-to-point force-true
[SWA]interface Ethernet 1/0/15
[SWA-Ethernet1/0/15]stp point-to-point force-true

[SWB]interface Ethernet 1/0/13


[SWB-Ethernet1/0/13]stp point-to-point force-true
[SWB]interface Ethernet 1/0/15
[SWB-Ethernet1/0/15]stp point-to-point force-true

[SWC]interface Ethernet 1/0/12


[SWC-Ethernet1/0/12]stp point-to-point force-true
[SWC]interface Ethernet 1/0/13
[SWC-Ethernet1/0/13]stp point-to-point force-true
[SWC]interface Ethernet 1/0/2
[SWC-Ethernet1/0/2]stp edged-port enable
[SWC]interface Ethernet 1/0/3
[SWC-Ethernet1/0/3]stp edged-port enable

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18


MSTP Basic Configuration - Verify MSTP
Information

[SWA]display stp brief


MSTID Port Role STP State Protection
0 Ethernet1/0/12 DESI FORWARDING NONE
0 Ethernet1/0/15 ROOT FORWARDING NONE
1 Ethernet1/0/12 DESI FORWARDING NONE
1 Ethernet1/0/15 DESI FORWARDING NONE
2 Ethernet1/0/12 DESI FORWARDING NONE
2 Ethernet1/0/15 ROOT FORWARDING NONE

[SWB]display stp brief


MSTID Port Role STP State Protection
0 Ethernet1/0/13 DESI FORWARDING NONE
0 Ethernet1/0/15 DESI FORWARDING NONE
1 Ethernet1/0/13 DESI FORWARDING NONE
1 Ethernet1/0/15 ROOT FORWARDING NONE
2 Ethernet1/0/13 DESI FORWARDING NONE
2 Ethernet1/0/15 DESI FORWARDING NONE

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 20


MSTP Basic Configuration - Verify MSTP
Information

[SWC]display stp brief


MSTID Port Role STP State Protection
0 Ethernet1/0/2 DESI FORWARDING NONE
0 Ethernet1/0/3 DESI FORWARDING NONE
0 Ethernet1/0/12 ALTE DISCARDING NONE
0 Ethernet1/0/13 ROOT FORWARDING NONE
1 Ethernet1/0/2 DESI FORWARDING NONE
1 Ethernet1/0/12 ROOT FORWARDING NONE
1 Ethernet1/0/13 ALTE DISCARDING NONE
2 Ethernet1/0/3 DESI FORWARDING NONE
2 Ethernet1/0/12 ALTE DISCARDING NONE
2 Ethernet1/0/13 ROOT FORWARDING NONE

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 21


Content

Basic concepts of MSTP


Advanced configuration of MSTP

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page22


STP Mode

[SWB]stp mode stp


[SWB]stp mode rstp
[SWB]stp mode mstp

Work mode Description


Can only communicate with STP bridge, receive
STP
and transfer configuration BPDUs.
If it detects that peer bridge is running STP, it will
RSTP
run STP.
If it detects that peer bridge is running RSTP, it
MSTP will run RSTP; if it detects that peer bridge is
running STP, it will run STP.

[SWB]stp mcheck

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 23


Set Switch as Primary Root or Secondary Root
[SWA]stp instance 0 root primary
[SWA]display stp instance 0
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge : 0.000f-e212-f8e1
Bridge Times : Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC : 0.000f-e212-f8e1 / 0
CIST RegRoot/IRPC : 0.000f-e212-f8e1 / 0
CIST RootPortId : 0.0
CIST Root Type : PRIMARY root

[SWB]stp instance 0 root secondary


[SWB]display stp instance 0
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge : 4096.000f-e212-f890
Bridge Times : Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC : 0.000f-e212-f8e1 / 199999
CIST RegRoot/IRPC : 4096.000f-e212-f890 / 0
CIST RootPortId : 128.13
CIST Root Type : SECONDARY root

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24


Configure MSTP Max-hop

[SWA]stp max-hops 30
[SWA]display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge : 0.000f-e212-f8e1
Bridge Times : Hello 2s MaxAge 20s FwDly 15s MaxHop 30
CIST Root/ERPC : 0.000f-e212-f8e1 / 0
CIST RegRoot/IRPC : 0.000f-e212-f8e1 / 0
CIST RootPortId : 0.0
BPDU-Protection : disabled
CIST Root Type : PRIMARY root
TC or TCN received : 3
Time since last TC : 0 days 1h: 23m: 36s

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 25


Adjust Time Parameter

[SWA]stp timer ?
forward-delay Specify forward delay
hello Specify hello time interval
max-age Specify max age

[SWA]stp timer-factor ?
INTEGER<1-10> Aged out time factor

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 26


The Relation between the Network Diameter and
Time Parameter
Network
Hello Timer Max Age Forward Delay
diameter
2 2s 10s 7s
3 2s 12s 9s
4 2s 14s 10s
5 2s 16s 12s
6 2s 18s 13s
7 2s 20s 15s

[SWA]stp bridge-diameter ?
INTEGER<2-7> Bridge diameter

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 27


Configure Edge Port Protection

[SWA]stp bpdu-protection

[SWA]display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge : 32768.000f-e212-f8e1
Bridge Times : Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC : 32768.000f-e212-f8e1 / 0
CIST RegRoot/IRPC : 32768.000f-e212-f8e1 / 0
CIST RootPortId : 0.0
BPDU-Protection : enabled
TC or TCN received : 0
Time since last TC : 0 days 1h: 19m: 5s

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 28


Configure Designated Port Protection of Root
Bridge
[SWA]stp interface Ethernet 1/0/13 root-protection

[SWA]display stp interface Ethernet 1/0/13

----[CIST][Port13(Ethernet1/0/13) ][FORWARDING]----
Port Protocol : enabled
Port Role : CIST Designated Port
Port Priority : 128
Port Cost(Dot1T) : Config=auto / Active=199999
Desg. Bridge/Port : 0.000f-e212-f8e1 / 128.13
Port Edged : Config=disabled / Active=disabled
Point-to-point : Config=auto / Active=true
Transit Limit : 3 packets/hello-time
Protection Type : Root
Num of Vlans Mapped : 1
PortTimes : Hello 2s MaxAge 20s FwDly 15s RemHop 0
BPDU Sent : 18
TCN: 0, Config: 0, RST: 0, MST: 18
BPDU Received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 29


Configure Loop Protection Function
[SWB]stp interface Ethernet 1/0/13 loop-protection

[SWB]display stp interface Ethernet 1/0/13

----[CIST][Port13(Ethernet1/0/13) ][FORWARDING]----
Port Protocol : enabled
Port Role : CIST Root Port
Port Priority : 128
Port Cost(Dot1T) : Config=auto / Active=199999
Desg. Bridge/Port : 0.000f-e212-f8e1 / 128.13
Port Edged : Config=disabled / Active=disabled
Point-to-point : Config=auto / Active=true
Transit Limit : 3 packets/hello-time
Protection Type : Loop
Num of Vlans Mapped : 1
PortTimes : Hello 2s MaxAge 20s FwDly 15s RemHop 0
BPDU Sent : 6
TCN: 0, Config: 0, RST: 0, MST: 6
BPDU Received : 705
TCN: 0, Config: 0, RST: 0, MST: 705

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 31


Configure TC-BPDU Protection Function

[SWB]stp tc-protection ?
threshold Set the threshold value

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 32


Question

 How many parts does MST configuration

identifier include?

 How many parts does CIST include?

 What is the function of Master port?

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 33


Thank you
www.huawei.com

You might also like