
- •QoS Overview
- •“Do I Know This Already?” Quiz
- •QoS: Tuning Bandwidth, Delay, Jitter, and Loss Questions
- •Foundation Topics
- •QoS: Tuning Bandwidth, Delay, Jitter, and Loss
- •Bandwidth
- •The clock rate Command Versus the bandwidth Command
- •QoS Tools That Affect Bandwidth
- •Delay
- •Serialization Delay
- •Propagation Delay
- •Queuing Delay
- •Forwarding Delay
- •Shaping Delay
- •Network Delay
- •Delay Summary
- •QoS Tools That Affect Delay
- •Jitter
- •QoS Tools That Affect Jitter
- •Loss
- •QoS Tools That Affect Loss
- •Summary: QoS Characteristics: Bandwidth, Delay, Jitter, and Loss
- •Voice Basics
- •Voice Bandwidth Considerations
- •Voice Delay Considerations
- •Voice Jitter Considerations
- •Voice Loss Considerations
- •Video Basics
- •Video Bandwidth Considerations
- •Video Delay Considerations
- •Video Jitter Considerations
- •Video Loss Considerations
- •Comparing Voice and Video: Summary
- •IP Data Basics
- •Data Bandwidth Considerations
- •Data Delay Considerations
- •Data Jitter Considerations
- •Data Loss Considerations
- •Comparing Voice, Video, and Data: Summary
- •Foundation Summary
- •QoS Tools and Architectures
- •“Do I Know This Already?” Quiz
- •QoS Tools Questions
- •Differentiated Services Questions
- •Integrated Services Questions
- •Foundation Topics
- •Introduction to IOS QoS Tools
- •Queuing
- •Queuing Tools
- •Shaping and Policing
- •Shaping and Policing Tools
- •Congestion Avoidance
- •Congestion-Avoidance Tools
- •Call Admission Control and RSVP
- •CAC Tools
- •Management Tools
- •Summary
- •The Good-Old Common Sense QoS Model
- •GOCS Flow-Based QoS
- •GOCS Class-Based QoS
- •The Differentiated Services QoS Model
- •DiffServ Per-Hop Behaviors
- •The Class Selector PHB and DSCP Values
- •The Assured Forwarding PHB and DSCP Values
- •The Expedited Forwarding PHB and DSCP Values
- •The Integrated Services QoS Model
- •Foundation Summary
- •“Do I Know This Already?” Quiz Questions
- •CAR, PBR, and CB Marking Questions
- •Foundation Topics
- •Marking
- •IP Header QoS Fields: Precedence and DSCP
- •LAN Class of Service (CoS)
- •Other Marking Fields
- •Summary of Marking Fields
- •Class-Based Marking (CB Marking)
- •Network-Based Application Recognition (NBAR)
- •CB Marking show Commands
- •CB Marking Summary
- •Committed Access Rate (CAR)
- •CAR Marking Summary
- •Policy-Based Routing (PBR)
- •PBR Marking Summary
- •VoIP Dial Peer
- •VoIP Dial-Peer Summary
- •Foundation Summary
- •Congestion Management
- •“Do I Know This Already?” Quiz
- •Queuing Concepts Questions
- •WFQ and IP RTP Priority Questions
- •CBWFQ and LLQ Questions
- •Comparing Queuing Options Questions
- •Foundation Topics
- •Queuing Concepts
- •Output Queues, TX Rings, and TX Queues
- •Queuing on Interfaces Versus Subinterfaces and Virtual Circuits (VCs)
- •Summary of Queuing Concepts
- •Queuing Tools
- •FIFO Queuing
- •Priority Queuing
- •Custom Queuing
- •Weighted Fair Queuing (WFQ)
- •WFQ Scheduler: The Net Effect
- •WFQ Scheduling: The Process
- •WFQ Drop Policy, Number of Queues, and Queue Lengths
- •WFQ Summary
- •Class-Based WFQ (CBWFQ)
- •CBWFQ Summary
- •Low Latency Queuing (LLQ)
- •LLQ with More Than One Priority Queue
- •IP RTP Priority
- •Summary of Queuing Tool Features
- •Foundation Summary
- •Conceptual Questions
- •Priority Queuing and Custom Queuing
- •CBWFQ, LLQ, IP RTP Priority
- •Comparing Queuing Tool Options
- •“Do I Know This Already?” Quiz
- •Shaping and Policing Concepts Questions
- •Policing with CAR and CB Policer Questions
- •Shaping with FRTS, GTS, DTS, and CB Shaping
- •Foundation Topics
- •When and Where to Use Shaping and Policing
- •How Shaping Works
- •Where to Shape: Interfaces, Subinterfaces, and VCs
- •How Policing Works
- •CAR Internals
- •CB Policing Internals
- •Policing, but Not Discarding
- •Foundation Summary
- •Shaping and Policing Concepts
- •“Do I Know This Already?” Quiz
- •Congestion-Avoidance Concepts and RED Questions
- •WRED Questions
- •FRED Questions
- •Foundation Topics
- •TCP and UDP Reactions to Packet Loss
- •Tail Drop, Global Synchronization, and TCP Starvation
- •Random Early Detection (RED)
- •Weighted RED (WRED)
- •How WRED Weights Packets
- •WRED and Queuing
- •WRED Summary
- •Flow-Based WRED (FRED)
- •Foundation Summary
- •Congestion-Avoidance Concepts and Random Early Detection (RED)
- •Weighted RED (WRED)
- •Flow-Based WRED (FRED)
- •“Do I Know This Already?” Quiz
- •Compression Questions
- •Link Fragmentation and Interleave Questions
- •Foundation Topics
- •Payload and Header Compression
- •Payload Compression
- •Header Compression
- •Link Fragmentation and Interleaving
- •Multilink PPP LFI
- •Maximum Serialization Delay and Optimum Fragment Sizes
- •Frame Relay LFI Using FRF.12
- •Choosing Fragment Sizes for Frame Relay
- •Fragmentation with More Than One VC on a Single Access Link
- •FRF.11-C and FRF.12 Comparison
- •Foundation Summary
- •Compression Tools
- •LFI Tools
- •“Do I Know This Already?” Quiz
- •Foundation Topics
- •Call Admission Control Overview
- •Call Rerouting Alternatives
- •Bandwidth Engineering
- •CAC Mechanisms
- •CAC Mechanism Evaluation Criteria
- •Local Voice CAC
- •Physical DS0 Limitation
- •Max-Connections
- •Voice over Frame Relay—Voice Bandwidth
- •Trunk Conditioning
- •Local Voice Busyout
- •Measurement-Based Voice CAC
- •Service Assurance Agents
- •SAA Probes Versus Pings
- •SAA Service
- •Calculated Planning Impairment Factor
- •Advanced Voice Busyout
- •PSTN Fallback
- •SAA Probes Used for PSTN Fallback
- •IP Destination Caching
- •SAA Probe Format
- •PSTN Fallback Scalability
- •PSTN Fallback Summary
- •Resource-Based CAC
- •Resource Availability Indication
- •Gateway Calculation of Resources
- •RAI in Service Provider Networks
- •RAI in Enterprise Networks
- •RAI Operation
- •RAI Platform Support
- •Cisco CallManager Resource-Based CAC
- •Location-Based CAC Operation
- •Locations and Regions
- •Calculation of Resources
- •Automatic Alternate Routing
- •Location-Based CAC Summary
- •Gatekeeper Zone Bandwidth
- •Gatekeeper Zone Bandwidth Operation
- •Single-Zone Topology
- •Multizone Topology
- •Zone-per-Gateway Design
- •Gatekeeper in CallManager Networks
- •Zone Bandwidth Calculation
- •Gatekeeper Zone Bandwidth Summary
- •Integrated Services / Resource Reservation Protocol
- •RSVP Levels of Service
- •RSVP Operation
- •RSVP/H.323 Synchronization
- •Bandwidth per Codec
- •Subnet Bandwidth Management
- •Monitoring and Troubleshooting RSVP
- •RSVP CAC Summary
- •Foundation Summary
- •Call Admission Control Concepts
- •Local-Based CAC
- •Measurement-Based CAC
- •Resources-Based CAC
- •“Do I Know This Already?” Quiz
- •QoS Management Tools Questions
- •QoS Design Questions
- •Foundation Topics
- •QoS Management Tools
- •QoS Device Manager
- •QoS Policy Manager
- •Service Assurance Agent
- •Internetwork Performance Monitor
- •Service Management Solution
- •QoS Management Tool Summary
- •QoS Design for the Cisco QoS Exams
- •Four-Step QoS Design Process
- •Step 1: Determine Customer Priorities/QoS Policy
- •Step 2: Characterize the Network
- •Step 3: Implement the Policy
- •Step 4: Monitor the Network
- •QoS Design Guidelines for Voice and Video
- •Voice and Video: Bandwidth, Delay, Jitter, and Loss Requirements
- •Voice and Video QoS Design Recommendations
- •Foundation Summary
- •QoS Management
- •QoS Design
- •“Do I Know This Already?” Quiz
- •Foundation Topics
- •The Need for QoS on the LAN
- •Layer 2 Queues
- •Drop Thresholds
- •Trust Boundries
- •Cisco Catalyst Switch QoS Features
- •Catalyst 6500 QoS Features
- •Supervisor and Switching Engine
- •Policy Feature Card
- •Ethernet Interfaces
- •QoS Flow on the Catalyst 6500
- •Ingress Queue Scheduling
- •Layer 2 Switching Engine QoS Frame Flow
- •Layer 3 Switching Engine QoS Packet Flow
- •Egress Queue Scheduling
- •Catalyst 6500 QoS Summary
- •Cisco Catalyst 4500/4000 QoS Features
- •Supervisor Engine I and II
- •Supervisor Engine III and IV
- •Cisco Catalyst 3550 QoS Features
- •Cisco Catalyst 3524 QoS Features
- •CoS-to-Egress Queue Mapping for the Catalyst OS Switch
- •Layer-2-to-Layer 3 Mapping
- •Connecting a Catalyst OS Switch to WAN Segments
- •Displaying QoS Settings for the Catalyst OS Switch
- •Enabling QoS for the Catalyst IOS Switch
- •Enabling Priority Queuing for the Catalyst IOS Switch
- •CoS-to-Egress Queue Mapping for the Catalyst IOS Switch
- •Layer 2-to-Layer 3 Mapping
- •Connecting a Catalyst IOS Switch to Distribution Switches or WAN Segments
- •Displaying QoS Settings for the Catalyst IOS Switch
- •Foundation Summary
- •LAN QoS Concepts
- •Catalyst 6500 Series of Switches
- •Catalyst 4500/4000 Series of Switches
- •Catalyst 3550/3524 Series of Switches
- •QoS: Tuning Bandwidth, Delay, Jitter, and Loss
- •QoS Tools
- •Differentiated Services
- •Integrated Services
- •CAR, PBR, and CB Marking
- •Queuing Concepts
- •WFQ and IP RTP Priority
- •CBWFQ and LLQ
- •Comparing Queuing Options
- •Conceptual Questions
- •Priority Queuing and Custom Queuing
- •CBWFQ, LLQ, IP RTP Priority
- •Comparing Queuing Tool Options
- •Shaping and Policing Concepts
- •Policing with CAR and CB Policer
- •Shaping with FRTS, GTS, DTS, and CB Shaping
- •Shaping and Policing Concepts
- •Congestion-Avoidance Concepts and RED
- •WRED
- •FRED
- •Congestion-Avoidance Concepts and Random Early Detection (RED)
- •Weighted RED (WRED)
- •Flow-Based WRED (FRED)
- •Compression
- •Link Fragmentation and Interleave
- •Compression Tools
- •LFI Tools
- •Call Admission Control Concepts
- •Local-Based CAC
- •Measurement-Based CAC
- •Resources-Based CAC
- •QoS Management Tools
- •QoS Design
- •QoS Management
- •QoS Design
- •LAN QoS Concepts
- •Catalyst 6500 Series of Switches
- •Catalyst 4500/4000 Series of Switches
- •Catalyst 3550/3524 Series of Switches
- •Foundation Topics
- •QPPB Route Marking: Step 1
- •QPPB Per-Packet Marking: Step 2
- •QPPB: The Hidden Details
- •QPPB Summary
- •Flow-Based dWFQ
- •ToS-Based dWFQ
- •Distributed QoS Group–Based WFQ
- •Summary: dWFQ Options

