mpls-exp-inbound

Function

The mpls-exp-inbound command converts the EXP values of the upstream MPLS packets into the corresponding CoSs and color the packets.

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

By default, the mappings from EXP values to CoSs and colors are shown in Table 1 in Usage Scenario.

Format

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

undo mpls-exp-inbound [ exp ]

Parameters

Parameter Description Value
exp

Specifies the EXP value of the MPLS packet.

The value is an integer ranging from 0 to 7.

phb service-class

Specifies the CoS value.

The value is an enumerated type and can be case-insensitive EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7.

color

Specifies the color used to mark the packet.

The value is an enumerated type and can be green, yellow, or red.

Views

DiffServ domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To implement QoS scheduling for upstream MPLS packets that carry MPLS EXP priorities, you need to run this command to configure mappings from MPLS EXP priorities of packets to internal CoSs and color the packets.

Default mappings from EXP values to CoSs and colors

EXP Service 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

Prerequisites

A DS domain is created.

Implementation Procedure

After the DS domain is bound to the inbound interface of packets, QoS performs congestion management and avoidance according to the CoSs and colors mapped to the EXP values.

Precautions

This command is supported only on the admin VS.

If exp is not specified, the undo mpls-exp-inbound command restores all default mappings from EXP values of upstream MPLS packets to internal CoSs and colors to the defaults.

Example

# Map the EXP value 2 of the upstream MPLS packets to the corresponding CoS AF1 and color the packets green.
<HUAWEI> system-view
[~HUAWEI] diffserv domain d1
[*HUAWEI-dsdomain-d1] mpls-exp-inbound 2 phb af1 green
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >