< Home

Configuring Outbound Interface-based Rate Limiting

Context

To control the rate of all outgoing traffic on an interface, configure outbound interface-based rate limiting. When the transmit rate of packets exceeds the rate limit, excess packets are placed in the buffer queue. When there are sufficient tokens in the token bucket, the device forwards the buffered packets at an even rate. When the buffer queue is full, the device discards the buffered packets.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run qos-shaping exclude-interframe

    The system is configured not to count the inter-frame gap and preamble of packets when calculating outbound interface-based rate limiting.

    By default, the system counts the inter-frame gap and preamble of packets when calculating the traffic rate for outbound interface-based rate limiting.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run qos lr outbound cir cir-value [ cbs cbs-value ]

    Outbound interface-based rate limiting is configured.

    By default, the rate limit on an interface is the maximum bandwidth of the interface.

    The S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, and S5731S-S do not support cbs cbs-value.

    When interface-based 802.1X authentication is configured and the RADIUS server delivers the rate limit, the interface does not support the rate limit.

    If both queue-based traffic shaping and rate limiting are configured on an interface, the CIR configured for the interface must be greater than or equal to the sum of CIR values of all queues on the interface; otherwise, traffic shaping may be incorrect. For example, a low-priority queue may preempt the bandwidth of a high-priority queue.

Configuration Tips

Deleting the Configuration of Outbound Interface-based Rate Limiting

Run the undo qos lr outbound command in the interface view to delete the configuration of outbound interface-based rate limiting.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >