Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Configuring a Four-Level Scheduler Hierarchy

 

This example shows how to configure a 4-level hierarchy of schedulers.

Requirements

Before you begin:

Overview

The configuration parameters for this example are shown in Figure 1. The queues are shown at the top of the figure with the other three levels of the hierarchy below.

Figure 1: Building a Scheduler Hierarchy
Building a Scheduler
Hierarchy

Figure 1’s PIR values will be configured as the shaping rates, and the CIRs will be configured as the guaranteed rate on the Ethernet interface ge-1/0/0. The PIR can be oversubscribed (that is, the sum of the children PIRs can exceed the parent's, as in svlan 1, where 200 + 200 + 100 exceeds the parent rate of 400). However, the sum of the children node level's CIRs must never exceed the parent node's CIR, as shown in all the service VLANs (otherwise, the guaranteed rate could never be provided in all cases).

Note

Although a shaping rate can be applied directly to the physical interface, hierarchical schedulers must use a traffic control profile to hold the shaping rate parameter.

The keyword to configure hierarchical schedulers is at the physical interface level, as are VLAN tagging and the VLAN IDs. In this example, the interface sets are defined by logical interfaces (units) and not outer VLAN tags. All VLAN tags in this example are customer VLAN tags.

The traffic control profiles in this example are for both the service VLAN level (logical interfaces) and the customer VLAN (VLAN tag) level.

This example shows all details of the CoS configuration for the ge-1/0/0 interface in Figure 1.

Configuration

This section contains the following topics:

Configuring the Interfaces

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

To configure the interfaces:

  1. Create the physical interface, and enable hierarchical scheduling and VLAN tagging.
  2. Create logical interfaces and assign VLAN IDs.

Results

From configuration mode, confirm your configuration by entering the show interface ge-1/0/0 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.

Configuring the Interface Sets

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure the interface sets:

  1. Create the first logical interface and its CoS parameters.
  2. Create the second logical interface and its CoS parameters.

Results

From configuration mode, confirm your configuration by entering the show interfaces 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.

Configuring the Forwarding Classes

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure the forwarding classes:

  1. Specify a queue number and map it to a class name.

Results

From configuration mode, confirm your configuration by entering the show class-of-service forwarding-classes 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.

Configuring the Traffic Control Profiles

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure the traffic control profiles:

  1. Create the traffic control profile for the physical interface.
  2. Create the traffic control profiles and parameters for the S-VLAN (logical interfaces) level.
  3. Create the traffic control profiles and parameters for the C-VLAN (VLAN tags) level.

Results

From configuration mode, confirm your configuration by entering the show class-of-service traffic-control-profiles 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.

Configuring the Schedulers

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure the schedulers:

  1. Create the schedulers and their parameters.

Results

From configuration mode, confirm your configuration by entering the show class-of-service schedulers 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.

Configuring the Drop Profiles

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure the drop profiles:

  1. Create the low drop profile.
  2. Create the high drop profile.

Results

From configuration mode, confirm your configuration by entering the show class-of-service drop-profiles 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.

Configuring the Scheduler Maps

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To configure three scheduler maps:

  1. Create the first scheduler map.
  2. Create the second scheduler map.
  3. Create the third scheduler map.

Results

From configuration mode, confirm your configuration by entering the show class-of-service scheduler-maps 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.

Applying Traffic Control Profiles

CLI Quick Configuration

To quickly configure this section of the 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 configuration mode.

Step-by-Step Procedure

To apply traffic control profiles:

  1. Apply the traffic control profile for the interface.
  2. Apply the traffic control profiles for the C-VLANs.
  3. Apply the traffic control profiles for the S-VLANs.

Results

From configuration mode, confirm your configuration by entering the show class-of-service interfaces 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 Scheduler Hierarchy Configuration

Purpose

Verify that the scheduler hierarchy is configured properly.

Action

From operational mode, enter the following commands:

  • show interface ge-1/0/0

  • show class-of-service interfaces

  • show class-of-service traffic-control-profiles

  • show class-of-service schedulers

  • show class-of-service drop-profiles

  • show class-of-service scheduler-maps