The 8021p-inbound command maps 802.1p values of upstream VLAN packets in a DiffServ (DS) domain to internal classes of service (CoSs) and colors the packets.
The undo 8021p-inbound command restores the default mapping relationships from 802.1p values to internal CoSs.
By default, the mappings between 802.1p values and CoSs are displayed as Table 1.
Parameter | Description | Value |
---|---|---|
8021p-value |
Specifies the 802.1p value of VLAN packets. |
The value is an integer ranging from 0 to 7. |
phb service-class |
Specifies the CoS value. |
The value is an enumerated type and can be case-insensitive EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7. |
color |
Specifies the color used to mark the packets. |
The value can be green, yellow, or red. By default, the packets are colored green. |
Usage Scenario
To implement QoS scheduling on the upstream VLAN packets, run the 8021p-inbound command to configure mapping relationships from 802.1p values of the VLAN packets in a DS domain to internal CoSs defined on the router and color the packets. After the DS domain is bound to the inbound interface of packets, QoS performs congestion management and avoidance based on the CoSs mapped to the packets.
If the CoS is CS6, CS7, EF, or BE, the packets can be colored only green. If 8021p-value is not specified, you can run the undo 8021p-inbound command to restore all default mappings between 802.1p values and CoSs. If no mapping between 802.1p values and CoSs is specified, the default mappings are adopted.Table1 Default mappings between 802.1p values and CoSs
802.1p | Service | 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 |
Configuration Impact
If <8021p-value> is not specified, you can run the undo 8021p-inbound command to restore all default mappings between 802.1p values and CoSs.
If no mapping between 802.1p values and CoSs is specified, the default mappings are adopted.In VS mode, this command is supported only by the admin VS.