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

Reminder

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

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access
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).
Configuring STP/RSTP Parameters on an Interface

Configuring STP/RSTP Parameters on an Interface

A feedback mechanism is provided to confirm topology convergence. Thus, rapid convergence is implemented for Rapid Spanning Tree Protocol (RSTP).

Applicable Environment

On some specific networks, RSTP parameters will affect the speed of network convergence. Configuring proper RSTP parameters is required.

NOTE:

The default configurations of the parameters described in this section help implement RSTP rapid convergence. Therefore, the configuration process and all involved procedures described in this section are optional. You can perform some of the configurations as required.

Pre-configuration Tasks
Before configuring STP/RSTP parameters, complete the following task:

Configuration Procedures

You can choose one or more configuration tasks (excluding "Checking the Configuration") as required.

Configuring System Parameters

STP/Rapid Spanning Tree Protocol (RSTP) parameters that may affect network convergence include the network diameter, hello time, and timeout period for waiting for Bridge Protocol Data Units (BPDUs) from the upstream (3 x hello time x time factor). Therefore, STP/RSTP parameters need to be set properly to help implement rapid network convergence.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run stp bridge-diameter diameter

    The network diameter is configured.

    • RSTP uses a single spanning tree instance on the entire network, which cannot prevent the performance from deteriorating when the network scale grows. Therefore, the network diameter cannot be larger than 7.

    • It is recommended that you run the stp bridge-diameter diameter command to set the network diameter. Then, the switching device calculates the optimal Forward Delay period, Hello time, and Max Age period based on the set network diameter.

  3. Run stp timer-factor factor

    The timeout period for waiting for BPDUs from the upstream of a switching device is set.

  4. (Optional) If the current device is at the edge of a network, run both or either of the following commands as needed:

    • To configure all ports on the devices as edge ports, run stp edged-port default command.

      After ports on a network edge device are configured as edge ports, the ports no longer participate in spanning tree calculation. This speeds up network topology convergence and improves network stability.

    • To configure all ports on the devices as BPDU filter ports, run the stp bpdu-filter default command.

      After ports on a network edge device are configured as BPDU filter ports, the ports no longer process or send BPDUs.

    After the stp bpdu-filter default and stp edged-port default commands are run in the system view, all ports on the device no longer actively send BPDUs or negotiate with directly-connected ports; instead, all the ports are in the Forwarding state. This may lead to a loop on the network, causing broadcast storms. Exercise caution when running these commands.

  5. (Optional) To set the Forward Delay period, Hello time, and Max Age period, perform the following operations:

    • Run the stp timer forward-delay forward-delay command to set the Forward Delay period for a switching device.

    • Run the stp timer hello hello-time command to set the Hello time for a switching device.

    • Run the stp timer max-age max-age command to set the Max Age period for a switching device.

    NOTE:

    The values of the Hello time, Forward Delay period, and Max Age period must comply with the following formulas. Otherwise, networking flapping occurs.

    • 2 × (Forward Delay - 1.0 second) >= Max Age

    • Max Age >= 2 × (Hello Time + 1.0 second)

  6. Run commit

    The configuration is committed.

Configuring Port Parameters

Port parameters that may affect Rapid Spanning Tree Protocol (RSTP) topology convergence include the link type and maximum number of sent Bridge Protocol Data Units (BPDUs). Proper port parameters help RSTP to implement rapid topology convergence.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The view of the Ethernet interface participating in STP calculation is displayed.

    NOTE:
    The following configurations can be configured both on a Layer 2 interface and a Layer 3 interface.

  3. (Optional) Run stp point-to-point { auto | force-false | force-true }

    The link type is configured for a port.

    • If the Ethernet port works in full-duplex mode, the port is connected to a P2P link. In this case, force-true can be configured to implement rapid network convergence.

    • If the Ethernet port works in half-duplex mode, you can configure stp point-to-point force-true to forcibly set the link type to P2P to implement rapid network convergence.

  4. Run stp mcheck

    MCheck is enabled.

    On a switching device running RSTP, if a port is connected to a device running STP, the port automatically transitions to the STP interoperable mode.

    Enabling MCheck on the port is required because the port may fail to automatically transition to the RSTP mode in the following situations:

    • The switching device running STP is shut down or moved.

    • The switching device running STP transitions to the RSTP mode.

    NOTE:

    If you run the stp mcheck command in the system view, the MCheck operation is performed on all the interfaces.

  5. Run stp transmit-limit packet-number

    The maximum number of BPDUs that an interface sends per second is set.

    NOTE:

    If the same maximum number of BPDUs need to be sent by each interface on a device, run the stp transmit-limit (system view) command. The stp transmit-limit (interface view) command takes precedence over the stp transmit-limit (system view) command. If the stp transmit-limit (interface view) command is run on an interface, the stp transmit-limit (system view) command does not take effect on the interface.

  6. (Optional) Run stp edged-port enable

    The port is configured as an edge port.

    If a device port is connected to a terminal, you can run this command to configure the port as an edge port.

    If the current port has been configured as an edge port, the port is still be able to send BPDUs. This may cause BPDUs to be sent to other networks, leading to network flapping. To prevent this problem, run the stp bpdu-filter command to configure the edge port as a BPDU filter port and disable the port from processing or sending BPDUs.

    NOTE:

    After the stp bpdu-filter command is run on a port, the port no longer processes or sends BPDUs. The port will not negotiate with the directly-connected port to establish an STP connection. Therefore, exercise caution when running this command.

  7. Run quit

    Return to the system view.

  8. (Optional) Run error-down auto-recovery cause { bpdu-protection | l2-loop-occured } interval interval-value

    The auto recovery function on an edge port is configured. This function enables a port in the error-down state to automatically go Up after the specified delay.

    There is no default value for the recovery time. Therefore, you must specify a delay when using this command.

  9. Run commit

    The configuration is committed.

Follow-up Procedure

When the topology of a spanning tree changes, the forwarding paths to associated VLANs are changed. The ARP entries corresponding to those VLANs on the switching device need to be updated. STP/RSTP processes ARP entries in either fast or normal mode.

  • In fast mode, ARP entries to be updated are directly deleted.

  • In normal mode, ARP entries to be updated are rapidly aged.

    The remaining lifetime of ARP entries to be updated is set to 0. The switching device rapidly processes these aged entries. If the number of ARP aging probe attempts is not set to 0, ARP implements aging probe for these ARP entries.

    In either fast or normal mode, MAC entries are directly deleted.

You can run the stp converge { fast | normal } command in the system view to configure the STP/RSTP convergence mode.

Verifying the STP/RSTP Parameter Configuration

After configuring STP/Rapid Spanning Tree Protocol (RSTP) parameters that affect the topology convergence, verify the configuration

Prerequisites

The parameters that affect the topology convergence have been configured.

Procedure

  • Run the display stp [ interface interface-type interface-number ] [ brief ] command to view spanning-tree status and statistics.

Example

Run the display stp command to view the Hello time, Max Age period, Forward Delay period, maximum number of sent Bridge Protocol Data Units (BPDUs) within each Hello time, and the status whether a port is connected to a P2P link. For example:
<HUAWEI> display stp interface gigabitethernet 0/1/1
----[Port1(GigabitEthernet0/1/1)][FORWARDING]----
 Port Protocol       :enabled
 Port Role           :Root Port
 Port Priority       :128
 Port Cost(Legacy)   :Config=auto / Active=20
 Desg. Bridge/Port   :0.00e0-e70a-4d00 / 128.5
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :6 packets/hello-time
 Protection Type     :None
 Port Stp Mode       :RSTP
 Port Protocol Type  :Config=auto / Active=dot1s
 BPDU Encapsulation  :Config=stp / Active=stp
 PortTimes           :Hello 2s MaxAge 14s FwDly 10s RemHop 0
 TC or TCN send      :1
 TC or TCN received  :0
 BPDU Sent           :4
          TCN: 0, Config: 0, RST: 4, MST: 0
 BPDU Received       :22
          TCN: 0, Config: 0, RST: 22, MST: 0
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055378

Views: 16923

Downloads: 35

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