114 Chapter 2: QoS Tools and Architectures
The Differentiated Services QoS Model
If you understood the Good-Old Common Sense (GOCS) model for QoS, you already understand at least half of the concepts behind DiffServ. DiffServ goes into a lot more depth, includes a large number of terms, but the core concepts of DiffServ can be summarized as follows:
•Takes advantage of the scaling properties of class-based QoS tools to differentiate between types of packets, with the goal of “scalable service differentiation in the Internet.”
•In a single network, packets should be marked at the ingress point into a network, with other devices making QoS choices based on the marked field.
•The marked field will be in the IP header, not a data-link header, because the IP header is retained throughout the network.
•Between networks, packets can be reclassified and re-marked at ingress into another network.
•To facilitate marking, the IP header has be redefined to include a 6-bit Differentiated Services Code Point (DSCP) field, which allows for 64 different classifications.
To some extent, DiffServ formally defines a QoS architecture using common sense, or “best practices,” for QoS design today. Along with the formal definitions comes a lot of terminol- ogy—terminology that is purposefully not vendor specific. So, after learning the DiffServ terms, you need to relate them to Cisco tools and terms. But DiffServ is more than just recording some good ideas about QoS—DiffServ defines another useful field in the IP header (DSCP), as well as some conventions for usage of the new DSCP field. Finally, DiffServ defines general categories of QoS functions and the purpose of the tools in each category. This book has already covered those same concepts and terms from Cisco’s perspective, so in this chapter, you will read about the DiffServ terms for categories or types of QoS tools and how they relate to Cisco’s terms.
DiffServ Specifications and Terminology
DiffServ is defined by the RFCs listed in Table 2-11.
Table 2-11 DiffServ RFCs
RFC |
Title |
Comments |
|
|
|
2474 |
Definition of the Differentiated Services |
Contains the details of the 6-bit DSCP field in |
|
Field (DS Field) in the IPv4 and IPv6 |
IP header. |
|
Headers |
|
|
|
|
2475 |
An Architecture for Differentiated Service |
This is the core DiffServ conceptual document. |
|
|
|
2597 |
Assured Forwarding PHB Group |
Defines a set of 12 DSCP values and a |
|
|
convention for their use. |
|
|
|

