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

S12700 V200R013C00 Command 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

NOTE:

The XGE interface connected to the ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, ET1D2FW00S02, or ACU2 card does not support the mapping between local priorities and queues.

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

8021p-inbound

Function

The 8021p-inbound command maps the 802.1p priority of incoming VLAN packets in a DiffServ domain to the PHB and colors the packets.

The undo 8021p-inbound command restores the default mapping.

Table 15-11 lists the default mappings from the 802.1p priorities to PHBs and colors of incoming VLAN packets in a DiffServ domain.

Table 15-11  Mappings from 802.1p priorities to PHBs and colors of incoming packets in the DiffServ domain

802.1p Priority

PHB

Color

0

BE

green

1

AF1

green

2

AF2

green

3

AF3

green

4

AF4

green

5

EF

green

6

CS6

green

7

CS7

green

Format

8021p-inbound 8021p-value phb service-class [ green | yellow | red ]

undo 8021p-inbound [ 8021p-value ]

Parameters

Parameter

Description

Value

8021p-value

Specifies the 802.1p priority of VLAN packets.

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

phb service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively.

green

Indicates that packets are colored green.

-

yellow

Indicates that packets are colored yellow.

-

red

Indicates that packets are colored red.

-

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

To implement QoS scheduling on incoming VLAN packets, you can use the 8021p-inbound command to map the 802.1p priorities of the packets to the PHBs and colors. After a DiffServ domain is bound to the inbound interface of packets, the device forwards the packets to queues based on PHBs of the packets. Congestion management is implemented. Packets are scheduled according to their colors after a discard template is configured, avoiding congestion.

Precautions

  • The color is used to determine whether packets are discarded during flow control, and is independent of the mapping from internal priorities to queues.

  • The CoS values of packets are mapped to the corresponding internal priorities and the packets are colored accordingly. If no mapping from 802.1p priorities to CoS values is specified, the device uses the default mappings of the system.

  • If you do not specify the parameter 8021p-value when running the undo 8021p-inbound command, all the mapping between 802.1p priorities and CoS values is restored.

Example

# In DiffServ domain ds1, map the 802.1p priority 2 of the incoming VLAN packets to PHB AF1 and mark the packets yellow.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] 8021p-inbound 2 phb af1 yellow
Related Topics

8021p-outbound

Function

The 8021p-outbound command maps the PHB and color of outgoing VLAN packets in a DiffServ domain to the 802.1p priority.

The undo 8021p-outbound command restores the default mapping.

Table 15-12 lists the default mappings from the PHBs and colors to 802.1p priorities of outgoing VLAN packets in a DiffServ domain.

Table 15-12  Mappings from PHBs and colors to 802.1p priorities of outgoing VLAN packets in the DiffServ domain

PHB

Color

802.1p Priority

BE

green

0

BE

yellow

0

BE

red

0

AF1

green

1

AF1

yellow

1

AF1

red

1

AF2

green

2

AF2

yellow

2

AF2

red

2

AF3

green

3

AF3

yellow

3

AF3

red

3

AF4

green

4

AF4

yellow

4

AF4

red

4

EF

green

5

EF

yellow

5

EF

red

5

CS6

green

6

CS6

yellow

6

CS6

red

6

CS7

green

7

CS7

yellow

7

CS7

red

7

Format

8021p-outbound service-class { green | yellow | red } map 8021p-value

undo 8021p-outbound [ service-class { green | yellow | red } ]

Parameters

Parameter

Description

Value

service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively.

green

Indicates that packets are colored green.

-

yellow

Indicates that packets are colored yellow.

-

red

Indicates that packets are colored red.

-

map 8021p-value

Specifies the 802.1p priority of VLAN packets.

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

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

After QoS scheduling is performed on VLAN packets, you can use the 8021p-outbound command to map the PHB and color of the packets in a DiffServ domain to the 802.1p priority. After the DiffServ domain is bound to the outbound interface of the VLAN packets, the downstream device implements QoS scheduling according to the 802.1p priority.

Precautions

If you do not specify the parameters service-class and color when running the undo 8021p-outbound command, the default mappings from CoS values and colors to 802.1p priorities are restored.

Example

# In DiffServ domain ds1, map PHB AF1 of the outbound yellow VLAN packets to 802.1p priority 2.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] 8021p-outbound af1 yellow map 2
Related Topics

dei enable

Function

The dei enable command maps the drop eligible indicator (DEI) field in a VLAN tag to the drop priority.

The undo dei enable command cancels the configuration of the DEI field in a VLAN tag as the drop priority.

By default, the DEI field in a VLAN tag is not used as the drop priority.

Format

dei enable

undo dei enable

Parameters

None

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Eth-Trunk member interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

The DEI is also called the Canonical Format Indicator (CFI) field in a VLAN tag and its value is 0 or 1. The DEI field in a VLAN tag is used as the drop priority of packets in certain situations. When the rate of packets on certain devices exceeds the CIR value, the DEI field is set to 1. In this case, the drop priority of the packets is high. When congestion occurs, subsequent devices first discard the packets whose DEI field is 1.

Precautions

After the dei enable command is run, the DEI field in the VLAN tag is mapped to the drop priority:

  • The DEI field in the VLAN tag is mapped to the drop priority (packet color) on the inbound interface as follows:
    • When the DEI field is 0, packets are colored green.
    • When the DEI field is 1, packets are colored yellow.
  • The drop priority is mapped to the DEI field on the outbound interface as follows:
    • Green and yellow packets correspond to DEI 0.
    • Red packets correspond to DEI 1.

The dei enable command cannot be configured on both an Eth-Trunk and its member interfaces.

To configure the DEI field in a VLAN tag as the drop priority on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Configure the DEI field in the VLAN tag as the drop priority on GE1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dei enable

diffserv domain

Function

The diffserv domain command creates a DiffServ domain and displays the DiffServ domain view, or displays an existing DiffServ domain view.

The undo diffserv domain command deletes a specified DiffServ domain.

By default, the system defines a DiffServ mode named default.

Format

diffserv domain { default | ds-domain-name }

undo diffserv domain ds-domain-name

Parameters

Parameter

Description

Value

default

Indicates the default DiffServ domain preset in the system.

-

ds-domain-name

Specifies the name of a DiffServ domain.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. The value cannot be n, no, non, or none.

NOTE:

The value cannot be --.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Scenario

A DiffServ domain defines the mapping between the packet priority and PHB/colors packets for managing and avoiding congestion. You can run the display diffserv domain command to view the mappings and packet colors defined in the DiffServ domain.

A DiffServ domain defines the mapping between the PHBs/colors and packet priorities (802.1p and DSCP). When binding a DiffServ domain to an interface, you can run the trust command to configure 802.1p or DSCP priority mapping on the interface.

Precautions

The DiffServ domain default exists by default. In addition to this domain, the device allows a maximum of 7 DiffServ domains. You can only change the mapping for the DiffServ domain default, but cannot delete the domain.

Example

# Create DiffServ domain d1 and display the corresponding DiffServ domain view.

<HUAWEI> system-view
[HUAWEI] diffserv domain d1
[HUAWEI-dsdomain-d1]

display diffserv domain

Function

The display diffserv domain command displays the DiffServ domain configuration.

Format

display diffserv domain [ all | name ds-domain-name ]

Parameters

Parameter

Description

Value

all

Displays configurations of all DiffServ domains.

-

name ds-domain-name

Displays the detailed configuration of a specified DiffServ domain.

The value must the name of an existing DiffServ domain.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Scenario

After creating a DiffServ domain and configuring the mappings in the DiffServ domain, you can use the display diffserv domain command to view the configuration of the DiffServ domain.

If no optional parameter is specified, this command displays configurations of all DiffServ domains on the device.

Example

# Display the configuration of DiffServ domain d1.

<HUAWEI> display diffserv domain name d1
diffserv domain name:d1                                                         
 8021p-inbound 0 phb be green                                                   
 8021p-inbound 1 phb af1 green                                                  
 8021p-inbound 2 phb af2 green                                                  
 8021p-inbound 3 phb af3 green                                                  
 8021p-inbound 4 phb af4 green                                                  
 8021p-inbound 5 phb ef green                                                   
 8021p-inbound 6 phb cs6 green                                                  
 8021p-inbound 7 phb cs7 green                                                  
 8021p-outbound be green map 0                                                  
 8021p-outbound be yellow map 0                                                 
 8021p-outbound be red map 0                                                    
 8021p-outbound af1 green map 1                                                 
 8021p-outbound af1 yellow map 1                                                
 8021p-outbound af1 red map 1                                                   
 8021p-outbound af2 green map 2                                                 
 8021p-outbound af2 yellow map 2                                                
 8021p-outbound af2 red map 2                                                   
 8021p-outbound af3 green map 3                                                 
 8021p-outbound af3 yellow map 3                                                
 8021p-outbound af3 red map 3                                                   
 8021p-outbound af4 green map 4                                                 
 8021p-outbound af4 yellow map 4                                                
 8021p-outbound af4 red map 4                                                   
 8021p-outbound ef green map 5                                                  
 8021p-outbound ef yellow map 5                                                 
 8021p-outbound ef red map 5                                                    
 8021p-outbound cs6 green map 6                                                 
 8021p-outbound cs6 yellow map 6                                                
 8021p-outbound cs6 red map 6                                                   
 8021p-outbound cs7 green map 7                                                 
 8021p-outbound cs7 yellow map 7                                                
 8021p-outbound cs7 red map 7                                                   
 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                                                
 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                                                
 mpls-exp-inbound 0 phb be green                                                
 mpls-exp-inbound 1 phb af1 green                                               
 mpls-exp-inbound 2 phb af2 green                                               
 mpls-exp-inbound 3 phb af3 green                                               
 mpls-exp-inbound 4 phb af4 green                                               
 mpls-exp-inbound 5 phb ef green                                                
 mpls-exp-inbound 6 phb cs6 green                                               
 mpls-exp-inbound 7 phb cs7 green                                               
 mpls-exp-outbound be green map 0                                               
 mpls-exp-outbound be yellow map 0                                              
 mpls-exp-outbound be red map 0                                                 
 mpls-exp-outbound af1 green map 1                                              
 mpls-exp-outbound af1 yellow map 1                                             
 mpls-exp-outbound af1 red map 1                                                
 mpls-exp-outbound af2 green map 2                                              
 mpls-exp-outbound af2 yellow map 2                                             
 mpls-exp-outbound af2 red map 2                                                
 mpls-exp-outbound af3 green map 3                                              
 mpls-exp-outbound af3 yellow map 3                                             
 mpls-exp-outbound af3 red map 3                                                
 mpls-exp-outbound af4 green map 4                                              
 mpls-exp-outbound af4 yellow map 4                                             
 mpls-exp-outbound af4 red map 4                                                
 mpls-exp-outbound ef green map 5                                               
 mpls-exp-outbound ef yellow map 5                                              
 mpls-exp-outbound ef red map 5                                                 
 mpls-exp-outbound cs6 green map 6                                              
 mpls-exp-outbound cs6 yellow map 6                                             
 mpls-exp-outbound cs6 red map 6                                                
 mpls-exp-outbound cs7 green map 7                                              
 mpls-exp-outbound cs7 yellow map 7                                             
 mpls-exp-outbound cs7 red map 7                                                
Table 15-13  Description of the display diffserv domain name d1 command output

Item

Description

diffserv domain name

Name of the DiffServ domain. To create a DiffServ domain, run the diffserv domain command.

8021p-inbound

Mapping from the 802.1p priority of incoming VLAN packets in a DiffServ domain to the PHB and color. To configure the mapping, run the 8021p-inbound command.

8021p-outbound

Mapping from the PHB and color of outgoing VLAN packets in a DiffServ domain to the 802.1p priority. To configure the mapping, run the 8021p-outbound command.

ip-dscp-inbound

Mapping from the DSCP priority of incoming IP packets in a DiffServ domain to the PHB and color. To configure the mapping, run the ip-dscp-inbound command.

ip-dscp-outbound

Mapping from the PHB and color of outgoing IP packets in a DiffServ domain to the DSCP priority. To configure the mapping, run the ip-dscp-outbound command.

mpls-exp-inbound

Mapping from the EXP priority of incoming MPLS packets in a DiffServ domain to the PHB and color. To configure the mapping, run the mpls-exp-inbound command.

mpls-exp-outbound

Mapping from the PHB and color of outgoing MPLS packets in a DiffServ domain to the PHB and color. To configure the mapping, run the mpls-exp-outbound command.

# Display configurations of all DiffServ domains on the device.

<HUAWEI> display diffserv domain
   index       DS name
 --------------------------------------
     0         default                 
     1         ds1                     
     2         ds2                     
 --------------------------------------
 Total 8, Used 3                       
Table 15-14  Description of the display diffserv domain command output

Item

Description

index

Index of the DiffServ domain.

DS name

Name of the DiffServ domain. To create a DiffServ domain, run the diffserv domain command.

Total

Total number of DiffServ domains supported by the device.

Used

Number of created DiffServ domains on the device.

Related Topics

ip-dscp-inbound

Function

The ip-dscp-inbound command maps the DSCP priority of incoming IP packets in a DiffServ domain to the PHB and colors the packets.

The undo ip-dscp-inbound command restores the default mapping.

Table 15-15 lists the default mappings from the DSCP priorities to PHBs and colors of incoming IP packets in a DiffServ domain.

Table 15-15  Mappings from DSCP priorities to PHBs and colors of incoming IP packets in the DiffServ domain

DSCP

PHB

Color

DSCP

PHB

Color

0

BE

green

32

AF4

green

1

BE

green

33

BE

green

2

BE

green

34

AF4

green

3

BE

green

35

BE

green

4

BE

green

36

AF4

yellow

5

BE

green

37

BE

green

6

BE

green

38

AF4

red

7

BE

green

39

BE

green

8

AF1

green

40

EF

green

9

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

Format

ip-dscp-inbound dscp-value phb service-class [ green | yellow | red ]

undo ip-dscp-inbound [ dscp-value ]

Parameters

Parameter

Description

Value

dscp-value

Specifies the DSCP priority of IP packets.

The value is an integer that ranges from 0 to 63.

phb service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively.

green

Indicates that packets are colored green.

-

yellow

Indicates that packets are colored yellow.

-

red

Indicates that packets are colored red.

-

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

To implement QoS scheduling for incoming IP packets carrying DSCP priorities, use the ip-dscp-inbound command to configure mappings from DSCP priorities of packets to PHBs and color the packets. After a DiffServ domain is bound to the inbound interface of packets, the device forwards the packets to queues based on PHBs of the packets. Congestion management is implemented. Packets are scheduled according to their colors after a discard template is configured, avoiding congestion.

Precautions

  • The color is used to determine whether packets are discarded during flow control, and is independent of the mapping from internal priorities to queues.

  • The CoS values of packets are mapped to the corresponding internal priorities and the packets are colored accordingly. If no mapping from DSCP priorities to CoS values is specified, the device uses the default mappings of the system.

  • If you do not specify the parameter dscp-value when running the undo ip-dscp-inbound command, all mappings from DSCP priorities to CoS values is restored.

Example

# In DiffServ domain ds1, map DSCP priority 8 of the incoming IP packets to PHB AF1 and mark the packets yellow.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] ip-dscp-inbound 8 phb af1 yellow
Related Topics

ip-dscp-outbound

Function

The ip-dscp-outbound command maps the PHB and color of outgoing IP packets in a DiffServ domain to the DSCP priority.

The undo ip-dscp-outbound command restores the default mapping.

Table 15-16 lists the default mappings from the PHBs and colors to DSCP priorities of outgoing IP packets in a DiffServ domain.

Table 15-16  Mappings from PHBs and colors to DSCP priorities of outgoing IP packets in the DiffServ domain

PHB

Color

DSCP

BE

green

0

BE

yellow

0

BE

red

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

EF

yellow

46

EF

red

46

CS6

green

48

CS6

yellow

48

CS6

red

48

CS7

green

56

CS7

yellow

56

CS7

red

56

Format

ip-dscp-outbound service-class { green | yellow | red } map dscp-value

undo ip-dscp-outbound [ service-class { green | yellow | red } ]

Parameters

Parameter

Description

Value

service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively.

green

Indicates that packets are colored green.

-

yellow

Indicates that packets are colored yellow.

-

red

Indicates that packets are colored red.

-

map dscp-value

Specifies the DSCP priority of IP packets.

The value is an integer that ranges from 0 to 63.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

After QoS scheduling is performed on the IP packets, you can use the ip-dscp-outbound command to map the PHB and color of IP packets in a DiffServ domain to the DSCP priority. After the DiffServ domain is bound to the outbound interface of the IP packets, the downstream device implements QoS scheduling according to the DSCP priority.

Precautions

If you do not specify the parameters service-class and colors when running the undo ip-dscp-outbound command, the default mappings from CoS values and colors to DSCP priorities are restored.

Example

# In DiffServ domain ds1, map PHB AF1 of the outbound yellow IP packets to DSCP priority 8.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] ip-dscp-outbound af1 yellow map 8
Related Topics

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. The default value is 0. A larger value indicates a higher priority of an interface.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group 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 an interface receives untagged packets, the interface priority is added to packets during the internal forwarding.

If an interface is configured to trust the 802.1p priority using the trust 8021p command, the interface adds the 802.1p priority to the received untagged packets. The device then searches for the internal priority (represented by a PHB and color) mapping the 802.1p priority and marks packets with the internal priority.

Precautions

  • The port priority command is invalid if the current interface is a member interface of an Eth-Trunk.
  • If the trust 8021p inner command is not executed on an interface of the dot1q-tunnel, the device adds the interface priority to the received packets.
  • If you run the port priority command multiple times in the same interface view, only the latest configuration takes effect.
  • When an interface switches to Layer 3 mode through the undo portswitch command, you cannot configure a priority for the Ethernet interface. This Ethernet interface uses priority 0.

