< Home

stp transmit-limit (system view)

Function

The stp transmit-limit command configures the maximum number of Bridge Protocol Data Units (BPDUs) that each interface of the local device can send per second.

The undo stp transmit-limit command restores the maximum number of BPDUs, which can be sent by each interface of the local device per second, to the default value.

By default, each interface can send a maximum of 6 BPDUs per second.

Format

stp transmit-limit packet-number

undo stp transmit-limit

Parameters

Parameter Description Value
packet-number Maximum number of BPDUs that each interface of the local device can send per second The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network running the Spanning Tree Protocol (STP), a switch sends BPDUs to other devices in the same spanning tree at the interval of the Hello time, to maintain the spanning tree stability. If a large number of BPDUs are sent every second, system and bandwidth resources will be greatly consumed.

You can configure the Hello time by using the stp timer hello command. The Hello time is the length of the Hello timer and specifies the interval at which the switch sends BPDUs.

To prevent excessive usage of system and bandwidth resources, you can run the stp transmit-limit command to configure the maximum number of BPDUs that each interface of the local device can send per second. This configuration controls the BPDU sending rate and prevents the Multiple Spanning Tree Protocol (MSTP) from consuming too many system and bandwidth resources when topology flapping occurs.

Precautions

After the stp transmit-limit command is executed, packet-number controls the maximum number of BPDUs that each interface can send per second.

You can also configure the maximum number of BPDUs that a specific interface can send per second by running the stp transmit-limit (interface view) command in the view of this interface. The stp transmit-limit (interface view) command configuration in the interface view takes precedence over the stp transmit-limit command configuration in the system view. That is, if the stp transmit-limit (interface view) command is configured in the view of an interface, the stp transmit-limit command configuration in the system view does not take effect for this interface.

Example

# Configure the maximum number of BPDUs that each interface of the local device can send per second to 5.
<HUAWEI> system-view
[HUAWEI] stp transmit-limit 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >