290 likes | 417 Views
Statistical Modeling and Analysis of P2P Replication to Support Vod Service. zyp. Infocom, 2011, Shanghai. Background. VoD: Video-on-Demand http://www.xunlei.com/ http://movie.youku.com/ Traditional VoD and P2P VoD First one,client-server approach Second one,P2P assisted VoD. Outline.
E N D
Statistical Modeling and Analysis of P2P Replication to Support Vod Service zyp Infocom, 2011, Shanghai
Background • VoD: Video-on-Demand • http://www.xunlei.com/ • http://movie.youku.com/ • Traditional VoD and P2P VoD • First one,client-server approach • Second one,P2P assisted VoD
Outline • Introduction • Model • Replication algorithm • Analysis • Adaptive Algorithm • Simulation • Conclusion
Introduction • P2P VoD • Storage to replicate content • Upload bandwidth • P2P replication is a central design issue in P2P VoD system
Model • For a P2P VoD system • Average server bandwidth utilization(B) • Average number of movie copies(M) • Peers(N),movies(K) • Each peer: • Upload capacity(Ui) • movies stored(L) • movie set stored on peer i(Qi) • average requests received by peer i(λi) • Each movie: • relative popularity of movie j(ηj) • peer set replicating movie j(Sj)
Model • Assumed: • movies are of the same size • have the same playback rate equal to 1(same as the average upload capacity) • Perfect Fair-Sharing Model • How a peer select a movie: • Deterministic Demand • Stationary(random)
Model • Stationary(random): • transition matrix -> stationary state • in stationary state,any peer watch movie j is a Binomial distribution with ηj • average number requests for peer i • Objective of the P2P VoD system • This paper try to do: minimize B
Replication Algorithm • Random with Load Balancing Assignment • for j=1 to K do • Bj=0 • end for • for i=1 to N do • Peer i randomly select L movies from the movie set and puts the id of each movie into Qi; • for do • Bj=Bj+Ui/λi,for homogeneous,Ui=1 • if Bj≥1 then • Never select movie j any more • end if • end for • end for
Replication Algorithm • In this algorithm Bj meaning the expected received bandwidth for peers watching movie j. • For Homogeneous peer,their uplink capacity U=1. • This algorithm wants to make the most movie's B≥1
Analysis Stationary Demand and Homogeneous(同类的) Peers • Requests at any peer i is a random variable of Binomial distribution( ) • For large N: • Bandwidth form provider i allocated to a peer watching movie j( ) • EQ.1
Analysis • EQ.1:
Analysis • Aggregate bandwidth that peers watching movie j get from other peers: • We need variance of Xj to describe B: • EQ.2
Analysis • Weighted average variance of all movies: • EQ.3 • Constraints to restrict the allocation: • EQ.4 • EQ.5 • The RLB algorithm satisfying both conditions.
Analysis • EQ.5: • Each peer stores exactly L movies,means 1/λi appears exactly L times.
Analysis • The performance of RLB algorithm is given by EQ.3 • Correlation rj(i,k) is complicating factor. • rj(i,k)=1 • EQ.3 becomes EQ.6 • rj(i,k)=0 • EQ.3 becomes EQ.7
Analysis • EQ.6: • rj(i,k)=1,means peers who store movie j have the same movie set,then λi=λk. • From EQ.4 we can get |sj|=λi.
Analysis • The sever load with eq.4 and eq.5: • EQ.8 • The worst case rj(i,k)=1 • EQ.9 • The best case rj(i,k)=0 • EQ.10
Analysis • EQ.8:
Analysis Stationary demand and heterogeneous peers • The upload capacity of peer i be Ui. • EQ.1 is rewritten as EQ.11: • Proposition 1:They share same lower bound • Proposition 2:They share same upper bound
Adaptive Algorithm • RLB is a centralized algorithm. • ARLB is a distributed one • Do movie replication based on the watched movies. • ARLB algorithm: • x+=x if x>0,else 0. • GAP means weighted gap between Bj and required playback rate(1).
Adaptive Algorithm • Step1-3:Check i's storage. • Step4-5:Check movie j's bandwidth . • Step7:Find out which movie to be replaced. • Step8-19:Calculate the GAP before and after replace • Step20-22:Decision.
Simulation • A.Stationary demand and static replication assignment • Model validation under homogeneous settings: • Evenly distributed movie popularity(ηj=1/K). • Homogeneous peer uplink capacity(Ui=1). • Simulation duration 1500 timeslots,viewing duration [20,40]. • N=10000,each peer make independently selection. • K/L=50,keep the bounds unchanged.
Simulation • Sever load decreases when L is increased. • Server load of RLB is strictly bounded. • L=1 achieved lower-bound. Fig.1
Simulation • Sensitivity analysis on configuration parameters:
Simulation • Fig.2 shows that all the six cases that RLB performs much better and RLB is strictly bounded. • (a) changing the popularity • (b) changing the peer uplink capacity • (c) changing N • (d) changing K • (e) changing L with N,K fixed • (f) changing L with K/L fixed
Simulation • B.Evaluate adaptive replication algorithms • The simulation configuration parameters is similar to A. • Compare with four replacement algorithms. • Also, these simulations show that ARLB performs much better then others,and ARLB still bounded by upper- and lower-bounds.
Conclusion • This paper propose a service model and a stationary statistical demand model for P2P VoD. • Design a replication algorithm(RLB) and give an adaptive version(ARLB). • Simulation