Example: Configuring Priority Scheduling
This example shows how to configure priority scheduling so important traffic receives better access to the outgoing interface.
Before you begin, review how to assign forwarding classes. See Example: Assigning Forwarding Classes to Output Queues.
In this example, you configure CoS and a scheduler called be-sched with a medium-low priority. Then you configure scheduler map be-map to associate be-sched with the best-effort forwarding class. Finally, you apply be-map to interface ge-0/0/0.
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the  hierarchy level, and then enter commit from the configuration mode.
To configure priority scheduling:
- Configure CoS and a scheduler.user@host# edit class-of-serviceuser@host# edit schedulers be-sched
- Set a priority.[edit class-of-service schedulers be-sched]user@host# set priority medium-low
- Configure a scheduler map.user@host# edit class-of-serviceuser@host# edit scheduler-maps be-map
- Specify the best-effort forwarding class.[edit class-of-service scheduler-maps be-map]user@host# set forwarding-class best-effort scheduler be-sched
- Apply best-effort map to an interface.user@host# edit class-of-serviceuser@host# set interfaces ge-0/0/0 scheduler-map be-map
From configuration mode, confirm your configuration by entering the show class-of-service command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit from configuration mode.
Verifying Priority Scheduling
Verify that the priority scheduling is configured properly on a device.
From configuration mode, enter the show class-of-service command.