Time and Coordination March 13, 2001. 2 Time and Coordination What is time? :-)  Issue: How do you coordinate distributed computers if there is no global.

Slides:



Advertisements
Similar presentations
1DT066 D ISTRIBUTED I NFORMATION S YSTEM Time, Coordination and Agreement 1.
Advertisements

CS542 Topics in Distributed Systems Diganta Goswami.
Failure Detection The ping-ack failure detector in a synchronous system satisfies – A: completeness – B: accuracy – C: neither – D: both.
Page 1 Mutual Exclusion* Distributed Systems *referred to slides by Prof. Paul Krzyzanowski at Rutgers University and Prof. Mary Ellen Weisskopf at University.
Computer Science 425 Distributed Systems CS 425 / ECE 428  2013, I. Gupta, K. Nahrtstedt, S. Mitra, N. Vaidya, M. T. Harandi, J. Hou.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
Time and Global States Ali Fanian Isfahan University of Technology
CMPT 401 Summer 2007 Dr. Alexandra Fedorova Lecture IX: Coordination And Agreement.
CS 582 / CMPE 481 Distributed Systems
Distributed Systems Fall 2010 Time and synchronization.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Distributed Snapshots –Termination detection Election algorithms –Bully –Ring.
Distributed Systems Fall 2009 Coordination and agreement, Multicast, and Message ordering.
Teaching material based on Distributed Systems: Concepts and Design, Edition 3, Addison-Wesley Copyright © George Coulouris, Jean Dollimore, Tim.
Time and Global States Chapter 11. Why time? Time is an Important and interesting issue in distributes systems. One we can measure accurately. Can use.
1 Principles of Reliable Distributed Systems Lecture 5: Failure Models, Fault-Tolerant Broadcasts and State-Machine Replication Spring 2005 Dr. Idit Keidar.
© Chinese University, CSE Dept. Distributed Systems / Distributed Systems Topic 9: Time, Coordination and Replication Dr. Michael R. Lyu Computer.
1 Slides for Chapter 10: Time (and Global State) From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley.
Coordination in Distributed Systems Lecture # 8. Coordination Anecdotes  Decentralized, no coordination  Aloha ~ 18%  Some coordinating Master  Slotted.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Vector timestamps Global state –Distributed Snapshot Election algorithms.
Lecture 9: Time & Clocks CDK4: Sections 11.1 – 11.4 CDK5: Sections 14.1 – 14.4 TVS: Sections 6.1 – 6.2 Topics: Synchronization Logical time (Lamport) Vector.
Lecture 2-1 CS 425/ECE 428 Distributed Systems Lecture 2 Time & Synchronization Reading: Klara Nahrstedt.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
1DT066 D ISTRIBUTED I NFORMATION S YSTEM Time, Coordination and Agreement 1.
A Security Analysis of the Network Time Protocol (NTP) Presentation by Tianen Liu.
Dionicio D. Gante, Genevev G. Reyes & Vanylive T. Galima DDistributed Operating Systems.
Coordination and Agreement, Multicast, and Message Ordering.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Mutual Exclusion Steve Ko Computer Sciences and Engineering University at Buffalo.
Centralized mutual exclusion Problem : What if the coordinator fails? Solution : Elect a new one.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Mutual Exclusion Steve Ko Computer Sciences and Engineering University at Buffalo.
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Naming Name distribution: use hierarchies DNS X.500 and LDAP.
Consensus and Its Impossibility in Asynchronous Systems.
Review for Exam 2. Topics included Deadlock detection Resource and communication deadlock Graph algorithms: Routing, spanning tree, MST, leader election.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Vector timestamps Global state –Distributed Snapshot Election algorithms –Bully algorithm.
CS425 /CSE424/ECE428 – Distributed Systems – Fall 2011 Material derived from slides by I. Gupta, M. Harandi, J. Hou, S. Mitra, K. Nahrstedt, N. Vaidya.
Coordination and Agreement. Topics Distributed Mutual Exclusion Leader Election.
1 Clock Synchronization & Mutual Exclusion in Distributed Operating Systems Brett O’Neill CSE 8343 – Group A6.
Lecture 9: Time and clocks (Chap 11) Haibin Zhu, PhD. Assistant Professor Department of Computer Science Nipissing University © 2002.
Time This powerpoint presentation has been adapted from: 1) sApr20.ppt.
Lecture 10 – Mutual Exclusion Distributed Systems.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Mutual Exclusion & Leader Election Steve Ko Computer Sciences and Engineering University.
Physical clock synchronization Question 1. Why is physical clock synchronization important? Question 2. With the price of atomic clocks or GPS coming down,
Time and global states Chapter 11. Outline Introduction Clocks, events and process states Synchronizing physical clocks Logical time and logical clocks.
Distributed Systems CS Synchronization – Part I Lecture 8, Sep 23, 2013 Mohammad Hammoud.
Distributed Systems Topic 5: Time, Coordination and Agreement
Page 1 Mutual Exclusion & Election Algorithms Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content.
Lecture 12-1 Computer Science 425 Distributed Systems CS 425 / CSE 424 / ECE 428 Fall 2012 Indranil Gupta (Indy) October 4, 2012 Lecture 12 Mutual Exclusion.
CSE 486/586 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
1 AGREEMENT PROTOCOLS. 2 Introduction Processes/Sites in distributed systems often compete as well as cooperate to achieve a common goal. Mutual Trust/agreement.
Distributed Web Systems Time and Global State Lecturer Department University.
Topic 7: Time and Global State Dr. Ayman Srour Faculty of Applied Engineering and Urban Planning University of Palestine.
Coordination and Agreement
Distributed Computing
Distributed Systems CS
Time and Global States Ali Fanian Isfahan University of Technology
CSE 486/586 Distributed Systems Time and Synchronization
Logical time (Lamport)
Distributed Systems CS
CSE 486/586 Distributed Systems Mutual Exclusion
Distributed Systems CS
Physical clock synchronization
CDK: Sections 11.1 – 11.4 TVS: Sections 6.1 – 6.2
Logical time (Lamport)
Prof. Leonardo Mostarda University of Camerino
Logical time (Lamport)
CSE 486/586 Distributed Systems Mutual Exclusion
CSE 486/586 Distributed Systems Time and Synchronization
Logical time (Lamport)
Last Class: Naming Name distribution: use hierarchies DNS
Presentation transcript:

