Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Strict-Priority Scheduling on a PTX Series Router

This example shows how to configure strict-priority scheduling for a physical interface on a PTX Series router.

Requirements

This example uses the following hardware and software components:

  • One PTX Series Packet Transport Router

  • One or more routers that provide input packets and receive output packets

  • Junos OS Release 13.3 or later

Overview

This example illustrates how you configure strict-priority scheduling for a physical interface on a PTX Series router to perform processing of queues in strict-priority order. Queues in the guaranteed region with the same priority are processed in round-robin fashion. Queues in the excess region are processed based on the WRR algorithm.

When you configure strict-priority scheduling, use the following guidelines:

  • The configured transmit-rate does not affect the queue drain rate because packets are processed in order of queue priority.

  • You can configure only one queue with strict-high priority at the [edit class-of-service schedulers scheduler-name priority] hierarchy level.

  • You cannot configure both transmit-rate exact and strict-high priority at the [edit class-of-service schedulers scheduler-name] hierarchy level.

  • You cannot configure scheduler-map or shaping-rate on an interface where you configure an output traffic control profile.

  • You cannot configure transmit-rate on a queue with low priority or the commit will fail.

Note:

If a strict-high priority queue is constantly loaded to 100 percent of traffic capacity, other queues are starved. Queue starvation can cause the interface hardware to generate critical interrupts.

Topology

In Figure 1, the PTX Series router has inputs from Router A, et-1/1/15 and et-1/1/12, and an output to Router B, et-7/1/12. This example configures classification on the two ingress Interfaces and configures strict-priority scheduling on the egress interface.

Figure 1: Topology for Configuring Strict-Priority Scheduling on a PTX Series RouterTopology for Configuring Strict-Priority Scheduling on a PTX Series Router

Configuration

Configuring Strict-Priority Scheduling

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, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Step-by-Step Procedure

In this example, eight schedulers are configured based on eight DSCP classifier configurations. Each associated scheduler is assigned a priority and transmit rate, although the transmit rate is ignored by the strict-priority scheduler. The scheduler map sch0 is configured with the mapping of forwarding classes to schedulers. Within the traffic control profile tcp1, the scheduler map and the strict-priority scheduler feature are configured. Two input interfaces on the PTX Series router, et-1/1/12 and et-1/1/15, are configured with the DSCP classifiers. The output traffic control profile on et-7/1/12 is configured with the traffic control profile tcp1.

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 strict-priority scheduling:

  1. Configure the DSCP forwarding classes.

  2. Configure the mapping of queues to forwarding classes.

  3. Configure the transmit rate and priority for each scheduler.

    Although you can configure a transmit rate, the value that you configure is overridden by the strict-priority scheduler.

  4. Configure the scheduler map with the mapping of forwarding classes to schedulers.

  5. Configure the traffic control profile to do strict-priority scheduling and define the scheduler map to use.

  6. Apply the classifiers to the input interfaces, and the traffic control profile to the output interface.

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.

Verification

Verifying Strict-Priority Scheduling

Purpose

Verify that the strict-priority scheduling configuration is producing the results you expect.

Action

From operational mode, enter the show interfaces queue interface-name interface-name command and select the output physical interface to verify.

Meaning

The show command output lists the traffic by queue and forwarding class names. The Bytes field under the Transmitted field for each queue shows the actual bytes transmitted.

From the sample output, you can see that the strict-high queue gets the highest priority and transmits without drops. The high-priority queues are then transmitted. The medium-high and medium-low priority queues are processed in a round-robin fashion. The low-priority queue is starved.

Keep in mind the following conditions that apply to strict-priority scheduling:

  • If the traffic on the output interface is undersubscribed, no queue should show dropped traffic.

  • The strict-high queue is processed first, followed by the high-priority queues (in a round-robin fashion), and finally all remaining queues in the guaranteed region (in a round-robin fashion).

  • If the ingress traffic exceeds the capacity of the output interface, the queues are processed in strict-priority order.

  • Queues in the excess region are processed based on the WRR algorithm.