RE: Rate limiting & MQC's police.... again

From: Private Ryan (private_ryan2k1@yahoo.com)
Date: Sun Sep 11 2005 - 12:43:49 GMT-3


Hi,

It is understandable that A2 = 1,5,7

Why 0,1 or 2 equal the mask 42 ?
Can you show how to calculate it ? Thanks !

--- Tim <ccie2be@nyc.rr.com> wrote:

> Jackie,
>
> This problem is looking for the access-list
> rate-limit command.
>
> See this link:
>
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fqos
> _r/qrfcmd1.htm#wp1017391
>
> See this example from the Doc-CD,
>
> The following example assigns packets with an IP
> Precedence of 0, 1, or 2 to
> the rate-limit access list 25:
>
> access-list rate-limit 25 mask 42
>
>
> With this command, in combo with the mask keyword,
> you can define which ip
> precedences are to be rate-limited.
>
> HTH, Tim
>
> -----Original Message-----
> From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On Behalf Of
> jackyliu@cyberport.com.hk
> Sent: Sunday, September 11, 2005 1:38 AM
> To: ccielab@groupstudy.com
> Subject: Rate limiting & MQC's police.... again
>
> Hi guys,
>
> A book's question request me to limit the incoming
> traffic
> with ip precedence marking 1, 5, 7 at 2mb or below
> from the
> LAN side and drop the exceeding packets. It also
> request me
> to create only a single access-list to finish the
> task.
>
> My approach:
> policy-map in-traffic
> police 2000000 5000 10000 conform-action transmit
> exceed-action drop violate-action drop
> !
> class-map match-all 1-5-7
> match ip precedence 1 5 7
> match access-group 10
> !
> access-list 10 permit 10.1.1.0 0.0.0.255
> !
> interface e0
> service-policy input in-traffic
>
>
>
> The book's approach
>
> interface e0
> ip address 10.1.1.254 255.255.255.0
> rate-limit 2000000 5000 10000 access-group 20
> confrom-action
> transmit exceed-action drop
> !
> access-list 20 rate-limit mask A2
>
> Is my approach also can achieve the task? Just want
> to know
> the different there =)
>
> Cheers!
> Jacky
>
>



This archive was generated by hypermail 2.1.4 : Sun Oct 02 2005 - 14:40:14 GMT-3