1 / 20

Distributed Time Synchronization over Multihop Wireless Sensor Networks

Distributed Time Synchronization over Multihop Wireless Sensor Networks. Lei Rao October 29th, 2008. Acknowledgement. This presentation Mainly based on the ICDC’06 paper by Roberto Solis and his partners from UIUC

bat
Download Presentation

Distributed Time Synchronization over Multihop Wireless Sensor Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Distributed Time Synchronization over Multihop Wireless Sensor Networks Lei Rao October 29th, 2008 RaoLei@CS.McGill leirao@cs.mcgill.ca

  2. Acknowledgement • This presentation • Mainly based on the ICDC’06 paper by Roberto Solis and his partners from UIUC • Partially based on the ICDC’06 paper by Arvind Giridarha and his partners from UIUC • Partially based on materials by Sensor Web MuRI Review Meeting by P. R. Kumar from UIUC • Partially based on materials by Andreas Willig from Technical University Berlin RaoLei@CS.McGill leirao@cs.mcgill.ca

  3. Outline of The Presentation • Time Synchronization Problems and Motivations • Related Works • Distributed Time Synchronization • Conclusions RaoLei@CS.McGill leirao@cs.mcgill.ca

  4. An Example • Goal: estimate angle of arrival of a very distant sound event using an array of acoustic sensors • From the figure, q can be estimated when x and d are known: • d is known a priori, x must be estimated from differences in time of arrival • x = C Dt where C is the speed of sound • For d=1 m and Dt=0.001 we get q = 0.336 radians • When Dt is estimated with 500 ms error, the q estimates can vary between 0.166 and 0.518 • Morale: a seemingly small error in time synch can lead to significantly different angle estimates RaoLei@CS.McGill leirao@cs.mcgill.ca

  5. Motivations • Time synchronization algorithms can be used to better synchronize clocks of sensor nodes • Time synchronization is needed for WSN applications and protocols: • Applications: AOA estimation, beamforming • Protocols: TDMA, protocols with coordinated wakeup, ... • Distributed debugging: timestamping of distributed events is needed to figure out their correct order of appearance • WSN have a direct coupling to the physical world, hence their notion of time should be related to physical time: • physical time = wall clock time, real-time, i.e. one second of a WSN clock should be close to one second of real time • Commonly agreed time scale for real time is UTC, generated from atomic clocks and modified by insertion of leap seconds to keep in synch with astronomical timescales (one rotation of earth) • Other concept: logical time (Lamport), where only the relative ordering of events counts but not their relation to real time RaoLei@CS.McGill leirao@cs.mcgill.ca

  6. General Properties of Time Synchronization Algorithms • Physical time vs. logical time • Global vs. local algorithms • Keep all nodes of a WSN synchronized or only a local neighbourhood? • Absolute vs. relative time • Hardware vs. software-based mechanisms • A GPS receiver would be a hardware solution, but often too heavyweight/costly/energy-consuming in WSN nodes, and in addition a line-of-sight to at least four satellites is required • A-priori vs. a-posteriori synchronization • Is time synchronization achieved before or after an interesting event?  Post-facto synchronization • Deterministic vs. stochastic precision bounds • Local clock update discipline • Should backward jumps of local clocks be avoided? (Users of make say yes here ....) • Avoid sudden jumps? RaoLei@CS.McGill leirao@cs.mcgill.ca

  7. Constraints for Time Synchronization in Wireless Sensor Networks • An algorithm should scale to large networks of unreliable nodes • Quite diverse precision requirements, from ms to tens of seconds • Use of extra hardware (like GPS receivers) is mostly not an option • low mobility • Often there are no fixed upper bounds on packet delivery times (due to MAC delays, buffering, ...) • Negligible propagation delay between neighboring nodes • Manual node configuration is not an option RaoLei@CS.McGill leirao@cs.mcgill.ca

  8. Outline of The Presentation • Time Synchronization Problems and Motivations • Related Works • Distributed Time Synchronization • Conclusions RaoLei@CS.McGill leirao@cs.mcgill.ca

  9. Related Works • Many algorithms have been proposed for solving time synchronization problems. • K. Romer (2001) To generate time stamps using unsynchronized local clocks • Scott Graham and P. R. Kumar (2004) A time translation protocol • M. Sichitiu and C. Veerarittiphan (2003) Clock drift between nodes is assumed to be linear, and nodes exchange timestamps to estimate the best fit • S. Adlakha S. Ganeriwal and etc. (2003) A hierarchical tree topology of the network is used • J. Elson and K. Romer (2003) Reference Broadcast Synchronization • Miklos Maroti Gyula Simon and etc. (2004) Flooding Time Synchronization Protocol is proposed • R. Karp J. Elson and etc. (2003) J. Elson L. Girod and etc. (2002) Reference Broadcast Synchronization (RBS) RaoLei@CS.McGill leirao@cs.mcgill.ca

  10. Outline of The Presentation • Time Synchronization Problems and Motivations • Related Works • Distributed Time Synchronization • Conclusions RaoLei@CS.McGill leirao@cs.mcgill.ca

  11. tremote tlocal • Linear clock model t Sent Received tremote skew offset0 tlocal Bilateral Clock Synchronization • Synchronization between two neighbors • Propagation delay from i to j = di RaoLei@CS.McGill leirao@cs.mcgill.ca

  12. d1 d2 An Impossibility Result • Theorem: • It is impossible to determine through any packet exchanges the six unknown parameters • d1, d2 • Offset0 • Skew  • Consequence • Cannot estimate all four parameters if delays in two directions are asymmetric • Solution: Assume that delays in both directions are symmetric RaoLei@CS.McGill leirao@cs.mcgill.ca

  13. t1A t2A t3A A’s time B’s time t2B t1B t3B A B Estimating Skew, Latency and Offset Skew • Use recursive least squares forparameter updating • Issues • Ill conditioning • Reparametrization • Instead of (, offset at time 0)use (, offset now) • Combination of windowing and exponential forgetting Transmission Delay The difference between the received and transmitted timestamps at node j and node i Offset RaoLei@CS.McGill leirao@cs.mcgill.ca

  14. Multi-hop Time Synchronization • Suppose that there are n nodes all having clocks running at exactly the same speed, except that they have different offsets • With node 1 chosen as the reference, let zi denote the amount that node i’s clock is ahead of node 1 ti(t) = t1(t) + zi • Problem: We want to obtain estimates vi = ˆziof the offsets with respect to the reference node for all node i in the network RaoLei@CS.McGill leirao@cs.mcgill.ca

  15. 1 2 5 Loop 2 Loop 1 4 3 An improvement: Spatial smoothing • How to solve the problem? • Use constraints • Sum of offsets along any loop is zero Each node i has a clock ci(t), where t represents the reference time variable • Kirchoff’s law: Loop sum of voltage drops = 0 • Let A = incidence matrix of graph • Then o = AT v RaoLei@CS.McGill leirao@cs.mcgill.ca

  16. A Distributed Asynchronous Multi-hop Time Synchronization Algorithm Use Coordinate descent • How to construct a distributed asynchronous algorithm which solves this optimization problem? • Consider the least square problem: • Let , then • Therefore , setting leads to • The Asynchronous Multi-hop Time Synchronization Algorithm • Each node periodically exchanges time stamped packets with each of it’s neighbors and estimates the bilateral offsets • Each node periodically transmits its current estimate of its own offset vi to each of its neighbors. When it receives all its neighbors’ current estimates, it updates its own estimate using the update • The above two steps run in parallel • The bilateral estimates are computed as above RaoLei@CS.McGill leirao@cs.mcgill.ca

  17. A Distributed Synchronous Multi-hop Time Synchronization Algorithm • How To Synchronize the algorithm? • Solution: each estimate is associated with a sequence number n • Nodes transmit the latest estimates along with the sequence numbers to each of their neighbors • Each node i obtains its (n + 1)st estimate using the equation • The Convergence of the algorithm? • The synchronous as well as asynchronous versions of the averaging algorithm converge to the optimal least-squares solution v • The proof is given in the ICDC’06 paper by Arvind Giridarha and his partners from UIUC RaoLei@CS.McGill leirao@cs.mcgill.ca

  18. Outline of The Presentation • Time Synchronization Problems and Motivations • Related Works • Distributed Time Synchronization • Conclusions RaoLei@CS.McGill leirao@cs.mcgill.ca

  19. Conclusions • A clock synchronization protocol has been presented • For wireless sensor network • Fully distributed • Use asynchronous messages • Requires no topological constructions • The simulation result is mentioned in the paper other than the presentation • Any improvements? • Further considerations RaoLei@CS.McGill leirao@cs.mcgill.ca

  20. THANK YOU Q & A RaoLei@CS.McGill leirao@cs.mcgill.ca

More Related