NetEngine AR600, AR6100, AR6200, and AR6300 V300R021 Command Reference
Priority Mapping Commands
Support for Priority Mapping
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
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. |
- |
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
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.
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 |
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 |
|
A larger value indicates a higher priority.
|
to input-value2 |
|
The value of input-value2 and the value of input-value1 determine the priority range.
|
output-value |
|
A larger value indicates a higher priority.
|
all |
|
- |
Usage Guidelines
Usage Scenario
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.
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. |
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.
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.
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. |
- |
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.
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
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.
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.
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
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.
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.
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. |
- |
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.