A Hybrid Caching Strategy for Streaming Media Files Jussara M. Almeida Derek L. Eager Mary K. Vernon University of Wisconsin-Madison University of Saskatchewan.

Slides:



Advertisements
Similar presentations
Cost-Based Cache Replacement and Server Selection for Multimedia Proxy Across Wireless Internet Qian Zhang Zhe Xiang Wenwu Zhu Lixin Gao IEEE Transactions.
Advertisements

A Survey of Web Cache Replacement Strategies Stefan Podlipnig, Laszlo Boszormenyl University Klagenfurt ACM Computing Surveys, December 2003 Presenter:
Managing Wire Delay in Large CMP Caches Bradford M. Beckmann David A. Wood Multifacet Project University of Wisconsin-Madison MICRO /8/04.
Consistency and Replication Chapter 7 Part II Replica Management & Consistency Protocols.
Qinqing Gan Torsten Suel Improved Techniques for Result Caching in Web Search Engines Presenter: Arghyadip ● Konark.
Scalable On-demand Media Streaming Anirban Mahanti Department of Computer Science University of Calgary Canada T2N 1N4.
Optimization of Data Caching and Streaming Media Kristin Martin November 24, 2008.
Scalable On-demand Media Streaming with Packet Loss Recovery Anirban Mahanti Department of Computer Science University of Calgary Calgary, AB T2N 1N4 Canada.
1 School of Computing Science Simon Fraser University, Canada Modeling and Caching of P2P Traffic Mohamed Hefeeda Osama Saleh ICNP’06 15 November 2006.
Video Staging: A Proxy-Server- Based Approach to End-to-End Video Delivery over Wide-Area Networks Zhi-Li Zhang, Yuewei Wang, David H.C Du, Dongli Su Άννα.
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
Multimedia Proxy Caching Mechanism for Quality Adaptive Streaming Applications in the Internet R. Rejaie, H. Yu, M. Handley, D. Estrin.
1 A Framework for Lazy Replication in P2P VoD Bin Cheng 1, Lex Stein 2, Hai Jin 1, Zheng Zhang 2 1 Huazhong University of Science & Technology (HUST) 2.
Peer-to-Peer Based Multimedia Distribution Service Zhe Xiang, Qian Zhang, Wenwu Zhu, Zhensheng Zhang IEEE Transactions on Multimedia, Vol. 6, No. 2, April.
Improving Proxy Cache Performance: Analysis of Three Replacement Policies Dilley, J.; Arlitt, M. A journal paper of IEEE Internet Computing, Volume: 3.
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.
1 Simultaneous Distribution Control and Privacy Protection for Proxy based Media Distribution George Mason University Songqing Chen (George Mason University)
Prefix Caching assisted Periodic Broadcast for Streaming Popular Videos Yang Guo, Subhabrata Sen, and Don Towsley.
Improving Proxy Cache Performance: Analysis of Three Replacement Policies John Dilley and Martin Arlitt IEEE internet computing volume3 Nov-Dec 1999 Chun-Fu.
Distributed Servers Architecture for Networked Video Services S. H. Gary Chan, Member IEEE, and Fouad Tobagi, Fellow IEEE.
Optimal Proxy Cache Allocation for Efficient Streaming Media Distribution Bing Wang, Subhabrata Sen, Micah Adler, and Don Towsley INFOCOM 2002.
Internet Cache Pollution Attacks and Countermeasures Yan Gao, Leiwen Deng, Aleksandar Kuzmanovic, and Yan Chen Electrical Engineering and Computer Science.
Proxy-based Distribution of Streaming Video over Unicast/Multicast Connections B. Wang, S. Sen, M. Adler and D. Towsley University of Massachusetts Presented.
Performance Evaluation of Peer-to-Peer Video Streaming Systems Wilson, W.F. Poon The Chinese University of Hong Kong.
Differentiated Multimedia Web Services Using Quality Aware Transcoding S. Chandra, C.Schlatter Ellis and A.Vahdat InfoCom 2000, IEEE Journal on Selected.
Multicast with Cache (Mcache): An Adaptive Zero-Delay Video-on-Demand Service Sridhar Ramesh, Injong Rhee, and Katherine Guo INFOCOM 2001.
Bandwidth Allocation in a Self-Managing Multimedia File Server Vijay Sundaram and Prashant Shenoy Department of Computer Science University of Massachusetts.
Loopback: Exploiting Collaborative Caches for Large-Scale Streaming Ewa Kusmierek, Yingfei Dong, Member, IEEE, and David H. C. Du, Fellow, IEEE.
On-Demand Media Streaming Over the Internet Mohamed M. Hefeeda, Bharat K. Bhargava Presented by Sam Distributed Computing Systems, FTDCS Proceedings.
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 Proxy-Assisted Techniques for Delivering Continuous Multimedia Streams Lixin Gao, Zhi-Li Zhang, and Don Towsley.
1 Ekow J. Otoo Frank Olken Arie Shoshani Adaptive File Caching in Distributed Systems.
Achieving Load Balance and Effective Caching in Clustered Web Servers Richard B. Bunt Derek L. Eager Gregory M. Oster Carey L. Williamson Department of.
1 Design and Performance of a Web Server Accelerator Eric Levy-Abegnoli, Arun Iyengar, Junehwa Song, and Daniel Dias INFOCOM ‘99.
1 An SLA-Oriented Capacity Planning Tool for Streaming Media Services Lucy Cherkasova, Wenting Tang, and Sharad Singhal HPLabs,USA.
1 Cache Me If You Can. NUS.SOC.CS5248 OOI WEI TSANG 2 You Are Here Network Encoder Sender Middlebox Receiver Decoder.
Web Cache Replacement Policies: Properties, Limitations and Implications Fabrício Benevenuto, Fernando Duarte, Virgílio Almeida, Jussara Almeida Computer.
Distributing Layered Encoded Video through Caches Authors: Jussi Kangasharju Felix HartantoMartin Reisslein Keith W. Ross Proceedings of IEEE Infocom 2001,
Segment-Based Proxy Caching of Multimedia Streams Authors: Kun-Lung Wu, Philip S. Yu, and Joel L. Wolf IBM T.J. Watson Research Center Proceedings of The.
« Performance of Compressed Inverted List Caching in Search Engines » Proceedings of the International World Wide Web Conference Commitee, Beijing 2008)
Scalable Web Server on Heterogeneous Cluster CHEN Ge.
Web Caching and Content Distribution: A View From the Interior Syam Gadde Jeff Chase Duke University Michael Rabinovich AT&T Labs - Research.
Design and Analysis of Advanced Replacement Policies for WWW Caching Kai Cheng, Yusuke Yokota, Yahiko Kambayashi Department of Social Informatics Graduate.
Annoucements Read the papers for next week posted on Read the papers for next week posted on
Multicache-Based Content Management for Web Caching Kai Cheng and Yahiko Kambayashi Graduate School of Informatics, Kyoto University Kyoto JAPAN.
PROP: A Scalable and Reliable P2P Assisted Proxy Streaming System Computer Science Department College of William and Mary Lei Guo, Songqing Chen, and Xiaodong.
Improving Disk Throughput in Data-Intensive Servers Enrique V. Carrera and Ricardo Bianchini Department of Computer Science Rutgers University.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Proxy Caching for Streaming Media.
Evaluating Content Management Techniques for Web Proxy Caches Martin Arlitt, Ludmila Cherkasova, John Dilley, Rich Friedrich and Tai Jin Proceeding on.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Proxy Caching for Streaming Media.
Content caching and scheduling in wireless networks with elastic and inelastic traffic Group-VI 09CS CS CS30020 Performance Modelling in Computer.
1 Hidra: History Based Dynamic Resource Allocation For Server Clusters Jayanth Gummaraju 1 and Yoshio Turner 2 1 Stanford University, CA, USA 2 Hewlett-Packard.
An Overview of Proxy Caching Algorithms Haifeng Wang.
The Analysis of Optimal Stream Merging Solutions for Media-on- Demand Amotz Bar-Noy CUNY and Brooklyn College Richard Ladner University of Washington.
MiddleMan: A Video Caching Proxy Server NOSSDAV 2000 Brian Smith Department of Computer Science Cornell University Ithaca, NY Soam Acharya Inktomi Corporation.
Evaluating Content Management Technique for Web Proxy Cache M. Arlitt, L. Cherkasova, J. Dilley, R. Friedrich and T. Jin MinSu Shin.
Peer-to-Peer Video Systems: Storage Management CS587x Lecture Department of Computer Science Iowa State University.
On the Placement of Web Server Replicas Yu Cai. Paper On the Placement of Web Server Replicas Lili Qiu, Venkata N. Padmanabhan, Geoffrey M. Voelker Infocom.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
PACMan: Coordinated Memory Caching for Parallel Jobs Ganesh Ananthanarayanan, Ali Ghodsi, Andrew Wang, Dhruba Borthakur, Srikanth Kandula, Scott Shenker,
Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part VIII Web Performance Modeling (Book, Chapter 10)
Clustered Web Server Model
CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 5)
Proxy Caching for Streaming Media
The Impact of Replacement Granularity on Video Caching
Presented by Haoran Wang
PA an Coordinated Memory Caching for Parallel Jobs
Memory Management for Scalable Web Data Servers
Performance-Robust Parallel I/O
Presentation transcript:

