bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/fulltext01.pdf ·...

45
Bachelor thesis Major Subject Time Synchronization in Wireless Sensor Networks:A Survey Ying Yang [email protected]

Upload: phamngoc

Post on 06-Feb-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Bachelor thesis

Major Subject

Time Synchronization in Wireless Sensor Networks:A Survey

Ying [email protected]

Page 2: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

AbstractWireless sensor networks (WSNs) have been used as an important tool in many fields of science and industry. Time synchronization is also a critical issue in wireless sensor networks and its aim is to synchronize the local time for some or all nodes in the network, if necessary. However, wireless sensor networks are limited in their accuracy, energy efficiency, scalability, and com-plexity and some traditional time synchronization algorithms such as Network Time Protocol (NTP) and Global Positioning System (GPS) are unsuitable for WSNs. This work surveys and evaluates state-of-art time synchronization pro-tocols based on many factors including accuracy, energy efficiency, and com-plexity, and analyzes the effect that time synchronization has in a wireless sensor network. IN ADDITION, more attention is paid to several time syn-chronization algorithms and their advantages and disadvantages. Also, the sur-vey provides a valuable framework for comparing new and existing synchroniz-ation protocols. According to the evaluation for the performance of time syn-chronization algorithms, this thesis provides assistance in relation to further im-proving the performance of time synchronization. Finally, future research direc-tions in relation to time synchronization in wireless sensor networks are also proposed.

Keywords: Time Synchronization, Wireless Sensor Networks, Synchronization Algorithms .

ii

Page 3: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Table of ContentsAbstract...............................................................................................................iiTerminology.......................................................................................................iv1 Introduction...............................................................................................11.1 Background and problem motivation.....................................................11.2 Overall aim ............................................................................................31.3 Scope......................................................................................................31.4 Concrete and verifiable goals ................................................................41.5 Outline....................................................................................................41.6 Contributions..........................................................................................4

2 Related Work.............................................................................................62.1 Definition of Clock.................................................................................62.2 Uncertainties of Time Synchronization Errors ......................................72.3 Requirements on Time Synchronization Algorithm For Wireless Sensor Networks..............................................................................................................8

3 Methodology .............................................................................................94 Time Synchronization in Wireless Sensor Networks ..........................114.1 Synchronization Methods for Wireless Sensor Networks....................114.1.1 Timing-Sync Protocol for Sensor Networks (TPSN) .....................114.1.2 Reference Broadcast Synchronization (RBS).................................134.1.3 Delay Measurement Time Synchronization Protocol (DMTS).......154.1.4 Flooding Time synchronization Protocol (FTSP).........................164.1.5 Time Diffusion Protocol (TDP).....................................................184.1.6 Tiny-Sync and Mini-Sync ..............................................................204.2 Classification of Synchronization Protocols........................................234.2.1 MAC-layer Based Approach vs. Standard Approach .....................234.2.2 Sender-to-receiver vs. Receiver-to-receiver Synchronization ........244.2.3 Master-to-slave vs. Peer-to-peer Synchronization ..........................25

5 Analysis....................................................................................................27Error Analysis Based on Theory .........................................................27

6 Comparison of protocols........................................................................307 Conclusions and Outlook.......................................................................33References.........................................................................................................35

iii

Page 4: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

TerminologyAbbreviations

WSNs Wireless sensor networks

NTP Network Time Protocol

GPS Global Positioning System

TDMA Time Division Multiple Access

FHSS Frequency Hopping Spread Spectrum

EWSN European Conference on Wireless Sensor Networks

IPSN ACM/IEEE International Conference on Information Processing in Sensor Networks

SenSys The ACM Conference on Embedded Networked Sensor Systems

Infocom The IEEE Conference on Computer Communications

TOSN Transactions on Sensor Networks

TPSN Timing-Sync Protocol for Sensor Networks

RBS Reference Broadcast Synchronization

DMTS Delay Measurement Time Synchronization

FTSP Flooding Time Synchronization Protocol

TDP Time Diffusion Protocol

MAC Medium Access Control

iv

Page 5: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

ERP Election/Reelection Procedure

FIA False-Ticker Isolation Algorithm

LDA Load Distribution Algorithm

PEP Peer Evaluation Procedure

TP Time-diffusion Procedure

TAA Time Adjustment Algorithm

CDA Clock Discipline Algorithm

UCT Universal Coordinated Time

OSI Open System Interconnection

v

Page 6: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

1 Introduction1.1 Background and problem motivation

“ With the help of recent technological advances in micro-electromechanical systems and wireless communications, low-cost, low-power, and multifunction-al wireless sensing devices have been developed.”[1] The wireless sensor net-work is a new generation of task-oriented distributed networks which gather micro-electromechanical systems, sensor technology, embedded computing technology, information processing technology, modern networks, wireless communication technology and digital electronics. It is the network, which is formed by a wide variety of integrated sensor nodes that are densely distributed on the physical space and its use is in relation to observing and inspecting the physical world. With the different types of micro-sensor nodes, it achieves real-time monitoring, sensing and the collecting of different kinds of information in a variety of environment or monitored objects, and sending the information to the user terminal by means of multi-hop self-organizing. Thus, wireless sensor networks (WSNs) can be regarded as the bridge in the physical world, the computer world and, in addition, to the human social world.

Wireless sensor networks have been a very important tool in many fields, in-cluding industrial control, environment, agriculture, disaster prevention and relief, health care, military defense, smart home network, space exploration, logistics, etc, as shown in Table 1. However, observations for the physical world must be based on a uniform time scale and thus the requirement for time synchronization is particularly important. It can be said that the time synchron-ization is a support technique for wireless sensor networks.

1

Page 7: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Table 1: Applications of wireless sensor networks.

Time synchronization, which aims at synchronizing the local time for some or all nodes in the network, is a necessity for many applications. For example, data fusion, the basic operation in wireless sensor networks, is used in many applica-tions and involves the collection of data from different nodes which is sent to a sink node in order to formulate a decision. “The fusion of individual sensor readings is possible only by exchanging messages that are timestamped by each sensor’s local time.” [2] “These nodes collaborate and coordinate with one an-other to perform the task.”[3] This kind of task requires a common notion of time among the sensors. If nodes in the network do not share a common time, then sensor readings from out-of-phase nodes will ultimately induce errors in the decisions[46]-[47].

Some wireless networks, such as the Time Division Multiple Access (TDMA), use time division channel access methods, which avoid packet collisions and conserve energy[48]. Such kinds of methods require time synchronization in or-der to perform the function efficiently. Time synchronization is also required in Frequency Hopping Spread Spectrum (FHSS) techniques where the sensor nodes in the network switch radio transmissions among different carrier fre-quencies in a pseudo-random order. Additionally, “some encryption algorithms also require time synchronization between nodes in order to facilitate the changeover of keys.”[4]-[9], [42]-[45]

Moreover, many localization, security, and tracking protocols also require the sensor nodes in the networks to timestamp their messages. Therefore, time syn-chronization becomes one of the most important challenges in the design of wireless sensor networks.

2

Page 8: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Traditional time synchronization techniques have been successfully used for wired networks over the past few decades. However, these are unsuitable for wireless sensor networks. Network Time Protocol (NTP) is widely used in the Internet and it requires both accurate time and a continuously running server. It can be seen that the reliability of the NTP protocol is dependent on the redundancy of the time server and the diversity involved in obtaining time. All in all, it is too complicated to implement and is not particularly energy efficient. Global Positioning System (GPS), on the other hand, is not practical since it re-quires a GPS receiver to attach to the network node and both the costs and the size are significant. Also, GPS depends on line of sight communication, but it is generally the case that the sensors in the network are deployed in harsh environ-ments. Thus the GPS signals are often lost.

