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

CLI-based Configuration Guide - QoS

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009

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

Configuring Interface-based Traffic Policing

Context

To limit the incoming and outgoing traffic rate on an interface, configure traffic policing on the interface. If the rate of received or sent packets exceeds the rate limit, the device discards excess packets.

NOTE:

LAN interfaces of the AR100-S, AR110-S, AR150-S, AR160-S, and AR200-S series and AR1220E-S do not support interface-based traffic policing.

The 4GE-2S and 4ES2GP-S cards do not support interface-based traffic policing.

The WAN-side traffic policing command can be configured on Layer 2 VE interfaces.

The 4ES2G-S card does not support Layer 2 traffic policing.

The qos car outbound cir cir-value command configured in the outbound direction of LAN-side interfaces does not take effect.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run qos overhead layer { link | physics }

    A mode is specified for calculating packet lengths during traffic policing or traffic shaping.

    By default, the system counts the physical-layer and link-layer compensation information in packet lengths during traffic policing or traffic shaping.

  3. Run interface interface-type interface-number [ .subinterface-number ]

    The interface or sub-interface view is displayed.

  4. The traffic policing configuration commands on LAN and WAN interfaces are different. Run the following commands as required.

    NOTE:

    Layer 2 VE interfaces can only configure traffic policing on WAN-side interfaces.

    • Configure traffic policing on a WAN interface.

      • On the AR120-S&AR150-S, AR160-S, and AR200-S series, run qos car { inbound | outbound } [ acl acl-number | { destination-ip-address | source-ip-address } range start-ip-address to end-ip-address [ per-address ] [ time-range time-range-name ] ] cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ red { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ]

      • On the AR151-S2, run qos car { inbound | outbound } user-set user-set-name cir cir-value [ cbs cbs-value pbs pbs-value ] [ time-range time-range-name ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ red { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ]

      • On the AR1200-S series, AR2200-S series, and AR3200-S series, run qos car { inbound | outbound } [ acl acl-number | { destination-ip-address | source-ip-address } range start-ip-address to end-ip-address [ per-address ] [ time-range time-range-name ] ] cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ red { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ]

      NOTE:
      If you do not specify the CBS and PBS when configuring traffic policing on a WAN interface, their values are as follows:
      • If the PIR is not set or set to the same value as the CIR, the CBS is 188 times the CIR and the PBS is 313 times the CIR.
      • If the PIR is set to a different value than the CIR, the CBS is 125 times the CIR and the PBS is 125 times the PIR.

      When the CBS is smaller than the number of bytes in a packet, the device discards packets of this type.

    • Configure traffic policing on a LAN interface.

      • Run qos car inbound cir cir-value

        Traffic policing is configured for all services on an interface.

      • On the AR120-S&AR150-S, AR160-S, and AR200-S series, run qos car { inbound | outbound } { acl acl-number | { destination-ip-address | source-ip-address } range start-ip-address to end-ip-address [ per-address ] [ time-range time-range-name ] } cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ red { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ]

        NOTE:

        AR111-S, AR121-S and AR151-S2 support limiting the service traffic matching a specified ACL rule or service traffic whose source and destination IP addresses are within a specified range, but do not support limiting all the service traffic on an interface.

      • On the AR1200-S series, AR3200-S series, and AR2200-S series, run qos car { inbound | outbound } { acl acl-number | { destination-ip-address | source-ip-address } range start-ip-address to end-ip-address [ per-address ] [ time-range time-range-name ] } cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ red { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ]

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174115

Views: 41811

Downloads: 30

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