JUNOS 9.3 Class of Service Configuration Guide

DVD Home
Techpubs Home
Report an Error

Collapse TOC

List of Figures
List of Tables

Index
Index of Statements and Commands

Entire manual as PDF

About This Guide
Objectives
Audience
Supported Routing Platforms
Using the Indexes
Using the Examples in This Manual
Documentation Conventions
List of Technical Publications
Documentation Feedback
Requesting Technical Support
CoS Overview
Packet Flow Across a Network
JUNOS CoS Components
Default CoS
CoS Inputs and Outputs
Packet Flow Within Routing Platforms
Packet Flow on J-series Platforms
Packet Flow on M-series Platforms
Incoming I/O Manager ASIC
Internet Processor ASIC
Outgoing I/O Manager ASIC
Packet Flow on MX-series Platforms
Packet Flow on T-series Platforms
Incoming Switch Interface ASICs
T-series Internet Processor ASIC
Queuing and Memory Interface ASICs
Outgoing Switch Interface ASICs
Packet Flow Through the CoS Process
CoS Features of MX-series Platforms
CoS Applications
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
Hardware Capabilities and Routing Engine Protocol Queue Assignments
Hardware Capabilities and Limitations
M320 FPCs and CoS
MX-series CoS Hardware Capabilities and Limitations
Default Routing Engine Protocol Queue Assignments
Changing the Routing Engine Outbound Traffic Defaults
Comparing the M320, T-series, IQ, IQ2, and Enhanced IQ PICs
CoS Features of the PIC Families
Scheduling on the PIC Families
Schedulers on the PIC Families
Queuing Parameters for the PIC Families
Defining Code-Point Aliases
Default Code Point Aliases
Defining Aliases for Bits
Classifying Packets by Behavior Aggregate
Classifier Types
Default Behavior Aggregate Classification
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 a Classifier to a Logical Interface
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 the PLP on T320 and M320 Platforms
Example: Overriding the Default PLP on M320 Platforms
Classifying Frame Relay Traffic
Assigning the Default Frame Relay Loss Priority Map to an Interface
Defining a Custom Frame Relay Loss Priority Map
Applying the Map to a Logical Interface
Verifying Your Configuration
Applying IEEE 802.1ad Classification
Defining a Custom IEEE 802.1ad Map
Applying a Custom IEEE 802.1ad Map
Verifying a Custom IEEE 802.1ad Map
Classifying Packets Based on Various Packet Header Fields
Classifying Packets Based on Multiple Fields
Example: Classifying Packets Based on a Destination Address
Example: Configuring and Confirming a Complex MF Filter
Configuring a Complex MF Filter
Confirming MF Classification
Example: Writing Different DSCP and EXP Values in MPLS-Tagged IP Packets
Example: Configuring a Simple Filter
Configuring a Logical Bandwidth Policer
Example: Configuring a Logical Bandwidth Policer
Classifying Packets Based on Services
Configuring the Class-of-Service Rule Set
Configuring Class-of-Service Rule Content
Configuring Class-of-Service Match Conditions
Configuring Class-of-Service Actions
Configuring Application Profiles
Configuring Reflexive and Reverse CoS Actions
Output Packet Rewriting
Example: Configuring Class-of-Service Properties
Verifying Your Configuration
Configuring Forwarding Classes
Default Forwarding Classes
Configuring Forwarding Classes
Assigning a Forwarding Class to an Interface
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 Up to Eight Forwarding Classes
Examples: Configuring Up to Eight Forwarding Classes
Configuring Forwarding Policy Options
Configuring CoS-Based Forwarding
Overriding the Input Classification
Example: Configuring CoS-Based Forwarding
Example: Configuring CoS-Based Forwarding for Different Traffic Types
Configuring CoS-Based Forwarding for IPv6
Configuring RED Drop Profiles
Default Drop Profile
Configuring RED Drop Profiles
Packet Loss Priority
Example: Configuring RED Drop Profiles
Configuring the RED Buffer Occupancy Weight
Examples: Configuring the RED Buffer Occupancy Weight
Configuring Schedulers
Overview of Schedulers
Default Schedulers
Configuring a Scheduler
Configuring the Scheduler Drop Profile Map
Configuring the Transmission Rate
Example: Configuring the Transmission Rate
Allocation of Leftover Bandwidth
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 Priority Scheduling
Example: Configuring Priority Scheduling
Configuring Strict-High Priority on J-series Platforms
Example: Configuring Strict-High Priority on J-series Platforms
Configuring Strict-High Priority on M-series and T-series Platforms
Transmission Scheduling and Platform Differences
Configuring the Scheduler Map
Associating the Scheduler Map
Associating the Scheduler Map with a Physical Interface
Associating the Scheduler Map and a Shaping Rate with a Physical Interface
Shaping Rate Calculations
Examples: Associating a Scheduler Map and a Shaping Rate with a Physical Interface
Associating the Scheduler Map and a Shaping Rate with a DLCI or VLAN
Example: Associating the Scheduler Map Name with a DLCI or VLAN
Oversubscribing Interface Bandwidth
Verifying Your Configuration
Examples: Oversubscribing Interface Bandwidth
Providing a Guaranteed Minimum Rate
Verifying Your Configuration
Example: Providing a Guaranteed Minimum Rate
Associating the Scheduler Map with the Packet Forwarding Component Queues
Assigning a Custom Scheduler to the Packet Forwarding Component Queues
Examples: Scheduling Packet Forwarding Component Queues
Default Fabric Priority Queuing
Associating a Scheduler with a Fabric Priority
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 Per-Unit Schedulers for Channelized Interfaces
Configuring Tricolor Marking
Supported Platforms for Tricolor Marking
Tricolor Marking Architecture
Configuring Tricolor Marking
Tricolor Marking Limitations
Color-Blind and Color-Aware Single-Rate Tricolor Marking
Single-Rate Tricolor Marking, Color-Blind Mode
Single-Rate Tricolor Marking, Color-Aware Mode
Incoming PLP Low
Incoming PLP Medium-Low
Incoming PLP Medium-High
Incoming PLP High
Color-Blind and Color-Aware Two-Rate Tricolor Marking
Two-Rate Tricolor Marking, Color-Blind Mode
Two-Rate Tricolor Marking, Color-Aware Mode
Incoming PLP Low
Incoming PLP Medium-Low
Incoming PLP Medium-High
Incoming PLP High
Enabling Tricolor Marking
Configuring a Tricolor Marking Policer
Applying a Tricolor Marking Policer to a Firewall Filter
Example: Applying a Two-Rate Tricolor Marking Policer to a Firewall Filter
Applying a Firewall Filter Tricolor Marking Policer to an Interface
Example: Applying a Single-Rate Tricolor Marking Policer to an Interface
Applying a Layer 2 Policer to a Gigabit Ethernet Interface
Examples: Applying Layer 2 Policers to a Gigabit Ethernet Interface
Setting the PLP with a BA Classifier
Setting the PLP with a Multifield Classifier
Associating the PLP with a Drop-Profile Map
Associating the PLP with a Rewrite Rule
Verifying Your Configuration
Example: Configuring Two-Rate Tricolor Marking
Input Interface
Output Interface
Medium-Low Loss Priority
Shaping Input and Output Traffic on Ethernet IQ2 Interfaces
Configuring Shaping on Ethernet IQ2 Interfaces
Differences Between Gigabit Ethernet IQ and Gigabit Ethernet IQ2 PICs
Configuring a Shared Scheduler and Shaper
Differences Between Per-Unit Scheduling and Shared Scheduling
Configuring Separate Input Schedulers
Configuring Hierarchical Input Shapers
Examples: Shaping Input and Output Traffic on Ethernet IQ2 Interfaces
Configuring a CIR and a PIR
Configuring Shared Resources
Configuring an Adaptive Shaper for a Frame Relay Interface
Adaptive Shaper for Frame Relay Overview
Configuring an Adaptive Shaper for Frame Relay
Applying an Adaptive Shaper to a Logical Interface
Configuring Virtual Channels
Configuring CoS Virtual Channels
Creating a List of Virtual Channel Names
Defining a Virtual Channel Group
Applying a Virtual Channel Group to a Logical Interface
Selecting Traffic to Be Transmitted from a Particular Virtual Channel
Example: Configuring Virtual Channels
Rewriting Packet Header Information
Applying a Default Rewrite Rule
Configuring Rewrite Rules
Bits Preserved, Cleared, and Rewritten
Assigning the Rewrite-Rules Configuration to the Output Logical Interface
Assigning the IEEE 802.1p Rewrite Rule to Dual VLAN Tags
Example: Assigning the IEEE 802.1p Rewrite Rule to Dual VLAN Tags
Assigning the IEEE 802.1ad Rewrite Rule to Dual VLAN Tags
Example: Assigning the IEEE 802.1ad Rewrite Rule to Dual VLAN Tags
Rewriting EXP Bits on a Particular Node
Example: Rewriting EXP Bits on a Particular Node
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 MPLS EXP Value
Rewriting Frame Relay Headers
Assigning the Default Frame Relay Rewrite Rule to an Interface
Defining a Custom Frame Relay Rewrite Rule
Applying the Rule to a Logical Interface
Configuring Fragmentation by Forwarding Class
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 CoS for Tunnels
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 Hierarchical Schedulers
Configuring Hierarchical Schedulers for CoS
Hierarchical Schedulers Terminology
Packet Handling in MX-series Routers
Configuring an Interface Set
Applying an Interface Set
Interface Set Caveats
Introduction to Hierarchical Schedulers
Scheduler Hierarchy Example
Interface Sets for the Hierarchical Example
Interfaces for the Hierarchical Example
Traffic Control Profiles for the Hierarchical Example
Schedulers for the Hierarchical Example
Drop Profiles for the Hierarchical Example
Scheduler Maps for the Hierarchical Example
Applying Traffic Control Profiles for the Hierarchical Example
Controlling Remaining Traffic
Internal Scheduler Nodes
PIR-Only and CIR Mode
Priority Propagation
Configuring CoS for Enhanced Queuing DPCs
Enhanced Queuing DPC Hardware Properties
Simple Filters and the Enhanced Queuing DPC
WRED on the Enhanced Queuing DPC
MDRR on the Enhanced Queuing DPC
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
Ingress Hierarchical CoS for the Enhanced Queuing DPC
Configuring CoS on Enhanced IQ PICs
IQE PIC Interface Support
Configuring IQE PIC ToS Translation
Configuring IQE PIC Excess Bandwidth Sharing
IQE PIC Excess Bandwidth Sharing Overview
IQE PIC Excess Bandwidth Sharing Configuration
Calculating Traffic on an IQE PIC Queue
Excess Bandwidth Calculations Terminology
Excess Bandwidth Basic Example
Logical Interface Modes on the IQE PIC
Queue Default Rates for the IQE PIC
Examples of Excess Bandwidth Sharing Calculations on the IQE PIC
Configuring IQE PIC Layer 2 Policing
Configuring IQE PIC Low-Latency Static Policer
Configuring CoS Schedulers for Aggregated Ethernet and SONET/SDH Interfaces
Limitations for Configuring CoS for Aggregated Interfaces
Examples: Configuring CoS for Aggregated Ethernet and SONET/SDH Interfaces
Configuring CoS on ATM Interfaces
Configuring Linear RED Profiles
Configuring an ATM Scheduler Map
Enabling Eight Queues on ATM2 IQ Interfaces
Example: Enabling Eight Queues on ATM2 IQ Interfaces
Verifying the Configuration
Configuring VC CoS Mode
Enabling the PLP Setting to Be Copied to the CLP Bit
Configuring ATM CoS on the Logical Interface
Example: Configuring ATM2 IQ VC Tunnel CoS Components
Using CoS with ATM and L2TP Tunnels
IEEE 802.1p BA Classification for Ethernet VPLS Over ATM
Configuring CoS for MPLS
MPLS Class of Service
Configuring MPLS Class of Service
Additional CoS Configuration Examples
Example: Configuring Classifiers, Rewrite Markers, and Schedulers
Example: Configuring a CoS Policy for IPv6 Packets
Summary of CoS Configuration Statements
action
adaptive-shaper
adaptive-shapers
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
code-points (Forwarding Class)
code-points (Frame Relay DE Bit Loss-Priority Map)
copy-tos-to-outer-ip-header
default
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 [MF] 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 (MF Classifiers)
forwarding-class (Restricted Queues)
forwarding-classes
forwarding-policy
fragment-threshold
fragmentation-map
fragmentation-maps
frame-relay-de
frame-relay-de (Assigning to an Interface)
frame-relay-de (Defining Loss Priority)
frame-relay-de (Defining Rewrite Rule)
from
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 (Frame Relay DE Bit Loss-Priority Map)
loss-priority (Normal Filter)
loss-priority (Rewrite Rules)
loss-priority (Scheduler Drop Profiles)
loss-priority (Simple Filter)
loss-priority-maps
loss-priority-maps (Assigning to an Interface)
loss-priority-maps (Defining)
low-plp-max-threshold
low-plp-threshold
lsp-next-hop
match-direction
max-queues-per-interface
mode
multilink-class
next-hop
next-hop-map
no-fragmentation
non-lsp-next-hop
output-policer
output-three-color
output-traffic-control-profile
output-traffic-control-profile-remaining
per-session-scheduler
per-unit-scheduler
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 (Virtual Channels)
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 (Adaptive Shaping)
shaping-rate (Applying to an Interface)
shaping-rate (Limiting Excess Bandwidth Usage)
shaping-rate (Oversubscribing an Interface)
shaping-rate (Virtual Channels)
shared-instance
shared-scheduler
simple-filter
simple-filter (Applying to an Interface)
simple-filter (Configuring)
sip-text
sip-video
sip-voice
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-tables
transmit-rate
transmit-weight
tri-color
trigger
unit
vbr
vc-cos-mode
vci
virtual-channel
virtual-channel-group
virtual-channel-groups
virtual-channels
vlan-tag
Index
Index
Index of Statements and Commands