ON THIS PAGE
Example: Controlling Remaining Traffic
This example shows how to control remaining traffic from the remaining logical interfaces.
Requirements
Before you begin:
Review how to configure schedulers. See Example: Configuring Class-of-Service Schedulers on a Security Device.
Review how to configure and apply scheduler maps. See Example: Configuring and Applying Scheduler Maps.
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.

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.

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:
- Set the logical interfaces for the S-VLANs. [edit class-of-service interfaces]user@host# set interface-set svlan0 output-traffic-control-profile tcp-svlan0user@host# set interface-set svlan1 output-traffic-control-profile tcp-svlan1user@host# set interface-set svlan1 output-traffic-control-profile-remaining tcp-svlan1-remaining
- Set the shaping and guaranteed transmit rates for traffic
heading for those C-VLANs. [edit class-of-service traffic-control-profiles]user@host# set tcp-svlan1 shaping-rate 400m guaranteed-rate 300muser@host# set tcp-svlan1-remaining shaping-rate 300m guaranteed-rate 200m scheduler-map smap-remainder
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:
- Set the interface set for the S-VLAN. [edit class-of-service interfaces]user@host# set interface-set svlan0 output-traffic-control-profile tcp-svlan0user@host# set ge-1/0/0 output-traffic-control-profile-remaining tcp-svlan0-rem unit 1output-traffic-control-profile tcp-ifl1
- Set the traffic control profiles. [edit class-of-service traffic-control-profiles]user@host# set tcp-svlan0 shaping-rate 200m guaranteed-rate 100muser@host# set tcp-svlan0-rem shaping-rate 300m guaranteed-rate 200m scheduler-map smap-svlan0-remuser@host# set tcp-ifl1 scheduler-map smap-ifl1
- Set the scheduler map.[edit class-of-service scheduler-maps]user@host# set smap-svlan0-rem forwarding-class best-effort scheduler-sched-foouser@host# set smap-ifl1 forwarding-class best-effort scheduler-sched-baruser@host# set smap-ifl1 forwarding-class assured-forwarding scheduler-sched-bar
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