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

MPLS QoS Configuration Commands

Command Support

  • The SA series cards do not support the MPLS feature.

  • The XGE interface connected to ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, or ET1D2FW00S02 board does not support the MPLS function.

  • The SC series cards do not support the MPLS OAM.

  • The ET1D2X48SEC0 card does not support MPLS OAM.

diffserv-mode

Function

The diffserv-mode command configures a DiffServ mode for MPLS L2VPN or MPLS L3VPN labels to implement end-to-end QoS.

The undo diffserv-mode command restores the default DiffServ mode of an MPLS network.

By default, the uniform mode is used for MPLS L2VPN or MPLS L3VPN labels.

Format

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

undo diffserv-mode

Parameters

Parameter Description Value
pipe

Indicates that the DiffServ mode of an MPLS network is pipe.

-
short-pipe

Indicates that the DiffServ mode of an MPLS network is short pipe.

-
uniform

Indicates that the DiffServ mode of an MPLS network is uniform.

-
mpls-exp mpls-exp

Specifies the EXP priority in the private label.

This parameter is valid only when the DiffServ mode on the ingress PE is set to pipe or short pipe. It is invalid on the egress PE. If a DiffServ domain is configured, the inner label specified by mpls-exp is preferred for the mapping. When the mpls-exp parameter is set to a large value, the packets have high priority and packet forwarding quality is high.

The value is an integer that ranges from 0 to 7. The default value is 0.
domain ds-name

Indicates the name of the DiffServ domain. The default DiffServ domain name is default. This parameter is specified in the diffserv domain command.

The value is an existing DiffServ domain name.

Views

Interface view, VSI view, VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide QoS guarantee for VPN traffic on an MPLS VPN network, set the DiffServ mode based on actual needs.
  • If you want to differentiate priorities of different services in a VPN, set the DiffServ mode to uniform. You can also set the DiffServ mode to pipe or short pipe, but you need to specify the DiffServ domain in which the mode applies.

  • If you want to differentiate priorities of services in different VPNs but not priorities of services in a VPN, set the DiffServ mode to pipe or short pipe and specify EXP values in private labels.

If you do not want to change priorities carried in original packets, you are advised to set the DiffServ mode to pipe or short pipe. 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 DSCP or 802.1p priorities of packets.

Precautions

Before configuring the MPLS Diff-Serv mode for IPv4 services, ensure that an IPv4 address family is configured in the VPN instance view using the ipv4-family command.

Before configuring the MPLS Diff-Serv mode for IPv6 services, ensure that an IPv6 address family is configured in the VPN instance view using the ipv6-family command.

On the ingress, all the three modes can be set. On the egress, only the short pipe mode can be set.

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

  • The diffserv-mode command takes effect only for the new LSPs. To make the command take effect for the existing LSPs, run the reset mpls ldp command to reestablish LSPs.

Example

# On VLANIF100, set the MPLS DiffServ mode to pipe and the value of mpls-exp to 3.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] diffserv-mode pipe mpls-exp 3 
# On GE1/0/1, set the MPLS DiffServ mode to pipe and the value of mpls-exp to 3.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] undo portswitch 
[HUAWEI-GigabitEthernet1/0/1] diffserv-mode pipe mpls-exp 3 

mpls-exp-inbound

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 9-50  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

Format

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

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.

color

Specifies the color of a packet.

The value can be green, yellow, or red.

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 colors. 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 and color incoming MPLS packets as yellow.

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

mpls-exp-outbound

Function

The mpls-exp-outbound command maps PHBs and colors of MPLS 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 PHBs and colors to EXP priorities of MPLS packets in a DiffServ domain on an outbound interface.

Table 9-51  Default mappings from PHBs and colors to EXP priorities of MPLS packets in a DiffServ domain on an outbound interface

PHB

Color

EXP 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

mpls-exp-outbound service-class color map exp-value

undo mpls-exp-outbound [ service-class color ]

Parameters

Parameter

Description

Value

service-class

Specifies a PHB.

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

color

Specifies the color of a packet.

The value can be green, yellow, or red.

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 PHB and color of the MPLS 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.

The switch can map PHBs and colors in MPLS packets to EXP priorities and 802.1p priorities on an outbound interface.

Example

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

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

mpls-qos egress

Function

The mpls-qos egress command maps the mapping from the EXP priority of the public tunnel to the PHB/color on the egress node.

The undo mpls-qos egress command restores the default settings.

By default, mapping of the EXP priority of the public tunnel is performed according to the settings in the default domain.

Format