|
|
|
The Differentiated Services QoS Model 115 |
|
|
|
|
|
|
Table 2-11 DiffServ RFCs (Continued) |
|
|
||
|
|
|
|
|
|
RFC |
Title |
|
Comments |
|
|
|
|
|
|
2598 |
An Expedited Forwarding PHB |
|
Defines a single DSCP value as a convention |
|
|
|
|
for use as a low-latency class. |
|
|
|
|
|
|
3260 |
New Terminology and Clarifications for |
|
Clarifies, but does not supercede, existing |
|
|
DiffServ |
|
DiffServ RFCs. |
|
|
|
|
|
The RFCs introduce many new terms. Table 2-12 lists the terms and their definitions. This table provides a reference for study for the Cisco QoS exams; the rest of this section relates the terms to some network diagrams.
Table 2-12 DiffServ Terminology and Their Definitions
Term |
Definition |
|
|
Behavior aggregate (BA) |
A DS behavior aggregate. |
|
|
BA classifier |
A classifier that selects packets based only on the contents of the DS field. |
|
|
Classifier |
An entity that selects packets based on the content of packet headers |
|
according to defined rules. |
|
|
DS behavior aggregate |
A collection of packets with the same DS code point crossing a link in a |
|
particular direction. |
|
|
DS boundary node |
A DS node that connects one DS domain to a node either in another DS |
|
domain or in a domain that is not DS capable. |
|
|
DS code point |
A specific value of the DSCP portion of the DS field, used to select a PHB. |
|
|
DS compliant |
Enabled to support differentiated services functions and behaviors as |
|
defined in [DSFIELD], this document, and other differentiated services |
|
documents; usually used in reference to a node or device. |
|
|
DS ingress node |
A DS boundary node in its role in handling traffic as it enters a DS domain. |
|
|
DS field |
The IPv4 header ToS octet or the IPv6 traffic class octet when interpreted |
|
in conformance with the definition given in [DSFIELD]. The bits of the |
|
DSCP field encode the DS code point, whereas the remaining bits are |
|
currently unused. |
|
|
Dropper |
A device that performs dropping. |
|
|
Marker |
A device that performs marking. |
|
|
Meter |
A device that performs metering. |
|
|
continues

116 Chapter 2: QoS Tools and Architectures
Table 2-12 DiffServ Terminology and Their Definitions (Continued)
Term |
Definition |
|
|
MF classifier |
A multifield (MF) classifier that selects packets based on the content of |
|
some arbitrary number of header fields; typically some combination of |
|
source address, destination address, DS field, protocol ID, source port and |
|
destination port. |
|
|
Per-hop behavior (PHB) |
The externally observable forwarding behavior applied at a DS-compliant |
|
node to a DS BA. |
|
|
Policing |
The process of discarding packets (by a dropper) within a traffic stream in |
|
accordance with the state of a corresponding meter enforcing a traffic |
|
profile. |
|
|
Re-mark |
To change the DS code point of a packet, usually performed by a marker in |
|
accordance with a TCA. |
|
|
Shaper |
A device that performs shaping. |
|
|
Traffic conditioner |
An entity that performs traffic-conditioning functions and which may |
|
contain meters, markers, droppers, and shapers. Traffic conditioners are |
|
typically deployed in DS boundary nodes only. A traffic conditioner may |
|
re-mark a traffic stream or may discard or shape packets to alter the |
|
temporal characteristics of the stream and bring it into compliance with a |
|
traffic profile. |
|
|
Table 2-12 contains material reprinted from RFC 2475.
DiffServ terminology overwhelms most people when first learning the architecture. Not all the DiffServ terms are even listed in the table. In fact, I wouldn’t be surprised if you are already wondering which of these terms you really need to know when using QoS and which of these terms you need to know for the Cisco QoS exams. Neither of the exams covered by this book focus on DiffServ as an end to itself. If you glance over the table, and read this section, you should become familiar enough with the terms to do well on those questions on the exams.
The rest of this section explores some examples of usage of DiffServ terminology. The first two terms are “behavior aggregate” and “per-hop behavior.” If you read the previous section about the fictitious “GOCS model” for QoS, you already know the concepts behind the terms.
Figure 2-14 shows the terms in a figure that is a duplicate of Figure 2-12.

The Differentiated Services QoS Model 117
Figure 2-14 Behavior Aggregates and Per-Hop Behavior
Mark
X |
Y |
Z |
-DS Classifier recognizes BAs by a detailed examination of packet headers
-DS Marker sets DSCP fields based on which BA it is a part of
-Best performed near the source
Classify |
Drop |
|
Shape |
Queue |
|
Bit Rate |
|
|
|
||
|
? |
|
Limit |
|
|
x bps |
|
|
Dropped |
|
Down |
|
|
Slow |
|
|
|
|
-The BA Classifier identifies BAs by looking at the DSCP field -Routers apply PHBs to each BA
-Good QoS design typically implies same BAs throughout network -PHBs may be different on each router and for each BA
Server 1
IP |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IP |
Hannah |
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
FA0 |
|
SW1 |
R1 |
s0 |
s0 |
R2 |
s1 |
T1 |
s0 |
R3 |
SW2 |
|
|
2 |
|
3 |
|
|
|
|
|
201 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
|
DSCP = AF11: Behavior Aggregate of Flows to Web Server |
|
|||||||
|
DSCP = AF21: Behavior Aggregate of Flows to Server1 FTP Server |
|
|||||||
|
DSCP = AF31: Behavior Aggregate of Lots of VoIP Payload Flows |
|
|||||||
|
DSCP = AF41: Behavior Aggregate of VoIP Signaling Traffic |
|
Consider the flow of packets from left to right in this network. The following list numbers correspond to the steps in the figure:
1The packets are classified or categorized by matching fields in the header. For instance, packets with Server1’s destination IP address, and destination port 80, would be in the first class. The process of classifying the packets is performed by the DS classifier, MF classifier, or just classifier. The classifier marks the DSCP field inside the IP header; DSCP is a

