CLI Guide

Layer 2 Switching Commands 737
This example configures simple RED on an N1500 series switch. CoS queue 1
is globally configured for simple RED with a congestion threshold of 50% and
a drop probability of 0.781% for green colored traffic.
console(config)# random-detect queue-parms 1 min-thresh 50 0 0 drop-prob-
scale 8 0 0
console(config)#cos-queue random-detect 1
cos-queue strict
Use the cos-queue strict command in either Global Configuration mode or
Interface Configuration mode to activate the strict priority scheduler mode
for the specified queue. To restore the default weighted scheduler mode for
each specified queue, use the no form of this command.
Syntax
cos-queue strict {queue-id-1} [{queue-id-2} … {queue-id-n}]
no cos-queue strict {queue-id-1} [{queue-id-2} … {queue-id-n}]
queue-id-1 — Specifies the queue ID for which you are activating the
strict priority scheduler. You can specify a queue ID for as many queues as
you have (queue-id 1 through queue-id-n). (Range: 0–6)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode or Interface Configuration (gigabitethernet,
port-channel, tengigabitethernet, fortygigabitethernet) mode
User Guidelines
Strict priority (SP) queues are scheduled in priority order ahead of WRR
queues. Strict priority queues are allocated unlimited bandwidth by default.
Configuring the min-bandwidth on a CoS queue also configured for strict
priority wastes the scheduler slots. Use the cos-queue min-bandwidth
command on lower priority SP and WRR queues to ensure fairness to lower
priority queues by reserving a specific amount of scheduler bandwidth. Use
the show interfaces cos-queue command to display the class of service
settings.