High-Resolution, Low-Power Time Synchronization an Oxymoron No More Thomas Schmid, Prabal Dutta, Mani B. Srivastava.

Slides:



Advertisements
Similar presentations
Telos Fourth Generation WSN Platform
Advertisements

D. Wei, Y. Huang, B. Garlepp and J. Hein
TDC130: High performance Time to Digital Converter in 130 nm
Christoph Lenzen Philipp Sommer Philipp Sommer Roger Wattenhofer Roger Wattenhofer Optimal Clock Synchronization in Networks.
BASICS OF MSP430 & INTERFACING MICRO-SD CARD WITH IT.
The Flooding Time Synchronization Protocol
Gradient Clock Synchronization in Wireless Sensor Networks
System Integration and Performance
Doc.: IEEE /404r0 Submission July 2001 Georg Dickmann, BridgeCo AG.Slide 1 AV Timing Limits BridgeCo AG Georg Dickmann
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 3:Memory management, floating point dr.ir. A.C.
Synchronization.
HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
Wireless Sensor Networks Clock Synchronization Professor Jack Stankovic University of Virginia.
Analog-to-Digital Converter (ADC) And
PERFORMANCE MEASUREMENTS OF WIRELESS SENSOR NETWORKS Gizem ERDOĞAN.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
Time in Embedded and Real Time Systems Lecture #6 David Andrews
Distributed Systems Fall 2010 Time and synchronization.
He Huang Introduction:The Flooding Time Synchronization Protocol.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Jonathan.
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.
1 Ultra-Low Duty Cycle MAC with Scheduled Channel Polling Wei Ye Fabio Silva John Heidemann Presented by: Ronak Bhuta Date: 4 th December 2007.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Range Measurement Unit Messenger Mercury Laser Altimeter Basic Familiarization.
8/18/2015 Mobile Ad hoc Networks COE 549 Synchronization Tarek Sheltami KFUPM CCSE COE 1.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
Energy-Aware Synchronization in Wireless Sensor Networks Yanos Saravanos Major Advisor: Dr. Robert Akl Department of Computer Science and Engineering.
1 Timing System Timing System Applications. 2 Timing System components Counting mechanisms Input capture mechanisms Output capture mechanisms.
Time Synchronization for Zigbee Networks
System Clocks.
Adaptive Control-Based Clock Synchronization in Wireless Sensor Networks Kasım Sinan YILDIRIM *, Ruggero CARLI +, Luca SCHENATO + * Department of Computer.
Chapter 4 TIMER OPERATION
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
RT-Link: A Time-Synchronized Link Protocol for Energy-Constrained Multi- hop Wireless Networks Anthony Rowe, Rahul Mangharam and Raj Rajkumar CMU SECON.
GPS based time synchronization of PC hardware Antti Gröhn
SNS Integrated Control System SNS Timing Master LA-UR Eric Bjorklund.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Remote Physical Device Fingerprinting Authors: Tadayoshi Kohno, Andre Broido, KC Claffy Presented: IEEE Symposium on Security and Privacy, 2005 Kishore.
CCNA 3 Week 4 Switching Concepts. Copyright © 2005 University of Bolton Introduction Lan design has moved away from using shared media, hubs and repeaters.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
CS 546: Intelligent Embedded Systems Gaurav S. Sukhatme Robotic Embedded Systems Lab Center for Robotics and Embedded Systems Computer Science Department.
Time synchronization for UWSN. Outline Time synchronization knowledge Typical time sync protocol Time sync in UWSN Discussion.
Topic 2: Communications (Short Lecture) Jorge J. Gómez.
Computer Science 1 TinySeRSync: Secure and Resilient Time Synchronization in Wireless Sensor Networks Speaker: Sangwon Hyun Acknowledgement: Slides were.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Oindrila.
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.
Adapting the LHC 1TFB electronic circuit to other equipments The candidates are: PS 1TFB PS TFB PS CBFB PSB TFB PSB 1TFB 1 Alfred Blas Working group meeting.
Time Synchronization Protocols in Wireless Sensor Networks.
6 SYNCHRONIZATION. introduction processes synchronize –exclusive access. –agree on the ordering of events much more difficult compared to synchronization.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 6 – Digital Data Communications Techniques.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 4 Timers and Interrupts.
Distributed Systems Lecture 5 Time and synchronization 1.
Serial Communications
Clocks A clock is a free-running signal with a cycle time.
Distributed Computing
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Lecture 5 Time and synchronization
Ultra-Low Duty Cycle MAC with Scheduled Channel Polling
Clock Synchronization
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
EECS 373: Design of Microprocessor-Based Systems
MSP432™ MCUs Training Part 6: Analog Peripherals
Overview: Chapter 4 Infrastructure Establishment
Presentation transcript:

High-Resolution, Low-Power Time Synchronization an Oxymoron No More Thomas Schmid, Prabal Dutta, Mani B. Srivastava

In a nutshell… If you need the functionality of a piece of equipment, but it costs too much to run continuously, what can you do? Simple – turn it off when you don’t need it. If you only need a high-frequency (=high- power) clock occasionally, use a slower clock (=lower-power) as your primary clock and only turn on the high-frequency clock when necessary.

Outline Introduction Achieving High Precision – Why we need it – How to do it Achieving Low Power – Temperature controlled clock Virtual High-Resolution Time (VHT) – Two different implementations Results Related work

Introduction Time synchronization is important. Mean synchronization accuracy has not improved much below 1.5 μs. – Low-power synchronization at that level is non- existent. Two problems: – Radio hardware support needed to achieve high- precision message time-stamping. – High-frequency clocks are needed to achieve high- precision time-keeping.

Introduction 2 “Conventional wisdom holds that to achieve a certain level of time synchronization precision, a free-running timebase of comparable frequency is needed.” – Time-keeping costs grow linearly with the required precision. – Power draw from a 8 MHz crystal is 340 times the power draw of 32 kHz crystal. – 8 Mhz->125 ns. 32 kHz->31.3 μs According to the authors, the conventional wisdom is no longer true.

Why the conventional wisdom is wrong: There are modern, low-power radios that support sub-microsecond level message time- stamping. You can use 2 clocks, one fast (8 MHz) and one slow (32 kHz), and only power the fast one when you need the extra speed. – This allows you to scale the power needs with access. – Precision on-demand.

Achieving High Precision Need 2 things: – A high-resolution clock source (frequency f 0 ) A clock can only estimate an event time to a resolution of 1/f 0. – Message time-stamping with accuracy ε < +/- 1/f 0 A node needs to know its frequency error with respect to a reference clock. Without error correction nodes need to re- sequence very frequently. If you have both of those, then you just need to measure clock offsets between network nodes, and apply an existing frequency error estimation technique.

Frequency Error Time offset measurement method: – c A (t) is quantized time count = f 0 *t, c B (t)=(f 0 +f e )*t If both time counts start at 0 then we get: We can use that equation to determine the limit to the resolution with which the frequency error can be estimated.

Frequency Error 2 We can find the minimum resolution of the frequency error estimation by taking the difference between two measurements that are separated by one tick: Example: – f 0 =8MHz, T=10s, error resolution is ppm. – f 0 =32.768kHz, T=10s, error resolution is 3.05 ppm. High frequencies also help improve error estimation. – The greater the clock frequency, the shorter the interval of time needed to synchronize a pair of clocks to a given frequency error resolution.

Accurate Timestamps Need to capture the timestamp in hardware. Most radios have a dedicated interrupt line that fires at a particular point during the reception or transmission of a message. – RBS, Reference Broadcast Synchronization, timestamps the first byte sent or received. One of the first. 10 μs accuracy at ~1 MHz. – FTSP, Flooding Time Synchronization Protocol, timestamps multiple bytes. Accuracy of 1.5 μs. The current standard.

Timestamp Tests Two different radios: – TI CC2420, dedicated interrupt line. – Atmel RF230, interrupt line is multiplexed with other radio state-machine events. 2.4 GHz, max data-rate is 250 kbit/s. Used IEEE , that uses message frames.

TI CC2420 Difference between Start of Frame delimiter rising at the transmitter and at the receiver. Mean of μs, and μs. SD is ns and 40.9 ns. 95% of measurements fall within a 160 ns window. Mean of 3.58 ns, SD of ns.

Atmel RF230 Mean time between transmitter and receiver is 17.4 μs. SD of 290 ns and 370 ns. SD is about 7x higher than TI CC2420.

Results On TI CC2420, need a clock frequency of 12.5 MHz to guarantee with high probability that the message timestamp can be resolved to within +/- 1 clock tick. CC2420 will achieve a better time synchronization accuracy when using high frequency clocks.

Achieving Low Power Need 2 things: – Low-frequency clocks – Infrequent communication Low-frequency: Power draw from a 8 MHz crystal is 340 times the power draw of 32 kHz crystal. – Telos platform at 32 kHz, in sleep mode draws 7.2 μA at 3.0V or 4.5 μA at 2.3V. Infrequent communication: The longer the resynchronization interval, the more likely environmental temperature and clock drift will create error.

Achieving Clock Stability Temperature-Compensated Crystal Oscillators (TCXO). – Hardware solution to regulating frequency with respect to temperature. – Work well, but are too big and expensive. Temperature Compensated Time Sync (TCTS) – Software lookup-table solution using a regular temperature sensor (no new hardware).

TCTS One node has access to an accurate and stable timebase. All other nodes synchronize to the main node, and during resynchronization each node calculates its current frequency error. Temperature and frequency error are cached in a frequency vs. temperature table. At each resychronization, if the current temperature is in the database, then the node will not resychronize because no new time estimate is required. Eventually all operating temperatures will be covered, essentially providing a TCXO timebase.

TCTS Experiment Results Temperature in chamber slowly changed from -10 o C to 60 o C. Quadratic equation: f e (T)=-A*(T-T 0 ) 2 +B, A=temperature coefficient, T 0 =20 o C for room temperature, B=frequency error offset. Can use the equation to find frequency error estimates for previously unobserved temperatures.

Full TCTS Experiment Recalibration set to 30 seconds. TCTS maintains tight synchronization. Power draw: temperature measurement = 66.5 μJ. Sending a message 600 μJ.

Virtual High-Resolution Time Need High-Accuracy – High-frequency clocks – Accurate time-stamping mechanism Need Low-Power – Low-frequency clock – Infrequent synchronization Enter VHT: high-frequency clock only when you need it, otherwise use a low-frequency clock.

VHT Overview During active periods the high-frequency clock is turned on, and a hardware counter counts the number of high-frequency clock ticks that occur during each low-frequency clock interval. There are ρ 0 = f H /f L high-frequency clock ticks during each low-frequency tick. When an event of interest occurs, the system records both counters (high-frequency counter is reset every low-frequency tick). The event time is: t event =C L *ρ 0 + ρ.

Microcontroller-based VHT Need a microcontroller with: – 2 clock inputs, driven by the two different oscillators – 2 timers with capture and compare modes, sourced by the two clocks – Some way to trigger a capture of the high- frequency timer.

Microcontroller-based VHT on CC2420 Both capture units are on the interrupt line. Another capture unit is triggered on the low- frequency rising edge to capture the high- frequency counter. (Sync event) The event captures l 0 and h 1. Event time:

Microcontroller-based VHT on CC2420 Drawbacks: – Uses all available timer resources. No more ADC. – Limited width of the counters. On the CC2420 they are only 16-bits. A 32-bit counter at 8 MHz will overflow every 5 minutes.

FPGA-based Dedicated VHT Smart adder adds 16-bit counter to LTC counting register, or stores LTC register directly.

FPGA-based Dedicated VHT Drawbacks: – Draws more power than if it were directly implemented in a microcontroller. – Timers are off-chip, which means we need a communication interface between the microcontroller and the FPGA.

Microcontroller-based VHT Results Modified timer so incoming or outgoing messages get the 32 kHz clock and the phase of the high-frequency timer. Experiment: – 5 nodes running VHT, synchronizing every 10 seconds – A sixth node sends a beacon every 2 seconds with the other nodes timestamp.

Results The 8 MHz virtual clock provides maximum time resolution of μs. Average accuracy of one tick, with SD of μs.

Power Draw Uses different hardware. Polling interval of 1.6 seconds (radio is turned on to take a sample every 1.6 seconds), duty-cycle of 0.77%. 5 orders of magnitude difference in power draw. Power draw is 3x lower with VHT.

Power model for VHT-equipped Node For a given duty cycle (dc) running Low- Power-Listening (LPL): – Regular node: – VHT node: – P 0 is leakage, P lclk is the slow clock, P hclk is the fast clock, and P radio is the radio power draw.

Conclusions System designers used to have to choose between low-power and high-resolution. Don’t need to make that decision anymore because now both are available. – VHT allows better than 1 μs time-keeping precision and an order-of-magnitude improvement in power draw compared to conventional techniques at 0.1% or lower radio duty cycles.

Related Work Reference Broadcast Synchronization (RBS) was one of the first synchronization protocols. – Not really relevant when low-level software- or hardware-based time-stamping mechanisms are available. Timing-sync Protocol for Sensor Networks (TPSN). – Should have 2x better performance than RBS, but they do not implement clock drift estimation. – IEEE implemented a protocol that is very similar to TPSN that gets better than 100ns accuracy.

More Related Work Flooding Time Synchronization Protocol (FTSP) – Current de facto standard. – Nothing has yet improved on it, but it does not take into account propagation delays. Gradient Time Synchronization Protocol (GTSP) – Corrects the problem where nodes are radio neighbors but are members of different synchronization trees.

Even More Related Work Syntonistor – a device for synchronization that locks onto 60 Hz AC noise found in buildings. – Get accuracy better than 1 ms while only consuming only 58 μW. – Low power is comparable, but accuracy is not. Harmonia time-synchronization system – Closest to VHT. Relies on a TCXO-driven clock that provides a stable 1 Hz signal. – May not be widely applicable, while VHT is drop in.