Time Synchronization for Wireless Sensor Networks.

Slides:



Advertisements
Similar presentations
The Flooding Time Synchronization Protocol
Advertisements

Time Synchronization - using Reference-Broadcast Synchronization
Time in Distributed Systems
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.
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
Medium Access Control in Wireless Sensor Networks.
David Ripplinger, Aradhana Narula-Tam, Katherine Szeto AIAA 2013 August 21, 2013 Scheduling vs Random Access in Frequency Hopped Airborne.
Time Synchronization for Wireless Sensor Networks
Distributed Systems Fall 2010 Time and synchronization.
PEDS September 18, 2006 Power Efficient System for Sensor Networks1 S. Coleri, A. Puri and P. Varaiya UC Berkeley Eighth IEEE International Symposium on.
15-441: Computer Networking Lecture 26: Networking Future.
A Data Fusion Approach for Power Saving in Wireless Sensor Networks Reporter : Chi-You Chen.
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 15th Lecture Christian Schindelhauer.
1 Physical Layer: Data Encoding & Transmission. 2 Network Interface Card (NIC) LL in part, PL in total are implemented in NIC –Ethernet card, card,
Time Synchronization Murat Demirbas SUNY Buffalo.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Adaptive Self-Configuring Sensor Network Topologies ns-2 simulation & performance analysis Zhenghua Fu Ben Greenstein Petros Zerfos.
A Transmission Control Scheme for Media Access in Sensor Networks Alec Woo, David Culler (University of California, Berkeley) Special thanks to Wei Ye.
Versatile low power media access for wireless sensor networks Joseph PolastreJason HillDavid Culler Computer Science Department University of California,Berkeley.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lewis Girod, and Deborah Estrin U.C.L.APresenter: Todd Fielder.
SourceSync: A Distributed Architecture for Sender Diversity Hariharan Rahul Haitham Hassanieh Dina Katabi.
Lecture 9: Time & Clocks CDK4: Sections 11.1 – 11.4 CDK5: Sections 14.1 – 14.4 TVS: Sections 6.1 – 6.2 Topics: Synchronization Logical time (Lamport) Vector.
Timing-sync Protocol for Sensor Networks (TPSN) Presenter: Ke Gao Instructor: Yingshu Li.
Energy-Aware Synchronization in Wireless Sensor Networks Yanos Saravanos Major Advisor: Dr. Robert Akl Department of Computer Science and Engineering.
Fine-Grained Network Time Synchronization Using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin University of California, Los Angeles.
Ad Hoc Networking via Named Data Michael Meisel, Vasileios Pappas, and Lixia Zhang UCLA, IBM Research MobiArch’10, September 24, Shinhaeng.
Dynamic Clustering for Acoustic Target Tracking in Wireless Sensor Network Wei-Peng Chen, Jennifer C. Hou, Lui Sha.
Maintaining Performance while Saving Energy on Wireless LANs Ronny Krashinsky Term Project
RT-Link: A Time-Synchronized Link Protocol for Energy-Constrained Multi- hop Wireless Networks Anthony Rowe, Rahul Mangharam and Raj Rajkumar CMU SECON.
Architectures of distributed systems Fundamental Models
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Ryad Ben-El-Kezadri, Giovanni Pau Network Research Lab, UCLA TimeRemap: Stable & Accurate Time in Vehicular Networks REVE Workshop
Presenter: Abhishek Gupta Dept. of Electrical and Computer Engineering
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Minimizing Energy Consumption in Sensor Networks Using a Wakeup Radio Matthew J. Miller and Nitin H. Vaidya IEEE WCNC March 25, 2004.
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
Versatile Low Power Media Access for Wireless Sensor Networks Sarat Chandra Subramaniam.
Wireless Sensor Networks Nov 1, 2006 Jeon Bokgyun
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.
Fasika Assegei Segal’s Law A man with a watch knows what time it is. A man with two watches is never sure.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin OSDI Boston, MA Speaker : hsiwei-Chen.
Software Development Infrastructure for Sensor Networks Operating systems (TinyOS) –Resource (device) management –Basic primitives –Protocols (MAC, routing)
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
1 Segal’s Law A man with a watch knows what time it is. A man with two watches is never sure.
Time Synchronization Protocols in Wireless Sensor Networks.
Variable Bandwidth Allocation Scheme for Energy Efficient Wireless Sensor Network SeongHwan Cho, Kee-Eung Kim Korea Advanced Institute of Science and Technology.
UNIT IV INFRASTRUCTURE ESTABLISHMENT. INTRODUCTION When a sensor network is first activated, various tasks must be performed to establish the necessary.
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
6 SYNCHRONIZATION. introduction processes synchronize –exclusive access. –agree on the ordering of events much more difficult compared to synchronization.
Optimization Problems in Wireless Coding Networks Alex Sprintson Computer Engineering Group Department of Electrical and Computer Engineering.
Precision Measurements with the EVERGROW Traffic Observatory Péter Hága István Csabai.
LA-MAC: A Load Adaptive MAC Protocol for MANETs IEEE Global Telecommunications Conference(GLOBECOM )2009. Presented by Qiang YE Smart Grid Subgroup Meeting.
Distributed Systems Lecture 5 Time and synchronization 1.
1 Wireless Networking Understanding the departure from wired networks, Case study: IEEE (WiFi)
Distributed Computing
Wireless Sensor Network Architectures
Software Defined Networking (SDN)
CS294-1 Reading Aug 28, 2003 Jaein Jeong
Architectures of distributed systems Fundamental Models
Architectures of distributed systems Fundamental Models
Architectures of distributed systems
Investigating Mac Power Consumption in Wireless Sensor Network
Architectures of distributed systems Fundamental Models
Overview: Chapter 4 Infrastructure Establishment
A Distributed Clustering Scheme For Underwater Sensor Networks
Techniques for Building Long-Lived Wireless Sensor Networks
Presentation transcript:

