Optimal Clock Synchronization in Networks. Christoph Lenzen Philipp Sommer Roger Wattenhofer

Similar documents
Clock Synchronization

Clock Synchronization

CS649 Sensor Networks IP Lecture 9: Synchronization

FTSP Power Characterization

Temperature-Compensated Clock Skew Adjustment

Ultra-Low Duty Cycle MAC with Scheduled Channel Polling

Data Gathering. Chapter 4. Ad Hoc and Sensor Networks Roger Wattenhofer 4/1

SpiderBat: Augmenting Wireless Sensor Networks with Distance and Angle Information

AS-MAC: An Asynchronous Scheduled MAC Protocol for Wireless Sensor Networks

Efficient time synchronization for structural health monitoring using wireless smart sensor networks

Clock Synchronization with Deterministic Accuracy Guarantee

Mathematical Problems in Networked Embedded Systems

Achieving Network Consistency. Octav Chipara

Design Issues and Experiences with BRIMON Railway BRIdge MONitoring Project

Realizing Uncertainty-Aware Timing Stack in Embedded Operating System

From Shared Memory to Message Passing

Clock Synchronization with Deterministic Accuracy Guarantee

Wireless Sensor Network based Shooter Localization

Luca Schenato joint work with: A. Basso, G. Gamba

Near-Optimal Radio Use For Wireless Network Synch. Synchronization

High-Resolution, Low-Power Time Synchronization an Oxymoron No More

Tomasz Włostowski Beams Department Controls Group Hardware and Timing Section. Trigger and RF distribution using White Rabbit

Multiple Receiver Strategies for Minimizing Packet Loss in Dense Sensor Networks

Ultra-Low Duty Cycle MAC with Scheduled Channel Polling

Security in Sensor Networks. Written by: Prof. Srdjan Capkun & Others Presented By : Siddharth Malhotra Mentor: Roland Flury

Funneling-MAC: A Localized, Sink-Oriented MAC For Boosting Fidelity in Sensor Networks

Design of an energy efficient Medium Access Control protocol for wireless sensor networks. Thesis Committee

A Scalable and Adaptive Clock Synchronization Protocol for IEEE Based Multihop Ad Hoc Networks

An Experiment Study for Time Synchronization Utilizing USRP and GNU Radio

Data Dissemination in Wireless Sensor Networks

Agenda. A short overview of the CITI lab. Wireless Sensor Networks : Key applications & constraints. Energy consumption and network lifetime

Politecnico di Milano Advanced Network Technologies Laboratory. Beyond Standard MAC Sublayer

Zippy: On-Demand Network Flooding

Time Synchronization for High Latency Acoustic Networks

Today's Lecture. Clocks in a Distributed System. Last Lecture RPC Important Lessons. Need for time synchronization. Time synchronization techniques

Inter-Device Synchronous Control Technology for IoT Systems Using Wireless LAN Modules

15. ZBM2: low power Zigbee wireless sensor module for low frequency measurements

Evaluation of the 6TiSCH Network Formation

TIME SYNCHRONIZATION FOR TIME OF ARRIVAL BASED LOCALIZATION

Increasing Broadcast Reliability for Vehicular Ad Hoc Networks. Nathan Balon and Jinhua Guo University of Michigan - Dearborn

Optimized Asynchronous Multi-channel Neighbor Discovery

UTILIZATION OF AN IEEE 1588 TIMING REFERENCE SOURCE IN THE inet RF TRANSCEIVER

Collaborative transmission in wireless sensor networks

CS-MNS: Analysis and Implementation

Feasibility and Benefits of Passive RFID Wake-up Radios for Wireless Sensor Networks

Low-power Clock Synchronization using Electromagnetic Energy Radiating from AC Power Lines

Foundations of Distributed Systems: Tree Algorithms

Convergence of Desynchronization Primitives in Wireless Sensor Networks: A Stochastic Modeling Approach

arxiv: v1 [cs.dc] 29 Oct 2014

Internet of Things Prof. M. Cesana. Exam June 26, Family Name Given Name Student ID 3030 Course of studies 3030 Total Available time: 2 hours

SYSTEM SENSOR WIRELESS REMOTE INDICATOR PRODUCT SPECIFICATION

Panda: Neighbor Discovery on a Power Harvesting Budget. Robert Margolies, Guy Grebla, Tingjun Chen, Dan Rubenstein, Gil Zussman

The Armstrong Project Technical Report

Real-time Distributed MIMO Systems. Hariharan Rahul Ezzeldin Hamed, Mohammed A. Abdelghany, Dina Katabi

TIME- OPTIMAL CONVERGECAST IN SENSOR NETWORKS WITH MULTIPLE CHANNELS

Sensor Network Gossiping or How to Break the Broadcast Lower Bound

ENERGY-AWARE TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS. Yanos Saravanos, B.S. Thesis Prepared for the Degree of MASTER OF SCIENCE

DiCa: Distributed Tag Access with Collision-Avoidance among Mobile RFID Readers

CS434/534: Topics in Networked (Networking) Systems

Time Synchronization for High Latency Acoustic Networks ISI-TR

Mobile Positioning in Wireless Mobile Networks

Lessons Learned During the Implementation of the BVR Wireless Sensor Network Protocol on SunSPOTs. 1

Chalmers Publication Library

AN310 Energy optimization of a battery-powered device

Scheduling Data Collection with Dynamic Traffic Patterns in Wireless Sensor Networks

Wireless Internet Routing. IEEE s

Wireless Networks Do Not Disturb My Circles

Energy-Efficient Communication Protocol for Wireless Microsensor Networks

An Improved DV-Hop Localization Algorithm Based on Hop Distance and Hops Correction

Introduction. Introduction ROBUST SENSOR POSITIONING IN WIRELESS AD HOC SENSOR NETWORKS. Smart Wireless Sensor Systems 1

FLASH: Fine-grained Localization in Wireless Sensor Networks using Acoustic Sound Transmissions and High Precision Clock Synchronization

MAC Theory Chapter 7. Standby Energy [digitalstrom.org] Rating. Overview. No apps Mission critical

MAC Theory. Chapter 7

Location Estimation in Ad-Hoc Networks with Directional Antennas

Mobility Tolerant Broadcast in Mobile Ad Hoc Networks

Energy-Efficient Data Management for Sensor Networks

A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols

Vulnerability modelling of ad hoc routing protocols a comparison of OLSR and DSR

Repelling Sybil-type attacks in wireless ad hoc systems

Deformation Monitoring Based on Wireless Sensor Networks

Convergence of Desynchronization Primitives in Wireless Sensor Networks: A Stochastic Modeling Approach

Time Synchronization and Distributed Modulation in Large-Scale Sensor Networks

Analysis and Implementation of Scalable Clock Synchronization Protocols in IEEE Ad Hoc Networks

UNDERSTANDING AND MITIGATING

SourceSync. Exploiting Sender Diversity

Simulation and Performance Analysis of the IEEE1588 PTP with Kalman Filtering in Multi-hop Wireless Sensor Networks

Distributed estimation and consensus. Luca Schenato University of Padova WIDE 09 7 July 2009, Siena

Mobile and Sensor Systems. Lecture 6: Sensor Network Reprogramming and Mobile Sensors Dr Cecilia Mascolo

Amplifier Test Bench Taking performance to a new peak

Comparison between Preamble Sampling and Wake-Up Receivers in Wireless Sensor Networks

WiMedia Interoperability and Beaconing Protocol

Ultrasound-Based Indoor Robot Localization Using Ambient Temperature Compensation

Kassandra Charalampidou

INTRODUCTION TO WIRELESS SENSOR NETWORKS. CHAPTER 3: RADIO COMMUNICATIONS Anna Förster

Distributed receive beamforming: a scalable architecture and its proof of concept

Implicit Network Timing Synchronization With Phase-Only Updates

Adaptation of MAC Layer for QoS in WSN

Time transfer over a White Rabbit network

Prof. Maria Papadopouli

Castle Creations, INC.

Transcription:

Optimal Clock Synchronization in Networks Christoph Lenzen Philipp Sommer Roger Wattenhofer

Time in Sensor Networks Synchronized clocks are essential for many applications: Sensing TDMA Localization Duty- Cycling Time Synchronization (RBS, TPSN, FTSP,...)

Hardware Clocks Experience Drift Hardware clock Counter register of the microcontroller Sourced by an external crystal (32kHz, 7.37 MHz) Mica2 Clock drift Random deviation from the nominal rate dependent on ambient temperature, power supply, etc. (30-100 ppm) rate 1+² 1 1-² t

Messages Experience Jitter in the Delay Problem: Jitter in the message delay Various sources of errors (deterministic and non-deterministic) 0-100 ms 0-500 ms 1-10 ms Send Access Transmission Solution: Timestamping packets at the MAC layer (Maróti et al.) frequency (%) Reception Jitter in the message delay is reduced to a few clock ticks Expected delay T Jitter J time Receive 0-100 ms t

Summary: Clock Synchronization Goal: Send time information (beacons) to synchronize clocks Problems: Hardware clocks exhibit drift Jitter in the message delay Expected delay T Jitter J

Preview: Experimental Results Sychnronization error vs. hop distance FTSP PulseSync

Outline Introduction Theory Practice

Synchronizing Nodes: Single-Hop How do we synchronize the clocks of two sensor nodes? reference clock 0 1

Synchronizing Nodes Sending periodic beacons to synchronize nodes Beacon interval B 100 130 t 0 reference clock t=100 t=130 T J T J t 1

How accurately can we synchronize two Nodes? Message delay jitter affects clock synchronization quality 0 y r r^ y(x) = ^r x + y clock offset relative clock rate (estimated) y J J x 1 Beacon interval B

How accurately can we synchronize two Nodes? Message delay jitter affects clock synchronization quality 0 y r^ r r^ y(x) = ^r x + y clock offset relative clock rate (estimated) y J J x 1 Beacon interval B

Clock Skew between two Nodes Lower Bound on the clock skew between two neighbors 0 y r^ r^ r Error in the rate estimation: Jitter in the message delay Beacon interval Number of beacons k - Synchronization error: y J J x 1 Beacon interval B (complete proof is in the paper)

Synchronizing Nodes: Multi-hop How do we synchronize the clocks of multiple sensor nodes? reference clock 0 1 2

Now we have a network of nodes! How does the network diameter affect synchronization errors? 0 1 2 3 4... d Examples for sensor networks with high diameter Bridge, road or pipeline monitoring Deployment at Golden Gate Bridge with 46 hops (Kim et al., IPSN 07)

Multi-hop Clock Synchronization Nodes forward their current estimate of the reference clock Each synchronization beacon is affected by a random jitter J 0 1 2 3 4... J 1 J 2 J 3 J 4 J 5 d J d Sum of the jitter grows with the square-root of the distance stddev(j 1 + J 2 + J 3 + J 4 + J 5 +... J d ) = d stddev(j) Single-hop: Multi-hop: (proof is in the paper)

Outline Introduction Theory Practice

Clock Synchronization in Practice Flooding Time Synchronization Protocol (FTSP) Nodes synchronize to a root (leader) node Leader-election phase (by smallest id) Periodic synchronization beacons (unaligned) Linear-regression table to correct clock drift Maroti et al. (SenSys 04) 0 root node 4 2 5 1 3 6

Testbed Experiments (FTSP) Measurement results from testbed with 20 Mica2 nodes 0 1 2 3 4... 20 Synchronization error grows exponentially Nodes far away from the root failed to synchronize with their parent node

Linear Regression (FTSP) FTSP uses linear regression to compensate for clock drift Jitter is amplified before it is sent to the next hop 0 y Example for k=2 r r^ synchronization error y(x) = ^r x + y y J J x 1 clock offset relative clock rate (estimated) Beacon interval B

Linear Regression (FTSP) Simulation of FTSP with regression tables of different sizes (k = 2, 8, 32) Log Scale!

The PulseSync Protocol Send fast synchronization pulses through the network Speed-up the initialization phase Faster adaptation to changes in temperature or network topology FTSP Expected time = D B/2 0 1 2 3 4 Beacon time B t PulseSync 0 1 2 3 4 Beacon time B Expected time = D t pulse t pulse t

The PulseSync Protocol (2) Remove self-amplification of synchronization error Fast flooding cannot completely eliminate amplification 0 y Example for k=2 r r^ synchronization error y(x) = ^r x + y r^ clock offset y J J Beacon interval B x 1 relative clock rate The green line is calculated using k measurement points that are statistically independent of the red line (see paper).

Evaluation Testbed setup 20 Crossbow Mica2 sensor nodes PulseSync implemented in TinyOS 2.1 FTSP from TinyOS 2.1 Network topology Single-hop setup, basestation Virtual network topology (white-list) Acknowledgments for time sync beacons 0 1 2 3 4... 20 Probe beacon

Experimental Results Global Clock Skew Maximum synchronization error between any two nodes FTSP PulseSync Synchronization Error FTSP PulseSync Average (t>2000s) 23.96 µs 4.44 µs Maximum (t>2000s) 249 µs 38 µs

Experimental Results (2) Sychnronization Error vs. distance from root node FTSP PulseSync

Outlook Extension to more general network topologies Schedule synchronization beacons without collisions Time information has to propagate quickly through the network Avoid loss of synchronization pulses due to collisions This is known as wireless broadcasting, a well-studied problem (in theory)

Conclusions Theoretical insights into clock synchronization Lower bound on the global clock skew PulseSync: a novel clock synchronization algorithm Flooding sync pulses at high speed through the network Matches the lower bound on the global skew (shown in the paper) Testbed experiments on a 20-node line topology Prototype implementation of PulseSync PulseSync outperforms FTSP for this setting