< Home

8021p-outbound

Function

The 8021p-outbound command maps the PHB and color of outgoing VLAN packets in a DiffServ domain to the 802.1p priority.

The undo 8021p-outbound command restores the default mapping.

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

Table 1 Mappings from PHBs and colors to 802.1p priorities of outgoing VLAN packets in the DiffServ domain

PHB

Color

802.1p Priority

BE

green

0

BE

yellow

0

BE

red

0

AF1

green

1

AF1

yellow

1

AF1

red

1

AF2

green

2

AF2

yellow

2

AF2

red

2

AF3

green

3

AF3

yellow

3

AF3

red

3

AF4

green

4

AF4

yellow

4

AF4

red

4

EF

green

5

EF

yellow

5

EF

red

5

CS6

green

6

CS6

yellow

6

CS6

red

6

CS7

green

7

CS7

yellow

7

CS7

red

7

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

S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S6720-EI, S6720S-EI, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S:

8021p-outbound service-class { green | yellow | red } map 8021p-value

undo 8021p-outbound [ service-class { green | yellow | red } ]

S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:

8021p-outbound service-class map 8021p-value

undo 8021p-outbound [ service-class ]

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 8021p-value

Specifies the 802.1p priority of VLAN packets.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority.

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

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

Precautions

If you do not specify the parameters service-class and color when running the undo 8021p-outbound command, the default mappings from CoS values and colors to 802.1p 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 VLAN packets to 802.1p priority 2.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] 8021p-outbound af1 yellow map 2

# For devices excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: In the default DiffServ domain, map PHB AF1 of the outgoing VLAN packets to 802.1p priority 2.

<HUAWEI> system-view
[HUAWEI] diffserv domain default
[HUAWEI-dsdomain-default] 8021p-outbound af1 map 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >