Quality of Service
Quality of Service
Srinath Beldona
Practice Head IP – NGN Business
[email protected]
Application Priority
Model Features
Best-Effort model Designed for best-effort, no-guarantee delivery of
packets
The main difference between the IntServ and DiffServ models is that in
DiffServ, the network recognizes packets (no signaling is needed) and
provides the appropriate services to the packets. IP networks today can use
all three models at the same time.
38 © 2012 WIPRO LTD | WWW.WIPRO.COM
Three Models for Quality of Service
Model Method
• Benefits:
• Highly scalable
• No special mechanisms required
• Drawbacks:
• No service guarantees
• No service differentiation
• Benefits:
• Explicit resource admission control (end to end)
• Per-request policy admission control (authorization object,
policy object)
• Signaling of dynamic port numbers (for example, H.323)
• Drawbacks:
• Continuous signaling because of stateful architecture
• Flow-based approach not scalable to large
implementations such as the public Internet (can be made
more scalable when combined with elements of the
DiffServ Model)
• Benefits:
• Highly scalable
• Many levels of quality possible
• Drawbacks:
• No absolute service guarantee
• Complex mechanisms
RT
Packet “colour” Bus
In DSCP
Classification and Std
conditioning (meter,
Aggregate PHBs in
marking, policing) at
CORE (EF, AF, Default)
EDGE
52 © 2012 WIPRO LTD | WWW.WIPRO.COM
Differentiated Services Model (Cont.)
• Benefits
• Simple and fast(one single queue with a simple scheduling
mechanism)
• Supported on all platforms
• Supported in all switching paths
• Supported in all IOS versions
• Drawbacks
• Causes starvation(aggressive flows can monopolize links)
• Causes jitter (bursts or packet trains temporarily fill the queue)
• Implementation parameters
• Queuing platform: central CPU or VIP
• Classification mechanism
• Weighted fairness
• Modified tail drop within each queue
• Benefits
• Simple configuration (classification does not have to be
configured)
• Guarantees throughput to all flows
• Drops packets of most aggressive flows
• Supported on most platforms
• Supported in all IOS versions
• Drawbacks
• Multiple flows can end up in one queue
• Does not support the configuration of classification
• Cannot provide fixed bandwidth guarantees
• Complex classification and scheduling mechanisms
• Benefits
• Minimum bandwidth allocation
• Finer granularity and scalability
• MQC interface easy to use
• Maximizes transport of priority traffic
• Weights guarantee minimum bandwidth
• Unused capacity shared among the other classes
• Queues separately configured for QoS
• Drawbacks
• Voice traffic can still suffer unacceptable delay
• Benefits
• High-priority classes are guaranteed:
• Low-latency propagation of packets
• Bandwidth
• Consistent configuration and operation across all media
types
• Entrance criteria to a class can be defined by an ACL
• Not limited to UDP ports as with IP RTP priority
• Defines trust boundary to ensure simple classification and entry
to a queue
Voice 1 1 1 11
1 1 1 1 1 1 1 1 1 1 1 1 1
Video 1 1 1 1 2 12
3
Data 1 1 1 1 1 1 13
Forwarder
Interface Yes
Congested?
FIFO/PQ/CQ/WFQ (output hold-queue
interface ‘hold’ compromise
No latency/buffering )
Tx-Queues
Transmission
Queue (tx-ring)
SHAPING/COMPRESSION/
POLICING CLASSIFICATION AND QUEUEING AND
FRAGMENTATION/INTERLEAVE
MARKING (SELECTIVE) DROPPING
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
48-bit Destination MAC Address
C
3-bit
16-bit Ethertype (0x8100) F 12-bit VLAN ID
Prio I
32-bit FCS
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
MPLS EXP
3 bits wide; values 0–7
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
4-bit 4-bit
8-bit TOS 16-bit Total Length
Version Hdr Len
3-bit
16-bit Indentification 13-bit Fragment Offset
Flags
Data
0 0 0 0 0x00
1 1 1 8 0x20
2 2 2 16 0x40
3 3 3 24 0x60
4 4 4 32 0x80
5 5 5 40 0xA0
6 6 6 48 0xC0
7 7 7 56 0xE0
DSCP ECN
Former ToS byte = new DS field
• DS codepoint: a specific value of the DSCP portion of the DS field, used to
select a PHB
• DS field (rfc2474): 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 codepoint,
• ECN bits used for host Congestion Notification (RFC3168, cscdu83511)
Assured Forwarding
Low Drop Med Drop High Drop
Pref Pref Pref
10 12 14
Class 1 AF11 AF12 AF13 001010 001100 001110
18 20 22
Class 2 AF21 AF22 AF23 010010 010100 010110
26 28 30
Class 3 AF31 AF32 AF33 011010 011100 011110
34 36 38
Class 4 AF41 AF42 AF43 100010 100100 100110
0
Best Effort BE 000000
16 © 2012 WIPRO LTD | WWW.WIPRO.COM
DS field pools
Router(config-pmap-c)#set ip dscp ?
<0-63> Differentiated services codepoint value
af11 Match packets with AF11 dscp (001010)
af12 Match packets with AF12 dscp (001100)
af13 Match packets with AF13 dscp (001110)
…
af42 Match packets with AF42 dscp (100100)
af43 Match packets with AF43 dscp (100110)
cs1 Match packets with CS1(precedence 1) dscp (001000)
cs2 Match packets with CS2(precedence 2) dscp (010000)
…
cs6 Match packets with CS6(precedence 6) dscp (110000)
cs7 Match packets with CS7(precedence 7) dscp (111000)
default Match packets with default dscp (000000)
ef Match packets with EF dscp (101110)
• Two functions
Packet Classification—IP precedence and QoS group setting (dscp,
exp)
Access Bandwidth Management ‘rate limiting’
Traffic Traffic
Action
Matching Measurement
Policy
Specification Instrumentation
Recolor
Drop
Drop Multimedia
Recolor
Mission-Critical
Per Application CAR
Policing
Traffic
Traffic
Time Time
Shaping
Traffic
Traffic
Traffic Rate
Traffic Rate
Time Time
Packets Enough
token in YES: Conform
arriving
bucket ? (transmit at line rate)
Internet Service
Provider (ISP)
128 Kbps
Cloud
T1
Classify
No Match
Configured
Queuing (e.g.
WFQ, CQ, etc.)
Shaping Queue
FIFO, LLQ …
TS
SubIntf 1.2 Output
CIR=48 kbps
Interleaving
Dual fifo if
FRF12
Shaping Queue Output
Interface
FIFO, LLQ …
FIFO, WFQ…
(only fifo in
latest IOS)
FRTS dTS
Default Tc = 125ms (if bc not set) Default Tc = 4 ms (if bc not set)
10ms <= Tc <= 250ms (4ms CSCdx27315) 4ms <= Tc <= 128ms and must be a
Negative token credit multiple of 4ms
If configured Tc > 250 ms then Tc = (Tc Positive token credit only
+ 1)/2 until Tc <= 250 ms If configured Tc > 128ms then Tc =
Take this new Tc to calculate new bc Tc/2 until Tc <= 128ms
and be (byte increment and byte Take this new Tc to calculate a new bc
limit) and be
Traffic from llq is sent even if bc is
already negative Traffic from llq waits until enough
Part of the L2 is taken in account but token in bc
not all sum(CIR)<95%AR Part of the L2 is taken in account but
not all sum(CIR)<95%AR
Voice 1 1 1 11
1 1 1 1 1 1 1 1 1 1 1 1 1
Video 1 1 1 1 2 12
3
Data 1 1 1 1 1 1 13
Forwarder
Interface Yes
Congested?
FIFO/PQ/CQ/WFQ (output hold-queue
interface ‘hold’ compromise
No latency/buffering )
Tx-Queues
Transmission
Queue (tx-ring)
Transmit
Queue
Output Line
Interface Hardware
• Ethernet
• Frame Relay
• ATM
• Serial Link
High • Etc.
Traffic
Destined Medium Transmit Output
for Interface Queue Line
Classify
Normal
Low
Q Length Defined
by Q Limit Absolute Priority
Scheduling
Forwarder
Priority Classification
(Access)
List
Transmission
Queue
Interface Hardware
• Ethernet
• Frame Relay
1/10 • ATM
• Serial Link
2/10 • Etc.
Traffic Destined
3/10
for Interface Transmit Output
2/10 Queue Line
Classify
3/10
Up to 16
Link
Q Length Utilization Weighted Round
Deferred by Ratio Robin Scheduling
(byte count min
Queue Limit default 1500, each packet
started is sent)
Forwarder
Priority
(Access)
Control Traffic List
Queue #0
Queue #1 Queue #9
Queue #2 Queue #10
Queue #3 Queue #11
Queue #4 Queue #12
Queue #5 Queue #13
Queue #6 Queue #14
Queue #7 Queue #15
Queue #8 Queue #16
Transmission Queue
20 © 2012 WIPRO LTD | WWW.WIPRO.COM
Custom Queuing
CQ
• 16 Queues PQ
• Packets
4 Queues: classified by protocol
High, Medium, or interface
Normal,
• Low per custom queues
FIFO
• Packets classified
Weighted by protocol
round robin or (but no ‘deficit’ mechanism)
scheduling
• interface
WRED and RSVP not supported
•• FIFO within priority
Guarantees BW perqueues
queue, not delay
• Absolute priority scheduling
• Lower priority queues may starve
Q Classification:
• Source address 1 1
• Dest address Reserved queues
...
• Source port (RSVP and RTP Reserve)
• Dest. Port 2 2 2
• Tos bits (not prec!)
Weight: 3
• IP Precedence ... IP Precedence 7
• RSVP/RTP Reserve De-
• W=32384/(prec+1) 4 4
queue
...
5 5
IP Precedence 0
...
F(A2)=100+20 A2[20]
F(B2)=350+300 F(A3)=120+10 A3 [10]
B2[300]
t 100 70 60 50 0
B2 B1 A3 A2 A1
• CDT = 8, Max-Limit=14
4 4 4 4
Class queues
1 1 Max: 1023
...
2 2 2
De-queue
3
Default class-queue
OR
5 5
Classify
...
WFQ System
6 6 6 (unclassified traffic)
Forwarder
Per flow
Class #1 (hash)
Class #2
Flow #3
Class #3
Flow #2
Class #64
Flow #1
Forwarder
Per flow
Class #1 (hash)
Class #2
Flow #256
Class #3
Flow #2
Class #63
PQ Flow #1
number of queues in default-class depends on visible BW (16, 64,
128 ,256 ..configurable)
• Priority Classes
– priority and max BW (not limited to RTP flows)
– burst size (200ms of traffic by default)
– “Expedite Forwarding” class in diffserv model
– low latency queuing classes
– Only 1 fifo PQ (even if several priority classes !!)
– « CAR like » policed if congestion (exept LLQ in
– FR is ALWAYS policed but drop only if congested)
• Shared WFQ
BW, no guarantees
LLQ
Bandwidth
100% Utilization
Time
Tail Drop
TAIL
WREDDROP
Queue
3 3
1 01 2 1 2 0 2 0 3 2 1 3
0
3
0
3
• Without RED when the queue fills up ALL packets that arrive are
dropped—Tail drop
• With RED as oppose to doing a tail drop the router monitors the
average queue size and using randomization choose connections
to notify that a congestion is impending
Probability
1 _
of Packet
Discard
Two drop slopes are
shown; Up to eight
can be defined
Prec 0
Mark prob _ drop
profile
“Slope” is Prec 1
adjustable drop
profile
0
Queue Length
IP Prec 0 IP Prec 1
Max0/max 1
Min. Min.
100%
50%
Average
0 Queue
Begin Begin Begin Size
Dropping Dropping Dropping
AF13 AF12 AF11 Max Queue
Length
(Tail Drop)
Version ToS
Byte Len ID Offset TTL Proto FCS IP SA IP DA Data
Length
IPv4 Packet
7 6 5 4 3 2 1 0
DiffServ Code Point (DSCP) ECT CE
Max
Window
.5 Max
Window
Max
TCP Slow Start - Time to recover depends on RTT
Window
Min
Window
RTT time
cwin3
cwin4 MEAN
0.800 Sum
Line load
0.600
0.400
0.200
0.000
1 6 11 16 21 26 31 36
Time in RTT
23 © 2012 WIPRO LTD | WWW.WIPRO.COM
TCP and RED drop
Line Usage
1.200
cwin 1
1.000 cwin2
MEAN
cwin3
cwin4
0.800
Sum
Line Load
0.600
RED Drop
0.400
0.200
0.000
1 6 11 16 21 26 31 36
Time in RTT
23 © 2012 WIPRO LTD | WWW.WIPRO.COM
RED tuning
• Max threshold = 1 * P
–where P is the pipesize = RTT * BW / (MTU * 8)
• Set MaxP = 1
– i.e. probability of discard at max threshold = 1
cos-queue-group oc48_policy
precedence 0 queue 0
precedence 1 queue 1
precedence 3 queue 1
precedence 4 queue 1 • Legacy CLI required for
precedence 6 queue 1 MDRR/WRED:
precedence 5 queue low-latency
precedence 0 random-detect-label 1 –Engine 0
precedence 1 random-detect-label 0
precedence 3 random-detect-label 1 –Engine 2
precedence 4 random-detect-label 1
precedence 6 random-detect-label 1 –Engine 4 / 4+
random-detect-label 0 500 1012 1
random-detect-label 1 1500 9692 1 • Implicitly matches MPLS-
queue 0 1 EXP
queue 1 73
queue low-latency strict • Search on CCO for
!
int pos 1/0 Document ID: 18841
tx-cos oc48_policy
Traffic
Destined Transmit Output
for Interface Queue Line
IP Voice
Jumbogram
WFQ
Per PVC
Per Interface dual FIFO
V V Router
PQ - voice Interface
1 1
High
PQ V V WAN Circuit
2 L L 1 1
I
LM V V
3 3 3 3 4 3 2 4 3 2 L 1 1
WFQ
Low
4 4 4 4
Voice flow
Data flow
Inter-
WFQ leaving
Data flow de-queuing Fragmentation PVC A
Interface queues
Voice flow
High FIFO
Data flow PVC B
Inter- Tx Ring
WFQ leaving
Data flow de-queuing Fragmentation Normal FIFO
Voice flow
LLQ
PQ CQ WFQ PQWFQ CBWFQ
(PQ-CBWFQ)
IP Prec,
RSVP, RTP VoFR and
Protocol, Protocol, VoFR and
Classification interface interface
Reserve, IP RTP Mod CLI
Mod CLI
protocol, Priority
port
1 PQ + 1024 1 PQ +
# queues 4 16 Per flow
WFQ classes CBWFQ
BW PQ: yes
No No No Yes Yes
Guarantee WFQ: No
policy-map udp-hierarchy
class nfs
bandwidth <bw specification>
class tftp
bandwidth <bw specification>
policy-map tcp-hierarchy
class http
bandwidth <bw specification>
class ftp
bandwidth <bw specification>
• ‘AutoQoS’
–AutoQoS ‘discovery’ analyse traffic
–AutoQoS define automatically classes, policy-map, LFI, Wred and
apply policies
Cisco AutoQoS
AutoDiscovery Traffic Class DSCP
Policy
Cisco AutoQoS
Application and Class-Maps IP Routing CS6
Protocol-Types
Match Statements Interactive Voice EF
Minimum Bandwidth Interactive Video AF41
Offered Bit Rate
to Class Queues,
(Average and CS4
Scheduling and Streaming Video
Peak)
WRED
Telephony Signaling CS3
Transactional/Interactive AF21
Scavenger CS1
Best Effort 0
!
!
class-map match-any AutoQoS-VoIP-RTP-Trust
interface Multilink2001100117
match ip dscp ef
bandwidth 768
class-map match-any AutoQoS-VoIP-Control-Trust
ip address 10.1.102.2 255.255.255.0
match ip dscp cs3
service-policy output AutoQoS-Policy-Trust
match ip dscp af31
ip tcp header-compression iphc-format
!
no cdp enable
!
ppp multilink
policy-map AutoQoS-Policy-Trust
ppp multilink fragment delay 10
class AutoQoS-VoIP-RTP-Trust
ppp multilink interleave
priority percent 70
ppp multilink group 2001100117
class AutoQoS-VoIP-Control-Trust
ip rtp header-compression iphc-format
bandwidth percent 5
!
class class-default
…
fair-queue
!
!
interface Serial2/0
bandwidth 768
no ip address
encapsulation ppp
auto qos voip trust
no fair-queue
ppp multilink
ppp multilink group 2001100117
!
26 © 2012 WIPRO LTD | WWW.WIPRO.COM
AutoQoS
AutoQoS Enterprise: WAN, Part 1: Discovery
• AutoDiscovery notes
–Command should be enabled on interface of interest
–Do not change interface bandwidth when running auto discovery
–Cisco Express Forwarding must be enabled
–All previously attached QoS policies must be removed from
the interface
<policy continued>
!
policy-map AutoQoS-Policy-Se4/0-Parent
class class-default
shape average 256000
service-policy AutoQoS-Policy-Se4/0
!
interface Serial4/0 point-to-point
frame-relay interface-dlci 100
class AutoQoS-FR-Serial4/0-100
!
map-class frame-relay AutoQoS-FR-Serial4/0-100
frame-relay cir 256000
frame-relay mincir 256000
frame-relay fragment 320
service-policy output AutoQoS-Policy-Se4/0-Parent
• dWFQ supports
–Flow-based WFQ
–ToS-based
–Qos group-based
–dLLQ
Per-Class
66% 22% 11%
Forwarder
Calendar Queues
Transmission Queue
Forwarder
lower 2bits
IP Prec-Based
Classifier
Weight
Calendar Queues
Transmission Queue
Forwarder
QoS group set using CAR or
QoS policy progation via BGP
Classifier
QOS-
Queue Queue Queue Queue
Group 1 2 99
0
Queues
Weight
(1-100) Calendar Queues
Transmission Queue
Forwarder
Per class
(ACL)
CAR
Meter
Inbound
Traffic
Classifier Marker Conditioner Queuing
Stream
(from dCEF MDRR
ToFab F
CAR CAR
Select dest xACL
or or A
slot/intf) Policy Routing WRED
B
R
I
Meter C
Outbound FromFab
Traffic Queuing Conditioner Marker Classifier
Stream
WRED
Transmit Side of output line card (up to 8 cos queues per port w/ PQ)
W-RED MDRR
Output
Ports
Crossbar Switch Fabric
Egress
Policing Yes No Nested CAR CAR ***** CAR CAR
Shaping No Port 2 Level Yes Yes Yes
Congestion
Avoid. WRED WRED WRED WRED WRED WRED
MDRR (strict
Latency Control only) MDRR MDRR MDRR MDRR MDRR
CoS Queues 128 128** 2048/4096 128 128 128
• All queues, except low-latency queue, are serviced in round robin fashion
• Two modes for servicing the low-latency queue
–Alternate Priority and Strict Priority
Strict Priority
• In Strict Priority mode, the low latency
queue is always serviced if packets
are queued. Remaining queues are
.. serviced in ‘round robin’ fashion
0 1 2 3
IM IM IM IM
Ingress Demux
Packet Packet
Egress Mux
4 5 6 7
Headers In IM IM IM IM
Headers Out
8 9 10 11
IM IM IM IM
12 13 14 15
IM IM IM IM
Column Column
Memory Memory feedback
CEF
VTMS,
Accounting shaping,
ACLs, policing CBWFQ,
Classification WRED, LLQ
….
PXF Queuing
Scheduling Multicast
Queues
Wheel Replication
ASIC (Titan)
LC-Bus
Classify
Receive Local Bus
Forwarding Bus Forwarding
And Engines
Fabric Interface
ASIC (Medusa)
Scheduling
Wheels Queues WRED
Fabric Link
ASIC
Switch
(Santa Ana) Fabric
Transmit Classify
PINNACLE Sculptor
[4 GE Ports]
Packet
512 KB PXF Complex Buffer IP/MPLS
L2 Buffer Software Qs
Hardware Qs Shaping
WAN Ports CBWFQ/LLQ
PQ, WRR
WRED WRED
Link
QID 1 CIR=x1, EIR=y1
High priority timing
wheel (LLQ) QID 2 CIR=x2, EIR=y2
QID 3 CIR=x3, EIR=y3
QID 5
N QID 19
class-map match-fr-de
match fr-de
FR
policy-map DE-ToS
class match-fr-de
set ip precedence 1
interface s4/0.1
service-policy input DE-ToS
ATM
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Label | EXP |S| TTL |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Customer CE PE Customer
QoS QoS SP QoS QoS QoS
LSP TE
• By default ingress IP prec copied in EXP labels (or manually set to ‘n’ new cli set mpls exp imposition ‘n’ replace
set mpls exp ‘n’)
• Classification behavior on egress PE use DSCP
• PHP should not be configured (use explicit-null) and use QOS group to map EXP to QOS-group for egress PE
classification based on EXP
• By default EXP is NOT copied down after POPping
• in both the MPLS-to-MPLS and the MPLS-to-IP cases, the PHB’s of the top-most popped label is
copied into the new top label or the IP DSCP if no label remains. ‘mpls propagate-cos CSCdv21062’
• Only works for 8 distinct PHB’s. Requires specific mapping dscp->mpls-exp->dscp if the distinct
PHB’s are encoded using more than the 3 precedence bits (table-map)
• Egress PE classification based on IP DSCP
• the PHB’s of the top-most popped label is copied into the new top label but not copied in IP
DSCP
• classification is based on mpls-exp field (use qos-group/discard-class) of the top-most
received MPLS frame
• the PHB’s of the top-most popped label is copied into the new top label but
not copied in IP DSCP
• Egress PE classification still based on IP DSCP
CE
PE
MPLS MPLS
IP: MPLS
exp 2 exp 2
dscp exp 2
5 IP: MPLS
IP: exp 2
dscp dscp
5 5 IP:
dscp
Push a Null-Label and 5
use its EXP field to
convey result of Copy EXP of popped Null-label
classification into EXP of pushed labels
Preserve DSCP
PE
• QoS Group Id and Discard class for local
packet marking
• Always an input feature (before label
MPLS IP POP)
• Used to implement uniform and pipe
mode
• Recommended semantics
–QoS group identifies class
QoS Group Id –Discard class identifies drop
precedence
Input Output • Discard class can drive WRED
EXP Policy
POP
Policy
• Not all classes will have a drop
Discard Class precedence (e.g. EF, best effort)
policy-map input
class AF11
set qos-group 1 policy-map output
set discard-class 1 class AF1
bandwidth percent 20
random-detect discard-class-based
Egress Interface/PVC
Unclassified
Queuing (LLQ)
flows voice conforming, admitted flows
PQ
non-voice conforming,
RSVP admitted flows Reserved
Classifi- Queues
cation
Class1
non-admitted flows, Class2
voice signalling traffic,
PATH and RESV msgs
Default/BE
IOS 12.2(13)T
marking CSCdw74248
eng-154069
queuing/scheduling
Voice Voice
Realtime Interactive-Video
Video Streaming Video
Call Signaling Call Signaling Call Signaling
IP Routing
Network Control
Network Management
11 Class
IPP,COS,EXP/DSCP PHB
QoS Baseline Model
Voice 5 / 46 EF/CS5
Video-Conferencing 4 / 34 AF41
Call Signaling 3 / 24 CS3 (ex AF31)
IP Routing 6 / 48 CS6
• Don’t combine VoIP with video for slow (<768 Kbps) lines, to avoid
excessive serialization delay (no frag on PQ!)
• Don’t combine Call Signaling with VoIP for slow links (<768 Kbps)
• Don’t mix TCP and UDP traffic in the same class, as far as
possible. Drop (via WRED) insensitive UDP traffic may dominate
drop-sensitive TCP traffic in case of congestion.(or drop UDP very
aggressively)
Application DSCP
SP Edge Classes SP Core Classes
Routing CS6
REALTIME REALTIME
Voice EF EF 35 percent EF 25 percent
Interactive Video AF41 è CS5 CS5 CS5 (50% max)
Streaming Video CS4 X
CS6 CS6
Mission- Critical Data DSCP 25 è AF31
AF31 AF31
Call Signaling AF31/CS3 è CS5 CRITICAL CRITICAL
DATA DATA
Transactional Data AF21 è CS3 40 percent
CS3 CS3
Network Management CS2 è CS3
Bulk Data AF11 X - EFFORT -
BEST BEST EFFORT
Scavenger CS1->0 25%
Best Effort 0
Call Signaling Call Control CBR AF31/CS3 CS5 5 priority Real time Real time
“”
Interactive Video Interactive CBR AF41CS5 CS5 5 (see note 1) Priority Real time Real Time
Video (see note 1) “”
Streaming Video (Transactional VBR-rt CS4 AF21 AF21 With Critical Video/Mgnt Bus 2 (AF21, CS2)
data) data (note 2) Critical
Network SP network VBR-rt CS2 CS2 3Q2T Video/Mgnt Bus 7 (SPT traffic)
Management Mgnt (Ent. Net (Cos=7) Critical
(note 3) Mgnt in inside
Trans. Data) Enterprise
today
SPT =7
Routing Routing VBR-nrt CS6 CS6 6 3Q1T Bus Critical Bus 6 (CS6)
Critical
Mission Critical CIR/PIR VBR-nrt AF31 AF31 3 (CIR) 2Q2T 1 (out-of- Bus Critical Bus 3 (AF31, CS3)
data (out of contract 1 (PIR) 2Q1T contact) Critical 1 (Af31, CS3)
=CS1)
Transactional CIR/PIR VBR-nrt AF21CS3 CS3 3 (CIR) 2Q2T 1 (out-of- Bus Critical Bus
Data (out of contract 1 (PIR) 2Q1T contact) Critical “”
=CS1)
Bulk BULK UBR AF11CS0 CS0 0 1Q1T Best Effort Best Effort 0 (CS0)
Scavenger BULK UBR CS1CS0 CS0 0 1Q1T Best Effort Best Effort “”
Best Effort Best Effort UBR 0 0 1Q1T Best Effort Best Effort “”
1. Inclusion of Interactive Video in real-time class needs high edge link bandwidth. If excluded, it can be included in another class (e.g.,
Video or Business Critical class) if that class can support the latency/jitter requirements of interactive video.
2. Streaming Video is included with Business Class in Metro solution
3. Metro Solution colors the Enterprise SPT traffic with Cos = EXP = 7 (not transported across SP network). Enterprise Network Mgnt traffic is
included in Transaction Data Class or Critical Data Class.
4. Reserve EXP 7 for future use, and 6 for Routing. That leaves EXP 4 in the core, which can possibly be used for out-of-contract traffic of
some class.
5. Streaming Video: assumed not to have strict delay, jitter requirements (e.g, VOD having large jitter buffer). If it has strict delay, jitter
33 requirements, it needs to be combined with Real Time (needs high bandwidth links)
© 2012 WIPRO LTD | WWW.WIPRO.COM
Latest enhancements
• PQ, CQ (and FIFO) available for ages but many side effects.
• New mechanisms for “real” QoS, available only since 12.1-12.2 (T ...)
Today 12.3M offer a large choice of QoS mechanisms
• Requires upgrade plan ...
CE
CE
• L3/nC/nD
–n customer per interface (fr/atm/vlans)
• L3/1C/1D (special case of nC/nD)
–1 customer per interface (ppp/hdlc)
• L3/nC/mD
–Multiple VC per customer per intf (fr/atm/vlans)
• On PE Ingress/Egress
–To control per customer SLA
• On P devices
–3 options :
–50% Over provisioning NO QoS needed (but be
careful of link failure!)
–Diffserv (usually only egress intf)
–TE tunnel (could be complex to manage)
Site 1
Site 2
Edge
CE Router Link
Edge POP
Provider
Classification + Boundary
Boundary of Of Trust
Trust
UnManaged CE Router
IP SLA
Customer PE
Access Core P Router
Router
Link
Edge
CE Router Link
POP
Boundary
Of Trust +
Edge
Classification
Video
TD
Interactive
? TD
Business
WRED
Best
WRED
Effort
Link
Fragmentation
Congestion Management and Interleaving
Classifier Congestion Avoidance Shaping (LFI)
• LFI used in slow links to reduce delay and jitter for real-time traffic + cRTP for
voice
• WRED used for TCP-friendly packet dropping
34 © 2012 WIPRO LTD | WWW.WIPRO.COM
IP QoS – Unmanaged Service
PE
CE Input Policy
Classification /
Output Policy Marking
<NOT SP controlled > Policing
PE
Output Policy
LLQ
WRED
[Shaping]
[LFI / cRTP]
Best
Effort
Classifier Policing
Service Provider
Enterprise Shared Network
Enterprise
Network Network
• Delay
• Jitter
• Bandwidth
• Availability
• Packet Loss
• Out of Sequence (OoS)
•…
• If you have a running Cisco IOS® router, turn it into a probing device.
• Re-use and enhance existing network management applications.
(ex: CW2K, VPNSC, Infovista, Concord eHealth,
Agilent Firehunter,…).
FTP ICMP
UDP ATM*
TCP
Connect Frame Relay
Probe
Responder
Network Responder
SA Agent
SNMP/CLI IP Server
Targets
Management
• Implemented on PA-A3
(TX-ring per VC allows ‘fancy’ queuing per VC, tx-ring tuning
per VC)
• Phase 1 - Per-VC WRED (single VC)
• Phase 2 - Precedence Mapping (multiple VC)
–Bundle Management
• Phase 3 - Per-VC WFQ
–
VC2
VC3
No discard
Per-VC Per-VC on PA
WRED: Queues
Intelligent Discard
35 © 2012 WIPRO LTD | WWW.WIPRO.COM
IP ATM COS-Ph2: Bundle
• Two Modes:
– Protected VC rule : when a protected VC goes
down, the bundle goes down
– Protected group rule : when all members in the
protected group fail, the bundle is declared DOWN
–When a bundle is declared down, no traffic is
forwarded out of the bundle
• Best Effort Delivery: Drops are to be expected. Multicast applications should not
expect reliable delivery of data and should be designed accordingly. Reliable
Multicast is still an area for much research. Expect to see more developments in this
area.
• No Congestion Avoidance: Lack of TCP windowing and “slow-start” mechanisms
can result in network congestion. If possible, Multicast applications should attempt to
detect and avoid congestion conditions.
• Duplicates: Some multicast protocol mechanisms (e.g. Asserts, Registers and SPT
Transitions) result in the occasional generation of duplicate packets. Multicast
applications should be designed to expect occasional duplicate packets.
• Out of Order Delivery : Some protocol mechanisms may also result in out of order
delivery of packets.
MSDP
RP
Multicast Source
Multicast Source DR Y
X RP
ISP B
ISP A
IGMP Snooping, MBGP
CGMP, RGMP
DR
IGMP PIM-SM DR
Bidir PIM
PIM-SSM
MVPN
Campus Multicast Interdomain Multicast
• End Stations (hosts-to-routers): • Multicast routing across
–IGMP domains MBGP
• Switches (Layer 2 Optimization):
CGMP, IGMP Snooping or RGMP • Multicast Source Discovery
• Routers (Multicast Forwarding MSDP with PIM-SM
Protocol): • Source Specific Multicast
PIM Sparse Mode or Bidirectional PIM PIM-SSM
36 © 2012 WIPRO LTD | WWW.WIPRO.COM
IP Multicast Group Concept
2. to receive
sendit to
data Sender
If you group
address, all
members receive it A B D “Non” Group
3. You do not have to Member
be C E
a member of a
group
to send to a group Group Group
Member 1 Member 2
Receiver Receiver
36 © 2012 WIPRO LTD | WWW.WIPRO.COM
Click here to add Customer / Partner Logo