Clock Synchronization in Sensor Networks Mostafa Nouri.

Slides:



Advertisements
Similar presentations
Energy-efficient distributed algorithms for wireless ad hoc networks Ramki Gummadi (MIT)
Advertisements

The Flooding Time Synchronization Protocol
Security in Sensor Networks By : Rohin Sethi Aranika Mahajan Twisha Patel.
高度情報化社会を支えるネットワーキング技術 (大阪大学 工学部説明会資料)
Gradient Clock Synchronization in Wireless Sensor Networks
A 2 -MAC: An Adaptive, Anycast MAC Protocol for Wireless Sensor Networks Hwee-Xian TAN and Mun Choon CHAN Department of Computer Science, School of Computing.
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.
SELF-ORGANIZING MEDIA ACCESS MECHANISM OF A WIRELESS SENSOR NETWORK AHM QUAMRUZZAMAN.
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
CSE 5392By Dr. Donggang Liu1 CSE 5392 Sensor Network Security Introduction to Sensor Networks.
Time Synchronization for Wireless Sensor Networks
1 Prediction-based Strategies for Energy Saving in Object Tracking Sensor Networks Yingqi Xu, Wang-Chien Lee Proceedings of the 2004 IEEE International.
Security Issues In Sensor Networks By Priya Palanivelu.
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
He Huang Introduction:The Flooding Time Synchronization Protocol.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 14th Lecture Christian Schindelhauer.
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 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
TPS: A Time-Based Positioning Scheme for outdoor Wireless Sensor Networks Authors: Xiuzhen Cheng, Andrew Thaeler, Guoliang Xue, Dechang Chen From IEEE.
A Transmission Control Scheme for Media Access in Sensor Networks Alec Woo, David Culler (University of California, Berkeley) Special thanks to Wei Ye.
1 Energy Efficient Communication in Wireless Sensor Networks Yingyue Xu 8/14/2015.
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)
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.
Vinod Kulathumani West Virginia University
CS2510 Fault Tolerance and Privacy in Wireless Sensor Networks partially based on presentation by Sameh Gobriel.
Time Synchronization for Zigbee Networks
LOCALIZATION in Sensor Networking Hamid Karimi. Wireless sensor networks Wireless sensor node  power supply  sensors  embedded processor  wireless.
CS450 Network Embedded Sensing Systems Week 11: Time Synchronization and Reconstruction Jayant Gupchup.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
WSN Done By: 3bdulRa7man Al7arthi Mo7mad AlHudaib Moh7amad Ba7emed Wireless Sensors Network.
Dynamic Clustering for Acoustic Target Tracking in Wireless Sensor Network Wei-Peng Chen, Jennifer C. Hou, Lui Sha.
Clock Synchronization in Sensor Networks for Civil Security Farnaz Moradi Asrin Javaheri.
Mobile Relay Configuration in Data-Intensive Wireless Sensor Networks.
Why Visual Sensor Network & SMAC Implementation Group Presentation Raghul Gunasekaran.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Authors: Yih-Chun Hu, Adrian Perrig, David B. Johnson
Energy-Efficient Signal Processing and Communication Algorithms for Scalable Distributed Fusion.
SENSOR NETWORKS BY Umesh Shah Mayuresh Patil G P Reddy GUIDES Prof U.B.Desai Prof S.N.Merchant.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Energy-Efficient Shortest Path Self-Stabilizing Multicast Protocol for Mobile Ad Hoc Networks Ganesh Sridharan
Outline for Today Objectives: –Time and Timers Administrative details: –Talk on learning at 4 in 130 North Building –Questions?
Efficient Energy Management Protocol for Target Tracking Sensor Networks X. Du, F. Lin Department of Computer Science North Dakota State University Fargo,
Wireless Sensor Networks Nov 1, 2006 Jeon Bokgyun
Differential Ad Hoc Positioning Systems Presented By: Ramesh Tumati Feb 18, 2004.
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.
TIMING-SYNC PROTOCOL FOR SENSOR NETWORKS Presented by: Shet, Deepak Rajput, Rajiv.
Computer Science 1 TinySeRSync: Secure and Resilient Time Synchronization in Wireless Sensor Networks Speaker: Sangwon Hyun Acknowledgement: Slides were.
Fine-Grained Network Time Synchronization using Reference Broadcasts Jeremy Elson, Lew Girod, and Deborah Estrin OSDI Boston, MA Speaker : hsiwei-Chen.
Time Synchronization Protocols in Wireless Sensor Networks.
C. Savarese, J. Beutel, J. Rabaey; UC BerkeleyICASSP Locationing in Distributed Ad-hoc Wireless Sensor Networks Chris Savarese, Jan Beutel, Jan Rabaey.
An Energy-Efficient MAC Protocol for Wireless Sensor Networks Speaker: hsiwei Wei Ye, John Heidemann and Deborah Estrin. IEEE INFOCOM 2002 Page
An Energy-Efficient Geographic Routing with Location Errors in Wireless Sensor Networks Julien Champ and Clement Saad I-SPAN 2008, Sydney (The international.
UNIT IV INFRASTRUCTURE ESTABLISHMENT. INTRODUCTION When a sensor network is first activated, various tasks must be performed to establish the necessary.
Oregon Graduate Institute1 Sensor and energy-efficient networking CSE 525: Advanced Networking Computer Science and Engineering Department Winter 2004.
Wireless Access and Networking Technology (WANT) Lab. An Efficient Data Aggregation Approach for Large Scale Wireless Sensor Networks Globecom 2010 Lutful.
Distributed Systems Lecture 5 Time and synchronization 1.
Wireless Sensor Network: A Promising Approach for Distributed Sensing Tasks.
Medium Access Control. MAC layer covers three functional areas: reliable data delivery access control security.
Wireless Sensor Network Architectures
Introduction to Wireless Sensor Networks
Bluetooth Based Smart Sensor Network
Overview: Chapter 4 Infrastructure Establishment
Presentation transcript:

Clock Synchronization in Sensor Networks Mostafa Nouri

Outline Need for time synchronization in sensor networks Definition of time synchronization Common problems in time synchronization Typical schemes and algorithms.

Sensor Networks Sensor networks and applications  Deeply embedded into the environment  Sense, monitor, and control environments for a long period of time without human intervention Vast collection of miniature, lightweight, inexpensive, energy-efficient sensor nodes

Sensor Networks Applications  Biological & Environmental: habitat monitoring, wildlife, pollution, natural catastrophes  Civil: infrastructure, machine health, human health, traffic monitoring  Military: surveillance, tracking, detection Network Architecture / Sensor Platforms Low-power CPU/  C ADC Radio Memory Sensors Battery Base Station

Why Need for Time Synchronization Link to the physical world  When does an event take place? Key basic service of sensor networks  Fundamental to data fusion Crucial to the efficient working of other basic services  Localization, Calibration, In-network processing, … Several protocols require time synchronization  Cryptography, Topology management.

Sensor Networks Characteristics of SN  Cheap and Small No Accurate Oscillator  Limited Energy Need to Sleep  Work Together Data Fusion Conclusion  must initiate T-Sync in WSN ? ? ? ? ?

Metrics for Synchronization Protocols Precision Longevity of synchronization Time and power budget available for synchronization Geographical span Size and network topology

Examples Energy efficient radio scheduling Array processing Radio Off Radio On Time Sender Radio Off Receiver Guard band due to clock skew; receiver can’t predict exactly when packet will arrive

Computer Clocks Clocks in computers  C(t)=k∫ 0 t ω( τ)d τ + C(t 0 )  ω is frequency of oscillator, C(t 0 ).  Time of the computer click implemented based on a hardware oscillator Computer clock is an approximation of a real time t  C(t)=a*t+b a is a clock drift (rate) B is an offset of the clock Perfect clock  Rate = 1  Offset = 0 C(t) t a b

Definition of time synchronization Let C(t) be a perfect clock  A clock Ci(t) is called correct at time t If Ci(t)=C(t)  A clock Ct(t) is called accurate at time t If dCi(t)/dt = dC(t)/dt = 1  Two clocks Ci(t) and Ck(t) are synchronized at time t if Ci(t)=Ck(t) Time synchronization  Requires knowing both offset and drift

NTP Overview Most widely used time synchronization protocol  Hierarchical: C/S model Perfectly acceptable for most cases.  Coarse grain synchronization Inefficient when fine grain synchronization is required

Why not Use NTP Link  Ratio of packet loss is very low in Internet (fiber, cable)  Links are short range and short lived in sensor networks (wireless) Topology  Static, robust and configurable Energy aware  Frequent message exchange  Listening to the network is free  Using the CPU in moderation free

Difficulties in Sensor Networks No periodic message exchange is guaranteed  There may be no links between two nodes at all Transmission delay between two nodes is hard to estimate  The link distance changes all the time Energy is very limited  Nodes sleep most of the time to conserve power Node need to be small and cheap  No expensive clock circuitry

Basic Approach Collaboration among sensor nodes  Establish pair-wise relationship between nodes.  Extend this to network level. Two approaches for collaboration  Receiver-Receiver  Sender-Receiver

SR vs. RR Sources of error-variation of packet delays and clock drifts AB BA A A B B Beacon

Basic Mechanism Pair-wise synchronization T2=T1+delay+offset T4=T3+delay-offset offset=((T2-T1)-(T4-T3))/2 delay=((T2-T1)+(T4-T3))/2 A B h i h j distance T1 T4 T2 T3

Sources of Errors Send time  Kernel processing  Context switches  Interrupt processing Access time  Specific to MAC protocol e.g. in Ethernet, sender must wait for clear channel Transmission time Propagation time  Very small in WSNs, can be ommited Reception time Receive time

Illustration SenderReceiver NIC Send time Acess time Transmission time Propagation time Reception time Receive time Physical Media

Typical Schemes and Algorithms RBS (Reference Broadcast Synchronization) TPSN (Timing-Sync Protocol for Sensor Networs) DTMS (Delay Measurement Time Synchronization) LTS (Lightweight Time Synchronization) FTSP (Flooding Time Synchronization Protocol) TS/MS (Tiny-Sync and Miny-Sync) TSync AD (Asynchonous Diffusion)

TPSN Features  Sender-receiver bidirectional mechanism  Two phases of operation: Level discovery and synchronization  Level discovery phase Root node initiates level discovery A node on receiving its level broadcasts it Any node receiving multiple level packets takes the first one and ignores the others Any node not receiving a level packet times out and sends a request for level packet

Level Discovery Phase A B H E C F K D G L J I

TPSN Synchronization phase  Root node sends a start synchronization packet  All nodes of level 1 synchronize themselves to the root node  For every level i, the nodes of that level synchronize to the nodes of level i-1  If a node in level i-1 is not synchronized, then it does not respond to synchronization requests from level i

Time Synchronization Algorithm A B H E C F K D G L J I

LTS Features  Minimize synchronization complexity rather than maximizing accuracy Authors claim that wireless sensor networks need quite low synchronization accuracy  Sender-receiver bidirectional mechanism  Two LTS algorithms Centralized  Node sends a synchronization request to a closest reference node by any routing mechanism Distributed  Requires a spanning tree to be constructed firstly

LTS LTS optimizes synchronization frequency with required precision  The synchronization frequency is calculated from the requested precision, from the depth of the spanning tree, from the drift bound Simulation results  500 nodes (120 x 120)  Target precision: 0.5  Duration: 10 hrs  Centralized: 65% of all nodes request synchronization 4-5 synchronization operation on average per node  Distributed: Average 26 pair-wise synchronization per node

TS/MS Features  Determining relative offset and drift between two nodes  Sender-receiver bidirectional scheme Node 1 sends a probe message to node 2 time-stamped with t 0 Node 2 generates timestamp t b and responds immediately Node 1 generates timestamp t r  Two clocks c 1 (t) and c 2 (t) are linearly related as C 1 (t)=a 12 C 2 (t)+b 12  The following inequalities are held: t 0 <a 12 t b +b 12 <t r

TS/MS C 2 (t) Sample 1 Sample 3 t0t0 trtr C 1 (t) = a 12 H 2 (t) + b 12 C 1 (t) Node 1Node 2 t0t0 trtr tbtb tbtb a 12 b 12

Parameter Estimation Relative drift a 12 and offset b 12 The tighter the bound, the higher the synchronization precision Requires high amount of data points and quite complex Algorithms precision increases with the increased number of data points.

Difference Between TS and MS Different methods in selecting useful data points  Tiny-Sync Keep only four constrains of all data points Does nor always give the best solution for the bounds  Mini-Sync is an extension of Tiny-Sync More optimal solution with increased complexity Keeps also the data points which may be useful by some future data points to give tighter bounds A data point is discarded only if it is definitely useless Quite complex selection criterion.

Reference Elson, Girod, Estrin, “Fine-Grained Network Time Synchronization using Reference Broadcasts” Sichitiu, Veerarittiphan, “Simple, Accurate Time Synchronization for Wireless Sensor Networks” Ganeriwal, Kumar, Srivastava, “Timing-Sync Protocol for Sensor Networks” Genunen, Rabaey, “Lightweight Time Synchronization for Wireless Sensor Networks” Li, Rus, “Global Clock Synchronization in Sensor Networks” Dai, Han, “TSync: A Lightweight Bidirectional Time Synchronization Service for Wireless Sensor Networks”

Thank you