Example: Service and User Rate-Limit Hierarchy Overlap Hierarchical Policy Configuration
In the service and user rate-limit hierarchy overlap configuration example:
- The service provider has to enforce a bandwidth limit on a video service over a VLAN and wants to limit the maximum bandwidth of each user's total traffic.
- There are two terminated sessions and their corresponding IP interfaces are I1 and I2.
- Each session contains a video flow classified by C1 and all other traffic is classified by an asterisk (*).
- All video flows over the VLAN are rate-limited to a common rate of 1Mbps.
- Each session is individually rate-limited by 2 Mbps.
- You can attach policies at interface I1-I2.
![]()
This example uses the following:
- USER_RATE, Committed Rate: 2 Mbps
- Peak Rate: 0 Mbps
- Committed Action: transmit final
- Conformed Action: drop
- Exceeded Action: drop
- AGG_VIDEO, Committed Rate: 1 Mbps
- Peak Rate: 0 Mbps
- Committed Action: transmit conditional
- Conformed Action: drop
- Exceeded Action: drop
![]()
- Create an aggregate rate limit that can be applied to each IP session. Create an external parent group to hold this rate limit.
host1(config)#rate-limit-profile USER_RATE two-rate hierarchicalhost1(config-rate-limit-profile)#committed-rate 2000000host1(config-rate-limit-profile)#committed-action transmit finalhost1(config-rate-limit-profile)#exithost1(config)#parent-group EPG2host1(config-parent-group)#rate-limit-profile USER_RATEhost1(config-parent-group)#exit- Create an aggregate rate limit that can be shared across multiple video streams. Create an external parent group to hold this rate limit.
host1(config)#rate-limit-profile AGG_VIDEO two-rate hierarchicalhost1(config-rate-limit-profile)#committed-rate 1000000host1(config-rate-limit-profile)#committed-action transmit conditionalhost1(config-rate-limit-profile)#exithost1(config)#policy-parameter B hierarchicalhost1(config-policy-parameter)#exithost1(config)#parent-group EPG1host1(config-parent-group)#next-parent EPG2 parameter Bhost1(config-parent-group)#rate-limit-profile AGG_VIDEOhost1(config-parent-group)#exit- Create a policy list to be attached to each IP session.
host1(config)#ip classifier-list VIDEO_CLACL udp any any eq 4000host1(config)#policy-parameter A hierarchicalhost1(config-policy-parameter)#exithost1(config)#ip policy-list IP_POLhost1(config-policy-list)#classifier-group VIDEO_CLACL external parent-group EPG1 parameter Ahost1(config-policy-list-classifier-group)#forwardhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#classifier-group * external parent-group EPG2 parameter Bhost1(config-policy-list-classifier-group)#forwardhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exit- Attach IP_POL to each IP session. Specify the same ID for parameter A, but a different ID for parameter B.
host1(config)#interface fastEthernet 3/0.1host1(config-interface)#vlan id 1host1(config-interface)#exithost1(config)#interface ip 3/0.1.1host1(config-interface)#ip policy-parameter hierarchical A vlanhost1(config-interface)#ip policy-parameter hierarchical B forwardinghost1(config-interface)#ip policy input IP_POL statistics enablehost1(config-interface)#exithost1(config)#interface ip 3/0.1.2host1(config-interface)#ip policy-parameter hierarchical A vlanhost1(config-interface)#ip policy-parameter hierarchical B forwardinghost1(config-interface)#ip policy input IP_POL statistics enablehost1(config-interface)#exit