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

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).
Configuring Priority Mappings for IP Packets

Configuring Priority Mappings for IP Packets

This section describes how to configure priority mappings for IP packets and the application environment of this function.

Context

Traffic policy based on BA classification is used to map the precedence of traffic on one type of network to another type. That is, to transmit the traffic in the other network according to the original precedence.

When the NE40E serves as the border router for different networks, the original external priorities (DSCP values) in the IP packets that go into the NE40E are all mapped to the internal priorities of the router represented by service classes of DiffServ and colors. When the NE40E sends out the packet, the internal priority is mapped back to the external priority.

BA classification is usually implemented on the core devices of the network. It can be implemented on both physical and logical interfaces. If implemented on the logical interface, BA classification can limit traffic congestion on member ports of the logical interface and restrict the precedence of packets on the logical interface.

A Diff-Serv (DS) domain is a group of Diff-Serv nodes that adopt the same service policies and implement the same PHB aggregate.

The precedence of packets is usually accepted or re-defined on the core router. On the border router in the IP domain or MPLS domain, DSCP and EXP also need to be mapped.

The BA classification can map the internal precedence to the external precedence, and the external precedence to the internal precedence. However, mapping between traffic of the same type, for example, IP traffic or MPLS traffic, is not supported.

NOTE:

Using the qos default-service-class command, you can configure the upstream traffic on the interface to enter the specific queues and provide service. After this command is run, other packets cannot be enabled to enter the queues, and BA classification cannot be enabled.

Do as follows on the router:

Pre-configuration Tasks

Before configuring traffic shaping, complete the following tasks:

  • Configuring the physical parameters of interfaces

  • Configuring the link layer attributes of interfaces to ensure their normal operation

  • Configuring IP addresses for interfaces

  • Enabling the routing protocol for communication between devices

This configuration is supported only on the admin VS.

Procedure

  • Configure the mappings between DSCP values of IP packets, service classes, and colors.
    1. Run system-view

      The system view is displayed.

    2. Run diffserv domain ds-domain-name [ domain-id domain-id ]

      A DiffServ domain is defined and the DiffServ domain view is displayed.

    3. Define traffic policies on the router based on the actual situation.

      • To define a traffic policy for incoming IP traffic, run the ip-dscp-inbound dscp-value phb service-class [ color ] command.

      • To define a traffic policy for outgoing IP traffic, run the ip-dscp-outbound service-class color map dscp-value command.

      The system predefines a domain named default for IP packets. You are not allowed to delete the default domain.

      If the priority mapping in Step 3 is not set in the DiffServ domain, the system uses the default mapping. The default domain describes the default mappings between the DSCP values, QoS service classes, and colors for IP packets. You can change the mappings in as required. In the default domain, the DSCP values of the packets from an upstream device are mapped to QoS service classes and colors. Their mappings are shown in Table 5-3. The QoS service classes and colors of the packets entering a downstream device are mapped to DSCP values. Their mappings are shown in Table 5-4.

      Table 5-3 Default mappings between DSCP values and service classes in the default domain

      DSCP

      Service

      Color

      DSCP

      Service

      Color

      00

      BE

      Green

      32

      AF4

      Green

      01

      BE

      Green

      33

      BE

      Green

      02

      BE

      Green

      34

      AF4

      Green

      03

      BE

      Green

      35

      BE

      Green

      04

      BE

      Green

      36

      AF4

      Yellow

      05

      BE

      Green

      37

      BE

      Green

      06

      BE

      Green

      38

      AF4

      Red

      07

      BE

      Green

      39

      BE

      Green

      08

      AF1

      Green

      40

      EF

      Green

      09

      BE

      Green

      41

      BE

      Green

      10

      AF1

      Green

      42

      BE

      Green

      11

      BE

      Green

      43

      BE

      Green

      12

      AF1

      Yellow

      44

      BE

      Green

      13

      BE

      Green

      45

      BE

      Green

      14

      AF1

      Red

      46

      EF

      Green

      15

      BE

      Green

      47

      BE

      Green

      16

      AF2

      Green

      48

      CS6

      Green

      17

      BE

      Green

      49

      BE

      Green

      18

      AF2

      Green

      50

      BE

      Green

      19

      BE

      Green

      51

      BE

      Green

      20

      AF2

      Yellow

      52

      BE

      Green

      21

      BE

      Green

      53

      BE

      Green

      22

      AF2

      Red

      54

      BE

      Green

      23

      BE

      Green

      55

      BE

      Green

      24

      AF3

      Green

      56

      CS7

      Green

      25

      BE

      Green

      57

      BE

      Green

      26

      AF3

      Green

      58

      BE

      Green

      27

      BE

      Green

      59

      BE

      Green

      28

      AF3

      Yellow

      60

      BE

      Green

      29

      BE

      Green

      61

      BE

      Green

      30

      AF3

      Red

      62

      BE

      Green

      31

      BE

      Green

      63

      BE

      Green

      Table 5-4 shows the default mappings between internal service classes, colors, and DSCP values for IP packets.

      Table 5-4 Default mappings between service classes and DSCP values

      Service

      Color

      DSCP

      BE

      Green

      0

      AF1

      Green

      10

      AF1

      Yellow

      12

      AF1

      Red

      14

      AF2

      Green

      18

      AF2

      Yellow

      20

      AF2

      Red

      22

      AF3

      Green

      26

      AF3

      Yellow

      28

      AF3

      Red

      30

      AF4

      Green

      34

      AF4

      Yellow

      36

      AF4

      Red

      38

      EF

      Green

      46

      CS6

      Green

      48

      CS7

      Green

      56

    4. Run commit

      The configuration is committed.

    5. Run quit

      Return to the system view.

    6. Run interface interface-type interface-number

      The interface view is displayed.

    7. Run trust upstream { 5p3d | ds-domain-name | default } [ inbound | outbound ]

      The DiffServ domain is bound to the interface, and BA classification is enabled on the interface.

      NOTE:

      In virtual access scenarios, external interfaces of APs function as inbound interfaces of traffic. To ensure that different queues are scheduled based on priorities, BA classification for AP devices is enabled on the remote AP interface of the master device.

      Perform the following steps to enable BA classification on the remote AP interface of the master device and configure the remote AP interface of the master device to deliver BA classification configurations to the AP devices:

      1. Run the trust upstream { 5p3d | ds-domain-name | default } { inbound | outbound off-load-service } remote command to bind a DiffServ domain to the remote AP interface of the master device to enable BA classification.

    8. Run commit

      The configuration is committed.

Checking the Configurations

Run the following commands to check the previous configuration.

  • Run the display diffserv domain [ ds-domain-name ] [ 8021p | dscp | exp ] [ inbound | outbound ] command to display the configurations of a DiffServ domain.
  • Run the display diffserv domain application [ ds-domain-name ] command to display the interface list applied to a DiffServ domain.
# Run the display diffserv domain command to display the mappings between the DSCP priorities, service classes, and colors in default DiffServ domain.
<HUAWEI> display diffserv domain default dscp inbound
Diffserv domain name:default
ip-dscp-inbound 0 phb be green
ip-dscp-inbound 1 phb be green
ip-dscp-inbound 2 phb be green
ip-dscp-inbound 3 phb be green
ip-dscp-inbound 4 phb be green
ip-dscp-inbound 5 phb be green
ip-dscp-inbound 6 phb be green
ip-dscp-inbound 7 phb be green
ip-dscp-inbound 8 phb af1 green
ip-dscp-inbound 9 phb be green
ip-dscp-inbound 10 phb af1 green
ip-dscp-inbound 11 phb be green
ip-dscp-inbound 12 phb af1 yellow
ip-dscp-inbound 13 phb be green
ip-dscp-inbound 14 phb af1 red
ip-dscp-inbound 15 phb be green
ip-dscp-inbound 16 phb af2 green
ip-dscp-inbound 17 phb be green
ip-dscp-inbound 18 phb af2 green
ip-dscp-inbound 19 phb be green
ip-dscp-inbound 20 phb af2 yellow
ip-dscp-inbound 21 phb be green
ip-dscp-inbound 22 phb af2 red
ip-dscp-inbound 23 phb be green
ip-dscp-inbound 24 phb af3 green
ip-dscp-inbound 25 phb be green
ip-dscp-inbound 26 phb af3 green
ip-dscp-inbound 27 phb be green
ip-dscp-inbound 28 phb af3 yellow
ip-dscp-inbound 29 phb be green
ip-dscp-inbound 30 phb af3 red
ip-dscp-inbound 31 phb be green
ip-dscp-inbound 32 phb af4 green
ip-dscp-inbound 33 phb be green
ip-dscp-inbound 34 phb af4 green
ip-dscp-inbound 35 phb be green
ip-dscp-inbound 36 phb af4 yellow
ip-dscp-inbound 37 phb be green
ip-dscp-inbound 38 phb af4 red
ip-dscp-inbound 39 phb be green
ip-dscp-inbound 40 phb ef green
ip-dscp-inbound 41 phb be green
ip-dscp-inbound 42 phb be green
ip-dscp-inbound 43 phb be green
ip-dscp-inbound 44 phb be green
ip-dscp-inbound 45 phb be green
ip-dscp-inbound 46 phb ef green
ip-dscp-inbound 47 phb be green
ip-dscp-inbound 48 phb cs6 green
ip-dscp-inbound 49 phb be green
ip-dscp-inbound 50 phb be green
ip-dscp-inbound 51 phb be green
ip-dscp-inbound 52 phb be green
ip-dscp-inbound 53 phb be green
ip-dscp-inbound 54 phb be green
ip-dscp-inbound 55 phb be green
ip-dscp-inbound 56 phb cs7 green
ip-dscp-inbound 57 phb be green
ip-dscp-inbound 58 phb be green
ip-dscp-inbound 59 phb be green
ip-dscp-inbound 60 phb be green
ip-dscp-inbound 61 phb be green
ip-dscp-inbound 62 phb be green
ip-dscp-inbound 63 phb be green
<HUAWEI> display diffserv domain default dscp outbound
Diffserv domain name:default
ip-dscp-outbound be green map 0
ip-dscp-outbound be yellow map 0
ip-dscp-outbound be red map 0
ip-dscp-outbound af1 green map 10
ip-dscp-outbound af1 yellow map 12
ip-dscp-outbound af1 red map 14
ip-dscp-outbound af2 green map 18
ip-dscp-outbound af2 yellow map 20
ip-dscp-outbound af2 red map 22
ip-dscp-outbound af3 green map 26
ip-dscp-outbound af3 yellow map 28
ip-dscp-outbound af3 red map 30
ip-dscp-outbound af4 green map 34
ip-dscp-outbound af4 yellow map 36
ip-dscp-outbound af4 red map 38
ip-dscp-outbound ef green map 46
ip-dscp-outbound ef yellow map 46
ip-dscp-outbound ef red map 46
ip-dscp-outbound cs6 green map 48
ip-dscp-outbound cs6 yellow map 48
ip-dscp-outbound cs6 red map 48
ip-dscp-outbound cs7 green map 56
ip-dscp-outbound cs7 yellow map 56
ip-dscp-outbound cs7 red map 56

# Run the display diffserv domain application domain1 command to display the interface list applied to the DiffServ domain named domain1.

<HUAWEI>  display diffserv domain application domain1
Diffserv domain name: domain1
 Interface: GigabitEthernet1/0/0.1 inbound
 Interface: GigabitEthernet1/0/0.1 outbound
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055024

Views: 22626

Downloads: 115

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