- play_arrow Basic CoS Configuration
- play_arrow CoS Overview
- play_arrow CoS on Interfaces
- play_arrow CoS Code-Point Aliases
- play_arrow CoS Classifiers
- Understanding CoS Classifiers
- Defining CoS BA Classifiers (DSCP, DSCP IPv6, IEEE 802.1p)
- Example: Configuring Classifiers
- Example: Configuring Unicast Classifiers
- Example: Configuring Multidestination (Multicast, Broadcast, DLF) Classifiers
- Understanding Host Inbound Traffic Classification
- Configuring a Global MPLS EXP Classifier
- Monitoring CoS Classifiers
- play_arrow CoS Rewrite Rules
- Understanding CoS Rewrite Rules
- Defining CoS Rewrite Rules
- Understanding Applying CoS Classifiers and Rewrite Rules to Interfaces
- Troubleshooting an Unexpected Rewrite Value
- Understanding CoS MPLS EXP Classifiers and Rewrite Rules
- Configuring Rewrite Rules for MPLS EXP Classifiers
- Monitoring CoS Rewrite Rules
- play_arrow CoS Forwarding Classes and Forwarding Class Sets
- Understanding CoS Forwarding Classes
- Defining CoS Forwarding Classes
- Forwarding Policy Options Overview
- Configuring CoS-Based Forwarding
- Example: Configuring CoS-Based Forwarding
- Example: Configuring Forwarding Classes
- Understanding CoS Forwarding Class Sets (Priority Groups)
- Defining CoS Forwarding Class Sets
- Example: Configuring Forwarding Class Sets
- Monitoring CoS Forwarding Classes
- play_arrow Lossless Traffic Flows, Ethernet PAUSE Flow Control, and PFC
- Understanding CoS IEEE 802.1p Priorities for Lossless Traffic Flows
- Configuring CoS PFC (Congestion Notification Profiles)
- Understanding CoS Flow Control (Ethernet PAUSE and PFC)
- Enabling and Disabling CoS Symmetric Ethernet PAUSE Flow Control
- Configuring CoS Asymmetric Ethernet PAUSE Flow Control
- Understanding PFC Functionality Across Layer 3 Interfaces
- Example: Configuring PFC Across Layer 3 Interfaces
- Understanding PFC Using DSCP at Layer 3 for Untagged Traffic
- Configuring DSCP-based PFC for Layer 3 Untagged Traffic
- play_arrow CoS and Host Outbound Traffic
-
- play_arrow Weighted Random Early Detection (WRED) and Explicit Congestion Notification (ECN)
- play_arrow WRED and Drop Profiles
- play_arrow Explicit Congestion Notification (ECN)
-
- play_arrow Data Center Bridging and Lossless FCoE
- play_arrow Data Center Bridging
- Understanding DCB Features and Requirements
- Understanding DCBX
- Configuring the DCBX Mode
- Configuring DCBX Autonegotiation
- Understanding DCBX Application Protocol TLV Exchange
- Defining an Application for DCBX Application Protocol TLV Exchange
- Configuring an Application Map for DCBX Application Protocol TLV Exchange
- Applying an Application Map to an Interface for DCBX Application Protocol TLV Exchange
- Example: Configuring DCBX Application Protocol TLV Exchange
- play_arrow Lossless FCoE
- Example: Configuring CoS PFC for FCoE Traffic
- Example: Configuring CoS for FCoE Transit Switch Traffic Across an MC-LAG
- Example: Configuring CoS Using ELS for FCoE Transit Switch Traffic Across an MC-LAG
- Example: Configuring Lossless FCoE Traffic When the Converged Ethernet Network Does Not Use IEEE 802.1p Priority 3 for FCoE Traffic (FCoE Transit Switch)
- Example: Configuring Two or More Lossless FCoE Priorities on the Same FCoE Transit Switch Interface
- Example: Configuring Two or More Lossless FCoE IEEE 802.1p Priorities on Different FCoE Transit Switch Interfaces
- Example: Configuring Lossless IEEE 802.1p Priorities on Ethernet Interfaces for Multiple Applications (FCoE and iSCSI)
- Troubleshooting Dropped FCoE Traffic
-
- play_arrow CoS Buffers and the Shared Buffer Pool
- play_arrow CoS Buffers Overview
- play_arrow Shared Buffer Pool Examples
- Example: Recommended Configuration of the Shared Buffer Pool for Networks with Mostly Best-Effort Unicast Traffic
- Example: Recommended Configuration of the Shared Buffer Pool for Networks with Mostly Best-Effort Traffic on Links with Ethernet PAUSE Enabled
- Example: Recommended Configuration of the Shared Buffer Pool for Networks with Mostly Multicast Traffic
- Example: Recommended Configuration of the Shared Buffer Pool for Networks with Mostly Lossless Traffic
-
- play_arrow CoS on EVPN VXLANs
- play_arrow Configuration Statements and Operational Commands
ON THIS PAGE
Example: Configuring Maximum Output Bandwidth
Scheduling the maximum output bandwidth for a queue (forwarding class) requires configuring both tiers of the hierarchical scheduler. One tier is scheduling the resources for the individual queue. The other tier is scheduling the resources for the priority group (forwarding class set) to which the queue belongs. You can use priority group and queue shaping to prevent traffic from using more bandwidth than you want the traffic to receive.
Configuring Maximum Bandwidth
CLI Quick Configuration
To quickly configure the maximum bandwidth for a priority group and a queue, copy the following commands, paste them in a text file, remove line breaks, change variables and details to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level:
[edit class-of-service] set schedulers be-sched shaping-rate percent 4g set traffic-control-profiles be-tcp shaping-rate 6g set scheduler-maps be-map forwarding-class best-effort scheduler be-sched set traffic-control-profiles be-tcp scheduler-map be-map set forwarding-class-sets be-pg class best-effort set interfaces xe-0/0/7 forwarding-class-set be-pg output-traffic-control-profile be-tcp
Step-by-Step Procedure
To configure the maximum bandwidth hierarchical scheduling for a queue and a priority group:
Configure the maximum queue bandwidth of 4 Gbps for scheduler
be-sched
:content_copy zoom_out_map[edit class-of-service schedulers] user@switch# set be-sched shaping-rate 4g
Configure the maximum priority group bandwidth of 6 Gbps for traffic control profile
be-tcp
:content_copy zoom_out_map[edit class-of-service traffic-control-profiles] user@switch# set be-tcp shaping-rate 6g
Associate the scheduler
be-sched
with thebest-effort
queue in the scheduler mapbe-map
:content_copy zoom_out_map[edit class-of-service scheduler-maps] user@switch# set be-map forwarding-class best-effort scheduler be-sched
Associate the scheduler map with the traffic control profile:
content_copy zoom_out_map[edit class-of-service traffic-control-profiles] user@switch# set be-tcp scheduler-map be-map
Assign the
best-effort
queue to the priority groupbe-pg
:content_copy zoom_out_map[edit class-of-service forwarding-class-sets] user@switch# set be-pg class best-effort
Apply the configuration to interface
xe-0/0/7
:content_copy zoom_out_map[edit class-of-service interfaces] user@switch# set xe-0/0/7 forwarding-class-set be-pg output-traffic-control-profile be-tcp
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 or later for the QFX Series or Junos OS Release 14.1X53-D20 or later for the OCX Series
Overview
The priority group maximum bandwidth defines the maximum total amount of bandwidth available for all of the queues in the priority group.
The shaping-rate
setting in the scheduler configuration determines the maximum bandwidth for an individual queue.
The shaping-rate
setting in the traffic control profile configuration determines the maximum bandwidth for a priority group.
When you configure bandwidth for a queue or a priority group, the switch considers only the data as the configured bandwidth. The switch does not account for the bandwidth consumed by the preamble and the interframe gap (IFG). Therefore, when you calculate and configure the bandwidth requirements for a queue or for a priority group, consider the preamble and the IFG as well as the data in the calculations.
When you set the maximum bandwidth (shaping-rate
) for a queue or for a priority group at 100 Kbps or less, the traffic shaping behavior is accurate only within +/– 20 percent of the configured shaping-rate
value.
This example describes how to:
Configure a maximum rate of 4 Gbps for queues in a scheduler named
be-sched
.Configure a maximum rate of 6 Gbps for a priority group in a traffic control profile named
be-tcp
.Assign the scheduler to a queue named
best-effort
by using a scheduler map namedbe-map
.Associate the scheduler map
be-map
with the traffic control profilebe-tcp
.Assign the queue
best-effort
to a priority group namedbe-pg
.Assign the priority group and the bandwidth scheduling to the interface
xe-0/0/7
.
Table 1 shows the configuration components for this example:
Component | Settings |
---|---|
Hardware | QFX3500 switch |
Maximum queue bandwidth | Shaping rate: |
Maximum priority group bandwidth | Shaping rate: |
Scheduler |
|
Scheduler map |
|
Traffic control profile |
|
Forwarding class set (priority group) |
|
Queue (forwarding class) |
|
Egress interface |
|
Verification
To verify the maximum output bandwidth configuration, perform these tasks:
- Verifying the Maximum Queue Bandwidth
- Verifying the Priority Group Maximum Bandwidth and Scheduler Map Association
- Verifying the Scheduler Map Configuration
- Verifying Queue (Forwarding Class) Membership in the Priority Group
- Verifying the Egress Interface Configuration
Verifying the Maximum Queue Bandwidth
Purpose
Verify that you configured the maximum queue bandwidth as 4g
in the scheduler be-sched
.
Action
List the maximum bandwidth in the be-sched
scheduler configuration using the operational mode command show configuration class-of-service schedulers be-sched shaping-rate
:
user@switch> show configuration class-of-service schedulers be-sched shaping-rate 4g;
Verifying the Priority Group Maximum Bandwidth and Scheduler Map Association
Purpose
Verify that the maximum priority group bandwidth is 6g
and the attached scheduler map is be-map
in the traffic control profile be-tcp
.
Action
List the maximum bandwidth in the be-tcp
traffic control profile configuration using the operational mode command show configuration class-of-service traffic-control-profiles be-tcp shaping-rate
:
user@switch> show configuration class-of-service traffic-control-profiles be-tcp shaping-rate 6g;
List the scheduler map in the be-tcp
traffic control profile configuration using the operational mode command show configuration class-of-service traffic-control-profiles be-tcp scheduler-map
:
user@switch> show configuration class-of-service traffic-control-profiles be-tcp scheduler-map scheduler-map be-map;
Verifying the Scheduler Map Configuration
Purpose
Verify that the scheduler map be-map
maps the forwarding class best-effort
to the scheduler be-sched
.
Action
List the be-map
scheduler map configuration using the operational mode command show configuration class-of-service schedulers maps be-map
:
user@switch> show configuration class-of-service scheduler-maps be-map forwarding-class best-effort scheduler be-sched;
Verifying Queue (Forwarding Class) Membership in the Priority Group
Purpose
Verify that the forwarding class set be-pg
includes the forwarding class best-effort
.
Action
List the be-pg
forwarding class set configuration using the operational mode command show configuration class-of-service forwarding-class-sets be-pg
:
user@switch> show configuration class-of-service forwarding-class-sets be-pg class best-effort;
Verifying the Egress Interface Configuration
Purpose
Verify that the forwarding class set be-pg
and the traffic control profile be-tcp
are attached to egress interface xe-0/0/7
.
Action
List 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 { be-pg { output-traffic-control-profile be-tcp; } }