Changing Class of Service (CoS) Behavior


Netvisor One automatically weights Class of Server (CoS) queues with minimum bandwidth guarantees. When you configure minimum bandwidth on a port queue using CoS, the remaining bandwidth is assigned to the rest of the queues in the same ratio as the minimum bandwidth.


You can use the command, port-cos-bw-modify, to change the queue weight of ports on the front panel and use the command, port-cos-weight-modify, to change the queue weight of ports on the control panel (PCIE and CPU ports).


When you configure a minimum bandwidth without specifying a weight value, the weight for the port and CoS is automatically set on a scale of 1 to 100.


For example, if you configure the minimum bandwidth as 10%, Netvisor One automatically assigns the queue a weight value of 1. You can also assign a specific weight value to the queue.


Additionally, you can configure strict priority scheduling for any of the queues. By default, CoS 7 assigns strict priority scheduling for the queue.


To allow automatic weight assignment for CoS queues, use the following syntax:


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


cos integer

Specify the CoS priority between 0 and 7.

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|no-weight

Specify if the scheduling weight after the bandwidth guarantee is met.


CLI (network-admin@Spine-1) > port-bw-show


switch  cos port min-bw-guarantee max-bw-limit weight

------- --- ---- ---------------- ------------ ------

Spine-1 0   1-72 0%               100%         0

Spine-1 1   1-72 0%               100%         0

Spine-1 2   1-72 0%               100%         0

Spine-1 3   1-72 0%               100%         0

Spine-1 4   1-72 0%               100%         0

Spine-1 5   1-72 0%               100%         0

Spine-1 6   1-72 0%               100%         0

Spine-1 7   1-72 0%               100%         0

 

To auto-configure bandwidth, use the following syntax:


CLI (network-admin@Spine-1) > port-cos-bw-modify cos 1 port 1 min-bw-guarantee 20


CLI (network-admin@Spine-1) > port-cos-bw-show

 

switch  cos port min-bw-guarantee max-bw-limit weight

------- --- ---- ---------------- ------------ ------

Spine-1 0   1-72 0%               100%         0

Spine-1 1   2-72 0%               100%         0

Spine-1 1   1    20%              100%         2

Spine-1 2   1-72 0%               100%         0

Spine-1 3   1-72 0%               100%         0

Spine-1 4   1-72 0%               100%         0

Spine-1 5   1-72 0%               100%         0

Spine-1 6   1-72 0%               100%         0

Spine-1 7   1-72 0%               100%         0


To configure a specific weight, use the following syntax:


CLI (network-admin@Spine-1) > port-cos-bw-modify cos 1 port 1 weight 6


CLI (network-admin@Spine-1) > port-cos-bw-show

 

switch  cos port min-bw-guarantee max-bw-limit weight

------- --- ---- ---------------- ------------ ------

Spine-1 0   1-72 0%               100%         0

Spine-1 1   2-72 0%               100%         0

Spine-1 1   1    20%              100%         6

Spine-1 2   1-72 0%               100%         0

Spine-1 3   1-72 0%               100%         0

Spine-1 4   1-72 0%               100%         0

Spine-1 5   1-72 0%               100%         0

Spine-1 6   1-72 0%               100%         0

Spine-1 7   1-72 0%               100%         0