Clocks Time Correct time A correct clock

Clocks Time Correct time A correct clock
Time
Clocks
Why is time important?
Johan Montelius
KTH
HT15
Correct time
1 / 12
Who has the correct time?
A correct clock
2 / 12
Drift is change in how well one clock can measure a time interval.
earths rotation - UT1
one “atomic” clock - UTC
Monotonic is the property that time always moves forward.
Even if wee all agree, how do we keep nodes synchronized?
Correctness often means monotonic and low drift.
it takes time to send a signal
in between signals nodes will drift
how often can we send signals
A correct clock might not be synchronized.
3 / 12
4 / 12
How to synchronize
Synchronization
Accuracy or external synchronization:
Each node in our network is synchronized with an external (global)
source within a bound.
Precision or internal synchronization:
Every pair of nodes in our network are synchronized within a bound.
033-415783
Asynchronous networks
5 / 12
6 / 12
Christian’s algorithm
sending request
One server is connected to external source and used to synchronize other nodes
in the network.
req
received request
[r]
[t]
Problem is of course that round-trip times are unknown and that they vary.
T - received reply
A minimum propagation time can be known.
What is the time at T?
7 / 12
T = t + r/2
reply [t]
What is the accuracy?
8 / 12
NTP
NTP
t1: sending request
An architecture targeting reliability and wide area networks.
A hierarchy of servers: stratum-1 connected to external sources.
Fault tolerant: servers can be degraded to lower stratum if external source is
lost, client can connect to secondary servers.
Several synchronization protocols: LAN multicast, request reply and
synchronous.
req
t2 : received request
[r]
[t1,t2,t3]
t3: reply [t1,t2,t3]
t4: received reply
Similar to Christian’s but with better estimate of delay.
Berkeley algorithm
9 / 12
Stateless, no need to record r.
Summary
10 / 12
Clocks can be synchronized:
internally
or to an external source
Synchronization limited by:
network jitter
clock drift
Synchronize to UTC:
NTP connected over Internet: a few 10 ms
local GPS clocks connected to LAN: < 1 ms
on board GPS clock: few ms to ns
Used to synchronize a network of nodes.
send requests to all nodes
collect it and calculate an average time T
send out individual deltas to each node
11 / 12
12 / 12
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising