Distributed System s Fall 2 0 0 9 Time and Synchronization
Fall 2 0 0 9 5 DV0 2 0 3Outline
- Introduction
- Basic definitions
- Synchronization algorithms
– Synchronous systems – Cristian's algorithm – Berkeley algorithm – Network Time Protocol
- Summary
Tim e, and the lack thereof
- A global notion of the correct time
would be tremendously useful. Why?
– Consistency of distributed data, transactions, authenticity checks (ticket lifetimes), duplication detection, distributed debugging and garbage detection, etc.
Fall 2 0 0 9 5 DV0 2 0 5Tim e, and the lack thereof
- Why do we not have global time?
– Clocks drift, are inaccurate, may fail arbitrarily, etc. – Time is relative, and depends on the
- bserver of the timed events
- Causal relationships (cause and effect) may
not be violated
Fall 2 0 0 9 5 DV0 2 0 6Basic definitions
- Distributed system is P, consisting
- f N processes: pi, i = 1, 2, …, N
- Each process has state si
- Processes communicate only via
message passing (network)
- Events e occur in processes
– Internal events – Send events – Receive events