Configuring Hierarchical Rate-Limit Actions (SRC CLI)

You configure parent groups to create a hierarchy of rate limits.

The type of action that you can create depends on the type of policy rule. See Policy Information Model.

Use the following configuration statements to configure rate-limit actions:

policies group name list name parent-group name {
description description;
}
policies group name list name parent-group name parent-group name {
description description;
}
policies group name list name parent-group name rate-limit {
type type;
committed-rate committed-rate;
committed-burst committed-burst;
peak-rate peak-rate;
peak-burst peak-burst;
excess-burst excess-burst;
color-aware;
}

To configure a parent group:

  1. From configuration mode, create a parent group in a policy list; for example, PGShared.
    [edit policies group parentGroupDefault list twoRate]
    user@host# edit parent-group PGShared
  2. Configure a rate limit for the parent group.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared]
    user@host# edit rate-limit rate-limit
  3. Specify that the rate-limit is either one rate or two rate. The rate-limit type determines the options that you can configure for a rate-limit action.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]
    user@host# set type type
  4. (Optional) Configure the target rate for the traffic that the policy covers.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]
    user@host# set committed-rate committed-rate
  5. (Optional) Configure the amount of bandwidth allocated to burst traffic in bytes.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]
    user@host# set committed-burst committed-burst
  6. (Optional) For two-rate rate-limit profiles, specify the amount of bandwidth allocated to excess traffic flow over the committed rate.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]
    user@host# set peak-rate peak-rate
  7. (Optional) For two-rate rate-limit profiles, specify the amount of bandwidth allocated to burst traffic in excess of the peak rate.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]
    user@host# set peak-burst peak-burst
  8. (Optional) For one-rate rate-limit profiles, specify the amount of bandwidth allocated to accommodate burst traffic.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared]
    user@host# set excess-burst excess-burst
  9. (Optional) Set the rate limit to color aware for the rate-limit to process color values set in the TOS byte of the packet header.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared]
    user@host# set color-aware
  10. (Optional) Configure the rate-limit actions for traffic flows that:
    • Do not exceed the committed rate and burst size
    • Exceed the committed rate but remains below the peak burst size
    • Exceed the committed rate but remains below the peak burst size

    See Configuring Types of Actions for Rate-Limit Actions (SRC CLI).

  11. Enter a description for the parent group.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared]
    user@host# set description description
  12. (Optional) Return to the rate-limit action configuration, and verify the configuration.
    [edit policies group parentGroupDefault list twoRate parent-group PGShared]
    user@host# show 
    
  13. (Optional) Create another parent group within this parent group. For example:
    [edit policies group parentgroupDefault list twoRate parent-group PGShared]
    user@host# parent-group parent-group-name
    user@host# set parent-group PgInternet
  14. (Optional) Follow the instructions in this procedure for configuring the parent group.

Published: 2009-09-22


Copyright © 2009, Juniper Networks, Inc. All rights reservedTrademark Notice.