A new caching policy for cloud assisted Peer-to-Peer video on-demand services

Similar documents
Modeling and Performance Analysis of BitTorrent-Like Peer-to-Peer Networks

BitTorrent Fairness Analysis

Quality-centric design of Peer-to-Peer systems for live-video broadcasting

Anatomy of a P2P Content Distribution System with Network Coding

Performance Analysis and Improvement for BitTorrent-like File Sharing Systems

P2P VoD Systems: Modelling and Performance

Exploring the Optimal Replication Strategy in P2P-VoD Systems: Characterization and Evaluation

Performance and Scalability of Networks, Systems, and Services

Serving Niche Video-on-Demand Content in a Managed P2P Environment

Stochastic Analysis and File Availability Enhancement for BT-like File Sharing Systems

arxiv: v3 [cs.ni] 3 May 2017

Loopback: Exploiting Collaborative Caches for Large-Scale Streaming

Heuristic Algorithms for the Fixed-Charge Multiple Knapsack Problem

Encouraging bandwidth efficiency for peer-to-peer applications

Optimized Strategies for Real-Time Multimedia Communications from Mobile Devices

XXXIV SIMPÓSIO BRASILEIRO DE PESQUISA OPERACIONAL 8 a 11 de novembro de 2002, Rio de Janeiro/RJ

Adaptive Server Allocation for Peer-assisted VoD

BUILDING LARGE VOD LIBRARIES WITH NEXT GENERATION ON DEMAND ARCHITECTURE. Weidong Mao Comcast Fellow Office of the CTO Comcast Cable

Performance and cost effectiveness of caching in mobile access networks

HSM: A Hybrid Streaming Mechanism for Delay-tolerant Multimedia Applications Annanda Th. Rath 1 ), Saraswathi Krithivasan 2 ), Sridhar Iyer 3 )

A Randomized Algorithm for Minimizing User Disturbance Due to Changes in Cellular Technology

Incentive-Compatible Caching and Inter-Domain Traffic Engineering in CCN

A game-theoretic framework for ISPs interactions in the context of Economic Traffic Management

Exploring the Optimal Replication Strategy in P2P-VoD Systems: Characterization and Evaluation

Modeling, Analysis and Improvement for BitTorrent-Like File Sharing Networks

On Fairness, Optimal Download Performance and Proportional Replication in Peer-to-Peer Networks

Optimizing Random Walk Search Algorithms in P2P Networks

DDSS: Dynamic Dedicated Servers Scheduling for Multi Priority Level Classes in Cloud Computing

The Scalability of Swarming Peer-to-Peer Content Delivery

On Fairness, Optimal Download Performance and Proportional Replication in Peer-to-Peer Networks

Delft University of Technology Parallel and Distributed Systems Report Series. Bandwidth Allocation in BitTorrent-like VoD Systems under Flashcrowds

Stochastic Approximation and Transaction-Level Model for IP Network Design

Providing VCR in a Distributed Client Collaborative Multicast Video Delivery Scheme

Scalability of the BitTorrent P2P Application

Analysis of Peer-Assisted Video-on-Demand Systems with Scalable Video Streams

A novel caching mechanism for peer-to-peer based media-on-demand streaming

The production of peer-to-peer video-streaming networks

Dynamic Grouping Strategy in Cloud Computing

PRIMAL-DUAL INTERIOR POINT METHOD FOR LINEAR PROGRAMMING. 1. Introduction

Modeling and Analysis of Random Walk Search Algorithms in P2P Networks

Application-Oriented Multimedia Streaming over Wireless Multihop Networks

Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Multimedia Streaming. Mike Zink

Improving VoD System Efficiency with Multicast and Caching

Approximability Results for the p-center Problem

P2P Applications. Reti di Elaboratori Corso di Laurea in Informatica Università degli Studi di Roma La Sapienza Canale A-L Prof.ssa Chiara Petrioli

Boosting Market Liquidity of Peer-to-Peer Systems Through Cyclic Trading

Statistical Matching using Fractional Imputation

Performance Improvements of Peer-to-Peer File Sharing

Single Video Performance Analysis for Video-on-Demand Systems

Peer-to-Peer Streaming Systems. Behzad Akbari

An Optimal Overlay Topology for Routing Peer-to-Peer Searches

A Distributed Algorithm for the Replica Placement Problem

The Design Trade-offs of BitTorrent-like File Sharing Protocols

Joint-Family: Enabling Adaptive Bitrate Streaming in Peer-to-Peer Video-on-Demand

arxiv: v2 [cs.dm] 3 Dec 2014

Throughput prediction in wireless networks using statistical learning

