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

Configuration Guide - QoS

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the configurations of QoS functions, including MQC, priority mapping, traffic policing, traffic shaping, interface-based rate limiting, congestion avoidance, congestion management, packet filtering, redirection, traffic statistics, and ACL-based simplified traffic policy.
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 a Traffic Classifier

Configuring a Traffic Classifier

Pre-configuration Tasks

Before configuring a traffic classifier, complete the following tasks:
  • Configure link layer attributes of interfaces to ensure that the interfaces work properly.

  • Configure an ACL if it is needed to classify traffic.

Context

Non-conflicting rules can be configured in a traffic classifier.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic classifier classifier-name [ type { and | or } ]

    A traffic classifier is created and the traffic classifier view is displayed, or the view of an existing traffic classifier is displayed.

    and is the logical operator between the rules in a traffic classifier, which means that:
    • If a traffic classifier contains ACL rules, packets match the traffic classifier only if they match one ACL rule and all the non-ACL rules.

    • If a traffic classifier does not contain any ACL rules, packets match the traffic classifier only if they match all the rules in the classifier.

    The logical operator or means that packets match a traffic classifier if they match one or more rules in the classifier.

    By default, the relationship between rules in a traffic classifier is or.

  3. Configure matching rules according to the following table.
    NOTE:

    For details about precautions for each matching rule, see the corresponding commands in the Command Reference.

    Matching Rule

    Command

    Inner VLAN IDs in QinQ packets

    if-match inner-vlan start-inner-vlan-id [ to end-inner-vlan-id ]

    802.1p priority in VLAN packets

    if-match 8021p 8021p-value &<1-8>

    Inner 802.1p priority in QinQ packets

    if-match inner-8021p 8021p-value &<1-8>

    Outer VLAN ID or inner and outer VLAN IDs in QinQ packets

    if-match vlan vlan-id [ inner-vlan start-inner-vlan-id [ to end-inner-vlan-id ] ]

    if-match vlan start-vlan-id [ to end-vlan-id ] [ inner-vlan inner-vlan-id ]
    NOTE:

    The CE6870EI does not support the start-vlan-id [ to end-vlan-id ] parameter.

    Dropped packet

    if-match discard

    Double tags in QinQ packets

    if-match double-tag

    EXP priority in MPLS packets

    NOTE:

    Only the CE6870EI supports this matching rule.

    if-match mpls-exp exp-value &<1-8>

    Destination MAC address

    if-match destination-mac mac-address [ mac-address-mask ]

    Source MAC address

    if-match source-mac mac-address [ mac-address-mask ]

    Protocol type field in the Ethernet frame header

    if-match l2-protocol { arp | ip | rarp | protocol-value }

    All packets

    if-match any

    DSCP priority in IP packets

    if-match [ ipv6 ] dscp dscp-value &<1-8>

    IP precedence in IP packets

    if-match ip-precedence ip-precedence-value &<1-8>

    IP identifier in IP packets

    NOTE:

    The CE6880EI does not support this matching rule.

    if-match ip-identification ip-identification-id [ mask ip-identification-mask ]

    SYN Flag in the TCP packet

    if-match tcp-flag { tcp-flag-value | { ack | fin | psh | rst | syn | urg } * }

    Inbound interface

    if-match inbound-interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-8>

    Outbound interface

    if-match outbound-interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-8>

    ACL rule

    if-match acl { acl-number | acl-name }

    ACL6 rule

    if-match ipv6 acl { acl6-number | acl6-name }

    Next-hop IP address and outbound interface

    if-match nexthop ip-address interface interface-type interface-number

    Next-hop IPv6 address and outbound interface

    NOTE:

    The CE6810LI does not support this matching rule.

    if-match ipv6 nexthop ipv6-address interface interface-type interface-number

    Layer 2 known unicast packets

    if-match unicast

    Layer 2 unknown unicast packets

    if-match unknown-unicast

    Local ID

    NOTE:

    Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support this matching rule.

    if-match qos-local-id qos-local-id

    Inner information in GRE packets

    NOTE:

    Only the CE6870EI supports this matching rule.

    if-match gre [ inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-protocol protocol-number | inner-source-port source-port-number | inner-destination-port destination-port-number ] *

    Inner information in MPLS packets on the transit node

    NOTE:

    Only the CE6870EI supports this matching rule.

    • if-match mpls transit { packet-format ip | packet-format mac tag-format none} { inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-protocol protocol-number | inner-source-port source-port-number | inner-destination-port destination-port-number | inner-ip-identification inner-ip-identification-id [ mask inner-ip-identification-mask ] } *
    • if-match mpls transit packet-format mac tag-format single { inner-vlan inner-vlan-id | inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-protocol protocol-number | inner-source-port source-port-number | inner-destination-port destination-port-number | inner-ip-identification inner-ip-identification-id [ mask inner-ip-identification-mask ] } *

    Inner information in MPLS packets

    NOTE:

    Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE6870EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support this matching rule.

    if-match mpls [ inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-protocol protocol-number | inner-source-port source-port-number | inner-destination-port destination-port-number | inner-ip-identification inner-ip-identification-id [ mask inner-ip-identification-mask ] ] *

    Outer information in VXLAN packets

    NOTE:

    Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support this command.

    if-match vxlan outer acl { acl-number | acl-name }

    Inner information in VXLAN packets

    NOTE:

    The CE5810EI, CE5850EI, CE5850HI, CE5855EI, CE6810LI, and CE6810EI do not support this matching rule.

    • if-match vxlan [ transit ] [ vni vni-id ] [ tag-format { none | single } { inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-source-mac source-mac-address [ mask mac-address-mask ] | inner-protocol { protocol1 | protocol2 [ inner-tcp-flag established ] } | inner-source-port { source-port-number | range port-start port-end } | inner-destination-port { destination-port-number | range port-start port-end } | inner-ethertype { ethernet-type-hex | ip | arp | rarp | mpls } | inner-ip-identification inner-ip-identification-id [ mask inner-ip-identification-mask ] } * ]
      NOTE:

      The CE6880EI does not support the inner-ip-identification inner-ip-identification-id parameter.

    • if-match vxlan [ transit ] [ vni vni-id ] [ inner-source-ip source-ip-address [ mask ip-address-mask ] | inner-destination-ip destination-ip-address [ mask ip-address-mask ] | inner-source-mac source-mac-address [ mask mac-address-mask ] | inner-protocol { protocol1 | protocol2 [ inner-tcp-flag established ] } | inner-source-port { source-port-number | range port-start port-end } | inner-destination-port { destination-port-number | range port-start port-end } | inner-ethertype { ethernet-type-hex | ip | arp | rarp | mpls } | inner-ip-identification inner-ip-identification-id [ mask inner-ip-identification-mask ] ] *
      NOTE:

      The CE6880EI does not support the inner-ip-identification inner-ip-identification-id parameter.

    • if-match vxlan [ transit ] [ tag-format { none | single } ] acl { acl-number | acl-name }

    VXLAN reserved field

    NOTE:

    The CE5810EI, CE5850EI, CE5850HI, CE5855EI, CE6810LI, and CE6810EI do not support this matching rule.

    if-match vxlan reserved-value reserved-value

    Inner information in TRILL packets

    NOTE:

    The CE6880EI, CE6810LI, and CE5810EI do not support this matching rule.

    if-match trill acl { acl-number | acl-name }

    NOTE:
    In the scenario where an SVF is composed of all fixed switches and the non-distributed forwarding mode is used, some traffic classification rules are not supported. In this case, the system displays the message "Error: Current SVF system does not support this configuration."
  4. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166640

Views: 46921

Downloads: 219

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