Implementation of LEACH, Hetero-LEACH, SEP and EEHC Protocols using MATLAB in Wireless Sensor Network

DOI : 10.17577/IJERTV5IS040639

Download Full-Text PDF Cite this Publication

Text Only Version

Implementation of LEACH, Hetero-LEACH, SEP and EEHC Protocols using MATLAB in Wireless Sensor Network

Apneet Kaur1,

1Reseach Scholar,

Bahra University, Wakhnaghat, Shimla, India

Dr. Sonia Vatta2

2Professor & Head, CSE Department, Bahra University, Wakhnaghat, Shimla, India

Abstract: In this paper we have proposed different models and implementation of different energy efficiency protocols in Wireless Sensor Networks (WSN). We have analyzed as well as optimized the performance of the heterogenous LEACH protocol for different parameters. In this paper, the proposed models have been applied on the n-node network and the performance of the same has been calculated and shown with the help of results. Analysis of heterogenous LEACH simulation network is done. Performance of a clustering protocol is also determined by duration of stable and unstable period. Network Lifetime of Heterogeneous LEACH Protocol for _ft1=1is much stable. Result prove that energy consumption remains almost same until the death of first node and after that it starts decreasing. In SEP cluster head of advance node is frequent become the cluster head than the normal node.Instablity period of SEP has reduced from that in heterogeneous LEACH and there is also improvement in stability period. With decrease in number of nodes, packets transmission reduces. Throughput is improved as; consumption per round in SEP. energy consumption has reduced in case of SEP than that in LEACH and Heterogeneous LEACH.

Keywords: LEACH, SEP, WSN

  1. INTRODUCTION

    A heterogeneous wireless sensor network consists of a large number of normal nodes and some heterogeneous nodes. The main task of normal nodes is sensing and issuing data report. However, heterogeneous nodes have advanced energy capacity or communication capability. In comparison with normal nodes, these nodes may be configured with more memory and more powerful microprocessor/microcontroller. There are three types of resource heterogeneity [1] in WSNs: computational, link and energy heterogeneity. The main impact of the heterogeneous WSNs [18] is increasing network lifetime, reliability in data transmission and reducing latency. WSNs suffer from several limitations related to network resources, among which energy is the most important resource because it determines the lifetime of the sensor network. Sensor nodes are usually powered through batteries, which must be recharge or replaced when depleted. But sensor nodes are usually deployed in hostile environments where it is impossible to access them and replace their batteries. For these non-rechargeable batteries, a sensor node should be able to operate until its mission time has passed or the battery can be replaced. The length of the

    mission time depends on the application type, for example, sensor in a battlefield may only be needed for few hours or few days while glacial movements monitoring may need sensors that can that can operate for several years. As a consequence, the most important design challenge for a wireless sensor network is energy efficiency. This requirement pervades every aspect of sensor node and network design. For instance, the choices made at physical layer may affect the energy consumption of the entire device and the design of higher level protocols. The MAC layer is accountable for providing sensor nodes access to the wireless channel. Some MAC approaches are contention based, that is, nodes can access the medium at any time, leading to collision among several nodes. Drawbacks of such approaches include energy overheads and delays brought by the collisions and recovery mechanisms and also sensor nodes may have to listen to the medium all the times to ensure that no transmission is missed. To overcome this problem contention-free MAC protocols can be used in which access to the medium is regulated, eliminating collisions and allowing the sensor nodes to shut down their radios when no communications are expected.

    The main role of cluster head is to provide the communication between different sensor nodes and the base station efficiently. Another way is the prolong lifetime of network, to insert a percentage of heterogeneous nodes. Heterogeneous sensor network consists of different ability sensor nodes, like different computing power and sensing range. They are very much useful in real deployments because they are more close to real life situations.

    there are many existing techniques of clustering exist such as LEACH which is consider to be homogeneous sensor networks where all the sensor nodes are designed with the same battery energy. The energy saving schemes when applied to heterogeneous wireless sensor network do not perform efficiently. Thus, Energy clustering protocols must be designed for the heterogeneous wireless sensor networks. According to the way that data is collected, WSNs can be classified into two types: homogeneous and heterogeneous sensor networks.

    A homogeneous network consists of sink and sensor nodes equipped with equal capabilities, like computational energy and storage capacity. Data gathering and

    dissemination in homogeneous networks is done using flat and hierarchical [19] topologies

    Figure 1.1: Hierarchical Network Architecture

    A heterogeneous sensor network consists of sink which may be fixed or mobile, normal sensor nodes and advanced sensor nodes. Advanced sensor nodes are the nodes with advances embedded processing and communication capabilities as compared to normal nodes. Figure 1.2 shows the heterogeneous sensor network architecture. Since data fusion is done at cluster heads, so energy consumption at cluster heads will be more than that on cluster members. So advance nodes with higher energy can be elected as cluster heads to prolong network lifetime.

    Figure 1.2: Heterogeneous Network Architecture

  2. MOTIVATION OF RESEARCH WORK

    In the past years, many algorithms have been proposed for various protocols in the wireless sensor networks. According to the survey,A heterogeneous wireless sensor network consists of a large number of normal nodes and some

    heterogeneous nodes. The main task of normal nodes is sensing and issuing data report. A wide range of applications. network for Heterogeneous LEACH protocol. Loscri et.al [20] had proposed another LEACH based protocol which used two level hierarchies. In this, instead of one cluster head, two cluster heads were elected, primary and secondary. Cluster head collects data from other cluster member as in LEACH, but instead of transferring data directly to the base station, it used one of the cluster heads lying between the cluster head and the base station as a relay station. Data was sent from each sensor node to its secondary cluster head. Then aggregated data from secondary cluster head were sent to its primary cluster head. Transmit distance for nodes had been reduced, so less energy was consumed and data aggregation could be done both on primary and secondary levels to further improve the energy efficiency. Qing et.al [2] had described another protocol for heterogeneous wireless sensor networks. It is a distributed energy efficient clustering protocol based on clustering. Cluster heads were elected on the basis of probability based on ratio between residual energy of each node and average energy of the network. The epochs of being CH for each node was different depending upon its initial and residual energy. The nodes with high initial energy had more chances to become CHs than the nodes with less initial energy. DEEC had prolonged network lifetime as well as the stability period.

  3. ENERGY EFFICIENT CLUSTERINGPROTOCOLS

      1. EEHC

        Energy Efficient Hierarchical Clustering (EEHC) [3] is a randomized, distributed clustering algorithm that prolongs the network lifetime. In this algorithm sensor nodes are organized into clusters with a hierarchy of cluster heads as shown in figure 3.10. the CHs collects the information from the nodes within their clusters and send the aggregated data to the BS through the hierarchy. This algorithm is based on two stage clustering: single-level and multi-level clustering.

        At the single-level clustering stage, each sensor node becomes a CH on the basis of a pre-defined probability p and announces itself as the volunteer CH to its neighbors within k- hops distance. Any node which receives this announcement becomes member of the closest cluster. If a node does not hear any announcement within a preset time interval t, then it will become a forced CH. This time interval t is calculated on the basis of the duration for a packet to reach a node that is k-hops away. The energy consumed for sending the information to the sink depends on the parameters p and k.

        At the second stage, same process is applied from bottom-up to multilevel clustering. Assume there are h levels in a clustering hierarchy, among which level-1 being the lowest one and level-h being the highest one. Then level-1 aggregates the data from its cluster members and send it to level-2 CHs, and so on. Finally the level-h CHs send the aggregated data to the base station. The cost of transmitting the information to the base station is the power consumed by sensor nodes to send data to level-1, then energy used by level-1 CHs to the base station via h hop CHs at different hierarchial levels.

        The EEHC algorithm can be run periodically for load balancing or triggered as the energy level of the CH falls below a certain threshold level.

      2. DEEC Protocol

    Distributed Energy Efficient Clustering (DEEC) [2] protocol is an energy efficient clustering protocol for heterogeneous wireless sensor networks. The idea of DEEC protocol is to elect the cluster heads using probability based on the ratio of the residual energy of each node to the average energy of the network.

    If ni is the number of rounds for a node and si to be a cluster-head, to guarantee an average of cluster heads as in homogeneous network like LEACH, for each node si must become cluster-head every rounds. But in a heterogeneous network the epoch and the probability of the nodes to become cluster head must be different for high energy nodes. Thus the probability pi is chosen as:

    (3.6)

    where is the residual energy of node i at round r and E(r) is the estimated average energy of the network at round r given by:

    ..(3.7)

    where ; the total round of the network life-time,

    n is the number of nodes in the network, is the total

    energy at beginning of the network and is the energy consumed in the network each round.

  4. SIMULATION MODELS

    We have implemented the various models and compared their performance in wireless sensor networks which are being used for the proposed work

    4.1. LEACH

    LEACH is Low Energy Adaptive Clustering Hierarchy and it is self-organizing clustering protocol that uses randomized select the cluster heads to distribute the energy load among the sensor nodes. The main features of LEACH are:

    1. Localized coordination and control for data transfer,

    2. Randomized, self-configuring and adaptive formation of clusters,

    3. Low energy media access, and

    4. Data processing, such as data aggregation to reduce global communication.

    The operation of LEACH is divided into two rounds, where each round begins with setup phase in which cluster

    formation takes place, followed by steady state phase in which data transfer to sink takes place. In order to reduce overhead, steady state phase is kept longer than the setup phase.

        1. Set-up Phase

          For cluster formation, each node initially decides whether to become a CH or not for the current round. This decision is made by the node by choosing a randomly a number between

          0 and 1. If the number is less than a threshold, the node becomes a CH for the current round. The threshold equation for CH formation is given by

          (4.1)

          where popt is the desired percentage of cluster heads, r is the current round and G is the set of nodes which have not become cluster heads in last (1/ popt) rounds. Using this threshold, each node will be cluster head at some point within rounds. This (1/ popt) number of rounds during which each node has become cluster head once is called epoch.

          Each node which selects itself as a CH broadcasts an advertisement message to all non- CH nodes. The receiver of non-CH should be kept on to hear the advertisement message from all the CH nodes. The non-CH on the basis of received signal strength decides which CH to join. After each node has decided which cluster to join, it should confirm the CH for its status as cluster member. Each node sends a join-request message to their respective CHs. At this time all the CHs must keep their receivers on.

          Based on the number of cluster member in a cluster, CH node sets up a TDMA schedule to ensure that there are no collisions during data transmission and this also allows non-CH nodes, to turn off the radio at all times except during their transmit time, thus minimizing the energy consumption by the individual sensors. This schedule made by CH is broadcast back to all the members in the cluster. A flow chart of cluster formation algorithm is shown in figure 4.2

          Figure 4.2: Flow Chart of the Cluster formation Algorithm for LEACH [3]

        2. Steady State Phase

          Once the cluster formation takes place and TDMA schedule is fixed, data transfer can take place. Steady state operation is broken into frames. Nodes send their data to the CH at mot once per frame during their allocated time slot. The time of a frame of data transfer depends upon the number of cluster members in the cluster. To reduce energy consumption, each node uses power control to set the amount of transmit power based on RSS of the CH advertisement. Further, the radio of each node is turned off until its allocated transmission time.

          The CH must keep its receiver on to receive all the data from the cluster members. When all the data has been received, the CH node process the data to compress the data into a single signal and this compressed signal is then sent to the BS. Flow chart of steady state operation is shown in figure 4.2. Figure

      1. shows the timeline for a single round of LEACH.

    Figure 4.3: Flow Chart of the Steady State Operation of the LEACH [1]

    Figure 4.4: Timeline for a Single Round of LEACH [1]

    4.2.3 Optimal Number of Clusters

    To reduce inter-cluster interference, each cluster communicates using direct sequence spread spectrum (DS- SS). Each cluster uses a unique spreading code sequence and all the nodes in that cluster communicate using that code.

    Clustering is said to be optimal in the sense that energy consumption is well distributed among all the sensor nodes and energy consumption should be minimum. Assume there are N nodes in an M x M region. If there are k clusters, then there will be on an average N/k nodes per cluster with one CH and (N/k)-1 non-CH nodes. Energy dissipated at cluster head node during a frame is given by the formula:

    ..(4.2)

    where EDA is the data aggregation energy and dto BS is the distance from cluster head to base station. If distance between CH and the BS is larger than crossover distance, then energy dissipation follows multipath model (i.e. d4 power loss). The energy dissipated at non- cluster head is equal to:

    ..(4.3)

    where dto CH is the distance from non-cluster head to cluster head. Assuming that nodes are uniformly distributed, it can be shown that:

    ..(4.4)

    Therefore Enon-ch becomes:

    ..(.5)

    So energy dissipated in a cluster during a frame is:

    ..(4.6)

    and the total energy of the frame is:

    ..(4.7)

    Substituting value of from equation (4.2, (4.5), (4.6) in equation (4.7) and by setting the derivative of Etotal with respect to k equal to zero, optimal number of clusters can be obtained. Therefore, optimum number of clusters, k is given by:

    ..(4.8)

  5. RESULTS AND DISCUSSION

5.1. Heterogeneous LEACH

Figure 5.2(a) shows the test network for Heterogeneous LEACH protocol. There are two types of nodes used with different energy. Normal nodes are represented by and advanced nodes are represented by + and base station is represented by x. Cluster formation is shown in figure 5.2(b) in which cluster heads are represented by *.

than the stability period, which does not represent an efficient clustering. This large unstable period is due to unstable cluster head formation when population of nodes decreases.

Number of Alive Nodes versus Number of Rounds

100

90

80

Number of Alive Nodes

Number of Alive Nodes

70

60

50

40

30

20

10

0

(a)

0 500 1000 1500 2000 2500 3000 3500 4000 4500

Number of Rounds

Figure 5.2: Network Lifetime of Heterogeneous LEACH Protocol for

5.5.2 Throughput

Throughput for Heterogeneous LEACH protocol is again represented in term of packets sent from nodes to cluster head and then from cluster head to base station. Throughput of Heterogeneous LEACH is shown in figure 5.3.

Packets to Base Station versus Number of Rounds

25

Packets to Base Station

Packets to Base Station

20

15

(b) 10

Figure 5.1: Heterogeneous-LEACH Simulation Network (a) Test Network Model (b) Cluster Formation

5.5.1 Network Lifetime

Network lifetime is determined by the number of nodes alive per round as shown in figure 5.2. Lifetime for both types of nodes separately is also shown in figure 5.2. Performance of a clustering protocol is also determined by duration of stable and unstable period. Analysis of network lifetime shows the round number for the death of first normal, last normal, first advanced and last advanced node.

Round for first node dead

Round for first 10

nodes dead

Round for half

of the nodes alive

Round for all nodes dead

Stability Period

Instability Period

1046

1122

1234

4011

1046

4011-

1046=2965

Round for first node dead

Round for first 10

nodes dead

Round for half

of the nodes alive

Round for all nodes dead

Stability Period

Instability Period

1046

1122

1234

4011

1046

4011-

1046=2965

Table 5.1: Network Lifetime Analysis of Heterogeneous LEACH for

5

0

0 500 1000 1500 2000 2500 3000 3500 4000 4500

Number of Rounds

(a)

Packets to Cluster Head versus Number of Rounds

100

90

80

Packets to Cluster Head

Packets to Cluster Head

70

60

50

40

30

20

10

In this protocol, since there are 2 types of nodes used but the threshold equation for cluster head election is kept same for both types of nodes, due to which instability in the cluster head formation takes place. As it can be seen from the table

5.1.1 and table 5.1.2, that instability period is much longer

0

0 500 1000 1500 2000 2500 3000 3500 4000 4500

Number of Rounds

(b)

Figure 5.3: Throughput of Heterogeneous LEACH Protocol: (a) Packets to Base Station versus Number of Rounds (b) Packets to Cluster Head versus Number of Rounds

5.5.3 Energy Consumption

It can be seen from figure 5.4, energy consumption remains almost same until the death of first node and after that it starts decreasing.

Energy Consumption versus Number of Rounds

5.2.1 Network Lifetime

Network lifetime is determined by the number of nodes alive per round as shown in figure 5.2. As in heterogeneous LEACH, in this protocol also there are 2 types of nodes used but the threshold equation for cluster head election for both

0.07

0.06

Energy Consumption

Energy Consumption

0.05

0.04

0.03

0.02

0.01

0

0 500 1000 1500 2000 2500 3000 3500 4000 4500

Number of Rounds

types of nodes is kept different so that advance nodes could become cluster head more frequently than normal nodes. It can be seen from table 5.2 that instablity period of SEP has reduced from that in heterogeneous LEACH and there is also improvement in stability period.

Round for first node dead

Round for first

10 node dead

Round for half of the nodes alive

Round for all nodes dead

Stability Period

Instability Period

1152

1220

1353

3226

1152

3226-

rounds

1152 =

2074

rounds

Round for first node dead

Round for first

10 node dead

Round for half of the nodes alive

Round for all nodes dead

Stability Period

Instability Period

1152

1220

1353

3226

1152

3226-

rounds

1152 =

2074

rounds

Table 5.2: Network Lifetime analysis of SEP

    1. SEP

      Figure 5.4: Energy Consumption versus Number of Rounds of Heterogeneous LEACH Protocol

      Figure 5.3(a) shows the test network of Stable Election Protocol. There are two types of nodes used with different energy. Normal nodes are represented by and advanced nodes are represented by + and base station is represented by x. Cluster formation is shown in figure 5.3(b) in which cluster heads are represented by *.

      100

      90

      80

      Number of Alive Nodes

      Number of Alive Nodes

      70

      60

      50

      40

      30

      20

      10

      0

      Number of Alive Nodes versus Number of Rounds

      0 500 1000 1500 2000 2500 3000 3500

      Number of Rounds

      Figure 5.6: Network Lifetime of SEP

          1. Throughput

            Throughput in terms of packets transmitted from nodes to

            1. cluster heads and cluster heads to base station is shown in figure 5.7. With decrease in number of nodes, packets transmission reduces.

              Packets to Base Station versus Number of Rounds

              25

              Packets to Base Station

              Packets to Base Station

              20

              15

              10

              5

Figure 5.5: SEP Simulation Network (a) Test Network Model (b) Cluster Formation

0

0 500 1000 1500 2000 2500 3000 3500

Number of Rounds

(a)

100

90

80

Packets to Cluster Head

Packets to Cluster Head

70

60

50

40

30

20

10

0

Packets to Cluster Head versus Number of Rounds

0 500 1000 1500 2000 2500 3000 3500

Number of Rounds

(b)

Instability period of SEP has reduced from that inheterogeneous LEACH and there is also there is improvement in stability period. With decrease in number of nodes, packets transmission reduces. Throughput is improved as; consumption per round in SEP. energy consumption has reduced in case of SEP than that in LEACH and Heterogeneous LEACH.

REFERENCES

  1. MeenaKowshalya, A. and Sukanya, A., 2011. Clustering Algorithms for Heterogeneous Wireless Sensor Networks-A brief survey, International Journal of Ad-hoc, Sensor and Ubiquitous Computing, Vol. 2, No. 3, pp. 57-59.27

  2. Qing, Li., Zhu, Q. and Wang, M., 2006. Design of a distributed energy-efficient clustering algorithm for heterogeneous wireless sensor networks, Comuputer Communications, vol. 29, pp. 2230- 2237.

    Figure 5.7: Throughput of SEP Protocol: (a) Packets to Base Station versus Number of Rounds (b)Packets to Cluster Head versus Number of Rounds

        1. Energy Consumption

    Figure 5.8 shows graph for energy consumption per round in SEP. energy consumption has reduced in case of SEP than that in LEACH and Heterogeneous LEACH.

    Energy Consumption versus Number of Rounds

  3. S Said, B. A., and Abdellah, E., 2010. Improved and Balanced LEACH for heterogeneous wireless sensor networks, (IJCSE) International Journal on Computer Science and Engineering, Vol. 2, pp. 2633-2640.

  4. Elbhiri, B., Saadane, R. and Aboutajdine, D., 2009. Stochastic Distributed Energy-E cient Clustering (SDEEC) for heterogeneous wireless sensor networks, ICGST-CNIR Journal, Vol. 9, No. 2, pp. 11-17.

  5. ZhouHaibo, Yuanming, Wu. and XieGuangzhong,. 2009. EDFM: A Stable Election Protocol Based on Energy Dissipation Forecast

Method for Clustered Heterogeneous Wireless Sensor Networks,

0.05

0.045

0.04

Energy Consumption

Energy Consumption

0.035

0.03

0.025

0.02

0.015

0.01

0.005

0

0 500 1000 1500 2000 2500 3000 3500

Number of Rounds

Proceedings of 5th International Conference on Wireless Communication, Networking and Mobile Computing, pp. 1-4.

  1. Yassein, M. B., Al-zou'bi, Khamayseh, A. Y., and Mardini, W., 2009. Improvement on LEACH protocol of Wireless Sensor Network, International Journal of Digital Content Technology and its Applications, vol.3, pp. 132-136.

  2. Kumar, D., Aseri, T. C. and Patel, R. B., 2009. EEHC: Energy Efficient Heterogeneous Clustered Scheme for Wireless Sensor Networks, Computer Communications, Vol. 32, No.4, pp. 662-667.

  3. F. Akyildiz, W. Su, Y. Sankarasubramaniam, and E. Cayirci, A survey on sensor networks, In proceedings of IEEE Communications Magazine, 40(8):102114, August 2002

  4. L. B. Ruiz , J. M. Nogueira , and A. A. F. Loureira , Sensor network management , SMART DUST: Sensor Network Applications, Architecture, and Design (edited) , CRC Press , Boca Raton, FL , 2006

  5. Abbasi, A. A., and Younis, M., 2007. A survey on clustering algorithms for wireless sensor networks, Computer

    Figure 5.8: Energy Consumption versus Number of Rounds of SEP

    1. CONCLUSION

      In this paper we have proposed different models and implementation of different energy efficiency protocols in Wireless Sensor Networks. We have analyzed that the heterogenous LEACH protocol and optimized the performance of the protocol for different parameters. In this paper the proposed models have been applied on the n-node network and the performance of the same has been calculated and shown with the help of results. Analysis of heterogenous LEACH simulation network is done. Performance is also determined by duration of stable and its unstable period. Network Lifetime of Heterogeneous LEACH Protocol for

      _ft1=1is much stable.It shows that energy consumption remains almost same until the death of first node and after that it starts decreasing. In SEP cluster head of advance node is frequent become the cluster head than any other normal node.

      Communications, Vol. 30, pp. 2826-2841.

  6. Li, X., Huang, D. and Yang, J., 2007. Energy Efficient Routing Protocol Based on Residual Energy and Energy Consumption Rate for Heterogeneous Wireless Sensor Networks, In Proceedings of 26th Chinese Control Conference, 2vol. 5, pp. 587-590.

  7. Li, X., Huang, D. and Sun, Z., 2007. A Routing Protocol for Balancing Energy Consumption in Heterogeneous Wireless Sensor Networks, In proceedings of 3rd International Conference on Mobile ad-hoc and sensor networks, pp. 79-88.

  8. Akyildiz, I. F., Melodia, T., and Chowdhury, K. R., 2007. A survey on wireless multimedia sensor networks, Computer Networks Elsevier, vol. 51, pp. 921960.

  9. Qing, Li., Zhu, Q. and Wang, M., 2006. Design of a distributed energy-efficient clustering algorithm for heterogeneous wireless sensor networks, Comuputer Communications, vol. 29, pp. 2230- 2237.

  10. He, T., Krishnamurthy, S., Stankovic, J. A., Abdelzaher, T., Luo, L., Stoleru, R., Yan, T., Gu, L., Zhou, G., Hui, J. and Krogh, B., 2006. VigilNet: an integrated sensor network system for energy-efficient surveillance ACM Transactions on Sensor Networks, pp. 138.

  11. Akyildiz, I. F., Stuntebeck and E. P., 2006. Wireless underground sensor networks: research challenges, Ad-Hoc Networks, vol. 4, pp. 669-686.

  12. Werner-Allen, G., Lorincz, K., Welsh, M., Marcillo, O., Johnson, J., Ruiz, M. and Lees, J., 2006. Deploying a wireless sensor network on an active volcano, IEEE Internet Computing, vol.10, pp. 1825.

  13. Loscri, V., Morabito, G. and Marano, S., 2005. A Two-Levels Hierarchy for Low-Energy Adaptive Clustering Hierarchy, In Proceedings of the 62nd Vehicular Technology Conference, vol. 3, pp.1809-1813.

  14. Zheng, J., and Jamalipour, A., 2009. Wireless Sensor Networks: A Networking Prespective, A John Wiley and Sons Publication, pp. 2- 3.

  15. Loscri, V., Morabito, G. and Marano, S., 2005. A Two-Levels Hierarchy for Low-Energy Adaptive Clustering Hierarchy, In Proceedings of the 62nd Vehicular Technology Conference, vol. 3, pp.1809-1813.

Leave a Reply