8.1.4. qos queue

Syntax

qos queue strict-priority-num <0-8>

qos queue weight SEQUENCE

Parameter


strict-priority-num Specify the strict priority queue number <0-8>

Weight SEQUENCE Specify the non-strict priority queue weight value. The valid queue weight value is from 1 to 127.


Default

Default strict priority queue number is 8, it means all queues are strict priority queue.

The default queue weight for each queue is shown in following table.

QueueID

Queue Weight

1

1

2

2

3

3

4

4

5

5

6

9

7

13

8

15

Mode

Global Configuration

Usage

The device support total 8 queues for QoS queueing. It is able to set the queue to be strict priority queue or weighted queue to prevent starvation. The queue with higher id value has higher priority. First, you need to decide how many strict priority queue you need. The strict priority queue will always occupy the higher priority queue. For example, if you specify the strict priority number to be 2, then the queue 7 and 8 will be the strict priority queues and the others are weighted queues. After you setup the number of strict priority queue, you need to setup the weight for the weighted queues by using “qos queue weight” command. And the bandwidth will shared by the weight you configured between these weighted queues.

Example

This example shows how to setup device with 3 strict priority queues and give other weighted queues with weight 5, 10, 15, 20, 25.

Switch(config)# qos queue strict-priority-num 3
Switch(config)# qos queue weight 5 10 15 20 25
Switch# show qos queueing
qid-weights Ef - Priority
1.  -   5 dis- N/A
2.  -   10 dis- N/A
3.  -   15 dis- N/A
4.  -   20 dis- N/A
5.  -   25 dis- N/A
6.  -   N/A ena- 6
7.  -   N/A ena- 7
8.  -   N/A ena- 8