Configuring Traffic Scheduling and Shaping for Subscriber Access
You use traffic-control profiles to configure traffic shaping and scheduling properties. When you reference a traffic-control profile in a dynamic profile, you can provide hierarchical shaping and scheduling for a subscriber interface.
You can choose to configure static values or dynamic variables for the shaping parameters. The values for the dynamic variables are obtained from RADIUS when a subscriber logs in or when a subscriber changes services.
You cannot configure a traffic-control profile that contains a combination of static and dynamic parameters.
This topic includes the following tasks:
Configuring Static Traffic Shaping and Scheduling Parameters in a Dynamic Profile
To configure static traffic shaping and scheduling parameters in a traffic-control profile:
- Create the traffic-control profile and assign
a name. [edit dynamic-profiles business-profile class-of-service]user@host# edit traffic-control-profiles profile-name
- Do one of the following:
- Reference a static scheduler map in the dynamic profile.
The scheduler map is statically configured in the [edit class-of-service] hierarchy.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set scheduler-map map-name
- Reference a dynamic scheduler map in the dynamic profile.
The scheduler map is dynamically configured in the [edit dynamic-profiles profile-name class-of-service scheduler-maps] hierarchy.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set scheduler-map (map-name)
- Reference a static scheduler map in the dynamic profile.
The scheduler map is statically configured in the [edit class-of-service] hierarchy.
- Configure the shaping rate to be used in
the dynamic profile.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set shaping-rate (percent percentage | rate)
- Configure the guaranteed rate to be used
in the dynamic profile.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set guaranteed-rate (percent percentage | rate)
- Configure the delay-buffer rate.
If you do not include this statement, the delay-buffer rate is based on the guaranteed rate if one is configured, or the shaping rate if no guaranteed rate is configured.
[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set delay-buffer-rate (percent percentage | rate)
Configuring Dynamic Traffic Shaping and Scheduling Parameters in a Dynamic Profile
You can configure variables for the traffic shaping and scheduling parameters. The values for the parameters are dynamically obtained by RADIUS when a subscriber logs in or changes a service.
To configure dynamic traffic-control profiles in a dynamic profile:
- Create the traffic-control profile.[edit dynamic-profiles business-profile class-of-service]user@host# edit traffic-control-profiles profile-name
- Configure the scheduler map variable.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set scheduler-map $juno-cos-scheduler-map
- Configure the shaping rate variable.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set shaping-rate $junos-cos-shaping-rate
- Configure the guaranteed rate variable.[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set guaranteed-rate $junos-cos-guaranteed-rate
- Configure a variable for the delay-buffer
rate.
If you do not include this statement, the delay-buffer rate is based on the guaranteed rate if one is configured, or the shaping rate if no guaranteed rate is configured.
[edit dynamic-profiles business-profile class-of-service traffic-control-profiles profile-name]user@host# set delay-buffer-rate $junos-cos-delay-buffer-rate