From: Petr Lapukhov (petrsoft@gmail.com)
Date: Wed Mar 22 2006 - 03:15:18 GMT-3
Hello guys,
some comments here..
policy-map xx
class all-traffic
shape average percent 60
random detect
just wont work.
R1(config)#policy-map TEST
R1(config-pmap)#class ICMP
R1(config-pmap-c)#shape average percent 50
R1(config-pmap-c)#random-detect
bandwidth on the class is required to issue this command
why is that? well, lets see.
when we enable shaping on a class, shaper implements is own
queue, which is WFQ by default.
if you want random-detect in that queue, you need nested
service policy. I'll show it a bit later.
Now, after a packet leaves shaper queue, it comes to FIFO queue
of CBWFQ. Without a bandwidth assigned, CBWFQ dont know when
to queue traffic in FIFO (in case of congestion) so you cannot enable
RED on that queue. You need to assign bandwidth.
Here is that nested example:
class-map match-all ICMP
match protocol icmp
!
!
policy-map RED
class class-default
fair-queue
random-detect
policy-map TEST
class ICMP
shape average percent 50
service-policy RED
notice that we enable fair queue in class-default, that is anther way
to let RED work.
HTH
Petr
2006/3/21, david robin <robindavi@gmail.com>:
>
> dear all,
> I have a question, if said all traffic on an interface will use 60 % and
> you
> must enable random detection if traffic pass this limit,
> I have 2 things in minds but i dont know who will be the correct answer.
>
> 1- by using the bandwidth command
>
> policy-map xx
> class all-traffic
> bandwidth percent 60
> random detect
> !
> where class all-traffic will match all the traffic
> but as far as I know the bandwidth command will not reserve the 60
> % untill
> there is a congetion on the physical interface itself, and random detect
> will not work there is a main interface congestion and the traffic will
> exceed 60 % Am i right about that ????
>
>
> 2- by using the shaping command and i think this will be the right answer:
>
> policy-map xx
> class all-traffic
> shape average percent 60
> random detect
> !
> I think this will be the solution?
> any comment or any other solutions about that?
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sat Apr 01 2006 - 10:07:39 GMT-3