Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

policing vs. shaping

Hi,

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

Hugh

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: policing vs. shaping

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

4 REPLIES
Cisco Employee

Re: policing vs. shaping

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

New Member

Re: policing vs. shaping

Jerry, thanks!

Hugh

Super Bronze

Re: policing vs. shaping

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.)

New Member

Re: policing vs. shaping

Joe,

Thanks for the very good points.

Hugh

337
Views
0
Helpful
4
Replies