1.2 Overall aim Wireless sensor networks make a broad use of time synchronization and they involve many requirements in relation to these aspects such as precision, scope, lifetime and energy. Thus it has become necessary to extend some existing time synchronization. In addition, time synchronization algorithms specifically for wireless sensor networks has been the focus of a great deal of research.

However, there are an insufficient number of acceptable current surveys on time synchronization. Their analysis for time synchronization algorithms are incom-plete. In [3], the authors presented several time synchronization protocols, but they ignored the advantages and disadvantages of these protocols. Another pa-per, [16], resembled that of [3] and did not provide a classification of the proto-cols. In the paper, [1], this lacked comparisons of the protocols.

By learning time synchronization technology and by means of an analysis of state-of-art time synchronization algorithms and protocols, this work reviews the problem in relation to time synchronization and the requirement for time synchronization in WSNs, and presents the characteristics of time synchroniza-tion in WSNs in detail. This work also explains some typical time synchroniza-tion protocols for wireless sensor networks, and then classifies and evaluates these protocols. In addition, this work analyzes those protocols based on both theory and experiments results. Finally, this work summarizes time synchroniz-ation in relation to the current research status and presents the future develop-ment prospects for time synchronization in wireless sensor networks.

1.3 ScopeThe study has its focus on time synchronization.

Firstly, it presents a survey of time synchronization protocols for wireless sensor networks including TPSN, RBS, FTSP, based on some aspects such as synchronization accuracy, scope, delay, cost, energy efficiency and computa-tional complexity.

3

Page 9: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Secondly, the study builds a framework for comparing state-of-art time syn-chronization protocols.

1.4 Concrete and verifiable goals A. This work classifies time synchronization protocols into the following types:

a) MAC-layer based approach versus standard approach

b) Sender-to-receiver versus receiver-to-receiver synchronization

c) Master-slave versus peer-to-peer synchronization

B. This work analyzes and evaluates some existing time synchronization proto-cols based on theory and experiment results in accuracy and some other aspects.

C. This work surveys and evaluates state-of-art time synchronization protocols based on some aspects including synchronization accuracy, scalability, cost, en-ergy efficiency and computational complexity.

1.5 OutlineThis thesis is organized as follows.

Chapter 2 introduces the reader to how computer clocks work and explains the requirements and challenges associated with time synchronization in WSNs. In chapter 3, the methodology used in this work is shown. Chapter 4 analyzes sev-eral existing time synchronization protocols in wireless sensor networks in de-tail, such as Timing-Sync Protocol for Sensor Networks (TPSN), Reference Broadcast Synchronization (RBS), Delay Measurement Time Synchronization (DMTS), Flooding Time Synchronization Protocol (FTSP), Time Diffusion Pro-tocol (TDP), and Tiny-Sync and Mini-Sync. It then provides a classification of these time synchronization protocols. This is followed by some experimental results on several modern and excellent protocols in Chapter 5, and an analysis of these protocols is also provided. Chapter 6 evaluates these time synchroniza-tion protocols by means of a comparison in relation to accuracy, energy, scope, complexity and scalability, and finally, the conclusions of the survey and the direction of future work are given in Chapter 7.

1.6 ContributionsThe paper presents a survey of time synchronization protocols in wireless sensor networks, based on a palette of aspects such as synchronization accuracy, scope, delay, cost, energy efficiency and computational complexity. In addition, the study builds a framework for comparing state-of-art time synchronization

4

Page 10: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

protocols. It should prove to be of assistance in choosing the most suitable pro-tocol for an application.

All the survey work, collect papers, sort out the classification and criteria, clas-sify the protocols, survey and evaluate state-of-art time synchronization proto-cols, analyze and compare the protocols, has been completed by the author.

5

Page 11: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

2 Related Work2.1 Definition of Clock

“Computer clock circuits consist of an oscillator and a counter. Based on the os-cillator angular frequency, the counter increases its value to represent the local clock C(t) of a network node.”[3] In an ideal environment, the angular fre-

quency is constant. That is to say, the clock rate of the change dCdt is equal

to 1. Figure 1 describes fast, perfect and slow clocks.

Figure 1: Fast, perfect, and slow clocks.[2]

As a result of a series of physical variations, such as temperature, humidity, pressure, and vibration, the angular frequency of the clock changes and the computer clock drifts. The local clock C(t) of node i can be related to real time t as follows[10], [21],[49]:

Ci(t) =ai*t+ bi (1) [3]

where ai and bi is are the clock drift and the offset of node i 's clock. The clock drift represents the frequency of the clock, and the offset represents the differ-ence between the value and the real time t. According to equation (1), it is pos-sible to compare the local clocks of two nodes, node 1 and node 2, in a network as follows[10]:

C1(t) = a12*C2(t) + b12 (2) [3]

where a12 is the relative drift and b12 is the relative offset between the clocks of node 1 and node 2. In an ideal environment, which is that two clocks are per-

6

Page 12: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

fectly synchronized, the relative drift is equal to 1. That is, the two clocks have the same rate(frequency). In addition, the relative offset is equal to 0, which means that the two clocks have the same value at that moment.

Based on the two equations, the clock drift and the offset of the nodes in the network can be used to synchronize its local time. Some protocols are designed to adjust the clock drifts or the offsets of the nodes in order to achieve instantaneous synchronization.

2.2 Uncertainties of Time Synchronization Errors Assume there are two nodes, node 1 and node 2. Node 1 wants to be synchron-ized to node 2. Node 1 sends a packet with its time stamp to node 2. If there is no delay in the message transmission, node 2 can immediately determine the difference between its clock and that of node 1. Unfortunately, in a real wireless sensor network, various non deterministic delays can affect the message trans-mission, making time synchronization much more difficult. Generally, a series of timing message transmissions are required to estimate the relative clock drifts and offsets of nodes in WSNs[25]-[29], [51].

In general, the following components lead to time synchronization errors:

• Send Time: The total time of building the message at the application layer and transferring it to the network interface. This time is highly variable due to the operating systems in use.

• Access Time: The waiting time required to access the channel after reaching the Medium Access Control (MAC) layer. This is perhaps the most significant component leading to packet delay. Moreover, it is highly dependent on the MAC protocol employed by the sensor node.

• Transmission Time: The time when a packet is transmitted bit by bit at the physical (PHY) layer. This time can be estimated according to the packet size and the radio speed.

• Propagation Time: The actual time taken by the message to be trans-mitted from the sender to the receiver in a wireless link.

• Reception Time: The time taken in receiving a message bit by bit at the PHY layer, which is the same as the transmission time.

• Receive Time: The time spent in receiving the message, constructing the bits into a packet and sending the received packet to the application layer where it is decoded at the receiver. This time is also variable due to the operating systems in use.

7

Page 13: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

2.3 Requirements on Time Synchronization Algorithm For Wireless Sensor NetworksThe following requirements should be met when evaluating time synchroniza-tion algorithms[30]-[33], [50]:

Accuracy: Precision of time synchronization technique which is highly depend-ent on the application. It is an important measure of how well the time is main-tained in the wireless sensor network is to the standard time[34].

Energy Efficiency: Every network node has limited energy resources because of the limiting size of power. Time synchronization protocols should consider this limitation.

Scalability: With sensor nodes becoming ever cheaper, tens of thousands of sensors might be deployed in the wireless sensor networks. Thus, time syn-chronization protocol should work well with any number of nodes in the net-work.

Complexity: The complexity of a synchronization protocol can make a protocol impractical for many applications due to the limited hardware capabilities and the severe energy constraints in wireless networks.

Robustness: Wireless sensor network might be deployed in lossy and harsh en-vironment, in other words, network nodes might die or go out of the network. Time synchronization protocols should have the ability to adapt to all kinds of environments and function well in all situations.

Cost: With the advanced technologies, sensor network nodes are becoming ever smaller and cheaper. It is essential that the time synchronization protocol should not add costs or increase the number of network nodes.

Scope: A time synchronization protocol may provide a common time for all sensor nodes in the network or provide a common time for only some close nodes.

Delay: Many applications, such as detecting forest fires, require an immediate response without any significant delay. The total time required to synchronize the whole network must be as low as possible in these kinds of applications.

8

Page 14: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

3 Methodology The methodology used in the survey can be described as follows:

Figure 2: Framework of this survey work.

This survey starts with a search for related papers in conference proceedings, such as European Conference on Wireless Sensor Networks(EWSN), ACM/IEEE International Conference on Information Processing in Sensor Net-works(IPSN), The ACM Conference on Embedded Networked Sensor Systems(SenSys) and The IEEE Conference on Computer Communications(In-focom), as well as journals, such as Transactions on Sensor Networks (TOSN), Transactions on Wireless Communications and Transactions on Industrial In-

9

Page 15: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

formatics. After conducting this research about 50 papers concerning time syn-chronization, or wireless sensor networks had been collected and intensively read 10 of the most suitable papers were chosen to be read in-depth. After read-ing these papers and thus acquiring the related knowledge about time synchron-ization in wireless sensor networks, a brief conclusion was made, which was followed by an in-depth analysis of several protocols. Thus, the classification of those protocols was made. Based on the theory, this survey analysed errors in time synchronization and compared some protocols. After that, the comparisons based on synchronization precision, accuracy, etc, were given. Finally, the con-clusion of this survey was made.

10

Page 16: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

4 Time Synchronization in Wireless Sensor Networks

4.1 Synchronization Methods for Wireless Sensor NetworksTime synchronization aims at synchronizing the local time for the nodes in the network. Some protocols require all of nodes in the network to be synchronized, while others only require the synchronization of some nodes in the network.

4.1.1 Timing-Sync Protocol for Sensor Networks (TPSN) TPSN is proposed in [11] by Saurabh Ganeriwal, ect, is the classical sender-re-ceiver synchronization based on pair wise model. It was designed as a flexible extension of NTP for wireless sensor networks. It is described as follows: This synchronization consists of two phases: a level discovery phase and a synchron-ization phase[17], [19], [60]-[62].

The level discovery phase is the process of building a network topology, and in which each node is assigned a level. In the level discovery phase, the first step is to select the root node as the master node. The master node can be connected to an external time as its reference, such as GPS. It is assigned level 0. Then, the root node broadcasts the level discovery packets, which contain their own level numbers and identities and all the neighboring nodes, which receive this packet assign themselves level 1. Nodes, which have received the level discovery packets, continue to send packets, which include their own level information until all nodes in the network are assigned a level. Figure 3 below describes the process of the level discovery phase.

Figure 3: The process of the level discovery phase in TPSN. [1]

11

Page 17: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

The synchronization phase is the process of synchronizing all of the nodes in the network. In the synchronization phase, after all the nodes in the network have been assigned a level, the root node sends a time synchronization packet. A node of level n synchronizes to a node of level n-1 through a two-way message exchange. The node, called A, of level n sends a packet with its local send time T1. The node, called B, of level n-1 receives the packet at time T2, which can be calculated as in the following equation , where d is the propagation delay and Δ is the relative clock drift between two nodes[20], [59].

T2=T1 +d+ Δ (3) [3] [11]

Then, after a random time, node B responds back to node A through an acknow-ledgment packet at time T3, which includes the values of T1, T2, T3, and its level information. Node A receives this packet at time T4 , which can be described as shown in Figure 4, and it can calculate d and Δ, which can be calculated as in the below equation , and synchronize itself to node B. By the end of the synchronization phase, all of nodes in the network become synchronized, and a whole network synchronization is achieved.

Figure 4: Message exchange process of the level discovery phase in TPSN.[11]

Advantages:

• TPSN is a multi-hop protocol.

• It does not depend on transmission range.

• It has better precision than RBS, which will be explained in Chapter 5.

12

Page 18: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Disadvantage:

• It is unable to efficiently handle dynamic topology protocols changes.

• It requires more energy. If the root nodes have died in the network, the whole synchronization method must be repeated.

4.1.2 Reference Broadcast Synchronization (RBS)The Reference Broadcast Synchronization (RBS) protocol is so named because it exploits the broadcast property of the wireless communication medium. RBS is introduced in [12] , which is a receiver with receiver synchronization, instead of a sender with receiver synchronization. It aims to provide synchronization amongst a set of nodes, which are located within the single-hop broadcast range of a beacon sensor node[18], [58].

Sensor nodes periodically broadcast beacons by using the network’s physical layer broadcast and other neighbor nodes use the arrival time of those beacons as a point of reference to compare their clocks and thus the relative time offsets between them is calculated by exchanging the local timestamps. Thus, the re-ceivers synchronize with each others.

This algorithm successfully removes all possible sources of error, namely the send time and the access time, at the receiver. The only sources of error in this algorithm are due to the uncertainties in relation to the propagation and receive times. While error due to propagation time can be ignored because the radio range is short and the beacon message is broadcast to the neighboring nodes at this time. Thus, the only source of error in this algorithm comes from the re-ceive time. This algorithm can provide highly accurate results if the message re-ception by each receiver is tight or if each receiver is able to record the time at which the packet was received, according to its local clock as soon as the mes-sage is received. Also, the precision of RBS increases with the increased num-ber of beacon messages used for the synchronization. [22], [23], [63].

Figures 5 and 6 compare the time critical path of traditional protocols(above), based on sender with receiver synchronization and with receiver with receiver synchronization in RBS(below).

13

Page 19: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Figure 5: The time critical path of traditional protocols. [2]

Figure 6: The time critical path of traditional protocols. [2]

Advantages:

• RBS eliminates the largest sources of error (send time and access time) from the critical path.

• “Clock offset and skew are estimated independently of each other; in ad-dition, clock correction does not interfere with either estimation because local clocks are never modified.” [2]

• RBS saves energy on expensive clock updates.

• It is the best for single hop networks

14

Page 20: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

• RBS provides multi-hop support by using nodes belonging to multiple neighborhoods as gateways.

• RBS can be applied in both wired and wireless networks.

Disadvantages:

• RBS cannot be applied in point-to-point networks, and it depends on the transmission range.

• The reference node cannot be synchronized in this algorithm.

• The number of message exchanges for RBS is very large. For a single-hop network which contains n receive nodes, RBS requires n2 message exchanges.

• The convergence time, the time required to synchronize the whole net-work, is high because of the number of message exchanges.

4.1.3 Delay Measurement Time Synchronization Protocol (DMTS)DMTS is proposed in [13] by Ping S. In DMTS, a leader is selected as the time master among a set of communicating nodes. Then, the leader broadcasts its local time value to the other nodes. All the receiver devices compare their local time values relative to the leader’s time and measure the time delay, and set their time as received based on the master time plus the measured time transfer delay. As a result, all the nodes which have received the time synchronization message can be synchronized with the leader. [57]

DMTS can also be extended to a multi-hop sensor network as follows. If a node knows that it has child/children nodes, it broadcasts a time value after it adjusts its local time. A leader is selected as the time master by using a leader selection algorithm. To solve the problem that, in the majority of networks, the nodes have no idea about their child/children nodes, the time source level is used to identify the distance from the time master to other nodes. The time master is time source level 0. The node that has synchronized with the time master is time source level 1. Also, a node that has synchronized with a time source level n node will have a time source level n+1. It is also the case that not only the root node but also the nodes that have been synchronized directly or indirectly with the master will periodically broadcast their local time value. When receiv-ing a time signal, a node will check its own time source level. If the signal is from a lower time source level than itself, it accepts the time value. Otherwise, it immediately discards the signal. This algorithm guarantees that the master time will be propagated to all nodes in the network, and the number of broad-casts is equal to the number of nodes. Since a node always selects the node,

