Top Banner
Time Diffusion Synchronization Protocol for Wireless Networks Weilian Su and Ian F. Akyildiz
25

Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Mar 26, 2018

Download

Documents

vodang
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Time Diffusion Synchronization Protocol for Wireless Networks

Weilian Su and Ian F. Akyildiz

Page 2: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Overview

• Motivation

• Constraints

• The Protocol

• Results

Page 3: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Motivation

Page 4: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Time Sync

• Why do we care?

• coordination tasks such as tracking

• often want to perceive events in the same time frame

• many more powerful protocols depend upon time synchronization

• e.g. MAC, localization, security, flow control

Page 5: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Constraints

Page 6: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

What makes it hard?

• We can’t rely on existing solutions!

• NTP requires reliable links and nodes

• The Time-Sync Protocol for Sensor Networs (TPSN) requires a predefined, reliable hierarchy

Page 7: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

What makes it hard?

• Temperature

• Phase noise

• Frequency noise

• Asymmetric delay

• Clock glitches

• Network partitioning

Page 8: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

What makes it hard?

• Bottom line: we have to somehow achieve reliable time frames given unreliable clocks, links, nodes

Page 9: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

The Protocol

Page 10: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

At a high level

• The principle problem with other protocols is that they rely on particular nodes to be time servers or masters. We need a more robust solution, that:

• automatically self-configures

• is sensitive to energy requirements

Page 11: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Two cases

• If precise time servers are present, we want to incorporate their high-precision time estimates.

• If no precise time servers are present, the sensor network should still synchronize on a consistent time.

Page 12: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Key Idea

• If we can achieve an equilibrium time without time servers, then when time servers are present, we can simply use them for reference.

• Therefore the goal of TDP is to achieve a Universal Coordinated Time within the network.

Page 13: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

What it looks like

Page 14: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

TDP Scheduling

• Each iteration of algorithm is self-contained.

• Does not run constantly. Performs several iterations, frequently reelecting master nodes in its active period.

• Does nothing in inactive period.

Page 15: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

The algorithm(s)

• Every iteration is made up of several subparts:

• Election/reelection of leaders

• False ticker isolation

• Load distribution

• Peer evaluation

• Time diffusion

• Time adjustment

Page 16: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

The algorithm(s)

Page 17: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Peer Evaluation

• Allows neighbor nodes to evaluate the stability of their own clocks by using Allan Variance.

• Relies on master nodes broadcasting timestamped messages, receiving replies, and finishing calculations for neighbors.

• Reset whenever new leaders elected.

Page 18: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Time Diffusion

• Creates a temporary tree-like structure, passed from one level to the next via Timing Information Handshake. Includes:

• originating master node

• current broadcaster

• level depth

• time

Page 19: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Time Adjustment

• Used on the tree created by the time diffusion procedure

• Nodes at every level update their times to more closely match the master’s time according to level, difference, and local reliability.

Page 20: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Election

• Uses false ticker isolation to identify outliers and exclude them from leadership.

• Uses a load distribution algorithm to pick a node that won’t tax the network too heavily.

• Doesn’t necessarily succeed: if it doesn’t, do nothing this round.

Page 21: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Results

Page 22: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Convergence

Page 23: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Energy cost

Page 24: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Precision within a second.

Page 25: Time Diffusion Synchronization Protocol for Wireless Networksgraphics.stanford.edu/courses/cs321-05-fall/Lectures/TDP-CS321.pdf · Time Diffusion Synchronization Protocol for Wireless

Take-home ideas

• We can incorporate NTP-like hierarchies, but in a wireless sensor network, they have to be robust to sensor failures and changing conditions.

• When we adapt earlier ideas by using elections, we can get good results even in sensor networks.