Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Controlling Remaining Traffic

This example shows how to control remaining traffic from the remaining logical interfaces.

Requirements

Before you begin:

Overview

To configure transmit rate guarantees for the remaining traffic, you configure the output-traffic-control-profile-remaining statement specifying a guaranteed rate for the remaining traffic. Without this statement, the remaining traffic gets a default, minimal bandwidth. Similarly, you can specify the shaping-rate and delay-buffer-rate statements in the traffic control profile referenced with the output-traffic-control-profile-remaining statement to shape and provide buffering for remaining traffic.

In the interface shown in Figure 1, customer VLANs 3 and 4 have no explicit traffic control profile. However, the service provider might want to establish a shaping and guaranteed transmit rate for aggregate traffic heading for those C-VLANs. The solution is to configure and apply a traffic control profile for all remaining traffic on the interface.

Figure 1: Example 1 Handling Remaining Traffic with no Explicit Traffic Control ProfileExample 1 Handling Remaining Traffic with no Explicit Traffic Control Profile

Example 1 considers the case where C-VLANs 3 and 4 have no explicit traffic control profile, yet need to establish a shaping and guaranteed transmit rate for traffic heading for those C-VLANs. The solution is to add a traffic control profile to the svlan1 interface set. This example builds on the example used in Example: Configuring a Four-Level Scheduler Hierarchy and does not repeat all configuration details, only those at the S-VLAN level.

Next, consider Example 2 shown in Figure 2.

Figure 2: Example 2 Handling Remaining Traffic with an Interface SetExample 2 Handling Remaining Traffic with an Interface Set

In Example 2, ge-1/0/0 has five logical interfaces (C-VLAN 0, 1, 2, 3 and 4), and S-VLAN 0, which are covered by the interface set:

  • Scheduling for the interface set svlan0 is specified by referencing an output-traffic-control-profile statement, which specifies the guaranteed-rate, shaping-rate, and delay-buffer-rate statement values for the interface set. In this example, the output traffic control profile called tcp-svlan0 guarantees 100 Mbps and shapes the interface set svlan0 to 200 Mbps.

  • Scheduling and queuing for remaining traffic of svlan0 is specified by referencing an output-traffic-control-profile-remaining statement, which references a scheduler-map statement that establishes queues for the remaining traffic. The specified traffic control profile can also configure guaranteed, shaping, and delay-buffer rates for the remaining traffic. In Example 2, output-traffic-control-profile-remaining tcp-svlan0-rem references scheduler-map smap-svlan0-rem, which calls for a best-effort queue for remaining traffic (that is, traffic on unit 3 and unit 4, which is not classified by the svlan0 interface set). The example also specifies a guaranteed-rate of 200 Mbps and a shaping-rate of 300 Mbps for all remaining traffic.

  • Scheduling and queuing for logical interface ge-1/0/0 unit 1 is configured “traditionally” and uses an output-traffic-control-profile specified for that unit. In this example, output-traffic-control-profile tcp-ifl1 specifies scheduling and queuing for ge-1/0/0 unit 1.

Configuration

This section contains the following topics:

Controlling Remaining Traffic With No Explicit Traffic Control Profile

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 control remaining traffic with no explicit traffic control profile:

  1. Set the logical interfaces for the S-VLANs.

  2. Set the shaping and guaranteed transmit rates for traffic heading for those C-VLANs.

Results

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

Controlling Remaining Traffic With An Interface Set

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 control remaining traffic with an interface set:

  1. Set the interface set for the S-VLAN.

  2. Set the traffic control profiles.

  3. Set the scheduler map.

Results

From configuration mode, confirm your configuration by entering the show class-of-service interfaces, show class-of-service traffic-control-profiles , and show class-of-service scheduler-maps commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it. Example 2 does not include the [edit interfaces] configuration.

If you are done configuring the device, enter commit from configuration mode.

The configuration for the referenced schedulers is not given for this example.

Verification

Verifying Remaining Traffic Control

Purpose

Verify that the remaining traffic is controlled properly.

Action

From operational mode, enter the following commands:

  • show class-of-service interfaces

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

  • show class-of-service scheduler-maps