15

Page 21: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

which is closest to the time leader, as its parent, DMTS also guarantees the shortest path to the time master, or the least number of hops in the network[39]-[41].

This algorithm is quite energy efficient, since only one time signal is required to synchronize all the nodes within the time master’s transmission range. Also, it is computationally lightweight because there are no complex operations in-volved.

Advantages:

• Its energy efficiency is quite high.

• Its computational complexity is low.

Disadvantages:

• The synchronization accuracy is traded off against the low computation-al complexity and high energy efficiency.

4.1.4 Flooding Time synchronization Protocol (FTSP)Flooding Time Synchronization Protocol (FTSP) is introduced in [14] by Branislav Kusy, which aims at providing network-wide internal synchroniza-tion. In FTSP, the node with the lowest ID number is elected/re-elected as the root node and serves as the source of reference time. The root node period-ically broadcasts the network with a synchronization message which contains its local time value. Nodes, which have received the message, record the incom-ing time-stamp and its time of arrival, then broadcast the message to their neighboring nodes after updating the time-stamp. Nodes perform linear regres-sion on the incoming time stamp and time of arrival pairs to estimate the clock offset and the drift from the root node.[56], [64]

The goal of the FTSP is to achieve a network wide synchronization with errors within the microsecond range.

FTSP synchronizes the time of a sender to multiple receivers by using a single radio message time-stamped at both the sender and the receiver. The broadcast message contains the time stamp of the sender, which is the estimated global time at the transmission of a given byte. “The receivers obtain the correspond-ing local time from their respective local clocks at message reception.”[14] Thus, one broadcast message provides a synchronization point, which is a glob-al-local time pair, to each of the receivers. The difference between the global time and local time of a synchronization point is used to estimate the clock off-set of the receiver.

16

Page 22: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

As is known, MAC layer time-stamping can eliminate many sources of errors. However, the only partial solution is accurate time synchronization at discrete points in time. It is inevitable that in order to achieve high accuracy between synchronization points and to keep the communication overheads low that there is compensation for the clock drift of the nodes. Multiple time-stamps with lin-ear regression are used to estimate clock skew and offset in FTSP.

As is the case for DMTS, FTSP also provides multi-hop synchronization. A single node is elected as the root of the network, dynamically, which maintains the global time. Then, all of other nodes synchronize their clocks to the root. The nodes form an ad-hoc structure instead of a fixed spanning-tree based ap-proach to transfer the global time from the root node to all the nodes in the net-work. This structure strengthens the robustness of the algorithm against dynam-ic topology changes and saves on the initial phase of establishing the span-ning-tree.

Actually, FTSP is an improvement of DMTS, and the specific differences between them can be listed as follow:

1. FTSP reduces the uncertainties of the delay, which is divided into transmit interrupt processing delay, coding delay, propagation delay, decoding delay, byte alignment delay and receive interrupt processing delay.

2. Similar to RBS, FTSP can calculate the initial phase difference and frequency difference between the sender and the receiver by sending multiple signal packages and the minimum variance linear fit at the receive nodes.

3. According to the principle of the nodes' clock oscillator frequency stability within a certain time frame, FTSP understands that the clock drift between nodes has a linear relationship with time.

4. Nodes send synchronization message, periodically, by using a linear regression method to ensure that the receiver nodes obtain sufficient data pairs to form the construction of the regression line.

5. FTSP proposes a more comprehensive election strategy for the root node against the topology changes when nodes fail or a new node joins, resulting in an improvement in the fault tolerance and robustness of the system.

Advantages:

• Synchronization precision of FTSP is high, which can be applied in military and other occasions requiring high synchronization accuracy.

• FTSP provides multi-hop synchronization.

• Its robustness against node failures and topology changes is strong.

17

Page 23: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

• This algorithm can adapt to the root node failure.

Disadvantage:

• It requires an initiation period due to linear regression.

4.1.5 Time Diffusion Protocol (TDP)Time-Diffusion Synchronization Protocol (TDP)[15] enables all the sensor nodes in the network to have a local time throughout the network, within a cer-tain tolerance. As a result of clock drift, the algorithms in the protocol have to be applied periodically. Hence,the protocol operates in two alternating phases, namely, active and inactive phases. The TDP consists of several algorithms, which will be described in the following paragraphs:

In the active phase, there are multiple cycles, and each cycle lasts for a duration τ. In each cycle, some of the nodes in the network are elected as the masters by an Election/Reelection Procedure (ERP), which consists of the False Ticker Isolation Algorithm (FIA) and Load Distribution Algorithm (LDA). [52]-[54]

The goals of the ERP are described as follows:

• To remove outlier nodes, whose clock variance is above some threshold function, called the Allen variance. The variance is determined by the exchanging messages and deviations between pairs of neighbor nodes using the Peer Evaluation Procedure.

• To achieve load distribution among the nodes in the network. This is achieved by taking turns on being the master nodes. TDP does not de-pend on any particular nodes to be the master nodes, so the workload in the network can be spread to all the sensor nodes.

At the end of the ERP, the elected master nodes start the Peer Evaluation Pro-cedure (PEP) while other nodes do nothing. The PEP helps to remove the false tickers from becoming neither a master node nor a diffused leader node in the network[55].

After the procedure PEP, the master nodes start the Time-diffusion Procedure (TP), where they diffuse the timing messages every δ second for the duration of τ seconds. The diffusion of timing messages assists in the converging of the loc-al time and in arriving at a common notion of the network-wide time in each cycle. Then these messages create an effective tree propagation structure for each diffusion in the network. The non-leaf nodes, receiving the timing mes-sages in the tree structure, self-determine to become a diffused leader node. The

18

Page 24: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

diffused leaders are also elected by the ERP. Actually, a node which is not qual-ified to be a diffused leader node will not propagate the diffusion message. Fur-thermore, all the neighboring nodes in the network adjust their local clocks by using two algorithms, which are the Time Adjustment Algorithm (TAA) and the Clock Discipline Algorithm (CDA), after waiting for δ seconds.

Also, the master nodes can be coordinated to a precise external time server which broadcasts a reference time periodically. If no time servers are available, the TDP still works well by using a time, which is independent of the time used by the Internet, such as the Universal Coordinated Time (UCT).

The TDP can be described in these two cases, with precise time servers and without precise time servers, in the following paragraphs.

• With precise time servers : The main goal of the TDP is to enable all the sensor nodes in the network to have a equilibrium time. The sinks can act as the precise time servers for the sensor nodes in the sensor field. They broadcast a reference time to all of the master nodes in the sensor networks. After that, the master nodes use the received reference time to synchronize with their neighboring nodes. In fact, the equilibrium time, that all the sensor nodes in the network have, is the reference time broadcast by the sinks.

• Without precise time servers: If no time servers are coordinated with the TDP, this means that the line-of-sight or connection to all the master nodes from the time servers may be impossible or, that, the sensor net-work may be deployed in such areas not able to be readily accessed over a long period of time by the time servers, such as caves and ocean. However, the autonomous nature of TDP allows the sensor nodes in the network to reach an equilibrium time that is independent of the time used by the Internet, for example Universal Coordinated Time.

The TDP can be used in interactive sensing and monitoring because it allows the sinks to send a start time to the sensor nodes in the network.

One of the benefits of TDP is that the performance of voice and video applica-tions can be improved when multiple sources are sending data back to the sink through flooding or directed diffusion.

Advantages:

• “The protocol is tolerant of message losses.”[2]

• It can be allowed to choose different values of τ for different kinds of sensor networks, depending on the purpose of the different applications.

19

Page 25: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

• The TDP does not depend on a stationary level-by-level transmission structure. This non-dependence provides flexibility and fault tolerance of message losses.

• The TDP can be applied for both static and mobile sensor nodes.

• The protocol achieves all the sensor nodes in the network to possess an equilibrium time and involves all the sensor nodes in the synchroniza-tion process.

• The majority of time synchronization protocols require precise time servers and are unable to function well without time servers. While, the TDP protocol can still work well even without precise time servers.

Disadvantages:

• In each active phase, there are multiple cycles, and each cycle has mul-tiple rounds. Additionally, in each round, a diffusion message broadcast is initiated by multiple master nodes. Thus the complexity of the TDPs is quite high.

• It appears that it is possible for a clock to run backward. If a clock value is suddenly adjusted to a lower clock value, this may occur.

4.1.6 Tiny-Sync and Mini-Sync Tiny-Sync[38] and Mini-Sync are two lightweight time synchronization algorithms for wireless sensor networks, proposed in [10]. The algorithms are based on an assumption: the frequency of the clock in the sensor networks is constant and has a linear correlation. That is to say, for clock T1, T2:

T1(t) = a12T2(t) + b12 (6) [2]

where a12 is relative clock drift, and b12 is relative clock offset.

These two simple algorithms aim at synchronizing a pair of wireless nodes after which these two algorithms are extended to synchronize the whole net-work nodes.

The algorithms use a traditional two-way message exchange to collect data points, which aims to estimate the relative clock drift and the relative clock offset.

At first, node 1 sends a probe packet with the local timestamps To. After receiv-ing the probe packet, node 2 sends a packet which contains the local timestamps

20

Page 26: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Tb immediately. Finally, when receiving the packet, node 1 records the local time Tr.

Figure 7 shows the previously described process.

Figure 7: Message exchange of Tiny-Sync and Mini-Sync. [3] [10]

Based on equation (6) above and taking the order of transferred messages into account, the following relationships can be obtained[3] [10]:

To < a12Tb + b12 (7)

Tr > a12Tb + b12 (8)

The three time stamps consisting of (To, Tb, Tr) are called a data point. The algorithms collect data points, and use linear programming to estimate a12 and b12. They then synchronize nodes.

With the increase in the number of data points, the accuracy of the algorithms is improved continuously.

Estimating the values of a12 and b12 requires both a large storage and heavy computation. Regular data and message packets in the network can also be used to collect data points, which reduces the overhead.

As shown in Figure 8, each data point corresponds to the two constraints (Tb,To) (Tb , Tr). It should be noted that the straight lines that corresponded to a12 and b12

must be between all the data points, the two steepest and most slow dotted lines in the figure provide the upper and lower bounds for a12 and b12. In addition, the smaller the interval between the upper and lower bounds is, the greater is the accuracy. By solving the linear programming problem under the constraint of all data points, the optimal solution can be obtained. However, this method is too complex for it to be achieved in wireless sensor networks which have limited computing resources.

It is possible to determine, by means of observation, that it is unnecessary to collect all the data points in the calculation realting to the upper and lower bounds. In fact, the upper and lower bounds are determined only by the first and third data points, as shown in Figure 8.

21

Page 27: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Figure 8: The linear dependence and the constraints imposed on a12 and b12

by three data-points. [3] [10]

Tiny-Sync only saves four constraint points in determining the optimal boundary, which reduces the computational complexity of the algorithm. However, this method does not always provide the optimal upper and lower bounds, as, in some cases, the algorithm may discard the point which gives the optimal upper and lower bounds.

Mini-Sync is an extension of Tiny-Sync. It prevents the algorithm from discarding the data points which may be able to provide smaller upper and lower bounds in the future. It also discards those points until it can be sure that those points are useless. Thus, its accuracy is higher.

The two algorithms, Tiny-Sync and Mini-Sync, are very much in line with the requirements of the wireless sensor networks, which are that the required storage space and computing resources are small and that the requirements relating to the bandwidth are very small.

Advantages:

• The storage space and computing resources required are minimal.

• The requirements on bandwidth are very low.

22

Page 28: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

• They are very suitable for sensor networks which are highly constrained in power and bandwidth.

• These two protocols are tolerant of message loss.

Disadvantages:

• The assumptions of this algorithm are difficult to achieve on a low cost sensor network nodes.

• They are not applicable to mobile sensor networks, because their sensor networks are logically organized as a hierarchical structure.

• The convergence time, which is the time used to achieve time synchron-ization of the whole network, is quite high.

4.2 Classification of Synchronization ProtocolsWireless sensor networks can be applied to a large number of applications, from simple fire monitoring in the forests to safety critical applications. As the majority of networks are quite closely coupled to the application, the protocols used for time synchronization may differ in some aspects and resemble each other in some other aspects. This work classifies time synchronization protocols into these three kinds[24].

4.2.1 MAC-layer Based Approach vs. Standard Approach

“The Media Access Control (MAC) layer is a part of the Data Link Layer of the Open System Interconnection (OSI) model.”[2] This layer is responsible for the functions which are described as follows:

• To provide reliability to the layers above it with respect to the connec-tions which are established by the physical layer.

• To prevent collisions in the transmission, so that the message transmis-sion between one sender and the receiver nodes does not interfere with transmission by other sensor nodes.

23

Page 29: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Figure 9: MAC-layer Based Approach vs. Standard Approach.

MAC layer based approach is based on MAC layer, and Standard approach is based on application layer.

MAC protocols effectively use the MAC layer to achieve a better energy effi-ciency which is crucial in wireless sensor networks[5]-[7].

4.2.2 Sender-to-receiver vs. Receiver-to-receiver Synchronization Most existing protocols synchronize a sender with a receiver by transmitting the packet with local clock values as the timestamps. As a result, these methods are quite vulnerable to message delay. Some methods, such as RBS, achieves time synchronization among the receivers by using the time at which each receiver node receives the same message from a sender. Such a method can reduce the time critical path, which is the path of the message which is of assistance in de-termining uncertain errors in the protocol[8], [35]-[37].

Sender-to-receiver synchronization.

This is a traditional approach. It is usually performed in three steps as follows:

1. A sender node sends a message packet with its local clock value as a timestamp periodically to the receiver nodes.

2. Then the receiver nodes synchronize themselves with the sender node by using the timestamps received from the sender, immediately or after some time.

3. The message delay between the sender node and the receiver nodes can be calculated by measuring the total round-trip time, which is from the time a receiver node requests a timestamp to the time it actually receives the response.

However, the disadvantages of this method are obvious. There is a variance in message delay between the sender node and the receiver node, which is due to the delay in the network and the workload in every node. Most approaches cal-

24

Page 30: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

culate the average message delay after performing experiments many times, during which they lose the accuracy of the time synchronization, and also, add an overhead to the network. In addition, consideration must also be given to the optimization of the time taken by the sender node to prepare and transmit the message as well as the time which is taken by the receiver nodes to process the message.

Receiver-to-receiver synchronization.

This method utilizes the physical broadcast medium so that if two receiver nodes receive the same message within a single-hop transmission, then they re-ceive it almost at the same time. Instead of exchanging with a sender node, re-ceiver nodes exchange the timestamps when they receive the same message from a same sender node and calculate their clock offset based on the difference in the reception time. The advantage of this method is in the reduction of the variance in the message delay. This method is only vulnerable to the propaga-tion delay to the different receiver nodes and the differences in the receive time.

4.2.3 Master-to-slave vs. Peer-to-peer Synchronization Master-to-slave synchronization.

A master-to-slave protocol selects one node as the master and the other nodes in the network as slaves. The slave nodes regard the local clock value of the master as the reference time and synchronize with the master.

Peer-to-peer synchronization.

Most protocols, such as RBS, are based on a peer-to-peer structure. In a peer-to-peer structure, any node can directly communicate with every other nodes in the network. This removes the effect of the master node failure, which could prevent the achievement of time synchronization. However, it is also more difficult to control a peer-to-peer synchronization.

Table 2 classifies the various protocols for time synchronization in wireless sensor networks based on the analysis in this section.

25

Page 31: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Table 2: Classification of Synchronization Protocols

26

Page 32: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

5 AnalysisError Analysis Based on Theory Based on node message transmission process, equation (9), (10) and (11) can be obtained as follows:

where t is real time which is measured by an ideal clock; T is the time measured by local nodes' clocks; S stands for the total send time, access time and transmission time; P means the propagation time between two nodes; R is the time which is taken to receive a packet, that is reception time and receive time;

is the clock drift between two nodes at time t.

where is the relative clock drift between node A and node B from t1 to t4.

As mentioned in Chapter 4, the clock drift of TPSN is:

(13)

From equation (10), (11) and (13), its clock drift can be described as follows:

(14)

Finally, the expression for error in TPSN can be described as follows:

(15)

27

Page 33: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

While, for RBS:

And the clock drift of RBS can be developed as follows:

So, the expression for error in RBS can be described as follows:

where

Let

where , , stand for the uncertainty in the sender, the uncertainty in propagation time and the uncertainty in the receiver. So, their expressions for error can be developed:

Now, contrast TPSN and RBS based on those equations above:

1. The uncertainty in the sender,

From the equations (23) and (24), the uncertainty in the sender is different in TPSN and RBS. RBS does not have this uncertainty error in the sender, that is to say, RBS removes the uncertainty in the sender completely. That is because the RBS protocol is a receiver-to-receiver synchronization, which is also the reason why the receiver-to-receiver synchronization performs much better than the sender-to-receiver synchronization.

2. The uncertainty in propagation time,

As can be seen from the equations (23) and (24), both TPSN and RBS

28

Page 34: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

are affected by the variations in propagation time. In addition, the uncertainty in the propagation time of TPSN is half that of RBS and thus the result can be obtained that, although in the same variation in propagation time, TPSN performs better by a factor of 2 as compared to RBS.

3. The uncertainty in the receiver,

For the same reception time, TPSN's synchronization error in the receiver is half that of RBS, which can be observed from equations (23) and (24). That is to say, in a similar system, TPSN performs better than RBS by a factor of 2.

4. Clock drift,

As can be seen from the last term in equations (23) and (24), the clock drift of TPSN is half that of RBS. In other words, with the same variation in clock drift, TPSN performs better by a factor of 2 than RBS.

As can be seen from the analysis above, TPSN provides a performance which is twice as good for almost all the sources of error than RBS. However, RBS completely removes the uncertainty in the sender as a source of error,while TPSN does not.

29

Page 35: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

6 Comparison of protocolsThis work compares and evaluates the various state-of-art time synchronization protocols in wireless sensor networks. Before these protocols are evaluated, the criteria, which will be used in next comparisons, must be defined in detail. This work divides the evaluation criteria into five aspects including synchronization precision, computational complexity, scalability, and energy efficiency.

Synchronization Precision.

Every sensor node has a physical clock which consists of hardware oscillator circuits. However, the frequency of the physical clocks is different from one node to another within a specified range. That is to say, the clocks on different nodes in wireless sensor networks operate at different rates. Thus, the clock val-ues, which are used for time synchronization in wireless sensor networks, are not the physical clock readings. It is the case that network nodes usually utilize a logical notion of clocks and it is possible for logical clocks to be modified both by software and hardware. Thus, there are two ways to define synchroniza-tion precision.

• Absolute precision. The maximum error between a node’s logical clock and an external clock, such as UCT.

• Relative precision. The maximum deviation among the logical clock readings of the nodes in the wireless sensor networks.

The notion of relative precision above is generally used in this discussions. Generally, for a synchronization protocol, high synchronization precision is clearly a desirable feature. However, in the protocols studied in this work, there is higher synchronization precision more messages exchanged among nodes, more storage requirements for the protocol, and the protocols are more com-plex.

Accuracy.

Accuracy is an important measure with regards to how well the time is main-tained in the wireless sensor network to the standard time. That is to say, it is a measure of how much precision of time synchronization there is. A time syn-chronization protocol, which has high accuracy, guarantees its high precision, which has different meanings in different cases as there are two ways to define synchronization precision.

30

Page 36: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

• In the case of absolute precision, it means that the synchronized time in the sensor network does not deviate from the external standard clock such as UCT.

• In the case of relative precision, this means that the maximum deviation for the clock of any node in the set is small when a set of synchronized nodes in the network is considered.

Computational Complexity.

The complexity of a synchronization protocol can make a protocol impractical for many applications due to the limited hardware capabilities and because of several energy constraints in wireless networks.

The computational complexity of a protocol, such as in relation to the memory requirements, and the message complexity, such as the number of messages ex-changed during time synchronization, must be given due consideration.

In this evaluations, both a protocol’s memory requirements and the number of nodes being synchronized are considered.

Scalability.

The scope of a sensor network is the geographic span of the nodes that are syn-chronized. Generally, the scope of a sensor network can be expanded by in-creasing the number of sensor nodes in the network. The sensors are becoming ever more cheap, and the wireless sensor networks are becoming larger. A wire-less sensor network consists of tens of thousands of sensor nodes. Therefore, time synchronization protocols must have sufficiently strong scalability in rela-tion to the network size.

Energy Efficiency.

Energy efficiency is an important requirement in most wireless sensor networks and it varies depending on the application. For example, in some case, the re-quirement on energy efficiency in sensor networks is quite strict, which limits the energy for time synchronization and some other tasks. The main reason for the energy constraint is the size of the batteries in the sensor nodes, which greatly limits the amount of energy that can be used and stored. An important trade off for wireless sensor networks must be considered, which is in relation to the division of the energy between the computing and communicating.

Table 3 below compares the various protocols in terms of the above aspects. The data of precision comes from [13], [14], [38]. All of them are implemented on the Mica nodes.

31

Page 37: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Table 3: Comparisons for various time synchronization protocols.

According to Table 3, readers are able to choose the most suitable protocol for different conditions.

For example, the precision of FTSP is the highest, so it can be widely used rela-tion to the military. In addition, RBS, with its high accuracy, good scalability and high energy efficiency can be applied in some cases which require high ac-curacy and limited power.

32

Page 38: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

7 Conclusions and OutlookIn recent years, due to their wide applicability in a diverse range of application areas, more and more attention has been focused on wireless sensor networks. The main challenge from the many difficulties involved in designing and build-ing such networks is in providing time synchronization among the sensor nodes in the networks. It is necessary for a large number of sensor applications to provide a common time axis, because the data must be fused in order to make coherent inferences based on the sensed environment.

Those traditional time synchronization protocols for wired networks are unable to be used in wireless sensor networks, because time synchronization protocols for wireless sensor networks require the ability to handle sensors' mobility, the ability to adapt the environments dynamically, and scalability. Because of the limited battery power, sensors in wireless networks are heavily resource con-strained. Additionally, they are required to be operated in very tough and unre-liable environments. As a result, several time synchronization protocols in wire-less sensor networks have been developed during recent years.

This thesis presents a survey and analysis of various state-of-art time synchron-ization protocols in wireless sensor networks based on a variety of aspects such as synchronization precision, computational complexity and energy efficiency. The design considerations presented in this survey should be of significant as-sistance to designers building a successful time synchronization protocol for a given application. Finally, this survey should provide a suitable benchmark for designers to compare their results with various existing time synchronization protocols which are widely used in wireless sensor networks.

