Algebraic Topology and Distributed Computing part two

Slides:



Advertisements
Similar presentations
Topology in Distributed Computing: A Primer 1 / 16 Sergey Velder SPbSU ITMO.
Advertisements

N-Consensus is the Second Strongest Object for N+1 Processes Eli Gafni UCLA Petr Kuznetsov Max Planck Institute for Software Systems.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Consensus Steve Ko Computer Sciences and Engineering University at Buffalo.
Bigamy Eli Gafni UCLA GETCO Outline Models, tasks, and solvability What is SM? r/w w.f. asynch computability Sperner Lemma as a consequence of the.
Distributed Computing 8. Impossibility of consensus Shmuel Zaks ©
Towards a Theory of Peer-to-Peer Computability Joachim Giesen Roger Wattenhofer Aaron Zollinger.
Computer Science 425 Distributed Systems CS 425 / ECE 428 Consensus
1 Nir Shavit Tel-Aviv University and Sun Microsystems Labs (Joint work with Maurice Herlihy of Brown University) © Herlihy and Shavit 2004 The Topological.
Two Techniques for Proving Lower Bounds Hagit Attiya Technion TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Distributed Computing 8. Impossibility of consensus Shmuel Zaks ©
Structure of Consensus 1 The Structure of Consensus Consensus touches upon the basic “topology” of distributed computations. We will use this topological.
Sergio Rajsbaum 2006 Lecture 3 Introduction to Principles of Distributed Computing Sergio Rajsbaum Math Institute UNAM, Mexico.
CPSC 668Set 9: Fault Tolerant Consensus1 CPSC 668 Distributed Algorithms and Systems Fall 2006 Prof. Jennifer Welch.
CPSC 668Set 9: Fault Tolerant Consensus1 CPSC 668 Distributed Algorithms and Systems Spring 2008 Prof. Jennifer Welch.
CPSC 668Set 10: Consensus with Byzantine Failures1 CPSC 668 Distributed Algorithms and Systems Fall 2006 Prof. Jennifer Welch.
Bit Complexity of Breaking and Achieving Symmetry in Chains and Rings.
Deriving an Algorithm for the Weak Symmetry Breaking Task Armando Castañeda Sergio Rajsbaum Universidad Nacional Autónoma de México.
© Sergio Rajsbaum; DISC/GETCO 2004 Introduction to the Gödel Prize Session Sergio Rajsbaum Math Institute UNAM, Mexico.
On the Cost of Fault-Tolerant Consensus When There are no Faults Idit Keidar & Sergio Rajsbaum Appears in SIGACT News; MIT Tech. Report.
Two-Process Systems TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA Companion slides for Distributed Computing.
Distributed Consensus Reaching agreement is a fundamental problem in distributed computing. Some examples are Leader election / Mutual Exclusion Commit.
Lecture 8-1 Computer Science 425 Distributed Systems CS 425 / CSE 424 / ECE 428 Fall 2010 Indranil Gupta (Indy) September 16, 2010 Lecture 8 The Consensus.
Lecture #12 Distributed Algorithms (I) CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
Manifold Protocols TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA Companion slides for Distributed Computing.
1 © P. Kouznetsov A Note on Set Agreement with Omission Failures Rachid Guerraoui, Petr Kouznetsov, Bastian Pochon Distributed Programming Laboratory Swiss.
Distributed Algorithms – 2g1513 Lecture 9 – by Ali Ghodsi Fault-Tolerance in Distributed Systems.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Fall 2011 Prof. Jennifer Welch CSCE 668 Set 11: Asynchronous Consensus 1.
Byzantine fault-tolerance COMP 413 Fall Overview Models –Synchronous vs. asynchronous systems –Byzantine failure model Secure storage with self-certifying.
CS4231 Parallel and Distributed Algorithms AY 2006/2007 Semester 2 Lecture 8 Instructor: Haifeng YU.
1 Chapter 9 Synchronization Algorithms and Concurrent Programming Gadi Taubenfeld © 2014 Synchronization Algorithms and Concurrent Programming Synchronization.
DISTRIBUTED ALGORITHMS AND SYSTEMS Spring 2014 Prof. Jennifer Welch Set 11: Asynchronous Consensus 1.
1 Consensus Hierarchy Part 1. 2 Consensus in Shared Memory Consider processors in shared memory: which try to solve the consensus problem.
CS294, Yelick Consensus revisited, p1 CS Consensus Revisited
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
1 © R. Guerraoui Set-Agreement (Generalizing Consensus) R. Guerraoui.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Wait-Free Consensus CPSC 661 Fall 2003 Supervised by: Lisa Higham
When Is Agreement Possible
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Byzantine-Resilient Colorless Computaton
Elements of Combinatorial Topology
Algebraic Topology and Distributed Computing
Elements of Combinatorial Topology
Solvability of Colorless Tasks in Different Models
Wait-Free Computability for General Tasks
6.852: Distributed Algorithms Spring, 2008
Alternating Bit Protocol
Distributed Consensus
Agreement Protocols CS60002: Distributed Systems
Distributed Systems, Consensus and Replicated State Machines
Distributed Consensus
Simulations and Reductions
Combinatorial Topology and Distributed Computing
Algebraic Topology and Decidability in Distributed Computing
Renaming and Oriented Manifolds
CS 425 / ECE 428 Distributed Systems Fall 2017 Indranil Gupta (Indy)
Combinatorial Topology and Distributed Computing
Rodolfo Conde Joint work with Sergio Rajsbaum Instituto de Matemáticas
Task Solvability in Different Models
The Relative Power of Synchronization Methods
Algebraic Topology and Distributed Computing part three
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Combinatorial Topology and Distributed Computing
Combinatorial Topology and Distributed Computing
Locality In Distributed Graph Algorithms
CSE 486/586 Distributed Systems Consensus
Presentation transcript:

