2

I'm running new IOS 15.4.3(M2) on 2911 and 15.4.3(S3) on ISR4331s. I have the following QoS policy:

policy-map WAN-EGRESS-POLICY
 class CLASSIFY-AF41
    bandwidth remaining percent 25
 class CLASSIFY-AF31
    bandwidth remaining percent 30
 class CLASSIFY-AF21
    bandwidth remaining percent 15
 class class-default
     random-detect dscp-based

In prior IOS versions, Cisco would allocate 25% to the default class, which leaves you to allocate 75% of the remaining bandwidth (or changeable with the max reserved bandwidth command). Now, Cisco allows you to configure up to 100%, however, I'm not clear on what "percentage" that leaves the default class.

For example, I have 70% assigned to classes above. My questions is:

Assuming full 100% allocation by default, what is allocated to the default class if it's not specified?

1
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could post and accept your own answer.
    – Ron Maupin
    Dec 21, 2020 at 2:55

1 Answer 1

2

You are not assigning 70% of the bandwidth because you are using the remaining keyword.

You are not reserving or dedicating the bandwidth you assign. If a class is not using all its bandwidth, other classes can use it, too. The default class gets to use any unreserved bandwidth that is not used. It could use up to 100% of the bandwidth, as can any of the classes, if it is not reserved. The bandwidth percent command doesn't exclusively reserve bandwidth.

Cisco has a paper describing how this works:

How Is Unused Bandwidth Allocated?

This section explains how the queueing system distributes any remaining bandwidth. Here is how the Class-Based Weighted Fair Queueing Feature Overview describes the allocation mechanism: "If excess bandwidth is available, the excess bandwidth is divided amongst the traffic classes in proportion to their configured bandwidths. If not all of the bandwidth is allocated, the remaining bandwidth is proportionally allocated among the classes, based on their configured bandwidth." Let's look at two examples.

In the first example, policy-map foo guarantees 30 percent of the bandwidth to class bar and 60 percent of the bandwidth to class baz.

policy-map foo 
  class bar 
    bandwidth percent 30 
 class baz 
  bandwidth percent 60

If you apply this policy to a 1 Mbps link, it means that 300 kbps is guaranteed to class bar, and 600 kbps is guaranteed to class baz. Importantly, 100 kbps is leftover for class-default. If class-default does not need it, the unused 100 kbps is available for use by class bar and class baz. If both classes need the bandwidth, they share it in proportion to the configured rates. In this configuration, the sharing ratio is 30:60 or 1:2.

3
  • Apologies, I must have not been clear in my question. I understand the concept of percentages and any class/traffic can use the unused bandwidth. The question is - With Cisco allowing 100% of the BW to classes, what percentage does the default class get if i don't specify it?
    – SeanH
    Nov 5, 2015 at 19:16
  • The default class get to use any unreserved bandwidth that is not used. It could use up to 100% of the bandwidth, as can any of the classes, if it is not reserved. The bandwidth percent doesn't reserve bandwidth.
    – Ron Maupin
    Nov 5, 2015 at 19:31
  • For example, your class, CLASSIFY-AF41, being the first class does get 25% of the bandwidth as a minimum guarantee, but when it only uses 10% of the bandwidth, the other classes can use the 15% not used by CLASSIFY-AF41. The bandwidth command only guarantees a class a minimum bandwidth, not a maximum bandwidth. The link I provided has some tables and explanations around this.
    – Ron Maupin
    Nov 5, 2015 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.