Time synchronization is an important part of a wireless sensor network, whose characteristics directly determine or affect the quality and features of the applic-ation. Improving the synchronization accuracy, reducing synchronization power consumption, and improving the scalability and robustness of wireless sensor network are the future research directions for time synchronization. With the extensive application of large scale wireless sensor networks, time synchroniza-tion technology can be developed in relation to the following aspects:

1. Variable topology which results in the nodes' mobility. Currently, most wireless sensor networks' topologies are fixed without taking the nodes' mobility into account, while the nodes moving themselves can also take the time message to another place.

2. Depending on the condition of the nodes' hardware , time synchroniza-tion algorithms should minimize energy consumption under the condi-tion which involve meeting the demands of the applications in order to achieve optimal efficiency.

33

Page 39: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Time synchronization is an important supporting technology for wireless sensor networks, and researchers are still required to continue to explore and discover.

34

Page 40: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

References[1] Y. Wu, Q. Chaudhari and E. Serpedin, “Clock Synchronization of Wire-

less Sensor Networks,” IEEE Signal Processing Magazine, 2010.

[2] B. Sundararaman, U. Buy, and A. D. Kshemkalyani, “Clock Synchroniz-ation for Wireless Sensor Networks: A Survey,” March 22, 2005.

[3] S. M. Lasassmeh and J. M. Conrad, “Time Synchronization in Wireless Sensor Networks: A Survey,” IEEE, 2010.

[4] M. K. Maggs, S. G. O’Keefe, and D. V. Thiel, “Consensus Clock Syn-chronization for Wireless Sensor Networks,” IEEE,2011.

[5] IEEE Std 802.11i-2004, Amendment 6: Medium Access Control (MAC) Security Enhancements to IEEE Std 802.11-1999 Edition

[6] A. Perrig, R. Canetti, J. Tygar, and D. Song, “The TESLA Broad-cast Authentication Protocol,” RSA CryptoBytes, vol. 5, no. 2, pp. 2–13, 2002.

[7] A. Perrig, R. Szewczyk, V. Wen, D. Cullar, and J. D. Tygar, “SPINS: Security protocols for sensor networks,” in Proc. of the 7th Annual ACM/IEEE International Conference on Mobile Com-puting and Networking, pp. 189-199, July 2001.

[8] P. Schaller, S. Capkun, and D. Basin, “BAP: Broadcast authentica-tion using cryptographic puzzles,” ACNS 2007: International Confer-ence on Applied Cryptography and Network Security, vol. 4521, pp. 401–419, 2007.

[9] J. Jang1, T. Kwon, and J. Song, “A Time-Based Key Management Protocol for Wireless Sensor Networks”, Lecture Notes in Computer Science, Volume 4464, pp. 314-328, 2007.

[10] M.L. Sichitiu and C. Veerarittiphan, “Simple, Accurate Time Synchron-ization for Wireless Sensor Networks,"Wireless Communications and Networking, 2003. WCNC 2003. 2003 IEEE Volume 2, 20-20 March 2003 pps.1266 - 1273 vol.2.

[11] S. Ganeriwal, R. Kumar, and M. Srivastava, “Timing Sync Protocol for Sensor Networks," ACM SenSys, Los Angeles, November 2003.

[12] J. Elson, L. Girod, and D. Estrin, “Fine-Grained Network Time Syn-chronization using Reference Broadcasts,” Proc. Fifth Symposium on

35

Page 41: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

Operating Systems Design and Implementation (OSDI 2002),Vol 36, pp. 147–163,2002.

[13] S. Ping, “Delay Measurement Time Synchronization for Wireless Sensor Networks,” Intel Research, IRB-TR-03-013,June 2003.

[14] M. Maroti, G. Simon, B. Kusy and A. Ledeczi, “The Flooding Time Synchronization Protocol,” in Proc. 2nd Int. conference on Embedded networked sensor systems, Baltimore, MD, USA, Nov. 2004, pp. 39–49.

[15] W. Su, I. Akyildiz, “Time-Diffusion Synchronization Protocols for Sensor Networks,” IEEE/ACM Transactions on Networking, 2005, in press.

[16] F. Sivrikaya and B. Yener, “Time Synchronization in Sensor Networks: A Survey,” IEEE Network, July/August 2004.

[17] K. Noh, Q. Chaudhari, E. Serpedin and B. Suter, “Analysis of Clock Offset and Skew Estimation in Timing-sync Protocol for Sensor Net-works,” IEEE GLOBECOM 2006 proceedings, 2006.

[18] D. Djenouri, “Estimators for RBS-Based Time Synchronization in Het-erogeneous Wireless Networks,” IEEE, 2011.

[19] A. B. Kulakli, K. Erciyes, “Time Synchronization Algorithms based on Timing-Sync Protocol in Wireless Sensor Networks,” IEEE, 2008.

[20] Ki. Cheng, K. Lui, Y. Wu and V. Tam, “A Distributed Multihop Time Synchronization Protocol for Wireless Sensor Networks using Pairwise Broadcast Synchronization,” IEEE, 2009.

[21] J. Elson, K. Romer, “Wireless Sensor Networks: A New Regime for Time Synchronization,” ACM SIGCOMM Computer Communications Review, Volume 33, Number 1: January 2003.

[22] J. Elson and D. Estrin, “Time Synchronization for Wireless Sensor Net-works,” Proceedings of the 2001 International Parallel and Distributed Processing Symposium(IPDPS),Workshop on Parallel and Distributed Computing Issues in Wireless Networks and Mobile Computing, April 2001.

[23] Zhulin An, Hongsong Zhu, Xinrong Li,Chaonong Xu, Xiaowei Li, Yongjun Xu, “Nonidentical Linear Pulse-Coupled Oscillators Model With Application to Time Synchronization in Wireless Sensor Networks,” National Natural Science Foundation of China, 2007.

36

Page 42: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

[24] K. Noh, E. Serpedin, and K. Qaraqe, “A New Approach for Time Syn-chronization in Wireless Sensor Networks: Pairwise Broadcast Syn-chronization,” IEEE Transactions on wireless communications, VOL. 7, NO. 9, September 2008.

[25] Yubo Yan, Lei Zhang and Panlong Yang, “Does loss rate really matter? An Experimental Study on Time Synchronization Protocol in Wireless Sensor Networks,” Sixth International Conference on Mobile Ad-hoc and Sensor Networks,2010.

[26] F. Ferrari, M. Zimmerling, L. Thiele, and O. Saukh, “Efficient Network Flooding and Time Synchronization with Glossy,” IPSN’11, April 12–14, 2011, Chicago, Illinois.

[27] Hui Dai, Richard Han, “TSync : A Lightweight Bidirectional Time Syn-chronization Service for Wireless Sensor Networks,” Mobile Computing and Communications Review, Volume 8, Number 1.

[28] C. Lenzen, P. Sommer, and R. Wattenhofer, “Optimal Clock Synchroniz-ation in Networks,” SenSys’09, November 4–6, 2009, Berkeley, CA, USA.

[29] A. Araujo, J. García-Palacios, J. Blesa, F. Tirado, E. Romero, A. Samartín, and O. Nieto-Taladriz, “Wireless Measurement System for Structural Health Monitoring With High Time-Synchronization Accur-acy,” IEEE Transactions on instrumentation and measurement, VOL. 61, NO. 3, March 2012.

[30] Zhehan Ding, N. Yamauchi, “An Improvement of Energy Efficient Mul-ti-hop Time Synchronization Algorithm in Wireless Sensor Network,” IEEE, 2010.

[31] P. Ferrari, A. Flammini, S. Rinaldi, and E. Sisinni, “Time Distribution in IPv6 Wireless Sensor Networks,” IEEE, 2011.

[32] J. Koo, R. K. Panta, S. Bagchi, and L. Montestruque, “A Tale of Two Synchronizing Clocks,” SenSys’09,November 4–6, 2009, Berkeley, CA, USA.

[33] L. Ma, H. Zhu, G. Nallamothu, B. Ryu, and Z. Zhang, “Impact of Linear Regression on Time Synchronization Accuracy and Energy Consump-tion for Wireless Sensor Networks,” IEEE, 2008.

[34] J. Liu, Z. Zhou, Z. Peng, J. Cui, M. Zuba, L. Fiondella, “Mobi-Sync: Ef-ficient Time Synchronization for Mobile Underwater Sensor Networks,” IEEE Transactions on parallel and distributed systems, 2012.

37

Page 43: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

[35] Djamel Djenouri, “Relative Referenceless Receiver/Receiver Time Syn-chronization in Wireless Sensor Networks,” IEEE Signal processing let-ters, VOL. 19, NO. 4, APRIL 2012.

[36] P. Sommer, and R. Wattenhofer, “Gradient Clock Synchronization in Wireless Sensor Networks,” IPSN’09, April 13–16, 2009, San Fran-cisco, California, USA.

[37] Li Li, Yongpan Liu, Huazhong Yang and Hui Wang, “A Precision Adapt-ive Average Time Synchronization Protocol in Wireless Sensor Net-works,” Proceedings of the 2008 IEEE International Conference on In-formation and Automation June 20 -23, 2008, Zhangjiajie, China.

[38] S. Yoon, C. Veerarittiphan, and M. L. Sichitiu, “Tiny-Sync: Tight Time Synchronization for Wireless Sensor Networks,” ACM Transactions on Sensor Networks, Vol. 3, No. 2, Article 8, Publication date: June 2007.

[39] X. Yin , W. Qi , F. Fu, “ASTS: An Agile Secure Time Synchronization Protocol for Wireless Sensor Networks,” IEEE, 2007.

[40] J. Bae, B. Moon, “Time Synchronization with Fast Asynchronous Diffu-sion in Wireless Sensor Network,” IEEE, 2009.

[41] M. Aoun,A. Schoofs, Pe. Stok, “Poster Abstract: Efficient Time Syn-chronization for Wireless Sensor Networks in an Industrial Setting,” SenSys’08,November5–7,2008,Raleigh,North Carolina,USA.

[42] Y. Jo, C. Park, J. Lee, I. Jung, “Energy Effective Time Synchronization in Wireless Sens or Network,” Fifth International Conference on Com-putational Science and Applications, 2007.

[43] S. PalChaudhuri, A. Saha, D. B. Johnson, “Adaptive Clock Synchroniz-ationin Sensor Networks,” IPSN’04,April26–27,2004,Berkeley, Califor-nia,USA.

[44] A. Boukerche, H. A.B.F. Oliveira, E. F. Nakamura and A. A.F. Loureiro, “A Novel Lightweight Algorithm for Time-Space Localization in Wire-less Sensor Networks,” MSWiM’07, O ctober 22–26, 2007, Chania, Crete Is land, G r eece.

[45] S. Jain, Y. Sharma, “Optimal Performance Reference Broadcast Syn-chronization (OPRBS) For Time Synchronization in Wireless Sensor Networks,” International Conference on Computer, Communication and Electrical Technology – ICCCET 2011, 18th & 19th March, 2011.

[46] A. C. Pinho, D. R. Figueiredo, F. M. G. Franca, “A Robust Gradient Clock Synchronization Algorithm for Wireless Sensor Networks,” IEEE,2012.

38

Page 44: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

[47] Liming He, G.S. Kuo, “A Novel Time Synchronization Scheme in Wire-less Sensor Networks,” IEEE, 2006.

[48] M. Zuo, W. Ma, Y. Xu, M. Li, “An Asymmetric Scan Time Synchroniza-tion Algorithm for TDMA Directional Antennas Networks,” IEEE, 2011.

[49] J. Feng, R. W. Pazzi and A. Boukerche, “The Impact of Discrete Clock on Time Synchronization in Wireless Sensor Networks,” The 9th IEEE International Workshop on Wireless Local Networks , 20-23 October 2009.

[50] Q. M. Chaudhari, E. Serpedin, and K. Qaraqe, “Some Improved and Generalized Estimation Schemes for Clock Synchronization of Listen-ing Nodes in Wireless Sensor Networks,” IEEE Transactions on com-munications, VOL. 58, NO. 1, January 2010.

[51] M. Xu, M. Zhao, S. Li, “Lightweight and Energy Efficient Time Syn-chronization for Sensor Network,” IEEE, 2005.

[52] N. Tackett, E. Jovanov, A. Milenković, “An Implementation of Time Synchronization in Low-Power Wireless Sensor Networks,” IEEE, 2011.

[53] A. Hu, S. D. Servetto, “Asymptotically Optimal Time Synchronization in Dense Sensor Networks,” WSNA’03,September 19, 2003, San Diego, California, USA.

[54] Jiadong Dong, Lichen Gu, Chunxiang Zheng, “Research and Applica-tion on Time Synchronization of Wireless Sensor Network Based on In-formation Fusion,” IEEE, 2010.

[55] Jiadong Dong, Lichen Gu, Chunxiang Zheng, “Research on Fault-Toler-ant Strategy of Time Synchronization for Industrial Wireless Sensor Network,” 2011 Third International Conference on Measuring Techno-logy and Mechatronics Automation, IEEE Computer Science, 2011.

[56] J. Greunen, J. Rabaey, “Lightweight Time Synchronization for Sensor Networks,” WSNA’03, September 19, 2003, San Diego, California, USA.

[57] F. Ren, C. Lin, F. Liu, “Self-correcting Time Synchronization Using Reference Broadcast in Wireless Sensor Network,” IEEE Wireless Com-munications, August 2008.

39

Page 45: Bachelor thesis - miun.diva-portal.orgmiun.diva-portal.org/smash/get/diva2:550723/FULLTEXT01.pdf · MAC Medium Access Control iv. ... tion protocols for wireless sensor networks,

Time Synchronization in Wireless Sensor Networks: A SurveyYing Yang 2012-05-28

[58] Kun Sun, Peng Ning, Cliff Wang, “Secure and Resilient Clock Syn-chronization in Wireless Sensor Networks,” IEEE Journal on Selected Areas in Communications, VOL. 24, NO. 2, February 2006.

[59] F. Zhang and G.Y. Deng, “Probabilistic Time Synchronization in Wire-less Sensor Networks,” IEEE, 2005.

[60] X. Tian , Y. Miao, W. Xu, B. Fan, J. Pan, “Research on Time Synchron-ization for Wireless Sensor Networks based on Bayesian Estimation,” 2010 Asia-Pacific Conference on Wearable Computing Systems, 2010.

[61] S. Xu, P. Wang, X. Huang, W. Shi, X. Xu, “Analysis of Research De-velopment on Time Synchronization Algorithm for Wireless Sensor Net-

works,” Microcontrollers&Embedded Systems, VOL. 5, 2011.

[62] X. Feng, H. Gao, “Research On Time Synchronization of Wireless Sensor Network,” Development and Application of Computer, VOL. 25, NO. 5, 2011.

[63] Z. An, G. Zhu, Y. Xu, “Overview on Time Synchronization in Wireless sensor networks,” Information Technology Letter, VOL. 6, NO. 4, Jul 2008.

[64] Y. Yang, J. Liu, “ Analysis on Typical Time Synchronization Technology in Wireless Sensor Network,” Electronic technology, 2012.

40