The Recursive Time Synchronization Protocol for Wireless Sensor Networks

Similar documents
Time Synchronization in Wireless Networks

Reliable Time Synchronization Protocol for Wireless Sensor Networks

The Flooding Time Synchronization Protocol

Robust Multi-Hop Time Synchronization in Sensor Networks

Chapter 6 Ti T me m s ynchronization

Time Synchronization Strategies in Wireless Sensor Network: A Review

Enhanced Timing-Sync Protocol for Sensor Networks

Chapter 6 Time synchronization

A Survey of Time Synchronization Protocols for Wireless Sensor Networks

Time Synchronization in Wireless Sensor Networks: CCTS

Fault-Tolerant WSN Time Synchronization*

Tri-Message: A Lightweight Time Synchronization Protocol for High Latency and Resource-Constrained Networks

Wireless Sensor Networks: Clustering, Routing, Localization, Time Synchronization

Precision Time Synchronization using IEEE 1588 for Wireless Sensor Networks

Research Article Real-Time Performance Evaluation for Flooding and Recursive Time Synchronization Protocols over Arduino and XBee

Implementation of a Network-wide Time Synchronization Strategy for WirelessHART Sheng Zhang, Zhongsheng Xiang, Jie Chen

Ratio-based time synchronization protocol in wireless sensor networks

Accuracy-Driven Synchronization Protocol

Symmetric Clock Synchronization in Sensor Networks

Time Synchronization of Cognitive Radio Networks

David (Bong Jun) Choi (Supervisor: Xuemin (Sherman) Shen) Department of Electrical and Computer Engineering University of Waterloo

DATS: A Distributed Algorithm for Time Synchronization in Wireless Sensor Network

A Tale of Two Synchronizing Clocks

Sabareesan M, Srinivasan S*,John Deva Prasanna D S

Institute for Software Integrated Systems Vanderbilt University Nashville Tennessee TECHNICAL REPORT

Enhanced Precision Time Synchronization for Wireless Sensor Networks

MTSF: A Timing Synchronization Protocol to Support Synchronous Operations in Multihop Wireless Networks

FTSP+: A MAC Timestamp independent flooding time synchronization protocol

Robust and Secure Time Synchronization against Sybil Attacks for Sensor Networks

Luca Schenato Workshop on cooperative multi agent systems Pisa, 6/12/2007

Impact of Node Velocity and Density on Probabilistic Flooding and its Effectiveness in MANET

The Flooding Time Synchronization Protocol

State-Based Synchronization Protocol in Sensor Networks

PERFORMANCE EVALUATION OF DSR USING A NOVEL APPROACH

RT-Link: A global time-synchronized link protocol for sensor networks Anthony Rowe, Rahul Mangharam, Raj Rajkumar

Synchronization in Sensor Networks

Mobile beacon-based adaptive time synchronization for wireless sensor networks

Energy Efficient Time Synchronization in WSN for Critical Infrastructure Monitoring

Fig. 2: Architecture of sensor node

Maintenance of Time Synchronization in Wireless Adhoc Networks in Case of Node Destruction

Node Heterogeneity for Energy Efficient Synchronization for Wireless Sensor Network

Gradient Clock Synchronization in Wireless Sensor Networks

A COMPARISON OF REACTIVE ROUTING PROTOCOLS DSR, AODV AND TORA IN MANET

TOSSIM simulation of wireless sensor network serving as hardware platform for Hopfield neural net configured for max independent set

Kun Sun, Peng Ning Cliff Wang An Liu, Yuzheng Zhou

Comparison of Two Synchronization Protocol in Wireless Sensor Network

A Distributed Multihop Time Synchronization Protocol for Wireless Sensor Networks using Pairwise Broadcast Synchronization

Danish Sattar 2013 i

Delay Analysis of ML-MAC Algorithm For Wireless Sensor Networks

SECURE AND EFFICIENT HYBRID APPROACH FOR DATA TRANSMISSION IN ZIGBEE NETWORK

A Time Synchronized Wireless Sensor Tree Network using SimpliciTI

