An Introduction to Computer Networks

Download Report

Transcript An Introduction to Computer Networks

An Introduction
to
Computer Networks
Lecture 12: Quality of Service
University of Tehran
Dept. of EE and Computer Engineering
By:
Dr. Nasser Yazdani
Univ. of Tehran
Introduction to Computer Network
1
Outline



Realtime Applications
Integrated Services
Differentiated Services
Univ. of Tehran
Introduction to Computer Network
2
Realtime Applications

Require “deliver on time” assurances

must come from inside the network
Microphone
,
Sampler
,
Buffer
A D
converter
D
A
Speaker

Example application (audio)




sample voice once every 125us
each sample has a playback time
packets experience variable delay in network
add constant factor to playback time: playback point
Univ. of Tehran
Introduction to Computer Network
3
Sequence number
Playback Buffer
•Real-Time Audio
 rate one per
125 micro-sec
• Limit on delay,
at most 300 ms.
Univ. of Tehran
Packet
arrival
Packet
generation
Playback
Network
delay
Buffer
Time
Introduction to Computer Network
4
Distribution of Delays
90% 97% 98%
Packets (%)
3
99%
2
1
50
• Blue is the delay distribution
•Others are cumulative percentages
•Variability of delay is consistent for
almost all paths
Univ. of Tehran
100
150
200
Delay (milliseconds)
Introduction to Computer Network
5
Taxonomy
Applications
Real time
Tolerant
Elastic
Intolerant
Interactive
Interactive
Asynchronous
bulk
Adaptive
Nonadaptive
Delay-
Rate-
adaptive
adaptive
Univ. of Tehran
Rate-adaptive
Delay adaptive
• Tolerant: Audio
•Intolerant: a robot control.
•Adaptive: can adjust playback time
Introduction to Computer Network
6
Approaches to QoS


Fine –grained- Provide QoS to individual
flows. Integrated service or RSVP and
usually ATM
Coarse-grained- For aggregated traffics.
Differentiated Services.
Univ. of Tehran
Introduction to Computer Network
7
Integrated Services (RSVP)


Produced by IETF around 95-97
Service Classes



Guaranteed, never arrive late. For tolerant,
adaptive applications.
controlled-load, not heavily loaded (i.e vat)
Mechanisms
signaling protocol, flowspec, resource resevation.
 admission control
 policing
 Univ.
packet
of Tehran scheduling
Introduction to Computer Network
8

Flowspec

Rspec: describes service requested from network



controlled-load: none
guaranteed: delay target
Tspec: describes flow’s traffic characteristics








average bandwidth + burstiness: token bucket filter
token rate r
bucket depth B
must have a token to send a byte
must have n tokens to send n bytes
start with no tokens
accumulate tokens at rate of r per second
can accumulate no more than B tokens
Univ. of Tehran
Introduction to Computer Network
9
Per-Router Mechanisms

Admission Control




decide if a new flow can be supported
answer depends on service class and policy
not the same as policing
Packet Processing


classification: associate each packet with the
appropriate reservation
scheduling: manage queues so each packet
receives the requested service
Univ. of Tehran
Introduction to Computer Network
10
Reservation Protocol











Called signaling in ATM
Proposed Internet standard: RSVP
Consistent with robustness of today’s connectionless
model
Uses soft state (refresh periodically)
Designed to support multicast
Receiver-oriented
Two messages: PATH and RESV
Source transmits PATH messages every 30 seconds
Destination responds with RESV message
Merge requirements in case of multicast
Can specify number of speakers
Univ. of Tehran
Introduction to Computer Network
11
RSVP Example
Sender 1
PA TH
R
Sender 2
R
PA TH
RESV
(merged)
R
RESV
R
R
Receiver A
RESV
Receiver B
Univ. of Tehran
Introduction to Computer Network
12
RSVP versus ATM (Q.2931)

RSVP






receiver generates reservation
soft state (refresh/timeout)
separate from route establishment
QoS can change dynamically
receiver heterogeneity
ATM





sender generates connection request
hard state (explicit delete)
concurrent with route establishment
QoS is static for life of connection
uniform QoS to all receivers
Univ. of Tehran
Introduction to Computer Network
13
Differentiated Services


Problem with IntServ: scalability
Idea: support two classes of packets








premium
best-effort
Can be done by a bit.
Who set the bit?
What the router does with this bit?
Per-hop behavior, means not end-to-end.
Use TOS field in IP packet, DiffServ code points
(DSCP)
EF class: Expedite Forwarding, with min delay.
Univ. of Tehran
Introduction to Computer Network
14
Differentiated Services
Guarantee Delay: Max entry to router
Strict priority
Assured Forwarding P(drop)





RED with In and Out
Mechanisms



1.0
packets: ‘in’ and ‘out’
bit
edge routers: tag
MaxP
packets
core routers: RIO
(RED with In and Out)
Univ. of Tehran
A vgLen
Min out
Min in Max out
Introduction to Computer Network
Max in
15