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

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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

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 17-11 lists the default mappings from the 802.1p priorities to PHBs and colors of incoming VLAN packets in a DiffServ domain.

Table 17-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 direction 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 congestion avoidance, and is independent of the mapping from PHBs to queues.

  • The priorities of packets are mapped to the corresponding PHBs and the packets are colored accordingly. If no mapping from 802.1p priorities to PHBs 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 PHBs 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 17-12 lists the default mappings from the PHBs and colors to 802.1p priorities of outgoing VLAN packets in a DiffServ domain.

Table 17-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 direction 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 PHBs 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

For CE switches excluding CE6870EI: GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

For CE6870EI switches: VLAN view, VLAN-Range 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.

  • For incoming packets:
    • If the dei enable command and CAR are not configured on a device, the device marks the packets green. If the dei enable command is not configured but CAR is configured, the device marks the packets based on the CAR settings.
    • If the dei enable command is configured, the device marks packets with the DEI field set to 0 green and packets with the DEI field set to 1 yellow.
  • For outgoing packets:
    • If the dei enable command is not configured, the device sets the DEI field to 0 for the packets.
    • If the dei enable command is configured, the device sets the DEI field to 0 for the packets that are marked green and to 1 for packets that are marked yellow or red.

Precautions

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.

For CE6870EI switches, if the dei enable command is not executed, the drop priority on the outbound interface maps to DEI 0.

Example

# Configure the DEI field in the VLAN tag as the drop priority on 10GE1/0/1. (CE switches excluding CE6870EI)

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] dei enable

# Map the DEI field in VLAN 10 to the drop priority. (CE6870EI)

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] 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 ds-domain-name

undo diffserv domain ds-domain-name

Parameters

Parameter

Description

Value

ds-domain-name

