06-05-2020 07:26 PM
i am confused policing drops data that exceeds the set amount in bandwidth, and can resend data but shaping slows down data and can resend data ? I Was reading the Cisco cert guild can you apply shaping and policing on the queues?
06-05-2020 08:35 PM - edited 06-05-2020 08:42 PM
Hi,
Actually, you have point out the key different between Traffic Policing and Traffic Shaping, where the former one (Policing) will drop the packet when the traffic rate beyond the CIR.
Whereas, for the traffic shaping; router will try to store the packet in their buffer (like a fifo queue) when the traffic rate beyond the CIR. Router will then forward those buffered packets whenever the traffic rate is under the CIR.
When policing is adopted and under congestion, receiver side may receive #1st packet, but may not receive #2nd packet (dropped by Policing), so it may request TCP transmission, and the TCP window size may be reduced in half due to packet lost. Therefore, you would expect something like:
When shaping is adopted and under congestion, receiver side may receive #1st packet, #2nd packet may be delayed, but less likely be dropped, so there will less likely a TCP re-transmission (no reduce in TCP window size). Therefore, you would expect something like:
Clearly, traffic shaping will use more resource. You could configure the shaping buffer size as follow:
shape max-buffers [number-of-buffers]
You configure this command under a class in a policy map. However, the shape max-buffers command is not supported for HQF in Cisco IOS Release 12.4(20)T. Use the queue-limit command, which provides similar functionality.
Hope you have read the document from Cisco which talk about Traffic Policing and Traffic Sharping.
https://www.cisco.com/c/en/us/td/docs/ios/qos/command/reference/qos_book/qos_s1.html
06-06-2020 09:03 AM
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