03-01-2017 07:09 AM - edited 03-01-2019 03:05 PM
Hello all,
I have a question regarding how unused bandwidth is distributed in each class-map when bandwidth remaining ratio is configured. Let's take the following example below.
policy-map PARENT_POLICY
class class-default
shape average 100000000
service-policy CHILD_POLICY
policy-map CHILD_POLICY
class EF_CLASSMAP
police 50000000
priority
class AF_CLASSMAP
police 30000000
bandwidth remaining ratio 9
class class-default
bandwidth remaining ratio 1
Based on the simply configuration above, let us assume the following:
I've look into this as my reference
Our problem with our network is that our provider is insisting that the class-default can take up as much unused bandwidth considering there are no other traffic for the other class. But in reality, we are experiencing that the class-default is already dropping packets even though there is no congestion yet on the link. So in context to the above example, our class-default is dropping packets even though we are at just about 50% of the total shape rate.
I'd appreciate your expert opinion and thanks in advance.
03-08-2017 10:54 AM
The way I read the documentation of this feature, from your reference link, class-default should be allowed to obtain all unused bandwidth.
As to you seeing drops when you get to 50%, that may have more to due with your providers Tc and how deep your provider's shaper's queues are vs. the characteristics of your traffic.
03-10-2017 02:24 AM
This is the fundamental difference between the Police, Shape and Bandwidth:
Police = allowed maximum for a given class all the times, whether there’s congestion or not
Shape = allowed maximum for a given class all the times, whether there’s congestion or not
Bandwith = guaranteed minimum for a given class in case there’s a congestion and different classes of traffic are fighting over available BW resources (active only during congestion)
So the configuration is saying that in case EF and AF and BE are causing congestion together, (dictated by the parent shaper –so sum of traffic is more than 100M), then when worse comes to worst and all three classes transmit at 100M then EF is going to be capped at 50M and AF traffic is going to be guaranteed at least 9 pieces of the remaining 50M and BE will be guaranteed at least 1 piece of the remaining 50M.
If however there’s no EF traffic then all 100M “remainder” is available for AF and BE; and AF and BE each transmit at 100M, then AF traffic is going to be guaranteed at least 9 pieces of the remaining 100M and BE will be guaranteed at least 1 piece of the remaining 100M.
So as you can see the config is just making sure that AF and BE gets at least their guaranteed share of the leftover BW after EF (marked as “priority”) class was served.
By the same token if EF and AF is not transmitting then all the leftover BW is available to just BE class.
For more info:
and this one has a very good example:
Using “show qos interface” or “show policy-map interface” you should see that there are no drops on the BE class.
adam
netconsultings.com
::carrier-class solutions for the telecommunications industry::
11-28-2017 05:30 AM - edited 11-28-2017 05:33 AM
Thank you for the explanation, Adam.
I have a question though: in the second case when there's no EF traffic at all - how "AF traffic is going to be guaranteed at least 9 pieces of the remaining 100M" if it actually has the "police 30000000" configured together with "bandwidth remaining" command?
From the "Police = allowed maximum for a given class all the times" part I understood the traffic for AF can never go over 30000000, no matter what, and 9/10 of 100M will never be reached.
Could you elaborate on this, please?
Yarek
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide