Table of Contents

About This Guide
Junos Documentation and Release Notes
Objectives
Audience
Supported Platforms
Using the Indexes
Using the Examples in This Manual
Documentation Conventions
Documentation Feedback
Requesting Technical Support
CoS Overview
CoS Overview
CoS Overview
CoS Standards
Understanding Packet Flow Across a Network
Junos CoS Components
Default CoS Settings
CoS Input and Output Configuration
CoS Inputs and Outputs Overview
CoS Inputs and Outputs Examples
Packet Flow Within Routers
Packet Flow Within Routers Overview
Packet Flow on Juniper Networks J Series Services Routers
Packet Flow on Juniper Networks M Series Multiservice Edge Routers
Incoming I/O Manager ASIC
Internet Processor ASIC
Outgoing I/O Manager ASIC
Enhanced CFEB and CoS on M7i and M10i Multiservice Edge Routers
Packet Flow on MX Series Ethernet Services Routers
Example of Packet Flow on MX Series Ethernet Services Routers
Packet Flow on Juniper Networks T Series Core Routers
Incoming Switch Interface ASICs
T Series Routers Internet Processor ASIC
Queuing and Memory Interface ASICs
Outgoing Switch Interface ASICs
Packet Flow Through the CoS Process
Packet Flow Through the CoS Process Overview
Packet Flow Through the CoS Process Configuration Example
CoS Applications Overview
Interface Types That Do Not Support CoS
VPLS and Default CoS Classification
Class of Service Configuration Statements
[edit chassis] Hierarchy Level
[edit class-of-service] Hierarchy Level
[edit firewall] Hierarchy Level
[edit interfaces] Hierarchy Level
[edit services cos] Hierarchy Level
CoS Configuration Components
Classifying Packets by Behavior Aggregate
BA Classifier Overview
BA Classifier Configuration Hierarchy
Overview of BA Classifier Types
Default Behavior Aggregate Classification Overview
BA Classifier Default Values
Default IP Precedence Classifier (ipprec-compatibility)
Default MPLS EXP Classifier
Default DSCP and DSCP IPv6 Classifier
Default IEEE 802.1p Classifier
Default IEEE 802.1ad Classifier
Default IP Precedence Classifier (ipprec-default)
Defining Classifiers
Importing a Classifier
Applying Classifiers to Logical Interfaces
Configuring BA Classifiers for Bridged Ethernet
Tunneling and BA Classifiers
Applying DSCP IPv6 Classifiers
Applying MPLS EXP Classifiers to Routing Instances
Configuring Global Classifiers and Wildcard Routing Instances
Examples: Applying MPLS EXP Classifiers to Routing Instances
Applying MPLS EXP Classifiers for Explicit-Null Labels
Setting Packet Loss Priority
Example: Overriding the Default PLP on M320 Routers
Configuring and Applying IEEE 802.1ad Classifiers
Defining Custom IEEE 802.1ad Maps
Applying Custom IEEE 802.1ad Maps
Verifying Custom IEEE 802.1ad Map Configuration
BA Classifiers and ToS Translation Tables
Defining Code-Point Aliases
Default Code-Point Alias Overview
Default CoS Values
Defining Code Point Aliases for Bit Patterns
Classifying Packets Based on Various Packet Header Fields
Multifield Classifier Overview
Configuring Multifield Classifiers
Example: Classifying Packets Based on Their Destination Address
Example: Configuring and Verifying a Complex Multifield Filter
Configuring a Complex Multifield Filter
Verifying a Complex Multifield Filter
Example: Writing Different DSCP and EXP Values in MPLS-Tagged IP Packets
Overview of Simple Filters
Example: Configuring a Simple Filter
Configuring Logical Bandwidth Policers
Example: Configuring a Logical Bandwidth Policer
Two-Color Policers and Shaping Rate Changes
Example: Two-Color Policers and Shaping Rate Changes
Configuring Tricolor Marking Policers
Policer Overview
Platform Support for Tricolor Marking
Tricolor Marking Architecture
Configuring Tricolor Marking
Tricolor Marking Limitations
Configuring Single-Rate Tricolor Marking
Configuring Color-Blind Mode for Single-Rate Tricolor Marking
Configuring Color-Aware Mode for Single-Rate Tricolor Marking
Effect on Low PLP of Single-Rate Policer
Effect on Medium-Low PLP of Single-Rate Policer
Effect on Medium-High PLP of Single-Rate Policer
Effect on High PLP of Single-Rate Policer
Configuring Two-Rate Tricolor Marking
Configuring Color-Blind Mode for Two-Rate Tricolor Marking
Configuring Color-Aware Mode for Two-Rate Tricolor Marking
Effect on Low PLP of Two-Rate Policer
Effect on Medium-Low PLP of Two-Rate Policer
Effect on Medium-High PLP of Two-Rate Policer
Effect on High PLP of Two-Rate Policer
Enabling Tricolor Marking
Configuring Tricolor Marking Policers
Applying Tricolor Marking Policers to Firewall Filters
Example: Applying a Two-Rate Tricolor Marking Policer to a Firewall Filter
Applying Firewall Filter Tricolor Marking Policers to Interfaces
Example: Applying a Single-Rate Tricolor Marking Policer to an Interface
Applying Layer 2 Policers to Gigabit Ethernet Interfaces
Examples: Applying Layer 2 Policers to a Gigabit Ethernet Interface
Using BA Classifiers to Set PLP
Using Multifield Classifiers to Set PLP
Configuring PLP for Drop-Profile Maps
Configuring Rewrite Rules Based on PLP
Example: Configuring and Verifying Two-Rate Tricolor Marking
Applying a Policer to the Input Interface
Applying Profiles to the Output Interface
Marking Packets with Medium-Low Loss Priority
Verifying Two-Rate Tricolor Marking Operation
Configuring Forwarding Classes
Overview of Forwarding Classes
Default Forwarding Classes
Configuring Forwarding Classes
Applying Forwarding Classes to Interfaces
Classifying Packets by Egress Interface
Assigning Forwarding Class and DSCP Value for Routing Engine–Generated Traffic
Overriding Fabric Priority Queuing
Configuring Up to 16 Forwarding Classes
Enabling Eight Queues on Interfaces
Multiple Forwarding Classes and Default Forwarding Classes
PICs Restricted to Four Queues
Examples: Configuring Up to 16 Forwarding Classes
Configuring Forwarding Policy Options
Forwarding Policy Options Overview
Configuring CoS-Based Forwarding
Overriding the Input Classification
Example: Configuring CoS-Based Forwarding
Example: Configuring CoS-Based Forwarding for Different Traffic Types
Example: Configuring CoS-Based Forwarding for IPv6
Configuring Fragmentation by Forwarding Class
Fragmentation by Forwarding Class Overview
Configuring Fragmentation by Forwarding Class
Associating a Fragmentation Map with an MLPPP Interface or MLFR FRF.16 DLCI
Example: Configuring Fragmentation by Forwarding Class
Example: Configuring Drop Timeout Interval by Forwarding Class
Configuring Schedulers
Schedulers Overview
Default Schedulers
Configuring Schedulers
Configuring the Scheduler Buffer Size
Configuring Large Delay Buffers for Slower Interfaces
Maximum Delay Buffer for NxDS0 Interfaces
Example: Configuring Large Delay Buffers for Slower Interfaces
Enabling and Disabling the Memory Allocation Dynamic per Queue
Configuring Drop Profile Maps for Schedulers
Configuring Scheduler Transmission Rate
Example: Configuring Scheduler Transmission Rate
Allocation of Leftover Bandwidth
Priority Scheduling Overview
Platform Support for Priority Scheduling
Configuring Schedulers for Priority Scheduling
Example: Configuring Priority Scheduling
Configuring Strict-High Priority on M Series and T Series Routers
Configuring Scheduler Maps
Applying Scheduler Maps Overview
Applying Scheduler Maps to Physical Interfaces
Applying Scheduler Maps and Shaping Rate to Physical Interfaces on IQ PICs
Shaping Rate Calculations
Examples: Applying a Scheduler Map and Shaping Rate to Physical Interfaces
Example: Configuring VLAN Shaping on Aggregated Interfaces
Applying Scheduler Maps and Shaping Rate to DLCIs and VLANs
Example: Applying Scheduler Maps and Shaping Rate to DLCIs and VLANs
Configuring Per-Unit Schedulers for Channelized Interfaces
Oversubscribing Interface Bandwidth
Verifying Configuration of Bandwidth Oversubscription
Examples: Oversubscribing Interface Bandwidth
Providing a Guaranteed Minimum Rate
Verifying Configuration of Guaranteed Minimum Rate
Example: Providing a Guaranteed Minimum Rate
Applying Scheduler Maps to Packet Forwarding Component Queues
Applying Custom Schedulers to Packet Forwarding Component Queues
Examples: Scheduling Packet Forwarding Component Queues
Default Fabric Priority Queuing
Associating Schedulers with Fabric Priorities
Example: Associating a Scheduler with a Fabric Priority
Configuring the Number of Schedulers for Ethernet IQ2 PICs
Ethernet IQ2 PIC Schedulers
Example: Configuring a Scheduler Number for an Ethernet IQ2 PIC Port
Ethernet IQ2 PIC RTT Delay Buffer Values
Configuring Rate Limiting and Sharing of Excess Bandwidth on Multiservices PICs
Configuring Hierarchical Schedulers
Hierarchical Schedulers Terminology
Configuring Hierarchical Schedulers for CoS
Configuring Interface Sets
Applying Interface Sets
Interface Set Caveats
Hierarchical Schedulers and Traffic Control Profiles
Example: Four-Level Hierarchy of Schedulers
Configuring the Interface Sets
Configuring the Interfaces
Configuring the Traffic Control Profiles
Configuring the Schedulers
Configuring the Drop Profiles
Configuring the Scheduler Maps
Applying the Traffic Control Profiles
Controlling Remaining Traffic
Configuring Internal Scheduler Nodes
PIR-Only and CIR Mode
Priority Propagation
Configuring Queue-Level Bandwidth Sharing
Bandwidth Sharing on Nonqueuing Packet Forwarding Engines Overview
Configuring Rate Limits on Nonqueuing Packet Forwarding Engines
Excess Rate and Excess Priority Configuration Examples
Configuring RED Drop Profiles
RED Drop Profiles Overview
Default Drop Profile
Configuring RED Drop Profiles
Packet Loss Priority Configuration Overview
Example: Configuring RED Drop Profiles
Configuring Weighted RED Buffer Occupancy
Example: Configuring Weighted RED Buffer Occupancy
Rewriting Packet Header Information
Rewriting Packet Header Information Overview
Applying Default Rewrite Rules
Configuring Rewrite Rules
Header Bits Preserved, Cleared, and Rewritten
Applying Rewrite Rules to Output Logical Interfaces
Applying IEEE 802.1p Rewrite Rules to Dual VLAN Tags
Example: Applying an IEEE 802.1p Rewrite Rule to Dual VLAN Tags
Applying IEEE 802.1ad Rewrite Rules to Dual VLAN Tags
Example: Applying an IEEE 802.1ad Rewrite Rule to Dual VLAN Tags
Example: Per-Node Rewriting of EXP Bits
Rewriting MPLS and IPv4 Packet Headers
Example: Rewriting MPLS and IPv4 Packet Headers
Rewriting the EXP Bits of All Three Labels of an Outgoing Packet
Example: Rewriting the EXP Bits of All Three Labels of an Outgoing Packet
Rewriting IEEE 802.1p Packet Headers with an MPLS EXP Value
Setting Ingress DSCP Bits for Multicast Traffic over Layer 3 VPNs
CoS Configuration on Various PIC Types
Hardware Capabilities and Routing Engine Protocol Queue Assignments
Hardware Capabilities and Limitations
M320 Routers FPCs and CoS
MX Series Router CoS Hardware Capabilities and Limitations
Default Routing Engine Protocol Queue Assignments
Changing the Routing Engine Outbound Traffic Defaults
CoS Features of Router Hardware and Interface Families
CoS Features of the Router Hardware and PIC Families
Scheduling on the Router Hardware and PIC Families
Schedulers on the Router Hardware and PIC Families
Queuing Parameters for the Router Hardware and PIC Families
Configuring CoS for Tunnels
CoS for Tunnels Overview
Configuring CoS for Tunnels
Example: Configuring CoS for Tunnels
Example: Configuring a GRE Tunnel to Copy ToS Bits to the Outer IP Header
Configuring CoS on Services PICs
Overview of CoS on Services PICs
Configuring CoS Rules
Configuring Match Conditions in a CoS Rule
Configuring Actions in a CoS Rule
Configuring Application Profiles
Configuring Reflexive and Reverse CoS Actions
Configuring CoS Rule Sets
Output Packet Rewriting
Allocating Excess Bandwidth Among Frame Relay DLCIs on Multiservices PICs
Multiservices PIC ToS Translation
Example: Configuring CoS Rules
Configuring CoS on Enhanced IQ PICs
CoS on Enhanced IQ PICs Overview
Configuring ToS Translation Tables
Configuring Excess Bandwidth Sharing on IQE PICs
IQE PIC Excess Bandwidth Sharing Overview
IQE PIC Excess Bandwidth Sharing Configuration
Calculation of Expected Traffic on IQE PIC Queues
Excess Bandwidth Calculations Terminology
Excess Bandwidth Basics
Logical Interface Modes on IQE PICs
Default Rates for Queues on IQE PICs
Sample Calculations of Excess Bandwidth Sharing on IQE PICs
Configuring Layer 2 Policing on IQE PICs
Layer 2 Policer Limitations
Configuring Layer 2 Policers on IQE PICs
Configuring Low-Latency Static Policers on IQE PICs
Configuring CoS on Ethernet IQ2 and Enhanced IQ2 PICs
CoS on Enhanced IQ2 PICs Overview
Setting the Number of Egress Queues on IQ2 and Enhanced IQ2 PICs
Configuring Rate Limits on IQ2 and Enhanced IQ2 PICs
Configuring Shaping on 10-Gigabit Ethernet IQ2 PICs
Shaping Granularity Values for Enhanced Queuing Hardware
Differences Between Gigabit Ethernet IQ and Gigabit Ethernet IQ2 PICs
Configuring Traffic Control Profiles for Shared Scheduling and Shaping
Differences Between Gigabit Ethernet IQ and Gigabit Ethernet IQ2 PICs
Configuring a Separate Input Scheduler for Each Interface
Configuring Per-Unit Scheduling for GRE Tunnels Using IQ2 and IQ2E PICs
Configuring Hierarchical Input Shapers
Example: Configuring a CIR and a PIR on Ethernet IQ2 Interfaces
Example: Configuring Shared Resources on Ethernet IQ2 Interfaces
Configuring CoS on 10-port 10-Gigabit Oversubscribed Ethernet PICs
CoS on 10-port 10-Gigabit Oversubscribed Ethernet PICs Overview
BA and Fixed Classification on 10-port 10-Gigabit Oversubscribed Ethernet PICs Overview
Example: Configuring IEEE 802.1p BA Classifier on 10-port 10-Gigabit Oversubscribed Ethernet PICs
Queuing on 10-port 10-Gigabit Oversubscribed Ethernet PICs Properties
Example: Mapping Forwarding Classes to CoS Queues on 10-port 10-Gigabit Oversubscribed Ethernet PICs
Scheduling and Shaping on 10-port 10-Gigabit Oversubscribed Ethernet PICs Overview
Example: Configuring Shaping Overhead on 10-port 10-Gigabit Oversubscribed Ethernet PICs
Configuring CoS on Enhanced Queuing DPCs
Enhanced Queuing DPC Hardware Properties
Configuring Rate Limits on Enhanced Queuing DPCs
Configuring Simple Filters on Enhanced Queuing DPCs
Configuring WRED on Enhanced Queuing DPCs
Configuring MDRR on Enhanced Queuing DPCs
Configuring Excess Bandwidth Sharing
Excess Bandwidth Sharing and Minimum Logical Interface Shaping
Selecting Excess Bandwidth Sharing Proportional Rates
Mapping Calculated Weights to Hardware Weights
Allocating Weight with Only Shaping Rates or Unshaped Logical Interfaces
Sharing Bandwidth Among Logical Interfaces
Configuring Ingress Hierarchical CoS on Enhanced Queuing DPCs
Configuring CoS on Trio DPC and MPC/MIC Interfaces
CoS on Trio DPC and MPC/MIC Features Overview
Scheduler Node Scaling on the Trio MPC/MIC Interfaces Overview
Dedicated Queue Scaling for CoS Configurations on Trio MPC/MIC Interfaces Overview
Queue Scaling for Trio MPC/MIC Interfaces
Management of Dedicated and Remaining Queues
Managing Dedicated and Remaining Queues for Static CoS Configurations on Trio MPC/MIC Interfaces
Configuring the Maximum Number of Queues for Trio MPC/MIC Interfaces
Configuring Remaining Common Queues on Trio MPC/MIC Interfaces
Verifying the Number of Dedicated Queues Configured on Trio MPC/MIC Interfaces
Excess Bandwidth Distribution on the Trio DPC and MPC/MIC interfaces Overview
Per-Priority Shaping on the Trio MPC/MIC Interfaces Overview
Example: Configuring Per-Priority Shaping on Trio MPC/MIC Interfaces
Bandwidth Management for Downstream Traffic in Edge Networks Overview
Guidelines for Configuring the Shaping Mode
Guidelines for Configuring Byte Adjustments
Relationship with Other CoS Features
Configuring Static Shaping Parameters to Account for Overhead in Downstream Traffic Rates
Example: Configuring Static Shaping Parameters to Account for Overhead in Downstream Traffic Rates
Managing Traffic with Different Encapsulations
Managing Downstream Cell-Based Traffic
Intelligent Oversubscription on the Trio DPC and MPC/MIC Interfaces Overview
CoS Configuration for Specific Transports
Configuring Schedulers on Aggregated Ethernet and SONET/SDH Interfaces
Configuring Schedulers on Aggregated Interfaces
Limitations on CoS for Aggregated Interfaces
Examples: Configuring CoS on Aggregated Interfaces
Example: Configuring Scheduling Modes on Aggregated Interfaces
Configuring CoS on ATM Interfaces
CoS on ATM Interfaces Overview
Configuring Linear RED Profiles on ATM Interfaces
Configuring Scheduler Maps on ATM Interfaces
Enabling Eight Queues on ATM Interfaces
Example: Enabling Eight Queues on ATM2 IQ Interfaces
Verifying the Configuration
Configuring VC CoS Mode on ATM Interfaces
Copying the PLP Setting to the CLP Bit on ATM Interfaces
Applying Scheduler Maps to Logical ATM Interfaces
Example: Configuring CoS for ATM2 IQ VC Tunnels
Configuring CoS for L2TP Tunnels on ATM Interfaces
Configuring IEEE 802.1p BA Classifiers for Ethernet VPLS Over ATM
Configuring CoS for MPLS
CoS for MPLS Overview
Configuring CoS for MPLS Traffic
CoS Configuration Examples and Statements
CoS Configuration Examples
Example: Configuring Classifiers, Rewrite Markers, and Schedulers
Example: Configuring a CoS Policy for IPv6 Packets
Summary of CoS Configuration Statements
action
address
application-profile
application-sets
applications
atm-options
atm-scheduler-map
buffer-size
cbr
class
class (CoS-Based Forwarding)
class (Forwarding Classes)
class-of-service
classification-override
classifiers
classifiers (Application)
classifiers (Application for Routing Instances)
classifiers (Definition)
code-point
code-point-aliases
code-points
copy-tos-to-outer-ip-header
data
delay-buffer-rate
destination
destination-address
discard
drop-probability
drop-probability (Interpolated Value)
drop-probability (Percentage)
drop-profile
drop-profile-map
drop-profiles
drop-timeout
dscp
dscp (AS PIC Classifiers)
dscp (Multifield Classifier)
dscp (Rewrite Rules)
dscp-code-point
dscp-ipv6
egress-shaping-overhead
epd-threshold
excess-bandwith-share
excess-priority
excess-rate
exp
exp-push-push-push
exp-swap-push-push
fabric
family
family (CoS on ATM Interfaces)
family (Multifield Classifier)
fill-level
fill-level (Interpolated Value)
fill-level (Percentage)
filter
filter (Applying to an Interface)
filter (Configuring)
firewall
forwarding-class
forwarding-class (AS PIC Classifiers)
forwarding-class (ATM2 IQ Scheduler Maps)
forwarding-class (BA Classifiers)
forwarding-class (Forwarding Policy)
forwarding-class (Fragmentation)
forwarding-class (Interfaces)
forwarding-class (Multifield Classifiers)
forwarding-class (Restricted Queues)
forwarding-classes
forwarding-classes-interface-specific
forwarding-policy
fragment-threshold
fragmentation-map
fragmentation-maps
from
ftp
guaranteed-rate
hierarchical-scheduler
high-plp-max-threshold
high-plp-threshold
host-outbound-traffic
ieee-802.1
ieee-802.1ad
if-exceeding
import
import (Classifiers)
import (Rewrite Rules)
inet-precedence
ingress-shaping-overhead
input-excess-bandwith-share
input-policer
input-scheduler-map
input-shaping-rate
input-shaping-rate (Logical Interface)
input-shaping-rate (Physical Interface)
input-three-color
input-traffic-control-profile
input-traffic-control-profile-remaining
interfaces
interface-set
internal-node
interpolate
irb
layer2-policer
linear-red-profile
linear-red-profiles
logical-bandwidth-policer
logical-interface-policer
loss-priority
loss-priority (BA Classifiers)
loss-priority (Normal Filter)
loss-priority (Rewrite Rules)
loss-priority (Scheduler Drop Profiles)
loss-priority (Simple Filter)
low-plp-max-threshold
low-plp-threshold
lsp-next-hop
match-direction
max-queues-per-interface
member-link-scheduler
mode
multilink-class
next-hop
next-hop-map
no-fragmentation
non-lsp-next-hop
output-forwarding-class-map
output-policer
output-three-color
output-traffic-control-profile
output-traffic-control-profile-remaining
overhead-accounting
per-session-scheduler
per-unit-scheduler
plp-copy-all
plp-to-clp
policer
policer (Applying to an Interface)
policer (Configuring)
priority
priority (ATM2 IQ Schedulers)
priority (Fabric Queues, Schedulers)
priority (Fabric Priority)
priority (Schedulers)
protocol
protocol (Rewrite Rules)
protocol (Schedulers)
q-pic-large-buffer
queue
queue (Global Queues)
queue (Restricted Queues)
queue-depth
red-buffer-occupancy
(reflexive | reverse)
restricted-queues
rewrite-rules
rewrite-rules (Definition)
rewrite-rules (Interfaces)
routing-instances
rtvbr
rule
rule-set
scheduler
scheduler (Fabric Queues)
scheduler (Scheduler Map)
scheduler-map
scheduler-map (Fabric Queues)
scheduler-map (Interfaces and Traffic-Control Profiles)
scheduler-map-chassis
scheduler-maps
scheduler-maps (For ATM2 IQ Interfaces)
scheduler-maps (For Most Interface Types)
schedulers
schedulers (Class-of-Service)
schedulers (Interfaces)
services
shaping
shaping-rate
shaping-rate (Applying to an Interface)
shaping-rate (Limiting Excess Bandwidth Usage)
shaping-rate (Oversubscribing an Interface)
shaping-rate-excess-high
shaping-rate-excess-low
shaping-rate-priority-high
shaping-rate-priority-low
shaping-rate-priority-medium
shared-instance
shared-scheduler
simple-filter
simple-filter (Applying to an Interface)
simple-filter (Configuring)
sip
source-address
syslog
term
term (AS PIC Classifiers)
term (Normal Filter)
term (Simple Filter)
then
three-color-policer
three-color-policer (Applying)
three-color-policer (Configuring)
traffic-control-profiles
traffic-manager
translation-table
transmit-rate
transmit-weight
tri-color
unit
vbr
vc-cos-mode
vci
video
vlan-tag
voice
Index
Index
Index of Statements and Commands