Hello!
I've been looking at QoS sample configs on CCO for LAN switches (3560s and 3750s), and have a question:
Would it not be a good idea usually to have the relative memory buffer allocation to the 4 queues be the same as the interface output bandwidth share for the queue? I see that they are often different, and so am curious why.
Here's an excerpt from "Example 2-32 Catalyst 2970/3560/3750 Queuing and Dropping" in the Enterprise QoS SRND:
CAT2970(config)#mls qos queue-set output 1 threshold 2 70 80 100 100
! Sets Q2 Threshold 1 to 70% and Q2 Threshold 2 to 80%
CAT2970(config)#mls qos queue-set output 1 threshold 4 40 100 100 100
! Sets Q4 Threshold 1 to 40% and Q4 Threshold 2 to 100%
CAT2970(config)#interface range GigabitEthernet0/1 - 28
CAT2970(config-if-range)# queue-set 1
! Assigns interface to Queue-Set 1 (default)
CAT2970(config-if-range)# srr-queue bandwidth share 1 70 25 5
! Q2 gets 70% of remaining BW; Q3 gets 25% and Q4 gets 5%
CAT2970(config-if-range)# srr-queue bandwidth shape 3 0 0 0
! Q1 is limited to 1/3 of the total available BW
CAT2970(config-if-range)# priority-queue out
! Q1 is enabled as a PQ
CAT2970#show mls qos queue-set 1
----------------------------------------------
threshold1: 100 70 100 40
threshold2: 100 80 100 100
maximum : 400 100 400 100
So, Q1 (the priority queue) gets ~33% of the bandwidth. Of the remaining ~66%, Q2 gets to have at least 70%, Q3 gets 25% and Q4 gets 5%. (Since these are in shared mode, they can each have more of the b/w if another queue isn't using it.)
It *looks* like there's a mis-match between what's permitted by the "srr-queue bandwidth share" command, and the buffer assignment. Wouldn't you want to set things up so that the buffers would be allocated to each queue in a similar relative amount? In fact, of queues 2-4, Q3 is allowed to grow to 400% of the base allocation, while Q2 cannot grow above its base allocation at all.
Thanks for any insight on what I might be missing here!
Deb