Configuring QoS Queue Weights

Netvisor ONE automatically weights QoS queues in accordance with the minimum bandwidth guarantees. When you configure minimum bandwidth for a queue, the remaining bandwidth is assigned to the rest of the queues in the same ratio as the minimum bandwidth. For information on configuring minimum bandwidth, see Configuring Minimum and Maximum Bandwidth on Ports section.

When you configure a minimum bandwidth without specifying a weight value, the weight for the port and queue is automatically set on a scale of 1 to 100. For example, if you configure queue 1 with a minimum bandwidth of 10% and queue 2 with 30%, the weights are set to 10 and 30, respectively. 

If auto-configuration of weights is disabled, you can also assign desired weight values to the queues. When you configure queue weights manually, the bandwidth that remains after meeting the minimum bandwidth guarantee is proportioned among the queues in accordance with the assigned weights.

To enable or disable automatic weight assignment for QoS queues, use the command:

CLI (network-admin@switch) > system-settings-modify cosq-weight-auto|no-cosq-weight-auto


  • If you enable auto configuration of queue weights, you cannot change the weights using the port-cos-bw-modify command thereafter. You can still use the command to enable strict priority queue.
  • When you enable this feature, weights for all the queues that do not have minimum bandwidth configured are set to the default value of 1.

Use the port-cos-weight-modify command to change the queue weight of ports on the control panel (PCIe and CPU ports). This command assigns weights on a queue basis only and does not allow a per port configuration of weights.

CLI (network-admin@switch) > port-cos-weight-modify


Modify port queue weight.

cos0-weight priority|no-priority

Specify if you want to enable or disable strict priority. Or, specify the weight for the queue as an integer between 0 and 127.

cos1-weight priority|no-priority

cos2-weight priority|no-priority

cos3-weight priority|no-priority

cos4-weight priority|no-priority

cos5-weight priority|no-priority

cos6-weight priority|no-priority

cos7-weight priority|no-priority

cos8-weight priority|no-priority

cos9-weight priority|no-priority

For example:

CLI (network-admin@switch) > port-cos-weight-modify cos5-weight 64

To display the port queue weight configuration, use the command:

CLI (network-admin@switch) > port-cos-weight-show

cos0-weight: 16

cos1-weight: 32

cos2-weight: 32

cos3-weight: 32

cos4-weight: 32

cos5-weight: 64

cos6-weight: 64

cos7-weight: 127

You can use the command port-cos-bw-modify to change the queue weight of ports on the front panel. This command provides granular control over bandwidth and weight settings for port queues.

CLI (network-admin@switch) > port-cos-bw-modify


Modify port CoS bandwidth settings.

cos integer

Specify the CoS priority between 0 and 9.

Note: queues 8 and 9 are platform specific.

port port-list

Specify the physical port(s).

min-bw-guarantee min-bw-guarantee-string

Specify the minimum bandwidth as a percentage.

max-bw-limit max-bw-limit-string

Specify the maximum bandwidth as a percentage.

weight priority|no-priority

Specify to enable or disable weight scheduling in proportion to the minimum bandwidth guarantee. Or, specify a scheduling weight 

For example:

CLI (network-admin@switch) > port-cos-bw-modify cos 5 port 10 weight 64

Additionally, you can configure strict priority scheduling for any of the queues. If strict priority is configured on a queue, Netvisor ONE gives this queue a higher priority over the other queues.

To configure strict priority for queue 6, use the command:

CLI (network-admin@switch) > port-cos-bw-modify cos 6 weight priority