[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring Rate-Limit Actions
Use this action to define the quality of
service. You can configure rate-limit actions for JUNOSe policy rules.
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 rule name rate-limit name {
- type type ;
- committed-rate committed-rate ;
- committed-burst committed-burst ;
- peak-rate peak-rate ;
- peak-burst peak-burst ;
- excess-burst excess-burst ;
- description description ;
- }
- policies group name list name rule name rate-limit name committed-action mark mark-info {
- value value ;
- mask mask ;
- }
- policies group name list name rule name rate-limit name committed-action
parameter {
- action action ;
- }
- policies group name list name rule name rate-limit name conformed-action
mark mark-info {
- value value ;
- mask mask ;
- }
- policies group name list name rule name rate-limit name conformed-action
parameter {
- action action ;
- }
- policies group name list name rule name rate-limit name exceed-action mark mark-info {
- value value ;
- mask mask ;
- }
- policies group name list name rule name rate-limit name exceed-action
parameter {
- action action ;
- }
To configure a rate-limit action:
- From configuration mode, enter the rate-limit action configuration.
For example, in this procedure, rla is the name of the rate-limit
action.
- user@host# edit policies group junose list
rate-limiter rule pr rate-limit rla
- (Optional) Specify that the rate-limit profile 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 junose list rate-limiter rule pr rate-limit
rla]
- user@host# set type type
- (Optional) Configure the target rate for the traffic that
the policy covers.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set committed-rate committed-rate
- (Optional) Configure the amount of bandwidth allocated
to burst traffic in bytes.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set committed-burst committed-burst
- (Optional) For two-rate rate-limit profiles, specify the
amount of bandwidth allocated to excess traffic flow over the committed
rate.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set peak-rate peak-rate
- (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 junose list rate-limiter rule pr rate-limit
rla]
- user@host# set peak-burst peak-burst
- (Optional) For one-rate rate-limit profiles, specify the
amount of bandwidth allocated to accommodate burst traffic.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set excess-burst excess-burst
- (Optional) Enter a description for the rate-limit action.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set description description
- (Optional) Configure the rate-limit action for traffic
flows that do not exceed the committed rate to one of the following:
- Filter.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set committed-action filter
- Forward.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set committed-action forward
- Mark. If you select mark, enter the mark values.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# edit committed-action mark mark-info
- [edit policies group junose list rate-limiter rule pr rate-limit
rla committed-action mark mark-info]
- user@host# set value value
- [edit policies group junose list rate-limiter rule pr rate-limit
rla committed-action mark mark-info]
- user@host# set mask mask
- Parameter. Before you assign a parameter, you must create
a parameter of type packetOperation and commit the parameter configuration.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla committed-action mark mark-info]
- user@host# set committed-action parameter
action action
- (Optional) Configure the rate-limit action for traffic
flows that exceed the committed rate but remain below the peak rate
to one of the following:
- Filter.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set conformed-action filter
- Forward.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set conformed-action forward
- Mark. If you select mark, enter the mark values.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# edit conformed-action mark mark-info
- [edit policies group junose list rate-limiter rule pr rate-limit
rla conformed-action mark mark-info]
- user@host# set value value
- [edit policies group junose list rate-limiter rule pr rate-limit
rla conformed-action mark mark-info]
- user@host# set mask mask
- Parameter. Before you assign a parameter, you must create
a parameter of type packetOperation and commit the parameter configuration.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla conformed-action mark mark-info]
- user@host# set conformed-action parameter
action action
- (Optional) Configure the rate-limit action for traffic
flows that exceed the peak rate to one of the following:
- Filter.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set exceed-action filter
- Forward.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# set exceed-action forward
- Mark. If you select mark, enter the mark values.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla]
- user@host# edit exceed-action mark mark-info
- [edit policies group junose list rate-limiter rule pr rate-limit
rla exceed-action mark mark-info]
- user@host# set value value
- [edit policies group junose list rate-limiter rule pr rate-limit
rla exceed-action mark mark-info]
- user@host# set mask mask
- Parameter. Before you assign a parameter, you must create
a parameter of type packetOperation and commit the parameter configuration.
- [edit policies group junose list rate-limiter rule pr rate-limit
rla exceed-action mark mark-info]
- user@host# set exceed-action parameter action action
- (Optional) Return to the rate-limit action configuration,
and verify the configuration.
[edit policies group junose list rate-limiter rule pr rate-limit rla]
user@host# show
committed-action {
forward {
}
}
conformed-action {
forward {
}
}
exceed-action {
filter {
}
}
type 1;
committed-rate 1000000;
committed-burst 125000;
excess-burst 312500;
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]