Bandwidth Management ! 105
Chapter 3: Creating Rate-Limit Profiles
Example The following example rate limits traffic on an interface from source IP address
1.1.1.1 so that traffic at a rate up to 1 Mbps is colored green and transmitted, traffic
at a rate from 1 Mbps to 2 Mbps is colored yellow and transmitted, and traffic at a
rate above 2 Mbps is dropped.
host1(config)#ip rate-limit-profile 1MbRLP
host1(config-rate-limit-profile)#committed-rate 1000000
host1(config-rate-limit-profile)#peak-rate 2000000
host1(config-rate-limit-profile)#committed-action transmit
host1(config-rate-limit-profile)#conformed-action transmit
host1(config-rate-limit-profile)#exceeded-action drop
host1(config-rate-limit-profile)#exit
host1(config)#ip classifier-list claclA ip host 1.1.1.1 any
host1(config)#ip policy-list testPolicy
host1(config-policy-list)#classifier-group claclA
host1(config-policy-list-classifier-group)#rate-limit-profile 1MbRLP
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#exit
host1(config)#interface atm 0/0.0
host1(config-subif)#ip policy input testPolicy statistics enabled
Rate Limiting Individual or Aggregate Packet Flows
You can construct policies to provide rate limiting for individual packet flows or for
the aggregate of multiple packet flows. For example, if you have traffic from
multiple sources, you can either rate limit each traffic flow individually, or you can
rate limit the aggregate flow for the traffic from all sources.
! To rate limit individual packet flows, use a separate classifier list to classify each
flow. See Example 1: Individual Packet Flows.
! To rate limit the aggregate of multiple traffic flows, use a single classifier list for
the multiple entries. See Example 2: Multiple Traffic Flows.
Example 1: Individual
Packet Flows
In the following example, interface ATM 3/1.1 classifies on three traffic flows from
different sources. Each traffic flow is rate limited to 1MB (which is defined by the
rate-limit profile rl1Meg).
host1(config)#ip classifier-list clFlow1 ip host 10.1.1.1 any
host1(config)#ip classifier-list clFlow2 ip host 10.1.1.2 any
host1(config)#ip classifier-list clFlow3 ip host 10.1.1.3 any
host1(config)#ip policy-list plRateLimit
host1(config-policy-list)#classifier-group clFlow1
host1(config-policy-list-classifier-group)#rate-limit-profile rl1Meg
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#classifier-group clFlow2
host1(config-policy-list-classifier-group)#rate-limit-profile rl1Meg
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#classifier-group clFlow3
host1(config-policy-list-classifier-group)#rate-limit-profile rl1Meg
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#exit
host1(config)#interface atm 3/1.1
host1(config-subif)#ip policy input plRateLimit statistics enabled