NetEngine AR600, AR6100, AR6200, and AR6300 V300R021 Command Reference

Priority Mapping Commands

Priority Mapping Commands

Support for Priority Mapping

Hardware Requirements

Table 22-11 Hardware requirements

Series

Feature Support

AR600&AR6100&AR6200&AR6300 Series

Only the AR6100 series, AR6200 series, and AR6300 series support the mapping from MPLS EXP priorities to MPLS EXP priorities.

Only the AR6140-16G4XG, AR6140H-S, AR6200 series, and AR6300 series support the mappings from 802.1p, DSCP, and MPLS EXP priorities to local priorities.

The mapping between MPLS EXP and DSCP priorities is not supported.

SRU

The mapping between MPLS EXP and DSCP priorities is not supported.

display qos map-table

Function

The display qos map-table command displays the mapping between priorities.

Format

display qos map-table [ dot1p-dot1p | dot1p-dscp | dot1p-lp | dscp-dot1p | dscp-dscp | dscp-lp | exp-exp | exp-lp ]

Parameters

Parameter

Description

Value

dot1p-dot1p

Specifies the name of the mapping table. That is, the mapping between 802.1p priorities.

-

dot1p-dscp

Specifies the name of the mapping table. That is, the mapping from 802.1p priorities to Differentiated Services Code Point (DSCP) priorities.

-

dot1p-lp

Specifies the name of the mapping table. That is, the mapping from 802.1p priorities to local priorities.

-

dscp-dot1p

Specifies the name of the mapping table. That is, the mapping from DSCP priorities to 802.1p priorities.

-

dscp-dscp

Specifies the name of the mapping table. That is, the mapping between DSCP priorities.

-

dscp-lp

Specifies the name of the mapping table. That is, the mapping from DSCP priorities to local priorities.

-

exp-exp

Specifies the name of the mapping table. That is, the mapping between MPLS EXP priorities.

-

exp-lp

Specifies the name of the mapping table. That is, the mapping from MPLS EXP priorities to local priorities.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Before and after configuring the mapping between priorities, you can use the display qos map-table command to check whether the priority mapping is correct.

Example

# Display the mapping between the current DSCP priorities and Dot1p priorities.

<Huawei> display qos map-table dscp-dot1p
Input DSCP       Dot1P
------------------------
0                 0
1                 0
2                 0
3                 0
4                 0
5                 0
6                 0
7                 0
……

# Display all the mappings between the current priorities on the router.

<Huawei> display qos map-table
Input Dot1p      LP
-------------------
 0               0
 1               1
 2               2
 3               3
 4               4
 5               5
 6               6
 7               7
Input Dot1p      Dot1p
-------------------
 0               0
 1               1
 2               2
 3               3
 4               4
 5               5
 6               6
 7               7
Input Dot1p      DSCP
-------------------
 0               0
 1               8
 2               16
 3               24
 4               32
 5               40
 6               48
 7               56
Input DSCP      LP
-------------------
 0               0
 1               0
 2               0
 3               0
 4               0
 5               0
 6               0
 7               0
……
Input DSCP      Dot1p
-------------------
 0               0
 1               0
 2               0
 3               0
 4               0
 5               0
 6               0
 7               0
……
Input DSCP      DSCP
-------------------
 0               0
 1               1
 2               2
 3               3
 4               4
 5               5
 6               6
 7               7
……
Input EXP     LP        
-------------------                 
 0               0       
 1               1       
 2               2       
 3               3     
 4               4      
 5               5             
 6               6           
 7               7              
Input EXP      EXP            
-------------------           
 0               0            
 1               1            
 2               2            
 3               3          
 4               4        
 5               5       
 6               6       
 7               7   
Table 22-12 Description of the display qos map-table command output

Item

Description

Input Dot1p

Input 802.1p priority. The value is an integer that ranges from 0 to 7. To set the input 802.1p priority, run the input command.

Input DSCP

Input DSCP priority. The value is an integer that ranges from 0 to 63. To set the input DSCP priority, run the input command.

Dot1p

Output 802.1p priority. The value is an integer that ranges from 0 to 7. To set the output 802.1p priority, run the input command.

DSCP

Output DSCP priority. The value is an integer that ranges from 0 to 63. To set the output DSCP priority, run the input command.

LP

Output local priority. The value is an integer that ranges from 0 to 7. To set the output local priority, run the input command.

Input EXP

Input MPLS EXP priority. The value is an integer that ranges from 0 to 7. To set the input MPLS EXP priority, run the input command.

EXP

Output MPLS EXP priority. The value is an integer that ranges from 0 to 7. To set the output MPLS EXP priority, run the input command.

A larger value indicates a higher priority.

input

Function

The input command configures the mapping between priorities.

The undo input command restores the default mapping between priorities.

By default, the mapping from Dot1p priorities to Dot1p priorities remains unchanged; the mapping from DSCP priorities to DSCP priorities remains unchanged; the mapping from MPLS EXP priorities to MPLS EXP priorities remains unchanged.

Table1 lists the mapping from Dot1p priorities to DSCP priorities and local priorities; Table2 lists the mapping from DSCP priorities to Dot1p priorities and local priorities; Table3 lists the mapping from MPLS EXP priorities to local priorities.

Table 22-13 Mapping from 802.1p priorities to DSCP priorities and local priorities

Input Dot1p

Output DSCP

Output LP

0

0

0

1

8

1

2

16

2

3

24

3

4

32

4

5

40

5

6

48

6

7

56

7

Table 22-14 Mapping from DSCP priorities to Dot1p priorities and local priorities

Input DSCP

Output Dot1p

Output LP

0-7

0

0

8-15

1

1

16-23

2

2

24-31

3

3

32-39

4

4

40-47

5

5

48-55

6

6

56-63

7

7

Table 22-15 Mapping from MPLS EXP priorities to local priorities

Input MPLS EXP

Output LP

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

Format

input { input-value1 [ to input-value2 ] } &<1-10> output output-value

undo input { all | { input-value1 [ to input-value2 ] } &<1-10> }

Parameters

Dot1p priority mapping table views include: dot1p-dot1p view, dot1p-dscp view, and dot1p-lp view

DSCP priority mapping table views include: dscp-dot1p view, dscp-dscp view, and dscp-lp view

MPLS EXP priority mapping table views include: exp-exp view and exp-lp view

Parameter

Description

Value

input-value1

  • Specifies the start input 802.1p priority in the 802.1p priority mapping table view.
  • Specifies the start input DSCP priority in the DSCP priority mapping table view.
  • Specifies the start input EXP priority in the MPLS EXP priority mapping table view.
A larger value indicates a higher priority.
  • In the 802.1p priority mapping table view, the value is an integer that ranges from 0 to 7.
  • In the DSCP priority mapping table view, the value is an integer that ranges from 0 to 63.
  • In the MPLS EXP priority mapping table view, the value is an integer that ranges from 0 to 7.

to input-value2

  • Specifies the end input 802.1p priority in the 802.1p priority mapping table view.
  • Specifies the end input DSCP priority in the DSCP priority mapping table view.
  • Specifies the end input EXP priority in the MPLS EXP priority mapping table view.
The value of input-value2 and the value of input-value1 determine the priority range.
  • In the 802.1p priority mapping table view, the value is an integer that ranges from 0 to 7.
  • In the DSCP priority mapping table view, the value is an integer that ranges from 0 to 63.
  • In the MPLS EXP priority mapping table view, the value is an integer that ranges from 0 to 7.
A larger value indicates a higher priority.

output-value

  • Specifies the output 802.1p priority, local priority, or DSCP priority in the 802.1p priority mapping table view.
  • Specifies the output 802.1p priority, local priority, or DSCP priority in the DSCP priority mapping table view.
  • Specifies the output MPLS EXP priority or local priority in the MPLS EXP priority mapping table view.

A larger value indicates a higher priority.

  • 802.1p priority mapping table views:
    • In the dot1p-dot1p view, the value is an integer in the range from 0 to 7.
    • In the dot1p-dscp view, the value is an integer in the range from 0 to 63.
    • In the dot1p-lp view, the value is an integer in the range from 0 to 7.
  • DSCP priority mapping table views:
    • In the dscp-dot1p view, the value is an integer in the range from 0 to 7.
    • In the dscp-dscp view, the value is an integer in the range from 0 to 63.
    • In the dscp-lp view, the value is an integer in the range from 0 to 7.
  • MPLS EXP priority mapping table views:
    • In the exp-exp view, the value is an integer in the range from 0 to 7.
    • In the exp-lp view, the value is an integer in the range from 0 to 7.

all

  • Specifies all the 802.1p priority mapping in the 802.1p priority mapping table view.
  • Specifies all the DSCP priority mapping in the DSCP priority mapping table view.
  • Specifies all the MPLS EXP priority mapping in the MPLS EXP priority mapping table view.

-

Views

Priority mapping table view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Different packets carry different priorities. For example, VLAN packets carry 802.1p priorities, and IP packets carry DSCP priorities.
  • When packets enter a device, the device sends packets to queues based on the mapping between packet priorities and local priorities.

  • When packets go out of a device, the connected downstream device guarantees QoS based on the mapping.

When a data packet is sent from a Layer 3 network to a Layer 2 network, the DSCP priority of the data packet is mapped to the 802.1p priority. When a data packet is sent from a Layer 2 network to a Layer 3 network, the 802.1p priority of the data packet is mapped to the DSCP priority.

You can use the input command to configure the mapping between priorities so that packets enter queues based on packet priorities. In this way, differentiated services can be provided.

Precautions

If you run the input command multiple times in the same priority mapping table view, only the latest configuration takes effect.

Example

# Configure the mapping in the DSCP priority mapping table: DSCP priorities 0 to 15 are mapped to 802.1p priority 0 and the mapping between DSCP priorities 16 to 63 and 802.1p priorities remains unchanged.

<Huawei> system-view
[Huawei] qos map-table dscp-dot1p
[Huawei-maptbl-dscp-dot1p] input 0 to 15 output 0

port priority

Function

The port priority command configures the priority for an interface.

The undo port priority command restores the default priority of an interface.

By default, the priority of an interface is 0.

Format

port priority priority-value

undo port priority

Parameters

Parameter

Description

Value

priority-value

Specifies the priority of an interface.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority of an interface.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Scenario

The 802.1p priority is determined by the 3-bit priority 802.1p field contained in a VLAN tag. The 802.1p priority is used to ensure QoS in the DiffServ model.

If this command is not used, packets enter queue 0. When this command is used, packets are processed as follows.

Interface Configuration

Whether a Received Packet Carries a VLAN Tag

Processing Method

Setting the interface priority

No

The device searches for an entry mapping the 802.1p priority, modifies the packet priority, and sends the packet to a queue.

Setting the interface priority

Yes

The device searches for an entry mapping the 802.1p priority, modifies the packet priority, and sends the packet to a queue.

trust 8021p override

No

The device searches for an entry mapping the default 802.1p priority, modifies the packet priority, and sends the packet to a queue.

trust 8021p

No

The device searches for an entry mapping the 802.1p priority, modifies the packet priority, and sends the packet to a queue.

Precautions

When packets enter an interface, the priority of the interface is used as the local priority of the packets if no packet priority is trusted on the interface, or a packet priority is trusted on the interface and packets are not tagged. The local priority is 0 by default and can be manually configured.

On Ethernet LAN cards, placing packets into queues based on the local priority is not supported.

If you run the port priority command multiple times in the same interface view, only the latest configuration takes effect.

Example

# Set the priority of Eth2/0/0 to 1.

<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] port priority 1

qos map-table

Function

The qos map-table command displays the Dot1p, MPLS EXP, or DSCP priority mapping table view.

Format

qos map-table { dot1p-dot1p | dot1p-dscp | dot1p-lp | dscp-dot1p | dscp-dscp | dscp-lp | exp-exp | exp-lp }

Parameters

Parameter

Description

Value

dot1p-dot1p

Displays the dot1p-dot1p view. The dot1p-dot1p table contains the mapping between 802.1p priorities.

-

dot1p-dscp

Displays the dot1p-dscp view. The dot1p-dscp table contains the mapping between 802.1p priorities and DSCP priorities.

-

dot1p-lp

Displays the dot1p-lp view. The dot1p-lp table contains the mapping between 802.1p priorities and local priorities.

-

dscp-dot1p

Displays the dscp-dot1p view. The dscp-dot1p table contains the mapping between DSCP priorities and 802.1p priorities.

-

dscp-dscp

Displays the dscp-dscp view. The dscp-dscp table contains the mapping between DSCP priorities and DSCP priorities.

-

dscp-lp

Displays the dscp-lp view. The dot1p-lp table contains the mapping between DSCP priorities and local priorities.

-

exp-exp

Displays the exp-exp view. The exp-exp table contains the mapping between MPLS EXP priorities and MPLS EXP priorities.

-

exp-lp

Displays the exp-lp view. The exp-exp table contains the mapping between MPLS EXP priorities and local priorities.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before mapping received packets based on the DSCP priority, MPLS EXP priority, or Dot1p priority, run the qos map-table command to enter the priority mapping table view.

Follow-up Procedure

Run the input command to configure the mapping.

Example

# Enter the dscp-dot1p view.

<Huawei> system-view
[Huawei] qos map-table dscp-dot1p
[Huawei-maptbl-dscp-dot1p]

