Replications in Multi-Region Peer-to-peer Systems

Slides:



Advertisements
Similar presentations
Incremental Linear Programming Linear programming involves finding a solution to the constraints, one that maximizes the given linear function of variables.
Advertisements

Class-constrained Packing Problems with Application to Storage Management in Multimedia Systems Tami Tamir Department of Computer Science The Technion.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Fast Convergence of Selfish Re-Routing Eyal Even-Dar, Tel-Aviv University Yishay Mansour, Tel-Aviv University.
Introduction to Algorithms
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Seminar In Game Theory Algorithms, TAU, Agenda  Introduction  Computational Complexity  Incentive Compatible Mechanism  LP Relaxation & Walrasian.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Theory of Computing Lecture 16 MAS 714 Hartmut Klauck.
On the Power of Discrete and of Lexicographic Helly Theorems Nir Halman, Technion, Israel This work is part of my Ph.D. thesis, held in Tel Aviv University,
The General Linear Model. The Simple Linear Model Linear Regression.
1 s-t Graph Cuts for Binary Energy Minimization  Now that we have an energy function, the big question is how do we minimize it? n Exhaustive search is.
All Hands Meeting, 2006 Title: Grid Workflow Scheduling in WOSE (Workflow Optimisation Services for e- Science Applications) Authors: Yash Patel, Andrew.
The Cache Location Problem IEEE/ACM Transactions on Networking, Vol. 8, No. 5, October 2000 P. Krishnan, Danny Raz, Member, IEEE, and Yuval Shavitt, Member,
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2006 Lecture 9 Wednesday, 11/15/06 Linear Programming.
A General Approach to Online Network Optimization Problems Seffi Naor Computer Science Dept. Technion Haifa, Israel Joint work: Noga Alon, Yossi Azar,
Resource Placement and Assignment in Distributed Network Topologies Accepted to: INFOCOM 2013 Yuval Rochman, Hanoch Levy, Eli Brosh.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Escape Routing For Dense Pin Clusters In Integrated Circuits Mustafa Ozdal, Design Automation Conference, 2007 Mustafa Ozdal, IEEE Trans. on CAD, 2009.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
EE/Econ 458 Introduction to Linear Programming J. McCalley 1.
Searching for Extremes Among Distributed Data Sources with Optimal Probing Zhenyu (Victor) Liu Computer Science Department, UCLA.
Linear Programming Data Structures and Algorithms A.G. Malamos References: Algorithms, 2006, S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani Introduction.
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 49 DP can give complete quantitative solution Example 1: Discrete, finite.
Uri Zwick Tel Aviv University Simple Stochastic Games Mean Payoff Games Parity Games TexPoint fonts used in EMF. Read the TexPoint manual before you delete.
Combinatorial Optimization Problems in Computational Biology Ion Mandoiu CSE Department.
1 Statistical Modeling and Analysis of P2P Replication to Support Vod Service zyp Infocom, 2011, Shanghai.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
ASSIGNMENT, DISTRIBUTION AND QOS PROVISIONING IN COMMUNICATION NETWORKS.
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
Stochastic Optimization
STATIC ANALYSIS OF UNCERTAIN STRUCTURES USING INTERVAL EIGENVALUE DECOMPOSITION Mehdi Modares Tufts University Robert L. Mullen Case Western Reserve University.
CS623: Introduction to Computing with Neural Nets (lecture-12) Pushpak Bhattacharyya Computer Science and Engineering Department IIT Bombay.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Linear Programming Piyush Kumar Welcome to CIS5930.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Satisfaction Games in Graphical Multi-resource Allocation
The Theory of NP-Completeness
Secretary Markets with Local Information
Data Driven Resource Allocation for Distributed Learning
Lap Chi Lau we will only use slides 4 to 19
New Characterizations in Turnstile Streams with Applications
Scalable Load-Distance Balancing
Dana Ron Tel Aviv University
Hans Bodlaender, Marek Cygan and Stefan Kratsch
Computing and Compressive Sensing in Wireless Sensor Networks
Topics in Algorithms Lap Chi Lau.
NATCOR Stochastic Modelling Course Inventory Control – Part 3
Haim Kaplan and Uri Zwick
Cloud Computing By P.Mahesh
Accessing nearby copies of replicated objects
Chapter 6. Large Scale Optimization
Combinatorial Auctions (Bidding and Allocation)
Uri Zwick – Tel Aviv Univ.
Unit 4: Dynamic Programming
Uri Zwick Tel Aviv University
Linear Programming Duality, Reductions, and Bipartite Matching
1. for (i=0; i < n; i+=2) if (A[i] > A[i+1]) swap(A[i], A[i+1])
Problem Solving 4.
TRLabs & University of Alberta © Wayne D. Grover 2002, 2003, 2004
Mathematical Foundations of BME
The Theory of NP-Completeness
Part 3. Linear Programming
Chapter 1. Formulations.
Replications in Multi-Region Peer-to-peer Systems
Outline Introduction Background Distributed DBMS Architecture
Chapter 6. Large Scale Optimization
EE/Econ 458 Introduction to Linear Programming
Presentation transcript:

