示例:在静态 LSQ MLPPP 捆绑接口上配置 CoS
此示例说明如何在 MLPPP 捆绑接口上配置动态订阅者服务。MLPPP 捆绑包必须在链路服务智能排队 (IQ) (LSQ) 接口上配置。必须静态配置 MLPPP 接口。
要在静态 LSQ MLPPP 捆绑接口上配置动态订阅者服务,请执行以下作:
为 LSQ 接口配置服务等级功能。
[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; } } }
配置 MLPPP 捆绑接口和 LSQ 接口。
[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; } } } }
配置应用于 MLPPP 捆绑接口的动态配置文件。
[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 { ... } } } } }