The qinq 8021p-mode command configures a mapping mode of 802.1p values on a sub-interface for QinQ VLAN tag termination.
The undo qinq 8021p-mode command deletes the mapping mode of 802.1p values configured on a sub-interface for QinQ VLAN tag termination.
By default, a sub-interface for QinQ VLAN tag termination trusts the 802.1p priority in the outer VLAN tag of packets. The sub-interface for QinQ VLAN tag termination deploys QoS policies based on the 802.1p priority in the outer VLAN tag of received packets.
Parameter | Description | Value |
---|---|---|
trust |
Specifies that a sub-interface for QinQ VLAN tag termination trusts the 802.1p priority in the outer VLAN tag. |
- |
ce-vid-8021p |
Specifies that the 802.1p value in the inner VLAN tag is mapped to the DSCP field in IP packets or EXP field in MPLS packets. |
- |
pe-vid-8021p |
Specifies that the 802.1p value in the outer VLAN tag is mapped to the DSCP field in IP packets or EXP field in MPLS packets. |
- |
precedence-value |
Specifies the value of the 802.1p priority. The larger the value, the higher the priority. |
The value is an integer ranging from 0 to 7. |
Usage Scenario
According to relevant standards, six bits of the Type of Service (ToS) field in an IPv4 packet header serve as the DiffServ Code Point (DSCP), which provides reference for differentiated services (DiffServ) and is used to implement QoS guarantee on an IP network. The operation of the traffic controller on the gateway depends on the DSCP field.
After QinQ termination is configured, packets are sent to carrier IP networks. To ensure that the QoS information in user packets is not lost, run the qinq 8021p-mode command to map the 802.1p value in QinQ packets to the DSCP field. The EXP field in an MPLS packet is used for Class of Service (CoS). The operation of the traffic controller on the gateway depends on the EXP field. After QinQ termination is configured, packets are sent to carrier MPLS networks. To ensure that the QoS information in user packets is not lost, run the qinq 8021p-mode command to map the 802.1p value in QinQ packets to the EXP field.Prerequisites
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation qinq-termination [*HUAWEI-GigabitEthernet0/1/1.1] qinq termination pe-vid 100 ce-vid 500 to 600 [*HUAWEI-GigabitEthernet0/1/1.1] qinq 8021p-mode trust pe-vid-8021p