Sei sulla pagina 1di 6

APJ Abdul Kalam Technological University, Palakkad Cluster Research Conclave-2019,

Hoisted by N S S College of Engineering, Palakkad, India on 24th May 2019

CLOCK SYNCHRONIZATION USING LCM WITH ENERGY EFFICIENT


CLUSTERING

Vincy V
PG scholar, NSS College of Engineering, Palakkad
vincyvictanand@gmail.com

Dr.Asha T S
Professor, Electronics and Communication Engineering, NSS college of Engineering, Palakkad
ashapkumar@rediffmail.com

ABSTRACT

Recently, Consensus based Clock Synchronization (CCS) algorithms have gained much attention in wireless
sensor networks due to its simplicity, distributed nature and robustness. Time synchronization is important in both
wired and wireless network. In this research we propose a clock synchronization by least common multiple (CSLCM)
with an efficient cluster head selection based on energy consumption. The proposed CSLCM enables the nodes to reach
a network synchronization time by calculating the least common multiple of their Clock Time Period (CTP) and
removes clock offset and clock skew among the nodes. Simulation results show that, the improved CSLCM algorithm is
more efficient compared to the ordinary CSLCM in terms of synchronization error.

KEY WORDS :Consensus clock synchronization, clock skew, synchronization error

1. INTRODUCTION Another set of protocols are consensus based protocols


that do not use external and internal reference time.
Wireless networks are an increasingly The network synchronization time is set, based on
important medium for distributed computation. Time agreement between the nodes. In this type of protocol
synchronization is essential in sensor networks since network synchronization time could be set to either the
due to change in external environment the inbuilt clock fastest clock of the network or to the average time of
may vary. Each node has an inbuilt clock which is set the nodes in a network.
to a common clock before deployment. Sometimes In this paper, we propose the Clock Synchronization
after the deployment of nodes their clock time may using Least Common multiple (CSLCM) protocol with
change due to different climatic conditions like energy efficient clusterong to synchronize the sensor
temperature and humidity. There may be change in the node clock time period CTP. The proposed method do
crystal oscillators of the node because of aging and not have a reference clock to which the network
also due to manufacturing process. Therefore for synchronizes, so the accumulative error is nil. The
collision free data transfer and for real time data formation of clusters and the application of CSLCM,
monitoring, the sensor nodes should be well reduces the communication overhead to a great extent.
synchronized in time with their inbuilt clocks aligned In CSLCM the nodes calculates the Least common
to same time. multiple (LCM) of the CTPs, which is the network
Various clock synchronization uses an external synchronization time. The synchronization is carried at
reference clock to which all the other node two levels, Intra cluster synchronization and Inter
synchronize.In these protocols, either the hardware cluster synchronizaton
clock or virtual clock is modified to synchronize with
the network synchronization time. In this 2. RELATED WORKS.
synchronization protocol there is a chance for inherent
error each time the clock value is updated. This error Some of the clock value based clock synchronization
propagates to all the other nodes which results in protocols are discussed in this section. The
greater accumulative error. Whereas some protocols synchronization based on clock value propagation can
modify the clock recursively to achieve be classified into
synchronization. These protocols converges to network a. Progressive synchronization.
synchronization time with greater accuracy but the b. Consensus synchronization.
main problem of this protocol is greater overheads.

1
APJ Abdul Kalam Technological University, Palakkad Cluster Research Conclave-2019,
Hoisted by N S S College of Engineering, Palakkad, India on 24th May 2019

The progressive synchronization method has a nodes exchange 4 time stamps to know each other’s
reference clock value which is passed to other nodes clock skew. A consensus is reached to follow the
without any alteration. In this synchronization method fastest clock among the two nodes. But MTS
there is a reference node which initiates the convergence time increases linearly with increasing
synchronization process and the reference node’s clock number of nodes. WMTS [9]has faster convergence
value is propagated to all the other nodes. All the other rate as compared to ATSP. The MTS [9] and WMTS
nodes change their clock value according to the [9] protocols assume static topology, but the nodes
reference value. In consensus synchronization there is may not be static due to manual or automatic position
an agreement between the nodes. All the nodes agree to adjustment or due to addition or deletion of the nodes
synchronize to a particular clock value. from the network .In the presence of communication
Progressive synchronization can be further divided into delays the ATSP diverges therefore RoATS [11] was
A. Centralized progressive method. to overcome the clock discrepancies in the presence of
B. Decentralized progressive method. communication delay. Though these protocols based
on consensus have lower computational complexity
In Centralized progressive method the network there is higher communication overhead. In
topology is in the form of a tree with all the nodes CDSDBT[12], the communication overhead is reduced
having hierarchy. In Decentralized progressive method considerably. It is also a consensus based protocol,
the topology is either a chain or a mesh network and which divides the nodes into ‘synchronization
there is no hierarchy. 2LCHP [5] is a Decentralized participation’(SP) nodes and ‘synchronization
progressive method type of protocol. In this protocol, a initiation’(SI)nodes. The SI nodes synchronize with
reference node floods the network with the their average value. The SP are active only if there is a
synchronization packet. The neighbors follow this message from SI nodes. Random weighted genetic
reference clock time and synchronize with their algorithm is used to select the SI nodes based on
neighbors using 3 time stamps and 2 flags. This chromosome mapping.
protocol is robust to node failure. The communication The proposed CSLCM method is a consensus based
overhead is larger for this protocol.In AOTSP [6], only synchronization, wherein all the nodes agree to
a ‘time transformation function’ is used to map the calculate the LCM of the CTPs of the nodes for
local time of the node to the global time of the network synchronization.
reference node. Though it has low communication
overhead, the scalability is poor due to high
2. BLOCK DIAGRAM OF ENERGY
accumulative effect.
In the case of Centralized progressive method the EFFICIENT CSLCM.
reference clock parameters are propagated in a
hierarchy with the root node initiating the process. The The block diagram for improved CSLCM is shown in
network follows a tree topology. In TPSN[7] protocol, Fig. 1. There are 2 steps in the proposed CSLCM
Synchronization consists of 2 phases ‘level discovery method. The first step in CSLCM is to organize the
phase’ and ‘synchronization phase’. The TPSN randomly deployed nodes into clusters. The second
protocol is a state of art protocol wherein the hierarchy step is to synchronize the nodes. The synchronization
is set up using the level discovery packets. The level process carried among the cluster members is termed
discovery packet is initiated at the root node, the level as intra cluster synchronization and the synchronization
is incremented by the neighbors who receive this level among the cluster heads is termed as inter cluster
discovery packet and propagates down a tree. TPSN synchronization. Both the former and the latter
requires round trip synchronization messages so it is together, form the network synchronization. In the
much slower. Data aggregation tree DAT[8] is a faster improved clustering algorithm, advanced LEACH
protocol. It is a single pass protocol with tree topology. algorithm is used for the selection of cluster heads. .
In Consensus synchronization the clock value is not The improved algorithm is mainly manifested in
based on reference node but the clock value is taken selecting cluster-heads with the new cluster-heads
based upon agreement with all the nodes in the formula and avoiding the randomness of cluster-heads
network. Maximum time synchronization protocol[9] is election. After the start of the algorithm, the region
a consensus based protocol. In MTS all the nodes agree node is divided into high energy nodes and low energy
to adapt to fastest clock in the network. Average time nodes. Then considering the residual energy and the
synchronization protocol[10] is also a consensus based distance of the nodes, the new cluster-heads election
protocol. In case of ATSP , the nodes agrees to adapt formula is used to elect the cluster heads. We propose,
the average time of the network. If x i(t ) represents the the synchronization of the nodes, which is a two level
local time of a node Vi and xj(t) is the local time of a process. The first level of synchronization is the
node Vj then both the clocks agree to update their intracluster synchronization. It is among the cluster
clocks to (xi(t) +xj(t))/ 2 . For two nodes to update their members and their respective cluster head. The second
clock for a single time, 3 packets are exchanged level of synchronization is the intercluster
between them. Thus in case of ATSP there is a high synchronization. It is among the cluster heads.
communication overhead. In MTS, the neighboring

2
APJ Abdul Kalam Technological University, Palakkad Cluster Research Conclave-2019,
Hoisted by N S S College of Engineering, Palakkad, India on 24th May 2019

…….(4)
In (3) and (4), where Pbnrm = b ∗ Pnrm is the weight of
Pnrm, Pbadv = b ∗ Padv is the weight of Padv, and b
represents a weighted proportional parameter,
depending on the size of the networks to assign b
different values. Its range is (0, 1), Ecurrent, Estart, dcurrent,
and dmax, respectively, represent the residual energy of
nodes and the initial energy of nodes and the distance
of the node from the sink node and the longest distance
between the node from the sink node. u, v represents
the proportion coefficient, its range is 0 < u < 1 and 
0 < v < 1 .Equations (3) and (4) improvements are
considering the energy consumption proportion of
small and big proportion of the distance of the node.
Figure 1.Block diagram of Improved CSLCM
2.2 Intracluster synchroniation.
2.1 Improved clustering algorithm based on energy
consumption. Once the nodes are formed into clusters and a cluster
head is elected, the synchronization process starts.
The improved algorithm is mainly manifested in Intracluster synchronization is the synchronization
selecting cluster-heads with the new cluster-heads among the cluster members and its cluster head. Before
formula and avoiding the randomness of cluster-heads applying CSLCM, every node in a cluster transmits its
election. After the start of the algorithm, the region CTP to its cluster head. The cluster head collects all the
node is divided into high energy nodes and low energy CTPs from its members and then broadcasts it within
nodes. Then considering the residual energy and the the cluster. Each cluster member calculates the Least
distance of the nodes, the new cluster-heads election Common Multiple (LCM) of these CTP. The value is
formula is used to divide the whole networks into same for all the cluster members and the cluster head
clusters. After that, it will wait for the cluster nodes to belonging to a cluster. The LCM value is the
complete data communication. . The nodes are divided intracluster synchronization time S t. The cluster
into ordinary nodes and advanced nodes. α represents members need not change their clocks but they should
the part that the energy is higher than the ordinary know only the multiple value which is referred as
node. m represents the percentage of advanced nodes. intracluster synchronization factor (IntraSF) γi with
Padv represents the probability that the advanced node is respect to their own CTP and S t. All the cluster
elected to the cluster-heads. Pnrm represents the members have to start their clocks at the same time to
probability that the common node is elected to the complete St at same instant of time. So a process start
cluster-heads[2] signal from the cluster head initiates the start of the
Pnrm= p/(1+ α*m) ......(1) synchronization process. By the end of St, the cluster
members synchronized to a common time. This also
Padv = p*(1+α)/ (1+α*m)……(2) eliminates the clock offset among the cluster members
as all the nodes start from a common point. At the end
Taking into account the factors of energy and distance, of the intracluster synchronization time St, all the
we make a change to LEACH threshold values and nodes arrive at the same instant of time by their own
give a new formula T(n). The purpose is to avoid the frequency as the step size to reach St assuming the
cluster-heads node death due to too low energy, at the propagation delay is constant among the cluster
same time, we use (1) and (2) to improve the members. The communication is only between the
distribution of nodes. The following T(n) formula is as cluster head and its cluster member when
follows: synchronization takes place at the cluster level. There
For ordinary nodes: is no communication between the cluster members
during intracluster synchronizaton. Therefore the
communication overhead is greatly reduced. In Fig. 4
there are 4 nodes V1, V2,V3 and V4 with their clock
value represented by x1 (t),x2(t),x3(t) and x4(t) . The
….(3) IntraSF for the nodes are γ1, γ2 , γ3 and γ4
For advanced nodes: respectively.IntraSF indicates the step size of the node
to reach St . They are integers which are multiplied
with the CTP to get the S t value. Since it is a whole

3
APJ Abdul Kalam Technological University, Palakkad Cluster Research Conclave-2019,
Hoisted by N S S College of Engineering, Palakkad, India on 24th May 2019