Specifies the name of a DiffServ domain.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value cannot be n, no, non, or none, and cannot contain the following special characters: | > $ * ^ and cannot start with _ . If the value contains the double quotation mark ("), the value must contain other characters.

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.

For CE6870EI switches, on a Layer 2 network, 802.1p priority mapping is performed; on a Layer 3 network, DSCP priority mapping is performed; on an MPLS network, EXP priority mapping is performed.

Precautions

The DiffServ domain default exists on a switch by default. In addition to the DiffServ domain default, a maximum of six DiffServ domains can be created on the CE6870EI and a maximum of seven DiffServ domains can be created on other models. You can only change the mapping in 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 [ brief | ds-domain-name ]

Parameters

Parameter

Description

Value

brief

Displays summary configurations of all DiffServ domains.

-

ds-domain-name

Displays the detailed configuration of a specified DiffServ domain.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value cannot be n, no, non, or none, and cannot contain the following special characters: | > $ * ^ and cannot start with _ . If the value contains the double quotation mark ("), the value must contain other characters.

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.

Precautions

If parameters brief and ds-domain-name are not specified, detailed configurations of all DiffServ domains are displayed.

Example

# Display the configuration of DiffServ domain d1.

<HUAWEI> display diffserv domain 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 af1 green                                                                                                    
 ip-dscp-inbound 10 phb af1 green                                                                                                   
 ip-dscp-inbound 11 phb af1 green                                                                                                   
 ip-dscp-inbound 12 phb af1 yellow                                                                                                  
 ip-dscp-inbound 13 phb af1 green                                                                                                   
 ip-dscp-inbound 14 phb af1 red                                                                                                     
 ip-dscp-inbound 15 phb af1 green                                                                                                   
 ip-dscp-inbound 16 phb af2 green                                                                                                   
 ip-dscp-inbound 17 phb af2 green                                                                                                   
 ip-dscp-inbound 18 phb af2 green                                                                                                   
 ip-dscp-inbound 19 phb af2 green                                                                                                   
 ip-dscp-inbound 20 phb af2 yellow                                                                                                  
 ip-dscp-inbound 21 phb af2 green                                                                                                   
 ip-dscp-inbound 22 phb af2 red                                                                                                     
 ip-dscp-inbound 23 phb af2 green                                                                                                   
 ip-dscp-inbound 24 phb af3 green                                                                                                   
 ip-dscp-inbound 25 phb af3 green                                                                                                   
 ip-dscp-inbound 26 phb af3 green                                                                                                   
 ip-dscp-inbound 27 phb af3 green                                                                                                   
 ip-dscp-inbound 28 phb af3 yellow                                                                                                  
 ip-dscp-inbound 29 phb af3 green                                                                                                   
 ip-dscp-inbound 30 phb af3 red                                                                                                     
 ip-dscp-inbound 31 phb af3 green                                                                                                   
 ip-dscp-inbound 32 phb af4 green                                                                                                   
 ip-dscp-inbound 33 phb af4 green                                                                                                   
 ip-dscp-inbound 34 phb af4 green                                                                                                   
 ip-dscp-inbound 35 phb af4 green                                                                                                   
 ip-dscp-inbound 36 phb af4 yellow                                                                                                  
 ip-dscp-inbound 37 phb af4 green                                                                                                   
 ip-dscp-inbound 38 phb af4 red                                                                                                     
 ip-dscp-inbound 39 phb af4 green                                                                                                   
 ip-dscp-inbound 40 phb ef green                                                                                                    
 ip-dscp-inbound 41 phb ef green                                                                                                    
 ip-dscp-inbound 42 phb ef green                                                                                                    
 ip-dscp-inbound 43 phb ef green                                                                                                    
 ip-dscp-inbound 44 phb ef green                                                                                                    
 ip-dscp-inbound 45 phb ef green                                                                                                    
 ip-dscp-inbound 46 phb ef green                                                                                                    
 ip-dscp-inbound 47 phb ef green                                                                                                    
 ip-dscp-inbound 48 phb cs6 green                                                                                                   
 ip-dscp-inbound 49 phb cs6 green                                                                                                   
 ip-dscp-inbound 50 phb cs6 green                                                                                                   
 ip-dscp-inbound 51 phb cs6 green                                                                                                   
 ip-dscp-inbound 52 phb cs6 green                                                                                                   
 ip-dscp-inbound 53 phb cs6 green                                                                                                   
 ip-dscp-inbound 54 phb cs6 green                                                                                                   
 ip-dscp-inbound 55 phb cs6 green                                                                                                   
 ip-dscp-inbound 56 phb cs7 green                                                                                                   
 ip-dscp-inbound 57 phb cs7 green                                                                                                   
 ip-dscp-inbound 58 phb cs7 green                                                                                                   
 ip-dscp-inbound 59 phb cs7 green                                                                                                   
 ip-dscp-inbound 60 phb cs7 green                                                                                                   
 ip-dscp-inbound 61 phb cs7 green                                                                                                   
 ip-dscp-inbound 62 phb cs7 green                                                                                                   
 ip-dscp-inbound 63 phb cs7 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   

# Display configurations of all DiffServ domains on the device.

<HUAWEI> display diffserv domain brief
Diffserv Domain Maximum: 8                                                                                                          
Total: 3                                                                                                                            
 --------------------------------------                                                                                             
   index       DS name                                                                                                              
 --------------------------------------                                                                                             
     0         default                                                                                                              
     1         ds1                                                                                                                  
     2         ds2                                                                                                                  
--------------------------------------       
Table 17-13  Description of the display diffserv domain command output

Item

Description

Diffserv domain name

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

Diffserv Domain Maximum

Maximum number of DiffServ domains supported by the device.

Total

Number of created DiffServ domains on the device.

index

Index of the DiffServ domain.

DS name

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

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 17-14 lists the default mappings from the DSCP priorities to PHBs and colors of incoming IP packets in a DiffServ domain.

Table 17-14  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

AF4

green

2

BE

green

34

AF4

green

3

BE

green

35

AF4

green

4

BE

green

36

AF4

yellow

5

BE

green

37

AF4

green

6

BE

green

38

AF4

red

7

BE

green

39

AF4

green

8

AF1

green

40

EF

green

9

AF1

green

41

EF

green

10

AF1

green

42

EF

green

11

AF1

green

43

EF

green

12

AF1

yellow

44

EF

green

13

AF1

green

45

EF

green

14

AF1

red

46

EF

green

15

AF1

green

47

EF

green

16

AF2

green

48

CS6

green

17

AF2

green

49

CS6

green

18

AF2

green

50

CS6

green

19

AF2

green

51

CS6

green

20

AF2

yellow

52

CS6

green

21

AF2

green

53

CS6

green

22

AF2

red

54

CS6

green

23

AF2

green

55

CS6

green

24

AF3

green

56

CS7

green

25

AF3

green

57

CS7

green

26

AF3

green

58

CS7

green

27

AF3

green

59

CS7

green

28

AF3

yellow

60

CS7

green

29

AF3

green

61

CS7

green

30

AF3

red

62

CS7

green

31

AF3

green

63

CS7

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 direction 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 congestion avoidance, and is independent of the mapping from PHBs to queues.

  • The priorities of packets are mapped to the corresponding PHBs and the packets are colored accordingly. If no mapping from DSCP priorities to PHBs 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 PHBs 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 17-15 lists the default mappings from the PHBs and colors to DSCP priorities of outgoing IP packets in a DiffServ domain.

Table 17-15  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 direction 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, 10GE interface view, 25GE 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.

For non-CE6870EI switches, 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.

For CE6870EI switches, the interface priority is used as follows:
  • If an interface receives untagged packets, the interface adds the default VLAN tag and the interface priority to packets during internal forwarding.

    If an interface receives one-layer tagged packets (such as QinQ packets), the interface adds a VLAN tag and the interface priority to packets during internal forwarding.

  • If the interface priority mapping function is disabled on the VLAN or interface using the trust upstream none command, the priority field in the VLAN tag of forwarded packets are replaced by the interface priority.

Precautions

  • When an Ethernet 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.
  • For non-CE6870EI switches, if the trust upstream none command is executed for incoming packets on an interface and the interface priority is executed, the device adds a VLAN tag and the interface priority to packets and sends the packets to queues based on their port priorities.
  • The port priority command is invalid if the current interface is a member interface of an Eth-Trunk.
  • 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 10GE1/0/1 to 1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port priority 1
Related Topics

qos local-precedence-queue-map

Function

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

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

For non-CE6870EI switches, Default Settings for Priority Mapping describes the mapping between PHBs and queues by default.

For CE6870EI switches, Default Settings for Priority Mapping describes the mapping between PHBs and queues by default.

Format

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

undo qos local-precedence-queue-map [ local-precedence ]

Parameters

Parameter

Description

Value

local-precedence

Specifies the name of the PHB.

The value can be af1, af2, af3, af4, be, cs6, cs7, or ef.
  • Assured forwarding (AF): applies to key data services that require assured bandwidth and short delay. If the traffic rate is within the bandwidth limit, AF ensures forwarding quality. If the traffic rate exceeds the bandwidth limit, AF lowers the CoS but does not discard the traffic before forwarding the traffic.
  • Best effort (BE): applies to best-effort services that require no strict QoS assurance. BE focuses on only reachability. For example, traditional IP packet transmission is in BE mode.
  • Expedited forwarding (EF): indicates the highest QoS on a DiffServ network. The EF PHB is applicable to services that require low packet loss ratio, short delay, and high bandwidth. EF traffic can always achieve a rate greater than or equal to the set rate.
  • Class selector (CS): indicates the same CoS as the Precedence field. CS indicates the highest CoS.

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 PHBs to queues.

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

Precautions

If you run the qos local-precedence-queue-map command on the CE6850EI, CE6810EI, CE6810LI, or CE5850HI to modify the mappings between PHBs and queues, the system uses the mappings between configured queue indexes and actual queue indexes listed in Table 17-16 for unknown unicast packets.
Table 17-16  Mappings between configured queues and actual queues that packets enter on the CE6850EI, CE6810EI, CE6810LI, or CE5850HI

Configured Queue Index

Actual Queue Index

0

0

1

1

2

1

3

1

4

2

5

2

6

6

7

6

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 PHB AF3 to queue 2.

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

qos phb marking 8021p disable

Function

The qos phb marking 8021p disable command disables mapping from PHBs to 802.1p priorities for outgoing packets.

The undo qos phb marking 8021p disable command enables mapping from PHBs to 802.1p priorities for outgoing packets.

By default, mapping from PHBs to 802.1p priorities is enabled for outgoing packets.

Format

qos phb marking 8021p disable

undo qos phb marking 8021p disable

Parameters

None

Views

CE6870EI: System view

CE switches excluding CE6870EI: GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

Generally, the qos phb marking 8021p disable command is used on an edge node of the DiffServ domain to disable the mapping between PHBs and 802.1p priorities. When the downstream device needs to use 802.1p priorities in packets, run the qos phb marking 8021p enable command to enable mapping between PHBs and 802.1p priorities in the outbound direction.

Precautions

For CE6870EI switches:

  • After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets using this command, 802.1p priorities of packets are set to 2 during Layer 3 forwarding.

  • The undo qos phb marking 8021p disable command cannot be executed together with the remark 8021p command.

  • When the FCF or NPV is configured, the qos phb marking 8021p disable command cannot be used. Otherwise, the device cannot send backpressure signals.

For CE switches excluding CE6870EI:

  • After the trust upstream none command disables priority mapping, the undo qos phb marking 8021p disable command becomes invalid.

  • When the undo qos phb marking 8021p disable command and the remark 8021p command are configured simultaneously, the remark 8021p command takes effect.

Example

# Disable global mapping from PHBs to 802.1p priorities for outgoing packets.

<HUAWEI> system-view
[~HUAWEI] qos phb marking 8021p disable
Related Topics

qos phb marking dscp enable

Function

The qos phb marking dscp enable command enables mapping from PHBs to DSCP priorities for outgoing packets.

The undo qos phb marking dscp enable command disables mapping from PHBs to DSCP priorities for outgoing packets.

By default, the mapping from PHBs to DSCP priorities is disabled for outgoing packets.

Format

qos phb marking dscp enable

undo qos phb marking dscp enable

Parameters

None

Views

CE6870EI: System view, VLAN view, VLAN-Range view

CE switches excluding CE6870EI: interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

Generally, the undo qos phb marking dscp enable command is used on an edge node of the DiffServ domain to disable the mapping between PHBs and DSCP priorities. When the downstream device needs to use DSCP priorities in packets, run the qos phb marking dscp enable command to enable mapping between PHBs and DSCP priorities in the outbound direction.

Precautions

For the CE6870EI:

  • The mapping is valid for only the DiffServ domain default, and only the DiffServ domain default can be applied to the VLAN.
  • By default, the DiffServ domain default is used for priority mapping in a VLAN. A maximum of three different DiffServ domains including the DiffServ domain default can be applied to different VLANs, and the same DiffServ domain can be applied to different VLANs.
  • After this command is used in the VLAN view or the VLAN-Range view, the device processes green and yellow packets based on mapping rules for green packets, and processes red packets based on the mapping rules for red packets.
  • After the trust upstream none command disables priority mapping on an interface or in a VLAN, the qos phb marking dscp enable command becomes invalid.
  • This command cannot be executed together with the remark dscp command.

For other models excluding the CE6870EI:

  • After the trust upstream none command disables priority mapping on an interface or in a VLAN, the qos phb marking dscp enable command becomes invalid.
  • When this command and the remark dscp command are configured simultaneously, the remark dscp command takes effect.

Example

# Enable global mapping from PHBs to DSCP priorities for outgoing packets.

<HUAWEI> system-view
[~HUAWEI] qos phb marking dscp enable

# Enable mapping from PHBs to DSCP priorities for outgoing packets on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] qos phb marking dscp enable
Related Topics

trust

Function

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

The undo trust command cancels the configuration.

For CE switches excluding CE6870EI, by default, packets are processed based on the mapping of the outer 802.1p priority.

For CE6870EI switches, by default, Layer 2 packets are processed according to the mapping of 802.1p priorities, and Layer 3 packets are processed according to the mapping of DSCP priorities.

Format

For CE switches excluding CE6870EI:

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

undo trust

For CE6870EI switches:

trust { 8021p | dscp }

undo trust [ 8021p | dscp ]

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, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A DiffServ domain defines the mapping between PHBs/colors and three types of priorities, namely, 802.1p priority, DSCP priority, and MPLS EXP priority. When the DiffServ domain is bound to an interface, you can 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 an Ethernet interface switches to Layer 3 mode through the undo portswitch command, you cannot configure the Ethernet interface to trust other priorities. This Ethernet interface trusts DSCP priorities by default.

  • Layer 2 sub-interfaces in QinQ encapsulation mode trust DSCP priorities by default.
  • For CE switches excluding CE6870EI, if the trust 8021p outer command is used, untagged packets use the interface priority. If an interface adds a tag to a single-tagged packet, the priority of the interface is trusted.
  • For CE switches excluding CE6870EI, if the trust 8021p inner command is used, untagged packets use the interface priority. The priority of single-tagged packets is 0.
  • For CE6870EI switches, the trust 8021p command cannot be used to map untagged packets based on 802.1p priorities. On access interfaces, you can use the port priority command to map untagged packets based on 802.1p priorities. On hybrid interfaces, you can use the remark local-precedence command to map untagged packets based on 802.1p priorities.
  • For CE switches excluding CE6870EI, and CE6880EI, the trust 8021p command configured on a Layer 2 sub-interface whose encapsulation mode is default or untag does not take effect. In this case, packets are mapped based on the DiffServ domain and port priority (configured using the port priority command) on the interface to which the packets belong.
  • If you run the trust command multiple times on the same interface, only the latest configuration takes effect.

Example

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

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] trust dscp

trust upstream

Function

The trust upstream command applies a DiffServ domain.

The undo trust upstream command restores the default settings.

By default, the DiffServ domain default is applied.

Format

trust upstream { ds-domain-name | none }

undo trust upstream

Parameters

Parameter

Description

Value

ds-domain-name

Specifies the name of a DiffServ domain.

NOTE:

When a Layer 2 sub-interface uses QinQ encapsulation, only the DiffServ domain default is supported.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value cannot be n, no, non, or none, and cannot contain the following special characters: | > $ * ^ and cannot start with _ . If the value contains the double quotation mark ("), the value must contain other characters.

none

Indicates that no DiffServ domain is applied, that is, packet priorities are not trusted.

NOTE:
  • This parameter cannot be specified in the Layer 2 Ethernet main interface view of the CE6870EI.
  • This parameter cannot be specified in the tunnel interface view.

-

Views

CE6870EI: Interface view, port group view, VLAN view, VLAN-Range view, BD view

Other models except the above: Interface view, port group view

NOTE:

The CE6880EI does not support the DiffServ domain applied to a Layer 2 sub-interface.

Default Level

2: Configuration level

Usage Guidelines

Scenario

To map priorities of incoming packets to PHBs and colors and map PHBs and colors of outgoing packets to priorities based on the mapping defined in a DiffServ domain, run this command to bind the DiffServ domain. The system performs PHB mapping based on the mapping in the DiffServ domain.

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

Prerequisites

A DiffServ domain has been created.

Precautions

  • 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 DSCP priorities 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.
  • If you run the trust upstream command multiple times in the same view, only the latest configuration takes effect.

  • For packets forwarded at Layer 2, if DiffServ domains are applied in the VLAN view and physical interface view, the DiffServ domain applied in the interface view takes effect preferentially.
  • For packets forwarded at Layer 3, if DiffServ domains are applied in the VLANIF interface view and physical interface view, they take effect in descending order of priority in the following views: physical interface view > VLANIF interface view.
  • In an SVF, a leaf switch cannot perform priority mapping based on the DiffServ domain that is applied to a Layer 2 sub-interface.
  • For CE switches excluding CE6870EI, the trust upstream none and qos phb marking 8021p disable commands cannot be executed simultaneously.
  • For CE switches excluding CE6870EI, when a DiffServ domain is applied to a Layer 3 Ethernet interface, the DiffServ domain is also applied to its Layer 3 sub-interfaces.

  • If a DiffServ domain is applied to a BD and a Layer 2 sub-interface bound to the BD on the CE6870EI, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the Layer 2 sub-interface.
  • If a DiffServ domain is applied to a BD and a VLAN bound to the BD on the CE6870EI, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the VLAN.
  • On the Dot1q tunnel interfaces of the CE6880EI, inbound packets are mapped based on the priority configured using the port priority priority-value command and the configured DiffServ domain, and the 802.1p priority is changed for outbound packets based on the configured DiffServ domain.
  • On the CE6870EI and CE6875EI, only the 802.1p priority can be modified for packets forwarded at Layer 2 for a DiffServ domain applied to a VLAN, and only the DSCP priority can be modified for packets forwarded at Layer 3 for a DiffServ domain applied to a VLANIF interface.
  • After a DiffServ domain is applied to a Layer 2 sub-interface, the following tables define the packet mapping rules.
    Table 17-17  Mapping on the CE6870EI after a DiffServ domain is applied to a Layer 2 sub-interface
    Encapsulation Mode on a Layer 2 Sub-interface Mapping
    default
    • Inbound direction: If packets are untagged, the switch performs mapping based on the priority configured by the port priority priority-value command on the main interface and the DiffServ domain configured on the Layer 2 sub-interface. If packets are tagged, the switch performs mapping based on the 802.1p priority of packets and the DiffServ domain configured on the Layer 2 sub-interface.
    • Outbound direction: The switch does not modify the 802.1p and DSCP priorities of packets.
    untag
    • Inbound direction: The switch performs mapping based on the priority configured by the port priority priority-value command on the main interface and the DiffServ domain configured on the Layer 2 sub-interface.
    • Outbound direction: The switch does not modify the 802.1p and DSCP priorities of packets.
    dot1q
    • Inbound direction: The switch performs mapping based on the 802.1p priority of packets and the DiffServ domain configured on the Layer 2 sub-interface.
    • Outbound direction: The switch modifies the 802.1p priority of packets based on the DiffServ domain configured on the Layer 2 sub-interface but does not modify the DSCP priority of packets.
    qinq
    • Inbound direction: The switch performs mapping based on the 802.1p priority in the outer tag of packets and DiffServ domain default.
    • Outbound direction: The switch modifies the 802.1p priority in the outer tag of packets based on the DiffServ domain default but does not modify the DSCP priority of packets.
    Table 17-18  Mapping on other switches excluding the CE6870EI after a DiffServ domain is applied to a Layer 2 sub-interface
    Encapsulation Mode on a Layer 2 Sub-interface Mapping
    default
    • Inbound direction: The switch performs mapping based on the priority configured by the port priority priority-value command on the main interface and the DiffServ domain configured on the Layer 2 sub-interface, regardless of whether packets are tagged or not.
    • Outbound direction: The switch performs mapping based on the DiffServ domain configured on the outbound physical interface.
    untag
    • Inbound direction: The switch performs mapping based on the priority configured by the port priority priority-value command on the main interface and the DiffServ domain configured on the Layer 2 sub-interface.
    • Outbound direction: The switch performs mapping based on the DiffServ domain configured on the outbound physical interface.
    dot1q
    • Inbound direction: If the main interface is configured with trust 8021p { inner | outer }, the switch performs mapping based on the 802.1p priority of packets and DiffServ domain configured on the Layer 2 sub-interface. If the main interface is configured with trust dscp, the switch performs mapping based on the DSCP priority of packets and DiffServ domain configured on the Layer 2 sub-interface.
    • Outbound direction: The switch performs mapping based on the DiffServ domain configured on the outbound physical interface.
    qinq
    • Inbound direction: The switch performs mapping based on the DSCP priority of packets and DiffServ domain default.
    • Outbound direction: The switch performs mapping based on the DiffServ domain configured on the outbound physical interface.

Example

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

<HUAWEI> system-view
[~HUAWEI] diffserv domain ds1
[*HUAWEI-dsdomain-ds1] 8021p-inbound 7 phb be
[*HUAWEI-dsdomain-ds1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] trust upstream ds1
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 70467

Downloads: 376

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