Example: Configuring CoS on Static LSQ MLPPP Bundle Interfaces
This example shows how to configure dynamic subscriber services on MLPPP bundle interfaces. The MLPPP bundles must be configured on link services intelligent queuing (IQ) (LSQ) interfaces. The MLPPP interfaces must be statically configured.
To configure dynamic subscriber services on static LSQ MLPPP bundle interfaces:
Configure class of service features for the LSQ interfaces.
[edit] class-of-service classifiers { inet-precedence inet_classifier { forwarding-class best-effort { loss-priority low code-points 000; } forwarding-class expedited-forwarding { loss-priority low code-points 011; } forwarding-class assured-forwarding { loss-priority low code-points 100; } } } fragmentation-maps { sample-fragmap { forwarding-class { best-effort { fragment-threshold 1000; multilink-class 1: } assured-forwarding { fragment-threshold 1000; multilink-class 2: } expedited-forwarding { multilink-class 3: } } } } forwarding-classes { queue 0 best-effort; queue 1 expedited-forwarding; queue 2 assured-forwarding; } # traffic classifiers are statically defined network traffic interface{ classifiers { inet-precedence inet_classifier; } } scheduler-maps { allthree { forwarding-class best-effort scheduler be-scheduler; forwarding-class expedited-forwarding scheduler hiprior-sched; forwarding-class assured-forwarding scheduler vpn-sched; } } schedulers { be-scheduler { transmit-rate percent 30; priority low; } hiprior-scheduler { transmit-rate percent 40; priority strict-high; } vpn-sched { transmit-rate percent 30; medium-high; } } }
Configure the MLPPP bundle interfaces and the LSQ interfaces.
[edit interfaces] t1-3/1/0:1:1 { keepalives interval 600; encapsulation ppp; unit 0 { ppp-options { lcp-restart-timer 5000; } family mlppp { bundle lsq-3/3/0.0; } } } t1-3/1/0:1:2 { keepalives interval 600; encapsulation ppp; unit 0 { ppp-options { lcp-restart-timer 5000; } family mlppp { bundle lsq-3/3/0.0; } } } lsq-3/3/0 { unit 0 { encapsulation multilink-ppp; multilink-max-classes 4; ppp-options { ncp-restart-timer 10000; dynamic-profile mlppp-profile; } family inet { address 192.168.1.1/32 { destination 192.168.25.45; } } } }
Configure the dynamic profile that is applied to the MLPPP bundle interfaces.
[edit] dynamic-profiles { mlppp-profile { interfaces { "$junos-interface-ifd-name" { unit junos-underlying-interface-unit" { family inet { filter { input "$junos-input-filter"; output "$junos-output-filter"; } } } } } class-of-service { interfaces { "$junos-interface-ifd-name" { unit junos-underlying-interface-unit" { output-traffic-control-profile tcp1; fragmentation-map sample-fragmap; } } } traffic-control-profiles { tcp1 { scheduler-map "junos-cos-scheduler-map"; shaping-rate "$junos-cos-shaping-rate"; guaranteed-rate "$junos-cos-guaranteed-rate"; delay-buffer-rate "$junos-cos-delay-buffer-rate"; } } scheduler-maps { data_smap { forwarding-class be scheduler data_sch; } } schedulers { be_sch { ... } } } } }