Download presentation
Presentation is loading. Please wait.
Published byMorris Patrick Modified over 9 years ago
1
CS450 Network Embedded Sensing Systems Week 11: Time Synchronization and Reconstruction Jayant Gupchup
2
Outline Introduction o Motivation Challenges Accuracy/Application Requirements o Online (Synchronization) o Offline (Postmortem Time Reconstruction) Reconstruction in Environmental Networks (work done at Hopkins) o Sundial o Phoenix
3
Motivation
4
Motivation - I Slide : Yanos Saravanos, www.cse.unt.edu/~rakl/Yanos_thesis.ppt Target Tracking Intrusion Detection o Any kind of real-time event detection
5
Motivation - II Environmental Monitoring
6
Challenges
7
Clock Skew o Varies per mote o Varies with Temperature o Varies due to aging o Accurate crystals consume more power (and cost more!) Communication o Send, Receive, Transit Time Reboots (offline) o No Real-Time Clock o Motes loose time-state Absence Global Clock Source (offline) o Network Time Protocol (NTP) o GPS
8
Challenges - I E.g. : Clock Skew : 80 ppm Error in 1 day (ignore skew) = 80 * 1.0E6 * 3600 * 24 = 6s !!!
9
Challenges – II (Temperature) Source : http://www.abracon.com/Resonators/ABS09.pdf
10
Challenges – III Accuracy – Power Tradeoff DeviceGranularityStabilityPower Tuning Fork XOCoarse25ppm<50uW AT-cut Quartz XOFine25ppm200uW DS32KHZ 32K TCXOCoarse7.5ppm750uW DS3232 32KHz TCXOCoarse2ppm1mW DS4026 10MHz TCXOFine1ppm6mW 10 Slide :Thomas Schmid, nesl.ee.ucla.edu/fw/zainul/islped08_1_1_3_4.ppt
11
Example of Inaccurate time in data
12
Online Time Synchronization
13
Used in real-time monitoring systems Accuracy ~ μs Many applications require relative synch. o Time-Difference of Arrival of events Power-intensive o Radio are on most of the time
14
Reference Broadcast Protocol (RBS)* Sender sends a reference beacon “n” receivers hear this The receivers exchange the “reception time” * J. E. Elson, L. Girod, and D. Estrin. Fine-grained network time synchronization using reference broadcasts. In OSDI, pages 147–163, Dec. 2002
15
RBS – Advantages/Disadvantages Advantages: o Eliminates communication time delays and uncertainties o Accuracy : μS Disadvantages o Does not extend well to multi-hop nodes o Does not provide global-time synchronization o Power-intensive (unavoidable in real-time systems)
16
Flooding Time Synchronization Protocol (FTSP) + Root node is elected o lowest numbered node Root injects reference points o Format: Nodes accept messages from the root o Discard if seqid <= last seq. id After receiving enough reference points o Estimate skew, offset w.r.t root + M. Marot, B. Kusy, G. Simon, and A. Ledeczi. The flooding time synchronization protocol. In SenSys, pages 39–49, Nov. 2004.
17
FTSP – Advantages/Disadvantages Advantages o Synchronizes motes to a global clock o Achieves multi-hop synchronization o Accuracy : μs Disadvantages o If root goes does, election can take time o Error grows exponentially with radius of the network o No Temperature correction
18
Postmortem Time Reconstruction (offline)
19
Challenges Clock Skew (online, offline) o Varies per mote o Varies with Temperature o Varies due to aging o Accurate crystals consume more power (and cost more!) Communication (online, offline) o Send, Receive, Transit Time Reboots (offline) o No Real-Time Clock o Motes loose time-state Absence Global Clock Source (offline) o Network Time Protocol (NTP) o GPS
20
Postmortem Methodology Local Clock DateTime / Universal Clock
21
Postmortem Timestamp Reconstruction Commonly used by environmental monitoring networks o Time-Synchronization is expensive o Increase network lifetime Measurements are recorded in “Local timestamps” Global Timestamps are assigned/mapped retro- actively o collect pairs of, i.e. “anchor points” o Typically sampled by accurate gateway/basestation o Timestamp assignment happens OUTSIDE the network
22
GTS = α. LTS + β “α” (slope) represents Clock-skew “β” (intercept) represents Node Deployment time “Anchor Points” ^ … Linear Regression
23
Reboots - I Segment 1 Segment 2
24
Reboots - II Segment 1 Segment 2 1. Detect Segments 2. Collect anchors more frequently
25
Reboots – III (Network Partition) Segment 1 Segment 2 Cutoff From N/w
26
Data-Driven Time Reconstruction Data contains some information about global time o Can we leverage that? Correlate with known models? Correlate with another source o Weather station How accurate would the reconstruction be?
27
Annual Solar Patterns = f (Latitude, Time of Year) How can me make use of this information?
28
“Sundial” Length of day (LOD) Noon Local NoonGlobal Noon Lts 1 Gts 1 Lts 2 Gts 2 …… …… Lts n Gts n “Anchor Points” argmax lag Xcorr (LOD lts, LOD gts, lag)
29
Results
30
Drawbacks? Accuracy: Minutes o Okay for some environmental applications Need the segments to be large (~ months) o Does not work for Rapid reboots (~ days)
31
Design Requirements High fraction of accurate timestamps Accurate Robust o Random mote reboots (reboot rate : ~ days) o Tolerates Basestation / Global clock absence Low-power
32
Phoenix 7 7 9 9 4 4 6 6 8 8 5 5 G G every 30 s every “X” hrs <4, rc 4,, LC 4, 5, rc 5, LC 5, >
33
Phoenix - II 7 7 9 9 4 4 6 6 8 8 5 5 G G - Green Nodes + Announce every 30 seconds (T on <<< 30s) + Wake up every 6 hours + Keep radio on for 30 s + store overheard time-beacons - GPS Node + Wake up every 6 hours + Get GPS time + Store
34
Phoenix – III (post-facto reconstruction) 7 7 9 9 4 4 6 6 8 8 5 5 G G
35
Phoenix – IV (shortest path problem) 7 7 9 9 4 4 6 6 8 8 5 5 G G
36
Robustness Accuracy : Seconds Power : Very low (duty cycle : < 0.2%) Reconstruction fraction > 99% Robust to Basestation failures, reboots
37
Discussion Design Consideration for Timestamping: o Accuracy requirement(s) o Tradeoff between power-accuracy o Data-Latency (online vs. offline) o Rate of reboots, Persistent global clock source
38
Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.