Beruflich Dokumente
Kultur Dokumente
Fine-Grained Network Time Synchronization using Reference Broadcasts by Jeremy Elson, Lewis Girod and Deborah Estrin
Outline
Introduction Concept of Traditional Time Synchronization Concept of Reference Broadcast Synchronization Kind of latency in TTS and RBS RBS algorithm for:
Introduction
Time synchronization is highly critical in sensor networks for purposes such as:
Purpose
To Synchronize all the nodes in the sensor network using a method that:
Secure cryptographic schemes Coordination of future action Ordering logged events during system debugging
The sender periodically sends a message with its current clock as a timestamp to the receiver Receiver then synchronizes with the sender by changing its clock to the timestamp of the message it has received from the sender (if the latency is small compared to the desired accuracy) Sender calculates the phase error by measuring the total round trip-time by sending and receiving the respective response from the receiver (if the latency is large compared to the desired accuracy)
Illustration of TTS
S R
Reference broadcasts do not have an explicit timestamp Receivers use reference broadcasts arrival time as a point of reference for comparing nodes clocks Receivers synchronizes with one another using the messages timestamp (which is different from one receiver to another)
Illustration of RBS
1 A 3 4 2
RBS - Synchronizes a set of receivers with one another Traditional - Senders synchronizes with receivers RBS Supports both single hop and multi hop networks Traditional mostly supports only single hop networks
RBS
time spent at the sender to construct the message time spent at the sender to wait for access to transmit the message time spent by the message in traveling from the sender to the receiver time spent at the receiver to receive the message from the channel and to notify the host
Phase error
-
due to nodes clock that contains different times due to nodes clock that run at different rate
Clock skew
-
Transmitter broadcasts a reference packet to two receivers Each receiver records the time that the reference was received, according to its local clock The receivers exchange their observations
Transmitter broadcasts m reference packets Each of the n receivers records the time that the reference was received, according to its local clock The receivers exchange their observation Each Receiver i can compute its phase offset to any other receiver j
Formula for calculating the phase offset of receiver i with other receiver j:
n : number of receivers m : number of reference broadcasts Tr,b : rs clock when it received broadcast b
m
{r n, b m}
in, jn : Offset[i,j] = 1/m k=1 (Tj,k Ti,k) Then the receiver changes its clock by the calculated phase offset
Analysis of RBS algorithm for single broadcast domain (no clock skew)
2-D view:
Mean group dispersion from the average of 1000 simulated trials for:
-
Analysis of RBS algorithm for single broadcast domain (no clock skew)
3-D view:
Mean group dispersion from the average of 1000 simulated trials for the same data set, from 2 to 20 receivers (inclusive)
Least-squares linear regression graph From the best-fit line of the graph, following can be inferred:
-
Slope of the line : Clock skew of the nodes clock Intercept of the line : Phase of the nodes clock
Basic idea to estimate phase offset and clock skew for non-deterministic receivers:
-
Transmitter broadcasts m reference packets Each of the n receivers records the time that the reference was received, according to its local clock The receivers exchange their observation Each Receiver i can compute its phase offset to any other receiver j
Formula for calculating the phase offset and clock skew of receiver r1 with other receiver r2:
Tr,b : rs clock when it received broadcast b, for each pulse k that was received by receivers r1 and r2 , we plot a graph : x = Tr1, k y = Tr2,k Tr1,k
Diagonal line drawn through the points represents the best linear fit to the data
Diagonal line minimizes the residual error (RMS). Therefore, we go for calculating the slope and intercept of the diagonal line Time value of r1 is converted to time value of r2 by combining the slope and intercept data obtained
Analysis of RBS algorithm for single broadcast domain (with clock skew)
Time (sec)
Synchronization of the Motes internal clock Vertical impulses show the distance of each point from the best-fit line RMS error
Analysis of RBS algorithm for single broadcast domain (with clock skew)
Time (sec)
Hardware implementation
RBS as a UNIX daemon UDP datagrams as Motes Testbed: - StrongARM-based Compaq IPAQs - Lucent Technologies 11 Mbit 802.11 wireless Ethernet adapters - All Ethernet adapters connected to a wireless 802.11 base station
Minimal load generated by synchronization scheme Two additional IPAQs configured as traffic generators Each IPAQ sent randomly sized UDP datagrams of 500 to 15,000 bytes Inter-packet delay: 10 msec
Test Results
RBS performed more than 8 times better than NTP and NTP-Offset RBS : average of 6.29 6.45 sec error
Test Results
For Light traffic:
Test Results
Test Results
For Heavy traffic:
Obtained by mathematical conversion of output obtained in available single hop networks in the multi-hop network. Least square linear regression graph used to synchronize all the single hop networks in the multi-hop network The values are then formulated and converted accordingly for all the nodes in the multi-hop network
Events E1 and E7 observed by R1 and R7 respectively Best-fit line calculated by R4 using As broadcast E1(R4) => E1(R1) : R1 synchronized with R4 by A Best-fit line calculated by R4 using Bs broadcast E1(R4) => E1(R7) : R4 synchronized with R7 by B R1 synchronizes with R7 using R4
If average per-hop error = Hop path = n Average path error of n-hop = . Sqrt(n)
Advantages of RBS
Can be used without external timescales Energy conservative Does not require tight coupling between sender and its network interface Covers much wider area Applicable in both wired and wireless networks Largest resources of latency (that exists in TTS) is removed from critical path Allows tighter synchronization
Nodes stay in sleep mode until an event of interest occurs post-facto sync
Limitations of RBS
Works only with broadband communication Does not support point to point communication (as time synchronization is done among a set of receivers. In point-to-point only one receiver exists)
Applications
Acoustic Motes: Acoustic Ranging implemented in Berkeley Motes Collaborative Signal Detection
References
Fine-Grained Network Time Synchronization using Reference Broadcasts. Jeremy Elson, Lewis Girod and Deborah Estrin, UCLA Power point presentation on Fine-Grained Network Time Synchronization using Reference Broadcasts. Jeremy Elson, Lewis Girod and Deborah Estrin, UCLA. Available at : http://lecs.cs.ucla.edu/~jelson/talks/timesync/RBS-OSDI-2002-Dec9.ppt Wireless Sensor Networks: A New Regime for Time Synchronization. Jeremy Elson and Kay Romer, UCLA Time Synchronization for Wireless Sensor Networks. Jeremy Elson and Deborah Estrin, UCLA