JUNOSe 7.2.x Policy Management Configuration Guide
84 ! Hierarchical Rate Limits
Figure 5: Shared Pool of Additional Bandwidth With Select Flows
This example uses transmit final so that those packets do not pass through the
common rate limit. Transmit final also indicates that there is no shared maximum.
If the packets are committed or conformed, they do not need to borrow extra
bandwidth or subtract tokens from it. The example uses exceeded action transmit
conditional so that packets above the individual rate-limit maximum are not
dropped but sent to the next rate limit in the hierarchy. Because this is transmit
conditional, ownership of the packet also transfers so the common rate limit can
drop these packets if it has no bandwidth left.
Example 3: Shared Pool
of Additional Bandwidth
host1(config)#ip rate limit-profile indiv two-rate
hierarchicalhost1(config-rate-limit-profile)#committed-action transmit final
host1(config-rate-limit-profile)#conformed-action transmit final
host1(config-rate-limit-profile)#exceeded-action transmit conditional
host1(config-rate-limit-profile)#peak-rate 10000000
host1(config-rate-limit-profile)#exit
host1(config)#rate-limit-profile extrabw 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)#color-aware
host1(config-rate-limit-profile)#peak-rate 20000000
host1(config-rate-limit-profile)#exit
Rate limits for A, B, C:
Each has peak rate: 1 Mbps
Rate limit never drops packets
Packets under this rate transmitted with
no further rate limiting
Packets over this rate sent to rate-limit extrabw
Configuration:
Peak rate: 1 Mbps
Committed action: final
Conformed action: final
Exceeded action: conditional
Rate-limit extrabw:
Each has peak rate: 2 Mbps
Receives overflow packets from A, B, C
Drops packets that exceed its 2 Mbps rate
Transmits packets within 2 Mbps rate
Configuration:
Peak rate: 2 Mbps
Committed action: transmit
Conformed action: transmit
Exceeded action: drop
g013283
C
Free bandwith
Used bandwith
B
Free bandwith
Used bandwith
A
Used bandwith
Free bandwith
Used bandwith