Professional Documents
Culture Documents
QoS
Converged Network Quality Issues
Lack of bandwidth: Multiple flows compete for a limited
amount of bandwidth.
End-to-end delay (fixed and variable): Packets have to traverse
many network devices and links that add up to the overall
delay.
Variation of delay (jitter): Sometimes there is a lot of other
traffic, which results in increased delay.
Packet loss: Packets may have to be dropped when a link is
congested.
Lack of Bandwidth
Processing delay: The time it takes for a router to take the packet from an input interface, examine
it, and put it into the output queue of the output interface.
Queuing delay: The time a packet resides in the output queue of a router.
Serialization delay: The time it takes to place the “bits on the wire.”
Propagation delay: The time it takes for the packet to cross the link from one end to the other.
The Impact of Delay on Quality
End-to-end delay equals the sum of all propagation, processing, serialization, and
queuing delays in the path.
Jitter defines the variation in the delay.
In best-effort networks, propagation and serialization delays are fixed, while
processing and queuing delays are unpredictable.
Impact of Packet Loss
Tail drops occur when the output queue is full. Tail drops are common and happen when
a link is congested.
Many other types of drops occur, usually the result of router
congestion, that are uncommon and may require a hardware upgrade (such as, input
drop, ignore, overrun, frame errors).
QoS Defined
Implementing QoS
A networkwide definition
of the specific levels of
QoS assigned to different
classes of network traffic
QoS Models
Model Characteristics
RSVP sets up a path through the network with the requested QoS.
RSVP is used for CAC in Cisco Unified CallManager 5.0.
DiffServ Model
DiffServ (RFC 2474 and RFC 2475) was designed to overcome
the limitations of both the best-effort and IntServ models.
Network traffic is identified by classes.
Network QoS policy enforces differentiated treatment of traffic
classes.
You choose level of service for each traffic class.
Benefits and Drawbacks of the DiffServ
Model
Benefits:
Highly scalable
Many levels of quality possible
Drawbacks:
No absolute service guarantee
Complex mechanisms
Methods for Implementing QoS Policy
Method Description
MQC • CLI
• Makes configurations modular
• Best way for QoS fine tuning
router(config)#
class-map [match-all | match-any] class-map-name
Enters class-map configuration mode.
Specifies the matching strategy.
router(config-cmap)#
match any
router(config-cmap)#
description description
• You should use descriptions in large and complex configurations.
• The description has no operational meaning.
ACLs for Traffic Classification
router(config)#
access-list access-list-number {permit | deny | remark}
source [mask]
Standard ACL
router(config)#
access-list access-list-number {permit | deny} protocol
source source-wildcard [operator port] destination
destination-wildcard [operator port] [established] [log]
• Extended ACL
router(config-cmap)#
match access-group access-list-number
router(config)#
policy-map policy-map-name
Enters policy-map configuration mode.
Policy maps are identified by a case-sensitive name.
router(config-pmap)#
class {class-name | class-default}
• Enters the per-class policy configuration mode by using the name of a previously
configured class map.
• Use the class-default name to configure the policy for the default class.
router(config-pmap)#
class class-name condition
• Optionally, you can define a new class map by entering the condition after the
name of the new class map.
• Uses the match any strategy.
Service Policy
“Where will this policy be implemented?”
Attaches a traffic policy configured with a policy map to an
interface.
Service policies can be applied to an interface for inbound or
outbound packets.
MQC Example
hostname Office
!
class-map VoIP
match access-group 100 Classification
class-map Application
match access-group 101
!
policy-map QoS-Policy
class VoIP
priority 100
class Application QoS Policy
bandwidth 25
class class-default
fair-queue
!
interface Serial0/0
service-policy output QoS-Policy QoS Policy on Interface
!
access-list 100 permit ip any any precedence 5
access-list 100 permit ip any any dscp ef
access-list 101 permit tcp any host 10.1.10.20 Classification
access-list 101 permit tcp any host 10.1.10.40
Basic Verification Commands
router#
show class-map
router#
show policy-map interface type number
EF PHB:
Ensures a minimum departure rate
Guarantees bandwidth—class guaranteed an amount of bandwidth with prioritized forwarding
Polices bandwidth—class not allowed to exceed the guaranteed amount (excess traffic is dropped)
DSCP value of 101110: Looks like IP precedence 5 to non-DiffServ-compliant devices:
Bits 5 to 7: 101 = 5 (same 3 bits are used for IP precedence)
Bits 3 and 4: 11 = No drop probability
Bit 2: Just 0
AF PHB
AF PHB:
Guarantees bandwidth
Allows access to extra bandwidth, if available
Four standard classes: AF1, AF2, AF3, and AF4
DSCP value range of aaadd0:
aaa is a binary value of the class
dd is drop probability
AF PHB (Cont.)
Reserved 7 — 56–62 7
Reserved 6 — 48 6
Voice bearer 5 EF 46 5
Video-data traffic 4 AF41 34 4
Mission-critical data 3 AF31 26 3
Transactional data 2 AF2x 18, 20, 22 2
Scavenger 1 — 8 1
Bulk data 1 AF1x 10, 12, 14 1
Best-effort data 0 BE 0 0
Less-than-best-effort data 0 — 2, 4, 6 0
Trust Boundaries: Classify Where?
• Congestion can occur at any point in the network where there are
points of speed mismatches or aggregation.
• Queuing manages congestion to provide bandwidth and delay
guarantees.
Speed Mismatch
Allows prioritization
Assign a weight to each queue
Dispatches packets from each
queue proportionately to an
assigned weight:
Dispatch up to four from
queue No. 1.
Dispatch up to two from
queue No. 2.
Dispatch 1 from
queue No. 3.
Go back to queue No. 1.
Weighted Round Robin (Cont.)
router(config-pmap-c)#
bandwidth remaining percent percent
router(config-pmap-c)#
queue-limit queue-limit
Sets the maximum number of packets that this queue can hold.
The default maximum is 64.
router(config-pmap-c)#
fair-queue [number-of-dynamic-queues]
router(config-pmap-c)#
priority percent percentage
class-map voip
match ip precedence 5
!
class-map mission-critical
match ip precedence 3 4
!
class-map transactional
match ip precedence 1 2
!
policy-map Policy1
class voip
priority percent 10
class mission-critical
bandwidth percent 30
class transactional
bandwidth percent 20
class class-default
fair-queue
Monitoring LLQ
router>
show policy-map interface interface
Displays the packet statistics of all classes that are configured for all service
policies on the specified interface or subinterface
router>show policy-map interface fastethernet 0/0
FastEthernet0/0