Configuring Scheduler and Scheduler Map Sharing
The system generates unique identifiers (IDs) in dynamic profiles created for services. The generated unique IDs enable you to identify and configure separate parameter values with the same variable name. When applied to CoS, you can configure scheduler and scheduler map sharing. In client-access profiles, schedulers and scheduler maps must use the unique ID format. If the client-access profile uses the unique ID format and you want to have either scheduler or scheduler map sharing for service activation, you must configure the service profile in unique ID format. Generating unique IDs based on schedulers and scheduler maps eliminates duplication and improves router performance and scalability. You can configure scheduler and scheduler map sharing by including the variables for CoS in the client access or service dynamic profile. All scheduler maps and schedulers must be in the unique ID format.
Before you configure variables for the client access or service dynamic profile:
Create a basic dynamic profile.
To configure variables for the client access or service dynamic profile:
For example, you can configure scheduler maps and schedulers for a client access profile:
dynamic-profiles { cos-para { variables { data_smap uid; data_video_smap uid; voice_smap uid; data_sched uid; video_sched uid; voice_sched uid; } … class-of-service { traffic-control-profiles { tcp1 { scheduler-map "$junos-cos-scheduler-map"; shaping-rate "$junos-cos-shaping-rate"; guaranteed-rate 10m; delay-buffer-rate "$junos-cos-delay-buffer-rate"; } } interfaces { "$junos-interface-ifd-name" { unit "$junos-underlying-interface-unit" { output-traffic-control-profile tcp1; } } } scheduler-maps { "$data_smap" { forwarding-class be scheduler "$data_sched"; } "$data_video_smap" { forwarding-class be scheduler "$data_sched"; forwarding-class af scheduler "$video_sched"; } “$voice_smap” { forwarding-class ef scheduler “$voice_sched”; } } schedulers { "$data_sched" { transmit-rate "$junos-cos-scheduler-tx"; inactive: buffer-size percent "$junos-cos-scheduler-bs"; priority "$junos-cos-scheduler-pri"; } "$video_sched" { transmit-rate "$junos-cos-scheduler-tx"; inactive: buffer-size percent "$junos-cos-scheduler-bs"; priority "$junos-cos-scheduler-pri"; } “$voice_sched” { transmit-rate percent 10; buffer-size remainder;; priority low; } } } } }