3-1
3
Priority Mapping Configuration
When configuring priority mapping, go to these sections for information you are interested in:
z
Priority Mapping Overview
z
Configuring a Priority Mapping Table
z
Configuring the Priority for a Port
z
Configuring the Trusted Precedence Type for a Port
z
Displaying and Maintaining Priority Mapping
Priority Mapping Overview
Introduction to Priority Mapping
When a packet enters a network, it will be marked with a certain value, which indicates the scheduling
weight or forwarding priority of the packet. Then, the intermediate nodes in the network process the
packet according to the priority.
When a packet enters a device, the device assigns to the packet a set of predefined parameters
(including the 802.1p priority, DSCP values, IP precedence, local precedence, and drop precedence).
Concepts
For more information about 802.1p precedence, DSCP values, and IP precedence values, refer to
Packet Precedences
.
The local precedence and drop precedence are defined as follows:
z
Local precedence is a locally significant precedence that the device assigns to a packet. A local
precedence value corresponds to an output queue. Packets with the highest local precedence are
processed preferentially.
z
Drop precedence is a parameter used for packet drop. The value 2 corresponds to red packets, the
value 1 corresponds to yellow packets, and the value 0 corresponds to green packets. Packets with
the highest drop precedence are dropped preferentially.
Depending on whether a received packet is 802.1q-tagged, the switch marks it with priority as follows:
1) For an 802.1q-untagged packet
When a packet carrying no 802.1q tag reaches a port, the switch uses the port priority as the 802.1p
precedence value of the received packet, searches for the local precedence value corresponding to the
port priority of the receiving port in the 802.1p-precedence-to-local-precedence mapping table, assigns
the local precedence value to the packet, and enqueues the packet according to the local precedence
value.
2) For an 802.1q-tagged packet