Difference between Traffic Policing and Traffic Shaping


Traffic Policing

Traffic Policing is a technique that monitors traffic in any network by taking action against packets that do not adhere to a predetermined rate.

The quantity of tokens in the bucket is kept under control by the network's rules. One token generally represents one byte of traffic in traffic policing. It may be used to manage traffic, both incoming and outgoing. It also keeps control over the excess traffic.

Packet loss will be observed by the recipient of traffic that has been policed throughout periods when incoming traffic exceeded the contract. Suppose the source does not limit its transmitting rate (for example, through a feedback mechanism). In that case, this will continue, and the recipient may believe that connection problems or some other disturbance cause random packet loss.

Traffic Shaping

Traffic Shaping is a congestion control method that delays some packets to speed up with other traffic components. The delay and bandwidth of packets are increased. By delaying packets, it forces traffic to comply with a specified pace. Only outgoing traffic can be controlled using traffic shaping. It also does packet queuing.

On computer networks, traffic shaping is a bandwidth management method that involves delaying some or all datagrams in order to bring them into accordance with a specified traffic profile. By delaying some packets, traffic shaping can enhance or ensure performance, reduce latency, or increase useable bandwidth for those packets.

Difference between Traffic Policing and Traffic Shaping

The following table highlights the major differences between Traffic Policing and Traffic Shaping.

Traffic PolicingTraffic Shaping
The term "traffic policing" refers to a system that monitors traffic in a network.
Packet delays are caused by traffic shaping, which is a congestion control method.
Packets with rates higher than the rate of traffic policing are rejected.
It buffers packets at a rate that is higher than the traffic shaping rate.
Bytes per second are used to calculate the token values.
Bits per second are used to calculate the token values.
The presence of traffic policing does not cause delays.
Packet delay is caused by traffic shaping.
Outbound or incoming traffic can be controlled via traffic policing.
Only outward traffic can be controlled using traffic shaping
Traffic policing aids in the implementation of traffic remarking.
Traffic remarking is not supported by traffic shaping.

Updated on: 27-Aug-2021

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements