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 Traffic Shaping

Configuring Traffic Shaping

Unlike traffic policing that discards packets exceeding the rate limit, traffic shaping caches packets exceeding the rate limit and sends them out at an even rate.

Pre-configuration Tasks

Before configuring traffic shaping, complete the following tasks:

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

Configuring Traffic Shaping in a Queue

Context

Packets received on an interface enter different queues based on priority mapping. The device provides differentiated services by setting different traffic shaping parameters for queues with different priorities.

Before configuring traffic shaping for a port queue, configure priority mapping to map packet priorities to PHBs so that different service packets enter different queues. For details about priority mapping, see Configuring Priority Mapping.

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 queue queue-index shaping cir cir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] | pir pir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] pbs pbs-value [ bytes | kbytes | mbytes ] ] ] 

    The traffic shaping rate is configured for a port queue.

    By default, the traffic shaping rate for a port queue is the maximum bandwidth of the interface.

    If both queue-based traffic shaping and outbound rate limiting by the qos lr command are configured on an interface, the CIR of outbound rate limiting cannot be smaller than the sum of CIR values of all the queues on the interface; otherwise, traffic shaping may be abnormal. For example, a low-priority queue preempts the bandwidth of a high-priority queue.

    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 queue-based traffic shaping. To use queue-based traffic shaping, 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.

Checking the Configuration

Procedure

  • Run the display qos queue statistics interface interface-type interface-number command to check statistics on a port queue.
  • Run the display qos configuration interface [ interface-type interface-number ] command to check all the QoS configuration on an interface.
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 57330

Downloads: 3617

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