< Home

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 1 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >