---
title: Queue Scheduling
slug: routing/queue-scheduling
createdAt: 2025-12-04T03:57:08.721Z
---

## <font color="#1d50a2">Queue Scheduling</font>

### <font color="#1d50a2">show interface uc-tx-queue</font>

**\[Command]**
**show interface uc-tx-queue**

**\[Purpose]**
Display the queue scheduling method of the interface

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show interface uc-tx-queue
{
"Ethernet1|0":{
"SCHEDULER|scheduler.Ethernet1_0":{
"type":"STRICT"
}
},
"Ethernet1|2":{
"SCHEDULER|scheduler.Ethernet1_2":{
"type":"STRICT"
}
}
}
```

### <font color="#1d50a2">uc-tx-queue scheduler queue\_id mode \{STRICT| DWRR\}</font>

**\[Command]**
**uc-tx-queue scheduler *queue\_id* mode STRICT \[pir *value*] \[pbs *value*]**
**uc-tx-queue scheduler *queue\_id* mode DWRR \[weight *value*] \[pir *value*] \[pbs *value*]**
**uc-tx-queue scheduler *unicast***

**\[Purpose]**
Configure a scheduling mode for queues on an interface

**\[Parameter]**

| **Parameter**     | **Description**                        |
| ----------------- | -------------------------------------- |
| *queue\_id*       | Queue ID, value range: 0\~7            |
| *STRICT*          | Enable strict priority queuing         |
| *DWRR*            | Enable DWRR priority queuing           |
| *weight \<value>* | Weight of a queue, Value range: 0\~100 |

**\[View]**
Interface view

**\[Usage Scenario]**
In a network, the queue scheduling algorithm is a core mechanism for implementing Quality of Service (QoS) control. It manages the usage of link bandwidth for different types of packets, ensuring that various data streams receive services at different levels. Different queues under the same interface can adopt a mixed scheduling mode of STRICT and DWRR.

In this mode, queues configured with STRICT mode based on priority are scheduled first. When there are no packets in the STRICT mode queues, the system schedules DWRR queues based on their weights. By default, the scheduling method for queues is DWRR (Deficit Weighted Round Robin), with equal weights of 1.

This configuration allows network administrators to manage different types of traffic more flexibly, ensuring that high-priority traffic receives faster processing, while low-priority traffic can still effectively utilize link bandwidth.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# uc-tx-queue scheduler 0 mode strict
sonic(config-if-1)# uc-tx-queue scheduler 1 mode strict
sonic(config-if-1)# uc-tx-queue scheduler 2 mode DWRR weight 80
sonic(config-if-1)# uc-tx-queue scheduler 3 mode DWRR weight 80
```

### <font color="#1d50a2">uc-tx-queue scheduler queue\_id \{*pir*|*pbs*\}</font>

**\[Command]**
**uc-tx-queue scheduler *queue\_id* \{*pir*|*pbs*}**

**\[Purpose]**
Configure queue rate limiting

**\[Parameter]**

| **Parameter**  | **Description**                                                      |
| -------------- | -------------------------------------------------------------------- |
| *pir \<value>* | Specifies the peak information rate of the queue, the unit is byte/s |
| *pbs \<value>* | Specifies the peak burst size of the queue, the unit is byte         |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# uc-tx-queue scheduler 0 pir 1000
```

