Configuring a Sub Traffic Policy
Context
The traffic classifier in a sub traffic policy differentiates services. That is, the packets that match the traffic classifier in the sub traffic policy enter the same flow queue.
When traffic policy nesting is configured on a main interface, you can configure traffic shaping, adaptive traffic shaping, congestion management, or congestion avoidance in the traffic behavior of the sub traffic policy.
If other QoS actions except traffic shaping, adaptive traffic shaping, congestion management, and congestion avoidance are configured in the traffic behavior of the sub traffic policy, you can configure only traffic shaping + sub traffic policy, traffic shaping + AF + sub traffic policy, or EF + sub traffic policy in the traffic behavior of the traffic policy.
If traffic shaping, congestion management, or congestion avoidance is configured in the traffic behavior of the sub traffic policy, only the default traffic classifier can be configured in the traffic classifier of the traffic policy and only traffic shaping can be configured in the traffic behavior associated with the default traffic classifier.
Procedure
- Configure a traffic classifier.
The device can classify traffic according to Layer 2 information, Layer 3 information, and ACLs in packets. Configure a traffic classifier by selecting appropriate traffic classification rules. For details, see Configuring a Sub Traffic Policy.
- Configure a traffic behavior.
Create a traffic behavior and configure a proper action in the traffic behavior. For details, see Configuring a Traffic Behavior.
To apply traffic policy nesting to the inbound direction of an interface or a sub-interface, configure one of the following sub traffic policies:- CAR
- Statistic
- CAR + statistic
- Associate the traffic classifier and the traffic behavior with the sub traffic policy.
Create a sub traffic policy, and associate the traffic classifier and traffic behavior with the sub traffic policy. For details, see Configuring a Traffic Policy.