Application Scenarios for Traffic Policing, Traffic Shaping, and Interface-based Rate Limiting
Traffic Policing
As shown in Figure 3-5, voice, video, and data services are transmitted on an enterprise network. When a large amount of traffic enters the network side, congestion may occur due to insufficient bandwidth. Different guaranteed bandwidth must be provided for the voice, video, and data services, listed in descending order of priority. In this situation, traffic policing can be configured to provide the highest guaranteed bandwidth for voice packets and lowest guaranteed bandwidth for data packets. This configuration ensures preferential transmission of voice packets when congestion occurs.
Traffic Shaping
On an enterprise network, the headquarters is connected to branches through leased lines on an ISP network. Branches connect to the Internet through the headquarters. If all branches connect to the Internet simultaneously, a large amount of web traffic sent from the headquarters to the Internet causes network congestion. As a result, some web traffic is discarded. As shown in Figure 3-6, to prevent web traffic loss, traffic shaping can be configured before traffic sent from branches enters the headquarters.
Interface-based Rate Limiting
On the enterprise network shown in Figure 3-7, when a large amount of traffic enters the network side, congestion may occur due to insufficient bandwidth. To prevent traffic loss, interface-based rate limiting can be configured on the inbound interface of the router to limit the rate of traffic sent to the network side. Excess traffic will be discarded.