MONET 05 Time Synchronization In Wireless Sensor Networks Anisha Menon.

Slides:



Advertisements
Similar presentations
Dynamic Source Routing (DSR) algorithm is simple and best suited for high mobility nodes in wireless ad hoc networks. Due to high mobility in ad-hoc network,
Advertisements

An Improved TCP for transaction communications on Sensor Networks Tao Yu Tsinghua University 2/8/
Energy-Efficient Distributed Algorithms for Ad hoc Wireless Networks Gopal Pandurangan Department of Computer Science Purdue University.
The Flooding Time Synchronization Protocol
Time Synchronization - using Reference-Broadcast Synchronization
高度情報化社会を支えるネットワーキング技術 (大阪大学 工学部説明会資料)
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.
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
Multicasting in Mobile Ad hoc Networks By XIE Jiawei.
An Adaptive Compulsory Protocol for Basic Communication in Ad-hoc Mobile Networks Ioannis Chatzigiannakis Sotiris Nikoletseas April 2002.
April 28 th 2005 Time Synchronization in Sensor Networks 1 Time synchronization in sensor networks Presented by: Nirav Jasapara Graduate Student, USC.
Synchronization.
HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
CSLI 5350G - Pervasive and Mobile Computing Week 3 - Paper Presentation “RPB-MD: Providing robust message dissemination for vehicular ad hoc networks”
Time and Global States Ali Fanian Isfahan University of Technology
Time Synchronization for Wireless Sensor Networks
Luca De Nardis Ranging and positioning in UWB ad- hoc networks Problem definition.
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.
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.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 15th Lecture Christian Schindelhauer.
The Flooding Time Synchronization Protocol
Time Synchronization Murat Demirbas SUNY Buffalo.
Novel Self-Configurable Positioning Technique for Multihop Wireless Networks Authors : Hongyi Wu Chong Wang Nian-Feng Tzeng IEEE/ACM TRANSACTIONS ON NETWORKING,
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.
EEC-681/781 Distributed Computing Systems Lecture 10 Wenbing Zhao Cleveland State University.
Lecture 12 Synchronization. EECE 411: Design of Distributed Software Applications Summary so far … A distributed system is: a collection of independent.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lewis Girod, and Deborah Estrin U.C.L.APresenter: Todd Fielder.
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.
Timing-sync Protocol for Sensor Networks (TPSN) Presenter: Ke Gao Instructor: Yingshu Li.
Fine-Grained Network Time Synchronization Using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin University of California, Los Angeles.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
Time of arrival(TOA) Prepared By Sushmita Pal Roll No Dept.-CSE,4 th year.
A Framework for Energy- Saving Data Gathering Using Two-Phase Clustering in Wireless Sensor Networks Wook Chio, Prateek Shah, and Sajal K. Das Center for.
Clock Synchronization in Sensor Networks Mostafa Nouri.
© 2002, Cisco Systems, Inc. All rights reserved..
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Computer Networks with Internet Technology William Stallings
Load-Balancing Routing in Multichannel Hybrid Wireless Networks With Single Network Interface So, J.; Vaidya, N. H.; Vehicular Technology, IEEE Transactions.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Energy and Latency Control in Low Duty Cycle MAC Protocols Yuan Li, Wei Ye, John Heidemann Information Sciences Institute, University of Southern California.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
A Passive Approach to Sensor Network Localization Rahul Biswas and Sebastian Thrun International Conference on Intelligent Robots and Systems 2004 Presented.
Time synchronization for UWSN. Outline Time synchronization knowledge Typical time sync protocol Time sync in UWSN Discussion.
TIMING-SYNC PROTOCOL FOR SENSOR NETWORKS Presented by: Shet, Deepak Rajput, Rajiv.
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.
Time Synchronization Protocols in Wireless Sensor Networks.
Physical clock synchronization Question 1. Why is physical clock synchronization important? Question 2. With the price of atomic clocks or GPS coming down,
Efficient Resource Allocation for Wireless Multicast De-Nian Yang, Member, IEEE Ming-Syan Chen, Fellow, IEEE IEEE Transactions on Mobile Computing, April.
UNIT IV INFRASTRUCTURE ESTABLISHMENT. INTRODUCTION When a sensor network is first activated, various tasks must be performed to establish the necessary.
Toward Reliable and Efficient Reporting in Wireless Sensor Networks Authors: Fatma Bouabdallah Nizar Bouabdallah Raouf Boutaba.
Relying on Safe Distance to Achieve Strong Partitionable Group Membership in Ad Hoc Networks Authors: Q. Huang, C. Julien, G. Roman Presented By: Jeff.
Distributed Systems Lecture 5 Time and synchronization 1.
Wireless sensor and actor networks: research challenges Ian. F. Akyildiz, Ismail H. Kasimoglu
Wireless Sensor Network Architectures
Time and Global States Ali Fanian Isfahan University of Technology
Net 435: Wireless sensor network (WSN)
Net 435: Wireless sensor network (WSN)
Overview: Chapter 4 Infrastructure Establishment
Presentation transcript:

MONET 05 Time Synchronization In Wireless Sensor Networks Anisha Menon

The need for physical time synchronization Object tracking Consistent state updates Distributed beam forming Duplicate detection Temporal order delivery Energy conservation

Characterizing Time Synchronization Precision Lifetime Scope and Availability Efficiency Cost and Size

Constraints of existing methods Network Time Protocol (NTP)[8] connectionless messaging protocol exchange of clock information between clients and one/few servers algorithm for updating local server Assumptions made for internet are not applicable to sensor networks Energy inefficiencies Hardware heterogeneity Lack of infrastructure Mobility of nodes Disconnected nodes

Design Principles Tradeoff between Energy Precision Scope Lifetime Cost Tiered architecture Tunable – Adaptive Fidelity No Global Timescale

Sources of Time Sync Error[9] Send Time time spent to construct message Access Time delay incurred waiting for access to the transmission channel Propagation Time time required for transit of message from sender to receiver Receive Time time required for receivers network interface to receive the message and notify host of its arrival

REFERENCE BROADCAST SYNCHRONIZATION[3] Assumptions a message that is broadcast at the physical layer will arrive at a set of receivers with very little variability in its delay propagation time for message is zero the receiver jitter is less than a single bit time Single Hop Time Synchronization Estimation of phase offset 1. A transmitter broadcasts a reference packet to two receivers (i and j). 2. Each receiver records the time that the reference was received according to its local clock. 3. The receivers exchange their observations.

A njnj nini Reference packet Exchange Information

Estimation of clock skew Perform a least-squares linear regression on the phase offsets. This offers a fast, closed-form method for finding the best fit line through the phase error observations over time. The frequency and phase of the local node's clock with respect to the remote node can be recovered from the slope and intercept of the line. Each point is the difference between the times that the two nodes reported receiving a reference broadcast plotted on a timescale defined by one node's clock. T r,b = rs clock when it received broadcast b for each pulse k And plot x = T r1,b y = T r2,b – T r1,b The line represents the best linear fit to the data.

Multiple Hop Time Synchronization AB E2E1 Timebase conversions – E 1 (N 1 ) E 1 (N 4 ) E 1 (N 7 ) E1 = A + 2 E7 = B - 4 A = B + 10 E1 = E7 + 16

The synchronization error introduced by reference broadcast is Gaussian. The per hop contribution to error are independent because of phase and skew estimates being calculated for every broadcast. The total path error will also have Gaussian distribution. If standard deviation along path is σ, then for n hops the error is σn synchronization with external timescales To achieve synchronization with external timescales, a GPS receiver can be connected to one of the nodes. It can give out reference signals in the form of pulse per second signals of the GPS receiver. Other nodes in the system will align themselves to the node via single or multi-hop methods.

RBS was tested against NTP In light traffic conditions, RBS performed 8 times better than NTP. Under heavy traffic scenario, RBS performance was affected only slightly while NTP performance degraded drastically.

