Lecture 8 Processes and events Local and global states Time

Slides:



Advertisements
Similar presentations
Last Class: Clock Synchronization
Advertisements

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.
Time and Clock Primary standard = rotation of earth De facto primary standard = atomic clock (1 atomic second = 9,192,631,770 orbital transitions of Cesium.
Computer Science 425 Distributed Systems CS 425 / CSE 424 / ECE 428 Fall 2011 August 30, 2011 Lecture 3 Time and Synchronization Reading: Sections
Dr. Kalpakis CMSC 621, Advanced Operating Systems. Logical Clocks and Global State.
Exercise 1: Write out the values of logical clocks p1p1 p1p1 p1p1.
Distributed Systems Spring 2009
Causality & Global States. P1 P2 P Physical Time 4 6 Include(obj1 ) obj1.method() P2 has obj1 Causality violation occurs when order.
Ordering and Consistent Cuts Presented By Biswanath Panda.
CMPT 431 Dr. Alexandra Fedorova Lecture VIII: Time And Global Clocks.
Distributed Systems Fall 2009 Logical time, global states, and debugging.
CPSC 668Set 12: Causality1 CPSC 668 Distributed Algorithms and Systems Fall 2009 Prof. Jennifer Welch.
Ordering and Consistent Cuts Presented by Chi H. Ho.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Logical Time Steve Ko Computer Sciences and Engineering University at Buffalo.
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Clock Synchronization Physical clocks Clock synchronization algorithms –Cristian’s.
Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms CS 249 Project Fall 2005 Wing Wong.
Global Predicate Detection and Event Ordering. Our Problem To compute predicates over the state of a distributed application.
Distributed Systems Foundations Lecture 1. Main Characteristics of Distributed Systems Independent processors, sites, processes Message passing No shared.
Dr. Kalpakis CMSC 621, Advanced Operating Systems. Fall 2003 URL: Logical Clocks and Global State.
Chapter 17 Theoretical Issues in Distributed Systems
Lecture 2-1 CS 425/ECE 428 Distributed Systems Lecture 2 Time & Synchronization Reading: Klara Nahrstedt.
Chapter 5.
CIS 720 Distributed algorithms. “Paint on the forehead” problem Each of you can see other’s forehead but not your own. I announce “some of you have paint.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Logical Time Steve Ko Computer Sciences and Engineering University at Buffalo.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Project Reference Some slides are in courtesy of Dr. Erciyes,
1 Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms Author: Ozalp Babaoglu and Keith Marzullo Distributed Systems: 526.
Logical Clocks n event ordering, happened-before relation (review) n logical clocks conditions n scalar clocks condition implementation limitation n vector.
1 Causal Delivery Advanced Networks PhD. Saúl Pomares Hernández.
Synchronization. Why we need synchronization? It is important that multiple processes do not access shared resources simultaneously. Synchronization in.
Distributed Systems Fall 2010 Logical time, global states, and debugging.
Lecture 9: Time and clocks (Chap 11) Haibin Zhu, PhD. Assistant Professor Department of Computer Science Nipissing University © 2002.
CIS825 Lecture 2. Model Processors Communication medium.
Event Ordering. CS 5204 – Operating Systems2 Time and Ordering The two critical differences between centralized and distributed systems are: absence of.
Distributed systems. distributed systems and protocols distributed systems: use components located at networked computers use message-passing to coordinate.
Lecture 4-1 Computer Science 425 Distributed Systems (Fall2009) Lecture 4 Chandy-Lamport Snapshot Algorithm and Multicast Communication Reading: Section.
COMP 655: Distributed/Operating Systems Summer 2011 Dr. Chunbo Chu Week 6: Synchronyzation 3/5/20161 Distributed Systems - COMP 655.
Logical Clocks event ordering, happened-before relation (review) logical clocks conditions scalar clocks  condition  implementation  limitation vector.
Distributed Systems Lecture 6 Global states and snapshots 1.
Distributed Web Systems Time and Global State Lecturer Department University.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Global State Recording
Time and Clock Primary standard = rotation of earth
Time and Global States Ali Fanian Isfahan University of Technology
Vector Clocks and Distributed Snapshots
CSE 486/586 Distributed Systems Global States
Theoretical Foundations
CSE 486/586 Distributed Systems Logical Time
Distributed Snapshots & Termination detection
Overview of Ordering and Logical Time
Time and Clock.
湖南大学-信息科学与工程学院-计算机与科学系
COT 5611 Operating Systems Design Principles Spring 2012
Global State Recording
Time and Clock.
Dan C. Marinescu Office: HEC 439 B. Office hours: M, Wd 3 – 4:30 PM.
Logical Clocks and Casual Ordering
Outline Theoretical Foundations - continued Lab 1
Time And Global Clocks CMPT 431.
Event Ordering.
Non-Distributed Excercises
Outline Theoretical Foundations
CS 425 / ECE 428  2013, I. Gupta, K. Nahrtstedt, S. Mitra, N. Vaidya, M. T. Harandi, J. Hou.
Chapter 5 (through section 5.4)
Basics of Distributed Systems
Outline Theoretical Foundations - continued
CSE 486/586 Distributed Systems Global States
Distributed algorithms
CIS825 Lecture 5 1.
CSE 486/586 Distributed Systems Logical Time
COT 5611 Operating Systems Design Principles Spring 2014
Presentation transcript:

Lecture 8 Processes and events Local and global states Time Causality and concurrent events Logical clocks Message delivery to processes Synchronous systems Asynchronous systems Monitoring models

Student presentation next week Up to 5 minute presentations followed by discussions. All presentations in Power Point Format: Title of project/research Motivation (why is the problem important) Background (who did what) Specific objectives (what do you plan to do) Literature Each student will provide feedback about each presentation (grades - A, B, C, F- and comments).

Processes and Events Event: change in the state of a process. Local history Distributed systems: multiple processes Local events Communication events Space-time diagrams

Space-time diagrams

Local and global states The global state of distributed computation with n processes is an n-dimensional vector. Global state (i,,j,k) of a computation with 3 processes means: p1 has just experienced event i p2 has just experienced event j p3 has just experienced event k

Time We need to measure time intervals We need also the concept of global time. Timestamps

Causality Binary cause-effect relationship between events: Local events: causality can be derived from local history Communication events: a receive(m) is causally related to the send(m) Transitivity. Concurrent events: events in the global history that are not related by causality.

Logical clocks LC(e) – the local variable associated with event e. Each process timestamps a message sent m: TS(m) = LC(send(m)) Rules to update the local clock: LC(e) = LC + 1  local event or send(m) LC(e) = max (LC, TS(m)+1) e=receive(m) Logical clocks do not allow global ordering of events

Message delivery to processes Delivery rules – how channels deliver messages to processes FIFO delivery Causal delivery  extension of causal delivery when a process receives messages from multiple sources. Allows a process to reason about the entire system using only local information.

Violation of causal delivery

Synchronous systems Delay is bounded. Consensus is possible Examples Collision-free multiple access systems Token rings Multiple access systems based upon collision resolution protocols FCFS algorithm of Gallagher Stack algorithm

Asynchronous systems No upper bounds on processing or communication delays. Any algorithm for an asynchronous system can be used for a synchronous one but the opposite is not true. RTT – round trip time for TCP.

Monitoring models Monitor Run  total ordering of all events in the global history consistent with the local history of each process. Cut. The frontier of a cut. Consistent cut

Consistent and inconsistent cuts