33
European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org Sundial: Using Light to Reconstruct Global Timestamps Jayant Gupchup , Răzvan Musăloiu-E. , Alex Szalay ± , Andreas Terzis Department of Computer Science, Johns Hopkins University Department of Physics and Astronomy, Johns Hopkins University ±

Sundial: Using Light to Reconstruct Global Timestamps

  • Upload
    nieve

  • View
    19

  • Download
    0

Embed Size (px)

DESCRIPTION

Sundial: Using Light to Reconstruct Global Timestamps Jayant Gupchup † , Răzvan Musăloiu -E. † , Alex Szalay ± , Andreas Terzis † Department of Computer Science, Johns Hopkins University † Department of Physics and Astronomy, Johns Hopkins University ±. Outline. Introduction - PowerPoint PPT Presentation

Citation preview

Page 1: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Sundial: Using Light to Reconstruct Global Timestamps

Jayant Gupchup†, Răzvan Musăloiu-E.† , Alex Szalay±, Andreas Terzis†

Department of Computer Science, Johns Hopkins University†

Department of Physics and Astronomy, Johns Hopkins University±

Page 2: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Outline

Introduction Problem Description Solution Evaluation Discussion

Page 3: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Introduction

Local Clock

DateTime /Universal Clock

Page 4: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Postmortem Timestamp Reconstruction

Commonly used by environmental monitoring networks Time-Synchronization is expensive Increase network lifetime

Measurements are recorded in “Local timestamps”

Global Timestamps are assigned/mapped retro-actively collect pairs of <local ts, global ts>, i.e. “anchor points” Typically sampled by a gateway/basestation

Page 5: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Problems

TraditionalPostmortem Reconstruction

Page 6: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Basic MethodologyGTS = α . LTS + β

“α” (slope) representsClock-skew

“β” (intercept) represents

Node Deployment time

^ ^

<LTS, GTS>“Anchor Points”

Page 7: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Reboots

Segment 1

Segment 2

Page 8: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Reboots

Segment 1 Segment 2

Page 9: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Failures

Basestation can fail Network is in “data-logging” mode

Nodes become disconnected from the network Mote is in data-logging mode

Basestation clock (global clock source) could have an offset/Drift Corrupt “anchor points” Bad estimates for α and β

Page 10: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Propagation of α errors

Page 11: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Example(s) in Data

Page 12: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Solution

Robust Global Timestamp Reconstruction Algorithm “Sundial”

Page 13: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Robust Global Timestamp Reconstruction (RGTR) Algorithm

Piece-Wise Timestamp Reconstruction

Identify Segments

Identify Anchor points associated with each segment

Obtain a fit (αi, βi) for each segmenti

Apply the fit for each segment to reconstruct global timestamps

Page 14: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Robust estimates

“Anchor Points” belonging to a segment

Propertiesi.Line passing through the points has a slope ~ 1

ii.Intercept for equation of a line passing through the points must be same

Remove “outliers” for a robust Fit

Bad anchor points corrupt the fitIterative fit works as follows:

i. Obtain a fit using the “good” points

ii. Compute residuals of points from the fit

iii. Censor bad pointsiv. Repeat until “convergence”

Page 15: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Motivation for “Sundial”

Global clock source might Contain an offset Drift Fail

Nodes might become disconnected from the network

“Sun” to the rescue !

Page 16: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Annual Solar Patterns

<LOD, noon> = f (Latitude, Time of Year)

Page 17: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

On-board Light Data

Smooth

Page 18: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

“Sundial”

Length of day (LOD)

Noon

Local Noon Global Noon

Lts 1 Gts 1

Lts 2 Gts 2

… …

… …

Lts n Gts n

“Anchor Points”

argmax lag Xcorr (LOD lts, LOD gts, lag)

Page 19: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Architecture

“Sundial”

“Anchor Points”

“Time Reconstruction Algorithm (E.g. RGTR)”

Universal Timestamps (unixts)

Light (localclock)

Page 20: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Evaluation

Establish Ground Truth Results

Page 21: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Ground Truth Fit

Used reconstructed Segments that passed Validation Checks

Validation of global timestamps Use Ambient Temperature data Correlate among sensors Correlate with co-located Weather Station

Page 22: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Segments

“Leakin” Deployment

- MicaZ motes- 20 minute sampling- 6 boxes- Max Size : 587 days

“Jug bay” Deployment

- Telos B motes- 30 minute sampling - 13 boxes- Max Size : 167 days

Page 23: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Reconstruction Results

Day Error

-Offset in days

-Proportional to Error in Intercept (β)

Minute Error

-RMSE Error in minute within the day

-Proportional to Error in slope/clock drift (α)

Page 24: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Effect of Segment LengthExperimental Set up

-Select Segments of varying size-To eliminate bias,

- Segment-start chosen from a Uniform PDF-Use “Sundial” to reconstruct timestamps

Page 25: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Eliminate Day ErrorPrecipitation Soil Moisture

Page 26: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Eliminate Day ErrorPrecipitation Soil Moisture

Page 27: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Discussion

Page 28: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Discussion/Conclusion

Novel Post-mortem Timestamp Reconstruction Algorithm Not a synchronization-protocol

Works in conjunction with other timestamp reconstruction methods (RGTR, [1]),

Robust to “random mote-reboots” and “drifting global clocks”

Uses inexpensive on-board light data and annual solar patterns to reconstruct timestamps (no anchor points)

Experimental Results using light data sampled at 20 minutes Accuracy towards 10 parts per million Reconstruction within minutes (always within one sample period)

Data from nearby-weather stations can also be used Susceptible to “microclimate effects”

[1] G. Werner-Allen et. al, Yield in a Volcano Monitoring Sensor Network. In Proceedings of the 7th USENIX Symposium on Operating Systems Design and Implementation (OSDI), Nov. 2006.

Page 29: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Questions ?

Page 30: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Extras

Page 31: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Estimation of Clock Drift

Observations

-Difference in Clock drifts due to Node-Types

- Error in ppm is close to operating frequency of Quartz crystal

- Error is related to Length of Deployment (Leakin shows less error)

Page 32: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Eliminate Day Error Day Error < 7 days (8 segments). Correlate data with “known” events (E.g. rain)

Correlate in local neighborhood Correlate daily Soil Moisture vectors with Rain Vectors 7 out of 8 aligned to the correct day

Page 33: Sundial:  Using Light to Reconstruct  Global Timestamps

European Wireless Sensor Networks 2009 http://www.lifeunderyourfeet.org/

Discussion Sundial uses well-established Solar patterns to reconstruct timestamps

Does not replace other Timestamp reconstruction methods (RGTR, [1]), but works in conjunction with them

Sundial can be used Motes disconnect from the network and reboot Base-station fails and motes reboot The global clock source is unreliable Independent validation using “LOD” and “noon” metrics Other ?

Data from nearby-weather stations can also be used Susceptible to “microclimate effects”

[1] G. Werner-Allen et. al, Yield in a Volcano Monitoring Sensor Network. In Proceedings of the 7th USENIX Symposium on Operating Systems Design and Implementation (OSDI), Nov. 2006.