set dot1p

Function

The set dot1p command sets the 802.1p priority of outgoing packets on an interface.

The undo set dot1p command deletes the 802.1p priority of outgoing packets on an interface.

This function is supported in V300R021C10 and later versions.

Format

set dot1p priority-value

undo set dot1p

Parameters

Parameter

Description

Value

priority-value

Specifies the 802.1p priority value.

The value is an integer in the range from 0 to 7.

Views

Ethernet interface view, Ethernet sub-interface view, GE interface view, GE sub-interface view, XGE interface view, XGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can set the 802.1p priority of outgoing packets on an interface.

Precautions

This command is supported only on Layer 3 Ethernet interfaces.

If you run the set dot1p command multiple times on the same interface, only the latest configuration takes effect.

For packets with double VLAN tags, running this command changes only the 802.1p priority in the outer VLAN tag.

Example

# Set the 802.1p priority of outgoing packets on Eth2/0/0 to 1.

<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] set dot1p 1

set dscp

Function

The set dscp command sets the DSCP priority of outgoing packets on an interface.

The undo set dscp command deletes the DSCP priority of outgoing packets on an interface.

This function is supported in V300R021C10 and later versions.

Format

set dscp priority-value

undo set dscp

Parameters

Parameter

Description

Value

priority-value

Specifies the DSCP priority value.

The value is an integer in the range from 0 to 63.

Views

Ethernet interface view, Ethernet sub-interface view, GE interface view, GE sub-interface view, XGE interface view, XGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to set the DSCP priority of outgoing packets on an interface.

Precautions

This command is supported only on Layer 3 Ethernet interfaces.

If you run the set dscp command multiple times on the same interface, only the latest configuration takes effect.

Example

# Set the DSCP priority of outgoing packets on Eth2/0/0 to 1.

<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] set dscp 1

trust

Function

The trust command specifies the priority to be mapped for packets.

The undo trust command cancels the configuration.

By default, the interface priority is used and packet priorities are not trusted.

Format

trust { 8021p [ override ] | dscp [ override ] | exp }

undo trust

Parameters

Parameter

Description

Value

8021p

Maps packets based on the 802.1p priority.

-

dscp

Maps packets based on the DSCP priority.

-

override

Allows the packet priority to be changed to the mapped priority.

-

exp

Maps packets based on the MPLS EXP priority.

NOTE:

AR611, AR611-S, AR611W-S, AR611W, AR611W-LTE4CN, AR617VW, AR617VW-LTE4EA, AR617VW-LTE4, AR651C, and AR651F-Lite do not support MPLS.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Packets are placed into different queues based on priorities. By default, interfaces on the device do not trust packet priorities, and packets enter queues based on interface priorities. In this case, all packets on an interface are placed into the same queue. As a result, differentiated services cannot be provided. You can run the trust command to specify the type of packet priorities to be mapped, so that packets can enter the corresponding queues.

If local priority mapping is configured, packets enter the corresponding queues based on the mapped local priority. If local priority mapping is not configured, packets enter the corresponding queues based on the priority type configured using the trust command. In this way, differentiated services are provided for packets with different priorities through queue scheduling.

Precautions

  • Different interfaces support different parameters in the trust command. For example, only GE interfaces and its sub-interfaces, FE interfaces and its sub-interfaces, and PON interfaces and its sub-interfaces support 8021p. Only WAN interfaces including Layer 3 XGE interfaces and its sub-interfaces, GE interfaces and its sub-interfaces, Layer 3 FE interfaces and its sub-interfaces, and IMA-Group interfaces support exp. The supported parameters depend on device models.
  • If a sub-interface is not configured to trust a type of the priority, packets are mapped according to the priority trusted by the main interface. If a sub-interface is also configured to trust a type of the priority, packets are mapped according to the priority trusted by the sub-interface.
  • If override is not specified, the 802.1p priority of packets is changed to the mapped value and the DSCP priority of packets remains unchanged after the packets are mapped based on the specified priority. If override is specified, 802.1p priorities and DSCP priorities in packets are changed to mapped values after the packets are mapped based on the specified priority.
  • If the trust command and a traffic policy containing remark 8021p or remark dscp are used on the same interface, remark 8021p or remark dscp in the traffic policy takes precedence over the trust command. Packet priorities are not affected by the trust command.
  • If you run the trust command multiple times on the same interface, only the latest configuration takes effect.

Example

# Configure Eth2/0/0 to trust DSCP priorities.

<Huawei> system-view
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] trust dscp