"Comparative study of: Different Time synchronization Techniques in WSN."

Ad Hoc Networks: Issues and Routing

A Low-Energy Adaptive and Distributed MAC Protocol for Wireless Sensor-Actuator Networks

A Location-based Directional Route Discovery (LDRD) Protocol in Mobile Ad-hoc Networks

Mitigating Superfluous Flooding of Control Packets MANET

Testbed Implementation of A Secure Flooding Time Synchronization Protocol

COMPARATIVE STUDY AND ANALYSIS OF AODTPRR WITH DSR, DSDV AND AODV FOR MOBILE AD HOC NETWORK

Delay Measurement Time Synchronization for Wireless Sensor Networks

An Energy-Efficient MAC using Dynamic Phase Shift for Wireless Sensor Networks

Research Article Extension of Pairwise Broadcast Clock Synchronization for Multicluster Sensor Networks

Effect of Variable Bit Rate Traffic Models on the Energy Consumption in MANET Routing Protocols

Sensor Network Protocols

End-To-End Delay Optimization in Wireless Sensor Network (WSN)

A Distributed Multihop Time Synchronization Protocol for Wireless Sensor Networks using Pairwise Broadcast Synchronization

Ad hoc and Sensor Networks Time Synchronization

Secure Time Synchronization Protocols for Wireless Sensor Networks

Appointed BrOadcast (ABO): Reducing Routing Overhead in. IEEE Mobile Ad Hoc Networks

Data gathering using mobile agents for reducing traffic in dense mobile wireless sensor networks

Synchronization of DLMS/COSEM sensor nodes

Mobile Agent Driven Time Synchronized Energy Efficient WSN

QoS Routing By Ad-Hoc on Demand Vector Routing Protocol for MANET

Speculative Precision Time Protocol: submicrosecond clock synchronization for the IoT

Using Hybrid Algorithm in Wireless Ad-Hoc Networks: Reducing the Number of Transmissions

Last Class: Naming. Today: Classical Problems in Distributed Systems. Naming. Time ordering and clock synchronization (today)

Resource-Constrained Medium Access Control Protocol for Wearable Devices

ANewRoutingProtocolinAdHocNetworks with Unidirectional Links

Review Article A Comparison of Clock Synchronization in Wireless Sensor Networks

CS555: Distributed Systems [Fall 2017] Dept. Of Computer Science, Colorado State University

Time Synchronization in Wireless Sensor Network: Techniques, Issues and Recommendations

Detection of Wormhole Attacks in Wireless Sensor Networks

DYNAMIC SEARCH TECHNIQUE USED FOR IMPROVING PASSIVE SOURCE ROUTING PROTOCOL IN MANET

Research Article Energy Efficient Clustering Based Network Protocol Stack for 3D Airborne Monitoring System

A Highly Effective and Efficient Route Discovery & Maintenance in DSR

Arvind Krishnamurthy Fall 2003

Dynamic Search Technique Used for Improving Passive Source Routing Protocol in Manet

Realization of Fault Tolerant Routing Protocol for Zigbee

Figure 1. Clustering in MANET.

Secure Routing in Manet Using Synchronization and Data Authencity

An Industrial Employee Development Application Protocol Using Wireless Sensor Networks

Analysis QoS Parameters for Mobile Ad-Hoc Network Routing Protocols: Under Group Mobility Model

Last Class: Naming. DNS Implementation

Elapsed Time on Arrival: A simple and versatile primitive for canonical time synchronization services

INTRODUCTION TO WIRELESS SENSOR NETWORKS. CHAPTER 7: TIME SYNCHRONIZATION Anna Förster

Balanced Load Sharing Protocol for Wireless Sensor Networks

Synchronization in Wireless Sensor Networks: Parameter Estimation, Performance Benchmarks and Protocols

QUALITY OF SERVICE EVALUATION IN IEEE NETWORKS *Shivi Johri, **Mrs. Neelu Trivedi

Improving Performance in Ad hoc Networks through Location based Multi Hop Forwarding

Experimental Demonstration of Super-TDMA: A MAC Protocol Exploiting Large Propagation Delays in Underwater Acoustic Networks

FTA-MAC: Fast Traffic Adaptive energy efficient MAC protocol for Wireless Sensor Networks

Transcription:

The Recursive Time Synchronization Protocol for Wireless Sensor Networks M. Akhlaq, and Tarek R. Sheltami College of Computer Science & Engineering, King Fahd University of Petroleum & Minerals, Saudi Arabia. akhlaq@kfupm.edu.sa, tarek@kfupm.edu.sa

Outline Introduction Related Work System Model The Recursive Time Synchronization Protocol (RTSP) Sources of Efficiency Analysis of the Sources of Errors Performance Evaluation Conclusions and Future Work References Slide # 2/27

Slide # 3/27 Introduction Applications of Wireless Sensor Networks need accurate time synchronization (usually < 1µs) for: time-stamping of messages data fusion and aggregation time-based localization TDMA-based medium access sleep scheduling cooperative communication coordinated actuation, etc. Synchronization can be achieved through: ordering of events local time synchronization global time synchronization. synchronizes all network nodes with one global clock. e.g., RBS, TPSN, FTSP, etc.

Related Work 1. Reference Broadcast Synchronization (RBS) a reference node broadcasts a beacon, receivers note the reception time, and then exchange it with each other to calculate the relative offset. average accuracy of 29.1µs in single hop network. 2. Timing-sync Protocol for Sensor Networks (TPSN) makes a spanning tree of the network and then performs pair-wise synchronization along the edges at each level. MAC-layer time-stamping at the sender side only. nodes find the relative offset and prop. delay but no drift. average accuracy is 16.9µs for single hop and less than 20µs for multi-hop network. Slide # /27

Cont... Flooding Time Synchronization Protocol (FTSP) elects a reference node to frequently floods timing info. MAC-layer time-stamping at both sender and receiver sides, at the end of each byte after SYNC byte (normalized, averaged, error corrected, and final timestamp is used). nodes collect at least 8 data points, estimate the offset and skew using LSLR, be synchronized, and start flooding. single hop accuracy of 1.8µs; 0.5µs per hop in multi-hop. Other protocols. Time-stamping based on Start of Frame Delimiter (SFD) byte to enhance the accuracy and energy consumption [5]. SFD-based time-stamping and Kalman-filter [6] to achieve single hop accuracy of 0.µs. Slide # 5/27

Slide # 6/27 Cont... Issues: Accurate but consume high energy and poorly synchronize the distant nodes. RTSP uses a novel combination of techniques: SFD-based time-stamping compensation of the propagation delay and adjustment of the timestamps at each hop drift & skew estimation using LSLR on 2data points (2LR) infrequent broadcasts by the reference node adaptive re-synchronization interval request aggregation energy-awareness average accuracy: 0.3µs per hop in a multi-hop network; energy usage: 1/5th of the FTSP.

Slide # 7/27 System Model simple linear model for clock [7]: C ( t) t i i where C i (t) is the time read by logical clock of the ith node, α i is the clock offset at the reference time t=0, and β i is the clock skew or frequency. re-synchronize within T δ/2ρ, where δ is the relative offset and ρ is the skew rate. without frequent re-synchronizations, estimate the relative offset and drift to keep their clocks synchronized. i

Cont... Assumptions sensor nodes have unique IDs from 0 to n 1. messages can be time-stamped at MAC-layer. wireless channel is unreliable but error-corrected. broadcasting is supported. skew and connectivity remain constant during the short interval between sync request and reply. Prop. delay in one direction is equal to the other. a simple linear relationship exists between the clocks of two nodes in a short duration. Slide # 8/27

Cont... Time-stamping SFD-based time-stamping at MAC-layer: simpler, faster and more accurate, but can t compensate prop. delay. Figure 1. IEEE 802.15. MAC frame and the time-stamping Slide # 9/27

