WRED & Shaping together

Unanswered Question
Oct 15th, 2009
User Badges:

Can someone clarify something for me. I have this situation, I need to match dscp ef traffic and guarantee it 512K, limit http traffic to 1Mbps and make sure that all traffic is randomly dropped if congestion occurs.


class-map EF

match ip dscp ef


class-map HTTP

match protocol http


policy-map MYPOLICY


class-map EF

bandwidth 512

random-detect


class-map HTTP

shape average 1000


class class-default

fair-queue

random-detect



With this configuration, EF traffic and default traffic is using WRED. But how do I configure HTTP in the above class-map to utilize WRED also?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Thu, 10/15/2009 - 19:42
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

u need a bandwidth statment to get the WRED configured on the class-map

however you can try this trick


creat class map called default2

which match everything except http

now the put it before the class-default

now limit the calss default to 1M in this case class default will be only http beucase all other traffic has been match before except http


class default2

match not protocol http


politcy-map

class default2


class class-default

shape average 1000

fair-queue

random-detect


good luck

hope this helps



Joseph W. Doherty Fri, 10/16/2009 - 03:37
User Badges:
  • Super Bronze, 10000 points or more

At the moment, I'm not able to try various config options, but have your tried?


class-map HTTP

!BTW, believe bandwith is in Kbps

bandwidth 1000

!BTW, and shaper in bps

shape average 1000000

random-detect


or


policy-map child


class-map class-default

random-detect


policy-map MYPOLICY


class-map HTTP

!BTW, believe bandwith is in Kbps

bandwidth 1000

!BTW, and shaper in bps

shape average 1000000

service-policy child


Also BTW, random-detect is not normally used for LLQ classes (your class EF). Also, default random-detect not normally useful for other than TCP traffic. Lastly, FQ, or shaper on many IOS implementations, default random-detect not really of much benefit since there's already tail drop per flow queue.

Actions

This Discussion