Time and Coordination March 13, 2001

2 Time and Coordination What is time? :-)  Issue: How do you coordinate distributed computers if there is no global time?  Problem: There is no Global Time that everyone can synchronize on  Issues: Clock drift, clock skew  Approach - Bound the amount of skew  Why do we want to coordinate?  e.g., certificates, time stamps on files,...

3 Synchronization  Two systems agree to what time it is  External - Use an external clock  Internal - Use local clocks (subset of external)  One approach to synchronizing two systems:  Send a message with the time, t, receiver sets time to t+transmission time  Problem: network is asynchronous, not isynchronous...  e.g., Bank Vault Problem Time and Coordination, cont.

4 NTP - Network Time Protocol  Designed to:  Synchronize computers on a large network to UTC  Reliability - Can survive lengthy losses of connectivity  Provide significantly less drift than motherboard clocks  Security against denial of service and spoofing Time and Coordination, cont.

5 NTP Implementation  UDP-based  Hierarchy of primary and secondary servers  Root nodes are Primary servers  Connected directly to master clocks  Next level are secondary servers  Synchronized to primary servers  Hierarchy continues, e.g., with your workstation at a leaf Time and Coordination, cont.

6 NTP Implementation, cont.  As servers become disconnected from higher tiers, they can synchronize with their peers (or lower)  Synchronization occurs via three modes:  Multicast (on high-speed LANs)  Procedure-call, based on Christian's algorithm (probabilistic)  Symmetric - Exchange time data regularly, use data to more accurately predict round trip times Time and Coordination, cont.

7 Distributed Mutual Exclusion  Need to restrict access to distributed resource  e.g., file on a distributed file system  Need safety and fairness (liveness, maybe ordering)  Key objectives - Low bandwidth, low latency, low impact on peak rate at which resource can be accessed  Simple: Central server algorithm  Performance: entering critical section - 2 messages + 1 RT time delay, release is 1 message + no delay Time and Coordination, cont.

8 Distributed Mutual Exclusion, cont.  Ricart and Agrawala - DME based on multicast and clocks  A peer process multicasts a request to enter a critical section  Messages is (time stamp + unique process id)  Messages are totally ordered  The process can enter once it hears back from all its peers Time and Coordination, cont.

9 Consensus  1 process suggests a value, N processes agree to it  e.g., all systems must agree to launch or to abort  Classes of consensus problems:  Byzantine generals (attack or retreat)  Interactive consistency (agree on a vector of values) Time and Coordination, cont.

10 Byzantine Generals  3 or more generals must agree to attack  Only one issues the order  The others must decide to do “the right thing”  There can be treachery!  No authentication Time and Coordination, cont.

11 Byzantine Generals, cont.  In a synchronous system, impossible with N<= 3f  Example solution - for N>= 4, f=1, majority function suffices  In an asynchronous system, impossible  Cannot distinguish between treachery and slowness Time and Coordination, cont.