Chandy-Lamport Example

Slides:



Advertisements
Similar presentations
Distributed Snapshots: Non-blocking checkpoint coordination protocol Next: Uncoordinated Chkpnt.
Advertisements

Distributed Snapshots: Determining Global States of Distributed Systems - K. Mani Chandy and Leslie Lamport.
Global States.
Distributed Snapshots: Determining Global States of Distributed Systems Joshua Eberhardt Research Paper: Kanianthra Mani Chandy and Leslie Lamport.
From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012 Slides for Chapter 14: Time and.
Global States and Checkpoints
Scalable Algorithms for Global Snapshots in Distributed Systems
Lecture 8: Asynchronous Network Algorithms
SES Algorithm SES: Schiper-Eggli-Sandoz Algorithm. No need for broadcast messages. Each process maintains a vector V_P of size N - 1, N the number of processes.
Uncoordinated Checkpointing The Global State Recording Algorithm.
Uncoordinated Checkpointing The Global State Recording Algorithm Cristian Solano.
Time and Global States Part 3 ECEN5053 Software Engineering of Distributed Systems University of Colorado, Boulder.
Synchronization Chapter clock synchronization * 5.2 logical clocks * 5.3 global state * 5.4 election algorithm * 5.5 mutual exclusion * 5.6 distributed.
CS542 Topics in Distributed Systems Diganta Goswami.
Distributed Computing 5. Snapshot Shmuel Zaks ©
Distributed Systems Dinesh Bhat - Advanced Systems (Some slides from 2009 class) CS 6410 – Fall 2010 Time Clocks and Ordering of events Distributed Snapshots.
S NAPSHOT A LGORITHM. W HAT IS A S NAPSHOT - INTUITION Given a system of processors and communication channels between them, we want each processor to.
CS 582 / CMPE 481 Distributed Systems
Causality & Global States. P1 P2 P Physical Time 4 6 Include(obj1 ) obj1.method() P2 has obj1 Causality violation occurs when order.
Distributed Systems Fall 2009 Logical time, global states, and debugging.
Slides for Chapter 10: Time and Global State
Ordering and Consistent Cuts
S A B D C T = 0 S gets message from above and sends messages to A, C and D S.
EEC 688/788 Secure and Dependable Computing Lecture 14 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Ordering and Consistent Cuts Presented by Chi H. Ho.
Cloud Computing Concepts
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Clock Synchronization Physical clocks Clock synchronization algorithms –Cristian’s.
1 Distributed Systems CS 425 / CSE 424 / ECE 428 Global Snapshots Reading: Sections 11.5 (4 th ed), 14.5 (5 th ed)  2010, I. Gupta, K. Nahrtstedt, S.
Distributed Computing 5. Snapshot Shmuel Zaks ©
UBI529 Distributed Algorithms
Chapter 9 Global Snapshot. Global state  A set of local states that are concurrent with each other Concurrent states: no two states have a happened before.
Lecture 6-1 Computer Science 425 Distributed Systems CS 425 / ECE 428 Fall 2013 Indranil Gupta (Indy) September 12, 2013 Lecture 6 Global Snapshots Reading:
Distributed Snapshot. Think about these -- How many messages are in transit on the internet? --What is the global state of a distributed system of N processes?
Distributed Systems Fall 2010 Logical time, global states, and debugging.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
Distributed Snapshot. One-dollar bank Let a $1 coin circulate in a network of a million banks. How can someone count the total $ in circulation? If not.
Hwajung Lee. -- How many messages are in transit on the internet? --What is the global state of a distributed system of N processes? How do we compute.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
CSE 486/586 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
Hwajung Lee. Some applications - computing network topology - termination detection - deadlock detection Chandy Lamport algorithm does a partial job.
1 Chapter 11 Global Properties (Distributed Termination)
Hwajung Lee. -- How many messages are in transit on the internet? --What is the global state of a distributed system of N processes? How do we compute.
Ordering of Events in Distributed Systems UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau.
Global state and snapshot
Consistent cut A cut is a set of events.
Global state and snapshot
Lecture 3: State, Detection
Vector Clocks and Distributed Snapshots
CSE 486/586 Distributed Systems Global States
Theoretical Foundations
Lecture 9: Asynchronous Network Algorithms
ITEC452 Distributed Computing Lecture 9 Global State Collection
Distributed Snapshot.
Global State and Gossip
EECS 498 Introduction to Distributed Systems Fall 2017
Distributed Snapshot.
湖南大学-信息科学与工程学院-计算机与科学系
Global state collection
Distributed Snapshot Distributed Systems.
Uncoordinated Checkpointing
Slides for Chapter 11: Time and Global State
ITEC452 Distributed Computing Lecture 8 Distributed Snapshot
Distributed Snapshot.
CSE 486/586 Distributed Systems Global States
Jenhui Chen Office number:
CIS825 Lecture 5 1.
Consistent cut If this is not true, then the cut is inconsistent
Slides for Chapter 14: Time and Global States
Distributed Snapshot.
Distributed Snapshots
Presentation transcript:

Chandy-Lamport Example Time P1 P3 A B C D E E F G H I J Message Instruction or Step

P1 is Initiator: Record local state S1, Send out markers Turn on recording on channels C21, C31 A B C D E P2 Time P1 P3 E F G H I J

S1, Record C21, C31 A B C D E P2 Time P1 P3 E F G H I J First Marker! Record own state as S3 Mark C13 state as empty Turn on recording on other incoming C23 Send out Markers

S1, Record C21, C31 A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23

Duplicate Marker! State of channel C31 = < > S1, Record C21, C31 A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23

C31 = < > S1, Record C21, C31 A B C D E P1 Time E F G P2 H I J First Marker! Record own state as S2 Mark C32 state as empty Turn on recording on C12 Send out Markers S3 C13 = < > Record C23

S1, Record C21, C31 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23 S2 C32 = < > Record C12

S1, Record C21, C31 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23 S2 C32 = < > Record C12 Duplicate! C12 = < >

Duplicate! C21 = <message GD > S1, Record C21, C31 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23 S2 C32 = < > Record C12 C12 = < >

C21 = <message GD > S1, Record C21, C31 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > Record C23 S2 C32 = < > Record C12 C12 = < > Duplicate! C23 = < >

Algorithm has terminated C21 = <message GD > S1 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S3 C13 = < > S2 C32 = < > C12 = < > C23 = < >

Collect the global snapshot pieces C21 = <message GD > S1 C31 = < > A B C D E P2 Time P1 P3 E F G H I J S2 C32 = < > C12 = < > S3 C13 = < > C23 = < >