17
Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr. Yingshu Li 1 Sunday, September 28, 2008

Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava

Presented by: Chinh VuInstructor: Dr. Yingshu Li

1Sunday, September 28, 2008

Page 2: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

OutlineIntroduction

System model

The protocol

Error analysis

Experiment result

2Sunday, September 28, 2008

Page 3: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

IntroductionTiming-sync Protocol for Sensor Networks - “sender-receiver” timing synchronization

Comparison with “Reference Broadcast Synchronization (RBS)”, “receiver-receiver” timing synchronization.

3Sunday, September 28, 2008

Page 4: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

System modelThe network is “always-on”

Every node maintains 16-bit register as clock

Sensor has unique ID

Build hierarchical topology for the network

Node at level i can connect with at least one node at level i-1.

4Sunday, September 28, 2008

Page 5: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

The protocolLevel discovery: trivial

Synchronization phase: pair-wise sync is performed along the edge of hierarchical structure

5Sunday, September 28, 2008

Page 6: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Two-way message exchange

✴T1: A is sender, starting sync by sending synchronization_pulse packet to B: T2 = T1 + ∆ + d where

•∆ is the clock drift•d is propagation delay

✴T2: B replies acknowledgement containing T1,T2,T3✴T4: A receive ack and T4 = T3 + ∆ + d. So:

•∆ = [(T2-T1) - (T4-T3)]/2•d = [(T2-T1) + (T4-T3)]/2

6Sunday, September 28, 2008

Page 7: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Root node initiating the phase by broadcasting a time_sync packet.

Node at level 1 wait for some random time, and use two-way message exchange with the root node.

Nodes belonging to level 2 will overhear this message exchange.

Nodes in level 2 back off for some random time and continue process

The protocol

7Sunday, September 28, 2008

Page 8: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Some special situationsNode does not have level:

Wait for some period.

Broadcasts a level_request message

Nodes at level i-1 die randomly

Nodes at level i would retransmit the synchronization_pulse for some random times.

if not success, do the “local level discovery” again.

8Sunday, September 28, 2008

Page 9: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Decomposition of Packet Sender:

Send time: Application layer → MAC layer

Access time: wait for accessing the channel (MAC contention).

Transmission time: at physical layer

9Sunday, September 28, 2008

Page 10: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Decomposition of Packet Propagation: packets traverse wireless link

Receive:

Reception time: Physical layer → MAC layer

Receive time: MAC layer → Application layer

10Sunday, September 28, 2008

Page 11: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Error Analysis

Ti: local time

ti: global/real/ideal time

SA: send packet (send + access + transmission time) at node A

PA→B:propagation time between node A, B

RB: Receive packet (reception time + receive time) at node B

Dt: Drift between A and B at time t.11Sunday, September 28, 2008

Page 12: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Error Analysis (cont)Similarly: thus:

We further have:

(3)-(4):

Where:

Thus:12Sunday, September 28, 2008

Page 13: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Comparing with RBSTPSN error:

RBS error:

Where A, B receive the common packet from the same sender C and:

13Sunday, September 28, 2008

Page 14: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Experiment - Sync Pair of MotesBuild on Berkeley Mote with TinyOS

Two nodes started randomly and are synced.

Result:

14Sunday, September 28, 2008

Page 15: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

A Pair: Synchronization error

15Sunday, September 28, 2008

Page 16: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Multihop: Synchronization errorChain: A→B→C→D→E

16Sunday, September 28, 2008

Page 17: Timing-sync Protocol for Sensor Networks€¦ · Timing-sync Protocol for Sensor Networks by Saurabh Ganeriwal, Ram Kumar, Mani B. Srivastava Presented by: Chinh Vu Instructor: Dr

Auxiliary Benefits of TPSN

An average accuracy of synchronizing a pair of motes < 20 µs:

Average ranging error ≅(Speed of sound) * (Average timing synchronization error)≅ (345m/s)*(20µs) = 0.69cm

17Sunday, September 28, 2008