COS
Note
This command belongs to the shell mode for newer (logical-table) switch chips and is not available on Trident 3.
Manage classes of service
Built-in help
Usages:
cos clear - Reset COS configuration to default
cos map [Pri=#] [Queue=#] - Map a priority 0-7 to a COS queue
cos strict - Set strict queue scheduling mode
cos simple - Set round robin queue scheduling mode
cos weight [W0=#] [W1=#] ... - Set weighted queue scheduling mode
with the specified weights per queue
cos fair [W0=#] [W1=#] ... - Set weighted fair queue scheduling mode
with the specified weights per queue
cos bounded [W0=#] [W1=#] ... [Delay=<usec>]
- Set bounded queue scheduling with delay
cos drr [W0=#] [W1=#] ... - Set Deficit Round Robin scheduling mode
with the specified weights per queue
cos discard [Enable=true|false] [CapAvg=true|false]
- Set discard (WRED) config
cos discard_show [Gport=<GPORT ID>] [Queue=#]
- Show current discard (WRED) config
cos discard_gport [Enable=true|false] [CapAvg=true|false]
[Gport=<GPORT ID>] [Queue=#] [Color=green|yellow|red]
[DropSTart=#] [DropEnd=#] [DropProbability=#] [GAin=#]
[Mode=byte|packet]
- Set GPORT discard (WRED) config
cos bandwidth [PortBitMap=<pbmp>] [Queue=#] [KbpsMIn=#]
[KbpsMAx=#] [Flags=#]
- Set cos bandwidth
cos bandwidth_show - Show current COS bandwidth config
cos show - Show current COS config
cos port config [PortBitMap=<pbmp>] [Numcos=#] [Gport=<GPORT ID>]
- Add and attach a COSQ GPORT
cos port map [PortBitMap=<pbmp>] [Pri=#] [Queue=#]
- Map a port's priority 0-7 to a COS queue
cos port strict - Set strict queue scheduling mode
cos port simple - Set round robin queue scheduling mode
cos port weight [PortBitMap=<pbmp>] [Queue=#] [Weight=#] [Gport=<GPORT ID>]
- Set weighted queue scheduling mode
with the specified weight of queue
cos port fair [PortBitMap=<pbmp>] [Queue=#] [Weight=#] [Gport=<GPORT ID>]
- Set weighted fair queue scheduling mode
with the specified weight of queue
cos port bounded [PortBitMap=<pbmp>] [Queue=#] [Weight=#] [Gport=<GPORT ID>]
- Set bounded queue scheduling mode
with the specified weight of queue
cos port drr [PortBitMap=<pbmp>] [Queue=#] [Weight=#] [Gport=<GPORT ID>]
- Set Deficit Round Robin scheduling mode
with the specified weight of queue
cos port bandwidth [PortBitMap=<pbmp>] [Queue=#] [KbpsMIn=#]
[KbpsMAx=#] [Flags=#] [Gport=<GPORT ID>]
- Set port cos bandwidth
cos port show [PortBitMap=<pbmp>]
- Show current port COS config