ip-dscp-outbound

Function

The ip-dscp-outbound command converts the CoSs and colors of downstream IP packets in the current domain into corresponding DSCP values.

The undo ip-dscp-outbound command restores the default settings.

By default, the mappings from CoSs and colors to DSCP values of downstream IP packets in the DS domain are shown in Table 1 in Usage Scenario.

Format

ip-dscp-outbound service-class color map dscp-value

undo ip-dscp-outbound [ service-class color ]

Parameters

Parameter Description Value
service-class

Specifies the CoS of downstream packets.

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

color

Specifies the color of packets.

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

map dscp-value

Specifies the DSCP value.

The value is an integer ranging from 0 to 63.

Views

DiffServ domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

When a device functions as the gateway of different networks, the precedence, such as the 802.1p, DSCP, and EXP values, in the packets that access the device are all mapped to the internal precedence of the device that is presented through the CoSs and colors. When the device sends out the packet, the internal precedence is mapped back to the external precedence.

Simple traffic classification is usually implemented on the core devices of the network.

You can run this command to set the mappings from CoSs and colors to DSCP values on the outbound interface.

The service-color mappings for DSCP values take effect for both IPv4 and IPv6.

Mappings from CoSs and colors to DSCP values of downstream IP packets in the DS domain

Service Color DSCP
BE green 0
AF1 green 10
AF1 yellow 12
AF1 red 14
AF2 green 18
AF2 yellow 20
AF2 red 22
AF3 green 26
AF3 yellow 28
AF3 red 30
AF4 green 34
AF4 yellow 36
AF4 red 38
EF green 46
CS6 green 48
CS7 green 56

Prerequisites

The DS domain is created in the system view.

Implementation Procedure

After this command is configured in the DS domain and the DS domain is bound to the outbound interface, packets are marked with different IP precedence that is mapped to the CoSs and colors in the mappings in the DS domain. Then, packets with different IP precedence enter different queues for scheduling.

Configuration Impact

Packets are marked with different IP precedence values on the outbound interface according to the mappings in the DS domain.

The downstream IP packets are mapped to DSCP values based on the green color uniformly.

Precautions

If you do not specify service-class color, the undo ip-dscp-outbound command restores all the mappings to the default.

In VS mode, this command is supported only by the admin VS.

Example

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