118 Chapter 2: QoS Tools and Architectures
6-bit field inside the DS field (byte) inside the IP header. Classification and marking are considered to be two different steps—the DiffServ marker actually performs the process of marking the packets. DiffServ defines each class or category of packets as a BA.
2Router R1 determines which packets are part of which BA by using a BA classifier. A BA classifier only examines the DSCP field, so technically it differs from an MF classifier, as described in step 1, because the MF classifier can look at many fields besides the DSCP field. When R1 decides to apply a QoS tool to a BA (for example, queuing), the action is called a per-hop behavior. The term PHB makes sense to most people, particularly if you think of it as a per-hop QoS behavior.
3Router R2 performs the same types of tasks as R1; these tasks are described with the same terms as in step 2. Also note that the PHBs can be, and often are, different on one router to the next. In this case, R2 may want to use a shaping PHB—DiffServ would call the shaping tool a shaper—but because all implemented shaping tools need to calculate the rate at which packets are sent, DiffServ would consider both a meter and shaper to be used.
4Likewise, no new terminology is required to describe step 4, as compared with the two preceding steps. However, the terms “AF11,” “AF21,” “AF31,” and “AF41” have not yet been defined. DiffServ defines several suggested values to be used in the DSCP field. Most installations do not need all 64 values possible in DSCP. The next section in this chapter covers the details, but in this case, AF11, AF21, AF31, and AF41 represent different DSCP values.
DiffServ models good QoS design specifically to support Internet-scale QoS. Reading through the RFCs, you will notice that DiffServ focuses on issues between different networks. Figure 2-15 shows the same two enterprise networks and the same two ISPs shown in Figure 2-13 in the GOCS section of this chapter. The figure shows examples of several of the DiffServ terms that relate to interconnecting networks.
Figure 2-15 DiffServ Domains, Regions, and Nodes
|
|
DS Region |
|
|
|
DS Interior Node |
|
|
|
DS Ingress Boundary Node |
DS Egress Boundary Node |
|
||
McCoy |
R3 |
|
ISP2 |
Hatfield |
Ordinance, Inc. |
ISP1 |
|
Gunsmiths |
|
|
|
|||
|
R1 |
R2 |
|
|
DS Domain |
DS Domain |
DS Domain |
DS Domain |
Direction of Flow of Packets in This Example