Configuring Traffic Policing Based on Complex Traffic Classification
This section describes how to configure traffic policing based on the complex traffic classification (CTC), which is also called the CTC-based traffic policing.
Usage Scenario
There are a large number of users in the network and they send data constantly. Continuous burst data from numerous users can make the network congested. As a result, the running and service quality of the network are affected to a great extent.
To ensure the availability of bandwidth resources regardless of whether the network is idle or congested, traffic control needs to be implemented on one or several types of packet. You can combine complex traffic classification and traffic control to configure CTC-based traffic policing policies. Then, apply the policies to the inbound interface to restrict the traffic of the specific packets within a reasonable range. In this manner, limited network resources are better utilized.
Complex traffic classification refers to classifying packets according to the source IP address, source port number, protocol number, destination IP address, and destination port number. It is usually configured at the edge of the network.
Pre-configuration Tasks
Before configuring CTC-based traffic policing, you need to complete the following tasks:
Configuring the physical parameters of interfaces
Configuring the link layer attributes of interfaces to ensure their normal operation
Configuring IP addresses for interfaces
Enabling the routing protocol for communication between devices
- Defining Traffic Classifiers
You need to configure traffic classification before configuring traffic class-based QoS. The traffic classification can be configured based on ACL, IP precedence, protocol type, MAC address, protocol address, and so on. - Defining a Traffic Behavior and Configuring Traffic Policing
Actions
Configure traffic policing actions for difference traffic classifier. - Defining a Traffic Policy
After traffic classifiers and traffic behaviors are defined, traffic classifiers and traffic behaviors need to be associated to form traffic policies. - Applying a Traffic Policy
A class-based policy does not take effect unless it is applied to an interface. - Verifying the Configuration of Traffic Policing Based on MF
Classification
After MF classification—based traffic policing is successfully configured, you can view the traffic classifiers, traffic behaviors, binding between traffic classifiers and behaviors in the specified traffic policy, configured traffic policies and their application, and configured queues and their application.