Open Access
This article is
 freely available
 reusable
Sensors 2018, 18(11), 3697; https://doi.org/10.3390/s18113697
Article
Data Collection Based on Opportunistic Node Connections in Wireless Sensor Networks
^{1}
Department of Computer Science and Engineering, School of OpticalElectrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China
^{2}
Shanghai Key Lab of Modern Optical Systems, Shanghai 20093, China
^{3}
Public Experiment Center, University of Shanghai for Science and Technology, Shanghai 200093, China
^{*}
Author to whom correspondence should be addressed.
Received: 12 August 2018 / Accepted: 18 October 2018 / Published: 30 October 2018
Abstract
:The working–sleeping cycle strategy used for sensor nodes with limited power supply in wireless sensor networks can effectively save their energy, but also causes opportunistic node connections due to the intermittent communication mode, which can affect the reliability of data transmission. To address this problem, a data collection scheme based on opportunistic node connections is proposed to achieve efficient data collection in a network with a mobile sink. In this scheme, the mobile sink first broadcasts a tag message to start a data collection period, and all nodes that receive this message will use the probe message to forward their own source information to the mobile sink. On receiving these probe messages, the mobile sink then constructs an opportunistic connection random graph by analyzing the source information included in them, and calculates the optimal path from itself to each node in this random graph, therefore a spanning tree could be generated with the mobile sink play as the root node, finally, it broadcasts this spanning tree so that each node could obtain an optimal path from itself to the mobile sink to forward the sensing data. In addition, a routing protocol that adapts to different nodes operating statuses is proposed to improve the reliability of data transmission. Simulation results show that the proposed scheme works better concerning the packet delivery rate, energy consumption and network lifetime.
Keywords:
working–sleeping cycle strategy; wireless sensor networks; opportunistic node connections; random graph1. Introduction
As a popular way of information access, Wireless Sensor Networks (WSNs) have been widely used in smart industrial fields [1] to undertake tasks such as factory automation, fault diagnosis, fuel consumption monitoring, surveillance, and industrial control, etc. Their application usually involves a large number of static sensor nodes (e.g., photoelectric sensors, ultrasonic sensors, gas sensors, video sensors, etc.) deployed over vast areas to perform data sensing, gathering and communication. However, the sensor nodes in WSNs have limited power supply that is not easy to replenish, which restricts their longterm and sustained work.
The use of mobile sinks in WSNs to replace the traditional static base stations for data collection is believed to be able to improve the network lifetime, and the feasibility of this scheme is demonstrated in details in Reference [2]. Usually, the mobile sink has stronger computing power than common sensor nodes and its energy can be replenished in a timely way. Depending on the particular application needs, the mobile sink can be either part of the external environment or part of the network, and its movement trajectory can also be either controlled or randomly planned [3]. By properly designing the movement trajectory for the mobile sink, the hotspot problem [4] in traditional networks can be avoided and the energy consumption of sensor nodes can be more evenly balanced, thus prolonging the network lifetime. To fully explore the role of mobile nodes, in Reference [5], the authors proposed a joint energy replenishment and data collection algorithm, in which a mobile charger is used to replenish the energy for nodes and it can function as a mobile sink when equipped with wireless transceivers. In Reference [6], the authors proposed a WiFibased passive cyber–physical social sensing approach for tracking people’s behaviors by sensing WiFi messages from mobile devices people carry with them. However, these studies did not further consider changing the node operating status to achieve a better network lifetime performance.
To cope with this challenge, researchers have proposed the working–sleeping cycle strategy for sensor nodes, in which nodes can go to sleep to save energy while they are free of work. These studies usually focus on designing nodescheduling schemes to accomplish data transmission, in which the working–sleeping cycle strategy can be categorized into synchronous and asynchronous [7]. Therefore, the changeable node operating status in this strategy is an advantage of these studies, which can prolong the network lifetime. However, the working–sleeping cycle strategy for nodes may cause opportunistic node connections, which results in link instability and affects the data collection efficiency.
In fact, the reasons why opportunistic node connections exist in WSNs can be summarized as follows: (1) WSNs are often deployed in harsh environments where wireless signals are susceptible to interference, which may cause link instability [8], further leading to opportunistic node connections; (2) the movement of nodes usually leads to intermittent connected links and creates some form of opportunistic node connections [9]; (3) due to the limited energy of the nodes, in some scenarios the sensor nodes adopt a working–sleeping cycle strategy to save energy, and accordingly, the adjacent nodes may not be able to communicate with each other continuously [10], thus bringing about opportunistic node connections.
This work considers that all sensor nodes adopt an asynchronous working–sleeping cycle strategy to save energy and a mobile sink is used to collect data in the network, as shown in Figure 1, where the network works based on opportunistic node connections since they may not be able to communicate with each other continuously. In this case, how to model this kind of WSNs to design a scheme, and based on which to ensure the reliability of data transmission in the network becomes a meaningful challenge.
To deal with this problem, the random graph theory originated by the pioneering work of Erdős and Rényi [11] was adopted to model WSNs, in which all sensor nodes are represented by graph vertices while all wireless links are represented by edges. All edges have a probability to reflect the quality of wireless links. The random graph theory that is used in modeling WSNs can be called a random geometric graph, in which an edge can only exist between two adjacent nodes [12]. To make the model more appropriate to the real situation of WSNs, Ren et al. [13] took the reliability of links into consideration to present a novel random geometric graph coverage model. Moreover, Dong et al. [14] described a rangedependent model for WSNs by using random graph theory, of which the probability of an edge existing was expressed as a function of the distance between its two end vertices in the fading environment.
In this work, by taking the randomness of opportunistic node connections into account, we propose a novel random graph model named Opportunistic Connection Random Graph (OCRG) for WSNs. Inspired by the work of Fu et al. [15], who first proposed a scheme to address the connectivity between a designated source and destination in random graphs, in which they assumed that at each step one edge could be tested to see if it existed or not and an optimal policy that minimized the total expected number of steps determined while establishing whether the designated source and destination were connected. As a matter of fact, this work mainly focuses on the connectivity between any source node and the mobile sink in the OCRG, and based on the opportunistic node connections, a data collection scheme is proposed, in this scheme, all nodes can use the calculated optimal path to forward their sensing data to the mobile sink.
In the scheme, first, the mobile sink can launch a data collection task anywhere in network at any time by broadcasting a tag message that declares its data collection period, and each node that receives this message will forward its source information (including its whole working time in this data collection period, its status transition frequency in this period and all its neighbors’ IDs) included in a probe message to the mobile sink. Here the energy efficient probe message forwarding mechanism is designed to minimize the overall energy consumption. On receiving these probe messages, the mobile sink first constructs an opportunistic connection random graph by analyzing the source information included in them, then calculates the optimal path from itself to each node in this random graph, and hence a spanning tree could be generated where the mobile sink play as the root node, and finally it broadcasts this spanning tree so that each node can obtain the optimal path from itself to the mobile sink, and according to which to forward the sensing data. In addition, a routing protocol which adapts to different nodes operating statuses is proposed to improve the reliability of data transmission when nodes forwarding their sensing data along the calculated optimal path. The experimental results show that this scheme can effectively improve the reliability of the data transmission while prolonging the network lifetime. The main contributions of this paper are summarized as follows:
 An opportunistic connection random graph is constructed to reflect the opportunistic node connections caused by an asynchronous working–sleeping cycle strategy;
 For each node, an energy efficient probe message forwarding mechanism is used to minimize the overall energy consumption in network when forwarding the source information to the mobile sink;
 A routing protocol which adapts to different nodes operating statuses is proposed to improve the reliability of data transmission when nodes are forwarding their sensing data along the calculated optimal path.
The rest of the paper is organized as follows: Section 2 describes the related work. Section 3 gives the system model. Section 4 presents the proposed data collection scheme in details. Simulation results and performance evaluations are shown in Section 5. Finally, Section 7 summarizes this work and gives some future research directions.
2. Related Work
In traditional WSNs, all sensor nodes including the sink nodes are static, sensor nodes near the sink have more traffic loads for they have to participate in forwarding sensing data from all other nodes to the sink, therefore they easily exhaust their limited energy, and which will cause network partition. This problem is called the hotspot problem [16] and it has an adverse effect on the network lifetime.
To address this problem, in recent years researchers have introduced the mobile sink concept to networks. By fully exploiting the mobility of the mobile sink, the nodes around the sink could change continually, therefore the energy consumption in routing is distributed more evenly in the network, and thereby it prolongs the network lifetime. According to the work of the previous researchers, the path design for mobile sinks can be classified into predefined paths [17], controlled paths [18], or uncontrolled (random) paths [19]. By employing these paths, the mobile sink can play an important role in scenarios where nodes suffer opportunistic connections. For example, in Reference [20], the authors considered that the WSNs deployed within hostile environments might suffer from largescale damage where many sensors failed simultaneously and this would cause the WSNs to split into disconnected segments, and they proposed a twostep heuristic for connecting isolated segments through intermittent links, in which a set of mobile nodes served as mobile data carriers. In Reference [21], the authors considered that in mobile sensor networks, the connectivity between nodes was intermittent due to the blockage of radio signals and nodal mobility, and they proposed a reliable data delivery scheme for the networks with an enhanced delay technique, in which nodes estimated the connectivity and expected interencounter time with sink nodes.
All these approaches can equalize the energy consumption of nodes, but they are not flexible enough to prolong the network lifetime because they have not considered designing different node operating statuses. Therefore, the working–sleeping cycle strategy was introduced to WSNs, in which researchers considered that the proper scheduling of sensor nodes to sleep or work could effectively reduce their unnecessary energy consumption, thus prolonging the network lifetime.
According to the node operating status, the researches can easily be divided into two main categories. In the first category, the studies aimed at synchronous working–sleeping cycle strategy, for example, in Reference [22], the authors proposed an eventtriggered sleeping energy mode for the synchronous working–sleeping cycle strategy of sensor nodes, in which nodes with no data packets immediately entered sleeping status after the synchronization phase and did not participate in media access contention. However, the synchronization process remains a significant contributor to the energy consumption. To solve the problem, Ng et al. [23] proposed an energyefficient synchronization algorithm that could reduce energy consumption by adaptively regulating the synchronization traffic and synchronization wakeup period based on the changing network neighborhood conditions through counterbased and exponentialsmoothing algorithms. In the second category, the studies focus on asynchronous working–sleeping cycle strategy, in which each node could have an independent working–sleeping scheduling, by scheduling a certain number of nodes to work; they can achieve the coverage for a specific area and ensure the network connectivity in it. In Reference [24], the authors presented a novel algorithm that relied on learning automata to implement sleeping scheduling approaches, and it aimed to activate a minimum number of sensor nodes to achieve coverage of a certain area and guarantee connectivity between these nodes. Mukherjee et al. also focused on network coverage and connectivity issues, in Reference [25], they proposed a sleepscheduling scheme that ensured a coverage degree requirement based on the dangerous levels of toxic gas leakage area, while maintaining global network connectivity with minimal awake nodes.
All these schemes can reduce the nodes’ energy consumption, but the working–sleeping cycle strategy for sensor nodes will cause opportunistic node connections, which can further result in the link instability. Therefore, modelling this kind of WSNs is a challenging task, and thus random graph theory was introduced in WSNs.
In Reference [26], the authors indicated that WSNs could be represented as a graph with a set of vertices consisting of the sensor nodes of the network and a set of edges consisting of the wireless links between the nodes, and they showed that it was appropriate to use a random geometric graph for modeling WSNs. The random geometric graph evolved from the random graph where edges only exist between adjacent nodes. In Reference [27], the authors further considered heterogeneous sensor nodes that may have different transmission ranges and designed a new routing metric, and then they proposed a novel random geometric graph model based on this metric for heterogeneous WSNs. In Reference [28], the authors focused on the weaknesses of modeling WSNs topology by the means of random graph theory, proposed a new weighted topology model for WSNs based on random geometric theory, in which the strength of the transmitted signal would decrease rapidly along the increasing of distance between different nodes was taken into consideration. In Reference [29], the authors proposed a model of WSNs on a twodimensional plane using site percolation model, a kind of random graph in which edges are formed only between neighboring nodes, and based on which, they investigated WSNs connectivity and energy consumption at percolation threshold when a socalled phase transition phenomena happens. However, in some scenarios, it is not necessary to study the connectivity of the whole network. For example, in Reference [30], authors studied the problem of optimally determining sourcedestination connectivity of random networks, and by viewing the network as a random graph, they determined an optimal policy for establishing whether the designated source and destination were connected.
In this work, for any node who needs to send its source information that included in the probe message to the mobile sink, an energy efficient probe message forwarding mechanism is proposed. On receiving these probe messages and by analyzing the included source information, the mobile sink can determine the neighbor relationships of these nodes and calculate the link connectivity between any two adjacent nodes, and according to which, the mobile sink can construct an OCRG.
3. System Model
This section gives an analysis of the network model and the energy model used in this work.
3.1. Network Model
The network model used in this paper assumes that all sensor nodes are distributed in region Ω randomly and independently, and each node has a unique ID with radio range r. In addition, all nodes adopt asynchronous working–sleeping cycle strategy for sensing and communication, and the working time α and the sleeping time γ for each node can be anisochronous. Therefore, sensor nodes can communicate with each other only when they are in their working statuses. Moreover, this network supports multiple mobile sinks to collect data and each mobile sink has a unique Sink ID (SID) to distinguish from each other, however, we only use single mobile sink to describe the design principle in this work for simplicity. The mobile sink can move randomly and collect data actively anywhere in network at any time, it will always be in the working status for having sufficient energy and has two adjustable radio range R_{l} and R_{s}, of which R_{l} is the long radio range that is fixed in each data collection period but adjustable in different periods used to broadcast the tag message to launch a data collection task, and R_{s} is the short radio range that is always equal to r used to transfer data. The symbols and parameters used in network are summarized in Table 1.
Figure 2 depicts the asynchronous working–sleeping cycle strategy for sensor nodes. Three given nodes ${v}_{1}$, ${v}_{2}$, ${v}_{3}$ are within the radio range of each other, but their operating statuses are asynchronous and their working time and sleeping time are anisochronous. Therefore, they can communicate with each other only when they are all in their working status, such as [t_{1},t_{2}] or [t_{3},t_{4}].
3.2. Energy Model
In this work, all sensor nodes adopt a simplified energy consumption model [31]. In the process of data collection, the energy consumption mainly consists of the received power and the transmission power. Here, let ε_{amp} be the energy consumed in the transmission amplifier, E_{elec} be the basic energy consumed during transmitting and receiving per bit respectively, and d_{(vi,vj)} be the distance between node v_{i} and v_{j}.
The received power by node v_{j} that receives Bbit data is described as follows:
$${E}_{R}({v}_{j})={E}_{elec}B\text{}$$
The transmission power during node v_{i} transmits Bbit data to node v_{j} is described as follows:
$${E}_{T}({v}_{i},{v}_{j})=({E}_{elec}+{\epsilon}_{amp}{d}_{({v}_{i},{v}_{j})}^{2})B\text{}$$
4. Data Collection Scheme Based on Opportunistic Node Connections
In the scheme, the mobile sink remains stationary and can determine the collection scope during the data collection. Once this data collection is completed, it can move in the network randomly and launch another data collection task anywhere in the network at any time. The proposed scheme can be presented in detail in the following four phases:
4.1. Initialization
To start a data collection period, the mobile sink can launch a data collection task anywhere in network at any time by broadcasting a tag message (including the duration for this data collection and the SID of the sink) by a long radio range R_{l}, and then it should keep stationary until accomplish this data collection task. Therefore, all nodes under this radio range R_{l} could receive this tag message.
On receiving a tag message, by obtaining the duration for this data collection included in this message, a node can calculate its whole working time (according to its own working–sleeping scheduling) and its status transition (from the working status to the sleeping status, or vice versa) frequency during this data collection period, which will be used to construct the OCRG in further.
For a node in current data collection scope, the method of Received Signal Strength Indication (RSSI) is used to estimate its distance to the mobile sink, the value of which is used to calculate its Expected Optimal Hops (EOH) (Definition 1) according to Lemma 1. The EOH of a node will be employed to select proper forwarders to minimize the overall energy consumption when forwarding the probe message to the mobile sink.
In order to facilitate the sleeping node to participate in data collection when it wakes up, the mobile sink can choose to rebroadcast the tag message randomly, and in this case, the nodes that have received the same tag message will not deal with it again.
Definition 1.
Expected Optimal Hops (EOH). The Expected Optimal Hops denote the number of hops it takes to forward a probe message from any node to the mobile sink with the minimized energy consumption.
It should be noted that EOH is different from the shortest path, according to the energy model, the energy consumption for a node to transfer data to the mobile sink is not linearly related to the length of the data transmission path.
Lemma 1.
For any node v_{i} in a data collection scope, its EOH satisfies:
where d_{(vi,vsink)} is the distance between node v_{i} and the mobile sink.
$${EOH}_{{v}_{i}}=\sqrt{\frac{{\epsilon}_{amp}}{2{E}_{elec}}}{d}_{({v}_{i},{v}_{\mathrm{sin}k})}\text{}$$
Proof of Lemma 1.
Assuming that there is Bbit data from node ${v}_{i}$ should be forwarded to the mobile sink v_{sink} along the path (v_{i}, v_{sink}, k), where k is the hops on the path and satisfies 1 ≤ k ≤ N − 1. To unify the path representation, v_{sink} is represented by v_{i+k} in the next proof process, from which it means that it needs k hops to forward a probe message from v_{i} to v_{sink}. Then, the energy consumption function with respect to k for this forwarding can be calculated as follows:
$$\begin{array}{cc}\hfill {C}_{{v}_{i}}(k)& ={\displaystyle \sum _{j=0}^{k1}({E}_{T}+{E}_{R})}\hfill \\ & ={\displaystyle \sum _{j=0}^{k1}\left\{\left[{E}_{elec}+{\epsilon}_{amp}{d}_{({v}_{i+j},{v}_{i+(j+1)})}^{2}\right]B+{E}_{elec}B\right\}}\hfill \\ & =(2k){E}_{elec}B+{\epsilon}_{amp}\left[{\displaystyle \sum _{j=0}^{k1}{d}_{({v}_{i+j},{v}_{i+(j+1)})}^{2}}\right]B\hfill \end{array}$$
To get the minimum value of C_{vi}(k), we can use the average value inequality to derive inequality of C_{vi}(k) which can be described as follows:
$${C}_{{v}_{i}}(k)\ge (2k){E}_{elec}B+\frac{{\epsilon}_{amp}{\left[{\displaystyle \sum _{j=0}^{k1}{d}_{({v}_{i+j},{v}_{i+(j+1)})}}\right]}^{2}B}{k}\text{}$$
Since the sum of the distances for any two adjacent nodes on the path (v_{i}, v_{i}_{+k}, k) satisfies the following inequality:
$$\sum _{j=0}^{k1}{d}_{({v}_{i+j},{v}_{i+(j+1)})}}\ge {d}_{({v}_{i},{v}_{i+k})}\text{$$
Therefore, the minimum energy consumption function ${C}_{{v}_{i}}^{\mathrm{min}}\left(k\right)$ with respect to k satisfies:
$${C}_{{v}_{i}}^{\mathrm{min}}(k)=(2k){E}_{elec}B+\frac{{\epsilon}_{amp}{d}_{({v}_{i},{v}_{i+k})}^{2}B}{k}\text{}$$
To get the value of k that can minimize ${C}_{{v}_{i}}^{\mathrm{min}}\left(k\right)$, we can take the first derivative of ${C}_{{v}_{i}}^{\mathrm{min}}\left(k\right)$ with respect to k as follows:
$$\frac{\partial {C}_{{v}_{i}}^{\mathrm{min}}}{\partial k}=2{E}_{elec}B\frac{{\epsilon}_{amp}{d}_{({v}_{i},{v}_{i+k})}^{2}B}{{k}^{2}}\text{}$$
Let $\raisebox{1ex}{$\partial {C}_{{v}_{i}}^{\mathrm{min}}$}\!\left/ \!\raisebox{1ex}{$\partial k$}\right.$ equal to 0, we can get a value of k. By using k_{expected} to denote this value, we have:
$${k}_{\mathrm{expected}}=\sqrt{\frac{{\epsilon}_{amp}}{2{E}_{elec}}}{d}_{({v}_{i},{v}_{i+k})}\text{}$$
Next, taking the second derivative of ${C}_{{v}_{i}}^{\mathrm{min}}\left(k\right)$ with respect to k and comparing the value of it at k = k_{expected} with 0 as follows:
$$\frac{{\partial}^{2}{C}_{{v}_{i}}^{\mathrm{min}}}{\partial {k}^{2}}{}_{{k=k}_{\mathrm{exp}exted}}=\frac{{\epsilon}_{amp}{d}_{({v}_{i},{v}_{i+k})}^{2}B}{{k}^{3}}{}_{{k=k}_{\mathrm{exp}exted}}>0\text{}$$
Therefore, the ${C}_{{v}_{i}}^{\mathrm{min}}\left(k\right)$ has a minimum value at k = ${k}_{\mathrm{expected}}$, and since v_{i+k} represents v_{sink}, so we here define the EOH for node v_{i} is:
$${EOH}_{{v}_{i}}=\sqrt{\frac{{\epsilon}_{amp}}{2{E}_{elec}}}{d}_{{(v}_{i},{v}_{\mathrm{sin}k})}\text{}$$
The proof is completed. □
4.2. Energy Efficient Probe Message Forwarding Mechanism
For each node in the data collection scope, it needs to send its source information (including its whole working time, its status transition frequency and all its neighbors’ IDs) included in the probe messages to the mobile sink. The format of the probe message is given in Table 2.
The “Message Source” field is used to indicate the ID of the node sending this probe message. The “Source Information” field is used to store the whole working time, the status transition frequency, and the neighbors’ IDs of the message source. The “Sink ID” field indicates the SID of the mobile sink launching this data collection task, and which is also the forwarded destination for the probe messages. The “Forwarders ID” field is used to store the IDs of nodes that have forwarded this probe message in sequence. In the process of forwarding a probe message, each time the message is relayed by a node (forwarder), it should add its ID in the “Forwarders ID” field in the probe message. The “EOH” field is used to store the value of EOH for the message source.
Since a probe message can be generated from any node that received a tag message and the opportunistic node connections in the network decrease the efficiency of probe message forwarding, it is necessary to design an energy efficient probe message forwarding mechanism to minimize the overall energy consumption when forwarding them to the mobile sink.
In the mechanism, only the nodes that have received this tag message can participate in the probe message forwarding. When an intermediate node v_{m} receives a probe message, it will check the IDs stored in “Forwarders ID” field in this probe message to learn whether it has forwarded it or not.
Here if v_{m} has not forwarded this message, as shown in Figure 3a, it first updates the “Forwarders ID” field by adding its ID in it and calculates the Number of Forwarders (NF) based on it, by obtaining the value of EOH in this message it then can further calculate (EOH–NF), to find a neighbor whose EOH is closest to it as an optimal forwarder. However, if v_{m} has forwarded this message, as shown in Figure 3b, for sake of exposition, suppose that the IDs in the “Forwarders ID” field are denoted as {${v}_{s}$,…, ${v}_{p}$, ${v}_{m}$, ${v}_{n}$}, it first explores the neighbors that have not forwarded this probe message by checking the IDs in this field, and then updates this field by deleting the IDs of v_{m}, v_{n} from it and adds its ID in it. In the next, by calculating NF based on this field and obtaining the value of EOH in this message, v_{m} can further calculate (EOH–NF) to find a neighbor whose EOH is closest to it from the explored neighbors as an optimal forwarder.
Considering the asynchronous working–sleeping cycle strategy for nodes, when v_{m} receives this probe message from v_{p}, if only the neighbor v_{p} is in working status, as shown in Figure 3c, it forwards the message to v_{p}. However, if v_{p} is also in sleeping status, as shown in Figure 3d, v_{m} stops forwarding it. Algorithm 1 gives the detailed energy efficient probe message forwarding mechanism.
Algorithm 1. Energy efficient probe message forwarding mechanism 

4.3. Opportunistic Connection Random Graph Construction
After receiving these probe messages, the mobile sink constructs an OCRG (Definition 2) by analyzing the included source information to reflect the opportunistic node connections in this data collection scope.
Definition 2.
Opportunistic Connection Random Graph (OCRG). The OCRG is constructed based on the intermittent communication caused by asynchronous working–sleeping cycle strategy of nodes, which can be analyzed from all the source information, to reflect the opportunistic node connections in the data collection scope, denoted as G(V, E, P_{e}).
In an OCRG, V denotes a set of all message sources, E denotes a set of all opportunistic connections between any two adjacent nodes in set V, and P_{e} denotes the link connectivity between any two adjacent nodes in set V.
For sake of exposition, the link connectivity P_{e} between any two adjacent nodes v_{i} and v_{j} is denoted as ${P}_{{v}_{i}{v}_{j}}$. There are two factors affect the value of ${P}_{{v}_{i}{v}_{j}}$, of which the first one is the whole working time of nodes v_{i} and v_{j}, the longer the nodes’ whole working time, the more likely they can communicate with each other. In addition, the second one is the status transition frequencies of nodes v_{i} and v_{j}, which can be explained by that, under the same duration for a data collection, sensor nodes with different status transition frequencies may produce the same whole working time, but nodes with higher status transition frequencies contribute more to improve the link connectivity. This phenomenon can be illustrated in Figure 4, in which the duration for a data collection for the mobile sink is 12 min, and the working–sleeping cycle for node ${v}_{1}$ and ${v}_{2}$ is 3 min and 8 min, respectively, so both of them work 8 min during this process, but the status transition frequency for node ${v}_{1}$ is about 2.3 times that of node ${v}_{2}$.
Based on the analysis above, the link connectivity (${P}_{{v}_{i}{v}_{j}}$) between any two adjacent nodes v_{i} and v_{j} can be calculated as follows:
where ${T}_{{v}_{i}}$ and ${T}_{{v}_{j}}$ is the whole working time of node v_{i} and v_{j} in a data collection period ${T}_{p}$, respectively, while ${f}_{{v}_{i}}$ and ${f}_{{v}_{j}}$ is the status transition frequencies of node v_{i} and v_{j} in this period, respectively. Here ${f}_{\mathrm{max}}$ is the max value of the status transition frequency obtained from all the probe messages, and it is used to achieve normalization of the node’s status transition frequency.
$${P}_{{v}_{i}{v}_{j}}={{f}_{i}p}_{{v}_{i}}\times {f}_{j}{p}_{{v}_{j}}=\left(\frac{{f}_{{v}_{i}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{i}}}{{T}_{p}}\right)\left(\frac{{f}_{{v}_{j}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{j}}}{{T}_{p}}\right)\text{}$$
Noted that the mobile sink is always in working status, any of its adjacent node (under its short radio range ${R}_{s}$) that in working status can communicate with it at any time. Hence, for the mobile sink and any of its adjacent node v_{i}, their link connectivity (${P}_{{v}_{i}{v}_{\mathrm{sin}k}}$) can be affected by the whole working time and the status transition frequency of node v_{i}, and accordingly, ${P}_{{v}_{i}{v}_{\mathrm{sin}k}}$ can be calculated as follows:
$${P}_{{v}_{i}{v}_{\mathrm{sin}k}}={{f}_{i}p}_{{v}_{i}}\times {P}_{{v}_{\mathrm{sin}k}}=\frac{{f}_{{v}_{i}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{i}}}{{T}_{p}}\text{}$$
By combing Equations (12) and (13), P_{e} can be described as follows:
$${P}_{e}=\{\begin{array}{l}\frac{{f}_{{v}_{i}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{i}}}{{T}_{p}},\begin{array}{c}{P}_{{v}_{i}{v}_{\mathrm{sin}k}}\end{array}\hfill \\ \left(\frac{{f}_{{v}_{i}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{i}}}{{T}_{p}}\right)\left(\frac{{f}_{{v}_{j}}}{{f}_{\mathrm{max}}}\times \frac{{T}_{{v}_{j}}}{{T}_{p}}\right),\begin{array}{l}{P}_{{v}_{i}{v}_{j}}\hfill \end{array}\hfill \end{array}\text{}$$
Figure 5 depicts the link connectivity between four node pairs varies by the max status transition frequency of nodes. The whole working time of nodes in this data collection period is set to a fixed value to explore the impact of different status transition frequency of nodes on the link connectivity. In the figure it can be seen that, with a fixed whole working time of the node, the link connectivity between nodes decreases as the max status transition frequency of nodes increases. For two adjacent nodes with higher status transition frequency, the link connectivity between them is higher. The main reason is that the higher status transition frequency of a node increases the communication opportunities with its neighbors, and further improves the link connectivity between them.
Based on the analysis above, the mobile sink can first obtain the message source set V by gathering their IDs stored in the “Message Source” field included in the probe messages, and then obtain the edge set E by analyzing the neighbors’ IDs of each message source that stored in the “Source Information” field, by gathering all message sources’ whole working time and status transition frequencies stored in the “Source Information” field it can calculate the link connectivity between any two adjacent nodes in set V according to Equation (14), thus constructing an OCRG.
By constructing OCRG, the mobile sink models the opportunistic node connections in the data collection scope, based on which, it could calculate the optimal data forwarding path in advance for each node to send their sensing data to improve the reliability of data transmission. Furthermore, the source node could obtain its data forwarding path in advance therefore reduce the delay in each hop, and due to the intermittent communication mode of the nodes, it could also improve the success rate of the data transmission.
Figure 6 depicts an OCRG with three nodes v_{i}, v_{j} and v_{k} that adopt the asynchronous working–sleeping cycle strategy to save energy. Nodes v_{i} and v_{j} are adjacent neighbors while v_{j} and v_{k} are adjacent neighbors, and the link connectivity between them are ${P}_{{v}_{i}{v}_{j}}$ and ${P}_{{v}_{j}{v}_{k}}$, respectively, hence there exists an opportunistic connection. Since node v_{i} is not adjacent to v_{j}, their link connectivity P_{vivk} is 0.
4.4. The Optimal Path Calculation Based on the Opportunistic Connection Random Graph
Once the OCRG is constructed, it needs to find the optimal path from any node to the mobile sink to realize the reliable sensing data forwarding. In this work, a spanning tree algorithm (Algorithm 2) is designed to calculate the optimal path with the max value of Path Connectivity (PC) (Definition 3) from the mobile sink to each node based on this OCRG. By employing this algorithm, the mobile sink can produce a spanning tree, based on which, each node can get its optimal path to the sink with the corresponding PC of it. Therefore, the mobile sink will broadcast this spanning tree to nodes under the long radio range ${R}_{l}$.
Definition 3.
Path Connectivity (PC). In the OCRG, the PC of a path is related to the link connectivity between any two adjacent nodes on this path, which is used to reflect the reliability of this path when delivering data. As for a path (${v}_{i}$, ${v}_{i+k}$, k), where node ${v}_{i}$ is the source node, node ${v}_{i+k}$ represents the node k hops away from ${v}_{i}$ on this path, k is the hops on the path and satisfies 1 ≤ k ≤ N − 1, the PC of this path is defined as:
$${PC}_{path({v}_{i},{v}_{i+k},k)}={\displaystyle \prod _{j=0}^{k1}{P}_{{v}_{i+j}{v}_{i+(j+1)}}}\text{}$$
During constructing this spanning tree, all nodes in the OCRG are subdivided into two sets: (i) set K: including the nodes whose optimal paths from the mobile sink to themselves are known, and (ii) set U: including the remaining nodes. In the beginning, set K includes only the mobile sink while set U includes the remaining nodes in the OCRG, and a node in set U will be transferred to set K if the mobile sink finds the optimal path to it.
The algorithm includes two phases, of which the first phase is initialization. In this phase, the mobile sink calculates the PC of the paths from itself to all nodes in set U as follows:
$${PC}_{path({v}_{\mathrm{sin}k},{v}_{i},\ast )}=\{\begin{array}{ll}{P}_{{v}_{\mathrm{sin}k}{v}_{i}}& ,{v}_{\mathrm{sin}k}isdirectlyconnectedto{v}_{i}\\ 0& ,otherwise\end{array}$$
And the nodes on each path can be denoted as follows:
$$PATH({v}_{\mathrm{sin}k},{v}_{i},\ast )=\{\begin{array}{ll}\{{v}_{\mathrm{sin}k},{v}_{i}\}& ,{v}_{\mathrm{sin}k}isdirectlyconnectedto{{\displaystyle v}}_{i}\\ \varnothing & ,otherwise\end{array}$$
In the second phase, the mobile sink selects a node ${v}_{i}$ with a max value of PC from set U and transfers it to set K, and then updates the PC of the path from ${v}_{\mathrm{sin}k}$ to each node ${v}_{j}$ in set U but directly connected to ${v}_{i}$ as follows:
$${PC}_{path({v}_{\mathrm{sin}k},{v}_{j},\ast )}\leftarrow \mathrm{max}\left\{{PC}_{path({v}_{\mathrm{sin}k},{v}_{j},\ast )},{PC}_{path({v}_{\mathrm{sin}k},{v}_{i},\ast )}\times {P}_{{v}_{i}{v}_{j}}\right\}\text{}$$
For each path, once the PC of it is updated, the nodes on it should be updated as follows:
$$PATH({v}_{\mathrm{sin}k},{v}_{j},\ast )\leftarrow PATH({v}_{\mathrm{sin}k},{v}_{i},\ast )+{v}_{j}\text{}$$
Repeating the work in second phase until set U is empty, a spanning tree with the mobile sink as the root node can be generated.
The algorithm improves the efficiency of finding the optimal path. If the mobile sink calculates and selects the optimal path of each node directly, for each node, it needs to explore all the possible paths between them to determine which one has the maximum PC, which is inefficient and brings high delay. Furthermore, when the network density increases or the data collection scope expands, the number of the paths from a node to the mobile sink increases greatly, which could further decrease its efficiency.
Algorithm 2. The spanning tree algorithm 

Figure 7 depicts the detailed process of constructing the spanning tree step by step in an OCRG with seven nodes. From Figure 7a we can see, sets K and U can be denoted as {${v}_{\mathrm{sin}k}$} and {${v}_{1}$,${v}_{2}$,${v}_{3}$,${v}_{4}$,${v}_{5}$,${v}_{6}$}, respectively. In the first phase of the algorithm,${v}_{\mathrm{sin}k}$ calculates the PC of the paths from itself to all nodes in set U and finds the nodes on each path, the results of which are shown in Table 3 and Figure 7b, respectively. The PC[${v}_{i}$] (i = 1, 2,…, 6) used in this table indicates the PC of the path from the mobile sink to node ${v}_{i}$, and the value with bold format is the max value of PC in set U. The second phase of this algorithm includes 6 steps, which can be seen from Figure 7c–h. In step 1, node ${v}_{1}$ is transferred to set K due to it has the max value of PC among that of all nodes in set U, which can be seen in the table. By checking the OCRG, ${v}_{\mathrm{sin}k}$ learns that only ${v}_{6}$ in set U is directly connected to ${v}_{1}$, so it updates the PC of the path from itself to ${v}_{6}$ and the nodes on this path. In the next 5 steps, by repeating the work in step 1, a spanning tree is generated which can be seen in Figure 7i.
When the spanning tree is generated, the mobile sink should broadcast it to the nodes under its long radio range ${R}_{l}$ so that they can forward the sensing data to it according to this spanning tree. On receiving the spanning tree, here it is noticing that, only a node that is on it could obtain the optimal path from itself to the mobile sink, and store the path and the PC of the path locally. However, if a node does not find itself on the spanning tree, it will resend its probe message to the mobile sink according to the energy efficient probe message forwarding mechanism. Moreover, recalling that the mobile sink can choose to rebroadcast the tag message randomly during the current data collection period, the nodes that have not received this tag message will also send their probe messages to the mobile sink.
On receiving these probe messages, the mobile sink could reconstruct an OCRG, then recalculate the optimal path from itself to each node in this OCRG and update the spanning tree accordingly.
In fact, for a node, its optimal path on the spanning tree is the most reliable path for it to forward its sensing data to the mobile sink. However, due to using the asynchronous working–sleeping cycle strategy for nodes, so during data transmission process along this path, any forwarder on the path may be in sleeping status which could lead to the failed link connection, it further causes the failure of data transmission. To solve this problem, a routing protocol that adapts to different nodes operating statuses is proposed to improve the reliability of data transmission and Algorithm 3 gives the detailed routing protocol. In this routing protocol, assuming that the sensing data from node ${v}_{s}$ is being forwarded along its optimal path on the spanning tree to the mobile sink. When an intermediate node ${v}_{m}$ receives the data, it should forward it to its father node ${v}_{n}$ only if ${v}_{n}$ is in working status, otherwise, ${v}_{m}$ should select other forwarder from its neighbors to continue this data forwarding. This kind of forwarder selection method is described as follows.
For each neighbor ${v}_{i}$ of ${v}_{m}$ that is on the spanning tree, ${v}_{m}$ calculates the link connectivity ${P}_{{v}_{m}{v}_{i}}$ between them according to Equation (14), by obtaining the value of PC (${PC}_{path({v}_{i},{v}_{\mathrm{sin}k},\ast )}$) stored in ${v}_{i}$ locally it then can calculate (${P}_{{v}_{m}{v}_{i}}$×${PC}_{path({v}_{i},{v}_{\mathrm{sin}k},\ast )}$) to get the PC of the path ${v}_{m}$${v}_{i}$${v}_{\mathrm{sin}k}$, accordingly, ${v}_{m}$ selects the neighbor on path ${v}_{m}$${v}_{i}$${v}_{\mathrm{sin}k}$ with a max value of PC as the forwarder.
Algorithm 3. The routing protocol 

Figure 8 depicts the detailed process of a source node ${v}_{s}$ forwards its sensing data to ${v}_{\mathrm{sin}k}$. Node ${v}_{s}$ forwards the data to its father node ${v}_{1}$, and then ${v}_{1}$ forwards it to its father node ${v}_{2}$. Since the father node ${v}_{3}$ of ${v}_{2}$ is in sleeping status, ${v}_{2}$ needs to find other forwarder. For neighbors ${v}_{4}$ and ${v}_{6}$ of ${v}_{2}$ that are on the spanning tree, ${v}_{2}$ calculates link connectivity ${P}_{{v}_{2}{v}_{4}}$ and ${P}_{{v}_{2}{v}_{6}}$, respectively, by obtaining the value of PC stored in ${v}_{4}$, ${v}_{6}$ locally it then can calculate (${P}_{{v}_{2}{v}_{4}}$×${PC}_{path({v}_{4},{v}_{\mathrm{sin}k},\ast )}$) and (${P}_{{v}_{2}{v}_{6}}$×${PC}_{path({v}_{4},{v}_{\mathrm{sin}k},\ast )}$), respectively, to get the PC of the path ${v}_{2}$${v}_{4}$${v}_{5}$${v}_{\mathrm{sin}k}$ and path ${v}_{2}$${v}_{6}$${v}_{7}$${v}_{8}$${v}_{\mathrm{sin}k}$. Since the PC of the path ${v}_{2}$${v}_{4}$${v}_{5}$${v}_{\mathrm{sin}k}$ is greater than that of the path ${v}_{2}$${v}_{6}$${v}_{7}$${v}_{8}$${v}_{\mathrm{sin}k}$, node ${v}_{4}$ is selected as the forwarder, then the sensing data is forwarded to ${v}_{\mathrm{sin}k}$ along the path ${v}_{4}$${v}_{5}$${v}_{\mathrm{sin}k}$.
5. Performance Evaluation
5.1. Simulation Environment
Our simulations are performed under Matlab R2014b simulator [32] and the parameters used in this simulation are listed in Table 4.
In this simulation, sensor nodes are deployed in a 400 × 400 m^{2} region randomly and independently. The random mobility mode has two stages: mobile and stationary, and the mobile sink can independently determine the direction and speed when moving, and it can decide the dwell time when keeping stationary. The duration for a data collection period varies and the mobile sink can change it in different collection tasks, but in our experiments, we fix this value to compare the impact of the other parameters on the performance of the algorithm. For classical data transmission schemes, in ExOR [33], by taking advantages of the broadcast nature of the wireless medium and allowing multiple neighbors that overhear the transmission to participate in forwarding data, it can improve the reliability of data forwarding. In Probabilistic and Opportunistic Flooding Algorithm (POFA) [34], by adopting the controlled transmissions, it can achieve a target reliability on each hop of data forwarding. In Reference [35], a data transmission schemes named Reliable Proliferation Routing with low Duty Cycle (RPRDC) is proposed, by integrates three core concepts namely reliable path finder, a randomized dispersity, and forwarding, it improves the success rate of packet forwarding. In addition, both of them consider unreliable wireless links when making the routing decision. In this work, the performance of the proposed scheme is compared with that of ExOR, POFA and RPRDC in terms of the determined performance metrics, (i) Packet Delivery Ratio (PDR), (ii) Energy Consumption (EC), and (iii) Network Lifetime (NL).
5.2. Evaluation Results
5.2.1. Packet Delivery Ratio
In this work, the PDR is defined as the ratio of packets received by the mobile sink to packets sent by the sensor nodes, and three scenarios are designed to conduct simulations to evaluate the PDR based on the long radio range ${R}_{l}$ of the mobile sink and the network density. In these experiments, we consider two cases that a node will drop the data packet, first, a node cannot find a forwarder due to the asynchronous working–sleeping cycle strategy for sensor nodes. Second, when data packets are forwarded between two adjacent nodes, a node enters sleeping status and causes transmission failure. As shown in Figure 9, the PDR in POFA increases as the long radio range ${R}_{l}$ of the mobile sink increases while it decreases in the proposed scheme, ExOR and RPRDC. The reason is that when ${R}_{l}$ increases, more nodes under the data collection scope will join the data collection process, and due to the network density keeps unchanged, the number of hops these newly joined nodes takes to forward their sensing data to the mobile sink increases correspondingly, which decreases the success rate of delivering the sensing data in the proposed scheme, ExOR and RPRDC. However, in POFA, the sensing data of a node will be forwarded along multiple paths until one of them connected to the mobile sink, as the number of nodes in this scope increase, the number of the possible paths increases, which improves the success rate of data delivering.
From the figure it can be seen that, the proposed scheme performs better PDR (almost one time and 72%) than that in ExOR and RPRDC as ${R}_{l}$ expands, the reason is that, on one hand, a node in the proposed scheme always forwards its sensing data along its optimal path that keeps the maximum PC. On the other hand, the routing protocol in the scheme can adjust the optimal path when it is disconnected due to node sleeping, which can further improve its PDR.
As shown in Figure 10, the PDR increases as the network density increases, the proposed scheme achieves almost 130% and 102% improvement in PDR over ExOR and RPRDC, respectively. Since the number of working nodes in network increases with the increased network density, it can improve the network connectivity clearly and therefore increase the overall PDR.
The proposed scheme outperforms POFA when the number of nodes in network is less than 900, but as the network density increases continuously, POFA performs better. This can be explained by that in POFA, a node needs to select multiple forwarders to achieve its target reliability, and the improvement of network connectivity increases the possibility of achieving this target reliability rapidly, which further improves its PDR. The main reason that the proposed scheme is always performs better than ExOR and RPRDC can be explained by the different routing strategies they employed. In RPRDC, the routing is divided into random dispersion and reliability path exploration, of which the packet reception rate, residual energy, and link quality of the node are considered, but it lacks the global information between the node and the sink. Furthermore, ExOR adopts the metric ETX associated with the link connectivity in network, to reflect the expected transmission times required to forward a data from a node to the mobile sink, and it selects a node with a minimum value of ETX as the forwarder during the data forwarding. However, in the proposed scheme, the metric PC reflects the connectivity of a path directly and the routing protocol can guarantee the data always be forwarded along a path with a max value of PC, so it achieves a higher success rate of data delivering than that in ExOR and RPRDC.
In the next scenario, we conduct a simulation to evaluate the performance of these four algorithms in PDR with a large enough data collection scope, in which the mobile sink keeps stationary in the center of network and the long radio range ${R}_{l}$ of the mobile sink is set to 283 m so that it can cover the whole network.
Figure 11 shows that as the network density increases, the PDR in the proposed scheme first decreases and then increases. The main reason is that increasing the number of nodes not only improves the network connectivity, but also increases the number of packets sent by source nodes, when the number of nodes in network increases from 600 to 1100, the increased packets sent by the source nodes decreases its PDR, however, as the increased number of nodes is greater than 1100, the improved network connectivity increases its PDR.
The PDR in POFA is always higher than that in the proposed scheme, ExOR and RPRDC, which can be explained by that, in POFA, this large data collection scope increases the number of possible paths for a source node to send its sensing data to the mobile sink, which improves the success rate of data delivering greatly. However, in the proposed scheme, ExOR and RPRDC, this large scope increases the number of hops the nodes that near the edge of the data collection scope takes to forward their sensing data, which decreases the success rate of data delivering greatly. In addition, the proposed scheme achieves a better performance in PDR than that in ExOR and RPRDC. Since the node adopts the intermittent communication mode, the delay of data delivering in each hop will affect the success rate of this forwarding, especially when the node is far away from the mobile sink. In ExOR, a node needs to run a protocol to explore the neighbors that received the data and from which to select forwarders, therefore it delays the data forwarding and then decreases the success rate of data delivering. During the reliable path exploration phase of RPRDC, a node needs to calculate the reliability of its neighbors to select the optimal forwarder, thus causing additional delay. Compared with ExOR and RPRDC, in the proposed scheme, the path for a source node to forward its sensing data is calculated in advance, so it has a shorter delay in each hop of data forwarding, which is the main reason that it can achieve almost five times and four times improvement in PDR over ExOR and RPRDC, respectively. In addition, our proposed routing protocol can change the current path adaptively when it is failed, thus blocks the decline of the PDR.
5.2.2. Energy Consumption
In this section, two scenarios are designed to evaluate the performance of EC in network. In the first scenario, we evaluate the EC for a source node to forward its sensing data to the mobile sink successfully. In the second scenario, we evaluate the total EC in network varies by time.
Figure 12 shows the EC for a source node to forward its sensing data to the mobile sink varies by the network density. In this work, we select the source node whose distance to the mobile sink is half of ${R}_{l}$ to conduct this experiment and the EC in this work only reflects the energy consumed by the forwarding process when the source node sends its sensing data to the sink successfully.
Lots of tests show that the EC increases as the network density expands and it increases more obviously in POFA than that in the proposed scheme, ExOR and RPRDC. The main reason is that the increased number of nodes increases the hops a source node takes in date delivering, as shown in Figure 13, which further increases the EC.
The EC in the proposed scheme is slightly higher than that in ExOR, and they are much lower than that in POFA. The reason is that, in POFA, its data forwarding strategy increases its PDR by selecting multiple forwarders but at the expense of energy, as network density expands, the improved network connectivity increases the success rate of each hop of data forwarding, which further increases hops and the times of reliability calculation it takes, so that the EC in it is always high. In the proposed scheme, the neighbor of a node increases as the network density increases, when a node on the optimal path adjusts the path due to the next hop node is in sleeping status, it needs to select an optimal neighbor that can maximized the PC of the path from it to the sink, this process increases the times of calculation by using the PCs of all neighbors, which further increases the EC.
Figure 14 shows the EC for a source node to forward its sensing data to the mobile sink grows with the long radio range ${R}_{l}$ of the mobile sink increases. The node whose distance to the mobile sink is half of ${R}_{l}$ is selected as the source node. With the increasing of ${R}_{l}$, the distance from the source node to the mobile sink increases, so the hops it takes in data forwarding also increases, as shown in Figure 15, which further increases the EC.
The EC in the proposed scheme is slightly higher than that in ExOR, but they are much lower than that in POFA. In POFA, each node selects multiple forwarders to achieve the target reliability until one of them connected to the mobile sink, the number of forwarders increases greatly as ${R}_{l}$ expands, so the increased data delivering and reliability calculation increases its EC. In the proposed scheme, with the expansion of ${R}_{l}$, the network density keeps unchanged but the distance from the source node to the mobile sink increases, the success rate of data delivering decreases, which further increases the times of calculating the PC to adjust the data forwarding path. This path adjustment scheme can improve its PDR but increase its EC.
Figure 16 shows that the total EC increases by time, in which the mobile sink launches multiple data collection tasks anywhere in network randomly, the proposed scheme consumes 55%, 80% and 61% less energy than that in ExOR, POFA and RPRDC. Here, the energy consumption of nodes is calculated regardless of whether source nodes send their sensing data to the sink successfully or not.
In the proposed scheme, the total EC is mainly consist of the energy consumption caused by the probe message forwarding and the sensing data delivering. By employing the EOH metric, the proposed energy efficient probe message forwarding mechanism can decrease the energy consumption for forwarding the probe message. By analyzing these messages, the mobile sink could construct the spanning tree and broadcast it, so the source node could obtain its optimal path with the max PC to the sink before sending its sensing data. Therefore, during data delivering, a node can save the energy consumed by selecting the forwarders.
5.2.3. Network Lifetime
In this section, the mobile sink can launch multiple data collection tasks anywhere in network randomly, and we conduct simulations to evaluate the performance of NL according to the number of death nodes, of which the NL is defined as the lifetime for 25 percent nodes that exhaust their energy in network.
In Reference [36], the authors indicated that the death of 25 percent nodes in network could block the WSNs operation greatly, in terms of both the imminent topological disruptions and the decrease of the sensor field’s coverage, which could further hinder the data delivering heavily.
Figure 17 shows the number of death nodes increases by time. In this work, the mobile sink moves randomly in network and launches a data collection task with a period set to 600 s. When the task is completed, the sink could move to other locations in network randomly to continue another data collection.
In POFA, the node dies faster than that in the proposed scheme, ExOR and RPRDC. The main reason is that it always seeks to improve the reliability of data transmission in each hop, but at the expense of energy consumption, which speeds up the death of nodes. In addition, the time of the death of 200 nodes (25 percent nodes in network) in the proposed scheme is longer than that in ExOR, POFA and RPRDC. The reason is that, despite the nodes on the optimal paths may take more data forwarding tasks, which can reduce their lifetime and furthermore decreases the network connectivity. However, by calculating the optimal path for nodes in advance to forward the data, and employing the flexible routing protocol that could change the data forwarding path adaptively in the low connectivity network, the proposed scheme consumes less energy of nodes, which is also the reason that as the number of the data collection tasks launched by the mobile sink increases, the time for the death of the same number of nodes in the proposed scheme is getting longer than that in ExOR, POFA and RPRDC.
6. Discussion
The proposed data collection scheme is also applicable to the scenario where multiple mobile sinks employed in network simultaneously, by considering the distance between the mobile sinks, a feasible scheme is proposed. To show how it works in detail, two mobile sinks are taken as an example, as shown in Figure 18, in which ${R}_{l}\_1$, ${R}_{l}\_2$, ${R}_{l}\_3$ and ${R}_{l}\_4$ are the long radio ranges of ${v}_{\mathrm{sin}k1}$, ${v}_{\mathrm{sin}k2}$, ${v}_{\mathrm{sin}k3}$ and ${v}_{\mathrm{sin}k4}$. The mobile sinks move in network randomly, and according to the distance between them, there will be two data collection cases, as shown in Figure 18a,b, respectively.
In Figure 18a, the distance between the two mobile sinks satisfies:
$$d({v}_{\mathrm{sin}k1},{v}_{\mathrm{sin}k2})\ge {R}_{l}\_1+{R}_{l}\_2.$$
In this scenario, the mobile sinks could use the proposed data collection scheme to perform their own data collection tasks directly.
In Figure 18b, the distance between the two mobile sinks satisfies:
$$d({v}_{\mathrm{sin}k3},{v}_{\mathrm{sin}k4})<{R}_{l}\_3+{R}_{l}\_4.$$
In this case, the data collection scope of the two mobile sinks are overlapped. To clarify the data delivering destination for nodes within the overlapping area, when a node receives a tag message for the first time, it takes this SID of a mobile sink included in the message as its data forwarding destination until the data collection task is completed, and during this process, it neglects other mobile sinks’ data collection task even if it receives the tag messages they broadcast.
This scheme increases the flexibility of data collection, and by using multiple mobile sinks, it can collect data from multiple network regions simultaneously, which is applicable in prospect applications.
7. Conclusions
In this paper, we propose a novel data collection scheme based on opportunistic node connections in network with a mobile sink, which can be used in smart industrial fields. In the scheme, the mobile sink can launch a data collection task anywhere in network at any time by broadcasting a tag message, a node that receives this message can forward its probe message that includes its source information to the mobile sink by using the energy efficient probe message forwarding mechanism to minimize the overall energy consumption. On receiving these messages, the mobile sink first adopts the random graph theory to constructs an opportunistic connection random graph, then calculates the optimal path from itself to each node in this graph, hence a spanning tree is generated where the mobile sink is the root node, and it finally broadcasts this spanning tree to all nodes under its long radio range so that they can obtain the optimal paths from themselves to the mobile sink. Accordingly, a routing protocol which adapts to different nodes operating status is proposed to improve the reliability of data transmission. The simulation results show that the proposed scheme works better concerning the packet delivery ratio, energy consumption and network lifetime.
The possible future work are, first, studying the synergy between mobile sinks, and exploring the impact of the comprehensive factors such as the number of mobile sinks and the their long radio ranges on data collection efficiency. Second, studying the energy efficient crosslayer protocol design [37], so that it could be used more widely. Third, inspired by work in Reference [38], of which the authors proposed a fog structure composed of multiple mobile sinks that act as fog nodes to bridge the gap between WSNs and the Cloud, it can consider using mobile sinks to upload data to the cloud and use their powerful computing and storage capability to improve the efficiency of constructing the OCRG and calculate the optimal paths.
Author Contributions
Formal analysis, X.H.; Investigation, Z.P.; Methodology, G.Y. and X.H.; Project administration, G.Y.; Software, Z.P.
Funding
The research was funded by [National Natural Science Foundation of China] grant number [61602305], [61802257], and [61572325], [Natural Science Foundation of Shanghai] grant number [18ZR1426000], jointly.
Acknowledgments
The authors would like to appreciate all anonymous reviewers for their insightful comments and constructive suggestions to polish this paper in high quality.
Conflicts of Interest
The authors declare no conflict of interest.
References
 Shu, L.; Chen, Y.; Sun, Z.; Tong, F.; Mukherjee, M. Detecting the Dangerous Area of Toxic Gases with Wireless Sensor Networks. IEEE Trans. Emerg. Top. Comput. 2017, 99, 1. [Google Scholar] [CrossRef]
 Luo, J.; Panchard, J.; Piórkowski, M.; Grossglauser, M.; Hubaux, J.P. MobiRoute: Routing Towards a Mobile Sink for Improving Lifetime in Sensor Networks. In Proceedings of the International Conference on Distributed Computing in Sensor Systems, San Francisco, CO, USA, 18–20 June 2006. [Google Scholar]
 Faheem, Y.; Boudjit, S.; Chen, K. Data dissemination strategies in mobile sink Wireless Sensor Networks: A survey. In Proceedings of the 2nd IFIP Conference on Wireless Days, Paris, France, 15–17 December 2009. [Google Scholar]
 Perillo, M.; Cheng, Z.; Heinzelman, W. An analysis of strategies for mitigating the sensor network hot spot problem. In Proceedings of the International Conference on Mobile and Ubiquitous Systems: Networking and Services, San Diego, CA, USA, 17–21 July 2005. [Google Scholar]
 Han, G.; Yang, X.; Liu, L.; Zhang, W. A Joint Energy Replenishment and Data Collection Algorithm in Wireless Rechargeable Sensor Networks. IEEE Internet Things J. 2017, 99, 1. [Google Scholar] [CrossRef]
 Jia, Y.; Zhou, Z.; Chen, F.; Duan, P.; Guo, Z.; Mumtaz, S. A NonIntrusive Cyber Physical Social Sensing Solution to People Behavior Tracking: Mechanism, Prototype, and Field Experiments. Sensors 2017, 17, 143. [Google Scholar] [CrossRef] [PubMed]
 Alfayez, F.; Hammoudeh, M.; Abuarqoub, A. A survey on MAC protocols for dutycycled wireless sensor networks. Procedia Comput. Sci. 2015, 73, 482–489. [Google Scholar] [CrossRef]
 Divya, P.; Haripriya, K. An Energy Efficient Link Stability Based Routing Scheme for Wireless Sensor Networks. In Proceedings of the International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 6–8 April 2017. [Google Scholar]
 Lai, Y.; Lin, Z. Data Gathering in Opportunistic Wireless Sensor Networks. Int. J. Distrib. Sens. Netw. 2012, 2012, 1319–1322. [Google Scholar] [CrossRef]
 Ghadimi, E.; Landsiedel, O.; Soldati, P.; Duquennoy, S.; Johansson, M. Opportunistic Routing in Low DutyCycle Wireless Sensor Networks. ACM Trans. Sens. Netw. 2014, 10, 1–39. [Google Scholar] [CrossRef][Green Version]
 Erdős, P.; Rényi, A. On Random Graphs I. Publ. Math. 1959, 4, 3286–3291. [Google Scholar]
 Vu, T.M.; SafaviNaini, R.; Williamson, C. On Applicability of Random Graphs for Modeling Random Key Predistribution for Wireless Sensor Networks. In Proceedings of the 12th International Symposium on SelfStabilizing Systems, New York, NY, USA, 20–22 September 2010. [Google Scholar]
 Ren, Y.; Qin, Y.; Wang, B. A random geometric graph coverage model of wireless sensor networks. In Proceedings of the IET International Conference on Wireless, Mobile and Multimedia Networks, Hangzhou, China, 6–9 November 2006. [Google Scholar]
 Dong, J.; Chen, Q.; Niu, Z. Random graph theory based connectivity analysis in wireless sensor networks with Rayleigh fading channels. In Proceedings of the AsiaPacific Conference on Communications, Bangkok, Thailand, 18–20 October 2007. [Google Scholar]
 Fu, L.; Wang, X.; Kumar, P.R. Optimal determination of sourcedestination connectivity in random graphs. In Proceedings of the ACM International Symposium on Mobile Ad Hoc Networking and Computing, Philadelphia, PA, USA, 11–14 August 2014. [Google Scholar]
 Jaichandran, R.; Irudhayaraj, A.A.; Raja, J.E. Effective strategies and optimal solutions for Hot Spot Problem in wireless sensor networks (WSN). In Proceedings of the International Conference on Information Sciences Signal Processing and Their Applications, Kuala Lumpur, Malaysia, 10–13 May 2010. [Google Scholar]
 Yang, G.; Liu, S.; He, X.; Xiong, N.; Wu, C. Adjustable Trajectory Design Based on Node Density for Mobile Sink in WSNs. Sensors 2016, 16, 2091. [Google Scholar] [CrossRef] [PubMed]
 Kaswan, A.; Singh, V.; Jana, P.K. A novel multiobjective particle swarm optimization based energy efficient path design for mobile sink in wireless sensor networks. Pervasive Mob. Comput. 2018, 46, 122–136. [Google Scholar] [CrossRef]
 Yang, G.; Wang, L.; Jiang, L.; He, X. Biased trajectory dissemination of uncontrolled mobile sinks for event collection in wireless sensor networks. Int. J. Distrib. Sens. Netw. 2016, 12, 1–14. [Google Scholar] [CrossRef]
 Lalouani, W.; Younis, M.; Badache, N. Interconnecting isolated network segments through intermittent links. J. Netw. Comput. Appl. 2018, 108, 53–56. [Google Scholar] [CrossRef]
 Cha, S.; Talipov, E.; Cha, H. Data delivery scheme for intermittently connected mobile sensor networks. Comput. Commun. 2013, 36, 504–519. [Google Scholar] [CrossRef]
 Guntupalli, L.; MartinezBauset, J.; Li, F.Y. Performance of Frame Transmissions and EventTriggered Sleeping in DutyCycled WSNs with ErrorProne Wireless Links. Comput. Netw. 2018, 134, 215–227. [Google Scholar] [CrossRef]
 Ng, K.P.; Tsimenidis, C.; Woo, W.L. CSync: Counterbased synchronization for dutycycled wireless sensor networks. Ad Hoc Netw. 2017, 61, 51–64. [Google Scholar] [CrossRef]
 Montieri, A.; Montieri, A.; Persico, V.; Pescap, A. A sleep scheduling approach based on learning automata for WSN partialcoverage. J. Netw. Comput. Appl. 2017, 80, 67–78. [Google Scholar]
 Mukherjee, M.; Shu, L.; Hu, L.; Hancke, G.P.; Zhu, C. Sleep Scheduling in Industrial Wireless Sensor Networks for Toxic Gas Monitoring. IEEE Wirel. Commun. 2017, 99, 2–8. [Google Scholar] [CrossRef]
 Kenniche, H.; Ravelomananana, V. Random Geometric Graphs as model of Wireless Sensor Networks. In Proceedings of the International Conference on Computer and Automation Engineering (ICCAE), Singapore, 26–28 February 2010. [Google Scholar]
 Norman, J.; Joseph, P. A New Graph Model for Heterogeneous WSN. Commun. Comput. Inf. Sci. 2011, 197, 187–196. [Google Scholar]
 Ren, Y.; Zhang, Z. A Weighted Network Topology Model of WSN Based on Random Geometric Graph Method. Adv. Mater. Res. 2014, 962–965, 2898–2902. [Google Scholar] [CrossRef]
 Ding, L.; Guan, Z.H. Modeling wireless sensor networks using random graph theory. Physica A 2008, 387, 3008–3016. [Google Scholar] [CrossRef]
 Fu, L.; Wang, X.; Kumar, P.R. Are We Connected? Optimal Determination of SourceDestination Connectivity in Random Networks. IEEE/ACM Trans. Netw. 2017, 25, 751–764. [Google Scholar] [CrossRef]
 Luo, J.; Hu, J.; Wu, D.; Li, R. Opportunistic Routing Algorithm for Relay Node Selection in Wireless Sensor Networks. IEEE Trans. Ind. Inform. 2015, 11, 112–121. [Google Scholar] [CrossRef]
 Matlab. R2014b Simulator; MathWorks: Natick, MA, USA, 2014. [Google Scholar]
 Morris, R.; Morris, R. ExOR: opportunistic multihop routing for wireless networks. In Proceedings of the Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications, Philadelphia, PA, USA, 22–26 August 2005. [Google Scholar]
 Chang, D.; Cho, K.; Choi, N.; Kwon, T.T.; Choi, Y. A probabilistic and opportunistic flooding algorithm in wireless sensor networks. Comput. Commun. 2012, 35, 500–506. [Google Scholar] [CrossRef]
 Venkatesha; Ashwini, T.N.; Akshay, A.L.; Tejaswi, V.; Venugopal, K.R.; Iyengar, S.S.; Patnaik, L.M. RPRDC: Reliable Proliferation Routing with low Dutycycle in Wireless Sensor Networks. Procedia Comput. Sci. 2015, 54, 37–46. [Google Scholar] [CrossRef]
 Tunca, C.; Isik, S.; Donmez, M.Y.; Ersoy, C. Ring Routing: An EnergyEfficient Routing Protocol for Wireless Sensor Networks with a Mobile Sink. IEEE Trans. Mob. Comput. 2015, 14, 1947–1960. [Google Scholar] [CrossRef]
 Wang, G.; Wu, J.; Zheng, Y. Crosslayer design of energy efficient coded ARQ systems. In Proceedings of the Global Communications Conference (GLOBECOM), Anaheim, CA, USA, 3–7 December 2012. [Google Scholar]
 Wang, T.; Zeng, J.; Lai, Y.; Cai, Y.; Tian, H.; Chen, Y.; Wang, B. Data collection from WSNs to the cloud based on mobile Fog elements. Future Gener. Comput. Syst. 2017. [Google Scholar] [CrossRef]
Figure 1.
Illustration of a Wireless Sensor Network (WSN) with opportunistic node connections, in which sensor nodes adopt an asynchronous working–sleeping cycle strategy to save energy.
Figure 2.
The asynchronous working–sleeping cycle strategy for sensor nodes: 0 for the sleeping status and 1 for the working status.
Figure 3.
The illustration of four cases when v_{m} receives the probe message, (a) v_{m} receives the probe message for the first time; (b) v_{m} has forwarded this message; (c) only the neighbor v_{p} of v_{m} is in working status; (d) v_{m} has no neighbor.
Figure 4.
Comparison of the asynchronous working–sleeping cycle strategy for different nodes, where 0 represents the sleeping status and 1 represents the working status.
Figure 5.
Link connectivity between four node pairs (${v}_{1}$ is adjacent to ${v}_{2}$, ${v}_{3}$ is adjacent to ${v}_{4}$, ${v}_{5}$ is adjacent to ${v}_{6}$, ${v}_{7}$ is adjacent to ${v}_{8}$) varies by the max status transition frequency of nodes, in which the whole working time of nodes are set to 80 percent of ${T}_{p}$.
Figure 7.
The process of constructing the spanning tree step by step, in which a node with max value of PC in set U will be transferred to set K, (a) an OCRG with seven nodes; (b) initialization; (c) step 1: transferring ${v}_{1}$; (d) step 2: transferring ${v}_{2}$; (e) step 3: transferring ${v}_{6}$; (f) step 4: transferring ${v}_{3}$; (g) step 5: transferring ${v}_{5}$; (h) step 6: transferring ${v}_{4}$; (i) a spanning tree with ${v}_{\mathrm{sin}k}$ as the root node.
Figure 8.
The process of a source node ${v}_{s}$ forwards its sensing data to the mobile sink along the optimal path on the spanning tree.
Figure 9.
The Packet Delivery Ratio (PDR) varies with the long radio range ${R}_{l}$ of the mobile sink, in addition, the number of nodes (N) is 1100.
Figure 12.
The Energy Consumption (EC) varies by the network density, in addition, ${R}_{l}$ = 110 m.
Figure 14.
The EC varies by the long radio range ${R}_{l}$ of the mobile sink, in addition, the number of nodes (N) is 1100.
Figure 15.
The Hops varies by the long radio range ${R}_{l}$ of the mobile sink, in addition, the number of nodes (N) is 1100.
Figure 16.
The total EC varies by time in network, in addition, ${R}_{l}$ = 110 m, the number of nodes (N) is 1100.
Figure 17.
The number of death nodes varies with time, in addition, ${R}_{l}$ = 90 m, the number of nodes (N) is 800.
Figure 18.
The illustration of two cases when two mobile sinks collect data in network simultaneously, (a) the data collection scopes of the mobile sinks are nonoverlapped, (b) the data collection scopes of mobile sinks are overlapped.
Symbols  Description 

r  Radio range for sensor nodes 
${R}_{l}$  Long radio range for the mobile sink 
${R}_{s}$  Short radio range for the mobile sink 
${v}_{s}$  Source node 
${v}_{\mathrm{sin}k}$  Mobile sink 
N  Number of nodes in a data collection scope 
∅  Empty set 
Message Source  Source Information  Sink ID  Forwarders ID  EOH 
Step  $\mathbf{PC}\left[{\mathit{v}}_{1}\right]$  $\mathbf{PC}\left[{\mathit{v}}_{2}\right]$  $\mathbf{PC}\left[{\mathit{v}}_{3}\right]$  $\mathbf{PC}\left[{\mathit{v}}_{4}\right]$  $\mathbf{PC}\left[{\mathit{v}}_{5}\right]$  $\mathbf{PC}\left[{\mathit{v}}_{6}\right]$ 

Initialization  0.7  0.6  0.4  0  0  0 
1  0.7  0.6  0.4  0  0  0.441 
2  0.7  0.6  0.4  0.228  0.228  0.441 
3  0.7  0.6  0.4  0.228  0.318  0.441 
4  0.7  0.6  0.4  0.228  0.318  0.441 
5  0.7  0.6  0.4  0.228  0.318  0.441 
6  0.7  0.6  0.4  0.228  0.318  0.441 
The value with bold format is the max value of PC in set U.
Parameters  Values 

Network Size  400 × 400 m^{2} 
Number of the Mobile Sink  1 
Mobility Pattern  Randomly 
Duration for a Data Collection Period  600 s 
Communication Range for Sensor Nodes  20 m 
Data Packet Size  1024 bits 
Probe Message Size  120 bits 
Target Reliability in Probabilistic and Opportunistic Flooding Algorithm (POFA)  0.6 
Initial Energy of Nodes  2 J 
Buffer Size of Nodes  1024 bits 
${E}_{elec}$  20 × 10^{−7} J/bit 
${\epsilon}_{amp}$  10 × 10^{−9} J/bit/m^{2} 
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).