4 Command Line Interface

Priority Commands (Layer 2)

Table 4-63 Priority Commands (Layer 2)

Command

Function

Mode

Page

 

 

 

 

queue mode

Sets the queue mode to strict priority or Weighted

GC

4-186

 

Round-Robin (WRR)

 

 

switchport priority default

Sets a port priority for incoming untagged frames

IC

4-187

 

 

 

 

queue bandwidth

Assigns round-robin weights to the priority queues

IC

4-188

 

 

 

 

queue cos-map

Assigns class-of-service values to the priority queues

IC

4-188

 

 

 

 

show queue mode

Shows the current queue mode

PE

4-189

 

 

 

 

show queue bandwidth

Shows round-robin weights assigned to the priority queues

PE

4-190

 

 

 

 

show queue cos-map

Shows the class-of-service map

PE

4-190

 

 

 

 

show interfaces switchport

Displays the administrative and operational status of an

PE

4-132

 

interface

 

 

queue mode

This command sets the queue mode to strict priority or Weighted Round-Robin (WRR) for the class of service (CoS) priority queues. Use the no form to restore the default value.

Syntax

queue mode {strict wrr} no queue mode

strict - Services the egress queues in sequential order, transmitting all traffic in the higher priority queues before servicing lower priority queues.

wrr - Weighted Round-Robin shares bandwidth at the egress ports by using scheduling weights 1, 2, 4, 6, 8, 10, 12, 14 for queues 0 - 7 respectively.

Default Setting

Weighted Round Robin

Command Mode

Global Configuration

Command Usage

You can set the switch to service the queues based on a strict rule that requires all traffic in a higher priority queue to be processed before lower priority queues are serviced, or use Weighted Round-Robin (WRR) queuing that specifies a relative weight of each queue. WRR uses a predefined relative weight for each queue that determines the percentage of service time the switch services each queue before moving on to the next queue. This prevents the head-of-line blocking that can occur with strict priority queuing.

4-186