This example shows you how to configure CoS for a subscriber in a dynamic profile. The CoS parameters configure a best-effort, data service for subscribers.
You must configure the scheduler maps in this hierarchy; it will get referenced in the dynamic profile.
- class-of-service {
-
- forwarding-classes {
- queue 0 best-effort;
- queue 1 expedited-forwarding;
- queue 3 network-control;
- queue 2 assured-forwarding;
- }
-
- scheduler-maps {
-
- data_smap {
- forwarding-class best-effort scheduler be_sch;
- }
- }
-
- schedulers {
-
- be_sch {
- transmit-rate percent 10;
- buffer-size remainder;
- priority low;
- }
- }
- }
- dynamic-profiles {
-
- data-service {
-
- interfaces {
-
- "$junos-interface-ifd-name" {
-
- unit "$junos-underlying-interface-unit" {
- family inet;
- }
- }
- }
-
- class-of-service {
-
- traffic-control-profiles {
-
- tcp1 {
- scheduler-map data_smap;
- shaping-rate 50k;
- guaranteed-rate 10k;
- }
- }
-
- interfaces {
-
- "$junos-interface-ifd-name" {
-
- unit "$junos-underlying-interface-unit" {
- output-traffic-control-profile tcp1;
- }
- }
- }
- }
- }
- }