131
set queue nam
ip-proto
-mode [ bps | relative ]
Sets the mode of the weighted fair queue. The bps keyword indicates that weights are defined as bits-per-
second. The relative keyword indicates that weights are defined as a proportion of the sum of the weights of
all inputs to the wfq.
set queue name queue_name entry number input queue_name
Sets the input to a priority or weighted fair queue.
set queue name queue_name entry number marker queue_marker
Sets the marker with which packets must be marked to be directed to this queue entry's input queue when the
type is priority or wfq.
set queue name queue_name entry number priority [ 0... 255 ]
Sets the priority level of this queue. A lower value indicates a higher priority. All entries of equal priority will be
subject to a round robin algorithm.
For (strict) priority queue, the higher priority gets link resource first.
For wfq queue, each entry gets reserved bandwidth according to its weight. If different priority is given, any
excess bandwidth is offered to higher priority entry first; otherwise any excess bandwidth is distributed to
the weights ratio.
set queue name queue_name entry number weight [ 0... 100 ]
Sets the weight level of this weighted fair queue. Weight units are dependent on bps-mode setting.
If bps-mode is set to bps, then setting the weight to 0 will allocate the remaining available bandwidth to the
queue entry.
If no priority specified, excess bandwidth will be distributed proportionately to the weight ratio.
set queue name queue_name entry number peak [ 0... 100,000,000 ]
Sets the peak level of this weighted fair queue. The peak parameter is a number from 0 through 100,000,000 in
bits/second. It must be at least 50,000 for best effect. It is the peak data rate allowed on the queue entry, and
usually supports bandwidth sharing, that is, if other queues are not busy and there is spare bandwidth, then a
busy queue is allowed to go up to the peak rate.
set queue name queue_name default-entry queue_name
Indicates the input queue used if there is no match between the packet queue marker and the configured
markers in any of the queue's inputs when the queue type is priority or wfq.