cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
366
Views
10
Helpful
5
Replies

Cisco Wred to be used when bw threshold occurs

Dr.X
Level 2
Level 2

Hi 

i need to use Wred to avoid congestion in my network 

i have speed 200 M on interface 1 G

all i need is :

i want once the speed  on  interface reached 160 M , i need Wred  t do its stuff in congestion avoidance like dropping TCP.

the question here is :

how do i let Wred know  that mount of 160 M ?

is my config below is correct ?

policy-map policyx
 class class-default
 bandwidth 160000
 random-detect 


will Wred start to drop if threshold reached more than 160 M ???

cheers

5 Replies 5

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

No, your configuration isn't correct.

You'll want to use a hierarchical policy with a shaper in the parent policy and WRED in the child policy.

BTW, WRED is very difficult to get "right".  Unless your a QoS master, I would recommend to avoid using it.

well ,

before i post the config below , may i ask you when the Wred applied ?

is it applied when there is congestion on the interface ?

or it detected the congestion before it occurs ?

---------------

I've updated the config , check plz below :

------------------------------------

Gateway-ASR1002#sh policy-map isp


Policy Map isp
Class class-default
Average Rate Traffic Shaping
cir 160000000 (bps)
service-policy internet


Gateway-ASR1002#sh policy-map internet

Policy Map internet
Class class-default
random-detect

thank you 

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

WRED "triggers" when there's congestion.

What you have, is close to being correct.  Your syntax is incorrect for the parent shaper.

Again, I recommend you don't use WRED unless you're a QoS master, or willing to become one.  WRED appears simple, but it's not.

well , indeed I'm willing to be Wred master because i want the congestion  when occurs to occur only my side not on the ISP provider side .

i know basic QOS and will understand you when you guide :)

thats why i would need that  , can you guide/help me or any best practice to what i need to achieve ?

cheers

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

well , indeed I'm willing to be Wred master because i want the congestion  when occurs to occur only my side not on the ISP provider side .

Right - good.

However, then, first thing to understand WRED doesn't create congestion, it's a drop management approach when there is congestion.  Best, when possible, is to have the congestion form at the physical interface, but when you're have a logical rate limit, less than the interface bandwidth, you need to shape for the logical restriction.  Logically, your second posted policy (syntax correct) would accomplish that.

Now, you did mention wanting to use WRED on TCP traffic, which makes sense, because it's really intended for rate adaptive traffic.  Your policy, though, does not single out TCP traffic.  So, you might want policies more like:

Policy Map isp
Class class-default
shape average 16000000
service-policy internet

Policy Map internet
Class tcp
random-detect

class class-default

Unsure what defaults an ASR uses for WRED, and/or whether your traffic has ToS markings, but by default, WRED generally has different defaults based on IPPrec.

You may want/need to adjust WRED min, max settings.  What those settings should be depends on multiple factors.

Again, as I written, I consider getting WRED "right" is very difficult.  So difficult, I cannot easily describe all the consideration here.  Suggest you read several books that explain RED, then after that, research the Internet for articles on issues using RED.  A good source of such information is all the other "improved" versions of RED that address (or try to) RED issues.  Of course, Cisco's WRED implementation doesn't offer any of those "improvements" (well perhaps excluding Cisco's FRED, available on 4500s), but you'll better understand what you're dealing with, when trying to optimize RED performance.

BTW, personally, I find per-flow FQ tail-drop often a better technique for managing drops.  Bandwidth hogs get dropped first, where with WRED, any flow in the WRED queue might be dropped (although statistically proportional to its bandwidth usage).  Additionally, WRED works against queue averages, where FQ works against actual queue depths.

Review Cisco Networking for a $25 gift card