Академический Документы
Профессиональный Документы
Культура Документы
Systems
THOAI NAM
Faculty of Computer Science and Engineering
HCMC University of Technology
-1.1-
Multimedia applications
Real-time
Video/audio data as continuous and time-based
Shared resources in Internet
Quality of service (QoS)
Quality of service management
-1.2-
-1.3-
Characteristics of typical
multimedia streams
Data rate
(approximate)
Sample or frame
size
frequency
Telephone speech
64 kbps
8 bits
8000/sec
CD-quality sound
1.4 Mbps
16 bits 44,000/sec
Standard TV video
120 Mbps
up to 640 x 480
24/sec
(uncompressed)
pixels x 16 bits
Standard TV video
1.5 Mbps
variable
24/sec
(MPEG-1 compressed)
HDTV video
10003000 Mbps up to 1920 x 1080 2460/sec
(uncompressed)
pixels x 24 bits
HDTV video
1030 Mbps
variable 2460/sec
MPEG-2 compressed)
Figure 20.2, Coulouris, Dollimore, Kindberg and Blair, Distributed Systems:
Concepts and Design Edn. 5 Pearson Education 2012
-1.4-
QoS-less applications
Video-on-demand services
Video sent from the sources to the end users
Buffer used
-1.5-
Low-latency communication
Synchronous distributed state
Media synchronization
External synchronization
-1.6-
-1.7-
Bandwidth
Latency
Out:
Zero
In:
Out:
In:
Out:
In:
Out:
In/Out:
1 x 44 kbps audio
1 Mbytes RAM
H Window
various
Interactive Low
5 ms CPU each 100 ms;
system
50 frame/sec framebuffer
5 Mbytes RAM
K Network
MPEG-1 stream, approx. Interactive Low
1.5 Mbps, low-loss
connection
1.5 Mbps
stream protocol
L Network
In/Out: Audio 44 kbps
Interactive Very low 44 kbps, very low-loss
connection
stream protocol
Figure 20.4, Coulouris, Dollimore, Kindberg and Blair, Distributed Systems:
Concepts and Design Edn. 5 Pearson Education 2012
-1.8-
QoS management
Current solutions:
Round-robin or other scheduling scheme that shares the processing
resources on a best-effort basis among all of the tasks currently competing
for the central processor
Ethernet: manages a shared transmission medium in a best-effort manner.
Collisions are likely to occur when the network is heavily loaded, and this
scheme cannot provide any guarantees regarding the bandwidth or latency
in such situations
-1.9-
-1.10-
Bandwidth
The bandwidth of a multimedia stream or component is the rate at
which data flows through it
Latency
Latency is the time required for an individual data element to move
through a stream from the source to the destination
Loss rate
Some apps accept a certain rate of data loss i.e., dropped video frames or
audio samples
The acceptable ratios are usually kept low seldom more than 1% and
much lower for quality-critical applications.
-1.11-
Burstiness
-1.12-
-1.13-
Token generator
-1.14-
-1.15-
-1.16-
Delay:
Loss:
-1.17-
-1.18-
Resource management
Fair scheduling
Round-robin scheduling to all streams in the same class
Fair queuing: packet-by-packet, bit-per-bit
Weighted fair queuing
Real-time scheduling
Traditional real-time scheduling methods suit the model of regular
continuous multimedia streams very well
EDF scheduler uses a deadline that is associated with each of its work items
to determine the next item to be processed: the item with the earliest
deadline goes first
-1.19-
-1.20-
Filtering
As scaling modifies a stream at the source, it is not always suitable for
applications that involve several receivers
Filtering is a method that provides the best possible QoS to each target by
applying scaling at each relevant node on the path from the source to the
target
RSVP [Zhang et al. 1993] is an example of a QoS negotiation protocol that
supports filtering
-1.21-
Filtering
Source
Targets
High bandwidth
Medium bandwidth
Low bandwidth
Figure 20.8, Coulouris, Dollimore, Kindberg and Blair, Distributed Systems:
Concepts and Design Edn. 5 Pearson Education 2012
-1.22-
-1.23-
n+1
Cub 0
n+2
Cub 1
n+3
Cub 2
n+4
Cub 3
2n+1
Cub n
high-bandwidth
Start/Stop
requests from clients
-1.24-
Tiger schedule
block service
time t
1
block play time T
slot 0
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7
viewer 4
free
free
viewer 0
viewer 3
viewer 2
free
viewer 1
state
state
state
state
state
-1.25-
BitTorrent
-1.26-
A .torrent file
-1.27-
-1.28-
BitTorrent Terminology
-1.29-
-1.30-
-1.31-