Command Line Reference
QoS Configuration
Queue Scheduling
4 min
show interface uc tx queue show interface uc tx queue \[command] show interface uc tx queue \[purpose] display the queue scheduling method of the interface \[view] system view \[use cases] sonic# show interface uc tx queue { "ethernet1|0" { "scheduler|scheduler ethernet1 0" { "type" "strict" } }, "ethernet1|2" { "scheduler|scheduler ethernet1 2" { "type" "strict" } } } uc tx queue scheduler uc tx queue scheduler queue id mode \[strict|dwrr] \[command] uc tx queue scheduler queue id mode strict uc tx queue scheduler queue id mode dwrr weight uc tx queue scheduler \[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 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] 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 uc tx queue scheduler uc tx queue scheduler queue id \[command] uc tx queue scheduler queue id \[pir pir value ]\[pbs pbs value ] \[purpose] configure queue rate limiting \[parameter] parameter description pir specifies the peak information rate of the queue, the unit is byte/s pbs specifies the peak burst size of the queue, the unit is byte \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# uc tx queue scheduler 0 pir 1000
