11.Time & Clocks Flashcards
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?
- Master processor
- polls slaves
- average results +own 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?
- Primary (UTC clock)
- Secondary(Synchronized with primary)
Ways to synchronise server in NTP network?
- Multicast mode
- Procedure call mode
- Symmetric mode
What method of synchronization is used on high-speed LAN, how does it work?
Multicast
- Server broadcasts time to all secondaries at once
- Each clock resets (+small delay)
How does the procedure call mode for synchronization work?
- Christians Algorithm
- server replies with time
When is procedure call synchronzation used?
- when multicast unsupported
- for higher accuracy
What synchronization mode do we use when the highest accuracy is required?
Symmetric mode
How does symmetric mode for synchronization work?
- Messages exchanged
- data built up
- improve sync over time
- each message contains timing info about the previous message received
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