LU4 Time and Global State Flashcards
(92 cards)
What are the four sections covered on the lecture slides?
Foundation
What does the “Foundation” section include?
Characterization of Distributed System
What does the “Middleware” section include?
Distributed Object
What does the “Support Systems” section include?
Operating Systems
What does the “Algorithms & Shared Data” section include?
Coordination Agreement
Why is time an important issue in distributed systems?
To measure the happening of a certain event accurately (for example, e-commerce transactions).
How do timestamps help in distributed systems?
To serialize transactions and maintain data consistency (establishing order of events).
How do distributed systems handle the absence of a global clock?
By coordinating actions through message passing (programs coordinate their actions by exchanging messages).”
What are the two types of clocks in distributed systems?
Physical clocks (count seconds elapsed) and Logical clocks (count events).
Why is a simple oscillator not sufficient as a clock in a distributed system?
Digital electronics are not the accurate enough for time stamp use in distributed systems
What is clock drift?
The rate at which a clock deviates from an ideal clock (quartz clocks are susceptible to drift).
What unit is clock drift typically measured in?
Parts per million (ppm).
What is an atomic clock?
A very accurate type of clock based on atomic resonances (Caesium-133 is often used).
Describe the usage of GPS for time synchronization.
GPS satellites broadcast current time and location; receivers calculate position based on signal delay.
What is UTC?
Coordinated Universal Time (compromise between GMT and TAI, accounting for the Earth’s rotation).
Why is Greenwich Mean Time (GMT) not sufficient for accurate timekeeping?
It’s based on solar time, which varies due to irregularities in the Earth’s rotation.
What is TAI?
International Atomic Time (based on the resonant frequency of Caesium-133).
Why isn’t TAI used directly as a universal time standard?
It doesn’t account for the slowing and variation of the Earth’s rotation (Earth’s rotation is not constant).
What are leap seconds
and why are they necessary?
When are leap seconds typically added?
June 30th and December 31st at 23:59:59 UTC.
What are three ways one can be affected by leap seconds?
The clock immediately jumps forward, moves to 00:00:00 after one second, or the clock moves to 23:59:60
What are the common methods that are used to represent timestamps in distributed systems?
Unix time (seconds since epoch) and ISO 8601 (human-readable format).
How is leap second traditionally handled in software systems?
They are often ignored due to the complexity they introduce.
How does the ‘smear’ approach deal with leap seconds?
It spreads the extra second over a longer period, avoiding sudden jumps.