08-15-2019 07:25 AM
so I'm working with a partner and they have some very specific policy-maps that need to be transferred to non-cisco networking equipment. I'm looking to get a good understanding of the existing cisco map. A portion of this map is utilizing random-detect ecn under a class - and then a policer within that class.
What exactly is this doing?
policy-map WAN-QoS
Class RTP
priority percent 55
Class OFFICE2
bandwidth percent 20
class Traffic22
bandwidth percent 5
random-detect
random-detect ecn
police cir percent 40
exceed-action drop
class class-default
bandwidth percent 20
So my question is.... under class Traffic22 - we're giving 5%. what is the random-detect ecn policier at 40% doing? is this 40% of that given 5%?
Solved! Go to Solution.
08-15-2019 07:50 AM
Hello LGordonier,
I agree that this is a strange configuration.
The policy-map is a form of LLQ + CBWFQ (priority command - > LLQ, bandwidth percent -> standard Queue in CBWFQ).
The LLQ-CBWFQ is elastic by default so the stated bandwidth percent 5 for class Traffic22 should be considered the minimum amount of BW guaranteed to this class even in congestion.
However, if there is no congestion or other classes are not using all of their BW Quotas the elastic capabilities of LLQ-CBWFQ on standard queues (not using priority ) allows them to go over their quota.
Here, I see an attempt to put an upper limit to BW usage by class Traffic22.
class Traffic22
bandwidth percent 5
random-detect
random-detect ecn
police cir percent 40
exceed-action drop
I have found the following thread in Cisco Learning Network explaining what the random-detect ecn should do
https://learningnetwork.cisco.com/thread/104203?dtid=osscdc000283
And also I have found the command in QoS command reference for ASR 9000
However, in both cases there is no mention of a policer attached to the random-detect ecn command.
So we can make the following interpretation:
the Traffic22 class is a standard queue in LLQ/CBWFQ with a minimal BW of 5 percent.
Traffic22 class uses WRED and WRED with ECN in case of congestion.
In case of congestion Traffic22 class is not allowed to get more then 40% of BW by the policer cir percent 40
exceed-action drop
However, it could be helpful to know what Cisco platform is this and what type of linecard is involved and the type and version of network operating system ( IOS, IOS XE or IOS XR)
Hope to help
Giuseppe
08-15-2019 07:50 AM
Hello LGordonier,
I agree that this is a strange configuration.
The policy-map is a form of LLQ + CBWFQ (priority command - > LLQ, bandwidth percent -> standard Queue in CBWFQ).
The LLQ-CBWFQ is elastic by default so the stated bandwidth percent 5 for class Traffic22 should be considered the minimum amount of BW guaranteed to this class even in congestion.
However, if there is no congestion or other classes are not using all of their BW Quotas the elastic capabilities of LLQ-CBWFQ on standard queues (not using priority ) allows them to go over their quota.
Here, I see an attempt to put an upper limit to BW usage by class Traffic22.
class Traffic22
bandwidth percent 5
random-detect
random-detect ecn
police cir percent 40
exceed-action drop
I have found the following thread in Cisco Learning Network explaining what the random-detect ecn should do
https://learningnetwork.cisco.com/thread/104203?dtid=osscdc000283
And also I have found the command in QoS command reference for ASR 9000
However, in both cases there is no mention of a policer attached to the random-detect ecn command.
So we can make the following interpretation:
the Traffic22 class is a standard queue in LLQ/CBWFQ with a minimal BW of 5 percent.
Traffic22 class uses WRED and WRED with ECN in case of congestion.
In case of congestion Traffic22 class is not allowed to get more then 40% of BW by the policer cir percent 40
exceed-action drop
However, it could be helpful to know what Cisco platform is this and what type of linecard is involved and the type and version of network operating system ( IOS, IOS XE or IOS XR)
Hope to help
Giuseppe
08-15-2019 08:06 AM
Thanks Giuseppe.
this would be for IOS and IOSXE as far as I know - but is used on multiple platforms for sure.
The policer is what is really throwing me through a loop here. It would make sense if they're trying to achieve a maximum 40% traffic for class Traffic22 with the policer, I've just never seen it used like this before. So follow-up question to your response would be - does the policer do anything when there is congestion present? The class Traffic22 would still be limited to the previously configured 5%, correct?
08-15-2019 08:24 AM
Hello,
my opinion is that policer should be triggered by wred when congestion is near to occurs.
So I see it as an upper limit of 40% of BW for Traffic Class Traffic22 in case of congestion.
Or the policer limits to 40% in all cases
Hope to help
Giuseppe
08-15-2019 08:36 AM
so assuming you're right, the 'bandwidth percent 5' statement is doing nothing?
08-15-2019 08:50 AM
Hello,
the bandwidth percent 5 creates the standard queue that WRED with ECN will manage, so we cannot say it is doing nothing.
In addition if all classes are using their assigned percentages traffic will be at least 5% in case of congestion for Traffic class Traffic22.
It provides the lower limit not the upper limit that in this specific case is provided by the policer.
Hope to help
Giuseppe
08-15-2019 10:09 AM
08-16-2019 01:04 AM
Hello Joseph,
>> The bandwidth statement defines it will be a single queue
This is what I wanted to point out in my answer.
>> WRED does interact with the class queue although (I believe I've noticed) the class queue might still have FIFO drops independent of WRED.
tuning WRED thresholds and testing it is really difficult in my experience I have found it very challenging because we were able to make tests with "dumb" traffic generators to create a background traffic and then we had put over it some smart traffic generators (that implements the TCP protocol actually like an iperf tool for example it was before tools like iperf were available) to create selected flows and then look for their throughput results.
In a context like this the variation in results repeating the tests is comparable to what you get when you change the WRED thresholds so it was not possible to find clear benefits of one set of values over another (for the selective and random drop feature of WRED).
What I have seen in tests is that we cannot use arbitrary too high thresholds or packets are dropped on the linecard because it has finite resources (memory for I/O) even in Cisco 12000 linecards (that were the most powerful on those times to be compared to CRS-1 or CRS-3 now).
Hope to help
Giuseppe
08-16-2019 12:14 PM
08-15-2019 09:43 AM
08-15-2019 09:55 AM
08-15-2019 04:52 PM
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