User's Manual
353
cng-bit is congestion bit of cos mapping.
exit
Exit from management configuration mode.
write
Saving the configuration.
46.3.3 Setting the Bandwidth of the CoS Priority Queue
The bandwidth of priority queue means the bandwidth distribution ratio of each priority queue, which is set
when the schedule policy of the CoS priority queue is set to WRR/DRR. This series of switches has 8 priority
queues in total.
If this command is run, the bandwidth of all priority queues on all interfaces are affected. This command
validates only when the queue schedule policy is set to WRR or DRR. This command decides the bandwidth
weight of the CoS priority queue when the WRR/DRR schedule policy is used.
Run the following commands one by one to set the bandwidth of the CoS priority queue.
Command Purpose
config
Enters the global configuration mode.
[
no
]
scheduler weight bandwidth
weight1...weightn
Sets the bandwidth of the CoS priority queue
.
.
weight1…weightn
stand for the weights of 8
CoS priority queues of WRR/DRR.
exit
Goes back to the EXEC mode.
write
Saves the settings.
46.3.4 Setting the Schedule Policy of the CoS Priority Queue
A switch has many output queues on each of its port. This series of switches has 8 priority queues. The output
queues can adopt the following three schedule modes:
21. SP (Sheer Priority): In this algorithm, only when the high-priority queue is null can the
packets in the low-priority queue be forwarded, and if there are packets in the high-priority
queue these packets will be unconditionally forwarded.
22. In this mode, the bandwidth of each queue is distributed with a certain weight and then
bandwidth distribution is conducted according to the weight of each queue. The bandwidth
in this mode takes byte as its unit.
23. The First-Come-First-Served queue algorithm, which is shortened as FCFS, provides
service to those packets according to their sequence of arriving at a switch, and the packet
that first arrives at the switch will be served first.
Enter the following configuration mode and set the schedule policy of CoS priority queue.
Command Purpose
config
Enters the global configuration mode.
[
no
]
scheduler policy
{
sp
|
wrr|wfq|fcfs
} Sets the schedule policy of the CoS priority
queue.
sp
means to use the SP schedule policy.
Wrr
means to use the WRR schedule policy.
Fcfs
to use the FCFS schedule policy.
drr
means to use the DRR schedule policy.
exit
Goes back to the EXEC mode.
write
Saves the settings.