Configuring Traffic Scheduling and Shaping for Subscriber Access
You use traffic-control profiles to configure traffic shaping and scheduling properties.
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:
See Also
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:
See Also
Using the CLI to Modify Traffic-Control Profiles That Are Currently Applied to Subscribers
Subscriber management enables you to use the CLI to modify a traffic-control profile that is currently applied to existing subscribers. This feature allows you to update subscribers who are initially assigned the default traffic-control profile, which might have limited features.
You specify the default traffic-control profile with the predefined-variable-defaults
statement and the cos-traffic-control-profile
variable at the [edit dynamic-profiles profile-name class-of-service]
hierarchy level. See Junos OS
Predefined Variables and Configuring Predefined Dynamic Variables in Dynamic
Profiles for more information about predefined variables.
There are two methods you can use to modify a traffic-control profile that is in use—global and per-subscriber. The global method modifies the traffic-control profile for all subscribers currently using the traffic-control profile. The per-subscriber method modifies the traffic-control profile for a particular subscriber—all other subscribers currently using the traffic-control profile remain unaffected.
The global and per-subscriber methods share the following characteristics:
They modify traffic-control profiles that are currently applied to active subscribers.
Neither method creates new traffic-control profiles; they modify existing traffic-control profiles that have been previously created using the
traffic-control-profiles
statement at the[edit dynamic-profiles profile-name class-of-service]
hierarchy level.Modifications are transparent to the active subscribers who are using the modified profile. The modified traffic-control profile is assigned without requiring any action by the subscriber.
Both methods are useful when updating subscribers who are initially assigned the default traffic-control profile, which might have limited features. You specify the default traffic-control profile with the
predefined-variable-defaults
statement and thecos-traffic-control-profile
variable at the[edit dynamic-profiles profile-name class-of-service]
hierarchy level.
To support CLI modification of traffic-control profiles
in an IPv4/IPv6 dual-stack environment, you must have the aggregate-clients
replace
statement enabled at the [edit system services
dhcp-local-server group group-name dynamic-profile profile-name]
hierarchy
This topic includes the following tasks:
- Using the CLI to Globally Modify a Traffic-Control Profile Currently Applied to Multiple Subscribers
- Using the CLI to Modify a Traffic-Control Profile for a Specific Current Subscriber
Using the CLI to Globally Modify a Traffic-Control Profile Currently Applied to Multiple Subscribers
To make a global modification for all current subscribers assigned
a particular traffic-control profile, you change one or more parameters
for the traffic-control profile and commit
the changes.
In this example, the statement changes the shaping rate
for the existing traffic-control profile named TCP-silver
. After the change, the new shaping rate applies to all subscribers
currently using TCP-silver
.
Using the CLI to Modify a Traffic-Control Profile for a Specific Current Subscriber
To make a per-subscriber modification for a specific subscriber that is currently assigned a traffic-control profile, you specify the name of the new traffic-control profile to use.
In this example, the command replaces the existing traffic-control
profile with the profile named TCP-gold
. The new traffic-control
profile applies only to the subscriber identified by session ID 2551
.
Request that the traffic-control profile named
TCP-gold
be applied to session ID 2551.user@host> request network-access aaa subscriber modify session-id 2551 junos-cos-traffic-control-profile TCP-gold
The system then displays the status message, Successful
completion
, indicating that the modification is successful.
The subscriber identified by session ID 2551 now uses the TCP-gold
traffic-control profile.