A Hybrid Caching Strategy for Streaming Media Files Jussara M. Almeida Derek L. Eager Mary K. Vernon University of Wisconsin-Madison University of Saskatchewan November 2001

Outline Characteristics of Streaming Media (SM) files Delivery of SM files Hypothesis and Assumptions Previous Caching Policies New Policy Performance Comparison New Caching Policies Conclusions and Future Work

Characteristics of SM Files Large file size –cache on disk Sustained I/O bandwidth –inserting and reading new content Clients access partial files –initial portion –favored segment –base + variable number of layers of layered encoding

Delivery of SM Files Unicast streaming: –server bandwidth is linear in client request rate –goal: maximize byte hit ratio Multicast streaming –save bandwidth –cost sharing introduces new tradeoffs

example: 10 distributed proxy servers each serving a local region, 100 requests (on avg) arrive per region during a given popular video need 7 streams per region, or 12 streams at the remote server Caching for Multicast Streams: Tradeoffs

caching popular content reduces the load on the remote server and network delivering popular content from the remote server amortizes the cost of a stream over more clients earlier portions of a popular video require more bandwidth and have less cost-sharing than later portions

New Caching Policies Research Hypothesis: popularity-based strategy will outperform replacement-based strategy –significant fraction of requests to uncached files may be for files that are accessed very sporadically Assumptions: –limited disk space implies limited disk bandwidth –proxy bandwidth for delivering cached streams is equal to min of proxy disk bw and proxy network bw (call this proxy disk bandwidth)

Current Web Caching Policies Replacement based (cache on each miss) Top replacement candidate is an ad-hoc combination of: –large files –least recently access or lower access frequency –miss penalty (server latency, bandwidth) Cache whole file or none Unicast Ignore limited disk bandwidth

Interval Caching [DaSi93, KaRT95] Resource Based Caching (RBC) [TVDS98] Least Frequently Used (LFU) Block-based insertion and deletion [AcSm00] Popularity-based caching for layered encoding [RYHE00] Prefix and Segment Caching for smoothing [SeRT99,WZDS98] Previous SM Caching Policies

Interval Caching Cache smallest intervals Target: memory caches (lots of insertions) File f 0 T Time   S1S1 S2S2 0 T S1S1 S1S1 S2S2 0 T  S1S1 S2S2 S3S3 0 T 

C ache entire files and intervals/runs Goal: efficiently utilize the limited resource –limited space: cache smallest space requirement –limited bandwidth: cache smallest write overhead Pre-allocate bandwidth to each cached entity Complex algorithm –Complex implementation –High time complexity Resource Based Caching

RBC Algorithm Step 1: Selecting entity x  {interval, run, file} of file i 1) If U bw > U space +  Choose the entity with lowest 2) If U space > U bw +  Choose the entity with minimum space requirement S i,x 3) If U space -  < U bw < U space +  Choose the entity with largest Step 2: Caching decision for entity x 1) If enough unallocated space and unallocated bandwidth: Cache entity x 2) If enough unallocated space but bandwidth constrained: Use bandwidth goodness list to select candidates for eviction 3) If enough unallocated bandwidth but space constrained: Use space goodness list to select candidates for eviction 4) If both bandwidth and space constrained: Walk on both lists: at each step, remove entity from bandwidth goodness list or from space goodness list. Step 3: Allocate space and bandwidth for entity x

