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


To have a better experience, please upgrade your IE browser.


NE40E V800R010C10SPC500 Configuration Guide - QoS 01

This is NE40E V800R010C10SPC500 Configuration Guide - QoS
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).
Example for Configuring CTC-based Traffic Policies for VLAN Packets

Example for Configuring CTC-based Traffic Policies for VLAN Packets

This part is an example for configuring and applying priority mapping rules.

Networking Requirements

As shown in Figure 5-9, Device A and Device B connect to each other through a VLAN. When IP packets sent by Device A enter the VLAN, by default, the precedence of these IP packets is mapped to the 802.1p value. When these IP packets (carrying VLAN frame priority) leave the VLAN and arrive at Device B, the VLAN frame priority is mapped to the IP precedence according to the configuration on Device B. Then, these packets are forwarded according to their IP preference.


Interfaces 1 through 3 in this example are GE 1/0/0, GE 2/0/0, GE 3/0/0, respectively.

Figure 5-9 Networking diagram for configuring VLAN QoS

Configuration Notes

When configuring VLAN QoS, pay attention to the following:

  • The statistical function of traffic policies is disabled by default. To display the statistics about a traffic policy, you can enable statistics for the traffic policy by running the statistics enable command.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the VLAN and routes on Device A and Device B.

  2. Configure QoS policies on Device B.

Data Preparation

To complete the configuration, you need the following data:

  • Names of traffic classification, traffic behaviors, and traffic policies

  • Preferences for re-marking


  1. Define a classifier to match packets whose 802.1p value is 2.

    <HUAWEI> system-view
    [~HUAWEI] sysname routerB
    [*HUAWEI] commit
    [~routerB] traffic classifier test
    [*routerB-classifier-test] if-match 8021p 2
    [*routerB-classifier-test] commit
    [~routerB-classifier-test] quit

  2. Define a traffic behavior to re-mark the IP preference of packets as 4.

    [~routerB] traffic behavior test
    [*routerB-behavior-test] remark ip-precedence 4
    [*routerB-behavior-test] commit
    [~routerB-behavior-test] quit

  3. Define a QoS policy to associate a configured traffic behavior with a specified traffic classifier.

    [~routerB] traffic policy test
    [*routerB-trafficpolicy-test] classifier test behavior test
    [*routerB-trafficpolicy-test] commit
    [~routerB-trafficpolicy-test] quit

  4. Apply the QoS policy to the incoming traffic of GE 2/0/0.1 on Device B.

    [~routerB] interface Gigabitethernet 2/0/0.1
    [*routerB-Gigabitethernet2/0/0.1] traffic-policy test inbound link-layer
    [*routerB-Gigabitethernet2/0/0.1] commit
    [~routerB-Gigabitethernet2/0/0.1] quit

  5. Verify the configuration.

    After the preceding configurations, when packets whose IP preference is 2 are forwarded by GE1/0/0.1 on Device A reach the VLAN, the IP preference 2 is mapped to the VLAN priority 2. After these VLAN frames reach Device B, Device B forwards these VLAN frames as IP packets with the IP preference of 4 to the network segment

Configuration File

  • Configuration file of Device B

     sysname routerB
    traffic classifier test operator or
     if-match 8021p 2
    traffic behavior test
     remark ip-precedence 4
    traffic policy test
     classifier test behavior test precedence 5
    interface GigabitEthernet2/0/0.1
     undo shutdown
     vlan-type dot1q 10
     traffic-policy test inbound link-layer
Updated: 2019-01-03

Document ID: EDOC1100055024

Views: 22130

Downloads: 115

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