Replications in Multi-Region Peer-to-peer Systems Yuval Rochman Computer Science Tel-Aviv Univ. Hanoch Levy Computer Science Tel-Aviv Univ Eli Brosh Computer Science Columbia Univ Y. Rochman 1/1/2019

Problem: Vod P2P servers Players: End-User Terminals + a Central Video Server. Objective: Central server is bottleneck  need to reduce its load. Solution: Use user terminals to store movies and upload to other terminals. Demand reduces Video server Router User terminals Y. Rochman 1/1/2019

Single- and Multi-Region Video server Router User terminals Single Region System. Video server Multi Region System. Router Router User terminals User terminals Y. Rochman 1/1/2019

Equivalent problem: The department store problem Players: Customers buying shirts + k department stores Every store has limited storage. Goal: place shirts in department stores. Challenge: Combinatorial problem based on multi-dimensional stochastic variables Clothing factory store 1 Stochastic demand Local storage store 2 Revenue: Local > Remote > Factory Y. Rochman 1/1/2019

Toy problem: The single store (“Newsboy”) Clothing factory Local storage Stochastic demand clothing store 1/1/2019 Y. Rochman

Formulation A collection of shirts Store’s storage size: (constant) Demand for shirt : , random variable. Observed value of : . Goal: Determine # of type shirts, to maximize # granted requests. Y. Rochman 1/1/2019

Example: observed demand Shirts Observed Demand Y. Rochman 1/1/2019

Random vars, must account for full distributions Main Issues We have to maximize: Random vars, must account for full distributions Shirts Random Demand Y. Rochman 1/1/2019

Solution S.t Equivalent to: find largest elements from where Solution: Max-percentile algorithm in . Y. Rochman 1/1/2019

Max-percentile algorithm Shirt type 1 Shirt type 2 Shirt type 3 Shirt type 4 Blue-candidates Red-selected Choose the 6 largest elements Y. Rochman 1/1/2019

Max-percentile algorithm Shirt type 1 Shirt type 2 Shirt type 3 Shirt type 4 Blue-candidates Red-selected Choose the 6 largest elements Y. Rochman 1/1/2019

Max-percentile algorithm Shirt type 1 Shirt type 2 Shirt type 3 Shirt type 4 Blue-candidates Red-selected Choose the 6 largest elements Y. Rochman 1/1/2019

Max-percentile algorithm (final) Shirt type 1 Shirt type 2 Shirt type 3 Shirt type 4 Blue-candidates Red-selected Choose the 6 largest elements Y. Rochman 1/1/2019

Problems Single store Max percentile Y. Rochman 1/1/2019

Multi-store System Revenue: Local > Remote > Factory Clothing factory Local store Stochastic demand store 1 store 2 1/1/2019

Matching (multi-region) Matching Problem: Given deterministic demand, store shirts. Match between demand and shirts. Solution (simple) in linear time Closed formula revenue. ? Y. Rochman Y. Rochman 1/1/2019

Shirts Allocation Bounded problem(1) Given arbitrary stochastic demand. Shirts Allocation Bounded (SAB) Problem: Given: stores’ storage size. Required: Place shirts in stores. Objective: Maximize revenue. Under maximal matching Place 3 shirts Place 4 shirts Y. Rochman 1/1/2019

Shirts Allocation Bounded problem(2) Theorem: SAB problem can be solved via minimum-cost max-flow algorithm with O(ksm) vertices. Where: s= total storage m=# shirts types, k=# stores  SAB is not NP-Hard. Difficulty: Time Complexity - s=5 m=2 k=3 Y. Rochman 1/1/2019

Reduction of LA- part 1 Layer 3 Layer 2 Layer 1 S . .

Reduction of LA- part 2 t Layer 4 Layer 3 Layer 5

Efficient solutions(1) Solution (I):(recent results) Min convex-cost max flow Two more reductions from previous problem Efficient, Optimal solution Time= Quite practical s= total storage m=# shirts types, k=# stores Compare to previous solution: Y. Rochman 1/1/2019

Minimum cost max flow solution Problems Multi-store bounded Single store Minimum cost max flow solution Max percentile Y. Rochman 1/1/2019

Efficient solutions(2) Solution (II):Use generalized Max-Percentile based heuristic solution: Does not guarantee optimal solution Fast and provides good solution Time= s= total storage m=# shirts types, k=# stores The solution to the unbounded problem (given later), Used as a building block Y. Rochman 1/1/2019

Problems Multi-store bounded Single store Generalized Max Percentile Minimum cost max flow solution Max percentile Y. Rochman 1/1/2019

The Unbounded problem Shirts Allocation Unbounded (SAUB): Given: storage, arbitrary stochastic demand distribution Required: allocate storage in stores & place shirts Under maximal matching Objective: Maximize the expected revenue Y. Rochman 1/1/2019

Unbounded (SAUB) key principle Convert problem to: given , find S.T Difficulty: Revenue function not separable  problem is hard Y. Rochman 1/1/2019

Unbounded problem We generalize max percentile approach to 2-stage general monotone vectors. I.e where . We offer optimal solution to unbounded problem Y. Rochman 1/1/2019

Equivalent allocations A quantity vector of an allocation: Two allocations will called equivalent if they have the same quantity vector. Equivalent allocations with Quantity vector of 1/1/2019

Optimality of our algorithm (Unbounded problem) Allocation is called global iff for we have Fundamental lemma: in every step of algorithm we reach a global allocation. Proof is generalization of max-percentile correctness.  Lead to optimal algorithm. Y. Rochman 1/1/2019

Problems Multi-store bounded Multi-store unbounded Single store Generalized Max Percentile Minimum cost max flow solution Max percentile Y. Rochman 1/1/2019

Other results Bounded and symmetrical systems - did in prior work. More than 2 hierarchies. Online model. Y. Rochman 1/1/2019

Related Work (P2P allocation) Alternative models and solutions of server allocation: Tewari & Kleinrock [2006] Proposed the Proportional Mean Replication. Zhou, Fu & Chiu [ 2011] Proposed the RLB Replication. Y. Rochman 1/1/2019

Questions Y. Rochman 1/1/2019

Thank you Y. Rochman 1/1/2019

Preformance of Prportional Mean in high variance prob Two movies. S = #servers Proportional Mean will allocate S/(k+1) servers to red movies and k*S/(k+1) to blue. Expected # granted requets= 2*S/(k+1) Better allocation: n servers to red. Expected # granted requets =n. 1 1-1/k 1/k n nk2 requests 1/1/2019 Y. Rochman