Configuring QoS policy nesting
You can reference a QoS policy in a traffic behavior to re-classify the traffic class associated with the behavior and take action on the re-classified traffic as defined in the policy. The QoS policy referenced in the traffic behavior is called the "child policy." The QoS policy that references the behavior is called the "parent policy."
To nest QoS policies successfully, follow these guidelines:
The support for QoS policy nesting depends on your device model.
If class-based queuing (CBQ) is configured in the child policy, configure generic traffic shaping (GTS) in the parent policy and make sure that the GTS bandwidth configured in the parent policy is equal to or greater than the CBQ bandwidth configured in the child policy.
If GTS bandwidth in the parent policy is configured in percentage, the CBQ bandwidth in the child policy must be also configured in percentage. If it is configured as an absolute number, the CBQ bandwidth in the child policy can be configured in either percentage or as an absolute number.
GTS cannot be configured in the child policy.
To nest a child QoS policy in a parent QoS policy:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a class for the parent policy and enter class view. | traffic classifier classifier-name [ operator { and | or } ] | N/A |
3. Configure match criteria. | if-match [ not ] match-criteria | N/A |
4. Return to system view. | quit | N/A |
5. Create a behavior for the parent policy and enter behavior view. | traffic behavior behavior-name | N/A |
6. Nest the child QoS policy. | traffic-policy policy-name | The QoS policy specified for the policy-name argument must already exist. |
7. Return to system view. | quit | N/A |
8. Create the parent policy and enter parent policy view. | qos policy policy-name | N/A |
9. Associate the class with the behavior in the parent policy. | classifier classifier-name behavior behavior-name | N/A |