The Flooding Time Synchronization Protocol

Similar documents
Robust Multi-Hop Time Synchronization in Sensor Networks

Institute for Software Integrated Systems Vanderbilt University Nashville Tennessee TECHNICAL REPORT

The Flooding Time Synchronization Protocol

A Tale of Two Synchronizing Clocks

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

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

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

Synchronization in Sensor Networks

Time Synchronization in Wireless Networks

Chapter 6 Ti T me m s ynchronization

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

Chapter 6 Time synchronization

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

Time Synchronization in Wireless Sensor Networks: CCTS

Reliable Time Synchronization Protocol for Wireless Sensor Networks

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

Branislav Kusý. Prabal Dutta and Philip Levis. Miklόs Marόti and Ákos Lédeczi*

A Survey of Time Synchronization Protocols for Wireless Sensor Networks

Ad hoc and Sensor Networks Time Synchronization

The Recursive Time Synchronization Protocol for Wireless Sensor Networks

Comparison of Two Synchronization Protocol in Wireless Sensor Network

Clock Synchronization in Sensor Networks for Civil Security

Gradient Clock Synchronization in Wireless Sensor Networks

Presented by: Murad Kaplan

Distributed Systems. 05. Clock Synchronization. Paul Krzyzanowski. Rutgers University. Fall 2017

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

Enhanced Timing-Sync Protocol for Sensor Networks

Ratio-based time synchronization protocol in wireless sensor networks

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

Symmetric Clock Synchronization in Sensor Networks

Synchronization of DLMS/COSEM sensor nodes

Fault-Tolerant WSN Time Synchronization*

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

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

Precision Time Synchronization using IEEE 1588 for Wireless Sensor Networks

Testbed Implementation of A Secure Flooding Time Synchronization Protocol

Time Synchronization Attacks in Sensor Networks

Energy Efficient Time Synchronization in WSN for Critical Infrastructure Monitoring

WSN Routing Protocols

Time Synchronization Strategies in Wireless Sensor Network: A Review

Delay Measurement Time Synchronization for Wireless Sensor Networks

Time Synchronization of Cognitive Radio Networks

Accuracy-Driven Synchronization Protocol

The Timed Asynchronous Distributed System Model By Flaviu Cristian and Christof Fetzer

Globally Synchronized time via Datacenter Networks

Distributed Systems. Clock Synchronization: Physical Clocks. Paul Krzyzanowski

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

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

Etiquette protocol for Ultra Low Power Operation in Sensor Networks

Speculative Precision Time Protocol: submicrosecond clock synchronization for the IoT

Review Article A Comparison of Clock Synchronization in Wireless Sensor Networks

The Emergence of Networking Abstractions and Techniques in TinyOS

Lecture 12: Time Distributed Systems

Exercise Sensor Networks - (till June 20, 2005)

Lecture 10: Clocks and Time

Information Brokerage

Secure Time Synchronization Protocols for Wireless Sensor Networks

Secure Time Synchronization Service for Sensor Networks

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

Configuring STP. Understanding Spanning-Tree Features CHAPTER

The Internet of Things. Thomas Watteyne Senior Networking Design Engineer Linear Technology, Dust Networks product group

A Distributed Consensus-based Clock Synchronization Protocol for Wireless Sensor Networks

Energy Efficient MAC Protocols Design for Wireless Sensor Networks

Sensor Networks. Part 3: TinyOS. CATT Short Course, March 11, 2005 Mark Coates Mike Rabbat. Operating Systems 101

FTSP Protocol Verification using SPIN

What is Multicasting? Multicasting Fundamentals. Unicast Transmission. Agenda. L70 - Multicasting Fundamentals. L70 - Multicasting Fundamentals

FTSP+: A MAC Timestamp independent flooding time synchronization protocol

Introduction to Distributed Systems Seif Haridi

Kapitel 5: Mobile Ad Hoc Networks. Characteristics. Applications of Ad Hoc Networks. Wireless Communication. Wireless communication networks types

CSE 5306 Distributed Systems. Synchronization

Distributed Systems Exam 1 Review Paul Krzyzanowski. Rutgers University. Fall 2016

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

