01-24-2019 08:40 AM - edited 03-05-2019 11:12 AM
I'm studying traffic shaping and policing and want to make sure this policy I created will do what I intended.
I have a device on the network: 10.0.3.50
My intention is that when this device attempts to communicate with subnet 10.0.7.0/24, traffic will be limited to a speed of 1Mbit.
Outgoing interface is Gig0/1
Here is what I created:
ip access-list extended 188
permit ip host 10.0.3.50 10.0.7.0 0.0.0.255
class-map match-all CM-1
match access-group 111
policy-map Shaping
class CM-1
shape average 1000000
Interface g0/1
service-policy output Shaping
01-24-2019 08:45 AM
01-24-2019 08:52 AM
Hi this is the output
Class-map: CM-1 (match-all)
45178 packets, 42708664 bytes
5 minute offered rate 971000 bps, drop rate 676000 bps
Match: access-group 188
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 64/31990/0
(pkts output/bytes output) 13181/12613588
shape (average) cir 1000000, bc 4000, be 4000
target shape rate 1000000
01-24-2019 08:55 AM
01-24-2019 08:57 AM
I see the drops. With traffic shaping, doesn't it queue the traffic instead of dropping? I though policing will drop exceeding traffic but shaping will queue it to send.
01-24-2019 09:01 AM - edited 01-24-2019 09:03 AM
Hi,
Depending on your model, if the number of packet are exceeded from the egress queue, router will drop the incoming packet (That is called Tailed Drop), or some lower priority packet would be dropped from the egress queue (that is called Weighted Random Early Drop).
I am reviewing document to confirm the above statement, please kindly correct me if I am wrong..
01-24-2019 09:10 AM
01-24-2019 04:48 PM
"I see the drops. With traffic shaping, doesn't it queue the traffic instead of dropping? I though policing will drop exceeding traffic but shaping will queue it to send."
Correct, but as ngkin2010 described, a shaper's queue can still fill and then there will be drops. If fact, if you look at your stats again, you can see the 64 packet queues is filled.
(queue depth/total drops/no-buffer drops) 64/31990/0
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