cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
677
Views
0
Helpful
4
Replies

policing vs. shaping

hugh2_nguyen
Level 1
Level 1

Hi,

Would you please educate me on how policing is different than shaping? Thanks.

Hugh

1 Accepted Solution

Accepted Solutions

Jerry Ye
Cisco Employee
Cisco Employee

For policing, when the traffic rate reaches the configured maximum rate, excess traffic is dropped.

Shaping works a little differet, it retains excess packets in a queue and then schedules the excess for later transmission over increments of time.

Please find the following link for more info.

http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a00800a3a25.shtml

HTH,

jerry

View solution in original post

4 Replies 4

Jerry Ye
Cisco Employee
Cisco Employee

For policing, when the traffic rate reaches the configured maximum rate, excess traffic is dropped.

Shaping works a little differet, it retains excess packets in a queue and then schedules the excess for later transmission over increments of time.

Please find the following link for more info.

http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a00800a3a25.shtml

HTH,

jerry

Jerry, thanks!

Hugh

Just to discuss a few points, I don't believe are clear ([edit] or sufficient emphasized) in the TechNote.

When a shaper queues the "delayed" packets (unlike dropping them as a policer would), these queues can overflow and still result in dropped packets. ([edit] This is documented in the TechNote, along with the possible packet delay caused by such queuing. Both easy to overlook.)

It's also not well documented what kind of queue or queue the shaper uses. From experience, many router shapers seem to use WFQ for their delayed packets. ([edit] If WFQ or FQ is used, original packet sequence might be changed [not per flow, though] - policer doesn't reorder any packets.)

Both policers and shapers measure bandwidth utilization across a certain time period and enforce an average utilization, not an instantaneous bandwidth utilization. For instance if you police or shape a 100 Mbps link for 10 Mbps, neither behaves exactly like an actual 10 Mbps link would. ([edit] Tuning of the Bc and Be adjusts behavior.)

Joe,

Thanks for the very good points.

Hugh

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card