Shared scheduling and shaping allows you to allocate separate pools of shared resources to subsets of logical interfaces belonging to the same physical port. You configure this by first creating a traffic-control profile, which specifies a shaping rate and references a scheduler map. You must then share this set of shaping and scheduling resources by applying an instance of the traffic-control profile to a subset of logical interfaces. You can apply a separate instance of the same (or a different) traffic-control profile to another subset of logical interfaces, thereby allocating separate pools of shared resources.
To configure a traffic-control profile, perform the following steps:
Include the shaping-rate statement at the [edit class-of-service traffic-control-profiles profile-name] hierarchy level:
- [edit class-of-service traffic-control-profiles profile-name]
- shaping-rate (percent percentage | rate);
Include the scheduler-map statement at the [edit class-of-service traffic-control-profiles profile-name] hierarchy level:
- [edit class-of-service traffic-control-profiles profile-name]
- scheduler-map map-name;
Include the delay-buffer-rate statement at the [edit class-of-service traffic-control-profiles profile-name] hierarchy level:
- [edit class-of-service traffic-control-profiles profile-name]
- delay-buffer-rate (percent percentage | rate);
Include the guaranteed-rate statement at the [edit class-of-service traffic-control-profiles profile-name] hierarchy level:
- [edit class-of-service traffic-control-profiles profile-name]
- guaranteed-rate (percent percentage | rate);
You must now share an instance of the traffic-control profile.
To share an instance of the traffic-control profile, perform the following steps:
Include the shared-scheduler statement at the [edit interfaces interface-name] hierarchy level:
- [edit interfaces interface-name]
- shared-scheduler;
![]() |
Note: On each physical interface, the shared-scheduler and per-unit-scheduler statements are mutually exclusive. Even so, you can configure one logical interface for each shared instance. This effectively provides the functionality of per-unit scheduling. |
To apply the traffic-control profile to an input interface, include the input-traffic-control-profile and shared-instance statements at the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level:
- [edit class-of-service interfaces interface-name unit logical-unit-number]
- input-traffic-control-profile profile-name shared-instance instance-name;
To apply the traffic-control profile to an output interface, include the output-traffic-control-profile and shared-instance statements at the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level:
- [edit class-of-service interfaces interface-name unit logical-unit-number]
- output-traffic-control-profile profile-name shared-instance instance-name;
This concept is demonstrated in Examples: Shaping Input and Output Traffic on Ethernet IQ2 Interfaces.
![]() |
Note: You cannot include the output-traffic-control-profile statement in the configuration if any of the following statements are included in the logical interface configuration: scheduler-map, shaping-rate, adaptive-shaper, or virtual-channel-group (the last two are valid on J-series Services Routers only). |