Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Difference between Traffic Policing and Traffic Shaping

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

1. Traffic Policing :
Traffic policing is basically a mechanism which monitors the traffic in any network by using an action to packets that conform to a specified rate. The policies in the network keeps a check on the number of tokens in the bucket. In traffic policing one token usually represents one byte of traffic. It can be used to control inbound and outbound traffic.It also maintains control over the excess traffic.

2. Traffic Shaping :
Traffic shaping is basically a congestion control mechanism that delays some packets to bring them at par with other traffic components. It increases the latency and the bandwidth of packets.It makes traffic conform to a certain rate by giving the packets some delay. Traffic shaping can be used to control outbound traffic only. It also does queuing of packets.

Difference between Traffic Policing and Traffic Shaping:

S.NO.Traffic PolicingTraffic Shaping
1.Traffic policing is a mechanism which monitors the traffic in any network.Traffic Shaping is a congestion control mechanism that brings delays in packets.
2.The packets with rates that are greater than the traffic policing rate are discarded.It buffers the packets with rates that are greater than the traffic shaping rate.
3.Traffic policing doesn’t cause delay.Traffic shaping causes delay of packets.
4.The token values are calculated in bytes per second.The token values are calculated in bits per second.
5.In traffic policing queuing of traffic is not performed.Queuing of traffic is not performed in traffic shaping.
6.Traffic policing supports traffic remarking.Traffic shaping doesn’t supports traffic remarking.
7.Traffic policing can be used to control outbound or inbound traffic.Traffic policing can used to control outbound traffic only.

My Personal Notes arrow_drop_up
Last Updated : 04 May, 2020
Like Article
Save Article
Similar Reads