#### Abstract

The wireless sensor network consists of small limited energy sensors which are connected to one or more sinks. The maximum energy consumption takes place in communicating the data from the nodes to the sink. Multiple sink WSN has an edge over the single sink WSN where very less energy is utilized in sending the data to the sink, as the number of hops is reduced. If the energy consumed by a node is balanced between the other nodes, the lifetime of the network is considerably increased. The network lifetime optimization is achieved by restructuring the network by modifying the neighbor nodes of a sink. Only those nodes are connected to a sink which makes the total energy of the sink less than the threshold. This energy balancing through network restructuring optimizes the network lifetime. This paper depicts this fact through simulations done in MATLAB.

#### 1. Introduction

A wireless sensor network (WSN) consists of small low energy sensing nodes capable of sensing a phenomenon and sending the data to the sink. The basic aim while structuring a WSN is to minimize the energy consumption and maximize the network lifetime. In a single sink WSN, the nodes need to send the data through multiple hops. In a large WSN, it becomes quite inefficient in terms of power consumption while gathering all information in a single sink [1]. Maximum energy consumption takes place in communicating the data from the nodes to the sink [2, 3]. To minimize the energy consumption while sending the data to the sink, multiple sinks are used. As there are multiple sinks, the distance from the node to the sink reduces; thus, there is no need of multiple hops. Multiple sinks reduce the distance the sensed data needs to travel and hence correspondingly reduce the energy consumption considerably [4]. Another disadvantage of a single sink WSN is that of energy imbalance between the nodes close to the sink and the ones which are far off [5]. The network is restructured by modifying the number of nodes connected to a sink. The current research work proposes an algorithm for network restructuring in a multiple sink WSN so as to reduce the energy consumption and increase the network lifetime. This energy balancing through network restructuring optimizes the network lifetime. The number of not connected nodes are also quite less. The implementation is done in MATLAB. The implementation results prove the aforesaid statements.

#### 2. Related Work

In a WSN, the fundamental question is to have the data routed over single hop or multiple hops. This question is answered by considering the answer to the question that the data needs to be sent over a longer or a shorter hop. Short-hop routing leads to reduced energy consumption and higher signal-to-interference ratios [6]. The less but longer hops lead to more energy consumption but less signal to interference ratio (SIR). Research paper [7] has proved that single-hop transmission is more efficient, when power consumption of real wireless sensor node’s transceivers ia taken into account.

So, this leads to four types of networks:(1)single hop single sink routing (SH-SS),(2)single hop multiple sink routing (SH-MS),(3)multiple hop single sink routing (MH-SS),(4)Multiple hop multiple sink routing (MH-MS).The first scenario is the most elementary one with direct transmission. The LEACH protocol, which is better than the direct transmission, deals with single hop single sink clustering protocol [8].

A lot of research is done for the third scenario [9–11]. The modification of LEACH protocol is having multiple hops instead of single hop [9]. Reference [10] compares the single and multiple hop routing.

In [3], a multihop protocol spends most of its energy for relaying data packets so the concept of multihop multisink WSN is discussed. The concept of particle swarm optimization is used.

The current research paper deals with the second scenario, that is, single hop multiple sink. The biggest disadvantage of single sink is that certain sensors near the sink or on critical paths consume energy much faster than other nodes [12]. Thus the current work uses the advantage of having multiple sinks. Multiple sinks ensure shorter hops and thus the 18 advantages as discussed in the paper [6] are also achieved. Multiple hops are generally used to reduce the hop distance [13]. But if multiple sinks are used, the hop distance automatically reduces. Thus, the research deals with single hop and thus avoids the drawbacks of having multiple hops.

Network lifetime (NL) is a critical metric in the design of energy-constrained WSN [14]. The basic aim of the researchers is to minimize the energy consumption and at the same time increase the network lifetime. The authors in the paper [15, 16] deal with mobile multiple sinks. Data dissemination to multiple mobile sinks consumes a lot of energy [17]. Many papers [3, 15] have concentrated on positioning of the sink to have optimal energy consumption. The current research work talks about the random deployment of the sink thus saving power in determining the position of the sink. Then the network is restructured to have balanced energy consumption amongst all the sinks.

Table 1 summarizes the related work done in the field of single/multiple hops, single/multiple sinks, and moving/stationary nodes.

Network restructuring is changing the neighbor nodes connected to a sink depending upon the energy consumption by that sink.

In the current research work the number of sensors connected to any sink is changed if the energy consumption by the sink is more than the threshold. To have balanced energy consumption amongst all the nodes, the entire network is restructured.

The rest of the paper is organized in sections. The next section describes the proposed algorithm and its pseudocode. Section 4 deals with the simulation results. Section 5 concludes and gives the outline for the future work.

#### 3. Proposed Algorithm

The proposed work concentrates on multiple sink single hop routing. The nodes and the sinks are randomly deployed. At the first instance the nodes are connected to a sink depending upon their distance and the transmission energy. A node gets connected to a sink/s if its distance from the sink/s is less than the transmitting range. In this way all the nodes are connected to one or many sinks. There may be some nodes which are not connected to any of the sinks as they are deployed quite far from the network and are not within the transmission range of any sink. Table 2 depicts this fact. In the next phase network restructuring is done. The energy consumed by every sink is calculated and the sink with maximum energy consumption is found out. The unique nodes connected to this sink are traced. A unique node is one which is connected to only that sink. All the other connected nodes apart from the unique nodes are then found out. Such nodes are then connected to other sinks (within the transmission range), keeping in mind that the new energy consumption of that sinks does not cross the threshold. In this way the energy consumption of the sink, which was earlier consuming maximum energy, is reduced. This process is repeated for all the sinks in the increasing order of their energy consumptions. The end result is a network which now consumes less energy overall.

##### 3.1. System Model and Assumptions

(1)Sinks are randomly deployed and then they are fixed. Since random distribution is used, the complexity in determining the position of the sink is removed.(2)The nodes after random deployment are fixed.(3)The density of nodes deployed is high such that the data from a node reaches a sink in single hop.(4)The network is heterogeneous. The sinks have more power than the sensing nodes. The sinks have additional computational capacity as well.

##### 3.2. Pseudocode

(1)The sensor nodes and the sinks are randomly deployed and after the deployment the nodes and sinks are stationary. Combination of sink and sensor nodes will make the network heterogeneous.(2) is the set of nodes deployed in the area to be sensed in the given network: (3) is the set of sinks deployed in the area to be sensed in the given network: (4)Calculate the Euclidean distance from each sink to every node. is the set of distances of all the nodes from the th sink: So it will form a order distance matrix () which will contain the distances of all the sinks from all the nodes. The distance between the nodes is calculated using a method based on RSSI [19].(5)The threshold energy of the sink is .(6)The transmission range of a node is .(7)The neighboring nodes of every sink are calculated based on the transmitting range. is the set of all the neighboring nodes of th sink ():(8)A new connection matrix () is formed based on . A flag is set for every element where the distance from node to sink is less than the transmission range . Thus is in the binary form.(9)The energy consumed by th sink is calculated by where is the total number of neighbor nodes of th sink () and is the distance of th sink from the th node where , and is the constant for first order radio energy model [8].(10)Calculate the , where to , and find the maximum energy consumed by any sink .(11)If , { no need to optimize the network iteration = 0; set the below the repeat step (10) }(12)else(a)Calculate the unique nodes connected to a sink. A unique node to a sink is the one which is not connected to any other sink. is the set of unique nodes for Where and Based on the above step and (7) we can easily calculate the nodes, having connectivity with more than one sink. is the multiple connecting nodes set having the connection with multiple sinks.(b) nodes of the th sink are arranged into the descending order of the distance from the th sink.(c) Select the nodes having the minimum distance from the th sink and disconnect the connection of remaining nodes those are far from the th sink, and update the overall connection matrix based on the distance matrix .(13)Repeat the steps (9)–(12) by recalculating the sink energy with modified . The iteration count is also increased. The steps are repeated until becomes constant.(14)Now the network is optimized and the routing is started by the nodes. The lifetime of the network is calculated by counting the number of rounds done by the network before the first node dies out.

#### 4. Simulation Results

The simulation of the abovementioned pseudocode was performed in MATLAB. The simulation parameters are mentioned in Table 2.

The numbers of nodes are not connected to any sink as the number of sinks that increases in the network are depicted in Table 3. In the proposed work we have considered the restructuring energy in terms of processing energy . In the restructuring only the node connection changes with one sink to other sinks to reduce the load of the sink and decrease the delay.

It is apparent from Table 3 that as we increase the sinks, the number of not connected nodes decreases. But after a certain point of time, the not-connected nodes more or less remain the same. Since the sinks and the nodes are randomly deployed, and the nodes are connected to the sink with a single hop, there are not connected nodes because of large transmission energy required outside the transmission range [8]. If we would have deployed the sinks manually, the number of not-connected nodes would have reduced considerably. The optimal number of sinks also depends upon the network area to be covered by the sinks.

Figure 1 depicts the plot of total percentage of sinks versus percentage of not-connected nodes. With the help of curve fitting tool of the 4th order polynomial, the suitable value is 0.12 sink/nodes. This proves that the optimal number of sinks is 12 for 100 nodes.

Now, the network restructuring algorithm mentioned in the Section 4 is applied to the data as depicted in Table 3.

Table 4 proves that, after restructuring, the network consumes less energy. The number of connected nodes changes as a result of which the total energy consumption by each sink reduces. As a result the total energy consumption of the network reduces considerably, thus increasing the network lifetime. The remains the same as only the is reduced. Since the is decreased, the is automatically decreased. The maximum number of nodes connected to a sink also reduces. Consider the scenario of no of sinks = 10. In the initial phase, just after the deployment the parameters are as in Table 5.

After applying the algorithm, that is, after energy balancing through network restructuring, the values of the parameters change as depicted in the Table 6.

The has changed from 0.362 to 0.274. Now, we consider one more scenario of changing the number of sensing nodes. The observations are depicted in Table 7 and Figure 2.

Thus it proves that the proposed algorithm is quite effective for multiple sink, single hop WSN. After the network restructuring, the maximum number of nodes connected to a sink reduces considerably. As a result of this energy balancing, the network lifetime is increased and the energy consumption is reduced.

#### 5. Conclusion and Future Work

The proposed work performs network lifetime optimization through energy balancing in a multiple sink single hop WSN. The network restructuring balances the energy amongst the sinks, thereby increasing the network lifetime. In the proposed algorithm we have considered the network lifetime with respect to the maximum and average energy consumption. The more the energy consumed, the less the network lifetime. The proposed restructuring algorithm reduces the maximum nodes connected to a sink. As a result the total energy consumed by the sink connected to the maximum nodes also decreases further resulting in increasing the total network lifetime. The implementation results shown in MATLAB prove that network restructuring is beneficial in reducing the maximum and average energy of the sinks. The optimal number of sinks is also calculated using fourth order polynomial. The number of iterations used for simulation is 100. In 100 iterations the value of average energy (mean) is 0.2329 J and the standard deviation of mean is 0.0061 J. Since the standard deviation is very small so this iteration count is statistically valid.

In the future the authors wish to consider the scenario of a mobile sinks WSN. In this case there would be single hop routing with the sink moving randomly. This involves complexity of finding out the position of the sinks. The authors also wish to have sinks deployed at fixed positions in the initial phase instead of random deployment. And then finally compare the results obtained in different scenarios with multiple sink moving/stationary with and without initial sink positioning.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgment

The authors are sincerely thankful to the potential reviewers for their valuable comments and suggestions to improve the quality of the paper.