8.1.3. qos map
Syntax
qos map (cos-queue | dscp-queue | precedence-queue) SEQUENCE to <1-8>
qos map (queue-cos | queue-precedence) SEQUENCE to <0-7>
qos map queue-dscp SEQUENCE to <0-63>
Parameter
cos-queue Configure or show CoS to queue map
dscp-queue Configure or show DSCP to queue map
precedence-queue Configure or show IP Precedence to queue map.
queue-cos Configure or show queue to CoS map
queue-dscp Configure or show queue to DSCP map
queue-precedence Configure or show queue to IP Precedence map
SEQUENCE Specify the cos, dscp, precedence or queue with one or multiple values.
<1-8> Specify th queue id
<0-7> Specify the cos or precedence values
<0-63> Specify the dscp values
Default
The default values of cos-queue are showing in the following table.
CoS |
Queue ID |
0 |
1 |
1 |
2 |
2 |
3 |
3 |
4 |
4 |
5 |
5 |
6 |
6 |
7 |
7 |
8 |
The default values of dscp-queue are showing in the following table.
DSCP |
Queue ID |
0~7 |
1 |
8~15 |
2 |
16~23 |
3 |
24~31 |
4 |
32~39 |
5 |
40~47 |
6 |
48~55 |
7 |
56~63 |
8 |
The default values of ip precedence are showing in the following table.
IP Precedence |
Queue ID |
0 |
1 |
1 |
2 |
2 |
3 |
3 |
4 |
4 |
5 |
5 |
6 |
6 |
7 |
7 |
8 |
The default values of queue-cos are showing in the following table.
Queue ID |
CoS |
1 |
0 |
2 |
1 |
3 |
2 |
4 |
3 |
5 |
4 |
6 |
5 |
7 |
6 |
8 |
7 |
The default values of queue-dscp are showing in the following table.
QueueID |
DSCP |
1 |
0 |
2 |
8 |
3 |
16 |
4 |
24 |
5 |
32 |
6 |
40 |
7 |
48 |
8 |
56 |
The default values of queue-precedence are showing in the following table.
Queue ID |
IP Precedence |
1 |
0 |
2 |
1 |
3 |
2 |
4 |
3 |
5 |
4 |
6 |
5 |
7 |
6 |
8 |
7 |
Mode
Global Configuration
Usage
According to different trust type, packets will be assigned to different queue based on the specific qos map. For example, if the trust type is trust cos, the device will get the cos value in packet and reference the cos-queue mapping to assign the correct queue.
The queue to cos, dscp or precedence maps are used by remarking function. If the port remarking feature is enabled, the remarking function will reference these 3 tables to remark packets.
Example
This example shows how to map cos 6 and 7 to queue 1.
Switch(config)# qos map cos-queue 6 7 to 1
Switch# show qos map cos-queue
CoS to Queue mappings
COS 0 1 2 3 4 5 6 7
------------------------------------------------------------------------
Queue 2 1 3 4 5 6 1 1
This example shows how to map queue 4 and 5 to cos 7.
Switch(config)# qos map queue-cos 4 5 to 7
Switch# show qos map queue-cos
Queue to CoS mappings
Queue 1 2 3 4 5 6 7 8
------------------------------------------------------------------------
CoS 1 0 2 7 7 5 6 7