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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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 Interface-based Rate Limiting

Configuring Interface-based Rate Limiting

Interface-based rate limiting limits the rate of all packets passing through the interface to ensure that the bandwidth is within the allowed range. Interface-based rate limiting in the inbound and outbound directions can be configured simultaneously or separately.

Pre-configuration Tasks

Before configuring interface-based rate limiting, complete the following tasks:

  • Configuring link layer attributes of interfaces to ensure that the interfaces work properly

Configuring Interface-based Rate Limiting in the Inbound Direction

Context

A network will be congested if traffic sent by users is not limited. Interface-based rate limiting in the inbound direction limits traffic entering an interface within a specified range.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    qos car car-name { percent percent-value | cir cir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] [ pbs pbs-value [ bytes | kbytes | mbytes ] ] | pir pir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] pbs pbs-value [ bytes | kbytes | mbytes ] ] ] }

    A QoS CAR profile is created and configured.

  3. Run:

    interface interface-type interface-number

    The interface view is displayed.

  4. Run:

    qos car inbound car-name

    The QoS CAR profile is applied to the interface.

    After a CAR profile is applied to an interface, the device limits the rate of all traffic entering the interface.

    NOTE:

    When the packet forwarding mode on the CX710 switch module 40GE converged switching plane is set to Cut Through, the CX710 switch module 40GE converged switching plane does not support interface-based rate limiting in the inbound direction. Before configuring interface-based rate limiting in the inbound direction, run the assign forward mode store-and-forward command to change the packet forwarding mode to store-and-forward.

  5. Run:

    commit

    The configuration is committed.

Configuring Interface-based Rate Limiting in the Outbound Direction

Context

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

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    qos lr cir cir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] ] [ outbound ]

    Interface-based rate limiting in the outbound direction is configured.

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

    NOTE:

    When the packet forwarding mode on the CX710 switch module 40GE converged switching plane is set to Cut Through, the CX710 switch module 40GE converged switching plane does not support interface-based rate limiting in the outbound direction. Before configuring interface-based rate limiting in the outbound direction, run the assign forward mode store-and-forward command to change the packet forwarding mode to store-and-forward.

  4. Run:

    commit

    The configuration is committed.

Configuring the Rate Limit on the Management Interface

Context

If there is heavy traffic on the management interface because of malicious attacks or network exceptions, CPU usage becomes high and services are interrupted. To ensure that the system works properly, limit the traffic on the management interface. After traffic policing is configured on the management interface, the device limits the rate of traffic received on the management interface to improve system performance.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface meth 0/18/0

    The MEth interface view is displayed.

  3. Run:

    qos lr pps packets

    The rate limit of traffic on the management interface is set.

    NOTE:

    If a small rate limit is used, FTP, Telnet, SFTP, STelnet, and SSH functions may be affected.

  4. Run:

    commit

    The configuration is committed.

Checking the Configuration
  • Run the display this interface command in the management interface view. The Over-car-pps field in the command output indicates discarded traffic that exceeds the rate limit of the management interface.
  • Run the display interface meth 0/0/0 command in any view. The Over-car-pps field in the command output indicates discarded traffic that exceeds the rate limit of the management interface.
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 57232

Downloads: 3617

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