A Tale of Two Synchronizing Clocks

Similar documents
The Flooding Time Synchronization Protocol

Reliable Time Synchronization Protocol for Wireless Sensor Networks

Robust Multi-Hop Time Synchronization in Sensor Networks

Presented by: Murad Kaplan

Time Synchronization in Wireless Networks

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

Time Synchronization in Wireless Sensor Networks: CCTS

The Flooding Time Synchronization Protocol

ADB: An Efficient Multihop Broadcast Protocol Based on Asynchronous Duty-Cycling in Wireless Sensor Networks

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

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

A Survey of Time Synchronization Protocols for Wireless Sensor Networks

Sleep/Wake Aware Local Monitoring (SLAM)

Institute for Software Integrated Systems Vanderbilt University Nashville Tennessee TECHNICAL REPORT

WIRELESS MESH NETWORKING: ZIGBEE VS. DIGIMESH WIRELESS MESH NETWORKING: ZIGBEE VS. DIGIMESH

Globally Coordinated Distributed Storm Water Management System

Etiquette protocol for Ultra Low Power Operation in Sensor Networks

Enhanced Timing-Sync Protocol for Sensor Networks

Wireless Sensor Networks

A Time Synchronized Wireless Sensor Tree Network using SimpliciTI

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

4/22 A Wireless Sensor Network for Structural Health Monitoring. Gregory Peaker

WPAN/WBANs: ZigBee. Dmitri A. Moltchanov kurssit/elt-53306/

The Recursive Time Synchronization Protocol for Wireless Sensor Networks

Gradient Clock Synchronization in Wireless Sensor Networks

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

Distributed Control over Wireless Networks

Ferry Route Design with MAC Protocol in Delay Tolerant Networks

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

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

Synchronization in Sensor Networks

Tag a Tiny Aggregation Service for Ad-Hoc Sensor Networks. Samuel Madden, Michael Franklin, Joseph Hellerstein,Wei Hong UC Berkeley Usinex OSDI 02

SENSOR-MAC CASE STUDY

Chapter 6 Time synchronization

Symmetric Clock Synchronization in Sensor Networks

Energy Efficient MAC Protocols Design for Wireless Sensor Networks

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

CHAPTER 2 WIRELESS SENSOR NETWORKS AND NEED OF TOPOLOGY CONTROL

3. Evaluation of Selected Tree and Mesh based Routing Protocols

Fault-Tolerant WSN Time Synchronization*

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

Outline. MAC (Medium Access Control) General MAC Requirements. Typical MAC protocols. Typical MAC protocols

Embedded System Design : Project Specification Crowd Information Monitor

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

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

PIP: A Connection-Oriented, Multi-Hop, Multi-Channel TDMA-based MAC for High Throughput Bulk Transfer

DuraNet: Energy-Efficient Durable Slot-Free Power Scheduling

AN EFFICIENT MAC PROTOCOL FOR SUPPORTING QOS IN WIRELESS SENSOR NETWORKS

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

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

Wireless Sensor Networks

CSOnet: A Metropolitan Scale Wireless Sensor-Actuator Network

LXRS and LXRS+ Wireless Sensor Protocol

Enhanced Precision Time Synchronization for Wireless Sensor Networks

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Time Synchronization Strategies in Wireless Sensor Network: A Review

Performance and Comparison of Energy Efficient MAC Protocol in Wireless Sensor Network

Wireless Sensor Networks CS742

Design and Implementation of a Multi-hop Zigbee Network

sensors ISSN

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

Lecture 17: Wireless Networking"

Design and Simulation of an Underwater Acoustic Local Area Network

Maximizing the Lifetime of Clustered Wireless Sensor Network VIA Cooperative Communication

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Monday 2 nd June 2008.

Chapter 3.1 Acknowledgment:

Wireless Sensor Networks

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

No. (Betteridge's Law of Headlines)

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

On-road Wireless Sensor Network for Traffic Surveillance

Comparison of Two Synchronization Protocol in Wireless Sensor Network

MAC in /20/06

Comprehensive Networking Solutions

IEEE ah. sub 1GHz WLAN for IoT. What lies beneath Wi-Fi HaLow. Eduard Garcia-Villegas, Elena López-Aguilera Dept. of Network Engineering

Wireless Sensor Networks

Accurate Time Synchronization for IEEE Based Wireless Networks

Ad hoc and Sensor Networks Time Synchronization

Intel Research mote. Ralph Kling Intel Corporation Research Santa Clara, CA

AMAC: Traffic-Adaptive Sensor Network MAC Protocol through Variable Duty-Cycle Operations

Wireless Sensor Networks 8th Lecture

WIRELESS sensor networking is an emerging technology

The Emergence of Networking Abstractions and Techniques in TinyOS

WIRELESS TECHNOLOGIES

Wzzard Sensing Platform Network Planning and Installation. Application Note

DISI - University of Trento Time Synchronization and Energy Efficiency in Wireless Sensor Networks

Sensor Deployment, Self- Organization, And Localization. Model of Sensor Nodes. Model of Sensor Nodes. WiSe

Lecture on Sensor Networks

Clock Synchronization in Sensor Networks for Civil Security

ABSTRACT. JANG, BEAKCHEOL. Wireless MAC Protocol Design and Analysis. (Under the direction of Professor Mihail L. Sichitiu).

An Automatic Presence Service for Low Duty-Cycled Mobile Sensor Networks

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

ROUTING ALGORITHMS Part 2: Data centric and hierarchical protocols

TinySec: A Link Layer Security Architecture for Wireless Sensor Networks. Presented by Paul Ruggieri

An Industrial Employee Development Application Protocol Using Wireless Sensor Networks

Chapter 12 Network Protocols

Message acknowledgement and an optional beacon. Channel Access is via Carrier Sense Multiple Access with

Wireless Sensor Networks (WSN)

TSync : A Lightweight Bidirectional Time Synchronization Service for Wireless Sensor Networks

Power-efficient Communication Protocol for Social Networking Tags for Visually Impaired

Transcription:

A Tale of Two Synchronizing Clocks Jinkyu Koo*, Rajesh K. Panta*, Saurabh Bagchi*, and Luis Montestruque** * Dependable Computing Systems Lab (DCSL) School of Electrical and Computer Engineering Purdue University ** EmNet, LLC Slide 1/19 Problem Statement A wide-area Wireless Sensor Actuator Network (WSAN) called CSOnet is in operation in South Bend, IN for detecting and controlling wastewater flow to the treatment plant CSOnet has a low duty cycle: awake 6 seconds in a 5 minute period (2% duty cycle) CSOnet nodes called Chasqui nodes are deployed in the underground wastewater channels for sensing, on top of traffic poles for relays, and at traffic intersections as gateways to the cellular network CSOnet is meant for long-term operation of the order of several months and hence needs accurate time synchronization Slide 2/19

Distinctive Challenges for Synchronization in CSOnet 1. The synchronization has to be fast Ideally entire network should be synchronized within the awake period of 6 seconds The projected scale of the network is large, of the order of a few hundred nodes 2. Chasqui nodes use a Real Time Clock (RTC), external to the microcontroller, for controlling wakeup RTC has a low drift of 2 ppm over the large temperature range -13 F to 122 F and low power consumption But RTC trades off low granularity (1 sec) for achieving the above two properties Problem is wake up is controlled by a clock whose granularity is too coarse for the low duty cycle 3. A high power, long range, and high speed radio is used in Chasqui for which the firmware is not available for modification A common technique for time synchronization, MAC layer time-stamping, is unavailable MAC layer time-stamping has documented problems at high speeds Slide 3/19 Our Contributions We develop a synchronization protocol called HARMONIA that solves the above three challenges There are three primary design innovations 1. It uses the high resolution microcontroller clock to synchronize the low resolution RTC 2. It pipelines the two phases of the synchronization-related messages to achieve fast synchronization 3. It handles transient node and link failures in a localized manner HARMONIA achieves the following properties Synchronization error of the order of tens of microseconds Fastest available synchronization protocol to date Slide 4/19

Presentation Outline Introduction CSOnet Chasqui mote Synchronization issue with sleep/wake operation Difficulties with FTSP Proposed protocol: HARMONIA Experimental results Concluding remarks Slide 5/19 CSO Problem CSOnet: Metropolitan scale, wireless sensor actuator networks, configured by about 150 nodes (diameter less than 20 hops) Monitors combined sewer overflow (CSO) events in 111 locations in South Bend, IN Slide 6/19

CSOnet Solution Sensor nodes sense impending overflow Relay this to a centralized controller Controller activates the smart valves to temporarily hold the wastewater in excess channels that exist through the system Slide 7/19 Chasqui Mote Based on the Crossbow Mica2 design Microcontroller: ATmel Atmega128L Longer range radio: MaxStream 9XTEND 900MHz Outdoor RF line-of-sight range up to 40 miles w/high gain antenna Precision external real time clock (RTC) for sleep/wake operation: Maxim DS3231 chip Slide 8/19

Domain Specific Challenges for Synchronization: Further Discussion Our goal is to synchronize RTCs of all nodes accurately enough to ensure all nodes in the network wake up at the same time nodes stay awake for 6 seconds in a 5 minute window. Practically nodes can communicate with each other for even less than 6 seconds due to the drift in RTC when a synchronization i protocol is initiated. Therefore, we target synchronizing the whole network within 2 seconds. Fast synchronization is required External RTC is of a low drift (2 ppm), but has a coarse granularity of only 1 second. Synchronizing the RTC alone may lead to a synchronization error of up to 1 sec even with a perfect protocol, which is unsuitable for CSOnet MaxStream 9XTEND radio does not allow its firmware modification. However, it provides signals to the application layer when RF starts to transmit/receive a packet Slide 9/19 Can We Apply FTSP for Synchronizing CSOnet? Flooding Time Synchronization Protocol (FTSP) [1] Uses Mac layer time-stamping A elected root periodically broadcasts a synchronization message Each node periodically broadcasts to its neighbors its local estimate of the time at the root node Each node uses a linear regression to estimate the offset and skew between the local clock and that of the root FTSP achieves highly accurate synchronization, but it takes a relatively long time to synchronize the whole network Roughly PN R N time required to finish synchronization P: flooding period, N R : the number of points needed to draw the regression line, N: the maximum number of hops in the network from the root e.g., N=20hops within 6 seconds with P=300ms & N R =8 Practically a much smaller network can be synchronized due to several factors With such frequent flooding, the network is overwhelmed by the synchronization messages, barely leaving a chance for data communication [1] M. Maroti, B. Kusy, G. Simon, and A. Ledeczi, The flooding time synchronization protocol, Sensys 2004. Slide 10/19

Two Strawman Proposals to Adapt FTSP First: Synchronize the microcontroller clock (MCC) Operates in the frequency of 8MHz (for Mica2 node) 0.125μs granularity FTSP can synchronize the MCC accurately to within a few microseconds However, the MCC does not run in sleep mode, and thus cannot be used to trigger a wake up Second: Synchronize the RTC over multiple slots Since RTC does not sleep, we can afford to synchronize it over multiple slots However, RTC has a coarse granularity of 1 sec and therefore the synchronized clocks may differ by up to 1 sec Slide 11/19 Overview of Proposed Protocol HARMONIA We have two clocks in the picture MCC: high resolution (0.125 μs), but poor accuracy (40 ppm); not working in sleep mode RTC: low resolution (1 second), but fine accuracy (2 ppm); working even in sleep mode We propose HARMONIA that First synchronizes the MCCs, and Then adjusts the RTCs to a globally determined value at the same time based on the synchronized MCCs Strawman Synchronize the MCCs using FTSP spread across multiple wake up slots This does not work MCC has to be synchronized within one slot (See paper for reason why) Slide 12/19

HARMONIA Timeline Tree topology is assumed with BS as its root Base station (BS) initiates the synchronization procedure Slide 13/19 HARMONIA Synchronization Messages ARQ w/ implicit ACK Pipelining effect: Nodes send SYNC before receiving SYNCD, i.e., before it is synchronized Slide 14/19

HARMONIA Failure Handling A node tries N max times within a slot to synchronize all its children Implicit acks for both SYNC and SYNCD are used to detect failure If a node is unable to synchronize all its children in a slot, HARMONIA s s fast recovery mechanism kicks in Say node A is in such a situation Node A actively initiates the synchronization procedure in the next slot, targeted only to its descendant sub-tree Each node maintains state such that it remembers where it was in the synchronization handshake with its parent and responds accordingly The fast recovery concept can handle the situation that a large network cannot all be synchronized in one slot HARMONIA proceeds with as much of the network being synchronized initially as possible The unsynchronized parts of the network are handled through fast recovery Slide 15/19 Experimental Results (1/3) Comparison with FTSP in terms of synchronization time and synchronization error Three different topologies considered Values of parameters in HARMONIA used in the experiments. Slide 16/19

HARM MONIA FTSP Experimental Results: Synchronization Time (2/3) t gap : average time between SYNC and SYNCD when there is no retransmission Corresponds to flooding period (P) of FTSP Equivalence between t gap and P is not perfect HARMONIA s time is in the order of a few hundreds of msecs FTSP s time is in the order of a few seconds In Topology 1, with t gap =200ms and equivalently, P=200ms, FTSP is 7.4X and 9.8X slower than HARMONIA, fornumber of regression points 2 and 8 respectively. Regression with 2 points is risky and can lead to poor accuracy Slide 17/19 Experimental Results: Synchronization Error (3/3) FTSP outperforms HARMONIA in terms of One-hop synchronization error synchronization error HARMONIA does not compensate for (1) the differential drifts in the MCCs of two nodes; (2) the jitter in interrupt handling that occurs when the MaxStream radio gives a signal on message transmission and reception How frequently do we have to synchronize a one-hop network for out-of-synchronism less HARMONIA multi-hop synchronization error than 0.1 second HARMONIA: (0.1s-38μs)/2μ = 49981 seconds (13.88 hours) FTSP: (0.1s-3μs)/2μ = 49998.5 seconds Only 17.5-second gap! The synchronization error in HARMONIA does not build up with increasing # hops Example: The error decreases from node 1 to node 2 in Topology 1 The sign of the synchronization error between a pair of nodes depends on the relative frequencies of the clocks of the two nodes and could be either positive or negative HARMONIA does a (signed) addition of the synchronization errors and therefore canceling effect can happen Slide 18/19

Concluding Remarks HARMONIA is proposed for synchronizing CSOnet where nodes stay awake only for 6 seconds in a 5-minute slot Uses two different clock sources, MCC and RTC, to achieve both fine granularity (0.125 μs) and fine accuracy (2 ppm) Synchronize the whole network fast (674ms for 5-hop network, where FTSP requires more than 6.5 seconds) Fast recovery mechanism is introduced so that localized recovery can occur while synchronizing large networks in multiple-slots Our proposed work includes Deploying and measuring the performance of HARMONIA in the 100-node+ deployed network Modifying HARMONIA to apply to Micaz platform with MAC layer timestamping Slide 19/19