This document describes the configuration and maintenance of device through the web network management system. The web network management system provides the functions of viewing device information and managing the entire system, interfaces, services, ACL, QoS, routes, security, and tools.

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).

STP

STP

The following sections describe how to query the STP information and set the global STP parameters, STP parameters on an interface, and parameters of an MST region.

The Spanning Tree Protocol (STP) is applicable to ring networks. It uses certain algorithms to implement path redundancy and prune a ring network into a tree-type network. This prevents increase and infinite circulation of packets in the ring network.

Indicates whether to enable STP. The options are Enabled and Disabled. By default, STP
is enabled.

Instance

Instance

Indicates the ID of a multi-spanning tree instance
(MSTI). You can enter any MSTI ID ranging from 0 to 4094.

Root type

Indicates the root type of the switch. The options are:

Not set

The root type is not set.

Primary

The switch is configured as root switch of the MSTI.

Secondary

The switch is configured as the backup root switch of the MSTI.

By default, the Not set option is selected.

Priority

Specifies the priority of the switch.

The priority is
a major basis for the spanning tree calculation. You can set different
priorities for a switch in different MSTIs.

NOTE:

In an instance, if Root Type is Not set, you can select
a priority from the drop-down list box. If Root Type is Primary or Secondary, the
priority cannot be set.

Advanced Configuration

BPDU protection

Indicates whether to enable BPDU protection.
The options are Enable and Disable. By default, BPDU protection is disabled.

After BPDU protection
is enabled, the switch shuts down the edge interfaces that receive BPDUs and notifies the
NMS. The shutdown interfaces can only be manually started by the network
administrator.

Timeout

Indicates the timeout interval. The timeout interval is
calculated based on the hello interval and hello time multiplier.

Working mode

Indicates the working mode of STP. The options are:

MSTP

The switch sends MSTP BPDUs in this mode.

STP

The switch sends STP BPDUs in this mode.

RSTP

The switch sends RSTP BPDUs in this mode.

The default mode is MSTP.

Max hop count

Indicates the maximum hop count of the spanning tree in
an MST region. The default value is 20.

This parameter limits
the network scale of the spanning tree in the MST region. A configuration
message has the maximum hop count on the root bridge. The hop count
decreases by 1 every time the configuration message passes a switch. When the hop count decreases
to 0, the configuration message is discarded; therefore, switches with larger hop count
from the root bridge cannot participate in the spanning tree calculation.
This limits the network scale in an MST region.

Standard for path cost calculation

Indicates the algorithm used to calculate the path cost.
The options are:

dot1t

Indicates the algorithm defined in IEEE 802.1t.

dot1d-1998

Indicates the algorithm defined in IEEE 802.1d.

legacy

Indicates Huawei algorithm.

The default algorithm is dot1t.

Diameter

Indicates the network diameter in the MST region. The default
value is 7.

The network diameter refers to the maximum number
of devices between any two devices on a network.

In this mode, the switch deletes the useless MAC address entries and ARP entries
directly.

Normal

In this mode, the switch sets the remaining aging time of the MAC address entries
and the ARP entries to 0 and ages them. If the number of ARP aging
detection times is greater than 0, the switch carries out aging detection
of the ARP entries.

The default mode is Normal.

Set Bridge Diameter and Timer

Forward delay

Indicates the delay of port status transition. The default
value is 1500 centiseconds.

Indicates the name of an interface. It is displayed automatically
and cannot be modified after you select an interface. You can select
only one interface each time.

MSTP

Indicates whether to enable MSTP. By default, MSTP is enabled.

When STP is disabled on an interface, the interface does not take
part in the spanning tree calculation and is always in Forwarding
state.

NOTE:

Loops may occur when STP is disabled on
an interface.

Instance

Instance

Indicates the ID of an MSTI. You can select any
MSTI ID ranging from 0 to 4094.

Port priority

Indicates the priority of the interface. A smaller value
indicates a higher priority.

The priority of an interface affects
its role in the specified MSTI. You can set different priorities for
an interface in different MSTIs so that traffic of VLANs can be load
balanced among different physical links.

NOTE:

When
the priority of an interface changes, MSTP recalculates the role of
the interface and changes the status of the interface.

Path cost

Indicates the path cost of the interface. The value range
varies according to the calculation algorithm of path costs. The value
ranges from 1 to 200000 when Huawei algorithm is used; the value ranges
from 1 to 65535 when the algorithm defined in IEEE 802.1D is used;
the value ranges from 1 to 200000000 when the algorithm defined in
IEEE 802.1t is used.

The path cost is the basis for calculating
the spanning tree. If you set different path costs for an interface
in different MSTIs, traffic of different VLANs is load balanced among
multiple physical links.

NOTE:

When the path cost of
an interface changes, the MSTP recalculates the spanning tree based
on the new path cost.

Advanced

Edge port

When the spanning tree is recalculated, edge ports transit
to the Forwarding state directly, which reduces the status transition
time. If an Ethernet port is not connected to any Ethernet port of
the switch, you need
to configure the Ethernet port as an edge port. There are three statuses:
Enabled, Disabled, None. The default value is None.

When link congestion occurs or a unidirectional link is
generated, the port connected to the link cannot receive BPDUs from
the upstream switch. In this case, the local switch selects a new root port, the original root port becomes
the designated port, and the blocked port transits to the Forwarding
state. Loop is then generated on the switching network. To prevent
this problem, you can enable loop protection.

P2P

Indicates the point-to-point connection type of the interface.
The options are:

Auto

The interface automatically detects whether it is connected
to a point-to-point link.

Force-true

The interface is connected to a point-to-point link.

Force-false

The interface is not connected to a point-to-point
link.

The default value is Auto.

Max BPDUs sent

Indicates the maximum number of BPDUs that an interface
can send in a hello interval.

A larger value indicates more
BPDUs sent in a hello interval and therefore more system resources
occupied. A proper value of this parameter can limit the rate of sending
BPDUs and prevent excessive bandwidth usage when network flapping
occurs.