12-10-2008 03:17 AM - edited 03-04-2019 12:39 AM
Hi there,
I'm trying to understand the behaviour of class based weighted fair queue (CBWFQ) under particular conditions.
Say have 2 queues.
Queue 1 - bandwidth 50%
queue 2 - is the default queue bandwidth 10%
There is no LLQ
Policy is applied outbound.
For simplicity the interface bandwidth is 1mb.
What happens when both queues are full? How is the traffic split?
For arguments sake let's say that the other interface on the router is 100mb and its receiving both classes of traffic at rate of 20mb.
Now I understand that Queue 1 will have a reservation of 50% (500k). But how is the remaining 500k split?
In a 5:1 ratio or 50\50 split?
Thanks
Andy
Solved! Go to Solution.
12-10-2008 04:07 AM
My understanding is excess available bandwidth is assigned in the same ratios, i.e. 5:1 in your example. This assumes all the other classes have explicitly defined bandwidths and they all would use 100%. I think I came across a Cisco reference that excess would be split equally across classes, i.e. 50/50 in your example, but believe the former, ratios, is correct. Reason being for this belief, CBWFQ seems to use the bandwidth setting to assign a "weight" to the class-queue (WFQ between classes), and as far as I can tell, this weight isn't adjusted when the class rate exceeds its bandwidth assignment.
12-10-2008 04:07 AM
My understanding is excess available bandwidth is assigned in the same ratios, i.e. 5:1 in your example. This assumes all the other classes have explicitly defined bandwidths and they all would use 100%. I think I came across a Cisco reference that excess would be split equally across classes, i.e. 50/50 in your example, but believe the former, ratios, is correct. Reason being for this belief, CBWFQ seems to use the bandwidth setting to assign a "weight" to the class-queue (WFQ between classes), and as far as I can tell, this weight isn't adjusted when the class rate exceeds its bandwidth assignment.
12-10-2008 11:47 AM
Hi Joe,
Yep - I agree with you as this seems to fit well with the whole idea of WFQ. (although I dont have an evidence\expereince to back it up.)
Appreciate you taking the time to reply
12-10-2008 04:12 AM
hi Andy,
what you are going to do is called "Congestion Management". So if the intefaace wasn't congested then they will be sent at access-rate,1Mbps. Bandwidth 50%? what does it mean? It will guarantee at least 50% of the bandwidth for queue1 if congested. Am I clear? so Queue1 can use more than 50% if the other queues use less than the guarantee bandwidth.
HTH,
Toshi
12-10-2008 11:43 AM
Hi Toshi,
The config would look something like this.
policy-map test-policy
class queue1
bandwidth percent 50
class queue2
bandwidth percent 10
The question is that if traffic for both queues is causing congestion how is the remainder of the bandwidth (40%) split between the queues?
My tendency would be to agree with Joe that the remaining bandwidth is split proportionally (weighted) between the 2 different classes.
(Although iv'e jsut realised my maths was wrong in the first example. Only 400k is not reserved for any class).
12-10-2008 12:07 PM
hi,
let's check by using a "show policy-map interface
HTH
Toshi
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: