Optimal Location through Distributed Algorithm to Avoid Energy Hole in Mobile Sink WSNs

In multihop data collection sensor network, nodes near the sink need to relay on remote data and, thus, have much faster energy dissipation rate and suffer from premature death. This phenomenon causes energy hole near the sink, seriously damaging the network performance. In this paper, we first compute energy consumption of each node when sink is set at any point in the network through theoretical analysis; then we propose an online distributed algorithm, which can adjust sink position based on the actual energy consumption of each node adaptively to get the actual maximum lifetime. Theoretical analysis and experimental results show that the proposed algorithms significantly improve the lifetime of wireless sensor network. It lowers the network residual energy by more than 30% when it is dead. Moreover, the cost for moving the sink is relatively smaller.


Introduction
Wireless sensor networks are a self-organizing network composed of random distribution of intensive, low-cost, integrated sensors with the function units of sensing module, data-processing module, and short-range wireless communication module. By the measurement the surrounding environment such as humidity, temperature, heat, infrared, sonar, radar, and seismic waves with a variety of built-in sensors to sensor network has achieved a full range of monitoring and controlling the physical world. It is an important integral part of long-term planning of next generation Internet and has already been widely used in the past few years [1].
Sensor nodes usually cannot be replaced or reallocated energy in wireless sensor network, and most applications need to ensure long-term monitoring of certain areas (most applications have prespecified lifetime requirements); for example, the application mentioned in [2] requires that the effective monitoring time for the network should be greater than 9 months to extend the life of sensor network and, thus, is of great significance.
However, research to improve the network life is of great challenges. There is a sensor network-specific "energy hole" phenomenon, which refers to premature death of those nodes in the hotspot. In multihop data collection sensor network, nodes near the sink have to suffer more routing load [3], so the energy consumption level is higher than nodes in other regions. This is known as the hotspot. Study shows that because of the impact of the energy hole, the network residual energy is as high as 90% [4] when the network is out of function.
Different from the general network with static sink, intelligent mobile robots can act as a mobile sink in the network to collect data. When the residual energy near the sink becomes small, sink repeatedly moves to the location with more abundant remaining energy so as to achieve a balanced energy consumption rate among the entire network, avoiding the energy hole and obtaining longer network lifetime.
Despite a lot of research on the mobile sink, different from previous studies, the main contribution of this paper is as follows.
(1) Many researchers recognize the existence of hotspots near the sink, so mobile sink strategy is to move sink to the areas with the highest remaining energy in order to avoid energy hole near the sink and 2 The Scientific World Journal achieve the purpose of balance energy consumption. According to our study, when the sink is seated at different locations in the network, power consumption near sink is of different sizes. Energy consumption in different directions is also not the same. In many cases (especially when the sink is at the edge of the network) the power consumption in network-centric side of sink is much higher than the other side near the edge of the network. Meanwhile, on the side near networkcentric, even energy consumption in regions far from the sink is higher than that of the near-edge side. Consequently, simple conclusion is that "areas near sink" which have higher energy consumption cannot effectively guide the design of sink mobility, and they are too general and difficult to be implemented in practice.
In this paper, through differential analysis, precise energy consumption of each node, for the first time, is given for arbitrary sink location in the network. This lays the foundation for mobile sink and energy balancing strategy.
(2) We propose distributed sink mobile strategy. Based on theoretical analysis of network energy consumption, it can estimate the power consumption of the network before sink moves to the new anchor and predict the optimal next location for sink according to the actual energy consumption of current network. In addition, previous studies fail to present a good solution to the cost of the sink migration. The distributed strategies proposed in this paper are different from previous studies. As the sequence of sink anchors does not affect the ultimate energy consumption and network lifetime, we usually do not move sink according to the calculated result. Instead, we compute a couple of anchors prior to moving and then traverse all the locations according to the minimum moving cost in each step in order to minimize the total cost.
The organization of this paper is as follows. Section 2 introduces relevant research. The network model and the problem statement are presented in Section 3. Section 4 introduces characteristics of data forwarding and energy consumption. It is the basis of theoretical research of our paper. Section 5 describes distributed sink mobile strategy. Section 6 discusses performance and experimental comparison. Section 7 is a summary of the whole paper.

Related Work
There are many existing researches handling energy hole problem. They can be divided into two categories based on the sink mobility: static sink network (for short, static sink) and mobile sink network (for short, mobile sink). Although this paper focuses on mobile sink, solutions to avoid energy hole in static sink can often be used here. Therefore, we first introduce related research with static sink.
(a) Analysis and evaluation model. Li and Mohapatra [5] first propose a mathematical model to analyze the energy hole problem. They assume that the network is uniformly distributed in a circle network and then analyze and compare performance of several existing strategies to avoid energy hole from the perspective of network traffic [6]. They point out that hierarchical structure and data compression mechanism are effective for alleviating the energy hole problem, increasing the rate of data collection, in turn, exacerbating the energy hole [5] and effectiveness of increasing number of the nodes is not obvious. (b) Node density control strategy. The principle is that the higher energy consumption near the sink causes the energy hole problem, and therefore it is effective to deploy more nodes near the sink in order to reduce the data load of every node, alleviating the impact of energy hole. This is the so-called nonuniform distribution strategy. Another manifestation of node density control strategy is to deploy more nodes in the place where hotspots are possible to appear which is also effective. Such studies can be found in the literature [7][8][9]. (c) Adjustable sensing and communication range. The main principle of this type of strategy is that the node transmission power is adjustable; for example, Berkeley Motes node has 100 transmission power levels [10]. Node energy consumption is directly proportional to power of transmission distance and therefore uses smaller transmission range in hotspots near sink and larger transmission range in regions far away from the sink which can achieve balanced energy consumption. This strategy can be combined with node density control strategy. For example, Hossain et al. [11] set the interval between nodes near the sink smaller so that the required energy to transmit data is small, set the interval between nodes far away from the sink larger, so the required energy to transmit data is larger. In this way, it can achieve balanced energy consumption among all of the nodes. Such studies can be found in the literature [12,13].
The above discussion is under the situation where sink is stationary after deployment. However, with the development of intelligent robot, the research of mobile sink has attracted more and more attention [14]. The research in mobile sink can be summarized into the following categories.
(a) Relay nodes: such method is to use relay node in hotspot to avoid energy hole. Relay nodes can be both stationary and mobile. The role of mobile relay nodes is essentially similar with that of mobile sink. Related research can be found in the literature [15,16]. (b) Single mobile sink: in this kind of networks there is only one sink, and it is movable. Luo and Hubaux [17] propose an early solution for mobile sink to solve the unbalanced energy consumption. As the sink can move, the nodes around it keep on changing over times, and thus it can avoid energy hole around the sink. The author proves that in a circular sensor network, putting sink in the center of a circle is The Scientific World Journal 3 the best way to save energy. Also, he claims that sink moving along the edge of the network can achieve minimum energy consumption.
Luo also puts forward a strategy that mobile sink moves along the anchor (anchor points) to collect data in [18]. The main idea is that when the sink stays in an anchor it collects data and gets the situation of energy consumption over the whole network in order to determine the interval to stay in every anchor.
As the energy consumption rate near the sink is relatively higher, [19] analogizes sink as "lawn" (mower) and the region with higher remaining energy as "grass" where relatively higher. So the strategy of moving the sink is the "lawn" (mower) moving to the region where "grass" is relatively higher repeatedly.
Reference [20] presents a mobile sink trajectory optimization algorithm and the main idea is as follows. At first, the mobile sink moves along a straight line and collects information about network data and energy consumption information. Mobile sink then adjust the trajectory using the latest information which collected in the process of data collection so that the mobile sink moves near the nodes in order to reduce the cost of data communication and thus to form an optimal trajectory of sink. The paper discusses random movement, forecast movement, and the network performance of different nodes of data collection patterns (passive, multihop, and limited multihop). Reference [21] sums up the target of mobile sink strategy into three categories: (1) minimizing average energy consumption; (2) minimizing largest energy consumption; (3) minimizing relative energy consumption and proposes corresponding mobile algorithms. More research on single mobile sink can be found in [22][23][24].
(c) Multiple mobile sinks: compared with single mobile sink, multiple mobile sinks will increase the cost of the network, but the network performance (network lifetime, network delays) can be greatly improved and, therefore, is subject to a wide range of research. However, mobile sinks require mutual cooperation and mutual coordination of movement between several sinks, and thus the study is more complicated than research of single mobile sink.
The latest research about multiple mobile sinks can be found in [24] which studies the optimization strategy of multiple mobile sinks and compares the situations of a number of stationary sinks and sinks moving along the hexagon surrounding. They find that sink mobility can significantly increase the network life, and the more points sink stays along the hexagon surrounding, the better balanced energy consumption the network will achieve. Mirela Marta, finally, proposes the distributed mobile optimization algorithm to maintain connectivity between the mobile sinks. Related research about multiple mobile sinks can also be found in [23,24].
In addition, whether the research handles single or multiple mobile sink, they may adopt different strategies for data collection. It can be summed up in two circumstances. One is that mobile sink and static sink adopt the same type of data collection, using a static network sophisticated data collection strategies, such as single-hop, multihop, and subcluster. The other is to use different type data collection strategies from static sink, such as sensor nodes cache data so that the data is sent to sink when it arrives at vicinity of sensing, or the data is sent to a fixed regional cache, and then sink moves along the fixed region to collect data.

Network Model and Problem Description
Network architecture model: we apply the module similar with [17,19], a typical wireless sensor network for cyclical data collection and a circle with radius of ; see Figure 1. In this network, there are nodes and, { 0 , 1 , 2 , 3 , . . . }, 0 stands for sink and it can move throughout the network; others represent work nodes and cannot move after initially deployed. Communication range of nodes is noted with ; the difference from general sensor networks is that the transmission range is adjustable, and nodes automatically adjust its communication range based on the distance between two nodes; for example, Berkeley Motes node has 100 transmission levels [7,19]. Each work node will sense data in each cycle. We use the mature shortest path protocol for collecting data [8] and sending them to sink with multihop [8,9].
Energy consumption model: we use typical energy consumption model; the cost of moving mobile sink is calculated according to formula (1), cost for sending data is calculated according to formula (2), cost for receiving data is calculated according to formula (3), and specific details can be found in the literature [14]: where elec stands for the energy loss of firing circuit. If the transmission distance is less than the threshold 0 , power amplifier loss is based on free-space model; when the transmission distance is greater than or equal to the threshold value, it uses multipath attenuation model. , amp represent the power for these two models' amplification, respectively. Energy for receiving bit of data refers to formula (3). In this paper, the above specific parameters come from the literature [14].
Problem Description. For a given mobile sensor network shown in Figure 1, the problem can be described as follows: how to move and choose the anchors of mobile sink to maximize the network lifetime? Here we term the rounds of data collection till the first node dies as the network lifetime [7,14].

Analysis Load of Node.
When the sink moves to an arbitrary location such as ( 0 , 0 ), if it is able to calculate the data load of each node, it then will be easy to calculate the energy consumption of each node based on formulas (2) and (3) so as to learn energy consumption of the entire network. Therefore, this paper will compute data load for each sensor node when sink is located at arbitrary ( 0 , 0 ). To the best of our knowledge, this paper gives derivation of data load in the network. It is also the basis for sink strategy in this paper.
Proof. This paper applies the shortest path routing protocol to transmit data to sink through multihop. For an arbitrarily node ( , ), see Figure 2; represents intersection point of extension with the network border, and the data load for is the amount of data whose distance from is integer multiple of on line . First, we calculate the coordinates of ( , ).

Equation of line :
Equation of the circle: Formula (5) can be simplified as we can work out ( , ) by substituting it in formula (6): Solving the coordinates of can be divided into several situations as follows.
The Scientific World Journal 5 First. When ( ) ̸ = 0 coordinates of are as follows: if < 0 then if > 0 then Second. When = 0 if = 0 then this is the sink itself; no data needs to be sent; if According to coordinate of , the length of line is The length of line is Let 1 = | |, = ⌊ 1 / ⌋, 1 = + | ≤ : Data load of is calculated as follows. Its distance from sink Then check sector area ℵ with angle of and width of (see Figure 2). The dimensions of this area are approximately ℵ = . The number of nodes in this ring is . If it is located in the { ⋅ ⋅ ⋅ + } | ∈ {0 ⋅ ⋅ ⋅ }th ring, that is to say, the location is = + | ∈ {0 ⋅ ⋅ ⋅ }, ∈ {0 ⋅ ⋅ ⋅ }, then data load of ℵ is as follows.
It is responsible of forwarding all the remote data in sector area whose width is and is integer multiple of away from ℵ. The dimension of these areas can be computed as This is the dimension of area ℵ which is responsible of forwarding data. Then data load of ℵ is Data sent is It can be assumed that the data load is uniformly shared by each node in a very small region. Then data load of each node is It is responsible of forwarding all the remote data in sector area whose width is and is integer multiple of away from ℵ. The dimension of these areas can be computed as Then data received by ℵ is 6 The Scientific World Journal Data sent is It can be assumed that the data load is uniformly shared by each node in a very small region. Then received data of each node is Data sent is Based on Theorem 1, Figure 3 shows the energy consumption map when sink is at different locations. As can be seen from the chart, energy consumption of the network is different when sink is in different locations; nodes near sink do not necessarily suffer higher energy cost. For example, when sink is located near the circumference, power consumption in network-centric side of sink is much higher than the other side near the edge of the network. In order to show more clearly the data load for sink in different orientations and positions, Figure 4 selects three straight lines from the map and Figure 8 shows the statistical chart of the data load on these three lines.
As can be seen from Theorem 1, data load of node is directly proportional to distance ( length) from this node to circumference. The longer is, the more data node has to bear. It can be seen from Figure 5 that line is the longest, and therefore line has to undertake the most amount of data, but data load of line on the other side is the smallest, although is the closest to sink. The situation of and lines is also not the same. This indicates generally the idea that nodes near sink suffer higher volume of data which is wrong. Besides, energy consumption will change with sink location and has close relations to the transmission range. Figure 6 shows data load of in Figure 4 under different communication range . The general rule is that the bigger is, the smaller the amount of data the node has to bear. The extreme case is when = every node sends data directly to sink. Each node at this time only has to bear one unit of data, which is the least.

Corollary 2.
Note the transmission range with ( ); sink has moved to A( 0 , 0 ), an arbitrary node B( , ); then the energy consumption of node B is Proof. According to Theorem 1, the amount of received data of nodes = + away from the sink is D and the amount of sent data is = + 1. Substituting them into energy formulas (1) and (2) will lead to Corollary 2.
Based on Corollary 2, Figure 7 shows the energy consumption under different sink locations and different . As can be seen from the figure, the energy consumption of mobile sink is very complex. So it requires careful planning for moving sink.
In order to examine the energy consumption of the network in detail, Figure 8 shows energy consumption map of the three lines selected from Figure 4. Figure 9 shows energy consumption of nodes located at different distance from the sink under various transmission ranges computed through Corollary 2. Different from data load, when node is located at the first distance ring from sink, the transmission range is actually the distance to sink, so it is less than . When distance from node to sink is larger than , transmission range is all the same as . Therefore, the energy consumption does not decline as the distance grows. Its law is that in the first ring where is small, node close to sink has to undertake much higher data load; although the communication range is smaller than , energy consumption rate is still very high. With the increase of , data load declines very fast (see Figure 6), and thus energy consumption of nodes nearest from sink also drops very quickly. Although data load in the edge of first ring is smaller than that within the first ring, the transmission range is larger and hence energy consumption increases. Consequently, there is concave within from sink in the power consumption chart (see Figure 9 energy consumption chart = 125). From the second ring, the communication range is all , but data load is smaller as they are farther from sink, energy consumptions also a decreasing function of distance from sink (see Figure 9). This paper reveals details of network energy consumption for the first time.

The Factor
That Affects the Network Lifetime. Data collection strategy for mobile sink is as follows: sink moves to a new location to carry out rounds of data collection and then moves to a new anchor. It goes on like this model until the death of the network. Suppose the total time sink can pause during the survival of the entire network which is Γ. Then goal for sink mobility is to find suitable anchors to achieve the longest life span of the network. And the essence is to maximize the number of rounds of data collection, that is, Max( × Γ). As we define the lifetime as an interval till the death of the first node. Therefore, in order to achieve the longest life expectancy, it is necessary to minimize the largest energy consumption among all the nodes.

The Impact of the Number of Anchors.
After migrating to the purpose location, sink will conduct data collection. The purpose location is termed as the anchor. The number of locations that sink can pause is termed as anchor number. In fact, the case of static sink can be summed up as the situation where there is only one anchor. From above we know that the center is the best sink location now. In addition, we are  able to get the largest network lifetime (equal to static sink). However, when the number of anchor numbers increases to be more than one, the analysis of network life expectancy has become more complex. We assume that sink can move across the whole network, and the anchor number is infinite in theory. But the actual anchor number is limited as follows.  (1) Based on the principle of symmetry of a circular network with Proposition 2 (claim 2) in Luo and Hubaux's paper [17] have proven that the track of mobile sink is a ring. That is, trajectory of sink is limited to a circular track within the circle.
(2) Because of the limited energy resource of sensor node, the life span of the network is limited as rounds. The sink conducts at least one round of data collection at each anchor; then anchor number is restricted to the points on the circular track. Also, based on the principle of symmetry, these anchor points should be uniformly distributed on the circular trajectory to achieve optimal network performance.
(3) The actual physical characteristics of the network, such as sink mobility, network topography, and geography, can limit the anchor sink's stay.
The Scientific World Journal  When the sink is located on a track (the track is a ring whose center is at origin; when the radius of ring is , it is termed as trajectory or orbit ) and the anchor location is determined, the algorithm below can compute the energy consumption for each network grid.
Based on Theorem 1, Figure 10(a) shows energy situation of five rounds of data collection for each anchor, and then move to the next location; there is a total of 50 anchors and 250 rounds of data collection. And in Figure 10(b) there is a total of 250 anchors and 250 rounds of data collection. It can be seen that under different anchor numbers, even if the two situations conduct the same rounds of data collection (the same network lifetime), the largest energy consumption in network whose anchor number is bigger is less than half of that in the former network (less anchor number). It indicates that anchor numbers have a greater impact on the network life expectancy. If we define quotient obtained by dividing the maximum energy consumption among all the nodes by the number of rounds of data collection as the network energy efficiency, then the energy efficiency of the network is higher, the higher life expectancy will be under the same initial energy and vice versa.
We also find that network energy efficiency increases with the growth of the anchor. But the efficiency will stay stable after anchor increases to a certain threshold.
The anchor number is mainly affected by the initial energy of node. If the initial energy is small, the life span of the network will be short. However the anchor number cannot exceed , so it will affect the network efficiency when is small. Similarly, the larger the network is, the more energy for one round data collection will be, thus decrease the number of anchor.
Anchor number will not affect the energy efficiency of the network after it rises over certain degree, and the degree is related with the scale of the network. Let the radius of the sink track be ; study in this paper shows that the degree will be greater when increases and vice versa. The most special situation is that if = 0, then degree of sink is = 0; that is, the anchor number does not affect the network energy efficiency. From the above analysis we can see that anchor number of sink has great impact on network life expectancy. Therefore, previous studies which do not consider anchor number usually simplify the problem. Figure 11 shows the energy situation when is, respectively, 2000 m, 1200 m, 1000 m, and 800 m in network with = 2000 m and 50 sink anchors. Largest energy in = 2000 m is not the minimum; instead, = 1200 m has the minimum energy consumption. The above description indicates that the optimal trajectory of mobile sink needs to be carefully optimized and there will be a better route for the longest network life.

The Impact of Communication Range.
The communication range has a great impact on the network lifetime. Figure 12 shows the energy situation of the line which is 620 m from sink to the circumference (similar to | | = 620 m in Figure 4). It can be seen that energy situation changes with different . The rule is as follows: with the increase of , energy consumption of nodes near sink decreases, and energy consumption of nodes far from sink grows. The right chart in Figure 12 shows energy consumption under different length of | | = . The rule is that the greater is, the higher energy consumption will become. Accordingly, the largest lifetime of static sink network is as follows: when = , the value of which can minimize the maximum energy consumption on | | is the value that can achieve the largest network lifetime. The energy consumption should be energy cost after one round of data collection. The quotient obtained by dividing   node initial energy by the largest energy consumption is the largest network lifetime with static sink. Communication range also has a great impact on the lifetime of mobile sink network. We can prove this point through experiment. Below is in the network with = 2000, sink moving along the circumference, and sink pausing anchor should be only 50. Energy consumption in the trajectory is low; energy consumption on the trajectory is high. Therefore, when increases, energy consumption in the trajectory will increase, and energy consumption on the   Below is in the network with = 2000, sink moving along the circumference, and sink pausing anchor increasing to 300. We can set different values to achieve the smallest largest energy consumption, that is, the maximum network lifetime. Figures 14(a), 14(b), and 14(c) show different maximum energy consumption under different . We can see that network lifetime is also not the same. Figure 15 shows the energy situation after 155 rounds of data collection under different based on Theorem 1. There is a best to obtain the smallest total energy consumption and the largest network lifetime.
Also is related with the network overall energy consumption. Figure 16 shows the total energy consumption under different after one round of data collection. The relationship between network total energy consumption and is a concave curve; the concave point minimizes total energy consumption, which is also the best value. The best is not affected by the location of sink. As can be seen from the chart the amount of energy is the least when = 85 m.

Distributed Algorithm for Mobile
Sink. In our theoretical calculation nodes are uniformly distributed, and the external environment is homogeneous. But in practice, the deployment of network is always not uniform, and the external environment is not necessarily homogeneous (affected by physical barriers such as restrictions on the terrain). We find in experiments that the deployment of nodes has a great impact on the network lifetime, such as Figures 17  and 18. 3000 nodes are deployed in network with radius of 500 m. In Figure 18 nodes are randomly deployed; in fact, the deployment is uneven. Sparse region will lead to particularly 14 The Scientific World Journal   Figure 19. Figure 20 is an energy consumption diagram of strictly uniform deployment. From observation of experimental results, the trend shown in Figure 19 is in line with the theoretical results. However, it is not as optimal as the results of Figure 20. It can be seen that offline methods cannot adjust sink location according to real world situation. Online distributed algorithm adaptability optimizes the choice of the sink anchors according to the actual energy consumption of the network, so its efficiency is relatively high and adaptable. Therefore, based on the previous theoretical analysis, we propose distributed mobile sink algorithm to avoid the energy hole.
The idea of Algorithm 1 is first to mesh network, then move sink to a grid( 0 , 0 ), calculate the total energy of all the nodes by adding the actual energy consumed and the precalculated theoretical result, and then choose the largest energy EE as the compare energy for sink at ( 0 , 0 ) and repeatedly we switch sink to next grid and calculate its compare energy. From all the compare energies, we choose the minimum one and set the correspondent sink coordinate as the optimal next pause anchor.
The complexity of Algorithm 1 is * * 1 * | |; * represents the number of grid, 1 represents the number of nodes, and | | represents the transmission level of nodes.

Analysis of Mobile
Strategy. Algorithm 1 only considers maximizing the life span of the network; sink pausing path is shown in Figure 21(a). However, it fails to discuss the mobility of sink. In fact, it may not be feasible to purely act according to Algorithm 1 in real application. Because the speed of the mobile sink should be slow, sink cannot move around the network without limitations in speed as described in Algorithm 1. In addition, sink mobility will bring extra recourse dissipation and cost; thus the shorter sink moves the better. For these reasons, we recognize that Algorithm 1 can be improved according to the fact that if the total pause of anchors for sink is , then the network life is irrelevant with the sequence of pausing. Therefore, we can precalculate -anchors in Algorithm 1, rather than one single anchor. As long as there is at least one of them located within the scope of current sink migration capability, then ideal moving path of sink is to form a ring around the network. Since the algorithm for calculating -anchors is similar with Algorithm 1, due to space limitations, we omitted it here.

Performance Analysis and Experimental Results Comparison
This paper applies OMNET++ to carry out experiments; OMNET++ is an open network simulation platform which is open source, component-based and modular for large network and has been widely recognized by the academic community [10]. Experimental parameters are shown in Table 1 from the literature [14], if there is no special note.  We can obtain the energy per round by dividing the largest energy consumption by the number of rounds. It is clear that if the energy per round is small, then the efficiency of network is high. Figures 26 and 27, respectively, show the energy per round. From the chart we can find that the more the anchors are, the better the network efficiency will be. However, after the number of anchor exceeds a certain degree, the network efficiency is stable. Figures 28 and  29 show the comparison of network energy dissipation between theoretical analysis and experimental under different transmission ranges and mobile trajectory. We can see a comprehensive impact of and trajectory radius on the network energy consumption and the trend experimental outcomes is very close to the theoretical results. Figures 30 and 31 show the maximum energy consumption when sink is on different route. If sink is located in the same trajectory energy consumption can be different for various communication radiuses. If sink is located in distinct trajectory discrepancy between network energy consumption is great. Therefore, optimization of the mobile program requires comprehensive consideration of variety of factors. Figures 32 and 33 show the energy consumption of nodes on the diameter after 20 rounds of data capture under different r and . The tendency in experimental result is in line with the theory. scene shown in Figure 18, sink collects data for 150 rounds. Based on previous experiments, we know that centralized algorithm in this paper is the same as LUO [17]. We only need to contrast the centralized algorithm, static sink, and distributed algorithm. As theoretical analysis and comparison have been discussed previously, we only compare experimental results here. Figure 34 shows the energy consumption of these three algorithms after 150 data gathering.

Impact of Transmission Range.
From the experimental results in Figure 34, the energy consumption of static sink is more than the mobile sink approach by nearly an order. The maximum energy cost in distributed algorithm is the smallest. It shows that the proposed algorithm of distributed mobile sink can further improve network lifetime. Figure 35 shows the comparison of maximum energy consumption between centralized algorithm and distributed algorithm in the process of data collection. Figure 36 shows the trajectory of sink computed by distributed algorithm. We can see that the actual optimized track of mobile network is not complete the same as calculated routine. Distributed algorithm has extended the footprint of sink to inside of the network, rather than only moving on the circle.
Distributed algorithm proposed in this paper is superior to all other algorithms as distributed algorithm can adaptively adjust the next location of sink based on actual energy consumption of the entire network. There are similar endeavors in previous studies. This paper can first calculate theoretical energy consumption of the entire network, effectively guiding the sink migration. In contrast with the algorithm which considers energy of the nodes only within one hop of current sink, the algorithm here takes into account the overall energy consumption. Our algorithm is also superior to those algorithms which take area near the sink certainly as hotspot and each time move sink from hotspot to the region with the highest residual energy. Because we can neither simply believe that nodes near sink spend the highest energy consumption, nor that moving sink to the region which remains the highest energy will minimize the maximum energy consumption. Figure 37 shows the residual energy ratio between static sink and mobile sink after 150 rounds of data gathering in network of = 500 m. The remaining energy ratio of static network remains greater than 70 percent all through the run, while     the remaining energy ratio of mobile sink strategy drops with the rounds of data collection and finally stays unchanged. Sink mobility has greatly enhanced the energy utilization rate (by 30%). Figure 38 shows the network remaining energy ratio under different transmission radius and it indicates remaining energy ratios are not the same as communication range changes (residual energy ratio = 1 − (total energy consumption of all the nodes)/(number of nodes × maximum energy consumption)).

Network Remaining Energy Comparison.
We also analyzed the impact of network parameters on the network performance. The node density, from previous study, has little impact on network performance. However, uniformity of the deployment has impact on the network life span. The more uniformly the nodes are deployed, the higher network life expectancy will be. In addition, other factors include the initial nodes energy and the network size. The greater the initial node energy is, the more round it can carry out data collection and vice versa. While increasing the network scale will decrease the network lifetime. As the number of rounds of data collection is equal to the minimum docking anchor of sink node, if the network lifetime is higher, docking anchors will become more and thus energy efficiency increases. Finally, we also experiment on the impact of parameters on the network used in Table 1. Generally, they influence the network performance, however, not the trend.

Conclusion and Future Works
The main contribution of this paper is as follows: (1) presents a method to accurately calculate energy expenditure of the The Scientific World Journal   //set the initial maximum energy consumption as 0 (7) for = 1 : //number of nodes (8) for each do (9) computer energy ( ) consumption use Corollary 2 //compute energy cost of node when sink is at ( 0 , 0 ) (10) ( ) = ( ) + ( ) // ( ) represent the actual energy consumption of node (11) If Maxenergy < ( ) //when the energy // consumption of node is larger than current maximum (12) Maxenergy = ( ) //compare energy of //sink( 0 , 0 ) is the energy consumption of node (13) Endif (14) End for (15) End for; (16) If min global energy > Maxenergy // Maxenergy //represent the maximum energy consumption of sink( 0 , 0 ) (17) min global energy = Maxenergy //minimize the comprehensive energy (18) best = 0 ; best = 0 ; //next sink anchor to minimize the comprehensive energy (19) Endif (20) End for (21) End for (22) Return( best , best ); //return the optimal next sink anchor Algorithm 1: Find best location( (1 : )).  network when sink is located anywhere; (2) proposes an online distributed algorithm combined with practical sensor networks to achieve better practical significance. In theory analysis and experiment section, we analyze the factors that affect network life in detail. The conclusion is of more general significance. Although this paper can present a more precise calculation of the energy consumption of the network, the complexity of distributed mobile algorithm is still relatively large. There are several future research works; although there are many theoretical computing for regular network, most of the networks are irregular. Their optimization of mobile sink has more far-reaching applications. Therefore, the next step we plan to extend the energy consumption calculation to general irregular network. Secondly, this paper handles the situation of single mobile sink and multiple mobile sinks, because of its complexity, has so far failed to reach a satisfying method. Based on the conclusion and theoretical calculations in this paper, we will pursue preferable solution for network with multiple mobile sinks [24].