TDMH-MAC: Real-time and multi-hop in the same wireless MAC

Incremental Network Programming for Wireless Sensors. IEEE SECON 2004 Jaein Jeong and David Culler UC Berkeley, EECS

ROUTING ALGORITHMS Part 2: Data centric and hierarchical protocols

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

c 2009 Roberto Solis Robles

CS 856 Latency in Communication Systems

Ad Hoc Networks: Issues and Routing

HRTS: a Hierarchical Reactive Time Synchronization protocol for wireless sensor networks

IEEE 1588 Hardware Assist

WIRELESS sensor networks have received a lot of attention

CSC 774 Advanced Network Security

Fault Tolerant and Secure Architectures for On Chip Networks With Emerging Interconnect Technologies. Mohsin Y Ahmed Conlan Wesson

Enhanced Precision Time Synchronization for Wireless Sensor Networks

SEMICON Solutions. Bus Structure. Created by: Duong Dang Date: 20 th Oct,2010

Routing protocols in WSN

TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS

The Emergence of Networking Abstractions and Techniques in TinyOS

Buses. Maurizio Palesi. Maurizio Palesi 1

ROUTING ALGORITHMS Part 1: Data centric and hierarchical protocols

Recent Time Synchronization Protocol s in Wireless Sensor Networks

Networking Sensors, II

CAN protocol enhancement

NetWare Link-Services Protocol

ABSTRACT. Physical Implementation of Synchronous Duty-Cycling MAC Protocols: Experiences and Evaluation. Wei-Cheng Xiao

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

1 Time Synchronization

Part I. Wireless Communication

A distributed consensus protocol for clock synchronization in wireless sensor network

Transcription:

The Flooding Time Synchronization Protocol Miklos Maroti, Branislav Kusy, Gyula Simon and Akos Ledeczi Vanderbilt University

Contributions Better understanding of the uncertainties of radio message delivery and new techniques to reduce their effect FTSP time stamping (single-hop time synchronization) Uses a single radio message to synchronize sender and receiver(s) The most basic time synchronization primitive 1.4 µs average, 4.2 µs maximum error on the MICA2 Implemented on MICA2, MICA2DOT and MICAZ FTSP multi-hop time synchronization Synchronizes all nodes to an elected leader Constant network load: 1 message per 30 seconds per node Continuous operation, startup time is network diameter times 60 seconds Fault tolerant: nodes can enter and leave the network, links can fail, nodes can be mobile, topology can change Platform independent: uses the time stamping module

Time synchronization Need for time synchronization common reference points between neighbors at sensing to obtain a global time-stamp synchronized sensing and actuation time arithmetic in local and global time Classification of algorithms Global time source: internal vs. external Lifetime: on-demand vs. continuous Scope: all nodes vs. subsets vs. pairs Time transformation: local clock adjustment vs. local and global time pair vs. timescale transformation Clock drift: offset vs. skew and offset compensation Local clock: CPU (high resolution, no power management, not stable) vs. external crystal Method: sender receiver vs. receiver receiver Time stamping: MAC layer vs. user space Previous approaches Network Time Protocol (NTP) Reference Broadcast Synchronization (RBS) Timing-sync Protocol for Sensor Networks (NTSP) Etc. Metrics It is NOT only end-to-end accuracy Network load (in messages per seconds per nodes) Start-up time (as the function of the diameter) Fault tolerance nodes entering and leaving incorrect and unstable local clocks topology changes Scalability

Radio message propagation sender: send propagation access transmission byte alignment time: delay incurred because of different byte alignment of the sender and receiver receiver: reception receive access time: delay incurred waiting for access to the transmit channel interrupt handling time: The delay between the radio chip raising and the microcontroller responding to an interrupt encoding time: the time it takes the radio chip to encode and transform a part of the message to electromagnetic waves propagation time: time it takes for the electromagnetic wave to travel from sender to receiver decoding time: the time it takes on the receiver side to transform and decode to binary representation sender receiver cpu: radio: antenna: antenna: radio: radio: cpu: interrupt handling encoding propagation decoding (byte alignment) interrupt handling

FTSP time stamping Time synchronization primitive: establishing time reference points between a sender and receiver(s) using a single radio message Sender obtains timestamp when the message was actually sent in its own local time The message can contain the local time of the sender at the time of transmission (or the elapsed time since an event) Receiver obtains timestamp when the message was received in its own local time Algorithm Multiple time stamps are made both on the sender and receiver sides at byte boundaries The time stamps are normalized, and statistically processed and a single time stamp is made both on the sender and receiver sides The final time stamp on the sender side can be embedded in the message Uses time synchronization protocols acoustic ranging shooter localization (implicit time synchronization while routing) R 3 S R 1 R 2 transmission / reception event S elapsed time since event R 1 R 2 R 3 time stamping error

Time stamping on MICA2 platform sender receiver sync byte (~417 µs) 0 1 2 3 4 handling delay (95% 0-1 µs) (5% 1-20 µs) header 5 hw and sw delay (~1386 µs) bit-offset (~0-365 µs) 0 1 2 3 min min data time stamp 4 5 hw interrupt sw interrupt MICA2: 1.4 µs average error, 4.2 µs maximum error average MICA2DOT: 4 µs average, 12 µs maximum error Limiting factor: the stability of the CPU clock

FTSP time synchronization Local and global time Each node maintains both a local and a global time. Past and future time instances are translated between the two formats Both the clock offset and skew between the local and global clocks are estimated using linear regression Optimized to increase the numerical precision of calculations by normalizing the clock skew to zero (working with skew minus one) Handles local and global clock overflows (uses 32-bit integers) Hierarchy Global time is synchronized to the local time of an elected leader Utilizes asynchronous diffusion: each node sends one synchronization msg per 30 seconds, constant network load Sequence number, incremented only be the elected leader Continuous operation, startup time is network diameter times 60 seconds Robustness If leader fails, new leader is elected automatically. The new leader keeps the offset and skew of the old global time Fault tolerant: nodes can enter and leave the network, links can fail, nodes can be mobile, topology can change Platform independent: uses the time stamping module 16 15 15 17 16 16 leader 17 17 16 15 17 16 15 16 14 16 15 14 15 sequence numbers

FTSP experimental evaluation 100 100% topology: 90 80 70 average pairwise error (µs) maximum pairwise error (µs) synchronized motes (%) 90% 80% 70% microseconds 60 50 40 ` 60% 50% 40% percentage 30 30% 20 20% 10 0 0:00 0:10 0:20 0:30 0:40 0:50 1:00 1:10 1:20 1:30 1:40 1:50 2:00 2:10 2:20 2:30 2:40 2:50 3:00 3:10 3:20 3:30 3:40 3:50 4:00 A B time (hh:mm) D E F C 10% 0% 1st leader 2nd leader 1 st leader turned off 50% turned off all turned on random nodes turned off/on all turned back on avg. error: 1.6 µs max. error: 6.1 µs per hop

Comparison to RBS and TPSN Reference Broadcast Synchronization (RBS) Uncompensated delays: propagation, decoding, byte alignment, interrupt handling and receive times Network overhead: 1.5 msgs per synchronization period Hierarchy: clustered with timescale transformation Timing-sync Protocol for Sensor Networks (TPSN) Uncompensated delays: encoding, decoding, interrupt handling times Network overhead: 2 msgs per synchronization period Hierarchy: spanning tree Flooding Time Synchronization Protocol (FTSP) Uncompensated delays: propagation time Network overhead: 1 msg per synchronization period Hierarchy: flooding End-to-end accuracy: average 1.6 µs per hop, max 6.1 µs per hop on MICA2 Robustness: nodes can enter and leave the network, links can fail, nodes can move Startup: 2x diameter many synchronization periods FTSP time stamping singe radio message 0 or 4 bytes overhead per msg 1.4 µs average, 4.2 µs maximum error on MICA2

Conclusion Time stamping: new time synchronization primitive time synchronization protocols synchronized sensing / actuation power management CPU clock cycle precision the effects of discrete time separate local and global times how to sense and actuate with this precision Robustness and scalability startup and convergence time scaling to 10000 nodes power management One size does not fit all need a spectrum of time synchronization algorithms application specific and integrated solutions