Setting the Maximum Transmission Rate of an Interface
Context
A larger value of packet-number indicates more BPDUs sent within a hello interval and therefore more system resources occupied. Setting an appropriate value of packet-number prevents excess bandwidth usage when route flapping occurs.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The view of the Ethernet interface that participates in spanning tree calculation is displayed.
- Run stp transmit-limit packet-number
The maximum number of BPDUs sent by a port in a specified period is set.
By default, the maximum transmission rate of BPDUs on an interface is the value configured by the stp transmit-limit (system view) command. If the stp transmit-limit (system view) command is not configured, an interface sends a maximum of six BPDUs per Hello Time interval.If the same maximum transmission rate of BPDUs needs to be set for 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 configured on an interface, the stp transmit-limit (system view) command does not take effect on that interface.
- Run commit
The configuration is committed.