ON THIS PAGE
Example: Configuring Forwarding Class Sets
A forwarding class set (fc-set) is a priority group for enhanced transmission selection (ETS) traffic control. Each fc-set consists of one or more forwarding classes (priorities). Classifiers map traffic to forwarding classes based on code points, and forwarding classes are mapped to output queues.
ETS enables you to configure link resources (bandwidth and bandwidth sharing characteristics) for an fc-set, and then allocate the fc-set’s resources among the forwarding classes that belong to the fc-set. This is called two-tier, or hierarchical, scheduling. Traffic control profiles control the scheduling for the fc-set (priority group), and schedulers control the scheduling for individual forwarding classes (priorities).
Requirements
This example uses the following hardware and software components:
-
One switch (this example was tested on a Juniper Networks QFX3500 Switch)
-
Junos OS Release 11.1
Use Feature Explorer to confirm platform and release support for ETS.
Overview
You can configure up to three unicast fc-sets and one multicast fc-set. A common way to configure unicast priority groups is to configure separate fc-sets for local area network (LAN) traffic, storage area network (SAN) traffic, and high-performance computing (HPC) traffic, and then assign the appropriate forwarding classes to each fc-set.
If you configure a strict-high
priority forwarding
class, you must create an fc-set that is dedicated only to strict-high
priority traffic. You can only configure one strict-high priority
forwarding class, and only one fc-set can contain a strict-high priority
queue. Queues that are not strict-high priority cannot belong to the
same fc-set as a strict-high priority queue. The multidestination
fc-set cannot contain a strict-high priority queue.
To apply ETS, you use a traffic control profile to map one or more fc-sets to a physical egress port. You can map up to three unicast forwarding class sets and one multidestination forwarding class set to each port. When you map an fc-set to a port, the port uses hierarchical scheduling to allocate port resources to the priority group (fc-set) and to allocate the priority group resources to the queues (forwarding classes) that belong to the priority group.
This example describes how to:
Configure three fc-sets called
lan-pg
,san-pg
, andhpc-pg
.Assign forwarding classes to each of the fc-sets.
Apply the fc-sets and their output traffic control profiles to an egress interface.
This example does not describe how to configure the forwarding classes assigned to the fc-sets or how to configure traffic control profiles (scheduling). Example: Configuring CoS Hierarchical Port Scheduling (ETS) provides a complete example of how to configure ETS, including forwarding class and scheduling configuration. Table 1 shows the configuration components for this example:
Component |
Settings |
---|---|
Hardware |
QFX3500 switch |
LAN traffic priority group |
Forwarding class set: |
SAN traffic priority group |
Forwarding class set: |
HPC traffic priority group |
Forwarding class set: |
Egress interface |
|
Configuring Forwarding Class Sets
Step-by-Step Procedure
Define the
lan-pg
priority group (fc-set) and assign to it the forwarding classesbest-effort-1
andbest-effort-2
:[edit class-of-service] user@switch# set forwarding-class-sets lan-pg class best-effort-1 user@switch# set forwarding-class-sets lan-pg class best-effort-2
Define the
san-pg
priority group and assign to it the forwarding classesfcoe
andfcoe-2
:[edit class-of-service] user@switch# set forwarding-class-sets san-pg class fcoe user@switch# set forwarding-class-sets san-pg class fcoe-2
Define the
hpc-pg
priority group and assign to it the forwarding classesnc
andhigh-perf
:[edit class-of-service] user@switch# set forwarding-class-sets hpc-pg class nc user@switch# set forwarding-class-sets hpc-pg class high-perf
Map the three forwarding class sets to an interface (the output traffic control profiles associated with the forwarding class sets determine the class of service scheduling for the priority groups):
[edit class-of-service] user@switch# set interfaces xe-0/0/7 forwarding-class-set lan-pg output-traffic-control-profile lan-tcp user@switch# set interfaces xe-0/0/7 forwarding-class-set san-pg output-traffic-control-profile san-tcp user@switch# set interfaces xe-0/0/7 forwarding-class-set hpc-pg output-traffic-control-profile hpc-tcp
Verification
To verify the priority group configuration, perform these tasks:
Verifying Forwarding Class Set Membership
Purpose
Verify that you configured the lan-pg
, san-pg
, and hpc-pg
priority groups with the correct
forwarding classes.
Action
List the forwarding class set member configuration using
the operational mode command show configuration class-of-service
forwarding-class-sets
:
user@switch> show configuration class-of-service forwarding-class-sets lan-pg { class best-effort-1; class best-effort-2; } san-pg { class fcoe; class fcoe-2; } hpc-pg { class high-perf; class nc; }
Verifying the Egress Interface Configuration
Purpose
Verify that egress interface xe-0/0/7
is
associated with the lan-pg
, san-pg
, and hpc-pg
priority groups and with the correct output traffic
control profiles.
Action
Display the egress interface using the operational mode
command show configuration class-of-service interfaces xe-0/0/7
:
user@switch> show configuration class-of-service interfaces xe-0/0/7 forwarding-class-set { lan-pg { output-traffic-control-profile lan-tcp; } san-pg { output-traffic-control-profile san-tcp; } hpc-pg { output-traffic-control-profile hpc-tcp; } }