< Home

ip-dscp-outbound

Function

The ip-dscp-outbound command maps the PHB and color of outgoing IP packets in a DiffServ domain to the DSCP priority.

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

Table 1 lists the default mappings from the PHBs and colors to DSCP priorities of outgoing IP packets in a DiffServ domain.

Table 1 Mappings from PHBs and colors to DSCP priorities of outgoing IP packets in the DiffServ domain

PHB

Color

DSCP

BE

green

0

BE

yellow

0

BE

red

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

EF

yellow

46

EF

red

46

CS6

green

48

CS6

yellow

48

CS6

red

48

CS7

green

56

CS7

yellow

56

CS7

red

56

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

ip-dscp-outbound service-class { green | yellow | red } map dscp-value

undo ip-dscp-outbound [ service-class { green | yellow | red } ]

Parameters

Parameter

Description

Value

service-class

Specifies a PHB.

The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively.

green

Indicates green packets.

-

yellow

Indicates yellow packets.

-

red

Indicates red packets.

-

map dscp-value

Specifies the DSCP priority of IP packets.

The value is an integer that ranges from 0 to 63.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

After QoS scheduling is performed on the IP packets, you can use the ip-dscp-outbound command to map the PHB and color of IP packets in a DiffServ domain to the DSCP priority. After the DiffServ domain is bound to the outbound interface of the IP packets, the downstream device implements QoS scheduling according to the DSCP priority.

Precautions

If you do not specify the parameters service-class and colors when running the undo ip-dscp-outbound command, the default mappings from CoS values and colors to DSCP priorities are restored.

The DiffServ domain default exists by default. On the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, only the DiffServ domain default is supported.

Example

# For devices excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: In DiffServ domain ds1, map PHB AF1 of the outgoing yellow IP packets to DSCP priority 8.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] ip-dscp-outbound af1 yellow map 8

# For the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: In the DiffServ domain, map PHB AF1 of the outgoing yellow IP packets to DSCP priority 8.

<HUAWEI> system-view
[HUAWEI] diffserv domain default
[HUAWEI-dsdomain-default] ip-dscp-outbound af1 yellow map 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >