Hierarchical Rate Limits ! 81
Chapter 3: Creating Rate-Limit Profiles
3. traffic class
4. user packet class
5. next hop
6. rate limit
7. color status
8. color action
9. parent group
10. mark
The mark action is the last action that occurs, after parent-group, so that the
color-mark profile can mark the packet with the final color from the hierarchy.
Rate-limiting Hierarchical Policy Examples
This section provides examples of how to use hierarchical policies.
Multiple Flows Sharing Preferred Bandwidth
Figure 3 shows an interface with an attached policy that has a Video classifier that
singles out a substream of the packets flowing on that interface. The Video classifier
can be allocated 6 Mbps out of the 10 Mbps interface rate. All other packets on the
interface are Internet. The common rate limit cannot drop Video packets, but must
limit the total flow (Video and Internet) to under 10 Mbps. Internet traffic can use
the Video bandwidth when there are no active Video calls, while avoiding hard
partitioning of interface bandwidth.
Figure 3: Multiple Flows Sharing Preferred Bandwidth
Example 1: Multiple
Packet Flows on One
Interface Sharing
Preferred Bandwidth
host1(config)#rate-limit-profile video two-rate hierarchical
host1(config-rate-limit-profile)#committed-action transmit unconditional
host1(config-rate-limit-profile)#conformed-action transmit unconditional
host1(config-rate-limit-profile)#exceeded-action drop
host1(config-rate-limit-profile)#peak-rate 60000000
host1(config-rate-limit-profile)#exit
host1(config)#rate-limit-profile common two-rate hierarchical
host1(config-rate-limit-profile)#committed-action transmit conditional
host1(config-rate-limit-profile)#conformed-action transmit conditional
host1(config-rate-limit-profile)#exceeded-action drop
host1(config-rate-limit-profile)#peak-rate 100000000
host1(config-rate-limit-profile)#exit
g013281
Video
Internet
6 Mbps
10 Mbps common rate limit