Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


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 [edit] hierarchy level, and then enter commit from the configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure priority scheduling:

  1. Configure CoS and a scheduler.

  2. Set a priority.

  3. Configure a scheduler map.

  4. Specify the best-effort forwarding class.

  5. Apply best-effort map to an interface.


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.