Algebraic Topology and Distributed Computing part two Maurice Herlihy Brown University

Find topological “obstruction” to this simplicial map Proof Strategy d Find topological “obstruction” to this simplicial map Protocol complex Output complex 18-Sep-18

Obstructions n-sphere (n+1)-disk 18-Sep-18

every continuous n-sphere map extends to No Holes in Dimension n every continuous n-sphere map extends to (n+1)-disk f F 18-Sep-18

Connectivity A complex C is n-connected if it has no holes in dimension n or less. dimension -1: non-empty (by convention) dimension 0: connected dimension 1: simply connected (Homotopy groups are trivial.) 18-Sep-18

Protocol as Operator input simplex: fix m+1 processes and their inputs protocol complex: only these processes take steps 18-Sep-18

Connectivity of P(S) Dimension below which holes vanish higher dimension: more obstructions more tasks impossible lower dimension: fewer obstructions fewer tasks impossible 18-Sep-18

Theorem synchronous message-passing model is (n-rk+1)-connected r rounds at most k failures per round is (n-rk+1)-connected connectivity drops with each round implies (n-1)-round consensus bound 18-Sep-18

Shared Memory Model 18-Sep-18

Shared Memory Model Processes share memory m[0…n] each P can unbounded size (for lower bounds) each P can atomically write to m[P] atomically scan (read) all of m equivalent to usual read/write models 18-Sep-18

Asynchronous Wait-Free arbitrary delays e.g., interrupts, page faults, etc. wait-free all but one process can halt failed and slow indistinguishable 18-Sep-18

Generic R/W Protocol Number of rounds s = empty sequence for (i=0; i<r; i++) { s = s + scan(m) m[P] = s; } return d(s) Decision map 18-Sep-18

One-Round Protocol Complex 00 P runs solo P and Q see one another Q runs solo 18-Sep-18

One-Round Protocol Complex R runs solo (Some simplexes omitted for clarity) P and Q run solo 18-Sep-18

Theorem Wait-Free R/W Protocol Complexes Next: an application are n-connected (no holes in any dimension) no matter how long the protocol runs Next: an application 18-Sep-18

The k-Set Agreement Task Before: private inputs After: agree on k inputs 18-Sep-18

Output Complex for 3-Process 2-Set Agreement 0 and 1 1 and 2 2 and 3 18-Sep-18

Set Agreement Proposed by Soma Chaudhuri 90 generalization of consensus does wait-free R/W protocol exist? Open problem until 1993 [Borowsky Gafni], [Herlihy Shavit], [Saks Zaharoglou] 18-Sep-18

Proof Outline Assume protocol exists show incompatibilities between protocol complex output complex some execution must decide too many distinct values 18-Sep-18

Sperner’s Lemma Subdivide a simplex give each “corner” a distinct color each edge vertex a corner color interior vertexes any corner color 18-Sep-18

Sperner’s Lemma At least one simplex has all colors 18-Sep-18

Input Simplex & Protocol Complex Each process colored with distinct input Each vertex colored with decision 18-Sep-18

Protocol Complex for One Process Execution single vertex labeled with matching color P( ) = P( ) = 18-Sep-18

Protocol Complex for Two-Process Executions Protocol complex is connected there is a path from P( ) to P( ) all vertexes labeled with red or yellow P( ) = 18-Sep-18

Protocol Complexes for all Two-Process Executions 18-Sep-18

Full Protocol Complex P( ) Because complex is simply connected we can “fill in” edge paths vertexes colored with input colors P( ) 18-Sep-18

Apply Sperner’s Lemma some simplex has all three colors that simplex is a protocol execution that decides three values! 18-Sep-18

Augmented Shared Memory Real multiprocessors provide additional atomic synchronization test&set compare&swap load-linked/store-conditional 18-Sep-18

Example: Test&Set Test&set(int v) { int temp = v; v = 1; return temp; } First gets 0, rest get 1 18-Sep-18

Test&Set Protocol Complex 3 processes First gets 0 Rest get 1 multi-round: Sierpinski triangle 1 1 1 18-Sep-18

Other Test&Set Protocol Complexes Connected, not simply connected 18-Sep-18

Theorem Wait-Free T&S Protocol Complexes are all (n-1)-connected more powerful than read/write but still no 3-process consensus! Similar results hold for other atomic synchronization operations 18-Sep-18

Summary “Power” of model of computation So far connectivity of protocol complexes dimension below which holes vanish So far defined model one application Next: computing connectivity 18-Sep-18