Least Frequently Used Different implementation options: –What to do when receive first access to an object? –How to estimate frequency? Version studied: Currently Most Popular (CMP) –Insert only most frequently accessed (file or segment) –On-line popularity estimate: future research

Previous comparison : RBC vs. CMP [TVDS98] Fixed file access frequencies RBC outperforms CMP for all parameter values studied Limited design space –e.g.: total cache size  16GB Inconsistent results

New Performance Comparison Re-evaluate byte hit ratio of CMP and RBC –Simulation with synthetic workload –Broad design space New Pooled RBC New simple hybrid CMP/interval caching (CMP/IC) policy

System Assumptions Arrivals: Poisson( ) –extra experiments with Pareto( ,k) File access frequency: Zipf(  ) Perfect File popularity –extra experiments with approximate file popularity Uniform file size and delivery rate –extra experiments with variable file size and delivery rate Load balanced across multiple disks

System Parameters n : number of files  : Zipf parameter N : arrival rate (avg. number of requests per avg. file duration T) N =  T C : cache size (fraction of media data accessed)

B: normalized disk bandwidth (fraction of the average number of simultaneous streams needed to deliver data that is cached by CMP) B depends on N, , n, C and disk technology Relative performance of policies depends mainly on B B = 1.0 : CMP system is bandwidth balanced B  1.0 : CMP system is bandwidth deficient B  1.0: CMP system is bandwidth abundant System Parameters

Ultrastar 72ZX disk : –disk space: hours of MPEG-1 video (73.4GB) –disk bandwidth: 108 MPEG-1 streams (22-37 MB/s ) Assume: 100 requests / hour for cached files If cache contains 2-hour movies: –Need 200 streams –B = 108/200 = 0.54 If cache contains 30-minute TV shows: –Need 50 streams for cache content –B = 108/50 = 2.16 Normalized Disk Bandwidth (B) Example

RBC vs. CMP CMP outperforms RBC if B  1.0 RBC slightly outperforms CMP if B  1.0 and small caches N = 450, n= 100,  =0

B = 0.75B = 2.0B = 1.0 Files Cached by RBC Average fraction of each file cached by RBC (N = 450, n = 100, C=0.25)

B = 0.75B = 2.0B = 1.0 Space and Bandwidth Utilization

Pooled RBC Three improvements over RBC –simpler rule to select entity to cache –can keep cached intervals when deleting a full file –pool of pre-allocated bandwidth Similar complexity as RBC

Pooled RBC, RBC and LFU Pooled RBC  CMP BUT, Pooled RBC is much more complex than CMP N = 450, n= 100,  =0

Hybrid CMP/IC Policies Do interval caching on a separate (small) cache –Interval Cache in Main Memory: CMP/IC mem and Pooled RBC/IC mem –Interval Cache on Disk: CMP/IC disk e.g. 5% of disk cache

N = 450, n= 100,  =0 CMP/IC mem vs. Pooled RBC/IC mem Memory cache improves CMP and Pooled RBC B  1.0 : greater improvement for CMP

N = 450, n= 100,  =0 CMP/IC disk vs. Pooled RBC CMP/IC disk  Pooled RBC  CMP

Conclusions Simple CMP –simple to implement –performance similar to Pooled RBC, CMP/IC disk (static file popularities) Hybrid CMP/IC policy –Performance  Pooled RBC –simple to implement –possibly more robust (imperfect and dynamic popularity measures)

Future Work Develop on-line estimate of file popularity Server log analysis –client behavior and workloads (NOSSDAV’01 paper) –More logs!!!! Caching Policies for Multicast Streams –popular file has greater cache-sharing if not cached –determine cache content that minimizes per-client cost –caching principles / on-line policy –(coming up soon) Prototype, experimental ( live ) workloads