Example: Configuring Per-Unit Schedulers for Channelized Interfaces
You can configure per-unit scheduling on T1 and DS0 physical
interfaces configured on channelized DS3 and STM1 IQ PICs. To enable
per-unit scheduling, configure the per-unit-scheduler
statements
at the [edit interfaces interface-name]
hierarchy level.
When per-unit scheduling is enabled on the channelized PICs, you can associate a scheduler map with the physical interface. For more information about configuring scheduler maps, see Configuring Scheduler Maps.
If you configure the per-unit-scheduler
statement
on the physical interface of a 4-port channelized OC-12 IQ PIC and
configure 975 logical interfaces or data link connection identifiers
(DLCIs), some of the logical interfaces or DLCIs will drop all packets
intermittently.
The following example configures per-unit scheduling on a channelized DS3 PIC and an STM1 IQ PIC.
[edit interfaces] ct3-5/3/1 { partition 1 interface-type t1; } t1-5/3/1:1 { per-unit-scheduler; # This enables per-unit scheduling encapsulation frame-relay; unit 0 { dlci 1; family inet { address 10.0.0.2/32; } } } ct3-5/3/0 { partition 1 interface-type ct1; } ct1-5/3/0:1 { partition 1 timeslots 1 interface-type ds; } ds-5/3/0:1:1 { per-unit-scheduler; # This enables per-unit scheduling encapsulation frame-relay; unit 0 { dlci 1; family inet { address 10.0.0.1/32; } } } cau4-3/0/0 { partition 1 interface-type ce1; } cstm1-3/0/0 { no-partition 1 interface-type cau4; } ce1-3/0/0:1 { partition 1 timeslots 1 interface-type ds; } ds-3/0/0:1:1 { per-unit-scheduler; # This enables per-unit scheduling encapsulation frame-relay; unit 0 { dlci 1; family inet { address 10.1.1.1/32; } } } [edit class-of-service] classifiers { dscp all-traffic-dscp { forwarding-class assured-forwarding { loss-priority low code-points 001010; } forwarding-class expedited-forwarding { loss-priority low code-points 101110; } forwarding-class best-effort { loss-priority low code-points 101010; } forwarding-class network-control { loss-priority low code-points 000110; } } } forwarding-classes { queue 0 best-effort; queue 1 assured-forwarding; queue 2 expedited-forwarding; queue 3 network-control; } interfaces { ds-3/0/0:1:1 { unit 0 { scheduler-map schedule-mlppp; } } ds-5/3/0:1:1 { unit 0 { scheduler-map schedule-mlppp; } } t1-5/3/1:1 { unit 0 { scheduler-map schedule-mlppp; } } } scheduler-maps { schedule-mlppp { forwarding-class expedited-forwarding scheduler expedited-forwarding; forwarding-class assured-forwarding scheduler assured-forwarding; forwarding-class best-effort scheduler best-effort; forwarding-class network-control scheduler network-control; } } schedulers { best-effort { transmit-rate percent 2; buffer-size percent 5; priority low; } assured-forwarding { transmit-rate percent 7; buffer-size percent 30; priority low; } expedited-forwarding { transmit-rate percent 90 exact; buffer-size percent 60; priority high; } network-control { transmit-rate percent 1; buffer-size percent 5; priority strict-high; } }