The Analysis of Optimal Stream Merging Solutions for Media-on- Demand Amotz Bar-Noy CUNY and Brooklyn College Richard Ladner University of Washington.

Slides:



Advertisements
Similar presentations
Class-constrained Packing Problems with Application to Storage Management in Multimedia Systems Tami Tamir Department of Computer Science The Technion.
Advertisements

Presentation of M.Sc. Thesis Work Presented by: S. M. Farhad [ P] Department of Computer Science and Engineering, BUET Supervised by: Dr. Md. Mostofa.
Line Balancing Problem A B C 4.1mins D 1.7mins E 2.7 mins F 3.3 mins G 2.6 mins 2.2 mins 3.4 mins.
ELEN 468 Lecture 261 ELEN 468 Advanced Logic Design Lecture 26 Interconnect Timing Optimization.
Scalable On-demand Media Streaming Anirban Mahanti Department of Computer Science University of Calgary Canada T2N 1N4.
LOGO Video Packet Selection and Scheduling for Multipath Streaming IEEE TRANSACTIONS ON MULTIMEDIA, VOL. 9, NO. 3, APRIL 2007 Dan Jurca, Student Member,
Optimization of Data Caching and Streaming Media Kristin Martin November 24, 2008.
Slice–and–Patch An Algorithm to Support VBR Video Streaming in a Multicast– based Video–on–Demand System.
Scalable On-demand Media Streaming with Packet Loss Recovery Anirban Mahanti Department of Computer Science University of Calgary Calgary, AB T2N 1N4 Canada.
June 3, 2015Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.
Harmonic Broadcasting for Video-on- Demand Service Enhanced Harmonic Data Broadcasting And Receiving Scheme For Popular Video Service Li-Shen Juhn and.
Dynamic Programming Carrie Williams. What is Dynamic Programming? Method of breaking the problem into smaller, simpler sub-problems Method of breaking.
CPSC 311, Fall 2009: Dynamic Programming 1 CPSC 311 Analysis of Algorithms Dynamic Programming Prof. Jennifer Welch Fall 2009.
Client Buffering Techniques for Scalable Video Broadcasting Over Broadband Networks With Low User Delay S.-H. Gary Chan and S.-H. Ivan Yeung, IEEE Transactions.
1 Adaptive Live Broadcasting for Highly-Demanded Videos Hung-Chang Yang, Hsiang-Fu Yu and Li-Ming Tseng IEEE International Conference on Parallel and Distributed.
Supporting Stored Video: Reducing Rate Variability and End-toEnd Resource Requirements through Optimal Smoothing By James D. salehi, Zhi-Li Zhang, James.
Scalable and Continuous Media Streaming on Peer-to-Peer Networks M. Sasabe, N. Wakamiya, M. Murata, H. Miyahara Osaka University, Japan Presented By Tsz.
Data Broadcast in Asymmetric Wireless Environments Nitin H. Vaidya Sohail Hameed.
1 Threshold-Based Multicast for Continuous Media Delivery Lixin Gao, Member, IEEE, and Don Towsley, Fellow, IEEE IEEE TRANSACTION ON MULTIMEDIA.
2002/04/18Chin-Kai Wu, CS, NTHU1 Jitter Control in QoS Network Yishay Mansour and Boaz Patt-Shamir IEEE/ACM TRANSACTIONS ON NETWORKING, VOL. 9, NO. 4,
An adaptive video multicast scheme for varying workloads Kien A.Hua, JungHwan Oh, Khanh Vu Multimedia Systems, Springer-Verlag 2002.
A Monotonic-Decreasing Rate Scheduler for Variable-Bit-Rate Video Streaming Hin-lun Lai IEEE Transactions on Circuits and System for Video Technology,
Distributed Servers Architecture for Networked Video Services S.-H. Gary Chan and Fouad Tobagi Presented by Todd Flanagan.
Scalable On-Demand Media Streaming With Packet Loss Recovery Anirban Mahanti, Derek L. Eager, Mary K. Vernon, and David J. Sundaram-Stukel IEEE/ACM Trans.
Prefix Caching assisted Periodic Broadcast for Streaming Popular Videos Yang Guo, Subhabrata Sen, and Don Towsley.
1 On-Demand Multicast Routing and Its Applications.
HHMSM: A Hierarchical Hybrid Multicast Stream Merging Scheme For Large-Scale Video-On-Demand Systems Hai Jin and Dafu Deng Huazhong University of Science.
Distributed Servers Architecture for Networked Video Services S. H. Gary Chan, Member IEEE, and Fouad Tobagi, Fellow IEEE.
Dynamic Programming Optimization Problems Dynamic Programming Paradigm
Authenticating streamed data in the presence of random packet loss March 17th, Philippe Golle, Stanford University.
CPSC 411 Design and Analysis of Algorithms Set 5: Dynamic Programming Prof. Jennifer Welch Spring 2011 CPSC 411, Spring 2011: Set 5 1.
Optimal Proxy Cache Allocation for Efficient Streaming Media Distribution Bing Wang, Subhabrata Sen, Micah Adler, and Don Towsley INFOCOM 2002.
Proxy-based Distribution of Streaming Video over Unicast/Multicast Connections B. Wang, S. Sen, M. Adler and D. Towsley University of Massachusetts Presented.
An Overlay Multicast Infrastructure for Live/Stored Video Streaming Visual Communication Laboratory Department of Computer Science National Tsing Hua University.
Smooth Workload Adaptive Broadcast Yang Guo, Lixin Gao Don Towsley, Subhabrata Sen IEEE TRANSACTIONS ON MULTIMEDIA, APRIL 2004.
Multicast with Cache (Mcache): An Adaptive Zero-Delay Video-on-Demand Service Sridhar Ramesh, Injong Rhee, and Katherine Guo INFOCOM 2001.
Scalable Live Video Streaming to Cooperative Clients Using Time Shifting and Video Patching Meng Guo and Mostafa H. Ammar INFOCOM 2004.
Streaming Video Gabriel Nell UC Berkeley. Outline Scalable MPEG-4 video – Layered coding method – Integrated transport-decoder buffer model RAP streaming.
A Hybrid Caching Strategy for Streaming Media Files Jussara M. Almeida Derek L. Eager Mary K. Vernon University of Wisconsin-Madison University of Saskatchewan.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 6 Instructor: Paul Beame TA: Gidon Shavit.
Multimedia Systems (Part 2)
Proxy-based Distribution of Streaming Video over Unicast/Multicast Connections Bing Wang, Subhabrata Sen, Micah Adler, and Don Towsley Umass CMPSCI Tech.
OStream: Asynchronous Streaming Multicast in Application-Layer Overlay Networks Yi Cui, Baochun Li, and Klara Nahrstedt IEEE Journal on Selected Areas.
Provisioning Content Distribution Networks for Streaming Media Jussara M. Almeida Derek L. Eager Michael Ferris Mary K. Vernon University of Wisconsin-Madison.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
1 Algorithms for Bandwidth Efficient Multicast Routing in Multi-channel Multi-radio Wireless Mesh Networks Hoang Lan Nguyen and Uyen Trang Nguyen Presenter:
Exploiting Virtualization for Delivering Cloud based IPTV Services Speaker : 吳靖緯 MA0G IEEE Conference on Computer Communications Workshops.
1 Proxy-Assisted Techniques for Delivering Continuous Multimedia Streams Lixin Gao, Zhi-Li Zhang, and Don Towsley.
Scalable On-Demand Media Streaming with Packet Loss Recovery A. Mahanti, D. L. Eager, (USask) M. K. Vernon, D S-Stukel (Wisc) Presented by Cheng Huang.
Ali Saman Tosun Computer Science Department
1 Optimal Multicast Smoothing of Streaming Video over an Internetwork S. Sen, D. Towsley, Z-L. Zhang, J. Dey
CPSC 441: Multimedia Networking1 Outline r Scalable Streaming Techniques r Content Distribution Networks.
CS 5243: Algorithms Dynamic Programming Dynamic Programming is applicable when sub-problems are dependent! In the case of Divide and Conquer they are.
Analytic Evaluation of Quality of Service for On-Demand Data Delivery Hongfei Guo Haonan Tan
CS 8833 Algorithms Algorithms Dynamic Programming.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
Mobile Agent Migration Problem Yingyue Xu. Energy efficiency requirement of sensor networks Mobile agent computing paradigm Data fusion, distributed processing.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Proxy Caching for Streaming Media.
March 2001 CBCB The Holy Grail: Media on Demand over Multicast Doron Rajwan CTO Bandwiz.
Simulation case studies J.-F. Pâris University of Houston.
1 Windows Scheduling as a Restricted Version of Bin-packing. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Scheduling Techniques for Media-on-Demand Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Large-Scale and Cost-Effective Video Services CS587x Lecture Department of Computer Science Iowa State University.
Scalable video distribution techniques Laurentiu Barza PLANETE project presentation: Sophia Antipolis 12 October 2000.
1 Scheduling Techniques for Broadcasting Popular Media. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Authenticating streamed data in the presence of random packet loss February 8 th, 2001 Philippe Golle Nagendra Modadugu Stanford University.
Progressive transmission of spatial data Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
Cost-Effective Video Streaming Techniques Kien A. Hua School of EE & Computer Science University of Central Florida Orlando, FL U.S.A.
Klara Nahrstedt Spring 2012
Video On Demand.
Presentation transcript:

The Analysis of Optimal Stream Merging Solutions for Media-on- Demand Amotz Bar-Noy CUNY and Brooklyn College Richard Ladner University of Washington

AofA Media-On-Demand Type of Media –Two hour movie –5 minute song –2 minute news video clip Demand on Media –Broadcast for very popular media –Unicast for the heavy tail

AofA Stream Merging Eager, Vernon, Zahorjan (1999) Goal to minimize cost = total server bandwidth Uses multicast –Many clients receive the same transmission simultaneously. Clients receive multiple channels –Clients receive different parts of the media simultaneously. We focus on receive-2. Clients use local buffers –Some data received is played back immediately while other data is stored for future play back.

AofA Stream Merging System - Receive Two Server Client Buffer Player Multicast Channels old stream new stream

AofA Stream Merging System Server Buffer Player Multicast Channels Client

AofA Stream Merging System Server Buffer Player Multicast Channels Client

AofA Stream Merging System Server Buffer Player Multicast Channels Client

AofA Stream Merging System Server Buffer Player Multicast Channels Client

AofA Batching client startup delay guarantee stream Cost = 14

AofA Stream Merging with Batching client startup delay guarantee stream AB Cost = 10

AofA Delay vs. Bandwidth Tradeoff 2 hour movie 720 arrivals per movie

AofA Off-line vs. On-line Off-line –Arrival sequence is known in advance –Used as a basis to compare with on-line algorithms On-line –Future arrivals not known –Server must add new streams and lengthen old streams to accommodate new arrivals

AofA Outline Model –Merge cost vs. Full cost Optimal merge cost Optimal full cost Fully loaded arrivals

AofA Merge Cost vs. Full Cost Optimal Merge cost –Minimum total bandwidth (sum of the lengths of the streams) required to merge to a full stream –M(t 1,…,t n ) Optimal Full cost –Minimum total bandwidth required for a media of length L. –F(L,t 1,…,t n )

AofA Length of Streams The length of streams ABCD x = B z(x) = D p(x) = A

AofA Optimality Principle for Merge Cost Given arrivals t 1,…,t n there is k such that in optimal stream merging –t k is the last stream to merge to t 1 –Streams t 1,…,t k-1 optimally merge eventually to t 1 –Streams t k+1,…,t m optimally merge eventually to t k

AofA Dynamic Program for Optimal Merge Cost Setup –Arrivals t 1,t 2, …,t n –M(i,j) = minimum merge cost of a merge tree for the arrivals t i,t 2, …,t j –M(1,n) is the optimal merge cost Recurrence –M(i,i) = 0 –M(i,j) = min i < k < j {M(i,k-1) + M(k,j) + (t k - t i ) + 2(t j - t k )} O(n 3 ) time, O(n 2 ) storage –Aggarwal, Wolf, Yu (1996), Eager,Vernon, Zahorjan (1999)

AofA O(n 2 ) Optimal Algorithm Setup Arrivals t 1,t 2, …,t n r(i,j) = the right most stream that merges to the root of an optimal merge tree for the arrivals t i,…,t j. Monotonicity (Knuth ‘71, F. Yao ’80, Borchers, Gupta ‘94) r(i,j - 1) < r(i,j) < r(i + 1,j) optimal M(i,j) = min r(i,j-1) < k < r(i+1,j) {M(i,k-1) + M(k,j) + (t k - t i ) + 2(t j - t k )}

AofA New Algorithm Behavior O(n 2 ) time M(i,j) r(i,j-1) r(i+1,j) r(i,j-1)r(i+1,j)

AofA New Algorithm Behavior O(n 2 ) time

AofA Optimal Full Cost L = 8 Optimal Full CostOptimal Merge Cost + L

AofA Optimal Full Cost Algorithm Setup –Arrivals t 1,t 2, …,t n –G(i) = the optimal full cost for the last n-i+1 arrivals t i,t i+1, …,t n –G(1) is the optimal full cost Recurrence –G(n+1) = 0 –G(i) = L + min{ M(i,k-1) + G(k) : i < k < m i } where m i = maximum m such that t m-1 - t i < L-1.

AofA Complexity of Full Cost Algorithm Phase 1: Precompute M(i,i) to M(i,m i ) for all i. Phase 2: Compute G(n+1) to G(1) time using monotonicity time from the recurrence for G where m is the average number of arrivals in an interval of length L that starts with an arrival

AofA Fully Loaded Arrivals Merge Cost Streams at 0,1,2,3,4,…,n-1

AofA Recurrence Merge recurrence for fully loaded arrivals Examples n M(n)

AofA Fibonacci Rules! Recurrence Fibonacci numbers –0,1,1, 2, 3, 5, 8,13, 21, 34, 55, 89, … –F 0 = 0, F 1 = 1, F k = F k-1 + F k-2 Solution

AofA Induction Hypothesis Design 21 {13}, 22 {13, 14}, 23 {13, 14, 15}, 24 {13, 14, 15, 16}, 25 {13, 14, 15, 16, 17}, 26 {13, 14, 15, 16, 17, 18}, 27 {14, 15, 16, 17, 18, 19}, 28 {15, 16, 17, 18, 19, 20}, 29 {16, 17, 18, 19, 20, 21}, 30 {17, 18, 19, 20, 21}, 31 {18, 19, 20, 21}, 32 {19, 20, 21}, 33 {20, 21}, 34 {21}, 35 {21, 22}, 36 {21, 22, 23}, 37 {21, 22, 23, 24}, 38 {21, 22, 23, 24, 25}, 39 {21, 22, 23, 24, 25, 26}, 40 {21, 22, 23, 24, 25, 26, 27}, 41 {21, 22, 23, 24, 25, 26, 27, 28}, 42 {21, 22, 23, 24, 25, 26, 27, 28, 29}, 43 {22, 23, 24, 25, 26, 27, 28, 29, 30}, 44 {23, 24, 25, 26, 27, 28, 29, 30, 31}, 45 {24, 25, 26, 27, 28, 29, 30, 31, 32}, 46 {25, 26, 27, 28, 29, 30, 31, 32, 33}, 47 {26, 27, 28, 29, 30, 31, 32, 33, 34}, 48 {27, 28, 29, 30, 31, 32, 33, 34}, 49 {28, 29, 30, 31, 32, 33, 34}, 50 {29, 30, 31, 32, 33, 34}, 51 {30, 31, 32, 33, 34}, 52 {31, 32, 33, 34}, 53 {32, 33, 34}, 54 {33, 34}, 2 {1}, 3 {2}, 4 {2, 3}, 5 {3}, 6 {3, 4}, 7 {4, 5}, 8 {5}, 9 {5, 6}, 10 {5, 6, 7}, 11 {6, 7, 8}, 12 {7, 8}, 13 {8}, 14 {8, 9}, 15 {8, 9, 10}, 16 {8, 9, 10, 11}, 17 {9, 10, 11, 12}, 18 {10, 11, 12, 13}, 19 {11, 12, 13}, 20 {12, 13}, 55 {34}, 56 {34, 35}, 57 {34, 35, 36}, 58 {34, 35, 36, 37}, 59 {34, 35, 36, 37, 38}, 60 {34, 35, 36, 37, 38, 39}, 61 {34, 35, 36, 37, 38, 39, 40}, 62 {34, 35, 36, 37, 38, 39, 40, 41}, 63 {34, 35, 36, 37, 38, 39, 40, 41, 42}, 64 {34, 35, 36, 37, 38, 39, 40, 41, 42, 43}, 65 {34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44}, 66 {34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45}, 67 {34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46}, 68 {34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, 69 {35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48}, 70 {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49}, 71 {37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50}, 72 {38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51}, 73 {39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52}, 74 {40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53}, 75 {41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54}, 76 {42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55}, 77 {43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55}, 78 {44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55}, 79 {45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55}, 80 {46, 47, 48, 49, 50, 51, 52, 53, 54, 55}, 81 {47, 48, 49, 50, 51, 52, 53, 54, 55}, 82 {48, 49, 50, 51, 52, 53, 54, 55}, 83 {49, 50, 51, 52, 53, 54, 55}, 84 {50, 51, 52, 53, 54, 55}, 85 {51, 52, 53, 54, 55}, 86 {52, 53, 54, 55}, 87 {53, 54, 55}, 88 {54, 55}, 89 {55},

AofA Optimal Full Cost L = 24 and n = 39 Cost = 210 Full steam merged steam

AofA Optimal Full Cost Define F(L,n,s) to be the optimal full cost when there are exactly s full streams. s opt minimizes F(L,n,s) F(L,n) = F(L,n, s opt ) Theorem F(L,n,s) = sL + rM(p+1) + (s-r)M(p) where n = ps + r

AofA Shape of F(L,n,s) s opt = 182

AofA Convexity of F(L,n,s) Define F k(s) < n/s < F k(s)+1 Theorem –F k(s+1)+2 F(L,n,s+1) –F k(s)+2 > L + 2 implies F(L,n,s) < F(L,n,s+1)

AofA Finding s opt Direct approach –Compute h, such that F h+1 < L+2 < F h+2 –s opt = n / F h or n / F h + 1 Example –n = 10,000 and L = 100 –h = 10 and F h = 55 – n / F h = 181

AofA Conclusions Optimal stream merging can be solved efficiently. Optimal fully loaded stream merging has an elegant closed form solution.