User’s Manual of WGSD-1022/WGSD-8000

5.17.4 wrr-queue bandwidth

The wrr-queue bandwidth interface configuration command assigns Weighted Round Robin (WRR) weights to egress queues. The weights ratio determines the frequency in which the packet scheduler dequeues packets from each queue. To return to the default values, use the no form of this command.

Syntax

wrr-queue bandwidth weight1 weight2 ... weight_n

no wrr-queue bandwidth

ƒweight1...weight_n—Sets the bandwidth ratio in which the WRR packet scheduler dequeues packets. Separate each value by spaces. (Range: 6 - 255)

Default Configuration

The default WRR weight is 1/8 ratio for all queues (each weight set to 6).

Command Mode

Interface Configuration mode

User Guidelines

The packet refers to a threshold by the conformance level. Weighted round robin queues should be defined on the interface. Use the priority-queue out num-of-queuescommand to globally configure a queue as WRR or Strict Priority.

Use this command to set a weight per interface.

The ratio will be like this:

The ratio for each queue is defined by the queue weight divided by the sum of all queue weights (i.e., the normalized weight). This actually sets the bandwidth allocation of each queue.

A weight of 0 means no bandwidth is allocated for the same queue, and the share bandwidth is divided among the remaining queues.

All eight queues are participating excluding the queues that are assigned as expedite queues. The weights of these queues are ignored in the ratio calculation.

All eight queues participate in the WRR exclude the expedite queues, in which case the corresponded weight is ignored (not used in the ratio calculation). The expedite queue is a priority queue, and it is serviced until empty before the other queues are serviced.

Use the priority-queue out num-of-queuescommand to globally configure a queue as WRR or Strict Priority. Use this command to set a weight per interface.

Example

The following example sets queue weights as follows:

ƒQueue 1—6/36

ƒQueue 2—6/36

ƒQueue 3—6/36

ƒQueue 4—6/36

- 259 –