Example

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

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port priority 1
Related Topics

qos local-precedence-queue-map

Function

The qos local-precedence-queue-map command configures default mappings from local precedences to queues.

The undo qos local-precedence-queue-map command restores the default mapping from local precedences to queues.

Table 15-17 and Table 15-18 list the default mappings from local priorities to queues.

Table 15-17  Mappings between internal priorities and queues on the SC series cards

Internal Priority

Queue Index

BE (unknown unicast packets, multicast packets, and broadcast packets)

0

AF1 (unknown unicast packets, multicast packets, and broadcast packets)

1

AF2 (unknown unicast packets, multicast packets, and broadcast packets)

1

AF3 (unknown unicast packets, multicast packets, and broadcast packets)

1

AF4 (unknown unicast packets, multicast packets, and broadcast packets)

2

EF (unknown unicast packets, multicast packets, and broadcast packets)

2

CS6 (unknown unicast packets, multicast packets, and broadcast packets)

6

CS7 (unknown unicast packets, multicast packets, and broadcast packets)

6

BE (known unicast packets)

0

AF1 (known unicast packets)

1

AF2 (known unicast packets)

2

AF3 (known unicast packets)

3

AF4 (known unicast packets)

4

EF (known unicast packets)

5

CS6 (known unicast packets)

6

CS7 (known unicast packets)

7

Table 15-18  Mappings from local priorities to queues on other cards

Local Priority

Queue Index

BE

0

AF1

1

AF2

2

AF3

3

AF4

4

EF

5

CS6

6

CS7

7

Format

qos local-precedence-queue-map local-precedence queue-index

undo qos local-precedence-queue-map

NOTE:

X series cards do not support the mapping configuration between local priorities and queues.

Parameters

Parameter

Description

Value

local-precedence

Specifies the name of the local precedence.

The value can be af1, af2, af3, af4, be, cs6, cs7, or ef.

queue-index

Specifies the index of a queue.

The value is an integer that ranges from 0 to 7.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Scenario

The device sends packets to the specified queue according to the mapping from local precedences to queues.

To make traffic across the entire network achieve consistent QoS, ensure that all the stations keep consistent mapping from local precedences to queues.

Precautions

If you run the qos local-precedence-queue-map command multiple times in the system view, only the latest configuration takes effect.

Example

# Map packets with local precedence AF3 to queue 2.

<HUAWEI> system-view
[HUAWEI] qos local-precedence-queue-map af3 2

qos phb marking dscp enable

Function

The qos phb marking dscp enable command enables PHB mapping for DSCP priorities in outgoing packets on an interface.

The undo qos phb marking dscp enable command disables PHB mapping for DSCP priorities in outgoing packets on an interface.

By default, PHB mapping is enabled for DSCP priorities in outgoing packets on an interface.

Format

qos phb marking dscp enable

undo qos phb marking dscp enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the undo qos phb marking dscp enable command is used on an interface of the edge node of the DiffServ domain, PHB mapping is disabled for DSCP priorities in outgoing packets on the interface connected to the device that does not belong to the DiffServ domain.

Precautions

The trust upstream none command disables PHB mapping on an interface. After the trust upstream none command is used, the system does not perform PHB mapping for incoming and outgoing packets on the interface. Unlike the trust upstream none command, after the undo qos phb marking dscp enable command is used, the system does not perform PHB mapping for DSCP priorities in outgoing packets on the interface but performs PHB mapping for DSCP priorities in incoming packets on the interface.

The undo qos phb marking dscp enable and trust upstream none commands cannot be used simultaneously.

After the undo qos phb marking dscp enable command is used, DSCP priorities in packets are not mapped. However, 802.1p priorities in packets are still mapped. After the undo qos phb marking enable command is used, DSCP and 802.1p priorities in packets are not mapped.

Example

# Disable PHB mapping for DSCP priorities in outgoing packets on an interface.

<HUAWEI> system-view
[HUAWEI] undo qos phb marking dscp enable
Related Topics

qos phb marking enable

Function

The qos phb marking enable command enables PHB mapping for outgoing packets on an interface.

The undo qos phb marking enable command disables PHB mapping for outgoing packets on an interface.

By default, PHB mapping is enabled for outgoing packets on an interface.

Format

qos phb marking enable

undo qos phb marking enable

Parameters

None

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