Structure of the RTSP messages Field Description Cont... msgtype Type of the message: ERN: enquiry/election of the reference node. REQ: request for time synchronization. REP: reply for time synchronization. msgid ID of the message. originid ID of the node that initiated the message. imsrcid ID of the immediate source that forwarded the message. imdestid ID of the immediate destination for message forwarding. refnodeid ID of the reference node that a node knows. (-1 for REF enquiry) T1 Local time when the message was sent or forwarded. T2 Local time when the message was received. (Null for a request) T3 Local time when reply was sent or forwarded. (Null for a request) Tr Time at ref. node when reply sent or forwarded. (Null for request) RTSP (msgtype, msgid, originid, imsrcid, imdestid, refnodeid, T1, T2, T3, Tr); Slide # 10/27

Cont... Recursion and Multi-hop Synchronization Figure 2. The request-and-reply mechanism in RTSP Slide # 11/27

The Recursive Time Synchronization Protocol (RTSP) After WSN boots up, nodes wait for some time, and then broadcast an RTSP-ERN message to enquire their neighbours about the ID of reference node. The nodes wait for the duration T or until a reply is received, and then run repeatedly the adaptiveresync algorithm (algorithm 3) which calls the RTSP algorithm (algorithm 2) to elect a single reference node, and compensate the offset and drift. Slide # 12/27 Algorithm 1: main 1. Start up the node to join the network; 2. Declare Variables: myref=null, myclient[]=null, 3. Wait (myid); // smaller ID means shorter wait.. RTSP( ERN, msgid, myid, myid, *, -1, T1, 0, 0, Tr); 5. Wait for duration T or until a reply is received; 6. Do 7. Run adaptiveresync algorithm; // uses RTSP algorithm 8. // other processing. 9. While (true);

Algorithm 2: RTSP 1. // Runs on receiving a new msg that is authenticated as well. 2. If msg-->msgtype == ERN then 3. T2 = timestamp after SFD byte has been received;. If msg-->refnodeid < 0 AND myref not empty then 5. // it s an enquiry; reply if reference node ID known 6. T3 = timestamp after SFD byte has been sent; 7. RTSP( ERN, msg-->msgid, myid, myid, 8. msg-->imsrcid, myref, msg-->t1, T2, T3, Tr); 9. Else if (msg-->refnodeid >=0 AND myref is empty) OR 10. myref > msg-->refnodeid then 11. // reference node unknown/expired; accept new one 12. myref = msg-->refnodeid; 13. RTSP( ERN, msg-->msgid, msg-->originid, 1. myid, *, msg-->refnodeid, 0, 0, 0, Tr); 15. Else if myid < msg-->refnodeid AND myenergy > low then 16. // smaller ID & fair energy; contest for reference node 17. myref = myid; 18. RTSP( ERN, msgid, myid, myid, *, myid, 0, 0, 0, Tr); Cont... Slide # 13/27 ( Continued )

Cont... Slide # 1/27 19. Else if myref == msg-->refnodeid AND 20. myid!= msg-->originid AND msg-->msgid is new then 21. // new msg from reference node; & hence rebroadcast 22. RTSP( ERN, msg-->msgid, msg-->originid, 23. myid, *, msg--> refnodeid, 0, 0, 0, Tr); 2. End if 25. Else if msg-->msgtype == REQ then 26. T2 = timestamp after SFD byte has been received; 27. If myid == refnodeid OR I m synchronized then 28. // reply as reference node or a synchronized node 29. T3 = timestamp after SFD byte has been sent; 30. Tr = T3; 31. RTSP( REP, msg-->msgid, msg-->originid, myid, 32. msg-->imsrcid, myid, msg-->t1, T2, T3, Tr); 33. Else // save T1, T2, and source and make recursive call 3. T1old = msg-->t1, T2old = T2; 35. myclient = msg-->imsrcid; 36. T1 = timestamp after SFD byte has been sent; 37. RTSP( REQ, msg-->msgid, msg-->originid, myid, 38. myref, myref, T1, 0, 0, Tr); 39. End if ( Continued )

