Hi Tony,
With the following commands configured under an interface:
srr-queue bandwidth share 10 10 60 20
srr-queue bandwidth shape 10 0 0 0
- 100/10 = 10% of bandwidth is reserved for queue 1 and other queues cannot share this bandwidth even if queue 1 is empty.
- 10/(10+10+60+20) = 10% of bandwidth is set for queue 2 and this bandwidth can be shared by queue 3 and queue 4 if they are congested.
- 60/(10+10+60+20) = 60% of bandwidth is set for queue 3 and this bandwidth can be shared by queue 2 and queue 4 if they are congested.
- 20/(10+10+60+20) = 20% of bandwidth is set for queue 4 and this bandwidth can be shared by queue 2 and queue 3 if they are congested.
If you use 'priority-queue out' command under an interface, as long as there is any traffic in the priority queue (queue 1 by default), 100% of the bandwidth is used by queue 1. Also, weight1 in the shape and share commands is not used in bandwidth calculation for other queues.
Without 'priority-queue out' , and above share and shape commands in place, queue1 can use at most 10% of the interface bandwidth beyond which packets will be dropped.
Hope this helps.
Shashank
Please rate this answer if you found the content useful