Download presentation
Presentation is loading. Please wait.
Published byPhillip McKenzie Modified over 9 years ago
1
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin OSDI 2002 - Boston, MA Speaker : hsiwei-Chen
2
Outline Introduction Reference-Broadcast Synchronization(RBS) Implementation on Berkeley Motes Conclusions and FutureWork
3
Sources of Time Synchronization Error(1/2) Send Time Send Time Time spent at the sender to construct the message, e.g. context switches and system call overhead The time required to transfer the message from the host to its network interface. Access Time Access Time Wait for the channel to be clear before transmitting
4
Sources of Time Synchronization Error(2/2) Propagation Time Propagation Time The time needed for the message to transit from sender to receivers Receive Time Receive Time Time to receive the message and notify the host of its arrival Send time & access time are most non-deterministic
5
Reference-Broadcast Synchronization(RBS) Traditional protocols Traditional protocols Synchronize the sender of a message with its receiver Synchronize the sender of a message with its receiver RBS RBS A set of nodes synchronize with each other (not with the sender) A set of nodes synchronize with each other (not with the sender) reduces non-determinism
6
Critical Path Analysis Traditional RBS Send Time Access Time Propagation Delay Receive Time
7
RBS Critical Path Remove the send time & access time from the critical path Remove the send time & access time from the critical path Receive time is independent of the sender or network load Propagation time can be ignored in a short distance
8
RBS Critical Path (Cont.) Use broadcast as a relative time reference Use broadcast as a relative time reference Broadcast packet does NOT include timestamp generated by sender Any broadcast, e.g., RTS/CTS, route discovery packets
9
Simple RBS One transmitter broadcasts a reference packet to two receivers One transmitter broadcasts a reference packet to two receivers Each receiver records the time the reference packet arrived according to the local clock Each receiver records the time the reference packet arrived according to the local clock Receivers exchange the timestamps Receivers exchange the timestamps We consider the Propagation Time to be effectively 0 We consider the Propagation Time to be effectively 0 Sensitiving to differences in the receive time of messages within a set of receivers. Sensitiving to differences in the receive time of messages within a set of receivers.
10
Simple RBS Sender Receiver 1 Receiver 2 Broadcast exchange the timestamps
11
Distribution of Inter-Receiver Phase Offset Pairwise Difference in Packet Reception Time (usec) Number of Trials Phase offset recorded by a logic analyzer for 1,478 broadcast packets(total) (sender emitted 160 broadcast packets) Gaussian distribution = 0, = 11.1us Confidence = 99.8% 5 motes: receivers 1 mote: transmitter
12
Estimation of Phase Offset A sender broadcasts m reference packets A sender broadcasts m reference packets Each of the n receiver records the time at which the reference was received Each of the n receiver records the time at which the reference was received Receivers exchange timestamps Receivers exchange timestamps Receiver i computes its phase offset to any other receiver j as the average of m differences Receiver i computes its phase offset to any other receiver j as the average of m differences
13
Estimation of Clock Skew Clock skew due to crystal oscillators errors Clock skew due to crystal oscillators errors Frequency error Difference between the expected and actual frequencies Difference between the expected and actual frequencies Instability Short-term: Environmental factors, e.g., variations in temperature, supply voltage, and shock Short-term: Environmental factors, e.g., variations in temperature, supply voltage, and shock Long-term: Oscillator aging Long-term: Oscillator aging Least square method (linear regression) Assume phase error is changing at constant rate Assume phase error is changing at constant rate Continuously adjust frequency based on recent observations relating the local oscillator to a reference Continuously adjust frequency based on recent observations relating the local oscillator to a reference
14
Implementation on Berkeley Motes One sender, five receivers One sender, five receivers 1000 trials 1000 trials
15
Receiver Group Dispersion #Reference packet broadcasts Receiver Group Dispersion (us) 25 broadcasts can reduce the dispersion below 10us 20 Receivers 2 Reeivers
16
Effect of Clock Skew on RBS Time (sec) Phase Offset (us) Fit Error (us)
17
Performance Comparisons Compare to NTP Compare to NTP UNIX implementation of RBS for fair comparisons UNIX implementation of RBS for fair comparisons User space UNIX daemon UDP datagram StrongArm-based Compaq IPAQ PDA’s “Familiar” Linux (2.4 kernel) “Familiar” Linux (2.4 kernel) Lucent Technology 11Mbit 802.11 wireless Ethernet adapters 300 trials, 每個 trial 間格 8 秒鐘,Total time is 40 minuters 300 trials, 每個 trial 間格 8 秒鐘,Total time is 40 minuters
18
Synchronization Error with Light Network Load Error (us) Cumulative Error Prob. RBS NTP NTP-Offset Sync. Error between two IPAQ’s
19
Synchronization Error with Light Network Load RBS: 6.29 +/- 6.45 us RBS: 6.29 +/- 6.45 us NTP: 51.18 +/- 53.30 us NTP: 51.18 +/- 53.30 us NTP-Offset: 204 +/- 599.44 us NTP-Offset: 204 +/- 599.44 us RBS works better due to the reduced non- determinism RBS works better due to the reduced non- determinism
20
Synchronization Error with Heavy Network Load Error (us) Cumulative Error Prob. RBS NTP NTP-Offset
21
Synchronization Error with Heavy Network Load RBS: 8.44 +/- 9.37 us RBS: 8.44 +/- 9.37 us With kernel support which timestamps at interrupt time, 1.85 +/- 1.28 us NTP: 1542.27 +/- 1192.53 us NTP: 1542.27 +/- 1192.53 us NTP-Offset: 5139.08 +/- 6994.58 us NTP-Offset: 5139.08 +/- 6994.58 us RBS is not affected by Medium Access Delay RBS is not affected by Medium Access Delay
22
Multi-Hop Time Synchronization 12 3 4 1. 在 node A 面積 local 中,node 1 與 node 4 同步 2. 再以 node 4 當 getway, 與 node B 面積 local 中,node 4 與 node 7 同步 3. 即可達到 Global 同步. A 5 67 B
23
Multi-Hop RBS Performance Hop Mean Error( ) 1 1.85 2 2.73 3 2.73 4 3.68
24
Conclusions and FutureWork RBS provides more precise, flexible, and resource-efficient network time synchronization than traditional algorithms RBS provides more precise, flexible, and resource-efficient network time synchronization than traditional algorithms But such as automatic, dynamic election of the set of nodes to act as beacon senders ? But such as automatic, dynamic election of the set of nodes to act as beacon senders ?
25
Summary 本篇作者去除掉了 Send Time and Acces 本篇作者去除掉了 Send Time and Acces Time 同步 error 的兩個來源 Time 同步 error 的兩個來源 以相對的時間代替絕對的時間 以相對的時間代替絕對的時間
26
Thank you
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.