Net 435: Wireless sensor network (WSN)

Slides:



Advertisements
Similar presentations
Time in Distributed Systems
Advertisements

HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
CS6223: Distributed Systems Distributed Time and Clock Synchronization (1) Physical Time.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
Time and Global States Ali Fanian Isfahan University of Technology
L-8 Synchronizing Physical Clocks 1 Announcements Proj1 checkpoint – due midnight tonight HW1 checkpoint – due 2/12 2.
Distributed Systems Fall 2010 Time and synchronization.
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.
Time and Global States Chapter 11. Why time? Time is an Important and interesting issue in distributes systems. One we can measure accurately. Can use.
Distributed Systems CS Synchronization – Part II Lecture 8, Sep 28, 2011 Majd F. Sakr, Vinay Kolar, Mohammad Hammoud.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
1 Slides for Chapter 10: Time (and Global State) From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley.
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.
Lecture 2-1 CS 425/ECE 428 Distributed Systems Lecture 2 Time & Synchronization Reading: Klara Nahrstedt.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
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.
A Security Analysis of the Network Time Protocol (NTP) Presentation by Tianen Liu.
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Naming Name distribution: use hierarchies DNS X.500 and LDAP.
Time and Coordination March 13, Time and Coordination What is time? :-)  Issue: How do you coordinate distributed computers if there is no global.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
1 Clock Synchronization for Wireless Sensor Networks: A Survey Bharath Sundararaman, Ugo Buy, and Ajay D. Kshemkalyani Department of Computer Science University.
Wireless Sensor Networks Nov 1, 2006 Jeon Bokgyun
Time synchronization for UWSN. Outline Time synchronization knowledge Typical time sync protocol Time sync in UWSN Discussion.
1 Time (and Global State). 3 Time – basics zWe want to know when something happened - Physical and logical clocks. zAlgorithms may depend upon clock.
1 Clock Synchronization & Mutual Exclusion in Distributed Operating Systems Brett O’Neill CSE 8343 – Group A6.
Lecture 9: Time and clocks (Chap 11) Haibin Zhu, PhD. Assistant Professor Department of Computer Science Nipissing University © 2002.
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.
Time and global states Chapter 11. Outline Introduction Clocks, events and process states Synchronizing physical clocks Logical time and logical clocks.
Distributed Systems CS Synchronization – Part I Lecture 8, Sep 23, 2013 Mohammad Hammoud.
Distributed Systems Lecture 5 Time and synchronization 1.
CSE 486/586 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
Page 1 Clock Synchronization: Physical Clocks Minqi Zhou Distributed Systems Except as otherwise noted, the content of this presentation.
Distributed Web Systems Time and Global State Lecturer Department University.
Topic 7: Time and Global State Dr. Ayman Srour Faculty of Applied Engineering and Urban Planning University of Palestine.
Distributed Systems CS
Proof of liveness: an example
Distributed Computing
Distributed Systems CS
Wireless Sensor Network Architectures
Time and Global States Ali Fanian Isfahan University of Technology
Lecture 5 Time and synchronization
CSE 486/586 Distributed Systems Time and Synchronization
Net 435: Wireless sensor network (WSN)
Chapter 5 Network and Transport Layers
Time and Clock.
Logical time (Lamport)
Clock Synchronization: Physical Clocks
Distributed Systems CS
Distributed Systems CS
Time and Clock.
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Distributed Systems CS
Distributed Systems CS
Introduction to Synchronization
Physical clock synchronization
CDK: Sections 11.1 – 11.4 TVS: Sections 6.1 – 6.2
Optical communications & networking - an Overview
Computer Networking A Top-Down Approach Featuring the Internet
Logical time (Lamport)
Logical time (Lamport)
Overview: Chapter 4 Infrastructure Establishment
CSE 486/586 Distributed Systems Time and Synchronization
Logical time (Lamport)
Last Class: Naming Name distribution: use hierarchies DNS
Presentation transcript:

Net 435: Wireless sensor network (WSN) Networks and Communication Department Lecture 8: time synchronization in WSN

Synchronization Synchronization is the coordination of events to operate a system in unison. The familiar conductor of an orchestra serves to keep the orchestra in time. Systems operating with all their parts in synchrony are said to be synchronous or in sync. 18-Sep-18 Networks and Communication Department

Synchronization in Communication systems In electrical engineering for digital logic and data transfer, a synchronous circuit requires a clock signal. However, the use of the word "clock" in this sense is different from the typical sense of a clock as a device that keeps track of time-of-day; the clock signal simply signals the start and/or end of some events. 18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

Motivation for Time Synchronization Most applications require some synchronization accuracy Fire and flood tracking Animal movement Vehicle movement Gunshot detection

18-Sep-18 Networks and Communication Department

Existing Synchronization Solutions Global Positioning System (GPS) Power-hungry Network Time Protocol (NTP) Computationally infeasible for wireless sensors Timing-sync Protocol for Sensor Networks (TPSN) Transmitter-receiver synchronization

GPS The Global Positioning System (GPS) is a space- based navigation system that provides location and time information in all weather conditions, anywhere on or near the Earth where there is a line of sight to four or more GPS satellites. 18-Sep-18 Networks and Communication Department

Definitions Local clocks are maintained at designated time servers, which are timekeeping systems belonging to a synchronization subnet, in which each server measures the offsets between its local clock and the clocks of its neighbor servers or peers in the subnet. stability of a clock is how well it can maintain a constant frequency, the accuracy is how well its time compares with national standards and the precision is how precisely time can be resolved in a particular timekeeping system. 18-Sep-18 Networks and Communication Department

UTC Coordinated Universal Time is the primary time standard by which the world regulates clocks and time. A time standard is a specification for measuring time: the rate at which time passes It is one of several closely related successors to Greenwich Mean Time (GMT). For most purposes, UTC is considered interchangeable with GMT, but GMT is no longer precisely defined by the scientific community. 18-Sep-18 Networks and Communication Department

to synchronize frequency means to adjust the clocks in the subnet to run at the same frequency, to synchronize time means to set them to agree at a particular epoch with respect to Coordinated Universal Time (UTC), as provided by national standards. to synchronize clocks means to synchronize them in both frequency and time. 18-Sep-18 Networks and Communication Department

NTP Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. 18-Sep-18 Networks and Communication Department

Historical facts Developed in 1985 by David Mills at the University of Delaware, USA. David is still maintaining NTP. NTP is one of the oldest Internet protocols still in use. Latest version is NTP version 4 (version 5 is under development) 18-Sep-18 Networks and Communication Department

Differences to Cristian‘s method and the Berkley algorithm Cristian‘s method(CM) and the Berkley algorithm(BA) are both designed for primarily use in intranets. An intranet is a network based on TCP/IP protocols (an internet) belonging to an organization, usually a corporation, accessible only by the organization's members, employees, or others with authorization. The Network Time Protocol was designed for use in the Internet (or other unreliable networks) right up from the start. CM and BA both synchronize against one time server. NTP synchronizes against many time servers. 18-Sep-18 Networks and Communication Department

Design aims of NTP Adjust system clock as close to UTC as possible over the Internet. (statistic techniques for filtering timing data) Handle bad connectivity. (redundant paths, reconfigurable servers) Enable sufficiently frequently resynchronizations. (scaling well on large numbers of clients and servers) Security. (distrust server’s time, authentication) 18-Sep-18 Networks and Communication Department

Hierarchical structure The NTP service is provided by a network of servers located across the Internet. Primary servers are connected directly to a time source. (e.g. a radio clock receiving UTC, GPS). Secondary servers are synchronized with primary servers. The servers are connected in a logical hierarchy called a synchronization subnet. 18-Sep-18 Networks and Communication Department

Synchronization subnet Each level of the synchronization subnet is called stratum. (e.g. primary servers are stratum 1, secondary stratum 2 and so on) Lowest-level (leaf) servers execute in users‘ workstations. (e.g. ntp under Linux) Servers with high stratum numbers are liable to have less accurate clocks than those with lower stratum numbers. The synchronization subnet can reconfigure as servers become unreachable or failures occur. 18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

Server synchronization There are three possible synchronization modes: multicast (sometimes called broadcast) procedure-call (sometimes called client) symmetric (sometimes called peer) 18-Sep-18 Networks and Communication Department

Multicast mode One or more servers periodically multicasts the time to the servers in the network. Receivers set their clock assuming a small delay. Receivers don‘t reply. Problem: Relative low accuracy. Due to hardware limitations this mode only works in IP multicast enabled networks like LAN. 18-Sep-18 Networks and Communication Department

procedure-call mode One server accepts requests from other computers. The server replies with its timestamp. Higher accuracy. 18-Sep-18 Networks and Communication Department

symmetric mode Intended to be used on higher levels of the synchronization subnet. A pair of servers exchange messages to improve the accuracy of their synchronization over time. (reduction of the synchronization dispersionتشتت) Highest accuracy. 18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

Timing-sync Protocol for Sensor Networks Timing-sync Protocol for Sensor Networks (TPSN) that works on the conventional approach of sender receiver synchronization. We argue that for sensor networks, the classical approach of doing a handshake between a pair of nodes is a better approach than synchronizing a set of receivers. Traditional handshake approach Timestamp at the MAC layer Two stages Level Discovery Phase (Flooding) Synchronization Phase

TPSN Model – Level Discovery Phase Assign root (level 0) node Broadcast level_discovery packet Nodes 1 hop away assigned to level 1 Ignore all subsequent level_discovery packets Broadcast level_discovery packet …

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

18-Sep-18 Networks and Communication Department

TPSN Model – Synchronization Phase Each node (A) broadcasts synchronization_pulse Timestamped at T1 Node B receives pulse at T2, broadcasts ack at T3 Node A receives ack at T4 Δ is clock drift d is propagation delay

COMPUTER CLOCK AS AN APPROXIMATION OF REAL TIME 18-Sep-18 Networks and Communication Department

TPSN Energy Usage Transmissions and receptions grow as O(n) Large energy savings over RBS for large n Less efficient for small n

Thank You 18-Sep-18 Networks and Communication Department