Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber Sessions
To control bandwidth at a household level in a subscriber access network, you can apply RADIUS dynamic class of service (CoS) traffic-shaping attributes to a dynamic interface set or agent-circuit-identifer (ACI) interface set and its member subscriber sessions when the member sessions are authenticated. The dynamic interface set or ACI interface set represents the household from which the subscriber sessions originate. The subscriber sessions, also referred to as client sessions or subscriber interfaces, can be dynamic VLAN, PPPoE, or IP demultiplexing (IP demux, for DHCP) subscriber interfaces.
To apply RADIUS dynamic CoS traffic-shaping attributes to both the dynamic interface set and its member subscriber sessions, you must configure two traffic-control profiles in the dynamic profile for the subscriber interface: one traffic-control profile for the “parent” dynamic interface set, and a second traffic-control profile for the dynamic subscriber interfaces. RADIUS tag values for the Junos OS CoS traffic shaping predefined variables used in both traffic-control profiles must be in the 100s range.
Before you begin:
Create a dynamic profile that defines the VLAN, PPPoE, or IP demux logical subscriber interface.
See the following topics:
To apply dynamic CoS traffic-shaping attributes to a dynamic ACI or non-ACI interface set and its member subscriber sessions in a dynamic profile for the subscriber interface:
Example: Dynamic PPPoE Subscriber Interface over Dynamic ACI Interface Set
The following example shows a dynamic profile named pppoe-subscriber
that configures a dynamic PPPoE (pp0
) subscriber interface
over a dynamic ACI interface set.
The traffic-control-profiles
stanza defines two traffic-control
profiles: tcp-pppoe-session for the dynamic PPPoE subscriber interface,
and tcp-parent-aci-set for the dynamic “parent” ACI interface
set. The $junos-cos-shaping-rate
predefined variable included
in each of these traffic-control profiles is assigned RADIUS vendor
ID 4874, attribute number 108, and tag value 102. The $junos-cos-shaping-mode
variable is assigned RADIUS vendor ID 4874, attribute number 108,
and tag value 107.
The interfaces
stanza applies output traffic-control
profile tcp-pppoe-session to the dynamic PPPoE (pp0
) subscriber
interface, and output traffic-control profile tcp-parent-aci-set to
the dynamic ACI interface set.
[edit dynamic-profiles] pppoe-subscriber { interfaces { interface-set "$junos-interface-set-name" { interface pp0 { unit "$junos-interface-unit"; } } pp0 { unit "$junos-interface-unit" { ppp-options { pap; } pppoe-options { underlying-interface "$junos-underlying-interface"; server; } no-keepalives; family inet { unnumbered-address lo0.0; } } } } class-of-service { traffic-control-profiles { tcp-pppoe-session { scheduler-map smap-1; shaping-rate $junos-cos-shaping-rate; overhead-accounting $junos-cos-shaping-mode frame-mode-bytes -4 cell-mode-bytes 12; } tcp-parent-aci-set { shaping-rate $junos-cos-shaping-rate; overhead-accounting $junos-cos-shaping-mode frame-mode-bytes -4 cell-mode-bytes 12; } } interfaces { pp0 { unit "$junos-interface-unit" { output-traffic-control-profile tcp-pppoe-session; } } interface-set $junos-interface-set-name { output-traffic-control-profile tcp-parent-aci-set; } } } } }