Configure the parent policer under parent class-default
Configure the parent policer under the parent class-default class.
-
Use only the parent class-default class in the parent policy map.
-
Attach the child policy map under the parent class-default class by using service-policy .
-
Configure the parent policer under the same parent class-default class.
This guideline applies to two-level hierarchical ingress policing.
For two-level hierarchical ingress policing, parent policer support is delivered for the default parent class.
The parent policer appears as Level1 Class = class-default in show qos interface interface input output.
Apply the parent policy in the input direction
Apply the parent policy map to the interface in the input direction.
This guideline applies when you attach a parent policy map that contains a parent policer and a child service policy to a supported interface.
Two-level hierarchical ingress policing is an ingress QoS feature.
The parent and child policers are programmed for the input policy on the interface.
Attach the parent policy by using service-policy input parent-policy-name .
Use supported platforms and interfaces
Configure two-level hierarchical ingress policing only on supported Cisco 8000 Series routers and supported interface types.
-
Use this feature on A100, K100, and P100- based Cisco 8000 Series routers.
-
Use this feature on supported physical main interfaces and subinterfaces, and on supported bundle main interfaces and bundle subinterfaces.
This guideline applies when you attach a parent policy map with a parent policer to an interface.
If you apply a policy with a parent policer to an unsupported fixed system or line card, the commit fails and the router displays this error in show configuration failed output: !!% 'DPA_QOSEA' detected the 'warning' condition 'Hierarchical policers are not supported.'
Use a supported Cisco 8000 Series router and supported interface type, or remove the parent policer from the policy.
Configure child-conform-aware policies deliberately
Configure the parent committed information rate (CIR) greater than or equal to the sum of the child CIRs when you want child-conform-aware behavior.
-
Configure child policers for the child classes that must participate in child-conform-aware behavior.
-
Configure exceed-action transmit on the parent policer when the design requires the parent policer to transmit child exceed traffic.
This guideline applies to policies designed to prioritize child-conforming traffic over child exceed or violate traffic.
A child-conform-aware parent policer honors the child policer classification when deciding whether to admit traffic.
If the parent CIR is lower than the sum of the child CIRs, the configuration is allowed, but the parent policer does not provide child-conform-aware behavior. Parent policing behavior is also not child-conform-aware if exceed-action transmit is not configured on the parent policer. Child-conform-aware behavior is not possible when one or more child classes are unpoliced.
Adjust the parent CIR, child CIRs, child policer coverage, or parent policer actions so that the configured policy matches the intended child-conform-aware behavior.
Align child transmit actions with parent transmit actions
Do not configure a child policer exceed-action transmit action when the parent policer has the corresponding drop action.
This guideline applies when a child policer is configured to transmit exceed traffic under a parent policer.
A parent drop action overrides the corresponding child transmit action.
When the child policer action has no effect because the parent policer overwrites it, the router displays a system message such as: %QOS-DPA_QOSEA-5-CHILD_POLICER_ACTION_HAS_NO_EFFECT : In policy-map parent, the class-default child class policer's configured exceed action has no effect, the action is unconditionally overwritten by the parent policer drop action
If the design requires child exceed traffic to be transmitted, configure the corresponding parent policer action to transmit. Otherwise, remove the child transmit action if you do not want to configure an action that the parent policer overrides.
If the child policer is configured with exceed-action transmit and the parent policer is configured with exceed-action drop, child transmit and drop stats may be inaccurate. The child policer counts the exceeding packets as transmitted, even though those packets are later dropped by the parent policer.
Plan discard-class marking at the parent policer
Do not rely on child policer set discard-class marking when a parent policer is configured.
This guideline applies when a child policer action sets discard-class in a two-level hierarchical ingress policing policy.
The parent policer sets the final discard-class value and unconditionally overwrites the child policer discard-class marking.
When the child policer discard-class action has no effect because the parent policer overwrites it, the router displays a system message such as: %QOS-DPA_QOSEA-5-CHILD_POLICER_ACTION_HAS_NO_EFFECT : In policy-map parent, the class-default child class policer's 'set discard-class' exceed action has no effect, the action is unconditionally overwritten by the parent policer
Replace the child set discard-class action with the transmit action to avoid the QOS-DPA_QOSEA-5-CHILD_POLICER_ACTION_HAS_NO_EFFECT system message.
Interpret child policer statistics carefully
Interpret child policer statistics carefully because parent policing can affect child policer counters in a two-level hierarchical ingress policing policy.
The configured policer actions and final traffic throughput are as expected. However, child policer counters can be inaccurate in these scenarios:
-
A child policer is configured with exceed-action transmit, and the parent policer is configured with exceed-action drop. In this scenario, the child policer transmit and drop counters may be inaccurate. The child policer counts the exceeding packets as transmitted, even though the parent policer later drops those packets.
-
The parent policer is congested, and one of these rate conditions is true: the parent committed information rate (CIR) is lower than the sum of the child policer CIRs, or the parent peak information rate (PIR) is lower than the sum of the child policer PIRs. In this scenario, the child policer conform, exceed, and transmit counters may be inaccurate.
Parent policer congestion occurs when the sum of the child conforming traffic rates is greater than the configured parent CIR, or when the sum of the child exceeding traffic rates is greater than the configured parent PIR.
In the parent policer congestion scenario, child policer conform, exceed, and transmit counters may be higher than expected for the child policer configuration. These counters may be close to the child matched counters, depending on traffic patterns. The child matched counters remain accurate.
Use show policy-map interface <interface><input> to review parent policer statistics and child policer statistics together when you verify policy behavior.