mpls-exp-outbound

Function

The mpls-exp-outbound command converts the CoSs and colors of the downstream MPLS packets into the EXP values.

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

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

Format

mpls-exp-outbound service-class color map exp

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

Parameters

Parameter Description Value
service-class

Specifies the CoS value.

The value is of the enumeration type. It is case-insensitive and can be EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7.

color

Specifies the color used to mark the packet.

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

map exp

Specifies the EXP value of the MPLS packet.

The value is an integer ranging from 0 to 7.

Views

DiffServ domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

When the packets leave the DS domain, you need to run the mpls-exp-outbound command to convert the CoSs and colors of MPLS packets into the EXP values.

Default mappings from internal CoSs and colors to EXP values

Service Color EXP
be green 0
af1 green\yellow\red 1
af2 green\yellow\red 2
af3 green\yellow\red 3
af4 green\yellow\red 4
ef green 5
cs6 green 6
cs7 green 7

Prerequisites

A DS domain is created.

Precautions

This command is supported only on the admin VS.

If service-class color is not specified, the undo mpls-exp-outbound command restores all default mappings from internal CoSs to EXP values of downstream MPLS packets.

Example

# Set the EXP value of the downstream MPLS packets with the CoS being AF1 and color being green to 5.
<HUAWEI> system-view
[~HUAWEI] diffserv domain d1
[*HUAWEI-dsdomain-d1] mpls-exp-outbound af1 green map 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >