No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Basic Concepts of MSTP

Basic Concepts of MSTP

MSTP Network Hierarchy

An MSTP network consists of one or more MST regions, each of which contains one or more MSTIs. An MSTI is a tree network that consists of switches running MSTP. Figure 14-3 provides an example of an MSTP network.

Figure 14-3   MSTP network hierarchy

MST Region

An MST region contains multiple network segments, each of which contains one or more switches. The switches in one MST region all share the following characteristics:
  • MSTP-enabled
  • Same region name
  • Same VLAN-MSTI mappings
  • Same MSTP revision level

Multiple switches can be grouped into an MST region by using MSTP configuration commands.

In Figure 14-4, MST region 4 contains SwitchA, SwitchB, SwitchC, and SwitchD, and has three MSTIs.

Figure 14-4  MST region with four switches and three MSTIs

VLAN Mapping Table

Each MST region has a VLAN mapping table. The VLAN mapping table maps VLANs to MSTIs.

In Figure 14-4, the mappings in MST region 4 are as follows:
  • VLAN 1 is mapped to MSTI 1.
  • VLAN 2 is mapped to MSTI 2.
  • Other VLANs are mapped to MSTI 3.


A Common Spanning Tree (CST) connects all MST regions on a switching network.

The CST is calculated using STP or RSTP, with each MST region being considered as a single node.

In Figure 14-3, the regions that are connected through black lines form a CST.


An Internal Spanning Tree (IST) resides within an MST region.

An IST is a special MSTI with an MSTI ID of 0.

An IST is a segment of the CIST in an MST region.

In Figure 14-3, the switches that are connected through dark blue lines in an MST region form an IST.


A Single Spanning Tree (SST) is formed in either of the following situations:
  • A switch running STP or RSTP belongs to only one spanning tree.
  • An MST region has only one switch.


A Common and Internal Spanning Tree (CIST) connects all the switches on a switching network and is calculated using STP or RSTP.

In Figure 14-3, all ISTs and the CST form a CIST.

Regional Root

Regional roots are classified into Internal Spanning Tree (IST) and MSTI regional roots.

In Figure 14-3, the switches that are closest to the CIST root are IST regional roots.

An MST region can contain multiple spanning trees, each of which is called an MSTI. An MSTI regional root is the root of the MSTI. In Figure 14-4, each MSTI has its own regional root.


In Figure 14-3, the CIST root is the root bridge of the CIST. The CIST root is a device in S1.

Master Bridge

The master bridge is the switch closest to the CIST root in a region, for example, S1 in Figure 14-3.

If the CIST root is in an MST region, the CIST root is the master bridge of the region.

Port Roles

MSTP adds two extra port roles to those defined in RSTP. Table 14-1 describes the port roles included in MSTP.


Except edge ports, all ports participate in MSTP calculation.

A port can play different roles in different spanning tree instances.

Table 14-1  Port roles

Port Role


Root port

A root port sends data to a root bridge and is the port closest to the root bridge. Root bridges do not have root ports.

Root ports are responsible for sending data to root bridges.

In Figure 14-5, S1 is the root; CP1 is the root port on S3; BP1 is the root port on S2.

Designated port

The designated port on a switch forwards BPDUs to a downstream switch.

In Figure 14-5, AP2 and AP3 are designated ports on S1; CP2 is a designated port on S3.

Alternate port

  • Alternate ports provide an alternate path to the root bridge. This path is different from the path through the root port.
  • An alternate port is blocked from sending BPDUs after a BPDU sent by another bridge is received.

In Figure 14-5, BP2 is an alternate port.

Backup port

  • Backup ports provide a backup path to a segment already connected by a designated port.
  • Backup ports are blocked from sending BPDUs after a BPDU sent by itself is received.

In Figure 14-5, CP3 is a backup port.

Master port

A master port is on the shortest path connecting MST regions to the CIST root.

BPDUs of an MST region are sent to the CIST root through the master port.

Master ports are special regional edge ports, functioning as root ports on ISTs or CISTs and master ports in instances.

In Figure 14-6, S1, S2, S3, and S4 form an MST region. AP1 on S1 is the master port because it is the closest port in the region to the CIST root.

Regional edge port

A regional edge port is located at the edge of an MST region and connects to another MST region or an SST.

In Figure 14-6, AP1, DP1, and DP2 in an MST region are directly connected to other regions. This means that they are all regional edge ports of the MST region.

Edge port

An edge port is located at the edge of an MST region and does not connect to any switching device.

Generally, edge ports are directly connected to terminals.

After MSTP is enabled on a port, edge port detection is started automatically. If the port fails to receive BPDU packets within (2 x Hello Timer + 1) seconds, the port is set to an edge port. Otherwise, the port is set to a non-edge port.

Figure 14-5  MSTP port roles

Figure 14-6  Master port and regional edge port

MSTP Port States

Table 14-2 describes the MSTP port states, which are the same as those used in RSTP.

Table 14-2  Port states

Port State



A port in this state can send and receive BPDUs. It can also forward user traffic.


A port in this state learns MAC addresses from user traffic to construct a MAC address table.

In Learning state, the port can send and receive BPDUs, but cannot forward user traffic.


A port in this state can only receive BPDUs.


Root, master, designated, and regional edge ports support all three port states. Alternate and backup ports support only the Discarding state.

Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 167377

Downloads: 699

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next