MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM

Size: px
Start display at page:

Download "MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM"

Transcription

1 MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM Joseph Spring School of Computing, University of Hertfordshire, College Lane, Hatfield. AL10 9AB UK herts.ac.uk 1. Distributed Systems 1.1. What is a Distibuted System? - Definitions. The Distributed Systems handout for the slides used in the lecture present various definitions that are found in the literature. Examples are taken from Coulouris, Dollimore and Kindberg (CDK), Tanenbaum and van Steen (TvS), and Silberschatz, Galvin and Gagne (SGG), [1, 3, 6]. Compare these to each other and the definition given in Leslie Lamports paper Time, Clocks and the Ordering of Events in a Distributed System Why build a Distibuted System? - Purpose. The remainder of the Distributed Systems handout presents a case (from SGG) for building a distributed system under the headings of Resource Sharing, Computational Speedup, Reliability and Communication Examples. Examples of 6 Distributed Systems are given as a handout that you should read. These are taken from CDK (first three examples), CDK (Second Edition for the ATM example) and TvS (for the last two examples) Characteristics/Challenges/Goals/Architectures/Approaches to Design in a Distibuted System. The next two sets of handouts for slides will focus upon the presentation given in CDK looking at the Characteristics of a Distributed System and the Challenges to be met in developing Distributed Systems. Question 1 Compare and contrast the three(/four) definitions discussed above. Question 2 What consequences follow from the CDK definition? Question 3 Give one example for each of the reasons given in [6] for building a distributed system. 2. The Modeling Process The modelling process is a procedure used to help us to gain a better understanding of concepts that we may be interested in. There are various presentations that one meets in the literature, the 3-stage model, the 4-stage model, the 6-stage model... and so forth. Each of these modelling procedures may be viewed as the same procedure. We are interested in: to what extent may we use the modelling process with distributed systems? what evidence exists for the use of modelling with distributed systems? how useful is such an approach with distributed systems? We note at this point that models in general are NOT correct. They do not in general tell the whole story. They are, however often found to be useful, VERY useful. 1

2 2 MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM 2.1. The 6-Stage Modelling Process. Stage 1 What is the Problem? State the problem in a clear and unambiguous way. Stage 2 What elements have a direct/indirect bearing upon the Problem? List as many elements as possible having even remote influence upon the problem. You can always ignore possible influences until later, but it isn t alwaays so easy to come up with influences as you move through various versions of the model being constructed. Stage 3 Form a reduced list of elements to act as Properties that the model must satisfy From the very large list compiled at stage 2, extract what you consider to be the most important ones. Initially this can be a very small list, to help build a first simple working model. Stage 4 Model the Problem Here we extract the essential abstract features of the problem. Once established we move to the next stage. Stage 5 Solve the Problem Having obtained an abstract version of our problem we attempt to solve the problem Stage 6 Compare with Reality Once a solution has been obtained we consider what the model predicts for a given set of input data and compare these to those observed in the real world. If what is observed compares favourably with real world observations then we may accept the model (option A in Fig 1.). Any variations that exist between the model and reality being accepted as acceptable errors. If the model does not compare favourably with reality then we return to Stage 2 once more, reconsider the reduced set of assumptions that we used in the previous model and once a new set of assumptions are agreed run through the modelling process again (option B in Fig 1.). Figure Stage Modelling Process

3 MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM 3 3. The Lamport Models for Ordering Events in a Distributed System 3.1. The Problem. We commence with the problem of ordering and synchronising events that occur within a distributed system [2]. For an example see figure 11.5 Events occurring at three processes on pge 445 [1]. To quote from Lamports paper, in a distribited system it is sometimes impossible to say that one of two events happened first and in response to this Lamport presents various models to assist (with varying degrees of success) in addressing this problem. We consider three of these models: the Partially Ordered Model. The Totally Ordered Model and the Anomolous Model Lamports Partially Ordered Model Assumptions. Various assumptions are made [2] for this model: A distributed system consists of a collection of distinct processes spatially seperated. Note in this asumption that Lamport states that many of the observations made apply to a single, for example multiprocessing computer. Indeed a single compuer can be viewed as a distributed system Processes communicate with each other by exchanging messages. A system is distributed if the message transmission delay is NOT negligable in comparison with the time between events in a single proces. Each process consists of a sequence of events (including sending amessage, receiving a message). Events form a sequence. A simple process is a set of events with an a priori total ordering The Happened Before Relation. This is the smallest relation such that: 1. If a, b are two vents in the same process and event a occurs before event b then a b 2. If a is the sending of a message by one process and b is the receiving of the same message by a different process then a b 3. If a b and b c then a c (Transitive Rule) This relation produces another assumption that we acknowledge, namely that for any event a, a a Two distinct events a and b are said to be concurrent if a b and b a. Question 1 Is the happened before relation a partial order on the set of events? Justify. Question 2 Does there exist an example of events satisfying the transistive rule in Fig. 1 of the paper? What of concurrent events? Question 3 To what extent do you feel this model follows a modeling process? Importance. The partial ordering is uniquely determined by the system of events. Again, in a distribited system it is sometimes impossible to say that one of two events happened first....problems often arise because people are not fully aware of this fact and its implications Limitation. The happened before relation forms an irreflexive partial ordering for the st of all events in a system. In order to distinguish between events, to order each and every event, a totally ordered model is required Role. This first model acts as a basis for (a second model as we go around the modelling process) an extension to a consistent total ordering of all events that can be implemented in a distributed system Lamports Totally Ordered Model. This model involves Logical clocks, A Clock Condition, Implementation Rules and a Totally Ordered Relation =.

4 4 MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM Assumptions. These are the same as for the Partially Ordered Model: A distributed system consists of a collection of distinct processes spatially seperated. Note in this asumption that Lamport states that many of the observations made apply to a single, for example multiprocessing computer. Indeed a single compuer can be viewed as a distributed system Processes communicate with each other by exchanging messages. A system is distributed if the message transmission delay is NOT negligable in comparison with the time between events in a single proces. Each process consists of a sequence of events (including sending amessage, receiving a message). Events form a sequence. A simple process is a set of events with an a priori total ordering Logical Clocks. We define a clock C i for each process P i as a function assigning a number C i <a> to an event a in process P i. An entire system of clocks results for different processes P 1,P 2,P 3,... which is represented by a global clock C, a function such that to any event b in process P j the number C<b>= C j <b>is assigned. These clocks are logical NOT physical, taking for example integer values according to their position within the sequence of events to which they belong Clock Condition. For any events a and b, a b = C<a><C<b>. This condition is satisfied if: C1: If a and b are events in a process P i and a b then C i <a><c i <b> C2: If a is the sending of a message by process P i and b is the receiving of the same message by process P j then C i <a><c j <b> Implementation Rules. The implementation rules are used to ensure that the system of clocks introduced processes satisfy the clock condition. IR1: (This ensures that the clock condition C1 is satisfied) Each process P i increments the clock C i between any two successive events.. IR2: (This ensures that the clock condition C1 is satisfied) a) If event a is the sending of a message m by a process P i, then message m contains a timestamp T m = C i <a> b) Upon process P j receiving a message m it sets its clock C j greater than or equal to its current value AND greater than T m. IR1 and IR2 are said to guarantee a correct system of clocks The Relation =. Let a be an event in process P i and b an event in process P j.thena = b if and only if: a) C i <a><c j <b> or b) C i <a>= C j <b>and P i P j where denotes an arbitrary total ordering of the processes. This means that all events, may be ordered. It doesn t mean that the order is the same as that in which they actually occurred but does allow us to apply a total ordering of the events within the system under observation Importance. The model does achieve a total odering for events within a distributed system. If a b then a = b and so the relation = is an extension (or completion) of the happened before relation to the system under consideration Limitation. The relation = depends uponthe system of clocks C i and is therefore not unique. Different choices of lock lead to different implementations of the relation = Role. The totally ordered model may usefully be implemented in a distributed system. See, for example, the Mutual Exclusion Problem described in Lamports Paper [2].

5 MODELING TIME AND EVENTS IN A DISTRIBUTED SYSTEM Lamports Anomolous Behaviour Model. Anomolous behaviour is described in Lamports behaviour as the result of invoking messages external to the system under consideration. Lamport gives the example of using a telephone to go outside of the system thus allowing the possibility for lower timestamps. Two methods are outlined for this model as an extension to the previous Totally ordered model. The first is to explicitly introduce into the system the necessary informationaboutthe ordering inclding external events such as the telephone. So a timestamp T b would be issued to the receiver of the telphone call which is higher than a timestamp T a held by the instigator of the telephone call. The second approach is to introduce the Strong Clock Condition and Physical Clocks. 4. Alternative Approaches Various alternative systems exist to address the synchronisation problem discussed above. We direct the interested reader to chapter 11 [1] where discussions are held regarding Coordinated Universal Time, Cristians Method, The Berkely Algorithm and The Network Time Protocol. 5. Time, Events and the Quantum Model One might consider the synchronisation problem to be an old problem no longer of great concern, particularly as Lamports paper was published in However, the use of, for example, GPS with Einsteins relativistic and gravitation model regarding properties of space and time, together with the ever present clock drift property experienced with distributed ystems ensure synchronisation is a problem that will be with us for some time. Recent papers on the problem include [7] which employs the use of entanglement to address the synchronisation problem. Entanglement is a feature believed to be solely a quantum property [4, 5]. References [1] G. Couloris J. Dollimore, T. Kindberg. Distributed Systems, Concepts and Design. Addison Wesley, 4th Ed., [2] L. Lamport. Time, clocks, and the ordering of events in a distributed system. Communications of the ACM, 21, No. 7: , [3] A. Tanenbaum M. van Steen. Distributed Systems: Principles and Paradigms. Prentice Hall, [4] N. David Mermin. Quantum Computer Science: An Introduction. Cambridge University Press, 1st edition, [5] Michael A. Nielsen and Isaac J. Chuang. Quantum Computation and Quantum Information. CUP, Cambridge, UK, 10th anniversary edition, [6] A. Silberschatz P. B. Galvin, G. Gagne. Operating Systems Concepts. John Wiley & Sons Inc., 6th Ed., New York, [7] T. B. Bahder W. M. Golding. Clock synchronisation based on second order quantum coherence of entangled states. Seventh International Conference on Quantum Communication, Measurement and Computing, AIP Conference Proceedings, pages , 2004.

Absence of Global Clock

Absence of Global Clock Absence of Global Clock Problem: synchronizing the activities of different part of the system (e.g. process scheduling) What about using a single shared clock? two different processes can see the clock

More information

Slides for Chapter 14: Time and Global States

Slides for Chapter 14: Time and Global States Slides for Chapter 14: Time and Global States From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, Addison-Wesley 2012 Overview of Chapter Introduction Clocks,

More information

Distributed systems Lecture 4: Clock synchronisation; logical clocks. Dr Robert N. M. Watson

Distributed systems Lecture 4: Clock synchronisation; logical clocks. Dr Robert N. M. Watson Distributed systems Lecture 4: Clock synchronisation; logical clocks Dr Robert N. M. Watson 1 Last time Started to look at time in distributed systems Coordinating actions between processes Physical clocks

More information

Clock Synchronization

Clock Synchronization Today: Canonical Problems in Distributed Systems Time ordering and clock synchronization Leader election Mutual exclusion Distributed transactions Deadlock detection Lecture 11, page 7 Clock Synchronization

More information

CS 347 Parallel and Distributed Data Processing

CS 347 Parallel and Distributed Data Processing CS 347 Parallel and Distributed Data Processing Spring 2016 & Clocks, Clocks, and the Ordering of Events in a Distributed System. L. Lamport, Communications of the ACM, 1978 Notes 15: & Clocks CS 347 Notes

More information

416 Distributed Systems. Time Synchronization (Part 2: Lamport and vector clocks) Jan 27, 2017

416 Distributed Systems. Time Synchronization (Part 2: Lamport and vector clocks) Jan 27, 2017 416 Distributed Systems Time Synchronization (Part 2: Lamport and vector clocks) Jan 27, 2017 1 Important Lessons (last lecture) Clocks on different systems will always behave differently Skew and drift

More information

CptS 464/564 Fall Prof. Dave Bakken. Cpt. S 464/564 Lecture January 26, 2014

CptS 464/564 Fall Prof. Dave Bakken. Cpt. S 464/564 Lecture January 26, 2014 Overview of Ordering and Logical Time Prof. Dave Bakken Cpt. S 464/564 Lecture January 26, 2014 Context This material is NOT in CDKB5 textbook Rather, from second text by Verissimo and Rodrigues, chapters

More information

Distributed Systems. Time, Clocks, and Ordering of Events

Distributed Systems. Time, Clocks, and Ordering of Events Distributed Systems Time, Clocks, and Ordering of Events Björn Franke University of Edinburgh 2016/2017 Today Last lecture: Basic Algorithms Today: Time, clocks, NTP Ref: CDK Causality, ordering, logical

More information

Ordering and Consistent Cuts Nicole Caruso

Ordering and Consistent Cuts Nicole Caruso Ordering and Consistent Cuts Nicole Caruso Cornell University Dept. of Computer Science Time, Clocks, and the Ordering of Events in a Distributed System Leslie Lamport Stanford Research Institute About

More information

Figure 10.1 Skew between computer clocks in a distributed system

Figure 10.1 Skew between computer clocks in a distributed system Figure 10.1 Skew between computer clocks in a distributed system Network Instructor s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 3 Pearson Education 2001

More information

Time. Today. l Physical clocks l Logical clocks

Time. Today. l Physical clocks l Logical clocks Time Today l Physical clocks l Logical clocks Events, process states and clocks " A distributed system a collection P of N singlethreaded processes without shared memory Each process p i has a state s

More information

Time. To do. q Physical clocks q Logical clocks

Time. To do. q Physical clocks q Logical clocks Time To do q Physical clocks q Logical clocks Events, process states and clocks A distributed system A collection P of N single-threaded processes (p i, i = 1,, N) without shared memory The processes in

More information

Logical Time. 1. Introduction 2. Clock and Events 3. Logical (Lamport) Clocks 4. Vector Clocks 5. Efficient Implementation

Logical Time. 1. Introduction 2. Clock and Events 3. Logical (Lamport) Clocks 4. Vector Clocks 5. Efficient Implementation Logical Time Nicola Dragoni Embedded Systems Engineering DTU Compute 1. Introduction 2. Clock and Events 3. Logical (Lamport) Clocks 4. Vector Clocks 5. Efficient Implementation 2013 ACM Turing Award:

More information

Distributed Computing. Synchronization. Dr. Yingwu Zhu

Distributed Computing. Synchronization. Dr. Yingwu Zhu Distributed Computing Synchronization Dr. Yingwu Zhu Topics to Discuss Physical Clocks Logical Clocks: Lamport Clocks Classic paper: Time, Clocks, and the Ordering of Events in a Distributed System Lamport

More information

Distributed Systems. 06. Logical clocks. Paul Krzyzanowski. Rutgers University. Fall 2017

Distributed Systems. 06. Logical clocks. Paul Krzyzanowski. Rutgers University. Fall 2017 Distributed Systems 06. Logical clocks Paul Krzyzanowski Rutgers University Fall 2017 2014-2017 Paul Krzyzanowski 1 Logical clocks Assign sequence numbers to messages All cooperating processes can agree

More information

CS 425 / ECE 428 Distributed Systems Fall Indranil Gupta (Indy) Oct. 5, 2017 Lecture 12: Time and Ordering All slides IG

CS 425 / ECE 428 Distributed Systems Fall Indranil Gupta (Indy) Oct. 5, 2017 Lecture 12: Time and Ordering All slides IG CS 425 / ECE 428 Distributed Systems Fall 2017 Indranil Gupta (Indy) Oct. 5, 2017 Lecture 12: Time and Ordering All slides IG Why Synchronization? You want to catch a bus at 6.05 pm, but your watch is

More information

DISTRIBUTED COMPUTER SYSTEMS

DISTRIBUTED COMPUTER SYSTEMS DISTRIBUTED COMPUTER SYSTEMS SYNCHRONIZATION Dr. Jack Lange Computer Science Department University of Pittsburgh Fall 2015 Topics Clock Synchronization Physical Clocks Clock Synchronization Algorithms

More information

Distributed Systems Principles and Paradigms. Chapter 06: Synchronization

Distributed Systems Principles and Paradigms. Chapter 06: Synchronization Distributed Systems Principles and Paradigms Maarten van Steen VU Amsterdam, Dept. Computer Science Room R4.20, steen@cs.vu.nl Chapter 06: Synchronization Version: November 16, 2009 2 / 39 Contents Chapter

More information

Time. Lakshmi Ganesh. (slides borrowed from Maya Haridasan, Michael George)

Time. Lakshmi Ganesh. (slides borrowed from Maya Haridasan, Michael George) Time Lakshmi Ganesh (slides borrowed from Maya Haridasan, Michael George) The Problem Given a collection of processes that can... only communicate with significant latency only measure time intervals approximately

More information

Recap. CS514: Intermediate Course in Operating Systems. What time is it? This week. Reminder: Lamport s approach. But what does time mean?

Recap. CS514: Intermediate Course in Operating Systems. What time is it? This week. Reminder: Lamport s approach. But what does time mean? CS514: Intermediate Course in Operating Systems Professor Ken Birman Vivek Vishnumurthy: TA Recap We ve started a process of isolating questions that arise in big systems Tease out an abstract issue Treat

More information

Distributed Systems Principles and Paradigms

Distributed Systems Principles and Paradigms Distributed Systems Principles and Paradigms Chapter 6 (version April 7, 28) Maarten van Steen Vrije Universiteit Amsterdam, Faculty of Science Dept. Mathematics and Computer Science Room R4.2. Tel: (2)

More information

Agreement. Today. l Coordination and agreement in group communication. l Consensus

Agreement. Today. l Coordination and agreement in group communication. l Consensus Agreement Today l Coordination and agreement in group communication l Consensus Events and process states " A distributed system a collection P of N singlethreaded processes w/o shared memory Each process

More information

Time, Clocks, and the Ordering of Events in a Distributed System

Time, Clocks, and the Ordering of Events in a Distributed System Time, Clocks, and the Ordering of Events in a Distributed System Motivating example: a distributed compilation service FTP server storing source files, object files, executable file stored files have timestamps,

More information

Exclusive Access to Resources in Distributed Shared Memory Architecture

Exclusive Access to Resources in Distributed Shared Memory Architecture Exclusive Access to Resources in Distributed Shared Memory Architecture Ludwik Czaja 1,2 1 Institute of Informatics, The University of Warsaw 2 University of Economics and Computer Science Vistula in Warsaw

More information

Quantum Computing: Foundations to Frontier Fall Lecture 3

Quantum Computing: Foundations to Frontier Fall Lecture 3 Quantum Computing: Foundations to Frontier Fall 018 Lecturer: Henry Yuen Lecture 3 Scribes: Seyed Sajjad Nezhadi, Angad Kalra Nora Hahn, David Wandler 1 Overview In Lecture 3, we started off talking about

More information

CS505: Distributed Systems

CS505: Distributed Systems Department of Computer Science CS505: Distributed Systems Lecture 5: Time in Distributed Systems Overview Time and Synchronization Logical Clocks Vector Clocks Distributed Systems Asynchronous systems:

More information

Simplifying Section 13 By Joseph Pang

Simplifying Section 13 By Joseph Pang 1 Simplifying Section 13 By Joseph Pang Motivation: This is a study week, but actually it is a March Break taken place in February. Everyone always goes out, and have no time to do their BIG B43 Assignment

More information

Lecture 36: Other Non-computable Problems

Lecture 36: Other Non-computable Problems Lecture 36: Other Non-computable Problems Aims: To show how to prove that other problems are non-computable, which involves reductions from, e.g., the Halting Problem; and To point out how few problems

More information

Time in Distributed Systems: Clocks and Ordering of Events

Time in Distributed Systems: Clocks and Ordering of Events Time in Distributed Systems: Clocks and Ordering of Events Clocks in Distributed Systems Needed to Order two or more events happening at same or different nodes (Ex: Consistent ordering of updates at different

More information

Crashed router. Instructor s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 3 Pearson Education

Crashed router. Instructor s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 3 Pearson Education Figure 11.1 A network artition Crashed router Instructor s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concets and Design Edn. 3 Pearson Education 2001 1 Figure 11.2 Server managing

More information

Notes de lecture 357 PROCESS PHYSICS: FROM INFORMATION THEORY TO QUANTUM SPACE AND MATTER

Notes de lecture 357 PROCESS PHYSICS: FROM INFORMATION THEORY TO QUANTUM SPACE AND MATTER Notes de lecture 357 PROCESS PHYSICS: FROM INFORMATION THEORY TO QUANTUM SPACE AND MATTER Process Physics: From Information Theory to Quantum Space and Matter, Reginald T. Cahill, ; in book series Contemporary

More information

Determining Consistent States of Distributed Objects Participating in a Remote Method Call

Determining Consistent States of Distributed Objects Participating in a Remote Method Call Determining Consistent States of Distributed Objects Participating in a Remote Method Call Magdalena S lawińska and Bogdan Wiszniewski Faculty of Electronics, Telecommunications and Informatics Gdańsk

More information

Entanglement and Quantum Teleportation

Entanglement and Quantum Teleportation Entanglement and Quantum Teleportation Stephen Bartlett Centre for Advanced Computing Algorithms and Cryptography Australian Centre of Excellence in Quantum Computer Technology Macquarie University, Sydney,

More information

Our Problem. Model. Clock Synchronization. Global Predicate Detection and Event Ordering

Our Problem. Model. Clock Synchronization. Global Predicate Detection and Event Ordering Our Problem Global Predicate Detection and Event Ordering To compute predicates over the state of a distributed application Model Clock Synchronization Message passing No failures Two possible timing assumptions:

More information

Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms. CS 249 Project Fall 2005 Wing Wong

Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms. CS 249 Project Fall 2005 Wing Wong Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms CS 249 Project Fall 2005 Wing Wong Outline Introduction Asynchronous distributed systems, distributed computations,

More information

6.2 Important Theorems

6.2 Important Theorems 6.2. IMPORTANT THEOREMS 223 6.2 Important Theorems 6.2.1 Local Extrema and Fermat s Theorem Definition 6.2.1 (local extrema) Let f : I R with c I. 1. f has a local maximum at c if there is a neighborhood

More information

Clocks in Asynchronous Systems

Clocks in Asynchronous Systems Clocks in Asynchronous Systems The Internet Network Time Protocol (NTP) 8 Goals provide the ability to externally synchronize clients across internet to UTC provide reliable service tolerating lengthy

More information

Cuts. Cuts. Consistent cuts and consistent global states. Global states and cuts. A cut C is a subset of the global history of H

Cuts. Cuts. Consistent cuts and consistent global states. Global states and cuts. A cut C is a subset of the global history of H Cuts Cuts A cut C is a subset of the global history of H C = h c 1 1 hc 2 2...hc n n A cut C is a subset of the global history of H The frontier of C is the set of events e c 1 1,ec 2 2,...ec n n C = h

More information

TDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II

TDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II TDDB68 Concurrent programming and operating systems Lecture: CPU Scheduling II Mikael Asplund, Senior Lecturer Real-time Systems Laboratory Department of Computer and Information Science Copyright Notice:

More information

SUPERDENSE CODING AND QUANTUM TELEPORTATION

SUPERDENSE CODING AND QUANTUM TELEPORTATION SUPERDENSE CODING AND QUANTUM TELEPORTATION YAQIAO LI This note tries to rephrase mathematically superdense coding and quantum teleportation explained in [] Section.3 and.3.7, respectively (as if I understood

More information

Sequential Logic (3.1 and is a long difficult section you really should read!)

Sequential Logic (3.1 and is a long difficult section you really should read!) EECS 270, Fall 2014, Lecture 6 Page 1 of 8 Sequential Logic (3.1 and 3.2. 3.2 is a long difficult section you really should read!) One thing we have carefully avoided so far is feedback all of our signals

More information

A subtle problem. An obvious problem. An obvious problem. An obvious problem. No!

A subtle problem. An obvious problem. An obvious problem. An obvious problem. No! A subtle problem An obvious problem when LC = t do S doesn t make sense for Lamport clocks! there is no guarantee that LC will ever be S is anyway executed after LC = t Fixes: if e is internal/send and

More information

College Physics B - PHY2054C. Special & General Relativity 11/12/2014. My Office Hours: Tuesday 10:00 AM - Noon 206 Keen Building.

College Physics B - PHY2054C. Special & General Relativity 11/12/2014. My Office Hours: Tuesday 10:00 AM - Noon 206 Keen Building. Special College - PHY2054C Special & 11/12/2014 My Office Hours: Tuesday 10:00 AM - Noon 206 Keen Building Outline Special 1 Special 2 3 4 Special Galilean and Light Galilean and electromagnetism do predict

More information

EPR Paradox Solved by Special Theory of Relativity

EPR Paradox Solved by Special Theory of Relativity EPR Paradox Solved by Special Theory of Relativity Justin Lee June 20 th, 2013 Abstract This paper uses the special theory of relativity (SR) to introduce a novel solution to Einstein- Podolsky-Rosen (EPR)

More information

Distributed Systems 8L for Part IB

Distributed Systems 8L for Part IB Distributed Systems 8L for Part IB Handout 2 Dr. Steven Hand 1 Clocks Distributed systems need to be able to: order events produced by concurrent processes; synchronize senders and receivers of messages;

More information

Causality & Concurrency. Time-Stamping Systems. Plausibility. Example TSS: Lamport Clocks. Example TSS: Vector Clocks

Causality & Concurrency. Time-Stamping Systems. Plausibility. Example TSS: Lamport Clocks. Example TSS: Vector Clocks Plausible Clocks with Bounded Inaccuracy Causality & Concurrency a b exists a path from a to b Brad Moore, Paul Sivilotti Computer Science & Engineering The Ohio State University paolo@cse.ohio-state.edu

More information

On the Applicability of an Interval Time Structure for Protocol Verification

On the Applicability of an Interval Time Structure for Protocol Verification On the Applicability of an Interval Time Structure for Protocol Verification Jerzy BRZZIŃSKI, Michał SAJKOWSKI Institute of Computing Science, Poznań University of Technology Piotrowo 3a, 60-965 Poznań,

More information

Distributed Algorithms (CAS 769) Dr. Borzoo Bonakdarpour

Distributed Algorithms (CAS 769) Dr. Borzoo Bonakdarpour Distributed Algorithms (CAS 769) Week 1: Introduction, Logical clocks, Snapshots Dr. Borzoo Bonakdarpour Department of Computing and Software McMaster University Dr. Borzoo Bonakdarpour Distributed Algorithms

More information

Lecture 2 Anaximander, Anaximenes, Pythagoras, Philolaus

Lecture 2 Anaximander, Anaximenes, Pythagoras, Philolaus Lecture 2 Anaximander, Anaximenes, Pythagoras, Philolaus Patrick Maher Scientific Thought I Fall 2009 Anaximander From Miletus. Said to be a student of Thales. 64 years old in 547/6 BC. Anaximander s theory

More information

SEVENTH EDITION and EXPANDED SEVENTH EDITION

SEVENTH EDITION and EXPANDED SEVENTH EDITION SEVENTH EDITION and EXPANDED SEVENTH EDITION Slide 10-1 Chapter 10 Mathematical Systems 10.1 Groups Definitions A mathematical system consists of a set of elements and at least one binary operation. A

More information

Causality and physical time

Causality and physical time Logical Time Causality and physical time Causality is fundamental to the design and analysis of parallel and distributed computing and OS. Distributed algorithms design Knowledge about the progress Concurrency

More information

Early consensus in an asynchronous system with a weak failure detector*

Early consensus in an asynchronous system with a weak failure detector* Distrib. Comput. (1997) 10: 149 157 Early consensus in an asynchronous system with a weak failure detector* André Schiper Ecole Polytechnique Fe dérale, De partement d Informatique, CH-1015 Lausanne, Switzerland

More information

Quantum Cryptography. Areas for Discussion. Quantum Cryptography. Photons. Photons. Photons. MSc Distributed Systems and Security

Quantum Cryptography. Areas for Discussion. Quantum Cryptography. Photons. Photons. Photons. MSc Distributed Systems and Security Areas for Discussion Joseph Spring Department of Computer Science MSc Distributed Systems and Security Introduction Photons Quantum Key Distribution Protocols BB84 A 4 state QKD Protocol B9 A state QKD

More information

A single quantum cannot be teleported

A single quantum cannot be teleported 1 quant-ph/010060 A single quantum cannot be teleported Daniele Tommasini Departamento de Física Aplicada, Universidad de Vigo, 3004 Ourense, Spain Due to the Heisemberg uncertainty principle, it is impossible

More information

Distributed Mutual Exclusion Based on Causal Ordering

Distributed Mutual Exclusion Based on Causal Ordering Journal of Computer Science 5 (5): 398-404, 2009 ISSN 1549-3636 2009 Science Publications Distributed Mutual Exclusion Based on Causal Ordering Mohamed Naimi and Ousmane Thiare Department of Computer Science,

More information

Physics is becoming too difficult for physicists. David Hilbert (mathematician)

Physics is becoming too difficult for physicists. David Hilbert (mathematician) Physics is becoming too difficult for physicists. David Hilbert (mathematician) Simple Harmonic Oscillator Credit: R. Nave (HyperPhysics) Particle 2 X 2-Particle wave functions 2 Particles, each moving

More information

arxiv:quant-ph/ v1 29 Jul 2004

arxiv:quant-ph/ v1 29 Jul 2004 Bell Gems: the Bell basis generalized Gregg Jaeger, 1, 1 College of General Studies, Boston University Quantum Imaging Laboratory, Boston University 871 Commonwealth Ave., Boston MA 015 arxiv:quant-ph/040751v1

More information

Did you read chapter 7? Housekeeping. Special Relativity Postulates. Famous quotes from Einstein. Symmetry. (Special Principle of Relativity) 5/9/2007

Did you read chapter 7? Housekeeping. Special Relativity Postulates. Famous quotes from Einstein. Symmetry. (Special Principle of Relativity) 5/9/2007 Housekeeping Vocab quiz: Do Due Exam versus Vocab Quiz Did you read chapter 7? a) Yes b) No c) We have a book? 1 2 Famous quotes from Einstein "Everything should be made as simple as possible, but not

More information

Logical difficulty from combining counterfactuals in the GHZ-Bell theorems

Logical difficulty from combining counterfactuals in the GHZ-Bell theorems Logical difficulty from combining counterfactuals in the GHZ-Bell theorems Louis Sica Chapman University, Orange, CA 92866; and Inspire Institute Inc., Alexandria, V2303, USA E-mail: lousica@jhu.edu In

More information

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Consensus. One Reason: Impossibility of Consensus. Let s Consider This

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Consensus. One Reason: Impossibility of Consensus. Let s Consider This Recap: Finger Table Finding a using fingers Distributed Systems onsensus Steve Ko omputer Sciences and Engineering University at Buffalo N102 86 + 2 4 N86 20 + 2 6 N20 2 Let s onsider This

More information

11/26/2018 Photons, Quasars and the Possibility of Free Will - Scientific American Blog Network. Observations

11/26/2018 Photons, Quasars and the Possibility of Free Will - Scientific American Blog Network. Observations Observations Photons, Quasars and the Possibility of Free Will Flickers of light from the edge of the cosmos help physicists advance the idea that the future is not predetermined By Brian Koberlein on

More information

Finally the Weakest Failure Detector for Non-Blocking Atomic Commit

Finally the Weakest Failure Detector for Non-Blocking Atomic Commit Finally the Weakest Failure Detector for Non-Blocking Atomic Commit Rachid Guerraoui Petr Kouznetsov Distributed Programming Laboratory EPFL Abstract Recent papers [7, 9] define the weakest failure detector

More information

Distributed Algorithms Time, clocks and the ordering of events

Distributed Algorithms Time, clocks and the ordering of events Distributed Algorithms Time, clocks and the ordering of events Alberto Montresor University of Trento, Italy 2016/04/26 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International

More information

NEW RELATIVITY GAMMA

NEW RELATIVITY GAMMA NEW RELATIVITY GAMMA James A. Putnam 2003 What is the meaning of gamma? In relativity theory there appears the mathematical expression: It originated from the Lorentz transforms. The question I will answer

More information

Improper Nesting Example

Improper Nesting Example Improper Nesting Example One of the limits on the use of parbegin/parend, and any related constructs, is that the program involved must be properly nested. Not all programs are. For example, consider the

More information

INF Models of concurrency

INF Models of concurrency INF4140 - Models of concurrency RPC and Rendezvous INF4140 Lecture 15. Nov. 2017 RPC and Rendezvous Outline More on asynchronous message passing interacting processes with different patterns of communication

More information

Lecture 14: Secure Multiparty Computation

Lecture 14: Secure Multiparty Computation 600.641 Special Topics in Theoretical Cryptography 3/20/2007 Lecture 14: Secure Multiparty Computation Instructor: Susan Hohenberger Scribe: Adam McKibben 1 Overview Suppose a group of people want to determine

More information

FYSH551 - Ultra-relativistic Heavy Ion Physics

FYSH551 - Ultra-relativistic Heavy Ion Physics FYSH551 - Ultra-relativistic Heavy Ion Physics Lecture notes Jan Rak Jyväskylä University, HIP, Finland March 8, 2015 Jan Rak (Jyväskylä University, HIP, Finland) FYSH551 - Ultra-relativistic Heavy Ion

More information

Differential Equations and Linear Algebra Supplementary Notes. Simon J.A. Malham. Department of Mathematics, Heriot-Watt University

Differential Equations and Linear Algebra Supplementary Notes. Simon J.A. Malham. Department of Mathematics, Heriot-Watt University Differential Equations and Linear Algebra Supplementary Notes Simon J.A. Malham Department of Mathematics, Heriot-Watt University Contents Chapter 1. Linear algebraic equations 5 1.1. Gaussian elimination

More information

Modern Physics notes Paul Fendley Lecture 34. Born, chapter III (most of which should be review for you), chapter VII

Modern Physics notes Paul Fendley Lecture 34. Born, chapter III (most of which should be review for you), chapter VII Modern Physics notes Paul Fendley fendley@virginia.edu Lecture 34 General Relativity Born, chapter III (most of which should be review for you), chapter VII Fowler, Remarks on General Relativity Ashby

More information

Bell s inequalities and their uses

Bell s inequalities and their uses The Quantum Theory of Information and Computation http://www.comlab.ox.ac.uk/activities/quantum/course/ Bell s inequalities and their uses Mark Williamson mark.williamson@wofson.ox.ac.uk 10.06.10 Aims

More information

Time In Gravitational Fields & Gravitational Red Shift By Michael Spears.

Time In Gravitational Fields & Gravitational Red Shift By Michael Spears. Time In Gravitational Fields & Gravitational Red Shift By Michael Spears. serious_spears@yahoo.com.au Abstract: In the course of this paper I will seek to give a new explanation for two phenomena predicted

More information

An Implementation of Compact Genetic Algorithm on a Quantum Computer

An Implementation of Compact Genetic Algorithm on a Quantum Computer An Implementation of Compact Genetic Algorithm on a Quantum Computer Sorrachai Yingchareonthawornchai 1, Chatchawit Aporntewan, Prabhas Chongstitvatana 1 1 Department of Computer Engineering Department

More information

Distributed Systems. Time, clocks, and Ordering of events. Rik Sarkar. University of Edinburgh Spring 2018

Distributed Systems. Time, clocks, and Ordering of events. Rik Sarkar. University of Edinburgh Spring 2018 Distributed Systems Time, clocks, and Ordering of events Rik Sarkar University of Edinburgh Spring 2018 Notes Today: Time, clocks, NTP Ref: CDK Causality, ordering, logical clocks: Ref: VG, CDK Time Ordering

More information

Seminar 1. Introduction to Quantum Computing

Seminar 1. Introduction to Quantum Computing Seminar 1 Introduction to Quantum Computing Before going in I am also a beginner in this field If you are interested, you can search more using: Quantum Computing since Democritus (Scott Aaronson) Quantum

More information

Coordination. Failures and Consensus. Consensus. Consensus. Overview. Properties for Correct Consensus. Variant I: Consensus (C) P 1. v 1.

Coordination. Failures and Consensus. Consensus. Consensus. Overview. Properties for Correct Consensus. Variant I: Consensus (C) P 1. v 1. Coordination Failures and Consensus If the solution to availability and scalability is to decentralize and replicate functions and data, how do we coordinate the nodes? data consistency update propagation

More information

Today. Vector Clocks and Distributed Snapshots. Motivation: Distributed discussion board. Distributed discussion board. 1. Logical Time: Vector clocks

Today. Vector Clocks and Distributed Snapshots. Motivation: Distributed discussion board. Distributed discussion board. 1. Logical Time: Vector clocks Vector Clocks and Distributed Snapshots Today. Logical Time: Vector clocks 2. Distributed lobal Snapshots CS 48: Distributed Systems Lecture 5 Kyle Jamieson 2 Motivation: Distributed discussion board Distributed

More information

What happens to the value of the expression x + y every time we execute this loop? while x>0 do ( y := y+z ; x := x:= x z )

What happens to the value of the expression x + y every time we execute this loop? while x>0 do ( y := y+z ; x := x:= x z ) Starter Questions Feel free to discuss these with your neighbour: Consider two states s 1 and s 2 such that s 1, x := x + 1 s 2 If predicate P (x = y + 1) is true for s 2 then what does that tell us about

More information

CORRECTNESS OF A GOSSIP BASED MEMBERSHIP PROTOCOL BY (ANDRÉ ALLAVENA, ALAN DEMERS, JOHN E. HOPCROFT ) PRATIK TIMALSENA UNIVERSITY OF OSLO

CORRECTNESS OF A GOSSIP BASED MEMBERSHIP PROTOCOL BY (ANDRÉ ALLAVENA, ALAN DEMERS, JOHN E. HOPCROFT ) PRATIK TIMALSENA UNIVERSITY OF OSLO CORRECTNESS OF A GOSSIP BASED MEMBERSHIP PROTOCOL BY (ANDRÉ ALLAVENA, ALAN DEMERS, JOHN E. HOPCROFT ) PRATIK TIMALSENA UNIVERSITY OF OSLO OUTLINE q Contribution of the paper q Gossip algorithm q The corrected

More information

Efficient Dependency Tracking for Relevant Events in Concurrent Systems

Efficient Dependency Tracking for Relevant Events in Concurrent Systems Distributed Computing manuscript No. (will be inserted by the editor) Anurag Agarwal Vijay K. Garg Efficient Dependency Tracking for Relevant Events in Concurrent Systems Received: date / Accepted: date

More information

Bits. Chapter 1. Information can be learned through observation, experiment, or measurement.

Bits. Chapter 1. Information can be learned through observation, experiment, or measurement. Chapter 1 Bits Information is measured in bits, just as length is measured in meters and time is measured in seconds. Of course knowing the amount of information is not the same as knowing the information

More information

5.5 Deeper Properties of Continuous Functions

5.5 Deeper Properties of Continuous Functions 200 CHAPTER 5. LIMIT AND CONTINUITY OF A FUNCTION 5.5 Deeper Properties of Continuous Functions 5.5.1 Intermediate Value Theorem and Consequences When one studies a function, one is usually interested

More information

Lecture 14, Thurs March 2: Nonlocal Games

Lecture 14, Thurs March 2: Nonlocal Games Lecture 14, Thurs March 2: Nonlocal Games Last time we talked about the CHSH Game, and how no classical strategy lets Alice and Bob win it more than 75% of the time. Today we ll see how, by using entanglement,

More information

about Quantum Physics Bill Poirier MVJS Mini-Conference Lawrence Hall of Science July 9, 2015

about Quantum Physics Bill Poirier MVJS Mini-Conference Lawrence Hall of Science July 9, 2015 about Quantum Physics Bill Poirier MVJS Mini-Conference Lawrence Hall of Science July 9, 2015 Some Notable Quotes If we knew what we were doing, it wouldn't be called 'research Albert Einstein The paradox

More information

Quotations from other works that I have written

Quotations from other works that I have written Quotations from other works that I have written (Including supporting documentation from other sources) The following five groups of quotations are in numerical order of what I consider to be of the greatest

More information

Lecture Notes, Week 6

Lecture Notes, Week 6 YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE CPSC 467b: Cryptography and Computer Security Week 6 (rev. 3) Professor M. J. Fischer February 15 & 17, 2005 1 RSA Security Lecture Notes, Week 6 Several

More information

Chapter III. Basic Proof Techniques. Proving the obvious has never been easy. Marty Rubin

Chapter III. Basic Proof Techniques. Proving the obvious has never been easy. Marty Rubin Chapter III Basic Proof Techniques Proving the obvious has never been easy. Marty Rubin The last two chapters were an introduction to the language of mathematics. Knowing the definitions and concepts of

More information

Consensus. Consensus problems

Consensus. Consensus problems Consensus problems 8 all correct computers controlling a spaceship should decide to proceed with landing, or all of them should decide to abort (after each has proposed one action or the other) 8 in an

More information

Can You Hear Me Now?

Can You Hear Me Now? Can You Hear Me Now? An Introduction to Coding Theory William J. Turner Department of Mathematics & Computer Science Wabash College Crawfordsville, IN 47933 19 October 2004 W. J. Turner (Wabash College)

More information

Notes on BAN Logic CSG 399. March 7, 2006

Notes on BAN Logic CSG 399. March 7, 2006 Notes on BAN Logic CSG 399 March 7, 2006 The wide-mouthed frog protocol, in a slightly different form, with only the first two messages, and time stamps: A S : A, {T a, B, K ab } Kas S B : {T s, A, K ab

More information

Important Properties of R

Important Properties of R Chapter 2 Important Properties of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference

More information

Theory of Everything by Illusion 2.0

Theory of Everything by Illusion 2.0 Theory of Everything by Illusion 2.0 Kimmo Rouvari September 25, 2015 Abstract Theory of Everything is The Holy Grail in physics. Physicists and like all over the world have searched the theory for a very

More information

Logical difficulty from combining counterfactuals in the GHZ-Bell theorems

Logical difficulty from combining counterfactuals in the GHZ-Bell theorems Logical difficulty from combining counterfactuals in the GHZ-Bell theorems ABSTRACT Louis Sica 1,2 1 Chapman University, Orange, CA & Burtonsville, MD, USA 2 Inspire Institute Inc., Alexandria, VA, USA

More information

Computation in Quantum Space-time Could Lead to a Super-polynomial Speedup

Computation in Quantum Space-time Could Lead to a Super-polynomial Speedup Journal of Uncertain Systems Vol.6, No.2, pp.146-151, 2012 Online at: www.jus.org.uk Computation in Quantum Space-time Could Lead to a Super-polynomial Speedup Michael Zakharevich 1, Vladik Kreinovich

More information

THE DELAYED CHOICE QUANTUM EXPERIMENT

THE DELAYED CHOICE QUANTUM EXPERIMENT Project optic physics 2008 Professor: Andres La Rosa THE DELAYED CHOICE QUANTUM EXPERIMENT by THOMAS BENJAMIN 1 st of June, 2008 1 Introduction The delayed choice quantum experiment, and electron coupling.

More information

TTA and PALS: Formally Verified Design Patterns for Distributed Cyber-Physical

TTA and PALS: Formally Verified Design Patterns for Distributed Cyber-Physical TTA and PALS: Formally Verified Design Patterns for Distributed Cyber-Physical DASC 2011, Oct/19 CoMMiCS Wilfried Steiner wilfried.steiner@tttech.com TTTech Computertechnik AG John Rushby rushby@csl.sri.com

More information

Twin paradox and Einstein mistake

Twin paradox and Einstein mistake Twin paradox and Einstein mistake a mathematical approach Based on the book: Logic in the Universe Victor Orsini The Michelson-Morley experiment showed inadvertently that the speed of light is constant.

More information

20th Century Concepts in STM January 23, 2014 Tycho Sleator V Spring 2014

20th Century Concepts in STM January 23, 2014 Tycho Sleator V Spring 2014 20th Century Concepts in STM January 23, 2014 Tycho Sleator V85.0020 Spring 2014 Welcome to 20 th Century Concepts in Space, Time, and Matter, V85.0020. This course is intended to provide you with a current

More information

Network Security Based on Quantum Cryptography Multi-qubit Hadamard Matrices

Network Security Based on Quantum Cryptography Multi-qubit Hadamard Matrices Global Journal of Computer Science and Technology Volume 11 Issue 12 Version 1.0 July Type: Double Blind Peer Reviewed International Research Journal Publisher: Global Journals Inc. (USA) Online ISSN:

More information

Implementing Uniform Reliable Broadcast with Binary Consensus in Systems with Fair-Lossy Links

Implementing Uniform Reliable Broadcast with Binary Consensus in Systems with Fair-Lossy Links Implementing Uniform Reliable Broadcast with Binary Consensus in Systems with Fair-Lossy Links Jialin Zhang Tsinghua University zhanggl02@mails.tsinghua.edu.cn Wei Chen Microsoft Research Asia weic@microsoft.com

More information