Professional Documents
Culture Documents
Overview of QoS in IP - MPLS PDF
Overview of QoS in IP - MPLS PDF
Paresh Shah
Utpal Mukhopadhyaya
Arun Sathiamurthi
NANOG 2006
Agenda
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS QoS
Summary
NANOG 2006
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS QoS
Summary
NANOG 2006
NANOG 2006
Traffic Characterization
Identify traffic sources and types
Need for appropriate handling
Realtime and Non-realtime
Voice (Delay sensitive)
Video (Bandwidth intensive)
Data (Loss sensitive)
HTTP, FTP, SMTP
Bursty and Constant type
Multi-service traffic: IP, MPLS
Single or Multiple flows of the same type
NANOG 2006
QoS Requirements
Traffic influencing parameters
Latency, Jitter, Loss
Management of finite resources
Rate Control
Queuing and Scheduling
Congestion Management
Admission Control
Routing Control Traffic protection
NANOG 2006
QoS Triangle
Determine QoS
parameters
NANOG 2006
QoS Approaches
Fine-grained approach
Coarse-grained approach
NANOG 2006
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS and QoS
Summary
NANOG 2006
NANOG 2006
10
NANOG 2006
11
Admission Control
Must be configured on every router along the path
Works well on small-scale
Has issues with scaling with large number of flows
Requires devices to retain state information
NANOG 2006
12
NANOG 2006
13
TCA
PHB
Interior
Node
PHB
Egress
Node
TCA
PHB
Classification/Marking/Policing/Shaping
Queuing/Dropping
NANOG 2006
14
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS and QoS
Summary
NANOG 2006
15
NANOG 2006
16
IP TOS vs IP DSCP
NANOG 2006
17
NANOG 2006
18
Classifier
Packets
Marker
Shaper/
Dropper
Classifier: Selects a packet in a traffic stream based on the content of some portion of
the packet header
Meter: Checks compliance to traffic parameters (eg Token Bucket) and passes result to
the marker and shaper/dropper to trigger a particular action for in/out of profile packets
Marker: Writes/rewrites DSCP
Shaper: Delays some packets to be compliant with a profile
Dropper: Discards some or all of the packets in a traffic stream in order to bring the
stream into compliance with a traffic profile
NANOG 2006
19
Marking
Marking/Coloring packets to indicate class
Application marked or node configured
IP Precedence or DSCP
MPLS EXP
NANOG 2006
20
Traffic Metering
Traffic Rate Management in network boundary nodes
Traffic Metering measures traffic
Does not alter traffic characteristics
Reports compliance results to Shaper or Dropper
NANOG 2006
21
Shaping
Smoothes traffic but increases overall latency
Buffers packets when tokens are exhausted
NANOG 2006
22
NANOG 2006
23
Policing
Uses the token bucket scheme
Tokens added to the bucket at the committed rate
Depth of the bucket determines the burst size
Packets arriving with sufficient tokens in the bucket are
said to conform
Packets arriving with insufficient tokens in the bucket are
said to exceed
NANOG 2006
24
p
Overflow
Tokens
Packets
Arriving
Conform
Exceed
NANOG 2006
25
Shaping
Uses the token bucket scheme
Smoothes bursty traffic to meet CIR through buffering
Queued Packets transmitted as tokens are available
NANOG 2006
26
NANOG 2006
27
NANOG 2006
28
Queuing/Scheduling
Scheduling mechanisms guarantee BW for flows
More bandwidth guarantee means dequeue more from one
queue or set of queues.
De-queue depends on weights allocated to queues
NANOG 2006
29
Congestion Avoidance/Management
When there is congestion what should we do?
Tail drop i.e. Packets dropped due to Max Queue Length
Drop selectively but based on IP Prec / DSCP bit
NANOG 2006
30
Congestion
Uncontrolled, congestion will seriously degrade performance
The system buffers fill up
Packets are dropped, resulting in retransmissions
This causes more packet loss and increased latency
The problem builds on itself
NANOG 2006
31
NANOG 2006
32
Global Synchronization
Queue
Utilization
100%
Time
Tail Drop
3 Traffic Flows Start
at Different Times
33
NANOG 2006
34
REDPacket-Drop Probability
Packets are dropped sufficiently frequently to control
the average queue size
The probability that a packet is dropped from a
connection is proportional to the amount
of packets sent by the connection
NANOG 2006
35
RED
1
Packet
Discard
Probability
Adjustable
Minimum
Threshold
NANOG 2006
Maximum
Threshold
Average
Queue
Size
36
NANOG 2006
37
Packet
Discard
Probability
Standard
Service
Profile
Adjustable
Standard
Min
NANOG 2006
Standard
Max
Premium
Min
Premium
Service
Profile
Average
Queue
Size
Premium
Max
38
NANOG 2006
39
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS and QoS
Summary
NANOG 2006
40
MPLS Diffserv
NANOG 2006
41
NANOG 2006
42
NANOG 2006
43
NANOG 2006
44
Prec/DSCP field is not directly visible to MPLS Label Switch Routers (they
forward based on MPLS Header and EXP field)
Information on DiffServ must be made visible to LSR in MPLS Header using
EXP field / Label.
How do we map DSCP into EXP ? Interaction between them.
NANOG 2006
45
NANOG 2006
46
NANOG 2006
47
Both E-LSP and L-LSP can use LDP or RSVP for label distribution
NANOG 2006
48
NANOG 2006
49
NANOG 2006
50
Uniform Mode
Assume the entire admin domain of a Service
Provider is under a single DiffServ domain
Then, it is likely a requirement to keep the
colouring information uniform (keep it when going
from IP to IP, IP to MPLS, MPLS to MPLS, MPLS to
IP).
NANOG 2006
51
Uniform Mode
NANOG 2006
52
Short-Pipe Mode
Assume an ISP network implementing a DiffServ
Policy
Assume its customer network implementing
another policy
Requirement:
Transparency: the customer wants to preserve its DSCP
intact
Uniformity: within the IP/MPLS backbone, the SP wants to
have a uniform diffserv domain
NANOG 2006
53
Short-Pipe Mode
The PHB of the topmost popped label is copied into the new top label
Note that policy applied on the egress interface of the egress PE is based on the DSCP of the
customer, hence the short-pipe naming.
NANOG 2006
54
Pipe Mode
Exactly the same case as Short-Pipe
However, the SP wants to drive the outbound
classification for WFQ/WRED on the egress
interface from a PE to a CE based on its DiffServ
policy (EXP)
NANOG 2006
55
Pipe Mode
The PHBs of the topmost popped label is copied into the new top label
Classification is based on mpls-exp field (EXP=0) of the topmost received MPLS frame
NANOG 2006
56
NANOG 2006
57
NANOG 2006
58
60Mbps
Aggregate
26Mbps
Drops!
R3
R8
R4
OC3
(155Mbps)
E3
(34Mbps)
R1
GigE
(1Gbps)
R5
OC3
(155Mbps)
R2
GigE
(1Gbps)
R6
GigE
(1Gbps)
R7
40Mbps
Traffic to R5
NANOG 2006
59
The TE Solution
20Mbps
Traffic to R5
R3
R8
20Mbps traffic
to R5 from R8
R4
R5
R2
40Mbps traffic
to R1 from R8
R1
R6
R7
40Mbps
Traffic to R5
60
Mid-point
Tail end
Head end
NANOG 2006
61
DiffServ-Aware TE (DS-TE)
Regular TE allows for one reservable bandwidth
amount per link
DS-TE allows for more than one reservable bandwidth
amount per link
Brings per-class dimension to TE
Basic idea: connect PHB class bandwidth to DS-TE
bandwidth sub-pool
NANOG 2006
62
DiffServ-Aware TE
Per-class constrained-based
routing
Per-class admission control
NANOG 2006
63
DiffServ-Aware TE
NANOG 2006
Maximum
Reservable
Bandwidth
(MRB)
Up to 8 BW pools
Different BW pool models
64
DS-TE BW Pools
Maximum Allocation Model (MAM)
BC0
BC1
BC2
Class1
Class2
Maximum
All
Reservable
classes Bandwidth
(MRB)
Class3
NANOG 2006
65
DS-TE BW Pools
Russian Dolls Model (RDM)
BW pool applies to one or more
classes
Global BW pool (BC0) equals
MRB
BC0..BCn used for computing
unreserved BW for class n
BC0
All
classes
BC1
(class1 Maximum
+
Reservable
Class2 Bandwidth
+
(MRB)
Class3)
BC2
Class3
Class2
+
Class3
NANOG 2006
66
NANOG 2006
67
DiffServ TE
NANOG 2006
68
DS TE and QoS
NANOG 2006
69
Introduction
QoS Service Models
DiffServ QoS Techniques
MPLS QoS
Summary
NANOG 2006
70
Summary
QoS techniques
Effective allocation of network resources
IP Diff Serv
Service Differentiation
MPLS & Diff Serv
Builds scalable networks for SP
DiffServ Tunneling Modes
Scalable and flexible QoS options
Supports Draft Tunneling Mode RFC
Diff Serv TE
Provides strict point-to-point guarantees
Pipe Model
NANOG 2006
71
Q&A
NANOG 2006
72