Time Synchronization for Wireless Sensor Networks

Importance of timesync Internet Time Synchronization –Critical in some contexts (e.g. crypto, distributed packet traces) –A convenience in many other contexts Sensor Network Synchronization –Fundamental to its purpose: data fusion –Physical time needed to relate events in the physical world

Heterogeneity Time sync is critical at many layers –Beam-forming, localization, distributed DSP –Data aggregation & caching –TDMA guard bands –“Traditional” uses (debugging, user interaction…) But time sync needs are non-uniform –Maximum Error –Lifetime –Scope & Availability –Efficiency (use of power and time) –Cost and form factor

Beam-forming, localization, distributed Digital Signal Processing: small scope, short lifetime, high precision

t=3 t=2 t=1 t=0 Target tracking: larger scope, longer lifetime, but lower required precision

Isn’t this solved? NTP (Network Time Protocol) –Ubiquitous in the Internet –Variants appearing in sensor networks synchronization –Precise clock agreement within a cluster GPS, WWVB, other radio time services High-stability oscillators (Rubidium, Cesium...)

So what’s wrong? This isn’t the Internet –Important assumptions no longer hold (fewer resources available for synchronization…) –Sensor apps have stronger requirements (…but we have to do better than the Internet anyway) Energy, energy energy: –Listening to the network is no longer free; even occasional CPU use can have a major impact Existing work is a critical building block BUT...

Infrastructure vs. Ad-Hoc “NTP provides UTC to the entire Internet” –But wait, you’re cheating! UTC is distributed to many places in the network out of band via various radio services (WWV, GPS, …) –Path from clients to a canonical clock is short Infrastructure isn’t ubiquitous in sensor nets –GPS doesn’t work indoors, in the forest, underwater, on Mars… What happens without infrastructure?

Poor Topologies Master Stratum 2 Stratum 3 ????? AC B Should A or C serve as B’s master? Either decision leads to poor sync with the other.

“Mundane” Reasons Cost –We can’t put a $500 Rubidium oscillator or a $50 GPS receiver on a $5 sensor node Form factor –Nodes are small, extra components are large Not actually a mundane limitation if it changes the economics of the sensor net

