![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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/1.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/16.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042205/5ea777ebc480a8087110eb36/html5/thumbnails/17.jpg)
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