<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">WSN</journal-id><journal-title-group><journal-title>Wireless Sensor Network</journal-title></journal-title-group><issn pub-type="epub">1945-3078</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/wsn.2013.510021</article-id><article-id pub-id-type="publisher-id">WSN-37986</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  On Energy-Efficient Time Synchronization for Wireless Sensors under Large-Scale and Small-Scale Fading Effects
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ablo</surname><given-names>Briff</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ariel</surname><given-names>Lutenberg</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Leonardo</surname><given-names>Rey Vega</given-names></name><xref ref-type="aff" rid="aff3"><sup>3</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fabian</surname><given-names>Vargas</given-names></name><xref ref-type="aff" rid="aff4"><sup>4</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Embedded Systems Laboratory, Faculty of Engineering, University of Buenos Aires, Buenos Aires, Argentina；
CONICET, National Scientific and Technical Research Council, Buenos Aires, Argentina</addr-line></aff><aff id="aff4"><addr-line>Signals and Systems for Computing Group, Faculty of Engineering, Catholic University, Porto Alegre, Brazil</addr-line></aff><aff id="aff3"><addr-line>CONICET, National Scientific and Technical Research Council, Buenos Aires, Argentina；
LPSC, Faculty of Engineering, University of Buenos Aires, Buenos Aires, Argentina</addr-line></aff><aff id="aff1"><addr-line>Embedded Systems Laboratory, Faculty of Engineering, University of Buenos Aires, Buenos Aires, Argentina</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>pbriff@fi.uba.ar(AB)</email>;<email>lse@fi.uba.ar(AL)</email>;<email>lrey@fi.uba.ar(LRV)</email>;<email>vargas@pucrs.br(FV)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>15</day><month>10</month><year>2013</year></pub-date><volume>05</volume><issue>10</issue><fpage>181</fpage><lpage>193</lpage><history><date date-type="received"><day>July</day>	<month>27,</month>	<year>2013</year></date><date date-type="rev-recd"><day>August</day>	<month>27,</month>	<year>2013</year>	</date><date date-type="accepted"><day>September</day>	<month>4,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   In this work, the existing trade-off between time synchronization quality and energy is studied for both large-scale and small-scale fading wireless channels. We analyze the clock offset estimation problem using one-way, two-way and N-way message exchange mechanisms affected by Gaussian and exponentially distributed impairments. Our main contribution is a general relationship between the total energy required for synchronizing a wireless sensor network and the clock offset estimation error by means of the transmit power, number of transmitted messages and average message delay, deriving the energy optimal lower bound as a function of the time synchronization quality and the number of hops in a multi-hop network.
     
 
</p></abstract><kwd-group><kwd>Wireless Sensor Networks; Clock Offset Estimation; Time Synchronization; Wireless Channel Fading</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>With the advent of wireless technologies over the last decade, Wireless Sensor Networks (WSN’s) are overtaking wired networks in the field of sensing [<xref ref-type="bibr" rid="scirp.37986-ref1">1</xref>]. A WSN typically consists of low cost sensor nodes that run on battery or obtain energy from harvesting techniques, namely self-powered sensors. For this reason, energy management becomes a substantial matter in order to guarantee reasonable sensors’ lifetime values. Networkwide time synchronization for WSN’s provides mechanisms for achieving power management and device location, while it constitutes an indispensable requirement for in-network processing of the sensed data. However, synchronizing an entire WSN represents a far-from-trivial enterprise that encompasses a suite of challenges to be solved, for which it remains within the top-five most challenging open topics in WSN’s [<xref ref-type="bibr" rid="scirp.37986-ref2">2</xref>]. Still, with the recent introduction of the “Internet of Things” (IoT), the density of the nodes in a WSN is expected to be considerably increased [<xref ref-type="bibr" rid="scirp.37986-ref3">3</xref>], and time synchronization will become a substantial need for achieving the desired performance figures. Due to the fact that in the most general case there will be no common clock signal broadcasted over the entire network, time synchronization algorithms aim to provide a mechanism by which all sensors obtain an estimate of their internal clocks with respect to the other nodes so as to reach a consensus on the concept of time among all the sensors in the network. For each sensor i, its internal clock c<sub>i</sub> can be modelled as a linear equation with a corresponding skew α<sub>i</sub> and offset β<sub>i</sub> [4,5], namely<img src="1-9501314\2c0cb2ff-81e7-47ee-ac5a-31262968badf.jpg" />. In order to achieve a target synchronization quality, parameter estimation techniques can be applied, being the estimation error <img src="1-9501314\25827d9f-bb47-41d4-b4b0-f56dc7813f77.jpg" /> a function of the estimator and the number of samples employed. Since time synchronization involves messages exchange and transmission/reception operation, it becomes an energy-consuming task for sensors to carry out; still, the communication channel may undergo impairments making transmitted messages do not reach their destinations, which constitutes a waste of energy for the entire network. Consequently, time synchronization implies an unavoidable energy expenditure; however, when achieved, it could allow significant further savings in energy consumption through proper network power management.</p><p>This work is organized as follows: Section 2 provides an overview of the related work on the field of clock offset estimation, Sections 3 and 4 state the general system model for the power consumption vs. estimation quality trade-off when using one-way messages, Section 5 extends the limits found in Section 4 to two-way messages’ clock offset estimation, and a generalization of the problem to n-way messages is presented in Section 6; Section 7 shows that the results for two-way messages exchange are applicable to the renowned ReferenceBroadcast Synchronization algorithm [<xref ref-type="bibr" rid="scirp.37986-ref6">6</xref>], whereas Section 8 depicts the simulation results for the limits found in this research for the two-way message exchange scenario. Finally, Section 9 exposes the conclusions of this work.</p></sec><sec id="s2"><title>2. Related Work</title><p>There is a number of clock synchronization techniques that base their operating principle on estimation theory and messages exchange among sensors. Examples of these are Reference-Broadcast Synchronization (RBS) [<xref ref-type="bibr" rid="scirp.37986-ref6">6</xref>], Timing-Sync Protocol for Sensor Networks (TPSN) [<xref ref-type="bibr" rid="scirp.37986-ref7">7</xref>] and Pairwise Broadcast Synchronization (PBS) [<xref ref-type="bibr" rid="scirp.37986-ref8">8</xref>]. All three protocols make use of the number of received messages from a given sensor node to produce their clock estimation. In RBS, a reference node broadcasts reference beacons that serve the nodes in the network to perform receiver-receiver pairwise synchronization. TPSN, however, creates a hierarchical structure in which each node synchronizes to its parent in a sender-receiver fashion. Yet, in PBS, a pair of supernodes A and P exchange messages that are overheard by all nodes in the network, allowing each node to construct their local estimate of the clock offset and skew with respect to the supernodes based on reception time stamps. Thus, for a given node B the quality of offset estimation with respect to reference node P can be obtained as follows [<xref ref-type="bibr" rid="scirp.37986-ref8">8</xref>]:</p><disp-formula id="scirp.37986-formula14768"><label>(1)</label><graphic position="anchor" xlink:href="1-9501314\48b5bbc3-774c-4544-93d5-fc7b4f667dda.jpg"  xlink:type="simple"/></disp-formula><p>It can be noted from (1) that the estimation quality, represented by the variance of the estimator, depends on the number of received messages <img src="1-9501314\aa6131ef-bdcd-47a2-b9cf-9f754ccc3ac6.jpg" /> and the time stamps differences D<sub>i</sub><sub>.</sub> Increasing <img src="1-9501314\7eb0749c-911f-4ab4-9465-48f6bcc3a61e.jpg" /> will enhance estimation quality in detriment of the energy consumed; this trade-off will be treated throughout this work in order to provide the basis for its theoretical limits. For simplicity reasons and without loss of generality, the problem of clock offset estimation will be studied in this work, although it can be generalized to skew estimation as well. More recent works such as [9,10] approach the energy efficiency problem from a protocol perspective, without detailing the physical phenomena involved in wireless channels. For example, [<xref ref-type="bibr" rid="scirp.37986-ref9">9</xref>] proposes a new algorithm, the Recursive Time Synchronization Protocol (RTSP), which aims to minimize the number of transmitted messages in a WSN, although the authors do not include in their analysis the transmit or receive power in each sensor node as part of the minimization problem. Thus, many authors expose this energy-synchronization quality balance as a known open topic (such as [11,12]), to the best of our knowledge, previous contributions in the field of clock synchronization focus on the algorithmic aspect of the timing mechanism with little concern on the energy, physical phenomena (i.e., fading channels) and average message delay required to attain such a goal. Moreover, the trade-off “transmit power—clock synchronization quality” is a critical issue for wireless embedded systems that requires to find an optimal solution. This paper extends the work we presented in [<xref ref-type="bibr" rid="scirp.37986-ref13">13</xref>] and provides a concrete answer to the following question: “What is the minimum energy required to synchronize a WSN within a target clock accuracy?”</p></sec><sec id="s3"><title>3. System Model</title><p>Transmit power and clock synchronization quality operate on different layers: the first one is a physical magnitude whereas the latter belongs to the application layer. Nonetheless, with the introduction of the cross layer design concept [<xref ref-type="bibr" rid="scirp.37986-ref1">1</xref>], all layers should be aligned in order to achieve an energy-optimal solution. However, prior to estimation, physical layer reception occurs with a given probability of failure as a function of the transmit power S, given by the outage probability P<sub>out</sub> of the channel, defined as the probability that the received signal falls under a minimum acceptable threshold [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]. Some authors prefer to use the term packet reception rate (PRR), which generally refers to the ratio between the received and transmitted packets [<xref ref-type="bibr" rid="scirp.37986-ref15">15</xref>], although in this work it is more convenient to talk of outage probability, since it provides a closer look into the physical effects that lead to successfully receiving a packet or not.</p><p>Let’s consider each node’s clock offset θ is estimated with an unbiased estimator<img src="1-9501314\b1629431-c7b1-46a9-8bc0-d5a00270394e.jpg" />, and let <img src="1-9501314\1a2609ec-159b-4ed7-98e7-8b4e89f532d2.jpg" /> be the variance of the clock offset estimator. The problem described in this section centers on the fact that sender node A sends m packets while receiver node B receives <img src="1-9501314\d5e8520e-9ba9-436c-9527-a4c1d6d66b80.jpg" /> successful messages. The outage probability can also serve as a measure of the delay <img src="1-9501314\29c9236d-35c2-4265-9db2-895eb3f0aa08.jpg" /> introduced by the communication channel for achieving the synchronization quality, since the probability <img src="1-9501314\ced4da4c-7132-4fcd-a0a2-9269efc9a5e2.jpg" /> of successfully receiving the target <img src="1-9501314\d2140073-ffd2-488c-af40-b8807fcae425.jpg" /> messages when sending <img src="1-9501314\243523bd-e314-40f9-8c0e-d0f99e0809eb.jpg" /> messages is a binomial random variable (RV) with success probability <img src="1-9501314\1177ba42-4cc0-4917-9c2d-7cb421475302.jpg" /> and mean<img src="1-9501314\cb4d8a45-3ade-4282-9e1f-a34cdbaf80a3.jpg" />. This leads to an average delay per message δ defined by the rate of successfully received messages as follows:</p><disp-formula id="scirp.37986-formula14769"><label>(2)</label><graphic position="anchor" xlink:href="1-9501314\5aac4249-61c6-4a5a-b7a2-471df59f3620.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\808a8088-e2a7-45b1-bdd6-679f6ade136a.jpg" /> is the message transmission time. Thus, reducing the outage probability will also enhance the synchronization time. That is, time-sensitive applications may adjust their performance by tuning the transmit power accordingly. However, this must be balanced with the application’s energy budget, since in order to reduce <img src="1-9501314\0d7c3ff4-14c9-47eb-b208-902a2dcc1b42.jpg" /> , the transmit power S must be increased. Considering the estimation quality depends on the number of successfully received packets<img src="1-9501314\d8b2fc68-1ddc-4167-82c0-dce921914a04.jpg" />, the interesting relation <img src="1-9501314\6323d280-f905-4573-ac36-345a1ce8fcbc.jpg" /> is sought. Thus, it is necessary to account for the estimation quality’s dependance on the number of received messages, namely <img src="1-9501314\12861f48-b5d7-45af-a7bd-9fa46cd65763.jpg" /> , and the number of received messages as a function of transmit power, i.e.<img src="1-9501314\92c54603-bf53-47d1-bcb2-439b063fdb04.jpg" />.</p><p>In this work, we analyze two different perturbations of the estimated magnitude, i.e. Gaussian and exponential distributions corresponding to the impairments of the estimated clock offset θ. As explained in [16,17], a single-server M/M/1 queue can fittingly represent the cumulative link delay for point-to-point hypothetical reference connection, where the random delays are independently modeled as exponential RVs. The exponential random delays have their origins in the access time and processing times of the nodes. The reason for adopting Gaussian pdf is due to the central limit theorem, which asserts that the pdf of the sum of a large number of independent and identically distributed (iid) RVs approaches that of a Gaussian RV. This model will be appropriate if the delays are thought to be the addition of numerous independent random processes [<xref ref-type="bibr" rid="scirp.37986-ref17">17</xref>]. In addition to this, when nodes are estimating the magnitudes by means of the commonly used technique of Medium Access Control (MAC) layer time-stamping, the estimation noise is Gaussian distributed since the send time, access time and transmission time uncertainties are canceled out [7,18]. We also approach the synchronization problem from the local perspective of a node that is synchronizing with a neighbouring node, irrespective of the network size and topology. Still, we consider that the nodes’ spatial positions remain approximately constant during the synchronization process, as specified in Section 3.2. The analysis presented in this work is not tied to a particular procedure but it represents a universal lower bound on the “energy—synchronization quality” trade-off.</p><sec id="s3_1"><title>3.1. Estimators and Theoretical Limits</title><p>The trade-off studied in this work can be stated as an estimation problem. Both expected value and variance of the offset’s unbiased estimator are defined as shown below:</p><disp-formula id="scirp.37986-formula14770"><label>(3)</label><graphic position="anchor" xlink:href="1-9501314\3da14833-4056-4865-a764-4ae9e6f37a77.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.37986-formula14771"><label>(4)</label><graphic position="anchor" xlink:href="1-9501314\3e3c7e45-4400-4993-89d5-befd287e0cf8.jpg"  xlink:type="simple"/></disp-formula><p>In order to formulate a general problem, the CramerRao lower bound [<xref ref-type="bibr" rid="scirp.37986-ref19">19</xref>] can be used for delimiting the best performance an estimator can afford. Thus, the estimation quality relates with the Fisher Information function <img src="1-9501314\84c7c7c4-db05-46e0-84a4-164d9ac8e831.jpg" /> as follows:</p><disp-formula id="scirp.37986-formula14772"><label>(5)</label><graphic position="anchor" xlink:href="1-9501314\6cfcc39f-f872-462c-8c98-f1b0a028d77f.jpg"  xlink:type="simple"/></disp-formula><p>with the Fisher Information’s expression as shown below [<xref ref-type="bibr" rid="scirp.37986-ref19">19</xref>]:</p><disp-formula id="scirp.37986-formula14773"><label>(6)</label><graphic position="anchor" xlink:href="1-9501314\5f559b6c-6a99-453f-8c9b-bcfc3e4f91a1.jpg"  xlink:type="simple"/></disp-formula><p>where f is the likelihood function of the parameter θ.</p></sec><sec id="s3_2"><title>3.2. Communication Channel Model</title><p>For wireless channels, received to transmitted power ratio <img src="1-9501314\dd919d54-a678-4d3d-97b1-54de3796f239.jpg" /> is dictated by [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]:</p><disp-formula id="scirp.37986-formula14774"><label>(7)</label><graphic position="anchor" xlink:href="1-9501314\f81bab1b-bc00-4b85-bb50-cf1c0cf5cf5f.jpg"  xlink:type="simple"/></disp-formula><p>where K is a constant that models the antenna gain, d<sub>0</sub> a reference distance, γ the path loss exponent, d the distance between transmitter and receiver nodes, and<img src="1-9501314\954916e4-01a5-4bd8-8b50-b4139d8b3bea.jpg" />, being ψ a RV that models either large-scale (shadowing) or small-scale (multipath fading) effects. A communication is defined to be successful, i.e. the receiver can process the transmitted message, when the received Signal-to-Noise Ratio (SNR) γ<sub>s</sub> satisfies<img src="1-9501314\dce18b6d-7875-4957-b990-7d8466ec701b.jpg" />, being γ<sub>0</sub> the minimum acceptable SNR by the receiver [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]. We will consider that the wireless channel is memoryless and time-invariant, meaning that each channel use will be independent and uncorrelated from each other, i.e., they will undergo independent and identically distributed (i.i.d.) fading effects [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]; this means that two subsequent messages sent over the wireless channel will present independent and uncorrelated impairments. Although this situation is not always present in practice, this assumption simplifies the mathematical problem while at the same time enables us to gain insight into the general problem. This condition may be applicable to fast-varying channels as well as moving sensors where the displacement distance <img src="1-9501314\dd7a673c-f25d-492b-b085-66617c5613c7.jpg" /> of a sensor is much less than the distance d that separates a pair of sensors. In a typical scenario where wireless sensors transmit over 2.4 GHz, with a wavelength of λ = 1.25 cm, it will be sufficient that <img src="1-9501314\dee2be9e-dc3e-48da-97d6-b7054fbf0aab.jpg" /> and <img src="1-9501314\bff354c4-0cbf-4826-9dca-e0e2fabd5344.jpg" /> m.</p></sec><sec id="s3_3"><title>3.3. Multiple Broadcast Domains</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref> depicts a situation where nodes deployed in a network contained in different broadcast domains need to</p><p>communicate to each other through an intermediate node. We will initially study the one-way message exchange situation, where Node 1 sends messages to Node 2, and the latter estimates Node 1’s clock offset without message exchange. Following to presenting a solution to this problem, we will study the two-way message exchange scenario, where Node 2 will respond messages to Node 1, and they will both estimate each other’s clock offsets. Finally, we will extend the results to the case in which Node 1 needs to communicate with Node 3 through Node 2, which will create a 4-way message exchange (Node 1-Node 2, Node 2-Node 3, and all the return messages to Node 1), a situation that can be generalized to N-way if there are N/2 broadcast domains and all sensors need to communicate with each other in the network. Therefore, with N-way message exchange we address the multiple hop communications in a multi-domain WSN.</p></sec><sec id="s3_4"><title>3.4. Problem to Solve: Energy Optimization</title><p>The number of successfully received packets <img src="1-9501314\8d2d6141-d2a1-49e8-8094-e5883a3df9c1.jpg" /> is related to the transmit power S as shown below:</p><disp-formula id="scirp.37986-formula14775"><label>(8)</label><graphic position="anchor" xlink:href="1-9501314\8aea18ef-f3c7-4217-aed8-d9543b92ac1e.jpg"  xlink:type="simple"/></disp-formula><p>The main challenge is to find the transmit power S that satisfies the following condition:</p><disp-formula id="scirp.37986-formula14776"><label>(9)</label><graphic position="anchor" xlink:href="1-9501314\42689502-1e56-42c6-a5b9-d0fcbd064cbc.jpg"  xlink:type="simple"/></disp-formula><p>Equation (9) seeks the minimum transmit power S that guarantees the necessary amount of received messages <img src="1-9501314\dd464fad-d260-4319-b1e9-292f3a1f7a6a.jpg" /> so that the clock offset estimation error <img src="1-9501314\f83aa613-9f75-4b3b-9cee-79403e8d3ec5.jpg" /> is less than a desired level<img src="1-9501314\35443efb-e821-418e-967e-d2a13b31d912.jpg" />. For Cramer-Rao efficient estimators, i.e. estimators that attain equality in (5), the following inequality can be stated:</p><disp-formula id="scirp.37986-formula14777"><label>(10)</label><graphic position="anchor" xlink:href="1-9501314\3a02f6ad-a5f3-4596-900c-a2291375ac29.jpg"  xlink:type="simple"/></disp-formula><p>where I is the Fisher Information of the estimated parameter θ as a function of the received samples<img src="1-9501314\2403b230-9cbd-475d-a3fb-1496a130b683.jpg" />. Thus, the problem can be stated as follows:</p><disp-formula id="scirp.37986-formula14778"><label>(11)</label><graphic position="anchor" xlink:href="1-9501314\af7422ef-f68b-4150-8467-c4d1056e9689.jpg"  xlink:type="simple"/></disp-formula><p>Equation (11) can be thought of as an expression of cross-layer design in wireless sensor networks, since it relates a physical layer magnitude (S) with an application layer parameter (<img src="1-9501314\a3db9f50-76e8-48bf-9bf8-2fc4f4e4ed50.jpg" />). This expression seeks the minimum transmit power S for achieving a desired estimation error <img src="1-9501314\6d8473d8-f292-43bd-adf6-450ab432f85b.jpg" /> on the clock offset θ by successfully receiving <img src="1-9501314\c6c8c229-3559-483f-aeb3-ac516565c8e3.jpg" /> messages after transmitting m messages.</p><p>In order to account for energy optimization, both transmitter and receiver energy must be minimized; the first one depends on the transmit power S and the number of transmitted messages m, whereas the latter is determined by the total time the receiver circuit is powered-on. A priori, the time during which the receiver is turned on could be defined by<img src="1-9501314\baea0f2a-0e05-4073-a56d-d606ad700711.jpg" />; however, this time equals the total transmit time, while the receiver node should be turned on for longer in order to receive all the messages since it cannot know in advance each message arrival time. Then, it is expected that the receiver assesses the channel properties and increases its receive time by a linear factor of<img src="1-9501314\9aad1ceb-2d67-4237-b332-3e29438d3758.jpg" />. Thus, the total receive time becomes<img src="1-9501314\32e95feb-f58d-4416-ab67-ce328e793185.jpg" />. That said, the total energy function for a pair of nodes (i, j), where node i is transmitting messages to node j, can be expressed as follows:</p><disp-formula id="scirp.37986-formula14779"><label>(12)</label><graphic position="anchor" xlink:href="1-9501314\f802812e-8d33-48f4-959c-e1166067785f.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\8aed1d27-f25f-48f6-9932-bbcb34d6c548.jpg" /> as per (2) and <img src="1-9501314\aa91aae3-5fff-4739-8a8b-99973b3ebbc0.jpg" /> represents the ratio between the receive power and the transmit power, which typically falls in the range <img src="1-9501314\39620515-f50b-4dd9-85a1-2410a825db32.jpg" /> for commercial transceivers [<xref ref-type="bibr" rid="scirp.37986-ref20">20</xref>]. Although the energy in (12) depends on<img src="1-9501314\c0c0cb7d-32ea-41af-b8af-41be89ac4ab7.jpg" />, this term has a smooth variation with S for which it does not strongly contribute to the overall variation as the rest of the unknowns S, m and <img src="1-9501314\51d10548-b805-4195-bb14-6d8e89265b3d.jpg" /> do, which may present an unbounded variation as it will be shown in Section 6. Hence, it is sufficient to minimize the product of all S, m and <img src="1-9501314\d85ed944-26f0-4ca0-aa16-39abddcd6cf7.jpg" /> to find the minimum energy working point. Then, let:</p><disp-formula id="scirp.37986-formula14780"><label>(13)</label><graphic position="anchor" xlink:href="1-9501314\c8d23b74-b7b9-43de-9fe9-13cf6f075011.jpg"  xlink:type="simple"/></disp-formula><p>be a measure of the energy employed in the synchronization process. Thus, the objective is to minimize the <img src="1-9501314\c4e312f8-925a-47ec-a99e-76385664ce91.jpg" /> function for both small-scale and large-scale fading effects. This will be the main motivation throughout the rest of this work.</p></sec><sec id="s3_5"><title>3.5. Distribution Functions of the Clock Offset</title><sec id="s3_5_1"><title>3.5.1. Gaussian Distribution Function</title><p>As per (6), the Fisher Information function requires a likelihood function to be applied. Considering the case of Gaussian distributed likelihood functions, for <img src="1-9501314\a15bdd58-a03e-4c94-892a-d40a1d3dcb5b.jpg" /> Gaussian i.i.d observations of θ, the joint probability distribution function is expressed as:</p><disp-formula id="scirp.37986-formula14781"><label>(14)</label><graphic position="anchor" xlink:href="1-9501314\6ec6c22b-284a-4ef0-8862-e7e8b4c56c8f.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\12e178bf-4a1f-4fc8-a3ec-eae02368aaa1.jpg" /> is the variance of the perturbations that impair the measurements around the real value of the parameter θ to be estimated. Operating with (6), (11) and (14), we obtain:</p><disp-formula id="scirp.37986-formula14782"><label>(15)</label><graphic position="anchor" xlink:href="1-9501314\a7155216-14fd-49a2-82b6-772aaee5629f.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s3_5_2"><title>3.5.2. Exponential Distribution Function</title><p>In this section we study the case in which the offset θ will be estimated from <img src="1-9501314\0aa9a85e-94d6-4b72-b594-1a11dbfa8564.jpg" /> observations affected by exponential random delays. Let the one-way message estimator of the clock offset be:</p><disp-formula id="scirp.37986-formula14783"><label>(16)</label><graphic position="anchor" xlink:href="1-9501314\f8eb65db-013e-4428-877e-8a65f77b9ffa.jpg"  xlink:type="simple"/></disp-formula><p>where X is the delay of the channel with exponential pdf, and <img src="1-9501314\44be9f4a-590c-41fc-8d1c-f5161d6fc4b9.jpg" /> is the expectation of X, thus θ is an unbiased estimator. The pdf of X can be expressed as:</p><disp-formula id="scirp.37986-formula14784"><label>(17)</label><graphic position="anchor" xlink:href="1-9501314\82be7721-89b4-468e-b9db-7227141bca9f.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\7a64566d-e473-482e-ae93-ea6c204a2919.jpg" /> and <img src="1-9501314\895075eb-4edb-413f-bdaf-00fff901234c.jpg" /> are the expectation and variance of the delay X, respectively. The joint pdf after <img src="1-9501314\395205b7-3a5e-44a1-9129-528946c539e8.jpg" /> i.i.d received messages becomes:</p><disp-formula id="scirp.37986-formula14785"><label>(18)</label><graphic position="anchor" xlink:href="1-9501314\844056d4-831a-4229-bbe7-79b6d55e067c.jpg"  xlink:type="simple"/></disp-formula><p>By applying (6), the Fisher Information for exponential delays is defined by:</p><disp-formula id="scirp.37986-formula14786"><label>(19)</label><graphic position="anchor" xlink:href="1-9501314\8df26778-d3d6-4e34-9bd2-ca334ee3db23.jpg"  xlink:type="simple"/></disp-formula><p>For notational simplicity, we will symbolize the case of Gaussian delays with the parameter <img src="1-9501314\1f6dd425-0b91-423d-9fc3-2888270dd819.jpg" /> and exponential delays with<img src="1-9501314\81689f59-af88-4967-9f37-0170eb9c3481.jpg" />.</p></sec></sec></sec><sec id="s4"><title>4. One-Way Message Clock Offset Estimation Quality as a Function of Transmit Power</title><sec id="s4_1"><title>4.1. Motivation</title><p>Clock estimation by means of unidirectional messages represents an energy-efficient situation for each receiver node, since it does not require to implement a message exchange mechanism, while it can minimize or turn-off its radio operation upon receiving the required number of messages. The Flooding Time Synchronization Protocol (FTSP) [<xref ref-type="bibr" rid="scirp.37986-ref21">21</xref>], makes use of this technique, where each node produces a linear regression estimation of the sender’s clock offset. For this work, the one-way message mechanism represents the starting point for exposing the underlying issues associated with clock synchronization by means of wireless messages.</p></sec><sec id="s4_2"><title>4.2. Large-Scale Effects: Path Loss and Shadowing</title><p>Large-scale fading represents the average signal power attenuation or path loss over large areas, a phenomenon affected by prominent terrain contours (billboards, clump of buildings, etc.) between the transmitter and receiver [<xref ref-type="bibr" rid="scirp.37986-ref22">22</xref>]; still, for indoor applications, this phenomenon is also present for distances smaller than 10 meters [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]. Under path loss and shadowing, the outage probability P<sub>out</sub> is defined as the probability that the received power falls below a given outage threshold S<sub>Rx</sub> expressed in dBm as found below [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]:</p><disp-formula id="scirp.37986-formula14787"><label>(20)</label><graphic position="anchor" xlink:href="1-9501314\db60a156-b16f-44a1-beba-de382da5338a.jpg"  xlink:type="simple"/></disp-formula><p>with the unknown transmit power S expressed in dBm. Parameters K, d, d<sub>0</sub>, γ, d defined in (7) are assumed known. In this scenario, the RV <img src="1-9501314\641085b5-4965-45c1-bc76-f78440178877.jpg" />assumes a Gaussian distribution with zero mean and variance <img src="1-9501314\01ebac70-2e1e-435b-b73b-4cebf9a5b377.jpg" /> (assumed known). Involving (8), (11), (20), (15) for Gaussian delays (<img src="1-9501314\002a991a-4245-4e99-b3b5-7860781f7672.jpg" />) and (19) for exponential delays (<img src="1-9501314\d51f6519-d601-4e43-88c5-7ac71e2f5faf.jpg" />), it can be seen that for a desired estimation precision<img src="1-9501314\b31d08b7-2c2e-42dc-82ec-a694a05863be.jpg" />, the transmit power S must fulfill the following:</p><disp-formula id="scirp.37986-formula14788"><label>(21)</label><graphic position="anchor" xlink:href="1-9501314\e02a8b35-e511-41fa-8901-179344ac705c.jpg"  xlink:type="simple"/></disp-formula><p>Equation (21) shows that for decreasing estimation error<img src="1-9501314\3a0a64fe-95a5-4c90-9e23-d07088033d8a.jpg" />, either power S or number of transmitted messages m must be increased accordingly. Being the Q(z) function bounded by the interval (0, 1), condition in (21)</p><p>can be met if and only if<img src="1-9501314\44f41fb3-0010-4d0a-9665-bf17a7766072.jpg" />. The range of this expression is dominated by m for a given estimation error<img src="1-9501314\8a5b335a-21bb-4b8d-9d7a-885b2da9a515.jpg" />. Since Q increases with increasing S, the minimum transmit power S<sub>min</sub> will be found on the limit of equality in (21). It is then convenient to rewrite this equation into a function as follows:</p><disp-formula id="scirp.37986-formula14789"><label>(22)</label><graphic position="anchor" xlink:href="1-9501314\ee64b4a5-87e6-4895-b7c7-f48ef39ba9ae.jpg"  xlink:type="simple"/></disp-formula><p>with<img src="1-9501314\63e59921-5ef3-4da1-a453-544be1c5b1ab.jpg" />. From (22), the number of transmitted messages m is determined by:</p><disp-formula id="scirp.37986-formula14790"><label>(23)</label><graphic position="anchor" xlink:href="1-9501314\1aef63c6-be24-4ea3-b86b-96ceec451060.jpg"  xlink:type="simple"/></disp-formula><p>After combining (2) and (20), the delay <img src="1-9501314\1a110ffc-b443-4efa-93c6-34b48da27913.jpg" /> adopts the following expression under large-scale effects:</p><disp-formula id="scirp.37986-formula14791"><label>(24)</label><graphic position="anchor" xlink:href="1-9501314\0aed9297-6037-4eb1-b0b9-1d17c3e96c71.jpg"  xlink:type="simple"/></disp-formula><p>By substituting (23) and (24) into (13), and expressing S<sub>min</sub> in dBm, the minimization problem is stated as:</p><disp-formula id="scirp.37986-formula14792"><label>(25)</label><graphic position="anchor" xlink:href="1-9501314\50515260-1bbd-4e53-8030-54ffc63d7ff9.jpg"  xlink:type="simple"/></disp-formula><p>Defining<img src="1-9501314\88b925da-ffe8-4f4b-89a3-e3be6a7712ad.jpg" />, we can rewrite (25) as follows:&#160;</p><disp-formula id="scirp.37986-formula14793"><label>(26)</label><graphic position="anchor" xlink:href="1-9501314\c7bf9494-59c6-4c3f-8658-ba9ede500432.jpg"  xlink:type="simple"/></disp-formula><p>Considering<img src="1-9501314\9ad40d77-46e3-46d5-a0ac-8d491d91cfba.jpg" />, and replacing back<img src="1-9501314\4d35bdd4-9938-4d16-b82e-aac498d746e1.jpg" />, (25) solves to the following condition for both optimized transmit power and transmitted messages:</p><disp-formula id="scirp.37986-formula14794"><label>(27)</label><graphic position="anchor" xlink:href="1-9501314\93253c3e-8cfb-4ce3-af4f-949592e3c243.jpg"  xlink:type="simple"/></disp-formula><p>which can be graphically solved to find the optimal S<sub>min</sub> value, provided that<img src="1-9501314\8690dbe9-7f74-4376-bbcf-88e12f563fbc.jpg" />. Equations (23) and (27) represent an energy-efficient solution to the target estimation error <img src="1-9501314\b4e2f455-e1f1-42fb-a94a-66bc61a11b0f.jpg" /> under the effect of large-scale fading.</p></sec><sec id="s4_3"><title>4.3. Small-Scale Effects: Multipath Fading</title><p>Small scale fading refers to the dramatic changes in signal amplitude and phase as a result of small changes in spatial separation between transmitted and receiver [<xref ref-type="bibr" rid="scirp.37986-ref22">22</xref>], a situation that occurs when the transmitter and receiver nodes are surrounded by a large number of scattering objects [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]. Under small scale fading, or Rayleigh fading, there is no line-of-sight signal component and the envelope of the received signal is described by a Rayleigh probability density function (pdf). The outage probability under Rayleigh fading for a minimum acceptable SNR <img src="1-9501314\30264126-d06e-427f-acf7-841128986c3f.jpg" /> and average transmitted SNR <img src="1-9501314\e8f28371-48c5-48dc-988c-aa7b00c33171.jpg" /> becomes [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>]:</p><disp-formula id="scirp.37986-formula14795"><label>(28)</label><graphic position="anchor" xlink:href="1-9501314\bbc895ae-a244-4017-978f-5522f077ad27.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\da962160-cf8f-461b-98d1-41670789dc77.jpg" /> and <img src="1-9501314\52d97fc4-99a4-4c6a-8198-681f2ae90585.jpg" /> are dimensionless whereas the transmit power S and the noise power <img src="1-9501314\22eebbd7-27ee-489b-94be-ce57276172ef.jpg" /> are expressed in Watt. Consequently, by combining (15) with (8) and (28), the relation between transmit power S, number of transmitted messages m and estimation precision <img src="1-9501314\1e2d932d-74a0-44c9-a77f-1fe43f649e0e.jpg" /> for small-scale effects is described by the following expression:</p><disp-formula id="scirp.37986-formula14796"><label>(29)</label><graphic position="anchor" xlink:href="1-9501314\bda85a92-72cf-4949-b356-3d02f7e1ff43.jpg"  xlink:type="simple"/></disp-formula><p>As per (29), the number of transmitted messages m is determined by:</p><disp-formula id="scirp.37986-formula14797"><label>(30)</label><graphic position="anchor" xlink:href="1-9501314\eed7c8cc-2b10-42ff-83aa-49458be9184e.jpg"  xlink:type="simple"/></disp-formula><p>The delay <img src="1-9501314\889fe518-71fb-4ddb-b567-4bac8682deb1.jpg" /> under small-scale effects can be expressed as:</p><disp-formula id="scirp.37986-formula14798"><label>(31)</label><graphic position="anchor" xlink:href="1-9501314\0e470f15-9cb7-40ae-be37-7928a247f491.jpg"  xlink:type="simple"/></disp-formula><p>By substituting (30) and (31) into (13), the minimization problem becomes:</p><disp-formula id="scirp.37986-formula14799"><label>(32)</label><graphic position="anchor" xlink:href="1-9501314\09064dfe-7b56-4df6-9d9b-a6a4366ae945.jpg"  xlink:type="simple"/></disp-formula><p>where S<sub>min</sub> is expressed in Watt. Equation (32) solves to:</p><disp-formula id="scirp.37986-formula14800"><label>(33)</label><graphic position="anchor" xlink:href="1-9501314\bc92a93c-98bf-4f90-ba2f-ba921935491f.jpg"  xlink:type="simple"/></disp-formula><p>Consequently, as per (30), the expression of the minimum number of transmitted messages m results in:</p><disp-formula id="scirp.37986-formula14801"><label>(34)</label><graphic position="anchor" xlink:href="1-9501314\0fe4a2e2-0cd6-4ab8-ac91-b2aeb6be8fe5.jpg"  xlink:type="simple"/></disp-formula><p>Equation (34) shows an inversely proportional dependance on m with estimation quality<img src="1-9501314\73eb847a-4a6b-413e-be4f-5c78976d1f82.jpg" />, which exhibits the existing trade-off between estimation quality and number of transmitted messages, and their relation to energy consumption as determined by (13).</p></sec></sec><sec id="s5"><title>5. Two-Way Message Clock Offset Estimation Quality as a Function of Transmit Power</title><sec id="s5_1"><title>5.1. Motivation</title><p>So far, we have studied the problem of one-way message estimation. In this section, we extend our work presented in [<xref ref-type="bibr" rid="scirp.37986-ref13">13</xref>] to the most commonly used technique for estimating the clock offset (and clock skew as well) in the time synchronization problem in WSN’s, i.e., two-way message exchange mechanism; a complete description of this technique can be found in [<xref ref-type="bibr" rid="scirp.37986-ref17">17</xref>] and an application of minimum variance unbiased estimation (MVUE) of the clock offset for the two-way message exchange mechanism is detailed in [<xref ref-type="bibr" rid="scirp.37986-ref23">23</xref>].</p></sec><sec id="s5_2"><title>5.2. General Provisions</title><p>We will consider that all nodes are constructively identical, meaning that their minimum acceptable SNR <img src="1-9501314\8b71b881-be9e-49f0-b69e-f110e0f502c2.jpg" /> will be equal for all of them, and they will transmit signals over a symmetric channel in an environment with equal noise power <img src="1-9501314\f6ae84e7-19e5-42ce-ad7d-e0c0e93e7930.jpg" /> and <img src="1-9501314\72061753-f248-437f-bcb7-0011a1a2a0e9.jpg" /> for both small-scale and large-scale effects, respectively. In addition to this, we will consider that signals transmitted in uplink or downlink transmission will undergo the same stochastic process for the noise impairments, with equal mean, variance and distribution. In summary:</p><disp-formula id="scirp.37986-formula14802"><label>(35)</label><graphic position="anchor" xlink:href="1-9501314\1bd2a324-fbdb-4a02-9acd-c7ff6c0bf3d4.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s5_3"><title>5.3. Model Statement</title><p>Let’s consider the situation where two nodes i and j produce local estimates of the clock offset based on the number of observations (messages) exchanged amongst them, as it is the case of TPSN or RBS. Although these two synchronization protocols differ in nature, they both exploit two-way messages exchange in order to achieve synchronization. Under a two-way message scenario, each node i will compute a valid sample if and only if 1) it succeeds to deliver a message to node j and, 2) it receives the associated response to this message; this means that both transmitted and received (i.e., replied) messages must be successfully delivered to the destination. To be more specific, let’s consider node i sends a message <img src="1-9501314\0018da57-5f83-43d9-a6f4-9d7c2abbb177.jpg" /> to node j at time k. Node i will wait for the reply message <img src="1-9501314\d782735e-1a7f-4e09-87b7-8c5c596950f0.jpg" /> from node j associated to time slot k for computing its k-th estimation sample. This property of the nature of two-way message exchange mechanism that makes two independent messages be chained together to produce a valid estimation sample will be further exploited in the next sections.</p></sec><sec id="s5_4"><title>5.4. Problem Outline</title><p>Recalling Section 3.4, we now need to find its counterpart for two-way message exchange. Since each individual node i will process the k-th estimation sample based on the message it sent to node j and its associated response, we can state the probability that node i receives a valid sample from its neighbour node j at time k as:</p><disp-formula id="scirp.37986-formula14803"><label>(36)</label><graphic position="anchor" xlink:href="1-9501314\614d34df-c08d-475a-90b3-d3d0572688d3.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\626b745d-e401-48ff-8009-badaae824dc2.jpg" /> indicates that node j has successfully received a message sent from node i, at time k. Since the messages sent by the nodes are independent from the other’s messages, and each channel use is also an i.i.d. RV, (36) can be rewritten as:</p><disp-formula id="scirp.37986-formula14804"><label>(37)</label><graphic position="anchor" xlink:href="1-9501314\c6e8694b-eec2-488a-94e8-a3fcb8a7aa74.jpg"  xlink:type="simple"/></disp-formula><p>Since we assumed identical nodes immersed in a symmetric, time-invariant wireless channel, we can rewrite (37) as follows:</p><disp-formula id="scirp.37986-formula14805"><label>(38)</label><graphic position="anchor" xlink:href="1-9501314\e8b01a93-b982-4bb7-8f13-cd0f898cc05e.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\acac81c6-73a0-4628-a7ff-d4e8afb86bab.jpg" /> is the round-trip success probability for the round-trip message k between nodes i and j and <img src="1-9501314\dce59a52-62a7-4253-8532-8cfced7a5177.jpg" /> is the traditional outage probability defined in Section 4. Equation (38) indicates that, for a given node, the probability of receiving a valid round-trip estimation sample k depends on the square of the outage probability of the wireless channel. Moreover, the large-scale and smallscale effects studied in Sections 4.2 and 4.3 will be have to be reapplied with this new channel success factor. The counterpart of (8) under a two-way message scenario becomes:</p><disp-formula id="scirp.37986-formula14806"><label>(39)</label><graphic position="anchor" xlink:href="1-9501314\ddc6adcb-d790-4fc3-bc7a-e20890a0c21b.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\2fdb3c14-1d6f-4c31-ac0f-cc7f053a29a1.jpg" /> for each (i, j) pair and for all k.</p></sec><sec id="s5_5"><title>5.5. Large-Scale Effects</title><p>By combining (20) with (38), the round-trip success probability <img src="1-9501314\42b01a04-5492-4a71-b464-57912b57968e.jpg" /> equals<img src="1-9501314\3c9be68c-ae35-4ee6-91b4-db1d584296d1.jpg" />. Hence, this leads the problem under large-scale effects to the following solution:</p><disp-formula id="scirp.37986-formula14807"><label>(40)</label><graphic position="anchor" xlink:href="1-9501314\86b84087-d84f-495c-aa36-3ac2c5d83fb5.jpg"  xlink:type="simple"/></disp-formula><p>with<img src="1-9501314\af06d5a1-67b0-4e25-a6fa-74758d702ff0.jpg" />. For the minimum transmit power found in (40), the corresponding minimum number of transmitted messages is given by:</p><disp-formula id="scirp.37986-formula14808"><label>(41)</label><graphic position="anchor" xlink:href="1-9501314\3e036102-b7ec-4ccd-99bd-cda372a7f9ea.jpg"  xlink:type="simple"/></disp-formula><p>Yet, the delay under this scenario is expected to be twice as much the one-way message exchange delay:</p><disp-formula id="scirp.37986-formula14809"><label>(42)</label><graphic position="anchor" xlink:href="1-9501314\183d4a98-68d9-47c1-ad85-915cf5b1d810.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s5_6"><title>5.6. Small-Scale Effects</title><p>With the introduction of<img src="1-9501314\a9df730d-c3fb-4fac-8f07-03ff69439af1.jpg" />, (32) will have its exponent increased by a factor of 4, which can be thought of as increasing the noise power<img src="1-9501314\4283c7b0-cd7b-48e4-a399-719233f2ea6c.jpg" />. Thus, obtaining the tuple (<img src="1-9501314\1ad20731-8917-410e-814b-63010d81b444.jpg" />) is straightforward:</p><disp-formula id="scirp.37986-formula14810"><label>(43)</label><graphic position="anchor" xlink:href="1-9501314\54299fe2-729d-444d-b73f-ad700ee53900.jpg"  xlink:type="simple"/></disp-formula><p>This shows that the effect of small-scale effects for the round-trip message scenario can be linearized to the number of round-trips required for obtaining a single valid message k. It is interesting to note that the minimum number of messages m<sub>min</sub> remains unchanged with respect to the one-way scenario for equal<img src="1-9501314\a7b64438-4625-4e65-a7d0-4ab541a9a51c.jpg" />, while the adjusting variable remains the transmit power S.</p></sec></sec><sec id="s6"><title>6. N-way Message Clock Offset Estimation Quality as a Function of Transmit Power</title><p>A generalization of the problem can be easily inferred for both fading scenarios. Let a single estimation sample be composed of n messages exchanged between nodes i and j over a symmetrical stationary channel. A value of n = 1 represents one-way messages, n = 2 corresponds to two-way messages, and so on. A situation in which a single node produces a single estimate sample based on n hops will represent a n-way message exchange mechanism. Then the following generalization can be stated for each channel fading situation.</p><sec id="s6_1"><title>6.1. Large-Scale Effects</title><p><img src="1-9501314\fb015da9-e971-4b21-b7f3-ecb6de594395.jpg" /></p><disp-formula id="scirp.37986-formula14811"><label>(44)</label><graphic position="anchor" xlink:href="1-9501314\b9827471-2ad7-4372-861b-8627272491bc.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s6_2"><title>6.2. Small-Scale Effects</title><disp-formula id="scirp.37986-formula14812"><label>(45)</label><graphic position="anchor" xlink:href="1-9501314\761978a3-555d-4ea4-a97a-ea837c00437b.jpg"  xlink:type="simple"/></disp-formula><p>Equation (44) shows that for increasing n, both m<sub>mim </sub>and <img src="1-9501314\d693ad4e-bbbb-48f8-8ff5-5781cb5e6aa6.jpg" /> grow unbounded since <img src="1-9501314\c6788542-2d60-4ea2-92b7-3ae576a10d3d.jpg" /> as<img src="1-9501314\96403b02-5426-4095-9527-75fb4a1a713e.jpg" />. Thus, S<sub>min</sub> needs to be increased in order to keep<img src="1-9501314\d0bf1cf9-6ee2-4ad5-ad43-32ae82b4d562.jpg" />, so that m<sub>mim</sub> and <img src="1-9501314\e27d05e6-09da-4de7-be2c-ee5534b7953c.jpg" /> do not experiment an abrupt growth as n is raised. For small-scale fading effects, as shown in (45), S<sub>min</sub> increases linearly with n for achieving the target estimation error<img src="1-9501314\ccc34151-43c0-405f-94c2-a05b5423c049.jpg" />; also, the average message delay <img src="1-9501314\93e24fea-6761-43a8-a9b0-ca7e6e2b3776.jpg" /> increases unbounded with n, which represents no benefit from the energetic or application standpoint. Finally, the minimum number of messages m<sub>mim</sub> mainly depends on and inversely proportional to<img src="1-9501314\a670f010-7530-4629-b832-52b58ab8df3e.jpg" />.</p></sec></sec><sec id="s7"><title>7. Application Example: RBS Algorithm</title><p>In this section, the Reference-Broadcast Synchronization (RBS) [<xref ref-type="bibr" rid="scirp.37986-ref6">6</xref>] protocol will be used as an example to apply the aforementioned theoretical limits. In RBS, a pair of receiver nodes synchronize by estimating each other’s relative offsets after receiving a common reference signal which is assumed to arrive simultaneously to all nodes within the same broadcast domain. This approach, called receiver-receiver synchronization, removes the largest nondeterministic part of the receive delay due to the broadcast characteristic of the wireless channel. Thus, each pair of neighbouring nodes (i, j) will exchange their observations of the reference broadcast message and will estimate each other’s relative clock offset <img src="1-9501314\7cff12c3-f966-4d7a-809e-c85521d24191.jpg" /> with the following estimator:</p><disp-formula id="scirp.37986-formula14813"><label>(46)</label><graphic position="anchor" xlink:href="1-9501314\9f4c6fb3-5a0c-4863-b86c-c0873a53bba1.jpg"  xlink:type="simple"/></disp-formula><p>Considering that <img src="1-9501314\fcf488b1-fe39-42b9-91c3-61d00e2c3f32.jpg" /> and<img src="1-9501314\3ecc3b77-6852-433f-a49f-845906d9df46.jpg" />, where <img src="1-9501314\a8392a29-91ca-4457-a2ee-10a415d3867a.jpg" /> and <img src="1-9501314\0eed6744-bd84-49c3-82f8-3f4796b14cbb.jpg" /> represent AWGN noise with equal mean and variance, while <img src="1-9501314\51351270-4715-46e0-8131-740d1c0d561d.jpg" /> is the absolute time at sample k, we can rewrite (46) as follows:</p><disp-formula id="scirp.37986-formula14814"><label>(47)</label><graphic position="anchor" xlink:href="1-9501314\d5724418-c4a3-428e-8597-f40a14f049d8.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="1-9501314\10e6374f-dcab-4eb2-bc2a-a3fae3b8a908.jpg" /> is a Gaussian RV with distribution<img src="1-9501314\6af80f3d-1b5d-415b-91f0-b11eacf5482a.jpg" />.&#160;</p><p>Lemma 1: As per (47), RBS estimates the offset between nodes i and j through the sample mean, which is the Minimum Variance Unbiased Estimator (MVUE) estimator of<img src="1-9501314\6ee4a0cc-1ca5-4da0-967e-60a78439f926.jpg" />, attaining the Cramer-Rao Lower Bound (CRLB) exposed in (10). Then, the general lower bounds shown in Section 3.4 are seamlessly applicable to the RBS protocol.</p><p>Proof: an unbiased estimator of the parameter <img src="1-9501314\c8c4012b-518a-4d95-90da-29f216cd031b.jpg" /> based on measurements x that attains the CRLB can be found if and only if [<xref ref-type="bibr" rid="scirp.37986-ref19">19</xref>]:&#160;</p><disp-formula id="scirp.37986-formula14815"><label>(48)</label><graphic position="anchor" xlink:href="1-9501314\c67fba92-b43d-4a54-a4c7-3045c5a64236.jpg"  xlink:type="simple"/></disp-formula><p>for some functions <img src="1-9501314\8c8c263b-6a04-4f57-abe7-8d44c35fade4.jpg" /> and<img src="1-9501314\e28e5de7-8ac7-4441-b6a1-2c6b98c7b099.jpg" />. Still, if <img src="1-9501314\4253f383-94b5-415d-ae1a-2fb37d032c9d.jpg" /> and <img src="1-9501314\124fac68-4cec-4c3d-82f0-42e125415266.jpg" /> exist, the CRLB equals <img src="1-9501314\2969d92f-7544-44c7-afd5-fd47b7029ca3.jpg" /> and <img src="1-9501314\5c50029b-599c-449e-aa38-159d183b76e3.jpg" /> is the MVUE estimator of<img src="1-9501314\a0c5e82d-99db-4e72-bd72-bc21da9826e0.jpg" />. Defining<img src="1-9501314\9571ce25-6bc1-4f05-8370-469e16a6f43f.jpg" />, and involving the likelihood function defined in (14), (48) takes the following expression:&#160;</p><disp-formula id="scirp.37986-formula14816"><label>(49)</label><graphic position="anchor" xlink:href="1-9501314\479bc66a-cd4a-451f-add6-b96a300983ef.jpg"  xlink:type="simple"/></disp-formula><p>Equation (49) shows that the CRLB is defined by</p><p><img src="1-9501314\ae2ba7f3-37fc-4228-9ae9-6b8263157c63.jpg" />while</p><p><img src="1-9501314\d35db17b-a032-4ab6-9bce-97f36b2e3a2f.jpg" />is the MVUE estimator of<img src="1-9501314\bb2cde53-1da7-41f8-935d-797c7831b774.jpg" />. Thus, by introducing (47), the MVUE estimator of <img src="1-9501314\d2481480-c2b5-4577-b44b-7c3ac3058908.jpg" /> is the sample mean. Hence, Lemma 1 is proved.</p></sec><sec id="s8"><title>8. Simulation Results</title><p>This section exposes the simulations results for typical WSN parameters as referenced in [<xref ref-type="bibr" rid="scirp.37986-ref14">14</xref>] under the most commonly used exchange mechanism, i.e. two-way message exchange (n = 2). <xref ref-type="fig" rid="fig2">Figure 2</xref> and 3 depict the dependance of the number of transmitted messages m and the required energy <img src="1-9501314\0b38a84a-a8ab-4d6f-a7c1-f70c1c8bf49f.jpg" /> with transmit power S under the influence of large-scale fading, for Gaussian and exponential delays, respectively, and for different values of the estimation quality<img src="1-9501314\a357fa15-6e3e-4a6e-b9dc-7fe25d107520.jpg" />. The counterpart for smallscale or Rayleigh fading is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref> and 5, for Gaussian and exponential delays, respectively. Results show that it is necessary to finely adjust S to obtain a minimum m so as to minimize the overall synchronization energy.</p><p>As the number of hops n increases, the energy minima move towards higher values of S for both fading scenar-</p><p>ios; this means that dense multi-hop sensor networks (large n) will require more synchronization energy. Examples of these types of networks can be found in [<xref ref-type="bibr" rid="scirp.37986-ref24">24</xref>], applied to farming and geographic surveillance. <xref ref-type="fig" rid="fig6">Figure 6</xref></p><p>shows the energy minima for large-scale fading and Gaussian noise, where it can be seen that the growth of <img src="1-9501314\85e0a411-b41c-42a6-9848-8e6d3aab0e9c.jpg" /> is fairly smooth due to the fact that S<sub>min</sub> tends to maximize the Q-function for maintaining m<sub>min</sub> and <img src="1-9501314\3f8e37c2-7f36-47d6-8017-c777af5528ef.jpg" /> as minimum as possible. The counterpart for small-scale fading and Gaussian noise is displayed in <xref ref-type="fig" rid="fig7">Figure 7</xref>, where the best-effort situation exhibits a linear growth of the energy function with the number of hops;</p><p>for values of the transmit power smaller than the minimum-energy power S<sub>min</sub>, an exponential growth of <img src="1-9501314\968f9300-8317-44d0-822f-1408a8b03489.jpg" /> is expected for increasing n, as dictated by (45).</p></sec><sec id="s9"><title>9. Summary and Discussions</title><p>Time synchronization for a WSN can be achieved by means of parameter estimation techniques which require a number of messages to be transmitted from a sender to a receiver node. The minimum amount of total energy required for achieving a desired estimation quality <img src="1-9501314\f5cb6790-2c61-481f-bbff-996a92c7b023.jpg" /> is represented by the product of the transmit power S, number of messages m and the average message delay<img src="1-9501314\9e7412a9-41ca-426c-af54-b88bb0295858.jpg" />. By introducing the concept of outage probability of the wireless channel for both large-scale and small-scale fading scenarios, a minimization problem can be stated for the total energy function. The resolution of the entire system finds the energy-optimal working point which represents a lower bound for the estimation quality.</p><p>The general results obtained in this work have been applied to the cases of Gaussian and exponential perturbations for the Cramer-Rao efficient, unbiased offset estimator<img src="1-9501314\073b8090-8dea-4f34-afff-b04e1c88097c.jpg" />. For other estimators that do not fulfill these conditions, the estimation error <img src="1-9501314\2342c02f-ed1b-4e4c-bf8f-b46c522fbd28.jpg" /> shall be used instead of the Fisher Information function in order to compute the theoretical limits for that particular case. The renowned one-way and two-way message exchange scenarios have been extensively analyzed in this work, proving that the RBS synchronization algorithm achieves one-way message exchange theoretical limits. Finally, the results obtained throughout this work have been extended for the case of n-way messages, which will serve as a basis to generalize the synchronization energy problem to densely deployed multi-hop wireless sensor networks, as it will be in the realm of the Internet of Things. As part of our future work, we will extend this analysis to a generic WSN aiming to find the network-wide energy vs. estimation quality trade-off, including the effect of interference from simultaneous transmitters in the analysis. We are also considering incorporating in our analysis the development of energy harvesting techniques in an attempt to render the synchronization process as autonomous as possible from energy provided from external environment.</p></sec><sec id="s10"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.37986-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">A. Swami, Q. Zhao, Y. Hong and L. Tong, “Wireless Sensor Networks, Signal Processing and Communications Perspectives,” Wiley, Hoboken, 2007, pp. 9-89.</mixed-citation></ref><ref id="scirp.37986-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">T. Locher, P. Von Rickenbach and R. Wattenhofer, “Sen- sor Networks Continue to Puzzle: Selected Open Problems,” Proceedings of the Ninth International Conference on Distributed Computing and Networking, 2008. 
http://dx.doi.org/10.1007/978-3-540-77444-0_3</mixed-citation></ref><ref id="scirp.37986-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Postscapes, “Tracking the Internet of Things,” 2012. 
www.postscapes.com</mixed-citation></ref><ref id="scirp.37986-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">F. Ren, C. Lin and F. Liu, “Self-Correcting Time Synchronization Using Reference Broadcast in Wireless Sensor Network,” IEEE Wireless Communications, 2008.</mixed-citation></ref><ref id="scirp.37986-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">L. Schenato and G. Gamba, “A Distributed Consensus Protocol for Clock Synchronization in Wireless Sensor Network,” Proceedings of the 46th IEEE Conference on Decision and Control, New Orleans, 12-14 December 2007, pp. 2289-2294.</mixed-citation></ref><ref id="scirp.37986-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">J. Elson, L. Girod and D. Estrin, “Fine-Grained Network Time Synchronization Using Reference Broadcasts,” Pro- ceedings of the 5th Symposium on Operating Systems Design and Implementation, Boston, Vol. 36, No. SI, 2002, pp. 147-163.</mixed-citation></ref><ref id="scirp.37986-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">S. Ganeriwal, R. Kumar and M. Srivastava, “Timing-Sync Protocol for Sensor Networks,” SenSys ’03, Proceedings of the 1st International Conference on Embedded Networked Sensor Systems, Los Angeles, 2003, pp. 138-149.</mixed-citation></ref><ref id="scirp.37986-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">K. Noh, E. Serpedin and K. Qaraqe, “A New Approach for Time Synchronization in Wireless Sensor Networks: Pairwise Broadcast Synchronization,” IEEE Transactions on Wireless Communications, Vol. 7, No. 9, 2008.</mixed-citation></ref><ref id="scirp.37986-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">M. Akhlaq and T. R. Sheltami, “Rtsp: An Accurate and Energy-Efficient Protocol for Clock Synchronization in WSNs,” IEEE Transactions on Instrumentation and Meas- urement, Vol. 62, No. 3, 2013, pp. 578-589.</mixed-citation></ref><ref id="scirp.37986-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">F. Ferrari, M. Zimmerling, L. Thiele and O. Saukh, “Efficient Network Flooding and Time Synchronization with Glossy,” IEEE 10th International Conference on Information Processing in Sensor Networks (IPSN), Chicago, 12-14 April 2011, pp. 73-84.</mixed-citation></ref><ref id="scirp.37986-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">E. Serpedin and Q. Chaudhari, “Synchronization in Wireless Sensor Networks: Parameter Estimation, Performance Benchmarks, and Protocols,” Cambridge University Press, Cambridge, 2009. 
http://dx.doi.org/10.1017/CBO9780511627194</mixed-citation></ref><ref id="scirp.37986-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Q. Chaudhari, E. Serpedin and K. Qaraqe, “Cramer-Rao Lower Bound for the Clock Offset of Silent Nodes Synchronizing through a General Sender Receiver Protocol in Wireless Sensor Nets,” 16th European Signal Processing Conference (EUSIPCO), Lausanne, 2008.</mixed-citation></ref><ref id="scirp.37986-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">P. Briff, F. Vargas, A. Lutenberg and L. Rey Vega, “On the Trade-Off of Power Consumption and Time Synchronization Quality in Wireless Sensor Networks,” Proceedings of the 11th IEEE Conference on Sensors, Taipei, 28-31 October 2012, pp. 1927-1930.</mixed-citation></ref><ref id="scirp.37986-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">A. Goldsmith, “Wireless Communications,” Cambridge University Press, Cambridge, 2005. 
http://dx.doi.org/10.1017/CBO9780511841224</mixed-citation></ref><ref id="scirp.37986-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">N. Pustchi and T. Korkmaz, “Improving Packet Reception Rate for Mobile Sinks in Wireless Sensor Networks,” 2012 IEEE International Symposium on World of Wireless, Mobile and Multimedia Networks (WoWMoM), San Francisco, 25-28 June 2012, pp. 1-9.</mixed-citation></ref><ref id="scirp.37986-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">D. R. Jeske, “On Maximum-Likelihood Estimation of Clock Offset,” IEEE Transactions on Communications, Vol. 53, No. 1, 2005, pp. 53-54. 
http://dx.doi.org/10.1109/TCOMM.2004.840668</mixed-citation></ref><ref id="scirp.37986-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">K. Noh, Q. Chaudhari, E. Serpedin and B. Sutter, “Novel Clock Phase Offset and Skew Estimation Using Two-Way Timing Message Exchanges for Wireless Sensor Networks,” IEEE Transactions on Communications, Vol. 55, No. 4, 2007, pp. 766-777. 
http://dx.doi.org/10.1109/TCOMM.2007.894102</mixed-citation></ref><ref id="scirp.37986-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">S. Song, L. He, Y. Jiang, C. Hu and Y. Cao, “Wireless Sensor Network Time Synchronization Algorithm Based on sfd,” Advances in Wireless Sensor Networks, 2013, pp. 393-400.</mixed-citation></ref><ref id="scirp.37986-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">S. Kay, “Fundamentals of Statistical Signal Processing: Volume 1,” Prentice Hall, Upper Saddle River, 1993, pp. 27-77.</mixed-citation></ref><ref id="scirp.37986-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Texas Instruments Inc., “Cc2520 Data Sheet 2.4 ghz IEEE 802.15.4/Zigbee rf Transceiver,” Texas Instruments Inc., 2007.</mixed-citation></ref><ref id="scirp.37986-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">M. Maroti, B. Kusy, G. Simon and A. Ledeczi, “The Flooding Time Synchronization Protocol,” Proceedings of 2nd International Conference on Embedded Networked Sensor Systems, 2004, pp. 39-49. 
http://dx.doi.org/10.1145/1031495.1031501</mixed-citation></ref><ref id="scirp.37986-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">B. Sklar, “Rayleigh Fading Channels in Mobile Digital Communication Systems—Part 1: Characterization,” IEEE Communications Magazine, Vol. 35, No. 9, 1997, pp. 136-146. http://dx.doi.org/10.1109/35.620535</mixed-citation></ref><ref id="scirp.37986-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Q. Chaudhari, E. Serpedin and K. Qaraqe, “On Minimum Variance Unbiased Estimation of Clock Offset in a Two-Way Message Exchange Mechanism,” IEEE Transactions on Information Theory, Vol. 56, No. 6, 2010, pp. 2893-2904. http://dx.doi.org/10.1109/TIT.2010.2046233</mixed-citation></ref><ref id="scirp.37986-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">K. Romer and F. Mattern, “The Design Space of Wireless Sensor Networks,” IEEE Wireless Communication, Vol. 11, No. 6, 2004, pp. 54-61.</mixed-citation></ref></ref-list></back></article>