< Home

8021p-inbound

Function

The 8021p-inbound command maps the 802.1p priority of incoming VLAN packets in a DiffServ domain to the PHB and colors the packets.

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

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

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

802.1p Priority

PHB

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

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-inbound 8021p-value phb service-class [ green | yellow | red ]

undo 8021p-inbound [ 8021p-value ]

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

8021p-inbound 8021p-value phb service-class

undo 8021p-inbound [ 8021p-value ]

Parameters

Parameter

Description

Value

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.

phb 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 that packets are colored green.

-

yellow

Indicates that packets are colored yellow.

-

red

Indicates that packets are colored red.

-

Views

DiffServ domain view

Default Level

2: Configuration level

Usage Guidelines

Scenario

To implement QoS scheduling on incoming VLAN packets, you can use the 8021p-inbound command to map the 802.1p priorities of the packets to the PHBs and colors. After a DiffServ domain is bound to the inbound interface of packets, the device forwards the packets to queues based on PHBs of the packets. Congestion management is implemented. Packets are scheduled according to their colors after a discard template is configured, avoiding congestion.

Precautions

  • The color is used to determine whether packets are discarded during flow control, and is independent of the mapping from internal priorities to queues.

  • The CoS values of packets are mapped to the corresponding internal priorities and the packets are colored accordingly. If no mapping from 802.1p priorities to CoS values is specified, the device uses the default mappings of the system.

  • If you do not specify the parameter 8021p-value when running the undo 8021p-inbound command, all the mapping between 802.1p priorities and CoS values is 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 the 802.1p priority 2 of the incoming VLAN packets to PHB AF1 and mark the packets yellow.

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

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

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