ON THIS PAGE
Example: Configuring Priority Scheduling
This example shows how to configure priority scheduling so important traffic receives better access to the outgoing interface.
Requirements
Before you begin, review how to assign forwarding classes. See Example: Assigning Forwarding Classes to Output Queues.
Overview
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.
Configuration
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 CLI User Guide.
To configure priority scheduling:
- Configure CoS and a scheduler.[edit]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.[edit]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.[edit]user@host# edit class-of-serviceuser@host# set interfaces ge-0/0/0 scheduler-map be-map
Results
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.
Verification
Verifying Priority Scheduling
Purpose
Verify that the priority scheduling is configured properly on a device.
Action
From configuration mode, enter the show class-of-service command.