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

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
Priority Mapping Commands

Priority Mapping Commands

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 | dscp-dot1p | dscp-dscp ]

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.

-

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.

-

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
……
Table 15-6  Description of the display qos map-table command output

Item

Description

Input DSCP

Input DSCP priority. The value is an integer that ranges from 0 to 63. To set the input DSCP priority, run the 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 command.

NOTE:

A larger value indicates a higher priority.

Related Topics

input

Function

The input command configures the mapping between priorities.

The undo input command restores the default mapping between priorities.

By default, Table 15-7 lists the mapping from Dot1p priorities to DSCP priorities supported by the device. The mapping from Dot1p priorities to Dot1p priorities remains unchanged. Table 15-8 lists the mapping from DSCP priorities to Dot1p priorities. The mapping from DSCP priorities to DSCP priorities remains unchanged.

Table 15-7  Mapping from 802.1p priorities to DSCP priorities

Input Dot1p

Output DSCP

0

0

1

8

2

16

3

24

4

32

5

40

6

48

7

56

Table 15-8  Mapping from DSCP priorities to 802.1p priorities

Input DSCP

Output Dot1p

0-7

0

8-15

1

16-23

2

24-31

3

32-39

4

40-47

5

48-55

6

56-63

7

Format

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

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

Parameters

NOTE:
  • 802.1p priority mapping table views include: dot1p-dot1p view and dot1p-dscp view
  • DSCP priority mapping table views include: dscp-dot1p view and dscp-dscp 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.
  • 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.
A greater value indicates a higher priority.

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.
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.
A greater value indicates a higher priority.

output-value

  • 802.1p priority mapping table views specifies the output 802.1p or DSCP priority.
  • DSCP priority mapping table views specifies the output 802.1p or DSCP priority.
  • 802.1p priority mapping table views:
    • In the dot1p-dot1p view, the value is an integer that ranges from 0 to 7.
    • In the dot1p-dscp view, the value is an integer that ranges from 0 to 63.
  • DSCP priority mapping table views:
    • In the dscp-dot1p view, the value is an integer that ranges from 0 to 7.
    • In the dscp-dscp view, the value is an integer that ranges from 0 to 63.
A greater value indicates a higher priority.
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.

-

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, 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. 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

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 Eth0/0/1 to 1.

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

qos map-table

Function

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

Format

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

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.

-

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.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before mapping received packets based on the DSCP 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]

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 ] }

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.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device sends packets to different queues based on packet priorities. By default, the interface does not trust packet priorities. Packets enter queues according to the port priority.

If all the packets enter queues according to the interface priority, all the packets on an interface enter the same queue. Differentiated services cannot be provided. The trust command specifies the priority to be mapped for packets so that packets with different priorities enter different queues. The device sends packets to queues based on the mapped 802.1p priority.

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 support 8021p. 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 8021.p 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 Eth0/0/1 to trust DSCP priorities.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1
[Huawei-Ethernet0/0/1] trust dscp
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 90188

Downloads: 124

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