cs 414 - spring 2008 cs 414 – multimedia systems design

23
CS 414 - Spring 2008 CS 414 – Multimedia Systems Design Lecture 15 – Multimedia Transport Subsystem (Part 2) Klara Nahrstedt Spring 2008

Upload: ronny72

Post on 09-Jun-2015

278 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

CS 414 - Spring 2008

CS 414 – Multimedia Systems Design Lecture 15 – Multimedia Transport Subsystem (Part 2)

Klara Nahrstedt

Spring 2008

Page 2: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

CS 414 - Spring 2008

Administrative Discussion Section II for MP2 on Monday,

2/18, 2008 (3405 SC), 6pm

Page 3: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

OSI (Open System Internconnection) Layering Standard

CS 414 - Spring 2008

Page 4: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Network QoS and Resource Management Network QoS parameters:

End-to-end delay, jitter, packet rate, burst, throughput, packet loss

Establishment Phase Protocol to establish Multimedia Call:1. Application/user defines QoS parameters

2. QoS parameters are distributed and negotiated among participating parties

3. QoS parameters are translated between different layers

4. QoS parameters are mapped to resource requirements

5. Required resources are admitted, reserved and allocated along the path between sender and receiver(s)

CS 414 - Spring 2008

Page 5: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Negotiation and Translation

For negotiation of network QoS we may use Peer-to-peer negotiation and triangular

negotiation (if service provider allows for negotiation)

Translation between network and application QoS

CS 414 - Spring 2008

Page 6: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Negotiation Protocol (P2P Receiver-Initiated Negotiation – Example1)

CS 414 - Spring 2008Sender (Server) Receiver (Client)

time time0 0Setup Socket Communication

Send User/Receiver requestedQoS (video rate 20fps)

Wait

Requested Video rate (e.g.,20fps)Wait

Setup Socket Communication

- Receive Requested rate-Check with Recorded rate-If requested > recordedThen decrease rate, else O.K.-Translate QoS param.-Perform Resource Admission/ReservationIf admission O.K, elseDecrease rate, redoAdmission/reservation- Send resulting rate

Resulting video rate (e.g.,10 fps) -Receive resulting rate -Translate QoS param.-Perform admission, If admission O.K, , then Reserve resources, elseDecrease resulting rate - Send agreed/final rate

WaitFinal video rate (5 fps)

-Receive final rate- Adjust reservation-Start streaming

Streaming Data at final rateWait

Page 7: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Negotiation Protocol (P2P Receiver-Initiated Negotiation – Example2)

CS 414 - Spring 2008Sender (Server) Receiver (Client)

time time0 0Setup Socket Communication

-Get QoS (video rate) from user- Translate QoS- Perform admission, if admission O.K., then reserve local resources, else decrease requested rate, redo admission/reservation

Wait

Requested Video rate (e.g.,20fps)

Wait

Setup Socket Communication

- Receive Requested rate-Check with Recorded rate-If requested > recordedThen decrease rate, else O.K.-Translate QoS param.-Perform Resource Admission/ReservationIf admission O.K, elseDecrease rate, redoAdmission/reservation-Send resulting rate-Start streaming

Resulting video rate (e.g.,10 fps)

-Receive resulting rate -Translate QoS param.-Adjust reservation if needed- Start receiving steam

Streaming Data at resulting rate

Page 8: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Negotiation Protocol (P2P Sender-Initiated Negotiation - Example)

CS 414 - Spring 2008Sender (Server)

Receiver (Client)

time time0 0Setup Socket Comm, get movie name

-Get recorded rate as the requested rate from the recorded video file -Perform admission, if admission O.K, reserve resources, else decrease rate - Send requested QoS (video rate 20fps)

WaitRequested Video rate (e.g.,25ps)

Setup Socket Communication (also send server requested video file/movie name)

-Receive requested rate -Translate QoS param.-Perform admission, If admission O.K, , then Reserve resources, elseDecrease rate - Send agreed/final rate

WaitFinal video rate (20 fps)

-Receive final rate- Adjust reservation-Start streaming

Streaming Data at final rateWait

Page 9: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Example of Translation Consider application QoS (frame size MA, frame rate RA) and

network QoS (throughput BN, packet rate RN) Assume

MA = (320x240 pixels, 1 pixel = 8 bits),

RA = 10 fps, packet size

MN = 4KBytes

Application Throughput: BA = MA x RA = (320 x 240 x 8) x 10 = 6,144,000 bps

Packet rate: = 190 packets per second

Network Throughput: BN = MN x RN = 6,225,920 bps

CS 414 - Spring 2008

ANAN RMMR )/(

Page 10: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Admission Control

Throughput QoS parameter maps to bandwidth resource

Packet rate maps to scheduling resource Error rate maps to buffer resources

CS 414 - Spring 2008

Page 11: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Bandwidth Admission Test

Considerbi – 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): ∑

(i=1,…n) bi ≤ Bmax

CS 414 - Spring 2008

Page 12: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Bandwidth Admission Admission Test (if requests come in iterative fashion) : Consider

bi

alloc – bandwidth already admitted, allocated and promised

to connection ‘i’

bj

req – bandwidth requested by connection ‘j’

Bavail = Bmax - ∑(i=1,..n)

bi

alloc, where i ≠ j

Admission Test: b

j

req ≤ Bavail

CS 414 - Spring 2008

Page 13: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Packet Scheduling Admission

At switches/routers – packet scheduling decision needs to be made when admitting new streams of packets

Need packet schedulability testsNote that in networking only NON-

PREEMPTIVE scheduling exists!!!

CS 414 - Spring 2008

Page 14: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Packet Scheduling Admission

CS 414 - Spring 2008

ei – processing of a packet ‘i’ in network node

Admission Test: ei ≤ deadline (within a switch)∑

(i=1,…,n) servei/ (1/r) ≤ 1

serve – packet service time at the processors – constant time due to hardwareimplementation q_in and q_out are variableq = N/λ (Little Theorem)r – service rate of the switch

Page 15: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Network Resource Reservation/Allocation Bandwidth reservation

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

if then

CS 414 - Spring 2008

)(max ,...1iAniA MM

ANANN RMMMB )/(

Page 16: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

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 2008

Page 17: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Optimistic Resource Reservation/Allocation Optimistic reservation considers average

bandwidth allocation Given MA, RA, MN, where

Then

CS 414 - Spring 2008

)/1(1

n

i

iAA MnM

AN

ANN R

M

MMB

)(

Page 18: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

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 2008

Page 19: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Sender-Oriented Reservation Protocol

CS 414 - Spring 2008

Page 20: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Receiver-Oriented Reservation Protocol

CS 414 - Spring 2008

Page 21: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Reservation Styles IETF (Internet Engineering Task Force) standard defines

three types of reservation styles Wildcard

Allows receiver to create a single reservation along each link shared among all senders for the given session

Fixed filter Allows each receiver to create a single reservation from a particular

sender whose packets it wants to receive

Dynamic filter Allows each receiver to create N reservations to carry flows from up to N

different senders. This style allows the receiver to do channel switching (similar to TV channel switching)

CS 414 - Spring 2008

Page 22: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Reservation Styles

CS 414 - Spring 2008

Page 23: CS 414 - Spring 2008 CS 414 – Multimedia Systems Design

Conclusion Important set of services and protocols for

establishment of multimedia calls/sessions Different network technologies adopt

different establishment approaches, so one has to dig into the standard protocol to see whichNegotiation and translationAdmission and reservation protocols/services

the standard adoptsCS 414 - Spring 2008