What is “clock drift”?
The DIFFICULTY of maintaining synchronization once achieved
What is Christian’s Clock Synchronization?
“Time server”
-Client set their own time = reply + rtt/2
(assume time-out = time-back)
What is the Berkeley algorithm for calculating time?
What do the slaves receive after Berkeley calculation?
it’s own delta (+/-)
What happens if master in Berkeley algorithm fails?
Distributed election algorithm to elect replacement from slaves
What kind of networks are Cristian’s and Berkeley algorithm used in ?
Intranet
What is the protocol used for calculating time in a larger scale internet?
Network Time Protocol (NTP)
What two types of servers are the in a network with NTP?
- Secondary(Synchronized with primary)
Ways to synchronise server in NTP network?
What method of synchronization is used on high-speed LAN, how does it work?
Multicast
How does the procedure call mode for synchronization work?
- server replies with time
When is procedure call synchronzation used?
- for higher accuracy
What synchronization mode do we use when the highest accuracy is required?
Symmetric mode
How does symmetric mode for synchronization work?
What can we calculate with the timing info in symmetric mode sync messages?
OFFSET (between 2 clocks)->
oi -di /2 <=o<=oi+di/2
where di: transmission time of two messages
How do NTP servers measure the reliability of the other server?
Identify lowest d value my filtering successive (o,d) values
How can every event in a single processor be uniquely ordered in time?
using the local clock
Why not use local clock to order events in distributed system?
synchronisation is not sufficiently good
What are some simple principles for deducing the order of events?
-Two events happen in the same process? The occur in the order given by the process
-If message is sent from one process to another?
Sending before receiving
What is a logical clock?
a monotonically increasing software counter
Where is a logical clock L?
Within a process
What is a logical clock L used for?
timestamping events
How is the logical clock L used?
What can we deduce about the logical clocks L(e1),L(e2) if e1 happens before e2? (Lamport’s clock)
L(e1)