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).
MPLS QoS Configuration Commands

MPLS QoS Configuration Commands

exp-inbound (Except CE6870EI/CE6875EI)

Function

The exp-inbound command configures the mapping from the EXP priorities of incoming MPLS packets in a DiffServ domain to the per-hop behaviors (PHBs) and colors.

The undo exp-inbound command restores the default mapping.

Table 11-38 shows the default mapping from the EXP priorities of incoming MPLS packets in a DiffServ domain to the PHBs and colors.

Table 11-38  Default mapping from the EXP priorities of incoming MPLS packets in a DiffServ domain to the PHBs and colors

EXP

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

exp-inbound exp-value phb service-class color

undo exp-inbound exp-value [ phb service-class color ]

Parameters

Parameter

Description

Value

exp-value

Specifies the EXP priority of an MPLS packet.

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

service-class

Specifies the PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7,

color

Specifies the color of the packet.

The value can be green, yellow, or red.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

To implement QoS scheduling for MPLS packets that come from the upstream device and carry EXP priorities, you can run the exp-inbound command to configure the mapping from the EXP priorities of MPLS packets to the PHBs and colors. After the DiffServ domain is bound to the inbound interface of MPLS packets, the device forwards the packets to queues based on the PHBs. Packets are scheduled based on their colors after a discard template is configured, avoiding network congestion.

Example

# In the DiffServ domain ds1, map the EXP priority 6 of the incoming MPLS packets to the PHB AF1 and mark the packets yellow.

<HUAWEI> system-view
[~HUAWEI] diffserv domain ds1
[*HUAWEI-dsdomain-ds1] exp-inbound 6 phb af1 yellow
Related Topics

exp-outbound

Function

The exp-outbound command configures the mapping from the per-hop behaviors (PHBs) and colors to the EXP priorities of outgoing MPLS packets in a DiffServ domain.

The undo exp-outbound command restores the default mapping.

Table 11-39 shows the default mapping from the PHBs and colors to the EXP priorities of outgoing MPLS packets in a DiffServ domain.

Table 11-39  Default mapping from the PHBs and colors to the EXP priorities of outgoing MPLS packets in a DiffServ domain

PHB

Color

EXP

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

exp-outbound service-class color map exp-value

undo exp-outbound service-class color [ map exp-value ]

Parameters

Parameter

Description

Value

service-class

Specifies the PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7.

color

Specifies the color of an MPLS packet.

The value can be green, yellow, or red.

exp-value

Specifies the EXP priority of the MPLS packet.

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

After QoS scheduling is performed on MPLS packets, you can run the exp-outbound command to configure the mapping from the PHBs and colors to the EXP priorities of outgoing MPLS packets in a DiffServ domain. After the DiffServ domain is bound to the outbound interface of the MPLS packets, the downstream device implements QoS scheduling based on the EXP priorities of the packets.

Example

# In the DiffServ domain ds1, map the PHB AF1 of the outgoing MPLS packets marked yellow to EXP priority 6.

<HUAWEI> system-view
[~HUAWEI] diffserv domain ds1
[*HUAWEI-dsdomain-ds1] exp-outbound af1 yellow map 6

mpls ldp qos-mode

Function

The mpls ldp qos-mode command sets the DiffServ mode for an MPLS network.

The undo mpls ldp qos-mode command restores the default setting.

By default, the DiffServ mode of an MPLS network is uniform.

NOTE:

The CE6870EI does not support this command.

Format

mpls ldp qos-mode { pipe exp exp-value | short-pipe [ exp exp-value ] | uniform } [ domain ds-name ]

undo mpls ldp qos-mode

Parameters

Parameter Description Value
pipe Sets the DiffServ mode of an MPLS network to pipe. -
short-pipe Sets the DiffServ mode of an MPLS network to short pipe. -
uniform Sets the DiffServ mode of an MPLS network to uniform. -
exp exp-value Specifies the EXP value of the packets transmitted over the LSP. The value is an integer that ranges from 0 to 7.
domain ds-name

