Você está na página 1de 24

CS 414 Multimedia Systems Design

Lecture 19 Multimedia Transport Subsystem (Part 2) + Midterm Review


Klara Nahrstedt Spring 2014
CS 414 - Spring 2014

Midterm
March 7 (Friday),1-1:50pm, 0216 SC Closed Book, Closed Notes You can bring calculator and 1 page cheat sheet

CS 414 - Spring 2014

Covered Material

Class Notes (Lectures 1-15) MP1 Book Chapters to read/study: Media Coding and Content processing book
Chapter 2, Chapter 3.1-3.2, 3.8, Chapter 4.1-4.2.2.1, Chapter 4.3 (as discussed in lecture) Chapter 5, chapter 7.1-7.5, 7.7

CS 414 - Spring 2014

Material

Audio Characteristics
Samples,

frequency, Nyquist theorem Perception, psychoacoustic effects, loudness, pitch, decibel, intensity Sampling rate, quantization

Audio Characteristics
PCM,

DPCM, signal-to-noise ratio

CS 414 - Spring 2014

Material

Image Characteristics
Sampling,

quantization, pixels Image properties: color

CS 414 - Spring 2014

Material

Video technology
Color

perception: hue, brightness, saturation, Visual representation: horizontal and vertical resolution, aspect ratio; depth perception, luminance, temporal resolution and motion Flicker effect Color coding: YUV, YIQ, RGB NTSC vs HDTV formats
CS 414 - Spring 2014

Material

Basic Coding schemes


Run-length

coding Statistical coding


Huffman coding Arithmetic coding

Hybrid codes
JPEG:

image preparation, DCT transformation, Quantization, entropy coding, JPEG-2000 characteristics


CS 414 - Spring 2014

Material

Hybrid Coding
Video

MPEG: image preparation, I, P, B frames characteristics, quantization, display vs processing/transmission order of frames Audio MPEG: role of psychoacoustic effect, masking, steps of audio compression MPEG-4: differences to MPEG-2/MPEG-1

Audio-visual objects, layering

H.261,

263, 264, 265


CS 414 - Spring 2014

Sample Problems
Consider the following alphabet {C,S,4,1}, with probabilities: P(C) = 0.3, P(S) = 0.2, P(4)= 0.25, P(1) = 0.25. Encode the word CS414 using

Huffman

coding and arithmetic coding Compare which encoding requires less bits

CS 414 - Spring 2014

Sample Problems

Describe briefly each step in MPEG-1 audio encoding. Specify the functionality, which is performed in each step. You dont have to provide equations, only a clear explanation of the functionality that is performed inside each step.

CS 414 - Spring 2014

Sample Problems
What is flicker effect and how to remove it? Provide five differences between MPEG-4 video encoding standard and the previous MPEG video encoding standards

CS 414 - Spring 2014

Covered Aspects of Multimedia


Image/Video Capture
Audio/Video Perception/ Playback Audio/Video Presentation Playback

Image/Video Information Representation

Transmission
Audio Capture Compression Processing

Transmission

Audio Information Representation

Media Server Storage

A/V Playback

CS 414 - Spring 2014

We have discussed so far


Quality of Service Multimedia Data Establishment Protocol

Negotiation

and Translation of QoS

CS 414 - Spring 2014

What we will talk about today

Multimedia Call Establishment Protocol


Admission

and Reservation Operations

Bandwidth Admission Processing Admission

Data Streaming/Transmission Operations


Traffic

Shaping

CS 414 - Spring 2014

Bandwidth Admission Test

Consider
bi reserved bandwidth for the i connection Bmax maximal bandwidth at the network interface

Admission test (if all connections declare their bandwidth requirements bi at the same time): b Bmax (i=1,n) i Example:

Bmax = 100 Mbps, Bandwidth requirement of connection 1 b1 = 10 Mbps Bandwidth requirement of connection 2 b2 = 20 Mbps Step 1: if b1 < Bmax then admit b1, reserve b1, adjust Bmax to Bavail = Bmax b1 Step 2: if b2 < Bavail then admit b2, reserve b2, adjust Bavail to Bavail = Bavail b2
CS 414 - Spring 2014

Admission Control Condition: b1 + b2 < Bmax

Packet/Frame Scheduling Admission


Systems have queues We need packet/frame scheduling policies for admitting new streams We need frame/packet schedulability tests

Note

that in networking only NONPREEMPTIVE scheduling exists!!!

CS 414 - Spring 2014

Packet/Frame Scheduling Admission Control

ei processing of a packet i in network node

Admission Test: ei deadline servei/ (1/r) 1


(i=1,,n)

1/r packet/frame period on CS 414 - Spring 2014 processor

serve packet/frame service time at the processors constant time due to hardware implementation q_in and q_out are queuing times N number of packets in queue service rate q = N/ (Little Theorem) r service rate of the switch

Resource Reservation/Allocation

Bandwidth reservation
Pessimistic

reservation with maximal bandwidth allocation: Given (MN, RA, and MA)

if

i M A maxi1,...n (M A )

then

BN M N (M A / M N ) RA

CS 414 - Spring 2014

Pessimistic Resource Reservation (Example)

Example: Consider sequence of MPEG video frames of size 80KB, 60 KB, 20KB, 20 KB, 60KB, 20 KB, 20 KB (Group of Pictures I, P, B, B, P, B, B ), Pessimistic frame size calculation:

MA = max(80, 60, 20, 20, 60, 20, 20) = 80KB

Given video frame rate RA = 20 fps If Given MN = 10 KB (network packet size, e.g., packet size for the transport layer like TCP/UDP), then need to consider bandwidth/ throughput reservation for

BN = 10KB x (8 network packets per application frame) x 20 application frames per second= 1600 KB/second = 12800 Kbps
CS 414 - Spring 2014

Optimistic Resource Reservation/Allocation


Optimistic reservation considers average bandwidth allocation Given MA, RA, MN, where

i M A (1 / n M A ) i 1 n

Then B M ( M A ) R N N A MN
CS 414 - Spring 2014

Optimistic Resource Reservation (Example)

Example: Consider sequence of MPEG video frames of size 80KB, 60 KB, 20KB, 20 KB, 60KB, 20 KB, 20 KB (Group of Pictures I, P, B, B, P, B, B, ), Optimistic frame size calculation:

MA = 280/7 = 40 KB

Given video frame rate RA = 20 fps If Given MN = 10 KB (network packet size, e.g., packet size for the transport layer like TCP/UDP), then need to consider bandwidth/ throughput reservation for

BN = 10KB x (4 network packets per application frame) x 20 application frames per second= 800 KB/second = 6400 Kbps
CS 414 - Spring 2014

Sender-Oriented Reservation Protocol

CS 414 - Spring 2014

Receiver-Oriented Reservation Protocol

CS 414 - Spring 2014

Conclusion

Multimedia Call Establishment Protocol requires


QoS

Parameter negotiation (exchange) QoS Parameter translation Admission Control of resources needed to provide QoS requirements
Bandwidth admission Frame/Packet scheduling admission

Reservation

of resources for admitted multimedia streams


CS 414 - Spring 2014

Você também pode gostar