- play_arrow Classifying and Rewriting Traffic
- play_arrow Using Classifiers, Forwarding Classes, and Rewrite Rules
- Understanding Default CoS Scheduling and Classification
- Understanding CoS Classifiers
- Defining CoS BA Classifiers (DSCP, DSCP IPv6, IEEE 802.1p)
- Defining CoS BA Classifiers (DSCP, DSCP IPv6, IEEE 802.1p)
- Understanding Host Inbound Traffic Classification
- Understanding CoS Code-Point Aliases
- Defining CoS Code-Point Aliases
- Understanding CoS Forwarding Classes
- Defining CoS Forwarding Classes
- Example: Configuring Forwarding Classes
- Understanding CoS Forwarding Class Sets (Priority Groups)
- Defining CoS Forwarding Class Sets
- Example: Configuring Forwarding Class Sets
- Understanding Host Routing Engine Outbound Traffic Queues and Defaults
- Changing the Host Outbound Traffic Default Queue Mapping
- Understanding CoS Rewrite Rules
- Defining CoS Rewrite Rules
- Understanding Applying CoS Classifiers and Rewrite Rules to Interfaces
- Troubleshooting an Unexpected Rewrite Value
- play_arrow Configuration Statements for Classifiers and Rewrite Rules
- class (Forwarding Classes)
- class (Forwarding Class Sets)
- classifiers
- code-point (Rewrite Rules)
- code-point-aliases
- code-points
- dscp
- dscp-ipv6
- dscp-code-point
- forwarding-class
- forwarding-class (Host Outbound Traffic)
- forwarding-class-sets
- forwarding-classes
- host-outbound-traffic
- ieee-802.1
- import
- interfaces (Class of Service)
- loss-priority (Classifiers)
- loss-priority (Rewrite Rules)
- multi-destination
- queue-num
- rewrite-rules
- unit
- play_arrow Monitoring Commands for Classifiers and Rewrite Rules
- Monitoring CoS Classifiers
- Monitoring CoS Forwarding Classes
- Monitoring CoS Rewrite Rules
- Monitoring CoS Code-Point Value Aliases
- show class-of-service classifier
- show class-of-service code-point-aliases
- show class-of-service forwarding-class
- show class-of-service forwarding-class-set
- show class-of-service forwarding-table
- show class-of-service forwarding-table classifier
- show class-of-service forwarding-table classifier mapping
- show class-of-service forwarding-table rewrite-rule
- show class-of-service forwarding-table rewrite-rule mapping
- show class-of-service interface
- show class-of-service multi-destination
- show class-of-service rewrite-rule
-
- play_arrow Scheduling Traffic
- play_arrow Using Schedulers
- Understanding Default CoS Scheduling and Classification
- Understanding CoS Scheduling Behavior and Configuration Considerations
- Understanding CoS Output Queue Schedulers
- Defining CoS Queue Schedulers
- Example: Configuring Queue Schedulers
- Defining CoS Queue Scheduling Priority
- Example: Configuring Queue Scheduling Priority
- Understanding CoS Traffic Control Profiles
- Understanding CoS Priority Group Scheduling
- Defining CoS Traffic Control Profiles (Priority Group Scheduling)
- Example: Configuring Traffic Control Profiles (Priority Group Scheduling)
- Understanding CoS Hierarchical Port Scheduling (ETS)
- Example: Configuring CoS Hierarchical Port Scheduling (ETS)
- Understanding CoS Priority Group and Queue Guaranteed Minimum Bandwidth
- Example: Configuring Minimum Guaranteed Output Bandwidth
- Understanding CoS Priority Group Shaping and Queue Shaping (Maximum Bandwidth)
- Example: Configuring Maximum Output Bandwidth
- Understanding CoS WRED Drop Profiles
- Configuring CoS WRED Drop Profiles
- Example: Configuring WRED Drop Profiles
- Configuring CoS Drop Profile Maps
- Example: Configuring Drop Profile Maps
- Understanding CoS Explicit Congestion Notification
- Example: Configuring ECN
- Troubleshooting Egress Bandwidth That Exceeds the Configured Minimum Bandwidth
- Troubleshooting Egress Bandwidth That Exceeds the Configured Maximum Bandwidth
- Troubleshooting Egress Queue Bandwidth Impacted by Congestion
- play_arrow Configuration Statements for Scheduling
- buffer-size
- drop-probability
- drop-profile
- drop-profile-map
- drop-profiles
- explicit-congestion-notification
- fill-level
- forwarding-class
- forwarding-class-set
- guaranteed-rate
- interpolate
- loss-priority (Drop Profiles)
- output-traffic-control-profile
- priority (Schedulers)
- protocol (Drop Profile Map)
- scheduler
- scheduler-map
- scheduler-maps
- schedulers
- shaping-rate
- traffic-control-profiles
- transmit-rate
- play_arrow Monitoring Commands for Scheduling
- Monitoring CoS Scheduler Maps
- show class-of-service drop-profile
- show class-of-service forwarding-table
- show class-of-service forwarding-table drop-profile
- show class-of-service forwarding-table scheduler-map
- show class-of-service interface
- show class-of-service scheduler-map
- show class-of-service traffic-control-profile
- show interfaces queue
-
- play_arrow Ethernet PAUSE
- play_arrow Using Ethernet PAUSE
- play_arrow Configuration Statements for Ethernet PAUSE
-
- play_arrow Buffers
- play_arrow Using Buffers
- Understanding CoS Buffer Configuration
- Configuring Global Ingress and Egress Shared Buffers
- 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
- play_arrow Configuration Statements for Buffers
- play_arrow Monitoring Commands for Buffers
-
- play_arrow Downloads
Overview of CoS on OCX Series Switches
Many Juniper Networks data center switching platforms are optimized for Layer 2 Ethernet transport. However, OCX Series switches are optimized for Layer 3 IP transport. This difference results in some differences in class-of-service (CoS) feature support on OCX Series switches compared with, for example, QFX Series switches. This topic describes those differences.
In addition, some Juniper Networks documentation is shared among different Juniper Networks platforms. Because of this, you might see references to lossless transport, data center bridging exchange (DCBX) protocol, priority-based flow control (PFC), and Fibre Channel over Ethernet (FCoE) in the documentation. These references do not apply to OCX Series switches.
Supported CoS Features
OCX Series switches support the following CoS features:
Incoming packet classification on Layer 3 physical interfaces when at least one logical interface is defined on the physical interface:
DSCP, DSCP IPv6, and IEEE 802.1p behavior aggregate (BA) classifiers
Fixed classifiers
Multifield classifiers
The default DSCP BA classifier is the default classifier. It maps incoming unicast traffic into the best-effort (queue 0) and network-control (queue 7) forwarding classes.
Up to eight unicast forwarding classes and up to four multidestination (multicast, broadcast, destination lookup fail) forwarding classes.
DSCP, DSCP IPv6, and IEEE 802.1p rewrite rules on Layer 3 physical interfaces when at least one logical interface is defined on the physical interface.
Hierarchical, two-tier port scheduling, also known as enhanced transmission selection (ETS).
Per output queue control of forwarding classes:
Guaranteed minimum bandwidth
Maximum bandwidth
Scheduling priority
Weighted random early detection (WRED) packet drop characteristics for congestion management
Explicit congestion notification (ECN).
Symmetric Ethernet PAUSE flow control.
Shared and dedicated buffer pool configuration.
Unsupported Lossless Transport Features
OCX Series switches do not support lossless transport. Lossless transport does not refer to best-effort traffic on a link with Ethernet PAUSE enabled. Lossless transport refers to traffic classified into lossless forwarding classes on which you enable priority-based flow control (PFC) (defined in IEEE 802.1Qbb). OCX Series switches do not support lossless forwarding classes and do not support PFC.
Unsupported Default Lossless Unicast Forwarding Classes
Because the Junos OS software is common to several data center switching platforms, two of the five default forwarding classes are lossless forwarding classes (the unicast fcoe and no-loss forwarding classes, which are mapped by default to output queue 3 and output queue 4, respectively). On OCX Series switches, the default fcoe and no-loss forwarding classes are not supported.
The default fcoe and no-loss lossless forwarding classes carry the no-loss packet drop attribute. On OCX Series switches, the no-loss packet drop attribute is not supported. Do not classify traffic into the default fcoe or no-loss forwarding classes. Do not configure a forwarding class with the no-loss packet drop attribute.
You can use queues 3 and 4, but you must configure a forwarding class and map it to the desired queue, configure a classifier to map incoming traffic to the forwarding class, and then apply the classifier to the appropriate interfaces.
The forwarding class names fcoe and no-loss are just that—names. If you want to carry traffic on queue 3 or queue 4, you can remove the no-loss packet drop attribute from these forwarding classes without changing the names. Or, you can change the forwarding class names to something else, just as long as you do not configure the no-loss packet drop attribute on the forwarding class.
For example, to configure a new forwarding class named be2, map it to queue 3, map traffic identified by DSCP code point 001010 to forwarding class be2, and apply the configuration to interface xe-0/0/20:
- Configure a new forwarding class named be2, without the
no-loss attribute, and map it to queue 3:
[edit class-of-service]
user@switch# set forwarding-classes class be2 queue-num 3 - Configure a classifier named be_classifier to classify
incoming traffic with DSCP code point 001010 into forwarding class
be2:
[edit class-of-service]
user@switch# set classifiers dscp be_classifier import default forwarding-class be2 loss-priority low code-points 001010Importing the default classifier bases the new classifier on the default classifier. The default packet classification is retained, except for the changes you make to the classifier configuration. In this case, you are adding a new mapping to the classifier default mapping and saving it as classifier be_classifier.
- Apply the classifier to interface xe-0/0/20:
[edit class-of-service]
user@switch# set interfaces xe-0/0/20 classifiers dscp be_classifier
In addition to configuring the forwarding class and packet classification, you must also add the new forwarding class to a forwarding class set, and apply the forwarding class set to interfaces in order to associate the traffic in a forwarding class with interfaces. For completeness, here are example statements to accomplish this
This brief addition to the example configures a forwarding class set named be_fc_set, maps forwarding class be2 and default forwarding class best-effort to be_fc_set, and applies be_fc_set to interface xe-0/0/20:
[edit class-of-service]
user@switch# set forwarding-class-sets be_fc_set class be2
user@switch# set forwarding-class-sets be_fc_set class
best-effort
user@switch# set interfaces xe-0/0/20 forwarding-class-set be_fc_set
Because this example classifies traffic into a forwarding class that is mapped to one of the queues that the default scheduler services, traffic receives the default scheduling (bandwidth and priority) for that queue. If you classify traffic into a forwarding class that is mapped to a queue that does not receive default scheduling, configure a queue scheduler for the traffic to ensure that the traffic receives a minimum amount of bandwidth during periods of congestion.
Effect of Unsupported Unicast Lossless Forwarding Classes on Bandwidth Scheduling
The default scheduler provides bandwidth and scheduling priority for unicast queues as shown in Table 1:
Table 1: Default Scheduler Configuration
Default Scheduler and Queue Number | Transmit Rate (Minimum Guaranteed Bandwidth) | Priority |
---|---|---|
best-effort forwarding class scheduler (queue 0) | 5% | low |
fcoe forwarding class scheduler (queue 3) | 35% | low |
no-loss forwarding class scheduler (queue 4) | 35% | low |
network-control forwarding class scheduler (queue 7) | 5% | low |
mcast forwarding class scheduler (queue 8) | 20% | low |
Because the default DSCP classifier maps unicast traffic only into queue 0 and queue 7, the 35 percent of the bandwidth allocated to queue 3 and queue 4 are shared with the traffic-bearing queues. However, if you create a new forwarding class and map it to queue 3 or queue 4, the traffic classified into that forwarding class receives the scheduling resources shown in Table 1. If you want to change the default scheduler bandwidth allocations, configure a hierarchical port scheduler.
If you want to map unicast traffic to queues other than the default queues, configure a hierarchical port scheduler to allocate port bandwidth resources to the queues.
Priority-Based Flow Control
OCX Series switches do not support PFC, and they do not support configuration of the [edit class-of-service congestion-notification-profile] hierarchy in the CLI or applying a congestion notification profile to an interface. In the rest of the CoS documentation set, information about PFC does not apply to OCX Series switches.
DCBX
OCX Series switches do not support DCBX, and they do not support configuration of the [edit class-of-service congestion-notification-profile] hierarchy in the CLI. In the rest of the CoS documentation set, information about DCBX does not apply to OCX Series switches.
Unsupported CoS Features
OCX Series switches do not support the following CoS features that some other data center switches support:
CoS on Layer 2 interfaces (OCX Series switches do not support family ethernet-switching interfaces).
Incoming MPLS EXP packet classification (OCX Series switches do not support MPLS and do not support the [edit class-of-service system-defaults classifiers] hierarchy).
Lossless transport.
Default lossless forwarding classes (fcoe and no-loss forwarding classes).
No-loss packet drop attribute; do not apply the no-loss packet drop attribute to any forwarding class, and do not use the default fcoe and no-loss forwarding classes, which carry the no-loss packet drop attribute by default.
Priority-based flow control (PFC).
Data center bridging exchange (DCBX) protocol.
Outgoing MPLS EXP rewrite rules (OCX Series switches do not support MPLS).
Asymmetric Ethernet PAUSE flow control.