Specifies the DiffServ domain name.

If no DiffServ domain name is specified, the default domain is used.

The value must be an existing DiffServ domain name.

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MPLS QoS can differentiate different services on an MPLS network. If you want to retain priorities carried in original packets regardless of the change in the EXP field, set the DiffServ mode to pipe or short pipe. If you set the DiffServ mode to uniform, priorities carried in original packets may be changed. In uniform and pipe modes, the egress node determines the per-hop behavior (PHB) based on EXP priorities of packets. In short pipe mode, the egress node determines the PHB based on Differentiated Service Code Point (DSCP) priorities of packets.

Precautions

  • If you specify the DiffServ domain in the command, ensure that the specified DiffServ domain has already been created by the diffserv domain command in the system view.

  • When the DiffServ mode is uniform, you need to run the qos phb marking dscp enable command on the penultimate hop in a PHP scenario and the egress node in a non-PHP scenario; otherwise, the EXP values of packets cannot be mapped to DSCP priorities.
  • When the DiffServ mode is pipe, DSCP priorities of original packets may be changed if the qos phb marking dscp enable command is configured on the outbound interface of the egress node. The changed value is determined by the DiffServ domain in use.
  • When the DiffServ mode is short pipe and the exp exp-value parameter is not used to specify the EXP value of LSP packets, the Ingress maps the DSCP priorities of packets to the EXP values.

Example

# Set the DiffServ mode of an MPLS network to short pipe and the EXP value to 2.

<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp qos-mode short-pipe exp 2
Related Topics

mpls ldp ttl-mode

Function

The mpls ldp ttl-mode command configures a mode for MPLS LDP to process TTLs in packets.

The undo mpls ldp ttl-mode command restores the default setting.

By default, MPLS LDP processes TTLs in packets in uniform mode.

NOTE:

The CE6870EI does not support this command.

Format

mpls ldp ttl-mode { pipe | uniform }

undo mpls ldp ttl-mode

Parameters

Parameter Description Value
pipe Enables MPLS LDP to process TTLs in packets in pipe mode. -
uniform Enables MPLS LDP to process TTLs in packets in uniform mode. -

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MPLS LDP processes TTLs in MPLS packets in the following two modes:

  • Uniform

    When IP packets reach the ingress node of an MPLS network, the IP TTL decreases by one and is mapped to the MPLS TTL field. In this manner, packets are processed in the standard mode used on the MPLS network. On the egress node, the MPLS TTL decreases by one and is mapped to the IP TTL field. The traceroute output shows the path that the packets pass by.

  • Pipe

    When IP packets pass through an MPLS network, the IP TTL decreases by one only on the ingress and egress respectively when the egress assigns an implicit null label to the penultimate LSR. The MPLS network is considered as one hop. The traceroute output does not show the path that the packets pass through. This mode hides the network topology.

Configuration Impact

If a node on an MPLS network processes TTLs in MPLS packets in pipe mode, the tracert and tracert lsp command output does not contain information about this node.

Example

# Configure MPLS LDP to process TTLs in MPLS packets in pipe mode.

<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp ttl-mode pipe

mpls mode

Function

The mpls mode command sets the MPLS DiffServ mode and the MPLS TTL processing mode.

The undo mpls mode command restores the default MPLS DiffServ mode and the MPLS TTL processing mode.

The default MPLS DiffServ mode and the default MPLS TTL processing mode are both uniform.

NOTE:

Only the CE6870EI supports this command.

Format

mpls mode { short-pipe [ ttl ttl-value exp exp-value | domain ds-name ] | uniform [ domain ds-name ] }

undo mpls mode [ short-pipe [ ttl ttl-value exp exp-value | domain ds-name ] | uniform [ domain ds-name ] ]

Parameters

Parameter Description Value
short-pipe Sets the MPLS DiffServ mode to short pipe, and the MPLS TTL processing mode to pipe.
NOTE:

If ttl ttl-value is not specified, the MPLS TTL processing mode is Uniform.

-
uniform Sets the MPLS DiffServ mode and the MPLS TTL processing mode to uniform. -
ttl ttl-value Specifies the time to live (TTL). The value is an integer that ranges from 1 to 255.
exp exp-value Specifies the EXP value of the packets transmitted over the LSP. The value is an integer that ranges from 0 to 7.
domain ds-name

Specifies the DiffServ domain name.

If no DiffServ domain name is specified, the default domain is used.

The value must be an existing DiffServ domain name.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MPLS QoS can differentiate different services on an MPLS network. If you want to retain priorities carried in original packets regardless of the change in the EXP field, set the DiffServ mode to short pipe. If you set the DiffServ mode to uniform, priorities carried in original packets may be changed. In uniform mode, the egress node determines the per-hop behavior (PHB) based on EXP priorities of packets. In short pipe mode, the egress node determines the PHB based on Differentiated Service Code Point (DSCP) priorities of packets.

MPLS TTL processing modes include uniform and pipe:
  • Uniform

    When IP packets reach the ingress node of an MPLS network, the IP TTL decreases by one and is mapped to the MPLS TTL field. In this manner, packets are processed in the standard mode used on the MPLS network. On the egress node, the MPLS TTL decreases by one and is mapped to the IP TTL field. The traceroute output shows the path that the packets pass by.

  • Pipe

    On an MPLS network, the IP TTL does not decrease by one at each hop. The traceroute output hides all the hops on the MPLS backbone network, as if the ingress node is directly connected to the egress node.

    In MPLS VPN applications, the MPLS backbone network needs to be hidden to ensure network security. The pipe mode is recommended on the ingress node for private network packets.

Precautions

The MPLS DiffServ mode can be configured only on the ingress and egress nodes, not on the transit node.

If you specify the DiffServ domain in the mpls mode command, ensure that the specified DiffServ domain is already created using the diffserv domain command in the system view.

Example

# Set the MPLS DiffServ mode to short pipe, and the MPLS TTL processing mode to pipe in the system view. Set TTL and EXP to 255 and 2 respectively.

<HUAWEI> system-view
[~HUAWEI] mpls mode short-pipe ttl 255 exp 2
Related Topics

qos mode

Function

The qos mode command sets the DiffServ mode for a VPN instance.

The undo qos mode command restores the default setting.

By default, the DiffServ mode of a VPN instance is uniform, and the default domain is used.

NOTE:

The CE6870EI does not support this command.

Format

qos mode { pipe exp exp-value | { short-pipe exp exp-value | uniform } domain ds-name }

undo qos mode { pipe exp exp-value | { short-pipe exp exp-value | uniform } domain ds-name }

Parameters

Parameter Description Value
pipe Sets the DiffServ mode of a VPN instance to pipe. -
short-pipe Sets the DiffServ mode of a VPN instance to short pipe. -
uniform Sets the DiffServ mode of a VPN instance to uniform. -
exp exp-value Specifies the EXP value of the packets transmitted over the LSP. The value is an integer that ranges from 0 to 7.
domain ds-name

Specifies the DiffServ domain name.

The value must be an existing DiffServ domain name.

Views

VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MPLS QoS can differentiate different L3VPN services on an MPLS network. If you want to retain priorities carried in original packets regardless of the change in the EXP field, set the DiffServ mode of a VPN instance to pipe or short pipe. If you set the DiffServ mode to uniform, priorities carried in original packets may be changed. In uniform and pipe modes, the egress node determines the per-hop behavior (PHB) based on EXP priorities of packets. In short pipe mode, the egress node determines the PHB based on Differentiated Service Code Point (DSCP) priorities of packets.

Precautions

  • If you specify the DiffServ domain in the command, ensure that the specified DiffServ domain has already been created by the diffserv domain command in the system view.

  • If the DiffServ mode of the MPLS network is set to uniform, you need to run the qos phb marking dscp enable command on the penultimate hop in a PHP scenario and the egress node in a non-PHP scenario; otherwise, the EXP values of packets cannot be mapped to DSCP priorities.
  • If the DiffServ mode of the MPLS network is set to pipe, DSCP priorities of original packets may be changed if the qos phb marking dscp enable command is configured on the outbound interface of the egress node. The changed value is determined by the DiffServ domain in use.

Example

# Set the DiffServ mode of VPN instance vpn1 to short pipe and the EXP value to 2, and use the domain default.

<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] qos mode short-pipe exp 2 domain default
Related Topics

mpls-exp-inbound (CE6870EI)

Function

The mpls-exp-inbound command maps EXP priorities of MPLS packets to PHBs and colors in a DiffServ domain on an inbound interface.

The undo mpls-exp-inbound command restores the default mapping.

The following table shows the default mappings from EXP priorities to PHBs and colors of MPLS packets in a DiffServ domain on an inbound interface.

Table 11-40  Default mappings from EXP priorities to PHBs and colors of MPLS packets in a DiffServ domain on an inbound interface

EXP 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

NOTE:

Only the CE6870EI supports this command.

Format

mpls-exp-inbound exp-value phb service-class

undo mpls-exp-inbound [ exp-value ]

Parameters

Parameter

Description

Value

exp-value

Specifies the EXP priority of an MPLS packet.

The value is an integer ranging from 0 to 7. A larger value indicates a higher EXP priority of MPLS packets.

service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

To implement QoS scheduling on the MPLS packets that come from the upstream device, run the mpls-exp-inbound command to map EXP priorities of MPLS packets to PHBs and green. After a DiffServ domain is bound to the inbound interface of packets, the QoS mechanism performs congestion management and congestion avoidance according to PHBs and colors of the packets.

Example

# In the DiffServ domain ds1, map EXP priority 2 of MPLS packets to PHB AF1.

<HUAWEI> system-view
[~HUAWEI] diffserv domain ds1
[*HUAWEI-dsdomain-ds1] mpls-exp-inbound 2 phb af1
Related Topics

mpls-exp-outbound

Function

The mpls-exp-outbound command maps DSCP of packets to EXP priorities in a DiffServ domain on an outbound interface.

The undo mpls-exp-outbound command restores the default mapping.

The following table shows the default mappings from DSCP to EXP priorities of packets in a DiffServ domain on an outbound interface.

Table 11-41  Default mappings from DSCP to EXP priorities of packets in a DiffServ domain on an outbound interface

DSCP

EXP

DSCP

EXP

0

0

32

4

1

0

33

4

2

0

34

4

3

0

35

4

4

0

36

4

5

0

37

4

6

0

38

4

7

0

39

4

8

1

40

5

9

1

41

5

10

1

42

5

11

1

43

5

12

1

44

5

13

1

45

5

14

1

46

5

15

1

47

5

16

2

48

6

17

2

49

6

18

2

50

6

19

2

51

6

20

2

52

6

21

2

53

6

22

2

54

6

23

2

55

6

24

3

56

7

25

3

57

7

26

3

58

7

27

3

59

7

28

3

60

7

29

3

61

7

30

3

62

7

31

3

63

7

NOTE:

Only the CE6870EI supports this command.

Format

mpls-exp-outbound dscp-value map exp-value

undo mpls-exp-outbound [ 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.

exp-value

Specifies the EXP priority of an MPLS packet.

The value is an integer ranging from 0 to 7. A larger value indicates a higher EXP priority of the MPLS packet.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

After QoS scheduling is performed on the MPLS packets, run the mpls-exp-outbound command to map the DSCP of the packets in a DiffServ domain to the EXP priority. After the DiffServ domain is bound to the outbound interface of MPLS packets, the downstream device implements QoS scheduling according to EXP priority.

Example

# In the DiffServ domain ds1, map the DSCP priority 32 of outgoing packets to EXP priority 2.

<HUAWEI> system-view
[~HUAWEI] diffserv domain ds1
[*HUAWEI-dsdomain-ds1] mpls-exp-outbound 32 map 2
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52389

Downloads: 339

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