1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 15th Lecture 13.12.2006 Christian Schindelhauer.

Slides:



Advertisements
Similar presentations
Time Synchronization - using Reference-Broadcast Synchronization
Advertisements

Gradient Clock Synchronization in Wireless Sensor Networks
Secure Time Synchronization Service for Sensor Networks S. Ganeriwal, R. Kumar, M. B. Sirvastava Presented by: Kaiqi Xiong 11/28/2005 Computer Science.
HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
Computer Science 425 Distributed Systems CS 425 / ECE 428  2013, I. Gupta, K. Nahrtstedt, S. Mitra, N. Vaidya, M. T. Harandi, J. Hou.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 25th Lecture Christian Schindelhauer.
Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 21st Lecture Christian Schindelhauer.
Time in Embedded and Real Time Systems Lecture #6 David Andrews
Distributed Systems Fall 2010 Time and synchronization.
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 16th Lecture Christian Schindelhauer.
Teaching material based on Distributed Systems: Concepts and Design, Edition 3, Addison-Wesley Copyright © George Coulouris, Jean Dollimore, Tim.
He Huang Introduction:The Flooding Time Synchronization Protocol.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 14th Lecture Christian Schindelhauer.
Time and Global States Chapter 11. Why time? Time is an Important and interesting issue in distributes systems. One we can measure accurately. Can use.
Time Synchronization Murat Demirbas SUNY Buffalo.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 5th Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 7th Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 9th Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 12th Lecture Christian Schindelhauer.
Time Synchronization for Wireless Sensor Networks.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 3rd Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 17th Lecture Christian Schindelhauer.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
EEC-681/781 Distributed Computing Systems Lecture 10 Wenbing Zhao Cleveland State University.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lewis Girod, and Deborah Estrin U.C.L.APresenter: Todd Fielder.
Energy Aware Directed Diffusion for Wireless Sensor Networks Jisul Choe, 2Keecheon Kim Konkuk University, Seoul, Korea
Lecture 9: Time & Clocks CDK4: Sections 11.1 – 11.4 CDK5: Sections 14.1 – 14.4 TVS: Sections 6.1 – 6.2 Topics: Synchronization Logical time (Lamport) Vector.
Lecture 2-1 CS 425/ECE 428 Distributed Systems Lecture 2 Time & Synchronization Reading: Klara Nahrstedt.
8/18/2015 Mobile Ad hoc Networks COE 549 Synchronization Tarek Sheltami KFUPM CCSE COE 1.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
Energy-Aware Synchronization in Wireless Sensor Networks Yanos Saravanos Major Advisor: Dr. Robert Akl Department of Computer Science and Engineering.
Fine-Grained Network Time Synchronization Using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin University of California, Los Angeles.
Network Kernel Architectures and Implementation ( ) Naming and Addressing Chaiporn Jaikaeo Department of Computer Engineering.
Time of arrival(TOA) Prepared By Sushmita Pal Roll No Dept.-CSE,4 th year.
Clock Synchronization in Sensor Networks Mostafa Nouri.
On-Demand Traffic-Embedded Clock Synchronization for Wireless Sensor Networks Sang Hoon Lee.
RT-Link: A Time-Synchronized Link Protocol for Energy-Constrained Multi- hop Wireless Networks Anthony Rowe, Rahul Mangharam and Raj Rajkumar CMU SECON.
Ad Hoc and Sensor Networks – Roger Wattenhofer –9/1Ad Hoc and Sensor Networks – Roger Wattenhofer – Time Synchronization Chapter 9 TexPoint fonts used.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
Efficient Energy Management Protocol for Target Tracking Sensor Networks X. Du, F. Lin Department of Computer Science North Dakota State University Fargo,
Telecommunication Networks Group Technical University Berlin Ad hoc and Sensor Networks Chapter 8: Time Synchronization Andreas Willig.
Time synchronization for UWSN. Outline Time synchronization knowledge Typical time sync protocol Time sync in UWSN Discussion.
Chapter 6 Time Synchronization. Outline  6.1. The Problems of Time Synchronization  6.2. Protocols Based on Sender/Receiver Synchronization  Network.
Computer Science 1 TinySeRSync: Secure and Resilient Time Synchronization in Wireless Sensor Networks Speaker: Sangwon Hyun Acknowledgement: Slides were.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin OSDI Boston, MA Speaker : hsiwei-Chen.
Software Development Infrastructure for Sensor Networks Operating systems (TinyOS) –Resource (device) management –Basic primitives –Protocols (MAC, routing)
Time This powerpoint presentation has been adapted from: 1) sApr20.ppt.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Copyright © 2011, Scalable and Energy-Efficient Broadcasting in Multi-hop Cluster-Based Wireless Sensor Networks Long Cheng ∗ †, Sajal K. Das†,
Time Synchronization Protocols in Wireless Sensor Networks.
CS3502: Data and Computer Networks Local Area Networks - 1 introduction and early broadcast protocols.
Time and global states Chapter 11. Outline Introduction Clocks, events and process states Synchronizing physical clocks Logical time and logical clocks.
Tufts Wireless Laboratory School Of Engineering Tufts University Paper Review “An Energy Efficient Multipath Routing Protocol for Wireless Sensor Networks”,
CS3502: Data and Computer Networks Local Area Networks - 1 introduction and early broadcast protocols.
UNIT IV INFRASTRUCTURE ESTABLISHMENT. INTRODUCTION When a sensor network is first activated, various tasks must be performed to establish the necessary.
6 SYNCHRONIZATION. introduction processes synchronize –exclusive access. –agree on the ordering of events much more difficult compared to synchronization.
On Mobile Sink Node for Target Tracking in Wireless Sensor Networks Thanh Hai Trinh and Hee Yong Youn Pervasive Computing and Communications Workshops(PerComW'07)
Distributed Systems Lecture 5 Time and synchronization 1.
CSE 486/586 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
Data Collection and Dissemination
CSE 486/586 Distributed Systems Time and Synchronization
Net 435: Wireless sensor network (WSN)
Data Collection and Dissemination
Logical time (Lamport)
Logical time (Lamport)
CSE 486/586 Distributed Systems Time and Synchronization
Presentation transcript:

1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 15th Lecture Christian Schindelhauer

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Clocks in WSN nodes  Often, a hardware clock is present: –Oscillator generates pulses at a fixed nominal frequency –A counter register is incremented after a fixed number of pulses Only register content is available to software Register change rate gives achievable time resolution –Node i’s register value at real time t is H i (t) Convention: small letters (like t, t’) denote real physical times, capital letters denote timestamps or anything else visible to nodes  A (node-local) software clock is usually derived as follows: L i (t) =  i H i (t) +  i (not considering overruns of the counter-register) –  i is the (drift) rate,  i the phase shift –Time synchronization algorithms modify  i and  i, but not the counter register

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Synchronization accuracy / agreement  External synchronization: –synchronization with external real time scale like UTC –Nodes i=1,..., n are accurate at time t within bound  when |L i (t) – t|<  for all i Hence, at least one node must have access to the external time scale  Internal synchronization –No external timescale, nodes must agree on common time –Nodes i=1,..., n agree on time within bound  when |L i (t) – L j (t)|<  for all i,j

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Overview  The time synchronization problem  Protocols based on sender/receiver synchronization  Protocols based on receiver/receiver synchronization  Summary

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Protocols based on receiver/receiver synchronization  Receivers of packets synchronize among each other –not with the transmitter of the packet  RBS: Reference Broadcast Synchronization –Elson, Girod, Estrin, [OSDI 2002] –Synchronize receivers within a single broadcast domain –A scheme for relating timestamps between nodes in different domains  RBS –does not modify the local clocks of nodes –but computes a table of conversion parameters for each peer in a broadcast domain –allows for post-facto synchronization

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Synchronization in a Broadcast Domain

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Synchronization in a Broadcast Domain  The goal is to synchronize i’s and j’s clocks to each other  Timeline: –Reference node R broadcasts at time t 0 some synchronization packet carrying its identification R and a sequence number s –Receiver i receives the last bit at time t 1,i, gets the packet interrupt at time t 2,i and timestamps it at time t 3,i –Receiver j is doing the same –At some later time node i transmits its observation (L i (t 3,i ), R, s) to node j –At some later time node j transmits its observation (L j (t 3,j ), R, s) to node i –The whole procedure is repeated periodically, the reference node transmits its synchronization packets with increasing sequence numbers R could also use ordinary data packets as long as they have sequence numbers...  Under the assumption t 3,i = t 3,j node j can figure out the offset O i,j = L j (t 3,j ) – L i (t 3,i ) after receiving node i’s final packet – of course, node i can do the same

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Synchronization in a Broadcast Domain  The synchronization error in this scheme can have two causes: –There is a difference between t 3,i and t 3,j –Drift between t 3,i and the time where node i transmits its observations to j  But: –In small broadcast domains and when received packets are timestamped as early as possible the difference between t 3,i and t 3,j is very small As compared to sender-/receiver based schemes the MAC delay and operating system delays experienced by the reference node play no role!! –Drift can be neglected when observations are exchanged quickly after reference packets –Drift can be estimated jointly with Offset O when a number of periodic observations of O i,j have been collected This amounts to a standard least-squares line regression problem

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Synchronization in a Broadcast Domain  Elson et al –measured pairwise differences in timestamping times at a set of receivers –when timestamping happens in the interrupt routine (Berkeley motes)  This is just the distribution of the differences t 3,i -t 3,j

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Synchronization in a Broadcast Domain  Communication costs: –Be n the number of nodes in the broadcast domain 1.scheme: reference node collects the observations of the nodes, computes the offsets and sends them back  2 n packets 2.scheme: reference node collects the observations of the nodes, computes the offsets and keeps them, but has responsibility for timestamp conversions and forwarder selection  n packets 3.scheme: each node transmits its observation individually to the other members of the broadcast domain –  n (n-1) packets 4.scheme: each node broadcasts its observation –  n packets, but unreliable delivery  Collisions: –The reference packets trigger all nodes simultaneously  Computational costs –least-squares approximation is not cheap!

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Network Synchronization

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Network Synchronization  Suppose that: –node 1 has detected an event at time L 1 (t) –the sink is connected to a GPS receiver and has UTC timescale –node 1 wants to inform the sink about the event such that the sink receives a timestamp in UTC timescale –Broadcast domains are indicated by “circles”  Timestamp conversion approach: –Idea: do not synchronize all nodes to UTC time, but convert timestamps as packet is forwarded from node 1 to the sink  avoids global synch –Node 1 picks node 3 as forwarder – as they are both in the same broadcast domain, node 1 can convert the timestamp L 1 (t) into L 3 (t) –Node 3 picks node 5 in the same way –Node 5 is member in two broadcast domains and knows also the conversion parameters for the next forwarder 9 –And so on... –Result: the sink receives a timestamp in UTC timescale! –Nodes 5, 8 and 9 are gateway nodes!

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No RBS – Network Synchronization  Forwarding options: –Let each node pick its forwarder directly and perform conversion, the reference nodes act as mere pulse senders –Let each node transmit its packet with timestamp to reference node, which converts timestamp and picks forwarder This way a broadcast domain is not required to be fully connected –In either case the clock of the reference nodes is unimportant  How to create broadcast domains? –In large domains (large m) more packets have to be exchanged –In large domains fewer domain-changes have to be made end-to-end, which in turn reduces synchronization error –This is essentially a clustering problem, forwarding paths and gateways have to be identified by routing mechanisms

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Overview  The time synchronization problem  Protocols based on sender/receiver synchronization  Protocols based on receiver/receiver synchronization  Summary

University of Freiburg Institute of Computer Science Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks Lecture No Summary  Time synchronization –important for both WSN applications and protocols –Using hardware like GPS receivers is typically not an option, so extra protocols are needed  Post-facto synchronization –allows time-synchronization on demand –otherwise clock drifts would require frequent re-synchronization constant energy drain  Some of the presented protocols take significant advantage of WSN peculiarities like: –small propagation delays –the ability to influence the node firmware to timestamp outgoing packets late, incoming packets early  More schemes exist....

16 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Thank you (and thanks go also to Andreas Willig for providing slides) Wireless Sensor Networks Christian Schindelhauer 15th Lecture