You use schedulers to define the properties of output queues. These properties include the amount of interface bandwidth assigned to the queue, the size of the memory buffer allocated for storing packets, the priority of the queue, and the random early detection (RED) drop profiles associated with the queue.
You associate the schedulers with forwarding classes by means of scheduler maps. You can then associate each scheduler map with an interface, thereby configuring the hardware queues, packet schedulers, and RED processes that operate according to this mapping.
To configure class-of-service (CoS) schedulers, use the following sample configuration at the [edit class-of-service] hierarchy level:
- [edit class-of-service]
- interfaces {
-
-
interface-name {
- scheduler-map map-name;
- scheduler-map-chassis map-name;
- schedulers number;
- shaping-rate rate;
-
- unit {
- output-traffic-control-profile profile-name;
- scheduler-map map-name;
- shaping-rate rate;
- }
- }
- }
- fabric {
-
- scheduler-map {
- priority (high | low) scheduler scheduler-name;
- }
- }
- scheduler-maps {
-
-
map-name {
- forwarding-class class-name scheduler scheduler-name;
- }
- }
- schedulers {
-
-
scheduler-name {
- buffer-size (percent percentage |
remainder | temporal microseconds );
- drop-profile-map loss-priority (any | low | medium-low
| medium-high | high) protocol (any | non-tcp | tcp) drop-profile profile-name;
- priority priority-level;
- transmit-rate (rate | percent percentage remainder) <exact | rate-limit>;
- }
- }
- traffic-control-profiles profile-name {
- delay-buffer-rate (percent percentage | rate);
- guaranteed-rate (percent percentage | rate);
- scheduler-map map-name;
- shaping-rate (percent percentage | rate);
- }