Cont... 0. Else if msg-->msgtype == REP then 1. // calculate d, adjust & record timestamp, & forward msg 2. T = timestamp after SFD byte has been received; 3. d = ((msg-->t2 msg-->t1) + (T msg-->t3)) / 2 ;. Tr = msg-->tr + d; 5. Record timestamps global=tr & local=t; 6. If myid!= msg-->originid AND myclient is not empty then 7. // recover old values of T1 & T2; and forward the msg 8. T1 = T1old, T2 = T2old; 9. T3 = timestamp after SFD byte has been sent 50. Tr = Tr + (T3 T) ; // add the elapsed time since T 51. RTSP( REP, msg-->msgid, msg-->originid, myid, 52. myclient, msg-->refnodeid, msg-->t1, T2, T3, Tr); 53. End if 5. End if Slide # 15/27

Cont... Algorithm 3: adaptiveresync 1. Check if any new RTSP msg received (or overheard); 2. If new msg is received that is authenticated as well then 3. Run RTSP algorithm (algorithm 2);. End if 5. If no new ERN msg is received for period T AND 6. myid!= myref AND myenergy > low then 7. // no new msg for period T, so contest for new reference node 8. myref = myid; 9. RTSP( ERN, msgid, myid, myid, *, myid, 0, 0, 0, Tr); 10. End if 11. If myid == myref AND didn t broadcast for period T AND 12. myenergy > low then 13. // an active reference node broadcasts every after period T 1. RTSP( ERN, msgid, myid, myid, *, myid, 0, 0, 0, Tr); 15. End if ( Continued ) Slide # 16/27

Cont... 16. If ((a new REP msg overheard OR ERN msg received) AND 17. myref == msg-->refnodeid AND 18. local time is much different than msg-->tr ) OR 19. skew is much lesser or greater than 1 then 20. // node is out of synchronization; it s time to send request 21. RTSP( REQ, msgid, myid, myid, myref, myref, T1,0,0, Tr); 22. End if 23. If two data points, including one new, are available then 2. Calculate α and β using the last two data points; 25. Update the local clock to become synchronized; 26. End if Slide # 17/27

Sources of Efficiency 1. Adaptive Re-Synchronization Interval send RTSP-REQ only when current value of skew is away form 1 or the local time is much deviated from global time 2. Aggregation of the Synchronization Requests intermediate node temporarily saves msgid, myclient, T1 and T2 for recent requests and forwards only one request. it forwards reply to each node in myclient accordingly. 3. Security Redundancy, authentication, discarding the corrupt info.. Energy-awareness and Efficiency high-energy reference node, broadcast frequency 1/10th Slide # 18/27 of the FTSP, and due to above features.

Analysis of the Sources of Errors The request-and-reply mechanism of RTSP is similar to TPSN but recursive Let A sends request at T1 that is received by node B at T2 according to their local clocks. T 2 RD T A B T1 P A B Dt 1 A B t1 t A B A B Dt 1 Dt A B A B 2 T1 PA B Dt RDt 1 t (relative drift from t1 to t) (by solving above eqs) Slide # 19/27

Cont... After the completion of recursive calls, node B at time T3 sends the reply to node A which receives it at T according to their local clocks. B A A B or T T To correct the clock at T at node A: Slide # 20/27 T3 P B A Dt 3 T T3 P B A Dt A B A B A B 2 T T1 PA B Dt RDt1 t T3 PB A Dt ( T 2 UC A B A B 2 T1 ) ( T T3 ) P RDt 1 t 2Dt UC A B A B P RDt 1 t 2Dt Error D A B t P 2 UC A RDt1 2 B t (sub) (re-arrange)

So, the sources of errors are: 1. Variation in Propagation Delays (P UC ): Usually negligible in WSNs due to short range. Cont... A B 2. Relative Drift between Local Clocks ( RD ): Calculate α & β using 2LR as: t1 t ( x1 x2)/( y1 y2) y x where xi and yi are global and local timestamp Slide # 21/27

Performance Evaluation Simulation parameters for RTSP algorithm: Parameter Description No. of nodes 20, 50, 100, 200, 500 Topology Random Deployment area 50m x 50m to 500m x 500m Mobility High (pause time 0) Mobility model Random Walk Processing delay (at each node) 1ms 100ms No of simulations (results averaged) 1000 Channel Wireless MAC IEEE 802.15./ ZigBee Antenna Omni Transmission range 30 m Routing protocol AODV [13] Slide # 22/27

