Related Documentation
Configuring User-Defined CoS Variables in a Dynamic Service Profile
You can configure user-defined variables in the dynamic service profile for traffic scheduling and shaping parameters.
You can use variables in a dynamic service profile in two ways:
- To enable subscribers to upgrade or downgrade services after login using a RADIUS change of authorization (CoA), configure user-defined variables for CoS parameters as RADIUS attributes.
- To provide subscribers with default values for CoS parameters, configure user-defined variables for CoS parameters with static default values. If you have configured values to be supplied by a RADIUS CoA, subscribers can receive the previously configured default value when deactivating a service.
You activate the variables by referencing them in the traffic control profile configured in the dynamic service profile.
To configure user-defined variables for CoS in a dynamic profile:
- Specify that you want to configure variables in the dynamic
profile.[edit dynamic-profiles residential-silver variables]
- Do one of the following to configure variables for the
shaping rate:
- Enable RADIUS to modify the shaping rate based on service
changes.
- Configure the attribute:[edit dynamic-profiles residential-silver variables]user@host# set srate radius vendor-id 4874 attribute 108
- Configure the tag:[edit dynamic-profiles residential-silver variables]user@host# set srate radius vendor-id 4874 tag 2

Note: You can configure user-defined values for RADIUS tags that are different than the values that are required in access profiles with predefined variables. For example, in a dynamic service profile, you can assign the shaping rate with a tag of 1 rather than 2, which is required for the $junos-shaping-rate variable. When you configure user-defined values, the VSA that is sent from RADIUS must share the same definition.
- Configure the attribute:
- Configure a default value for the shaping rate.[edit dynamic-profiles residential-silver variables]user@host# set srate default-value 10m
- Enable RADIUS to modify the shaping rate based on service
changes.
- Do one of the following to configure variables for the
guaranteed rate:
- Enable RADIUS to modify the guaranteed rate based on service
changes.
- Configure the attribute.[edit dynamic-profiles residential-silver variables]user@host# set grate radius vendor-id 4874 attribute 108
- Configure the tag.[edit dynamic-profiles residential-silver variables]user@host# set grate radius vendor-id 4874 tag 3
- Configure the attribute.
- Configure a default value for the guaranteed rate.[edit dynamic-profiles residential-silver variables]user@host# set grate default-value 5m
- Enable RADIUS to modify the guaranteed rate based on service
changes.
- Do one of the following to configure variables for the
delay buffer rate:
- Enable RADIUS to modify the delay buffer rate based on
service changes.
- Configure the attribute.[edit dynamic-profiles residential-silver variables]user@host# set dbrate radius vendor-id 4874 attribute 108
- Configure the tag.[edit dynamic-profiles residential-silver variables]user@host# set dbrate radius vendor-id 4874 tag 4
- Configure the attribute.
- Configure a default value for the delay buffer rate.[edit dynamic-profiles residential-silver variables]user@host# set dbrate default-value 10m
- Enable RADIUS to modify the delay buffer rate based on
service changes.
- Do one of the following to configure variables for the
scheduler map:
- Enable RADIUS to modify the scheduler map based on service
changes.
- Configure the attribute.[edit dynamic-profiles residential-silver variables]user@host# set smap radius vendor-id 4874 attribute 108
- Configure the tag.[edit dynamic-profiles residential-silver variables]user@host# set smap radius vendor-id 4874 tag 1
- Configure the attribute.
- Configure a default value for the scheduler map.[edit dynamic-profiles residential-silver variables]user@host# set smap default-value triple-play
- Enable RADIUS to modify the scheduler map based on service
changes.
- Configure the variables for the CoS parameters in the
traffic control profile.
Either the shaping rate or the guaranteed rate is required in the traffic control profile.
- Specify that you want to configure CoS parameters in the
dynamic profile.user@host# edit dynamic-profiles residential-silver class-of-service traffic-control-profiles tcp1
- Configure the scheduler map variable.[edit dynamic-profiles residential-silver class-of-service traffic-control-profiles tcp1]user@host# set scheduler-map "$smap"
- Configure the shaping rate variable.[edit dynamic-profiles residential-silver class-of-service traffic-control-profiles tcp1]user@host# set shaping-rate "$srate"
- Configure the guaranteed rate variable.[edit dynamic-profiles residential-silver class-of-service traffic-control-profiles tcp1]user@host# set guaranteed-rate "$grate"
- Configure the delay buffer rate variable.[edit dynamic-profiles residential-silver class-of-service traffic-control-profiles tcp1]user@host# set delay-buffer-rate "$dbrate"
- Specify that you want to configure CoS parameters in the
dynamic profile.

