- 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 Queue Schedulers for Port Scheduling
Schedulers define the CoS properties of output queues. You configure CoS properties in a scheduler, then map the scheduler to a forwarding class. Forwarding classes are in turn mapped to output queues. Classifiers map incoming traffic into forwarding classes based on IEEE 802.1p, DSCP, or EXP code points. CoS scheduling properties include the amount of interface bandwidth assigned to the queue, the priority of the queue, whether explicit congestion notification (ECN) is enabled on the queue, and the WRED packet drop profiles associated with the queue.
Configuring a CoS Scheduler
CLI Quick Configuration
To quickly configure a queue scheduler, 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 transmit-rate percent 20 set schedulers be-sched buffer-size percent 20 set schedulers be-sched excess-rate percent 20 set schedulers be-sched priority low set schedulers be-sched drop-profile-map loss-priority low protocol any drop-profile be-dp set scheduler-maps be-map forwarding-class best-effort scheduler be-sched set interfaces xe-0/0/7 scheduler-map be-map
Step-by-Step Procedure
To configure a CoS scheduler:
Create scheduler (
be-sched
) and map it to the drop profilebe-dp
:content_copy zoom_out_map[edit class-of-service schedulers] user@switch# set be-sched transmit-rate percent 20 user@switch# set be-sched buffer-size percent 20 user@switch# set be-sched excess-rate percent 20 user@switch# set be-sched priority low user@switch# set be-sched drop-profile-map loss-priority low protocol any drop-profile be-dp
Note:Because ECN is disabled by default, no ECN configuration is shown.
Configure scheduler map (
be-map
) to associate the scheduler (be-sched
) with the forwarding class (best-effort
):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 an interface to apply scheduling to the best-effort forwarding class output queue:
content_copy zoom_out_map[edit class-of-service] set interfaces xe-0/0/7 scheduler-map be-map
Requirements
This example uses the following hardware and software components:
One QFX10000 switch.
Junos OS Release 15.1X53-D10 or later for the QFX Series
Overview
Scheduler parameters define the following characteristics for the queues mapped to the scheduler:
The parameters you configure in a scheduler define the following characteristics for the queues mapped to the scheduler:
priority
—One of three bandwidth priorities that queues associated with a scheduler can receive:low
—The scheduler has low priority.high
—The scheduler has high priority. High priority traffic takes precedence over low priority traffic.strict-high
—The scheduler has strict-high priority. Strict-high priority queues receive preferential treatment over low-priority queues and receive all of their configured bandwidth before low-priority queues are serviced. Low-priority queues do not transmit traffic until strict-high priority queues are empty.Note:We strongly recommend that you configure a transmit rate on all strict-high priority queues to limit the amount of traffic the switch treats as strict-high priority traffic and prevent strict-high priority queues from starving other queues on the port. This is especially important if you configure more than one strict-high priority queue on a port. If you do not configure a transmit rate to limit the amount of bandwidth strict-high priority queues can use, then the strict-high priority queues can use all of the available port bandwidth and starve other queues on the port.
The switch treats traffic in excess of the transmit rate as best-effort traffic that receives bandwidth from the leftover (excess) port bandwidth pool. On strict-high priority queues, all traffic that exceeds the transmit rate shares in the port excess bandwidth pool based on the strict-high priority excess bandwidth sharing weight of “1”, which is not configurable. The actual amount of extra bandwidth that traffic exceeding the transmit rate receives depends on how many other queues consume excess bandwidth and the excess rates of those queues.
transmit-rate
—Minimum guaranteed bandwidth, also known as the committed information rate (CIR), set as a percentage rate or as an absolute value in bits per second. By default, the transmit rate also determines the amount of excess (extra) port bandwidth the queue can share if you do not explicitly configure an excess rate. Extra bandwidth is allocated among the queues on the port in proportion to the transmit rate of each queue. On queues that are not strict-high priority queues, you can configure a transmit rate asexact
, which shapes the transmission by setting the transmit rate as the maximum bandwidth the queue can consume on the port.On strict-high priority queues, the transmit rate sets the amount of bandwidth used for strict-high priority forwarding; traffic in excess of the transmit rate is treated as best-effort traffic that receives the queue excess rate.
Note:Include the preamble bytes and interframe gap (IFG) bytes as well as the data bytes in your bandwidth calculations.
excess-rate
—Percentage of extra bandwidth (bandwidth that is not used by other queues) a low-priority queue can receive. If not set, the switch uses the transmit rate to determine extra bandwidth sharing. You cannot set an excess rate on a strict-high priority queue.drop-profile-map
—Drop profile mapping to a packet loss priority to apply WRED to the scheduler and control packet drop for different packet loss priorities during periods of congestion.buffer-size
—Size of the queue buffer as a percentage of the dedicated buffer space on the port, or as a proportional share of the dedicated buffer space on the port that remains after the explicitly configured queues are served.explicit-congestion-notification
—ECN enable on a best-effort queue. ECN enables end-to-end congestion notification between two ECN-enabled endpoints on TCP/IP based networks. ECN must be enabled on both endpoints and on all of the intermediate devices between the endpoints for ECN to work properly. ECN is disabled by default.
Do not configure drop profiles for the fcoe and no-loss forwarding classes. FCoE and other lossless traffic queues require lossless behavior. Use priority-based flow control (PFC) to prevent frame drop on lossless priorities.
Scheduler maps map schedulers to forwarding classes, and forwarding classes are mapped to output queues. After you configure schedulers and map them to forwarding classes in a scheduler map, you attach the scheduler map to an interface to implement the configured scheduling on output queues on that interface.
This process configures the bandwidth properties, scheduling, priority, and WRED characteristics that you map to forwarding classes (and thus to output queues) in a scheduler map.
Table 1 shows the configuration components for this example.
Component | Settings |
---|---|
Hardware | One switch |
Scheduler | Name: |
Scheduler map | Name: |
Verification
To verify that the queue scheduler has been created and is mapped to the correct interfaces, perform these tasks:
- Verifying the Scheduler Configuration
- Verifying the Scheduler Map Configuration
- Verifying That the Scheduler Is Associated with the Interface
Verifying the Scheduler Configuration
Purpose
Verify that the queue scheduler be-sched
has been created with a minimum guaranteed bandwidth (transmit-rate
) of 2 Gbps, an extra bandwidth sharing rate (excess-rate
) of 20 percent, the
priority set to low
, and the drop profile be-dp
.
Action
Display the scheduler using the operational mode command show configuration class-of-service schedulers be-sched
:
user@switch> show configuration class-of-service schedulers be-sched transmit-rate percent 20; buffer-size percent 20; excess-rate percent 20; priority low; drop-profile-map loss-priority low protocol any drop-profile be-dp;
Verifying the Scheduler Map Configuration
Purpose
Verify that the scheduler map be-map
has
been created and associates the forwarding class best-effort
with the scheduler be-sched
.
Action
Display the scheduler map using the operational mode
command show configuration class-of-service scheduler-maps be-map
:
user@switch> show configuration class-of-service scheduler-maps be-map forwarding-class best-effort scheduler be-sched;
Verifying That the Scheduler Is Associated with the Interface
Purpose
Verify that the scheduler map be-sched
is
attached to interface xe-0/0/7
.
Action
List the 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 scheduler-map be-map;