Transcript
Page 1: It is not Beauty I Demand  – George Darley

1

It is not Beauty I Demand – George Darley

Page 2: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

2

Video on Demand

One video serverMany video dataMany clientsClient want to watch at any time

Page 3: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

3

Assumptions

Constant bitrate streamPerfect network transport

Page 4: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

4

Unicast Solution

One channel per clientNo start-up latencyNo client bufferLow client bandwidthLarge server bandwidth Not scalable

Page 5: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

5

Multicast Solution

Batching aggregate client requests serve using multicast clients have to wait No client buffer Low client bandwidth

“Scheduling Policies for an On-Demand Video Server with

Batching”

Dan, Sitaram, Shahabuddin, IBM

Page 6: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

6

Multicast Solution

User-centered approachScheduling data based on user

requests

Data-centered approachDon’t care about userJust broadcast popular video

Page 7: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

7

Multicast Solution

BatchingStaggered Broadcast

Page 8: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

8

Staggered Broadcast

Video

C0

C1

C2

:

Page 9: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

9

Staggered Broadcast

2 hour video5 minutes waiting timeNumber of channels =

2 x 60 / 5 = 24

Required bandwidth =

1.5Mbps x 24 = 36Mbps

Page 10: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

10

Multicast Solution

BatchingStaggered Broadcast

clients have to waitNo client bufferLow client bandwidthHuge server bandwidth

Page 11: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

11

Multicast Solution

BatchingStaggered BroadcastPeriodic Broadcast

Page 12: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

12

Periodic Broadcast

Video

C0

C1

C2

:

Page 13: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

13

Pyramid Broadcast

Video

C0

C1

C2

:

Page 14: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

14

Pyramid Broadcast

Video 2

C0

C1

C2

:

Video 1

Page 15: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

15

Pyramid Broadcast

Video

C0

C1

C2

:

Page 16: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

16

Analysis of Pyramid Broadcast

Notations B : Total available bandwidth Bv : Bandwidth of video

Tv : Total length of each video K : Number of segments per video Ti : Length of segment i : Factor in geometric series

Page 17: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

17

Channel Bandwidth

i

i+1 i+1

playback time = Ti

download time = Ti+1Bv/Bi

Download time for Ti+1 needs to be smaller than Ti for segment i+1 to arrive in time.

D’oh!Just miss it!

Page 18: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

18

Channel Bandwidth

since

1

11

1

1

vi

iivi

i

vii

KBKBB

TTBB

B

BTT

Page 19: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

19

= 2

Page 20: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

20

Start-up Latency

Worst case waiting time = T1

1

)1(

1

)1( 11

vB

B

K

v

TTT

Page 21: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

21

Optimal

2.5

T1

Page 22: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

22

Storage Requirements

~ (TK + TK-1)Bv

Page 23: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

23

Pyramid Broadcast

Large client bandwidth (KBv)

Huge client buffer (70–80% Tv)

Page 24: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

24

Permutation-based Pyramid Broadcast

C0

C1

C2

Page 25: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

25

Channel Bandwidth

i

i+1 i+1

playback time = Ti

download time = Ti+1Bv/Bi

X needs to be smaller than Ti for segment i+1 to arrive in time.

D’oh!Just miss it!

i+1 i+1

X

Page 26: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

26

Channel Bandwidth

)(

, and since

11

1

1

1

v

iii

i

vi

i

vii

KBpB

KBpBTT

pB

BT

B

BTT

p : number of sub-channels per segments

Page 27: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

27

Client Latency

Just T1/p

Page 28: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

28

Storage Requirement

One channel at a timeCan pause and wait

Page 29: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

29

Storage Requirement

k-1

k

k

k-1

pause

resume

X

Within time X, betternot consume all data in buffer.

Page 30: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

30

Storage Requirement

Let buffer content be of size MTime to consume the buffer = M/Bv

)BT(T M

p

p)B(α B

B

M

B

BT

B

BT

p

vK-K

vi

vi

vi

i

vi

1

1

know we

1

Page 31: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

31

Comparisons

Scheme Storage Server’sBW

Client’sBW

Pyramid 70% KBv 4-5 Bv

Pyramid++ 20% (+p)KBv 2-3 Bv

Carter, Long and Paris “Video on Demand Broadcasting Protocols”

Page 32: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

32

Pyramid Broadcasting

Page 33: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

33

Skyscraper BroadcastingObservations:

storage requirement is affected by size of the largest chunk

So, let’s limit the size of the largest chunk!

Page 34: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

34

Pyramid Skyscraper

Page 35: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

35

Skyscraper BroadcastingUses series

1 2 2 5 5 12 12 25 25 52 52 … W W W

Page 36: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

36

Skyscraper Example

Page 37: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

37

Skyscraper Example

Page 38: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

38

Comparisons

Scheme Storage Server’sBW

Client’sBW

Pyramid 70% KBv 4-5 Bv

Pyramid++ 20% (+p)KBv 2-3 Bv

Skyscraper 10% KBv 1-2 Bv

Carter, Long and Paris “Video on Demand Broadcasting Protocols”

Page 39: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

39

Other schemes

Pagoda Broadcasting 1 3 5 15 25 75 125 …

Harmonic BroadcastingEqual segment size, varies bandwidth instead!

Page 40: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

40

Multicast Solution

BatchingStaggered BroadcastPeriodic Broadcast

Sending rate ≥ playback rateMay need multiple channelsNeed additional client bufferNeed to wait

Page 41: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

41

Multicast Solution

BatchingStaggered BroadcastPeriodic BroadcastPatching

Page 42: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

42

Patching

Time

Client Request

mcast

unicast

Page 43: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

43

Patching

Time

Client Request

Patching Window: W

mcast

mcast

Page 44: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

44

Grace Patching

if W < Bclient buffer video[W .. end]unicast video[0 .. W]

elsemcast video[0 .. end]

Page 45: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

45

Example

30 minutes video 15 minutes buffer One request per minute

465.271.225

Page 46: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

46

Example

What if patching window = 5 min?

Page 47: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

47

Supporting VCR OperationsPauseFast ForwardRewindForward SearchBackward SearchSlow Mo

Page 48: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

48

Two Types of OperationsContinuous (all)Discrete Time (pause,ff,rwd)

Page 49: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

49

Discrete Time

Easier to implementSimple in staggered broadcasting

Page 50: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

50

Continuous Time

Requires buffering of future frames and previous frames

Abram-Profeta and K.G. Shin, "Providing Unrestricted VCR Functions in Multicast Video-on-Demand Servers,"

Page 51: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

51

Normal Playback

Before

After

Buffer

Playout Point

Oldest Frame Newest Frame

Channel U

Channel U

Page 52: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

52

Pause

Before

AfterChannel U

Channel U

Page 53: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

53

Pause Too Long!

Before

AfterChannel U

Channel U

Page 54: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

54

Channel I

Before

AfterChannel I

Channel U

Page 55: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

55

FF

Before

AfterChannel U

Channel U

Page 56: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

56

FF Too Far!

Before

AfterChannel I

Channel U

Page 57: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

57

RWD

Before

AfterChannel U

Channel U

Page 58: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

58

RWD Too Much!

Before

AfterChannel I

Channel U

Page 59: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

59

Forward Search

Before

AfterChannel U

Channel U

Page 60: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

60

Forward Search Too Far!Before

AfterChannel I

Channel U

Page 61: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

61

Backward Search

Before

AfterChannel U

Channel U

Page 62: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

62

Backward Search

Before

AfterChannel I

Channel U

Prefetched at Reverse Order, at Faster Rate

Page 63: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

63

Slow Motion

Before

AfterChannel U

Channel U

Page 64: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

64

Slow Motion

Before

AfterChannel I

Channel U

Page 65: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

65

The Aftermath

When playback resumes, what to do with Channel I?

Answer: Merge back with Channel U

Page 66: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

66

Merging Operation

Find a target channel whose play point is ”not too far” ahead

Page 67: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

67

Merging: Case 1

Before

Channel U

Channel I

Page 68: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

68

Merging: Case 1

During

Channel U

Page 69: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

69

Merging: Case 1

After

Channel U

Page 70: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

70

Merging: Case 2

Before

Channel U

Channel I

Page 71: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

71

Merging: Case 2

Before

Channel U

Channel I

Page 72: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

72

Merging: Case 2

During

Channel U

Channel I

Page 73: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

73

Merging: Case 2

During

Channel U

Channel I

Page 74: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

74

Merging: Case 2

After

Channel U

Page 75: It is not Beauty I Demand  – George Darley

NUS.SOC.CS5248OOI WEI TSANG

75

Summary

VoD broadcast protocolsbatchingperiodic broadcastpatching

Supporting VCR functionalities


Top Related