Related Documentation
- M, MX Series
- Configuring Dynamic Hierarchical Scheduling and Queuing in a Dynamic Profile for Subscriber Access
- MX Series
- For hardware requirements and configuration guidelines, see Guidelines for Configuring Dynamic CoS for Subscriber Access
- Verifying the Scheduling and Shaping Configuration for Subscriber Access
- Changing CoS Services Overview
Configuring Schedulers in a Dynamic Profile for Subscriber Access
You use schedulers to define the parameters of output queues. These properties include the amount of interface bandwidth assigned to the queue, the size of the memory buffer allocated for storing packets, the priority of the queue, and the tail drop profiles associated with the queue.
You can configure up to four schedulers in a dynamic profile.
Within a dynamic profile, you can choose to define schedulers with static values, dynamic variables, or a combination of static values and dynamic variables. The dynamic variables enable RADIUS to provide the value for the scheduler parameter when the subscriber logs in.
Configuring Static Schedulers in a Dynamic Profile
This topic describes how to configure schedulers with static values in a dynamic profile for subscriber access.
To configure static scheduling and queuing in a dynamic profile:
- Configure the scheduler and queuing parameters.
- Specify the scheduler for which you want to configure
parameters.[edit dynamic-profiles profile-name class-of-service]user@host# edit schedulers scheduler-name
- Configure the buffer size.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set buffer-size remainder
- Configure the drop-profile map and drop profile.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set drop-profile-map loss-priority any protocol any drop-profile d3
- Configure the priority.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set priority low
- Configure the transmit rate. [edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set transmit-rate percent 40
- Configure the excess rate.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-rate percent 90
- (Optional) Configure the priority value for the excess-rate.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-priority high
- Specify the scheduler for which you want to configure
parameters.
- Associate the scheduler with a scheduler map.
- Configure the scheduler map name.[edit dynamic-profiles profile-name class-of-service]user@host# set scheduler-maps data-smap
- Configure the forwarding class.[edit dynamic-profiles profile-name class-of-service scheduler-maps map-name]user@host# set forwarding-class be
- Configure the scheduler.[edit dynamic-profiles profile-name class-of-service scheduler-maps map-name forwarding-class forwarding-class-name]user@host# set scheduler be_sch
- Configure the scheduler map name.
Configuring Dynamic Schedulers with Variables in a Dynamic Profile
You can configure variables for the dynamic scheduler parameters. These values are dynamically obtained by RADIUS when a subscriber logs in or changes a service using a RADIUS change of authorization (CoA) message.
To configure dynamic scheduling and queuing in a dynamic profile:
- Configure the scheduler and queuing parameters.
- Specify the scheduler name using a variable.[edit dynamic-profiles profile-name class-of-service]user@host# edit schedulers $junos-cos-scheduler
- Configure the variable for the buffer size.[edit dynamic-profiles profile-name class-of-service schedulers]user@host# set buffer-size (percent $junos-cos-scheduler-bs | temporal $junos-cos-scheduler-bs)
- Configure the variables for the drop-profile maps and
the drop profile.[edit dynamic-profiles profile-name class-of-service schedulers]user@host# set drop-profile-map loss-priority low protocol any drop-profile $junos-cos-scheduler-lowuser@host# set drop-profile-map loss-priority medium-low protocol any drop-profile $junos-cos-scheduler-medium-lowuser@host# set drop-profile-map loss-priority medium-high protocol any drop-profile $junos-cos-scheduler-medium-highuser@host# set drop-profile-map loss-priority high protocol any drop-profile $junos-cos-scheduler-highuser@host# set drop-profile-map loss-priority any protocol any drop-profile $junos-cos-scheduler-any
- Configure the variable for the priority.[edit dynamic-profiles profile-name class-of-service schedulers]user@host# set priority $junos-cos-scheduler-pri
- Configure the variable for the transmit rate. [edit dynamic-profiles profile-name class-of-service schedulers]user@host# set transmit-rate $junos-cos-scheduler-tx
- Configure the variable for the excess rate.[edit dynamic-profiles profile-name class-of-service schedulers]user@host# set excess-rate percent $junos-cos-scheduler-excess-rate
- Configure the variable for the priority of the excess-rate.[edit dynamic-profiles profile-name class-of-service schedulers]user@host# set excess-priority $junos-cos-scheduler-excess-priority
- Specify the scheduler name using a variable.
- Associate the scheduler with a scheduler map.
- Configure the scheduler map name.[edit dynamic-profiles profile-name class-of-service]user@host# edit scheduler-maps scheduler-map-name
- Configure the forwarding class.[edit dynamic-profiles profile-name class-of-service scheduler-maps scheduler-map-name]user@host# set forwarding-class be
- Configure the scheduler.[edit dynamic-profiles profile-name class-of-service scheduler-maps scheduler-map-name]user@host# set scheduler $junos-cos-scheduler
- Configure the scheduler map name.
Configuring a Combination of Static and Dynamic Scheduler Parameters in a Scheduler Definition
Within a dynamic profile, you can choose to configure one dynamic scheduler definition, or combine static and dynamic scheduler parameters in many static scheduler definitions.
Combining static and dynamic scheduler parameters enables you to provide subscribers with unique rate configurations that the RADIUS definitions for predefined variables do not allow.
To configure a scheduler definition that contains static and dynamic scheduling and queuing parameters:
- Configure the scheduler definition.
- Specify the scheduler name.
Note: To configure a static scheduler that contains both static and dynamic parameters, you must specify a unique scheduler name, not the $junos-cos-scheduler variable.
[edit dynamic-profiles profile-name class-of-service]user@host# edit schedulers scheduler-name - Configure the buffer size.
Do either of the following:
- Configure a static value.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set buffer-size (percent percentage | remainder | temporal (microseconds)
- Configure a variable.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set buffer-size (percent $junos-cos-scheduler-bs | temporal $junos-cos-scheduler-bs)
- Configure a static value.
- Configure the drop-profile maps, the drop profile, and
the priority.
Do either of the following:
- Configure static values.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set drop-profile-map loss-priority any protocol any drop-profile d3[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set priority low
- Configure variables.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set drop-profile-map loss-priority low protocol any drop-profile $junos-cos-scheduler-lowuser@host# set drop-profile-map loss-priority medium-low protocol any drop-profile $junos-cos-scheduler-medium-lowuser@host# set drop-profile-map loss-priority medium-high protocol any drop-profile $junos-cos-scheduler-medium-highuser@host# set drop-profile-map loss-priority high protocol any drop-profile $junos-cos-scheduler-highuser@host# set drop-profile-map loss-priority any protocol any drop-profile $junos-cos-scheduler-any
- Configure static values.
- Configure the priority.
Do either of the following:
- Configure a static value.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-priority high
- Configure a variable.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-priority $junos-cos-scheduler-excess-priority
- Configure a static value.
- Configure the transmit rate.
Do either of the following:
- Configure a static value.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set transmit-rate
- Configure a variable.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set transmit-rate $junos-cos-scheduler-tx
- Configure a static value.
- Configure the excess rate.
Do either of the following:
- Configure a static value.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-rate percent 250
- Configure a variable.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-rate percent $junos-cos-scheduler-excess-rate
- Configure a static value.
- Configure the priority for the excess-rate.
Do either of the following:
- Configure a static value.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-priority high
- Configure a variable.[edit dynamic-profiles profile-name class-of-service schedulers scheduler-name]user@host# set excess-priority percent $junos-cos-scheduler-excess-priority
- Configure a static value.
- Specify the scheduler name.
- Associate the scheduler with a scheduler map.
- Configure the scheduler map name.[edit dynamic-profiles profile-name class-of-service]user@host# edit scheduler-maps scheduler-map-name
- Configure the forwarding class.[edit dynamic-profiles profile-name class-of-service scheduler-maps scheduler-map-name]user@host# set forwarding-class be
- Configure the scheduler.[edit dynamic-profiles profile-name class-of-service scheduler-maps scheduler-map-name]user@host# set scheduler $junos-cos-scheduler
- Configure the scheduler map name.
Related Documentation
- M, MX Series
- Configuring Dynamic Hierarchical Scheduling and Queuing in a Dynamic Profile for Subscriber Access
- MX Series
- For hardware requirements and configuration guidelines, see Guidelines for Configuring Dynamic CoS for Subscriber Access
- Verifying the Scheduling and Shaping Configuration for Subscriber Access
- Changing CoS Services Overview
Published: 2013-02-11
Related Documentation
- M, MX Series
- Configuring Dynamic Hierarchical Scheduling and Queuing in a Dynamic Profile for Subscriber Access
- MX Series
- For hardware requirements and configuration guidelines, see Guidelines for Configuring Dynamic CoS for Subscriber Access
- Verifying the Scheduling and Shaping Configuration for Subscriber Access
- Changing CoS Services Overview