Associate the scheduler sched-map-logical-0 with logical interface unit 0 on physical interface t3-1/0/0, and allocate 10 Mbps of transmission bandwidth to the logical interface.
Associate the scheduler sched-map-logical-1 with logical interface unit 1 on physical interface t3-1/0/0, and allocate 20 Mbps of transmission bandwidth to the logical interface.
The allocated bandwidth is shared among the individual forwarding classes in the scheduler map. Although these schedulers are configured on a single physical interface, they are independent from each other. Traffic on one logical interface unit does not affect the transmission priority, bandwidth allocation, or drop behavior on the other logical interface unit.
For another example, see the JUNOS Feature Guide.
- [edit interfaces]
- t3-1/0/0:1 {
- encapsulation frame-relay;
- per-unit-scheduler;
- }
-
- [edit class-of-service]
- interfaces {
-
- t3-1/0/0:1 {
-
- unit 0 {
- scheduler-map sched-map-logical-0;
- shaping-rate 10m;
- }
-
- unit 1 {
- scheduler-map sched-map-logical-1;
- shaping-rate 20m;
- }
- }
- }
-
- scheduler-maps {
-
- sched-map-logical-0 {
- forwarding-class best-effort scheduler sched-best-effort-0;
- forwarding-class assured-forwarding scheduler sched-bronze-0;
- forwarding-class expedited-forwarding scheduler sched-silver-0;
- forwarding-class network-control scheduler sched-gold-0;
- }
-
- sched-map-logical-1 {
- forwarding-class best-effort scheduler sched-best-effort-1;
- forwarding-class assured-forwarding scheduler sched-bronze-1;
- forwarding-class expedited-forwarding scheduler sched-silver-1;
- forwarding-class network-control scheduler sched-gold-1;
- }
-
-
- schedulers {
-
- sched-best-effort-0 {
- transmit-rate 4m;
- }
-
- sched-bronze-0 {
- transmit-rate 3m;
- }
-
- sched-silver-0 {
- transmit-rate 2m;
- }
-
- sched-gold-0 {
- transmit-rate 1m;
- }
-
- sched-best-effort-1 {
- transmit-rate 8m;
- }
-
- sched-bronze-1 {
- transmit-rate 6m;
- }
-
- sched-silver-1 {
- transmit-rate 4m;
- }
-
- sched-gold-1 {
- transmit-rate 2m;
- }
- }
- }