multiple of the clock time, the clock skew will be synchronization error, denoted by εc. At the second
compensated perfectly. level, the average network synchronization error ε n is
analyzed considering the intercluster synchronization
……………………(5)
and intracluster synchronization.
Consider a cluster size of M nodes, in each cluster,
which have synchronized to S t . The intra cluster
2.3 Intercluster synchroniation. synchronization error is given by
Each cluster is synchronized with a different
Intracluster synchronization time St. Therefore each
cluster head is also synchronized with different S t. In ……………………………..(11)
other words, the Intracluster synchronization time of Where is the initial clock value .
every cluster is represented by its cluster head. We αi is the clock skew.
assume that each cluster head can reach the base γ1 is the intra synchronization factor.
station. b is the scaling constant of γ.
Let the cluster heads be labeled as CHj, j = 1, 2, … , K, Consider K clusters in a network with the size of each
where K are the number of cluster heads in the cluster being M. Each cluster is synchronized to a
network. Each of the cluster head CH1, CH2 ……..CHK value of St at the first level and at the second level the
is synchronized to S t1, St2....... Stk respectively and clusters get synchronized to the C t. Finally the
sends its Stj to the base station. The base station Intercluster synchronization becomes the network
collects all the values from individual cluster heads and synchronization time for all the nodes in the network.
broadcasts the collective information to the cluster So the network is synchronized to Ct .
heads. The cluster heads apply the CSLCM method,
which is the LCM of S t1, St2…… Stk to obtain a
common Intercluster synchronization time C t. The base The average network synchronization error is given by
station signals the start of Intercluster synchronization
process.
The Intercluster synchronization is the second tier of
synchronization. At this level, as the communication is ……………………(12)
only between base station and cluster heads, the cluster Where a and b are the scaling constants of and
heads do not communicate with each other. This will
further reduce the communication overhead at this respectively.
level is the inter synchronization factor.
μj be the Inter SF which indicates the step size for the
cluster head to reach Cj. 4. SIMULATION RESULT AND
……………………………(6) ANALYSIS.

2.4 Network synchroniation. The improved CSLCM was simulated using MATLAB
2018a. We have considered the network of 100 nodes.
After the first level of synchronization, i.e. Intracluster εc and εn are used to compare the performance of
synchronization, each cluster head CHj had improved CSLCM with ordinary CSLCM at the cluster
synchronized to Stj. After the second level of level and at the network level respectively. For the
synchronization, i.e. Intercluster synchronization simulation of CSLCM, we have assumed constant
among the cluster heads, each cluster head has propagation delay between the nodes.To see the
Intercluster synchronization time C t. Each cluster head variations in the behavior of the two protocols namely
CHj retains the both the values, Ct and Stj . Now the CSLCM and improved CSLCM to different input
network synchronization time, for the network is Ct values, we have generated random values from . The
.This must be passed on from the cluster head to its random values generated are taken as the CTPs of
respective cluster members, so that the cluster nodes with the unit of μs. The CSLCM and improved
members are also synchronized to Ct. CSLCM are analyzed over 2 different ranges [0.3, 0.6],
and [0.6, 0.9]. The standard deviation σ is varied
3. ERROR ANALYSIS. between 0.1 and 10 in every range which serves as
The synchronization error ε is analyzed at two levels. inputs to CSLCM.
At the first level we calculate the average cluster

4
APJ Abdul Kalam Technological University, Palakkad Cluster Research Conclave-2019,
Hoisted by N S S College of Engineering, Palakkad, India on 24th May 2019

In Fig 2and Fig 3 we have plotted the average cluster


synchronization error εc and in Fig.4 and Fig5 we have
plotted the average network synchronization error ε n.
As σ increases, εc and εn also increase for both CSLCM
and improved CSLCM for all the ranges. The larger σ
value indicates, that the input CTPs deviate from each
other by large amount. There is an increase in εc in
CSLCM as the LCM value also increases for higher σ.
There is an increase in εc and εn for both improved
CSLCM and CSLCM as the range increases and it is
the highest in the range [0.6, 0.9]. From this, we can
infer that, both the methods work well, when the input
values are closely spaced and belong to smaller input
range.Fig 6 shows the number of alive nodes.