After the undo qos phb marking enable command is executed on the interface of the edge node in a DiffServ domain, PHB mapping is disabled on the interface connected to a device that does not belong to the DiffServ domain.

Precautions

  • The trust upstream none command is executed to disable PHB mapping on an interface. After the trust upstream none command is executed, the system does not perform PHB mapping for incoming and outgoing packets on the interface. Unlike the trust upstream none command, after the undo qos phb marking enable command is executed, the system does not perform PHB mapping for outgoing packets on the interface but performs PHB mapping for incoming packets on the interface.

  • The undo qos phb marking enable and trust upstream none commands cannot be executed simultaneously.

Example

# Disable PHB mapping for outgoing packets on GigabitEthernet1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] undo qos phb marking enable
Related Topics

remark 8021p

Function

The remark 8021p command configures an action of re-marking the 802.1p priority in VLAN packets in a traffic behavior.

The undo remark 8021p command deletes the configuration.

By default, no action of re-marking the 802.1p priority in VLAN packets is configured in a traffic behavior.

Format

remark 8021p [ 8021p-value | inner-8021p ]

undo remark 8021p

Parameters

Parameter

Description

Value

8021p-value

Specifies the 802.1p priority of VLAN packets.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority in VLAN packets.

If the value is not specified, the default value 0 is used.

inner-8021p

Inherits the 802.1p priority in the inner tag.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide differentiated services based on the inner 802.1p priority in VLAN packets, run the remark 8021p command to configure the device to re-mark the inner 802.1p priority in VLAN packets in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing 802.1p priority re-marking.

Precautions

If a traffic policy containing remark 8021p is applied to the outbound direction on an interface, the device still processes outgoing packets based on the original priority but the downstream Layer 2 device processes the packets based on the re-marked priority.

SA series cards do not support the remark 8021p command.

A traffic policy containing the remark 8021p inner-8021p action can only be used in the inbound direction.

If a traffic policy containing remark 8021p is applied to the outbound direction on an interface, the VLAN of the interface must work in tag mode.

