8/18/2015 Mobile Ad hoc Networks COE 549 Synchronization Tarek Sheltami KFUPM CCSE COE 1.

Slides:



Advertisements
Similar presentations
The Flooding Time Synchronization Protocol
Advertisements

Gradient Clock Synchronization in Wireless Sensor Networks
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.
SELF-ORGANIZING MEDIA ACCESS MECHANISM OF A WIRELESS SENSOR NETWORK AHM QUAMRUZZAMAN.
5/5/20151 Mobile Ad hoc Networks COE 549 Transmission Scheduling II Tarek Sheltami KFUPM CCSE COE
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
5/11/20151 Computer Networks COE 549 Random Access Tarek Sheltami KFUPM CCSE COE
5/15/2015 Mobile Ad hoc Networks COE 499 Localization Tarek Sheltami KFUPM CCSE COE 1.
Time in Embedded and Real Time Systems Lecture #6 David Andrews
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.
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 15th Lecture Christian Schindelhauer.
The Flooding Time Synchronization Protocol
Time Synchronization Murat Demirbas SUNY Buffalo.
Self Organization and Energy Efficient TDMA MAC Protocol by Wake Up For Wireless Sensor Networks Zhihui Chen; Ashfaq Khokhar ECE/CS Dept., University of.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Time, Clocks and the Ordering of Events in a Distributed System - by Leslie Lamport.
EEC-681/781 Distributed Computing Systems Lecture 10 Wenbing Zhao Cleveland State University.
EEC-681/781 Distributed Computing Systems Lecture 10 Wenbing Zhao Cleveland State University.
Time, Clocks, and the Ordering of Events in a Distributed System Leslie Lamport (1978) Presented by: Yoav Kantor.
Distributed Systems Foundations Lecture 1. Main Characteristics of Distributed Systems Independent processors, sites, processes Message passing No shared.
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
CS450 Network Embedded Sensing Systems Week 11: Time Synchronization and Reconstruction Jayant Gupchup.
1 An Adaptive Energy-Efficient MAC Protocol for Wireless Sensor Networks The First ACM Conference on Embedded Networked Sensor Systems (SenSys 2003) November.
Clock Synchronization in Sensor Networks Mostafa Nouri.
Adaptive Control-Based Clock Synchronization in Wireless Sensor Networks Kasım Sinan YILDIRIM *, Ruggero CARLI +, Luca SCHENATO + * Department of Computer.
Ad Hoc and Sensor Networks – Roger Wattenhofer –9/1Ad Hoc and Sensor Networks – Roger Wattenhofer – Time Synchronization Chapter 9 TexPoint fonts used.
On-Demand Traffic-Embedded Clock Synchronization for Wireless Sensor Networks Sang Hoon Lee.
Power Save Mechanisms for Multi-Hop Wireless Networks Matthew J. Miller and Nitin H. Vaidya University of Illinois at Urbana-Champaign BROADNETS October.
RT-Link: A Time-Synchronized Link Protocol for Energy-Constrained Multi- hop Wireless Networks Anthony Rowe, Rahul Mangharam and Raj Rajkumar CMU SECON.
Clock Synchronization in Sensor Networks for Civil Security Farnaz Moradi Asrin Javaheri.
Wireless Sensor Networks COE 499 Energy Aware Routing
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Naming Name distribution: use hierarchies DNS X.500 and LDAP.
Rushing Attacks and Defense in Wireless Ad Hoc Network Routing Protocols ► Acts as denial of service by disrupting the flow of data between a source and.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Energy and Latency Control in Low Duty Cycle MAC Protocols Yuan Li, Wei Ye, John Heidemann Information Sciences Institute, University of Southern California.
Communication & Synchronization Why do processes communicate in DS? –To exchange messages –To synchronize processes Why do processes synchronize in DS?
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.
11/25/2015 Wireless Sensor Networks COE 499 Localization Tarek Sheltami KFUPM CCSE COE 1.
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, Clocks, and the Ordering of Events in a Distributed System Leslie Lamport Massachusetts Computer Associates,Inc. Presented by Xiaofeng Xiao.
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.
Self Organization and Energy Efficient TDMA MAC Protocol by Wake Up for Wireless Sensor Networks Zhihui Chen and Ashfaq Khokhar ECE Department, University.
Real-Time & MultiMedia Lab Synchronization Distributed System Jin-Seung,KIM.
CLOCK SYNCHRONIZATION SUSMITHA KOTA 21- SEP-2015.
Time Synchronization Protocols in Wireless Sensor Networks.
SMAC: An Energy-efficient MAC Protocol for Wireless Networks
CS 3471 CS 347: Parallel and Distributed Data Management Notes13: Time and Clocks.
CS 347Notes 121 CS 347: Parallel and Distributed Data Management Notes12: Time and Clocks Hector Garcia-Molina.
Feb 15, 2001CSCI {4,6}900: Ubiquitous Computing1 Announcements.
UNIT IV INFRASTRUCTURE ESTABLISHMENT. INTRODUCTION When a sensor network is first activated, various tasks must be performed to establish the necessary.
Ordering of Events in Distributed Systems UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau.
Oregon Graduate Institute1 Sensor and energy-efficient networking CSE 525: Advanced Networking Computer Science and Engineering Department Winter 2004.
11-Jun-16CSE 542: Operating Systems1 Distributed systems Time, clocks, and the ordering of events in a distributed system Leslie Lamport. Communications.
Distributed Systems Lecture 5 Time and synchronization 1.
Research: algorithmic solutions for networking
Overview: Chapter 4 Infrastructure Establishment
CSE 542: Operating Systems
Last Class: Naming Name distribution: use hierarchies DNS
Presentation transcript:

8/18/2015 Mobile Ad hoc Networks COE 549 Synchronization Tarek Sheltami KFUPM CCSE COE 1

2 Outline Overview Key Issues Traditional approaches Fine-grained approaches Coarse-grained approaches 8/18/2015

3 Overview Distributed wireless sensor networks need time synchronization for a number of good reasons, some of which are described below: 1. Time-stamping measurements: data collection applications of sensor networks often require that sensor readings from different sensor nodes be provided with time stamps in addition to location information 2. In-network signal processing: Time stamps are needed to determine which information from different sources can be fused/aggregated within the network 3. Localization: TDoA-based ranging techniques used in node localization require good time synchronization 4. Cooperative communication: Some physical layer multi-node cooperative communication techniques, which have the potential to provide significant energy savings, but require tight synchronization

8/18/20154 Overview 5. Medium-access: TDMA-based medium-access schemes also require that nodes be synchronized so that they can be assigned distinct slots for collision free communication 6. Sleep scheduling: synchronization is needed to coordinate the sleep schedules of neighboring devices, so that they can communicate with each other efficiently 7. Coordinated actuation: Advanced applications in which the network includes distributed actuators in addition to sensing require synchronization

8/18/20155 Key Issues The clock at each node consists of timer circuitry, often based on quartz crystal oscillators The clock is incremented after each K ticks/interrupts of the timer Practical timer circuits, particularly in low-end devices, are unstable and error prone Crystal oscillators, such as those used in digital watches, experience a shift in frequency as a function of temperature A model for clock non-ideality Where f 0 is ideal frequency, ∆f is the frequency offset, d f is the drift in the frequency, r f (t) an additional random error process and f i (t) is the instantaneous oscillator frequency

8/18/20156 Key Issues.. Frequency Drift is undesired change in frequency caused by component aging and environmental changes Frequency Offset is the difference between a measured frequency and the nominal frequency Assuming t=0 as the initial reference time, the clock reads time C i (t) at time t as:

8/18/20157 Key Issues.. Frequency drift and random error terms may be neglected to derive a simpler linear model for clock non-ideality: Where is the clock offset at the reference time t = 0 and β i the clock drift The more stable and accurate the clock, the closer is to 0, and the closer β i is to 1 A clock is said to be fast if β i is greater than 1, and slow otherwise Manufactured clocks are often specified with a maximum drift rate parameter ρ, such that 1− ρ ≤ β i ≤1+ ρ Motes, typical sensor nodes, have ρ values on the order of 40 ppm (parts per million), which corresponds to a drift rate of ±40μs per second

8 Ordering of events “  ” is a partial ordering [ total ordering: for any two events a,b (a  b) either a  b or b  a parting ordering: a,b can be concurrent ] 8/18/2015

9 Definition The relation  on the set of events of a system is the smallest relation satisfying the following 3 conditions: 1) if a,b events in same process, and a comes before b, then a  b 2) if a is sending a message and b is receipt of same message by a different process, then a  b 3) if a  b and b  c, than a  c assume a  a if a  b and b  a, than a,b are concurrent 8/18/2015

10 Logical Clock C i =logical clock (counter) at process i C[b] = reading of C j when event b occurs at process j Clock condition for any events a, b IF a  b THEN C[a] < C[b] No relationship to physical time 8/18/2015

11 Clock Condition If a and b are events in process i and a comes before b, then C i [a] < C i [b] If a is the sending of a message by process i and b is the receipt of that message by process j, then C i [a] < C j [b] C1C1 C2C2 If a  b THEN C[a] < C[b] can be satisfied if the following conditions hold: 8/18/2015

12 Note: C i [a] < C j [b]  a  b Note: a,b concurrent  C i [a] = C j [b] Note: C i [a] = C j [b]  a,b concurrent 8/18/2015

13 Traditional Approaches Lamport’s Algorithm Provides a consistent ordering of all events in a distributed system Labeling each event x with a distinct time stamp L x, such that: Lx ≠ Ly ∀ unique events x & y If event x precedes event y in within a node  Lx < Ly If x transmitting and y receiving at two different nodes  Lx < Ly Drawbacks: Doesn’t provide true causality, assume the true time of event x is indicated as T x ; then, while it is true that T x <T y  L x <L y, it is not true that L x <L y  T x <T y

8/18/ Traditional Approaches.. Cristian’s Algorithm A node A sends a request to node B (which has the reference clock) and receives back the value of B’s clock, T B Node A records locally both the transmission time T 1 and the reception time T 2

8/18/ Traditional Approaches.. Cristian’s Algorithm.. There are many sources of uncertainty and delay, which impact its accuracy: Send time – which includes any processing time and time taken to assemble and move the message to the link layer Access time – which includes random delays while the message is buffered at the link layer due to contention and collisions Propagation time – which is the time taken for point-to-point message travel. While negligible for a single link, this may be a dominant term over multiple hops if there is network congestion. Receive time – which is the time taken to process the message and record its arrival.

8/18/ Traditional Approaches.. Cristian’s Algorithm.. The simplest estimate is to approximate the message propagation time as (T 2 −T 1 )/2 If the processing delay is known to be I, then a better estimate is (T 2 − T 1 − I )/2. More sophisticated approaches take several round-trip delay samples and use minimum or mean delays after outlier removal.

8/18/ Fine-grained clock synchronization Reference broadcast synchronization (RBS) Two nodes receive the beacon of one node in the same broadcast area The two receivers record the local time when the reference signal was received. The two receivers exchange this local time stamp through separate messages

8/18/ Fine-grained clock synchronization.. Time-Sync Protocol for Sensor Networks (TPSN)

8/18/ Fine-grained clock synchronization.. Linear parameter-based synchronization Assuming the same pair-wise message exchange as in TPSN for nodes A and B, we have that the transmission time T 1 and reception time T 4 are measured in node A’s local clock, while reception time T 2 and transmission time T 3 are measured in node B’s local clock. We therefore get the following temporal relationships:

8/18/ Fine-grained clock synchronization.. Linear parameter-based synchronization

8/18/ Fine-grained clock synchronization.. Flooding time synchronization protocol (FTSP) 1.Interrupt handling time: This is the delay in waiting for the processor to complete its current instruction before transferring the message in parts to the radio 2.Modulation/encoding time: This is the time taken by the radio to perform modulation and encoding at the transmitter, and the corresponding demodulation and decoding at the receiver  FTSP uses a broadcast from a single sender to synchronize multiple receivers  Each broadcast provides a synchronization point (a global–local time pair) to each receiver

8/18/ Coarse-grained clock synchronization wireless sensor network system for structural- response data acquisition  Assume that:

8/18/ References 1.L. Lamport, “Time, Clocks, and the Ordering of Events in a Distributed System,”Communications of the ACM, 21, 7, July 1978, 558– F. Cristian, “A Probabilistic Approach to Distributed Clock Synchronization,” DistributedComputing, 3, 1989, 146– J. Elson, L. Girod, and D. Estrin, “Fine-Grained Network Time Synchronization using Reference Broadcasts,” in Proceedings of the Fifth Symposium on Operating Systems Design and Implementation (OSDI), December S. Ganeriwal, R. Kumar, and M. B. Srivastava, “Timing-Sync Protocol for Sensor Networks,” Proceedings of ACM SenSys’03, November M. L. Sichitiu and C. Veerarittiphan, “Simple, Accurate Time Synchronization for Wireless Sensor Networks,” Proceedings of IEEE Conference on Wireless Communications and Networking (WCNC), March M. Maroti, B. Kusky, G. Simon, and A. Ledeczi, “The Flooding Time Synchronization Protocol,” Proceedings of ACM SenSys, November N. Xu, S. Rangwala, K. Chintalapudi, D. Ganesan, A. Broad, R. Govindan, and D. Estrin, “A Wireless Sensor Network for Structural Monitoring,” Proceedings of ACM Conference on Embedded Networked Sensor Systems (SenSys), November 2004