mpls-qos egress trust upstream { ds-name | default }

undo mpls-qos egress trust upstream

mpls-qos egress trust upstream none

undo mpls-qos egress trust upstream none

Parameters

Parameter Description Value
trust upstream

Trusts the specified DiffServ domain.

-
ds-name

Specifies the name of a DiffServ domain.

The value is an existing DiffServ domain name.

default

Specifies the DiffServ domain as a default domain.

-
none

Indicates that the system does not perform EXP priority mapping in the public network tunnel, and sets the EXP field to 0 in the public network tunnel.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement certain QoS functions on an MPLS network, the device needs to determine the packet precedence according to the tunnel label of the MPLS public network. Therefore, you need to map the tunnel label to the EXP field.

Prerequisites

The specified DiffServ domain has been created using the diffserv domain command in the system view.

Precautions

Run the mpls-qos egress command before setting up the public tunnel; otherwise, you must reestablish the MPLS LDP session to make the command take effect.

If you modify the settings of the global DiffServ domain or change the DiffServ mode of the interface, VSI, or VPN instance, you must reestablish the MPLS LDP session; otherwise, the modification cannot take effect.

Example

# Map the mapping from the EXP priority of the public tunnel to the PHB/color on the egress node.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] quit
[HUAWEI] mpls-qos egress trust upstream ds1

mpls-qos ingress

Function

The mpls-qos ingress command maps the PHB/color of packets to the EXP priority of the public tunnel on the ingress node.

The undo mpls-qos ingress command restores the default settings.

By default, mapping of the EXP priority of the public tunnel is performed according to the settings in the default domain.

Format

mpls-qos ingress { use vpn-label-exp | trust upstream { ds-name | default } }

undo mpls-qos ingress { use vpn-label-exp | trust upstream }

mpls-qos ingress trust upstream none

undo mpls-qos ingress trust upstream none

Parameters

Parameter Description Value
use vpn-label-exp

Indicates the EXP value in the inner label of a packet.

-
trust upstream

Trusts the specified DiffServ domain.

-
ds-name

Specifies the name of a DiffServ domain.

The value is an existing DiffServ domain name.

default

Specifies the DiffServ domain as a default domain.

-
none

Indicates that the system does not perform EXP priority mapping in the public network tunnel, and sets the EXP field to 0 in the public network tunnel.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement certain QoS functions on an MPLS network, the device needs to determine the packet precedence according to the tunnel label of the MPLS public network. Therefore, you need to map the tunnel label to the EXP field. You can specify use vpn-label-exp.

Prerequisites

The specified DiffServ domain has been created using the diffserv domain command in the system view.

Precautions

Run the mpls-qos ingress command before setting up the public tunnel; otherwise, you must reestablish the MPLS LDP session to make the command take effect.

Example

# Map the PHB/color of packets to the EXP priority of the public tunnel on the ingress node.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] quit
[HUAWEI] mpls-qos ingress trust upstream ds1

System Response

None

mpls-qos transit

Function

The mpls-qos transit command performs the priority mapping based on the EXP priority of the public tunnel on the transit node.

The undo mpls-qos transit command restores the default settings.

By default, mapping of the EXP priority of the public tunnel is performed according to the settings in the default domain.

Format

mpls-qos transit trust upstream { ds-name | default }

undo mpls-qos transit trust upstream

mpls-qos transit trust upstream none

undo mpls-qos transit trust upstream none

Parameters

Parameter Description Value
trust upstream

Trusts the specified DiffServ domain.

-
ds-name

Specifies the name of a DiffServ domain.

The value is an existing DiffServ domain name.

default

Specifies the DiffServ domain as a default domain.

-
none

Indicates that the system does not perform EXP priority mapping in the public network tunnel, and sets the EXP field to 0 in the public network tunnel.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement certain QoS functions on an MPLS network, the device needs to determine the packet precedence according to the tunnel label of the MPLS public network. Therefore, you need to map the tunnel label to the EXP field.

Prerequisites

The specified DiffServ domain has been created using the diffserv domain command in the system view.

Precautions

Run before setting up the public tunnel; otherwise, you must reestablish the MPLS LDP session to make the command take effect.

If you modify the settings of the global DiffServ domain or change the DiffServ mode of the interface, VSI, or VPN instance, you must reestablish the MPLS LDP session; otherwise, the modification cannot take effect.

Example

# Perform the priority mapping based on the EXP priority of the public tunnel on the transit node.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] quit
[HUAWEI] mpls-qos transit trust upstream ds1
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 116990

Downloads: 83

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