Advantages of RBS The largest source of nondeterministic latency (send and access time delays) can be removed from critical path by using broadcast channel to synchronize receivers with one another. RBS broadcast always used as a relative time reference. This further reduces the error due to send and access time delay. Multiple broadcasts used to overcome large offset differences at receiver. Precision of synchronization is increased and larger group size of nodes can be accommodated in the single-hop stage. RBS allows construction of local timescales. Outliers and lost packets are handled gracefully by best fit method. RBS can be used for post-facto synchronization.

Disadvantages of RBS It assumes presence of a broadcast channel. The multi-hop algorithm relies on effective clustering of nodes around broadcast groups as well as overlap of clusters for inter-cluster synchronization. It has a complexity of O(mn 2 ) - for each of the m received reference packets, a node exchanges information with all n-1 receivers. It assumes that two receivers lying within the range of a single sender can communicate with each other.

TINY/MINI TIME SYNCHRONIZATION SCHEME[1] Features Low computation and storage complexity Tight bounds on precision Tight, deterministic bounds on estimates of offset and drift of clocks Insensitivity to communication errors

Data Collection Algorithm The hardware clock of node i is a monotonically non- decreasing function of t where t is the Coordinated Universal Time (UTC) The oscillators frequency depends on the ambient conditions but can be approximated with good accuracy by an oscillator with fixed frequency: t i (t) = a i t + b i where a i = drift of node is clock b i = offset of node is clock

Consider 2 nodes 1 and 2, with their hardware clocks t 1 (t) and t 2 (t). t 1 and t 2 are linearly related by t 1 (t) = a 12 t2(t) + b 12 a 12 = relative drift b 12 = relative offset toto tbtb trtr The three time stamps form a data-point which limit the possible values of a 12 and b 12 t o (t) < a12t b (t) + b 12 t r (t) > a12t b (t) + b 12 t1t1 t2t2

a 12 and b 12 can be bounded by, True parameters a 12 and b 12 estimated as, where -

Node 2 usually takes some time to respond to the probe message. This will not affect the analysis, if node 2 time-stamps the probe message upon receipt and resending. However as the delay t 0 and t r increases, the precision of the estimates will decrease. To decrease the overhead of the algorithm, probes can be piggybacked on data messages.

TINY SYNC We dont need all 3 data points to estimate a 12 and b 12 bounds. Keep only 4 data constraints that define the best bounds. On arrival of new data points the two new constraints are compared with existing four constraints and two constraints are discarded. Despite being efficient, the algorithm does not always reach the optimal value. On analysis the difference in performance between tiny and mini sync algorithm is only 2%.

MINI SYNC Upon receipt of a new data point the algorithm checks if the new constraints can eliminate any old constraints. A constraint A j which satisfies the following condition can be discarded where m(X,Y) = slope of line joining X and Y Experiments showed that 40 data points were enough to obtain the optimum result.

Aj can be discarded and keep Ai, Ak

Synchronizing an Entire Network Node s synchronies to node u and node u synchronizes with node v If u sends its bounds to s, then s can compute the bounds where - Use the synchronization transitivity to obtain synchronization over the network

The network is logically organized as a hierarchy. Data fusion takes place at nodes at upper levels. If nodes synchronize with a root node, the precision decreases linearly with number of layers spanning from root node. Instead nodes should synchronize with the fusion nodes in the layer immediately above it. Nodes in the intermediate level i synchronizes with nodes in layer i-1. If a node reports to more than one intermediate node, the node will synchronize with all of them.

Experimental Result Bounds for a 12 and a 12 samples Lower and upper bounds on a 12 samples a 12

Bounds for b 12 and b 12 samples Lower and upper bounds on b 12 b 12

LIGHTWEIGHT TREE BASED SYNCHRONIATION SCHEME[5] It exploits the relaxed constraints on accuracy for sensor networks. For a single-hop, pair-wise synchronization is used. Multi-hop synchronization consists of pair-wise synchronizations along the network edges that form a spanning tree. Multi-hop synchronizations require only n-1 pair-wise synchronizations for a network of n nodes. Focus on minimizing overhead (energy) and being robust and self configuring.

Pair-Wise Synchronization Node j transmits 1 st packet with timestamp t 1. Node k records time t 2 when it receives packet. t 2 = t 1 + D + d Where D = transmission time, d = phase offset between node j and k clocks Node k transmits a second packet to j that contains t 1 and t 2. Time stamped by k at t 3. Node j receives second packet at time t 4 = t 3 + D – d Offset calculated at node j by t 4 – t 2 = t 1 – t 3 + 2d j k Packet 1 Packet 2 Transmission time D

Multi-Hop Synchronization Assume that at least one node has access to a global time reference. It will be maintained at an accuracy much greater than required by the network. Can perform selective synchronization if desired. Due to clock drift, the nodes have to be periodically resynchronized depending on estimated error.

Centralized Multi-Hop Synchronization Construction of a low depth spanning tree T comprising of network nodes. New spanning tree formed each time algorithm is performed using Distributed Depth First Search (DDFS)[2] or ECHO algorithms. Reference nodes initiates synchronization by synchronizing with all immediate children in T. Each child synchronizes with its subsequent children in T. The algorithm terminates when it reaches leaf nodes. The error for pair-wise sync is Gaussian. Hence a node at depth d in T will have variance in error given by 4*d*σ where σ is receiver variance. The reference node initiates resynchronization which occurs periodically. More efficient when all nodes participate.

Distributed Multi-Hop LTS Pair-wise synchronization done in distributed manner. Algorithm does not use an overlay spanning tree to direct pair-wise synchronization. The individual nodes decide when to resynchronize depending on parameters – accuracy desired, distance from reference node, and time elapsed since last synchronization. When node decides to resynchronize it sends request to nearest reference node. More efficient when certain nodes need frequent resynchronization. Advantage : Nodes can opportunistically synchronize. Disadvantage : Cycles may occur when node at the head of request chain sends synchronization request to a node further down the request chain.

It is dependent on reliability of information being shared between nodes and reference node. Synchronization will fail if clock failure occurs. Disadvantages of LTS

CONCLUSION Time synchronization is a critical piece of infrastructure for any distributed system. Different systems have unique requirements in scope, lifetime, and precision of synchronization achieved as well as energy and time spent to achieve it. Existing algorithms have to be adapted to meet those requirements.

References [1] M.L. Sichitiu and C. Veerarittiphan, Simple, Accurate Time Synchronization for Wireless Sensor Networks. IEEE Wireless Communications and Networking Conference, WCNC 2003 [2] B. Awerbuch, A new distributed depth first search algorithm, Inf. Proc. Lett. 20 (1985), [3] Jeremy Elson, Lewis Girod, and Deborah Estrin. Fine-Grained Network Time Synchronization using Reference Broadcasts. In Proceedings of the Fifth Symposium onOperating Systems Design and Implementation (OSD/2002),Boston, MA, December [4] Santashil PalChaudhuri, Amit Kumar Saha, David B. Johnson. Adaptive Clock Synchronization in Sensor Networks. Proceedings of the third international symposium on Information processing in sensor networks,Berkeley, California.Pages published [5] Jana van Greunen, Jan Rabaey. Lightweight Time Synchronization for Wireless Networks. Proceedings of the 2nd ACM international conference on Wireless sensor networks and applications. San Diego, CA, USA.Pages: ,Year of Publication: 2003 [6] Jeremy Elson, Deborah Estrin. Time Synchronization for Wireless Networks. Parallel and Distributed Processing Symposium., Proceedings 15th International April 2001 Page(s): [7] Jeremy Elson, Kay Romer. Wireless Sensor Networks:New regime for Time Synchronization. in ACM SIGCOMM Computer Communications Review. Vol 33, Jan [8] David L.Mills, Internet Time Synchronization: The Network Time Protocol. In Communications, IEEE Transactions on Volume 39, Issue 10, Oct Page(s): [9] Kopetz,H. Wilhelm Ochsenreiter : Global Time in Distributed Real Time Systems. Technical report 15/89,Technische Universitat Wien, Wien Austria(1989).