Applying Traffic Shaping and Scheduling to a Subscriber Interface in a Dynamic Profile
After you configure the traffic shaping and scheduling CoS parameters in a dynamic profile, you apply them to an interface. The output traffic-control profile enables you to provide traffic scheduling to the interface.
To apply CoS attributes to an interface in a dynamic profile:
-
Specify that you want to apply CoS attributes to an interface in the dynamic
profile.
[edit] set dynamic-profiles profile-name class-of-service
-
Configure the interface name and logical interface using a variable.
[edit dynamic-profiles profile-name class-of-service] set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit
-
(Only for Junos OS Evolved) Include the
service-accountingoption to enable the packet forwarding engine to report the queue counter statistics.[edit dynamic-profiles profile-name class-of-service] set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit service-accounting
-
Apply
the output traffic-control profile to the interface.
[edit dynamic-profiles profile-name class-of-service] set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit output-traffic-control-profile profile-name
You can use one of the following methods to specify the output traffic-control profile you want to use:
-
Reference the
$junos-cos-traffic-control-profilepredefined variable. At subscriber login, subscriber management takes one of the following actions, in the order listed:If RADIUS is being used and it returns a value for the traffic-control profile, subscriber management uses the RADIUS value.
If RADIUS is not being used, subscriber management uses the default traffic-control profile (which is specified by the
predefined-variables-defaultstatement at the[edit dynamic-profiles]hierarchy).For example:
[edit dynamic-profiles profile-name class-of-service] set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit output-traffic-control-profile $junos-cos-traffic-control-profile
-
Explicitly reference the name of the traffic-control profile.
For example:
[edit dynamic-profiles profile-name class-of-service] set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit output-traffic-control-profile tcp-sales-2
-