---
title: Priority Map Configuration
slug: routing/priority-map-configuration
createdAt: 2025-12-04T03:57:08.618Z
---

## <font color="#1d50a2">Priority Map Configuration</font>

### <font color="#1d50a2">show qos map \{all|dot1p\_to\_tc|dscp\_to\_tc|tc\_to\_queue\}</font>

**\[Command]**
**show qos map \{all|dot1p\_to\_tc|dscp\_to\_tc|tc\_to\_queue}**

**\[Purpose]**
Display QoS map configuration information

**\[Parameter]**

| **Parameter**   | **Description**                                                   |
| --------------- | ----------------------------------------------------------------- |
| *all*           | Display all priority mapping configuration information            |
| *dot1p\_to\_tc* | Mapping of 802.1P priority of packet to internal priority         |
| *dscp\_to\_tc*  | Mapping of the DSCP priority of a packet to the internal priority |
| *tc\_to\_queue* | Mapping the priority of packet to the egress queue                |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic(config)# show qos map all
{
"DOT1P_TO_TC_MAP":{
"dot1x-tc":{
"0":"0",
"1":"1",
"2":"2",
"3":"3",
"4":"4",
"5":"5",
"6":"6",
"7":"7"
}
},
"DSCP_TO_TC_MAP":{},
"MAP_PFC_PRIORITY_TO_QUEUE":{},
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP":{},
"TC_TO_PRIORITY_GROUP_MAP":{},
"TC_TO_QUEUE_MAP":{}
}
```

### <font color="#1d50a2">show interface qos-map-bind</font>

**\[Command]**
**show interface qos-map-bind**

**\[Purpose]**
Show all Qos map and interface binding configurations

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show interface qos-map-bind
{
"Ethernet1":{
"dot1p_to_tc_map":"[DOT1P_TO_TC_MAP|1]"
}
}
```

### <font color="#1d50a2">show queue counters \[*interface-name*\]</font>

**\[Command]**
**show queue counters \[*interface-name*]**
**show queue counters clear**

**\[Purpose]**
View export queue statistics

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic(config)# do show queue counters 1
Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes
--------- ----- -------------- --------------- ----------- ------------
Ethernet1 ALL0 0 0 0 0
Ethernet1 ALL1 0 0 0 0
Ethernet1 ALL2 0 0 0 0
Ethernet1 ALL3 0 0 0 0
Ethernet1 ALL4 0 0 0 0
Ethernet1 ALL5 0 0 0 0
Ethernet1 ALL6 0 0 0 0
Ethernet1 ALL7 0 0 0 0
```

### <font color="#1d50a2">qos map type *profile\_name* *pri\_origin* *pri\_mapped*</font>

**\[Command]**
**qos map *type* *profile\_name* *pri\_origin* *pri\_mapped***

**\[Purpose]**
Add QoS mapping table template

**\[Parameter]**

| **Parameter**    | **Description**                                                   |
| ---------------- | ----------------------------------------------------------------- |
| *dot1p\_to\_tc*  | Mapping of 802.1P priority of packet to internal priority         |
| *dscp\_to\_tc*   | Mapping of the DSCP priority of a packet to the internal priority |
| *tc\_to\_queue*  | Mapping the priority of packet to the egress queue                |
| *pri\_origin*    | Pre-mapping priority                                              |
| *pri\_mapped*    | Priority after mapping                                            |

**\[View]**
System configuration view

**\[User Scenario]**

If user need to prioritize packets received by a device based on the dot1p/DSCP values carried in the packet for QoS scheduling, user can configure the mapping of packet priorities to local priorities using the **qos map \{dot1p\_to\_tc|dscp\_to\_tc} \<profile\_name> \<in\_value> \<value>** command. The **qos map tc\_to\_queue \<profile\_name> \<in\_value> \<value>** command configures the mapping of local priorities to output queues, allowing you to implement different QoS strategies based on different scheduling methods for the output queues.

**\[Notes]**
By default, the local priority is mapped to the queue is:

| **tc** | **queue** |
| ------ | --------- |
| 0      | 0         |
| 1      | 1         |
| 2      | 2         |
| 3      | 3         |
| 4      | 4         |
| 5      | 5         |
| 6      | 6         |
| 7      | 7         |

The DSCP/dot1p priority to the local priority is mapped to priority 0.

**\[Use Cases]**

```plaintext
sonic(config)# qos map tc_to_queue queue 0 0
sonic(config)# qos map tc_to_queue queue 1 1
sonic(config)# qos map tc_to_queue queue 2 2
sonic(config)# qos map tc_to_queue queue 3 3
sonic(config)# qos map tc_to_queue queue 4 4
sonic(config)# qos map tc_to_queue queue 5 5
sonic(config)# qos map tc_to_queue queue 6 6
sonic(config)# qos map tc_to_queue queue 7 7
```

### <font color="#1d50a2">qos-map-all bind tc\_to\_queue *profile\_name*</font>

**\[Command]**
**qos-map-all bind tc\_to\_queue *profile\_name***

**\[Purpose]**
All interfaces are bound to QoS map

**\[Parameter]**

| **Parameter**   | **Description** |
| --------------- | --------------- |
| *profile\_name* | qos\_map name   |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# qos-map-all bind tc_to_queue test
```

### <font color="#1d50a2">qos-map bind *type* *profile\_name*</font>

**\[Command]**
**qos-map bind *type* *profile\_name***

**\[Purpose]**
Single interface with QoS map binding

**\[Parameter]**

| **Parameter**    | **Description**                           |
| ---------------- | ----------------------------------------- |
| *type*           | dot1p\_to\_tc，dscp\_to\_tc， tc\_to\_queue |
| *profile\_name*  | qos\_map name                             |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic(config)# qos-map bind dscp_to_tc test
```

