02-26-2004 03:28 AM - edited 03-02-2019 01:52 PM
I can not tell the difference between them except their configuration mode.
I mean in most circumstances, this two method can fit for with no difference. Am I right?
02-26-2004 11:57 AM
Policy used to specify different classes and how the traffic will be treated in the different class. Rate-limit is just for a specific interface, no classification of the traffic.
Example:
router(conifig)#class-map CLASSNAME
router(config-cmap)#match any
router(config-cmap)# exit
router(config)#policy-map POLICYNAME
router(config-pmap)#class CLASSNAME
router(config-pmap-c)#bandwidth
if you'd like a more smooth dropping of packets you can configure WRED on this policy-map
router(config-pmap-c)#random-detect
Then apply the service policy on the interface:
Router(config-if)#service-policy [in | out] POLICYNAME
~~~~~~~~~~~~~~~~~~~~~~
Rate-limit in CAR:
You can take a look at that technology here:
http://www.cisco.com/cpropart/sync-src/ccstcp/cc/pd/iosw/tech/carat_wp.htm
The CAR command-line syntax follows:
Rate-limit {input | output}
[ access-group [rate-limit]
conform-action {drop|transmit|continue|set-prec-transmit
set-prec-continue
exceed-action {drop|transmit|continue|set-prec-transmit
set-prec-continue
Where normal burst = r * 1byte/8bits * 1.5 seconds, where r is configured rate extended burst = 2 *
normal_burst
For example... to limit the outbound traffic on your ethernet0 interface to 4.5Mb. I'd go to that
interface configuration mode and type:
Router(config-if)#rate-limit output 4500000 24000 32000 conform-action transmit exceed-action drop
Hope these helps.
/beng
02-26-2004 10:05 PM
I think sometimes these two methods can be exchanged, ok?
02-27-2004 03:26 AM
You are correct. They are different methods for doing the same thing. Policing traffic. They can be used interchangeably. Using MQC and policy/class maps allows the most options and greater flexability and is what I prefer.
03-01-2004 06:52 AM
thank you very much
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