Figure 4.Average network synchronization error


[0.3-0.6].

Figure 2.Average cluster synchronization error

Figure5.Average network synchronization


error[0.6-0.9].

Figure 6.No of alive nodes.


Figure 3.Average cluster synchronization error.

5
3. CONCLUSIONS Proceedings of the 1st international
conference on embedded networked sensor
The Improved CSLCM for clock synchronization is a systems-ACM; 2003.
consensus based method, wherein the nodes agree to
synchronize to the LCM of CTPs of the nodes. The 8. Huang Hai-ping, Wang Ru-chuan, Li 3 Liu,
synchronization was carried at two levels. At the first Sun Li-juan, Li Wen-feng. Time
level, the nodes within a cluster synchronize and in the synchronization algorithm of wireless sensor
second level the cluster heads synchronize. Having two networks based on data aggregation tree. Sci
level of synchronization reduces the communication Direct 2010.
and computation overhead. The proposed method is
simple to implement. The nodes synchronize to a 9. He Jianping, Chang Peng, Shi Ling, Chan
common time without changing their CTP. They use Jiming, Sun Youxian. Time synchronization
their own CTP to calculate γ and μ to reach network in wireless sensor networks: a max-value
synchronization. The convergence time for the entire based consensus approach. IEEE Trans
network is Ct. The clock offset and clock skew among Autom Control 2014.
the nodes is removed simultaneously. Since an Energy
efficient clustering is used nodes life time is increased 10. Wu Jianshe, Jiao Licheng, Ding Ranran.
and cluster head is selected efficiently.Since nodes Average time synchronization in wireless
forms balance clusters and number of dead nodes is sensor networks by pairwise messages.
less the synchronization error is reduced considerably. Compution Communication 2012.

11. Garone Emanuele, Gasparri Andrea,


Lamonaca Francesco. Clock synchronization
REFERENCES protocol for wireless sensor networks with
bounded communication delays. Automatica
1. Nikhath Tabassum, Geetha D. Devanagavi, 2015.
Rajashekhar C. Biradar. Clock
synchronization in wireless sensor networks 12. Panigrahi Niranjan, Khilar Pabitra Mohan. An
using least common multiple. Int. J. Electron. evolutionary based topological optimization
Commun. (AEÜ) 2017. strategy for consensus based clock
2. M. Ben Salah, A. Boulouz. Energy Efficient synchronization protocols in wireless sensor
Clustering Based on LEACH.IEEE Trans network.SwarmEvol Comput 2015.
Wireless Communication 2017.
3. LI XingGuo WANG JunFeng, Bai Lin. 13. Panigrahi Niranjan, Khilar Pabitra Mohan.
LEACH Protocol and its Improved Algorithm Multi-hop consensus time synchronization
in Wireless Sensor Network. International algorithm for sparse wireless sensor network:
Conference on Cyber-Enabled Distributed a distributed constraint-based dynamic
Computing and Knowledge Discovery.IEEE programming approach. Ad-Hoc Network
2016. 2017.
4. Ma Tao, Xu Zhanqi, Hempel Michael, Peng
Dongming, Sharif Hamid. Performance 14. Yildirim Kasim Sinan, Carli Ruggero,
analysis of a novel low complexity high Schenato Luca. Adaptive control based clock
precision timing synchronization method for synchronization in wireless sensor networks.
wireless sensor networks. IEEE Trans In: European control conference (ECC); 2015.
Wireless Communication2014.

5. Huang Ge, Zomaya Albert Y, Delicato Flavia


C, Pires Paulo F. Long term and large scale
time synchronization in wireless sensor
networks. Computer Communication 2014.

6. Huang Ge, Zomaya Albert Y, Delicato Flavia


C, Pires Paulo F. An accurate on-demand time
synchronization protocol for wireless sensor
networks. Parallel Distributed Computation
2012.

7. Ganeriwal S, Kumar R, Srivastava MB.


Timing-sync protocol for sensor networks. In:

Potrebbero piacerti anche