Cont... Figure 3. Average absolute error of time synchronization Slide # 23/27

Cont... Figure. Average absolute error of time synchronization (per-hop) Slide # 2/27

Cont... Figure 5. Total energy consumption in the long run (for 100 nodes) Slide # 25/27

Conclusions and Future Work RTSP algorithm for global time synchronization main sources of errors: the variations in propagation delays and relative drift...(are duly compensated). average accuracy: of 0.3µs per hop; achieved by: SFD-based MAC-layer time-stamping, compensation of the prop. delay and adjustment of timestamps at each hop. energy usage : 1/5th of the FTSP; achieved through infrequent reference broadcasts, and reducing the number of time synchronization requests through the adaptive resynchronization interval and request-aggregation. future work: performance evaluation on real nodes using TinyOS. testing on clustered WSNs; better performance?. Slide # 26/27

References 1. M. Maróti, B. Kusy, G. Simon, and Á. Lédeczi, The flooding time synchronization protocol, in Proceedings of the 2nd International Conference on Embedded Networked Sensor Systems (SenSys 0), New York, USA, 200, pp. 39 9. 2. D. L. Mills, Internet time synchronization: The network time protocol, IEEE Transactions on Communications, vol. 39, no. 10, pp. 182 193, 1991. 3. J. Elson, L. Girod, and D. Estrin, Fine-grained network time synchronization using reference broadcasts, ACM SIGOPS Operating Systems Review, vol. 36, no. SI, pp. 17 163, 2002.. S. Ganeriwal, R. Kumar, and M. B. Srivastava, Timing-sync protocol for sensor networks, in Proc. of the 1st International Conference on Embedded Networked Sensor Systems (SenSys 03), 2003, pp. 138 19. 5. D. Cox, E. Jovanov, and A. Milenkovic, Time synchronization for ZigBee networks, in System Theory, 2005. SSST 05. Proceedings of the Thirty-Seventh Southeastern Symposium on, pp. 135 138. 6. M. Aoun, A. Schoofs, and P. van der Stok, Efficient time synchronization for wireless sensor networks in an industrial setting, in Proceedings of the 6th ACM Conference on Embedded Network Sensor Systems (SenSys 08), New York, NY, USA, 2008, pp. 19 20. 7. A. Hu and S. D. Servetto, Asymptotically optimal time synchronization in dense sensor networks, in Proc. of the 2nd ACM international conference on Wireless sensor networks and applications, 2003, pp. 1 10. 8. H. Kopetz and W. Ochsenreiter, Clock synchronization in distributed real-time systems, Computers, IEEE Transactions on, vol. 100, no. 8, pp. 933 90, 1987. 9. Y. C. Wu, Q. Chaudhari, and E. Serpedin, Clock synchronization of wireless sensor networks, Signal Processing Magazine, IEEE, vol. 28, no. 1, pp. 12 138, 2011. 10. M. Roche, Time Synchronization in Wireless Networks, CSE57S: Advanced Topics in Networking: Wireless and Mobile Networking (Spring 2006), Washington University in St. Louis., 23-Apr-2006. [Online]. Available: http://www.cs.wustl.edu/~jain/cse57-06/ftp/time_sync/index.html. [Accessed: 23-Dec-2011]. 11. Y. Wang, G. Attebury, and B. Ramamurthy, A survey of security issues in wireless sensor networks, IEEE Comm. Surveys & Tutorials, vol. 8, no. 2, pp. 2 23, 2006. 12. V. C. Giruka, M. Singhal, J. Royalty, and S. Varanasi, Security in wireless sensor networks, Wireless comm. and mobile computing, vol. 8, no. 1, pp. 1 2, 2008. 13. Das, S. and Perkins, C. and Royer, E., Ad hoc on-demand distance vector (AODV) routing,, Mobile Ad-hoc Network (MANET) Working Group, IETF, 2002. Slide # 27/27