When a traffic classifier defines if-match ipv6 acl { acl-number | acl-name, remark 8021p [ 8021p-value | inner-8021p ] cannot be configured on X series cards.

After the remark 8021p, add-tag vlan-id, remark cvlan-id or remark vlan-id command is used, the system modifies the VLAN tag of packets according to its configuration. A behavior configured through one of these commands is called VLAN-based action.

You must configure the VLAN-based action and non-VLAN-based action in different traffic behaviors bound to the same traffic policy.

If both the trust 8021p command and the traffic policy containing remark 8021p are used in the outbound direction on the interface of packets, the 802.1p priority specified by the trust 8021p command is the re-marked value. This is because the remark 8021p command takes precedence over the trust 8021p command.

The remark 8021p and remark local-precedence commands cannot be used in the same traffic behavior.

If you run the remark 8021p command in the same traffic behavior view multiple times, only the latest configuration takes effect.

Example

# Re-mark the 802.1p priority of VLAN packets with 4 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark 8021p 4

remark 8021p (QoS profile view)

Function

The remark 8021p command configures the device to re-mark 802.1p priorities in VLAN packets in a QoS profile.

The undo remark 8021p command cancels the configuration.

By default, the device does not re-mark 802.1p priorities in VLAN packets in a QoS profile.

NOTE:

Only X series cards support this command.

Format

remark 8021p 8021p-value

undo remark 8021p

Parameters

Parameter

Description

Value

8021p-value

Specifies the 802.1p priority of VLAN packets.

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

Views

QoS profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device needs to provide differentiated services based on 802.1p priorities in VLAN packets, run the remark 8021p command to configure the device to re-mark 802.1p priorities in VLAN packets in a QoS profile.

Precautions

If you run the remark 8021p command in the same QoS profile view multiple times, only the latest configuration takes effect.

Example

# Configure the device to re-mark the 802.1p priority in VLAN packets with 4 in the QoS profile huawei.

<HUAWEI> system-view
[HUAWEI] qos-profile name huawei
[HUAWEI-qos-huawei] remark 8021p 4

remark dscp

Function

The remark dscp command configures an action of re-marking the DSCP priority in IP packets in a traffic behavior.

The undo remark dscp command deletes the configuration.

By default, an action of re-marking the DSCP priority in IP packets is not configured in a traffic behavior.

Format

remark dscp { dscp-name | dscp-value }

undo remark dscp

Parameters

Parameter

Description

Value

dscp-name

Specifies the DSCP priority name in IP packets.

The value can be ef, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, or default.

dscp-value

Specifies the DSCP priority in IP packets.

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

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide differentiated services based on the DSCP priority, run the remark dscp command to configure the device to re-mark the DSCP priority in IP packets in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing DSCP priority re-marking.

Precautions

If a traffic policy containing remark dscp is applied to the outbound direction on an interface, the device still processes outgoing packets based on the original priority but the downstream Layer 3 device or above processes the packets based on the re-marked priority.

If the traffic policy containing remark dscp and the trust dscp command are used in the outbound direction on the interface of packets, the remark dscp command changes DSCP priorities in packets because the remark dscp command takes precedence over the trust dscp command.

If you run the remark dscp command in the same traffic behavior view multiple times, only the latest configuration takes effect.

After the remark dscp { dscp-name | dscp-value } command is configured in the traffic behavior view, the system maps the packet priority to a local priority based on the DSCP priority and sends the packet to a queue based on the mapped priority. (Table 15-19 lists the mapping between DSCP priorities, local priorities, and queues.) If the remark local-precedence { local-precedence-name | local-precedence-value } command is also configured, the system sends packets to queues based on the priority configured using this command.

Table 15-19  Mapping between DSCP priorities, local priorities, and queues

DSCP Priority

Local Priority

Queue

0 to 7

0

0

8 to 15

1

1

16 to 23

2

2

24 to 31

3

3

32 to 39

4

4

40 to 47

5

5

48 to 55

6

6

56 to 63

7

7

Example

# Re-mark the DSCP priority in IP packets with 56 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark dscp 56

remark dscp (QoS profile view)

Function

The remark dscp command configures the device to re-mark DSCP priorities in IP packets in a QoS profile.

The undo remark dscp command cancels the configuration.

By default, the device does not re-mark DSCP priorities in IP packets in a QoS profile.

NOTE:

Only X series cards support this command.

Format

remark dscp dscp-value { inbound | outbound }

undo remark dscp { inbound | outbound }

Parameters

Parameter

Description

Value

dscp-value

Specifies the DSCP priority in IP packets.

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

inbound

Specifies the DSCP priority in incoming IP packets.

-

outbound

Specifies the DSCP priority in outgoing IP packets.

-

Views

QoS profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device needs to provide differentiated services based on DSCP priorities in IP packets, run the remark dscp command to configure the device to re-mark DSCP priorities in IP packets in a QoS profile.

Precautions

When the device processes IPv6 packets, or when the device uses the direct forwarding mode to process IPv4 packets, the remark dscp command cannot be used to re-mark DSCP priorities in these packets.

When packets match both outbound DSCP priority re-marking and outbound priority mapping that are configured on the device, only outbound priority mapping takes effect.

On the device that uses an earlier version of V200R011C10, the DSCP priority re-marking direction cannot be specified. When the device that uses an earlier version of V200R011C10 is upgraded to V200R011C10, the device re-marks DSCP priorities of incoming packets by default.

If you run the remark dscp command in the same QoS profile view multiple times, only the latest configuration takes effect.

Example

# Configure the device to re-mark the DSCP priority in incoming IP packets with 56 in the QoS profile huawei.

<HUAWEI> system-view
[HUAWEI] qos-profile name huawei
[HUAWEI-qos-huawei] remark dscp 56 inbound
Related Topics

remark local-precedence

Function

The remark local-precedence command configures an action of re-marking the internal priority in packets in a traffic behavior.

The undo remark local-precedence command deletes the configuration.

By default, an action of re-marking the internal priority in packets is not configured in a traffic behavior.

Format

remark local-precedence { local-precedence-name | local-precedence-value } [ green | yellow | red ]

undo remark local-precedence

Parameters

Parameter

Description

Value

local-precedence-name

Specifies the internal priority name.

The value can be af1, af2, af3, af4, be, cs6, cs7, or ef.

local-precedence-value

Specifies the internal priority value.

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

green

Indicates that the green color corresponds to an internal priority.

-

yellow

Indicates that the yellow color corresponds to an internal priority.

-

red

Indicates that the red color corresponds to an internal priority.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide differentiated services based on the internal priority of packets, run the remark local-precedence command to configure the device to re-mark the internal priority of packets so that the device can provide QoS based on the re-marked priority.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing internal priority re-marking.

Precautions

Re-marking the internal priority only affects QoS processing of packets on the device.

The remark 8021p and remark local-precedence commands cannot be used in the same traffic behavior.

A traffic policy containing the remark local-precedence action can be only used in the inbound direction.

If you run the remark local-precedence command in the same traffic behavior view multiple times, only the latest configuration takes effect.

Example

# Re-mark the internal priority of packets with 2 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark local-precedence 2

trust

Function

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

The undo trust command cancels the configuration.

By default, SA cards of the S series do not trust priorities of packets, and packets are processed based on the mapping of the outer 802.1p priority on cards of other series and SC cards of the S series.

Format

trust { 8021p { inner | outer } | dscp }

undo trust

Parameters

Parameter

Description

Value

8021p

Maps packets based on the 802.1p priority.

-

inner

Maps packets based on the inner 802.1p priority.

-

outer

Maps packets based on the outer 802.1p priority.

-

dscp

Maps packets based on the DSCP priority.

-

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Eth-Trunk member interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a DiffServ domain, 802.1p priority and DSCP priority, are mapped to the Per-Hop Behaviors (PHBs) and colors. When the DiffServ domain is bound to an interface, run the trust command to specify the priority to be mapped.

To set the same priority to be trusted on multiple interfaces, you can perform the configuration on a port group to reduce the workload.

Precautions

When the trust 8021p inner command is used with the port vlan-stacking vlan 8021p or port vlan-mapping vlan 8021p command, 802.1p priorities in packets depend on the port vlan-stacking vlan 8021p or port vlan-mapping vlan 8021p command.

If the traffic policy containing remark 8021p and the trust 8021p command are used in the outbound direction on the interface of packets, 802.1p priorities in packets are not affected by trust 8021p because the remark 8021p command takes precedence over the trust 8021p command.

If the traffic policy containing remark dscp and the trust dscp command are used in the outbound direction on the interface of packets, dscp priorities in packets are not affected by trust dscp because the remark dscp command takes precedence over the trust dscp command.

If you run the trust 8021p inner, trust 8021p outer, and trust dscp commands multiple times on the same interface, only the latest configuration takes effect.

The trust command cannot be configured on both an Eth-Trunk and its member interfaces.

Example

# Configure GE1/0/1 to trust DSCP priorities.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] trust dscp

trust upstream

Function

The trust upstream { default | ds-domain-name } command applies a DiffServ domain to an interface.

The trust upstream none command disables the priority mapping on an interface.

The undo trust upstream command restores the default settings.

By default, no DiffServ domain is bound to an interface.

Format

trust upstream { default | ds-domain-name | none }

undo trust upstream

Parameters

Parameter

Description

Value

default

Indicates the default DiffServ domain preset in the system.

-

ds-domain-name

Specifies the name of a DiffServ domain applied to an interface.

The value must the name of an existing DiffServ domain.

none

Indicates that none DiffServ domain is applied to an interface, and the priorities in packets are not trusted.

-

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Eth-Trunk member interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

To map priorities of the packets sent from the upstream device to PHBs according to the mappings defined in a DiffServ domain, run the trust upstream command to apply the DiffServ domain to the inbound interface of the packets. The system then maps priorities of packets to PHBs according to the mappings defined in the DiffServ domain.

To map PHBs of the packets sent to the downstream device to priorities according to the mappings defined in a DiffServ domain, run the trust upstream command to apply the DiffServ domain to the outbound interface of the packets. The system then maps PHBs of packets to the priorities according to the mappings defined in the DiffServ domain.

Prerequisites

A DiffServ domain has been created.

Precautions

  • After the trust upstream command is executed on an interface, the system maps the priorities of packets on the interface to the following values according to the mappings defined in the DiffServ domain:
    • PHB
    • Packet color

    For default mappings from 802.1p priorities to PHBs and colors, from PHBs and colors to 802.1p priorities, from DSCP priorities to PHBs and colors, from PHBs and colors to DSCP priorities, from EXP priorities to PHBs and colors, and from PHBs and colors to EXP priorities see the 8021p-inbound, 8021p-outbound, ip-dscp-inbound, ip-dscp-outbound, mpls-exp-inbound, and mpls-exp-outbound commands.

  • After the trust upstream none command is executed, the system performs no priority mapping on packets passing the interface.
  • To change the DiffServ domain bound to an interface, run the undo trust upstream command to unbind the original DiffServ domain from the interface, and then run the trust upstream command to apply the new DiffServ domain to the interface.
  • If you run the trust upstream command multiple times in the same interface view, only the latest configuration takes effect.

  • The trust upstream command cannot be configured on both an Eth-Trunk and its member interfaces.

  • To apply a DiffServ domain to multiple interfaces, you can perform the configuration on the port group to reduce the workload.

Example

# Apply DiffServ domain ds1 to GE1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] trust upstream ds1
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 116038

Downloads: 83

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