Lecture 17: Peer-to-Peer System and BitTorrent

Facial Recognition Using Neural Networks over GPGPU

Improving Scalability of VoD Systems by Optimal Exploitation of Storage and Multicast

Demand-Aware Content Distribution

Peer-Assisted Distribution of User Generated Content

Do incentives build robustness in BitTorrent?

Capacity Management of Seed Servers in Peer-to-Peer Streaming Systems with Scalable Video Streams

Chapter 5. Minimization of Average Completion Time and Waiting Time in Cloud Computing Environment

Object replication strategies in content distribution networks

Microsoft RemoteFX for Remote Desktop Virtualization Host Capacity Planning Guide for Windows Server 2008 R2 Service Pack 1

Determining Optimal Update Period for Minimizing Inconsistency in Multi-server Distributed Virtual Environments

A Genetic Algorithm Framework

Effective Utilization of User Resources in PA-VoD Systems with Channel Heterogeneity

Load Sharing in Peer-to-Peer Networks using Dynamic Replication

TCPeer: Rate Control in P2P over IP Networks

arxiv: v2 [cs.dc] 18 Dec 2016

Application Layer Multicast Algorithm

Distributed bandwidth-efficient packet scheduling for live streaming with network coding

Lecture: Simulation. of Manufacturing Systems. Sivakumar AI. Simulation. SMA6304 M2 ---Factory Planning and scheduling. Simulation - A Predictive Tool

COOCHING: Cooperative Prefetching Strategy for P2P Video-on-Demand System

The Cross-Entropy Method

Performance models for master/slave parallel programs

Conditional Random Fields - A probabilistic graphical model. Yen-Chin Lee 指導老師 : 鮑興國

Algorithms for Storage Allocation Based on Client Preferences

Doctoral Written Exam in Networking, Fall 2009

Utility Maximizing Thread Assignment and Resource Allocation

Parallel Implementation of a Random Search Procedure: An Experimental Study

Introduction to Machine Learning

It s Not the Cost, It s the Quality! Ion Stoica Conviva Networks and UC Berkeley

Model Parameter Estimation

Congestion Control. Andreas Pitsillides University of Cyprus. Congestion control problem

NSFA: Nested Scale-Free Architecture for Scalable Publish/Subscribe over P2P Networks

CHAPTER 8 CONCLUSION AND FUTURE ENHANCEMENTS

CSC630/CSC730 Parallel & Distributed Computing

Buffered Count-Min Sketch on SSD: Theory and Experiments

Mathematics for chemical engineers

PEER-TO-PEER (P2P)applications have shown their popularity

Hybrid ant colony optimization algorithm for two echelon vehicle routing problem

Understanding the impact of VCR operations in P2P VoD systems

A queueing network model to study Proxy Cache Servers

Math 241, Final Exam. 12/11/12.

Data Offloading in Mobile Cloud Computing: A Markov Decision Process Approach

Non-exhaustive, Overlapping k-means

Transcription:

A new caching policy for cloud assisted Peer-to-Peer video on-demand services Franco Robledo, Pablo Rodríguez-Bocca, Pablo Romero and Claudia Rostagnol Facultad de Ingeniería, Universidad de la República. Montevideo, Uruguay. IEEE International Conference on Peer-to-Peer Computing http://www.p2p12.org/ September 03-05, 2012 - Tarragona, Spain

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Problem Problem - first definition Problem We have a set of videos that we want to distribute on-demand, using GoalBit P2P protocol (http://goalbit.sourceforge.net), optimizing resources and download time. In order to better understand the problem we have to define the following concepts: GoalBit platform, protocol and components. Peers behavior. Previous work. Assumptions.

Definitions What is GoalBit? GoalBit is a set of products and protocols: GoalBit Protocol (GBTP) based on BitTorrent protocol, but designed for live streaming. GoalBit Media Player (GMP) player to watch live and on-demand GoalBit contents. GoalBit Media Server (GMS) which can: play a GoalBit streaming, distribute a GoalBit streaming, generate a GoalBit streaming (broadcast), and transcode a GoalBit streaming. GoalBit Suite (GS) that is a web system to administrate and control a GoalBit Platform.

Definitions GoalBit VoD components These are the GoalBit components related with P2P Protocol and on-demand distribution: Content: video to be distributed on demand. Peer: end-user that want to watch a video (downloader or seeder) Super-Peer: special peer with better bandwidth and more stable. They are managed by the platform s operator and only executed in the cloud servers.

Definitions GoalBit VoD components Tracker: server entity that knows all Peers and Super- Peers that are sharing a content (seeding or downloading). Repository: storage space where to save VoD contents (inside the GoalBit platform) to be distributed by Super- Peers.

Definitions Peers behavior About peers behavior in a BitTorrent-like system: Peers can enter and leave the network when they want. A peer can be in one of the following states: connecting, downloading, seeding or disconnected. We can estimate the probabilities of changing from one state to other. It was previously shown 1 that the BitTorrent peers behavior can be modeled as a Markov chain. 1 Y. Tian, D. Wu, and K. W. Ng, Analyzing multiple file downloading in bittorrent in Proceedings of ICPP 06 - IEEE, August 2006, pp.297-306

Our goal Problem - formal definition Now we can present our problem in a more detailed way: Problem We have a set of videos, a set of repositories and super-peers (servers) and a set of peers requesting to watch these videos on demand. We want to find the best video distribution into the repositories to offer a minimal download time to peers (which could imply to add more replicas for more popular/required videos and less replicas for less popular videos).

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Some details Details As proposed in previous work, we model the system as a Markov chain with following details: Each peer can download multiple streams at time t. Peers are grouped into classes: {C 1, C 2,..., C K } (peers in class C i are downloading i videos simultaneously). Peers at class C i allocate the i-th part of its peer s bandwidth for each concurrent download. Video popularity is defined by the number of peers requesting the same video in a period of time.

Problem data Problem data K available videos s j size (in kbits) of video j xj i(t) downloaders in class Ci downloading video j at time t yj i(t) seeders in class Ci seeding video j at time t spj i(t) super-peers in class Ci seeding video j at time t λ i j arrival rate for peers in class C i requesting video j γ departure rate of seeders θj i departure rate of downloaders in class C i downloading video c total download bandwidth for each peer (in kbps) µ total upload bandwidth for each peer (in kbps) ρ total upload bandwidth for each super-peer (in kbps) η video sharing effectiveness between peers (η [0, 1]) S p storage capacity of super-peer p (in kbits) E p j indicates if the super-peer p has a copy of video j (E p j 0, 1)

Problem model Problem model (P2P) Modeling the peers behavior as a simple fluid model we get the following differential equations (peers evolution: xj i (t) and y i j (t)): P2P Fluid model dx i j dt dy i j dt = λ i j θ i x i j min = min { { c is j x i j, η µ is j x i j + α i j c is j x i j, η µ is j x i j + α i j k ( µ yj k s j k k + ρ spj k s j k ( µ yj k s j k + ρ spj k s j k )} γ i j y i j )} i, j {1... K }:

Problem model Problem model (P2P) Assuming that the system will reach its steady state, where the number of peers is stable ( dx j i dt = dy j i dt can calculate the steady state value for x i j = 0 i, j {1... K }), we (t) and y i j (t): P2P Steady state x i j = max{ λi j is j P2P c y i j P2P = λi j γ, iλi j γµη λ k j k k λk j γs j k λk j µ k γρ k z k j k }

Problem model Problem model (CDN) A traditional Content Delivery Network (CDN) 2 can be viewed as a particular case of this analytical approach (where η = 0, µ = 0, yj i (t) = 0 and the previously named super-peers are now static servers). CDN Fluid model dx i j dt = λ i j θj i x j i min{ c xj i is, ρ sp +αi j k j j s j k } k i, j {1... K } 2 CDN is a large distributed system of servers deployed in multiple data centers over Internet. Its goal is to serve content to end-users with high availability and high performance.

Problem model Problem model (CDN) To get the expressions for the steady state in the CDN system we take µ = 0 and η = 0: Steady state { λ i xj i j is j = max CDN c, iλi j (λ } j ρ j ) θλ j

Problem model Average download time The average download time for any downloader at steady state can be computed applying Little s law: T i j = x j i λ i j We denote T P2P and T CDN the expected download times under steady state for peers in a P2P network and users in the CDN system, respectively. Average download time. T P2P = x i j P2P λ i j T CDN = x i j CDN λ i j

Problem model Average download time So, to compare average download times we can compare the number of downloaders in steady state for each system. We demonstrate that the following chain of inequalities holds: j = iλi j (λ j ρ j ) iλ i j φ j ( ) iλi j (λ j ρ j ) P2P λ j θ + µ s j (η θ γ ) θλ j x i = x i j CDN So we can conclude a very important result: P2P vs. CDN T P2P T CDN

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Optimization Combinatorial Optimization Problem Our problem can now be written as a Combinatorial Optimization Problem (COP): Combinatorial Optimization Problem min E p j K max j=1 s.t. λ j s j c (1) j, λ j ρ j φ j θ + ηµ µθ s j γs j E p j s j S p p (2) p E p j 2 j (3)sp j = p E p j j (4)E p j {0, 1} j, p

Optimization Multi-Knapsack Problem The COP we address here is similar to the Multi-Knapsack Problem (MKP), where each super-peer holds a knapsack (super-peers storage) with limited capacity and items (videos) must be placed inside the knapsacks. Since MKP is known to be Strongly NP-Hard (it reduces to the Bin Packing Problem 3 ) we designed a Greedy Randomized Adaptive Search Procedure (GRASP). 3 M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness. New York, NY, USA: W. H. Freeman & Co., 1979.

Optimization Greedy Randomized Adaptive Search Procedure GRASP is an iterative process which operates in two phases: 1 Construction Phase: an initial feasible solution is built, 2 Local Search Phase: solution s neighborhood is explored to find better solutions. As a result we will get a possible distribution of videos in the available super-peers, which gives the best (minimum) download time of all tested solutions.

Implementation GRASP - Construction Phase E = RandomGreedy(λ, θ, γ.η, s, S, µ, c, ρ) 1: V = SortVideos(s) 2: for j = 1 TO K do 3: (p 1, p 2, p 3 ) FeasibleSelect(S 1,..., S P ) 4: E(p 1, V (j)) 1 5: E(p 2, V (j)) 1 6: if p 3 > 0 then 7: E(p 3, V (j)) 1 8: end if 9: Update(S 1,..., S P ) 10: end for 11: return E

Implementation GRASP - Local Search Phase E out = LocalSearch(E) 1: (E, improve) Add(Rand(SP, Video)) 2: IF improve GO TO Line 1 3: (E, improve) Delete(Rand(SP, Video)) 4: IF improve GO TO Line 1 5: (E, improve) Swap(Rand(SP1, V 1), Rand(SP2, V 2)) 6: IF improve GO TO Line 1 7: return E out = E

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Tests GRASP - Evaluation Real information from a local Internet Video on-demand Service Provider (AdinetTV - http://www.adinettv.com.uy/): 700 videos (K ), videos average size is 23 MB (s), 4 super-peers (P), super-peers storage capacity is 1500 GB (S), super-peers upload rate is 10 Mbps.(ρ), peers download rate is 1 Mbps (c), peers upload rate is 0.25 Mbps (µ), P2P effectiveness of 50% (η = 0.5), seeders departure with rate 100 (γ = 100) and peers departure with rate 0.1 (θ = 0.1).

Tests GRASP - Implementation We implemented the COP in Matlab, and we calibrate the GRASP algorithm with generated instances. We contrast the performance of both CDN and P2P system in two aspects: scalability: we stress the system keeping the popularity proportional with the real data (i.e. multiplying the real λ by an increasing factor). economical savings: we chose a fixed value for the system popularity and then changed the number of super-peers/servers (increasing the available resources at the platform side).

Results GRASP - Scalability result Estimated download time (CDN) 10 9 8 7 6 5 4 3 2 T_P2P T_CDN 1 0 1 2 3 4 5 6 7 8 9 10 11 12 0 Popularity factor (10^i) 0.5 0.4 0.3 0.2 0.1 Estimated download time (P2P) Figure: Performance of CDN and P2P systems versus popularity.

Results GRASP - Savings result Estimated download time (CDN) 7.1 7 6.9 6.8 6.7 6.6 T_P2P T_CDN 6.5 3 4 5 6 7 8 9 10 0 Number of super-peers 0.4 0.3 0.2 0.1 Estimated download time (P2P) Figure: P2P performance versus number of super-peers.

Outline 1 Introduction and Problem 2 Proposed Solution 3 Problem Optimization 4 Experimental Evaluation 5 Conclusions

Results theory: We theoretically shown that, under same conditions, the average download time of the P2P system is equal or better than the average download time of CDN system. scalability: We confirmed the theory in the practice - In order to reach the same level of service (the same average download time) in a client-server system we should increase the number of servers (or super-peers) proportionally with the end-user requests; while in the P2P system we have a natural scalability with the growing resources offered by users (downloaders and seeders). savings: Results showed that CDN system is much more sensible to the changes in the available resources (super-peers/servers).

Future work Current and future goals: Compare our GRASP results with other metaheuristics in order to find a good approximation of the optimal solution. Include the optimization algorithm into GoalBit Platform in order to know the algorithm performance and adaptation to the real world. Gather data from popular commercial services to further validate our model.

Thanks! UdelaR: http://www.fing.edu.uy/ GoalBit: http://goalbit.sourceforge.net/ AdinetTV: http://www.adinettv.com.uy/