So what do we do? New architectural directions for time synchronization in sensor networks

Leveraging the Medium Wireless networks often use network interfaces with physical-layer broadcasts Reference Broadcast Synchronization takes advantage of this to remove most of the non-determinism from the critical path

4 Time Components in Traditional sync SenderReceiver At the tone: t=1 NIC Physical Media NIC Send time Access Time Propagation Time Receive Time Problem: Many sources of unknown, nondeterministic latency between timestamp and its reception

Reference Broadcasts SenderReceiver NIC Physical Media NIC Propagation Time Receive Time Sync 2 receivers with each other, NOT sender with receiver Receiver NIC I saw it at t=4 I saw it at t=5

NIC Sender Receiver 1 Receiver 2 Critical Path NIC Sender Receiver Critical Path Time RBS reduces error by removing much of it from the critical path Traditional critical path: From the time the sender reads its clock, to when the receiver reads its clock RBS: Only sensitive to the differences in receive time and propagation delay

Receiver Determinism 1st testbed: Berkeley motes with narrowband (19.2K) radios

Time

Comparison to NTP Second implementation: –Compaq IPAQs (small Linux machines) –11mbit PCMCIA cards Ran NTP, RBS-Userspace, RBS-Kernel –NTP synced to GPS clock every 16 secs –NTP with phase correction, too; it did worse (!) In each case, asked 2 IPAQs to raise a GPIO line high at the same time; differences measured with logic analyzer

“Here 0 sec after blue pulse!” “Here 1 sec after blue pulse!” “Here 3 sec after red pulse!” “Here 1 sec after red pulse!” Multi-Hop RBS Some nodes broadcast RF synchronization pulses Receivers in a neighborhood are synced by using the pulse as a time reference. (The pulse senders are not synced.) Nodes that hear both can relate the time bases to each other “Red pulse 2 sec after blue pulse!”

1 3 2 A 4 8 C B 10 D Time Routing The physical topology can be easily converted to a logical topology; links represent possible clock conversions Use shortest path search to find a “time route”; Edges can be weighted by error estimates

Multi-Hop RBS / / / / Error (and std dev) over multiple hops, in usec

Most protocols stay synced all the time Post-facto sync: –Clocks start out unsynchronized –A set of receivers waits for an interesting event –Locally timestamp an event when it happens –After the fact, reconcile clocks Avoids wasting energy on unneeded sync; it’s easier to predict the past than future “Post-Facto” Sync

Post-Facto Sync Test pulses Sync pulses Drift Estimate 7usec error after 60 seconds of silence

Applications A few brief anecdotes

Acoustic Localization

Correlation Green is reference, Red is measured –Signals aligned to offset yielding max correlation Time in Samples (20 uS) Amplitude

Lessons Learned What’s the big picture?

We need many methods Time Sync Parameter Space: (max error, lifetime, scope, etc.) Application Requirement Available Sync Methods Better Goal: make the set rich enough to minimize waste

We need many methods Time Sync Parameter Space: (max error, lifetime, scope, etc.) Application Requirement Better Goal: make the set rich enough to minimize waste Ideally, methods should be tunable

A new service model Traditional time synchronization: “What time is it”? –Forces clocks to be synchronized all the time –Forces synchronization to pick one timescale Our new model: explicit conversions –What time is it here? –For a given time here, what’s the time there? This model buys us enormous freedom!

No global timescale AC B Your clock is your clock. Just know how your clock relates to others.

Future Work RBS is “under-specified” -- Who broadcasts? How is information disseminated? –Are there standard, easily configured solutions? Can we exploit global knowledge? –Initial work by Karp, Shenker is promising Is post-facto sync really practical? –Does it save enough energy and have a low enough cost in lost precision?

Summary Time sync is critical for sensor networks Existing solutions are inadequate: insufficient precision, wasteful of energy Fruitful new ideas have come about that never would have developed in the Internet: –Leverage the broadcast channel –Use local timescales –Sync after the fact A new service model is more expressive New field = new problems = new solutions!