Applications
Application of Traffic Policing
In Figure 4-7, 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 during congestion.
- Configure traffic classifiers to classify voice, video, and data packets.
- Configure traffic behaviors to limit rates of the voice, video, and data packets.
- Associate the traffic classifiers with the traffic behaviors in a traffic policy, and apply the traffic policy to the inbound direction of an interface.
Application of Traffic Shaping
On an enterprise network, traffic sent to the Internet is discarded if bandwidth is insufficient. To prevent traffic loss, configure traffic shaping on the outbound interface of the upstream device to buffer excess traffic. Different traffic shaping rates can be configured for different branches, as shown in Figure 4-8.
- Configure priority mapping for incoming traffic on the interfaces of the switch connected to the branches. Then packets from different branches are marked with different local priorities and enter different queues.
- Configure traffic policing on the outbound interface of the switch connected to the egress gateway to limit rates of traffic from different branches.
Application of Interface-based Rate Limiting
In Figure 4-9, a switch of an enterprise connects to two departments. The rate of traffic from each department cannot exceed a specified value. Rate limiting can be configured on the inbound interfaces of the switch to limit the rate of traffic from the two departments. Excess traffic is discarded.
- Configure rate limiting on the switch's interfaces connected to departments A and B to limit the traffic rate of each department within a specified range.