1. Introduction
During the last two decades, numerous wireless sensor networks (WSN) have been deployed for various activities [
1,
2,
3,
4,
5,
6]. Due to the continuous technological progress in electronics [
7], reasonably inexpensive small nodes with high capabilities are now available [
8,
9]. In particular, the appearance on the market of small nodes with capabilities of energy harvesting (i.e., nodes capable of recharging their battery by acquiring energy from external sources) caused a revisit of fundamental networking problems (such as routing, medium access control, information dissemination, facility placement) from a new perspective [
10,
11,
12].
WSN with energy-harvesting capabilities have lost their inherent deterministic reliability provided by batteries and need to operate in the uncertainty of the availability of natural resources. This trade-off of power over efficiency is more and more observed in technological advances; therefore there is a need for further investigation and reconsideration of traditional approaches in order to keep up with this progress. The stochastic nature of these modern networks challenges the application of the most widely-used methods for the dissemination (and similarly the collection) of information (e.g., flooding). New mechanisms have been developed and used for this purpose [
13], one being the random walker [
14,
15,
16,
17].
Information propagation in various networks is crucial in order to perform a computational task, especially in the case of WSN where nodes are at a distance from each other, and therefore, they are obligated to communicate with one or more of the rest of the network nodes. Nowadays, technology has enabled the application of such devices in many fields. Taking into account the cost of energy and time for the proper operation of these networks, there is a strong need for efficient methods and approaches regarding the spread of information among the network’s nodes.
One of the known advantages of the random walker method is that during the process, it makes multiple revisits to the nodes at different times, until it fully covers the network. This fact increases the probability of a node to accept the visit of a random walker during the time period that it operates in active mode. In this study, the network topology is represented as random geometric graphs, since this graph category is considered suitable for modeling wireless sensor networks [
18]. The topologies of geometric random graphs are also found in real-world systems, such as the thalamo-cortical system of the cat [
19] and, in general, in the cortical system of living organisms [
20,
21].
In this work, the focus is on information dissemination using random walks. A random walker probabilistically chooses the next neighboring node to visit, independently of any previous visits. The probabilistic nature of this mechanism is suitable for dealing with the problem of nodes operating or not from time to time due to the energy availability. This mechanism is expected to probabilistically cover the whole network (i.e., reach all network nodes) using significantly less messages (one random walker movement corresponds to one message) in comparison to the use of deterministic flooding at the expense of increased termination time [
22].
In the following sections, a novel analytical approach is proposed, showing how coverage is developed in relation to the number of random walker’s steps. First, the probability of a random walker approaching a node for the first time at each step is calculated. This probability is subsequently, used to calculate the number of nodes that had been visited by the random walker at least once, depending on the number of steps. The analytical results indicate that the evolution of the network coverage is independent of its density of connections. Only in marginally-sparse topologies, there is a significant time lag, as provided by the aforementioned analysis of this work. Extended simulations provide results that sufficiently support the analytical expectations.
Another contribution of this paper corresponds to additional results considering the walker’s spatial movement and its associated neighborhood, producing useful analytical results that subsequently enable the study of network coverage. These results are also validated through experimentation. Finally, the accordance between analytical and numerical results is shown by suitably illustrated results.
The structure of the rest of this paper is as follows:
Section 2 briefly covers recent works related to information dissemination using random walkers. In
Section 3, the evolution of coverage is analytically studied. This is the part of the paper that contains its main contribution.
Section 4 includes the simulation outcomes that confirm the analytical results of the previous section, and finally, the conclusions are drawn in
Section 5. There are also three appendices containing the detailed proofs for the corresponding theorems and corollaries that lie within the main text.
2. Related Work
The choice of the model of a geometric random graph to represent WSN and ad hoc networks is quite common in the literature, e.g., [
16,
23,
24,
25,
26,
27,
28,
29]. One of the most most comprehensive studies on geometric random graphs can be found in [
18] by Penrose. In addition, in [
30], there is a thorough study on geometric graphs with analytic results (studying graphs of higher dimensions, as well). In this work, Dall and Christensen investigate mainly the radius threshold to achieve critical connectivity.
The throughput of a mobile ad hoc network powered by energy harvesting is studied and analyzed by Huang [
31], using a stochastic, geometric approach. Regarding information dissemination, probabilistic flooding is a popular approach (see for example [
32,
33,
34,
35]). Random walkers have been extensively examined in the literature. In particular, in [
14], a mathematical framework for random walks on temporal networks is presented by Hoffmann et al. using an approach that provides a compromise between abstract, but unrealistic models and data-driven, but non-mathematical approaches.
Starnini et al. [
15] describe a study on how random walks unfold on temporally-evolving networks with the use of empirical dynamical networks of contacts between individuals. Tzevelekas et al. in [
16] present the same problem addressed in this work with the technique of a random walker with jumps. Oikonomou et al. in [
25] investigate the use of multiple random walkers and related replication mechanisms.
Recently, Jamoos in [
36] studied some network properties of WSNs, proposing an improved decision fusion model in order to optimize the energy and bandwidth consumption. Broutin et al. [
37] explore random geometric graphs and the associated problem of connectivity. In particular, they use the so-called random geometric “irrigation” graphs, and then, they provide insightful results on the density of these graphs for a chosen radius. Mao in [
38] discusses the behavior of the phase transition of connectivity for geometric random graphs.
Random hypergraphs are considered by Lunagómez et al. [
39], especially their geometric representations. The authors are concentrated on the probability distribution and its effect on the network topology (and therefore, its properties). Recently, Kalhe in [
40] revisits reviewed related literature on random geometric graphs with a focus on random simplicial complexes. In one of the most recent works related to random walkers on graphs, Estrada et al. [
41] describe a random walker model where the agent is able to perform long-range hops. This extension seems to reduce the hitting time in comparison to the standard walker.
Lima and Barros [
29] present an algorithm that improves the data-gathering performance by generating constrained random walks. Zuniga et al. [
17] study non-revisiting random walks. The work of Mabrouki et al. [
42] provides an analytical model to evaluate the performance of a random walk-based routing protocol for wireless sensor networks with special attention to two metrics: the mean system data gathering delay and the induced spatial distribution of energy consumption.
A forwarding protocol based on biased random walks is proposed combined with a lukewarm potato forwarding protocol that uses local information about neighbors, and their next active period to make forwarding decisions is presented by Beraldi et al. [
24]. A routing protocol based on a random walk is proposed by Tian et al. [
43] that achieves load balancing without requiring global location information. Boyd et al. [
23] present a theoretical approach of random walkers in geometric random graphs that are developed in a
d-dimensional torus.
These works, however, do not take into account network coverage as the evolution of time, apart from some special topologies (e.g., fully-connected networks considered in [
25]). The work in [
12] by Huang and Tseng discuss thoroughly the sensing ranges of sensors in wireless sensor networks. A similar work to this one is described by Mian et al. [
44], where the authors propose the so-called “attenuation” metric that shows the speed of the random walker’s movement. Cover time is examined by Avin and Ercal [
45]. There are interesting theoretical results regarding the achieved optimal cover time with high probability, providing tight lower bounds from the chosen radius of the geometric graphs.
The study of the network coverage achieved by a random walker acting on it constitutes the main contribution of this work. Previous works had shown an analytical expression only for fully-connected networks [
25]. In this paper, an analytic solution is presented in response to the problem of network coverage achieved by a random walker, which applies to any connected network regardless of the density of its connections. The results presented in this work are in accordance with the former in the special case of the fully-connected network.
3. Analysis
In this work, the mechanism of the random walker was selected in order to study the information dissemination. A random walker can be seen as an entity, beginning at the initiator node, that chooses randomly (uniformly) to visit a one-hop neighbor of the node where it currently resides. Then, this “agent” continues in a similar manner until the entire network is covered (i.e., all nodes are visited by the walker).
In order to analytically model network coverage when a random walker is employed, the following assumptions take place. The network nodes are uniformly distributed on a plain area sized , that is a unit square. All considered networks are connected (a network is connected when there is a path between every pair of nodes). Each node of the network has the same transmission range .
The following notation is also used: N denotes the number of nodes on each network, and is a stochastic variable representing the number of nodes who have received at least one visit after t random walker’s steps. Each node has transmission range . Hence, the surface covered by its transmissions is (ideally) . Throughout this work, this surface is referred to as the node’s radius.
Given that nodes are uniformly distributed, the number of network nodes located in an area of region
is (on average)
. Thus, each network node will have on average
neighbors. The random walker’s spatial movement (i.e., the euclidean distance covered) on each step is on average
(the proof is in
Appendix A). This result is also confirmed later through simulations.
The mean spatial movement of a random walker from a position after
t steps is given by
, where
l is the Euclidean distance covered in each step [
46]. Thus, using the average random walker’s spatial movement on each step mentioned in the previous paragraphs, it holds that
and, consequently,
From the above Equation (
1), it follows that when
t ≤ 9, then
< 2
. Therefore, the neighborhood of the node visited by the random walker before
t ≤ 9 steps and the neighborhood of the node on which it lies now will overlap, and nodes on the corresponding overlapping surface are neighbors of both (see
Figure 1). The number of those nodes is analogous on average to the overlapping surface. The area of this surface
is given by the following theorem:
Theorem 1. On a random walker acting on a geometric random graph, the neighborhood of the node visited by the random walker before t time steps (where ) and the neighborhood of the node on which it lies now have an overlapping surface : In brief, Equation (
2) is used to calculate the common neighborhood of the currently visited node with the previously visited ones, choosing at each time step the node that corresponds to the value of
t (i.e., for
the node visited one time step before, for
the node visited two time steps before, and so on).
On this basis, each time the random walker chooses the next step node from the current set of neighbor nodes, i.e.,
nodes at
. Note that the random walker has already visited at least one of these nodes, in particular the previous node, which the random walker visited one time step before. The probability for the node that the random walker visited before
t (where
) steps to belong to this set is proportional to the fraction of the area of the overlapping surface to the node’s neighborhood surface
(see
Figure 1).
Let V indicate the number of neighboring nodes that have already been visited by the random walker.
Corollary 1. The expected value of V is approximately equal to 2.838.
Given the analysis so far, it is evident that the number of neighbors not visited in the first nine steps is
. This also holds when applied for any arbitrary starting point (i.e.,
) of the random walker and not necessarily for
. Simulation results presented later support this claim. Therefore, the probability
for the random walker to select a node that has not been visited during the last nine steps is given by the following equation:
Equation (
3) is the basis to calculate
. In particular, the number of network nodes that have received at least one random walker visit after
t steps is equal to the number of nodes that have been visited on the previous step, i.e.,
plus the probability that the next node to be visited has not been visited before. As shown in
Appendix D, the analytical expression of
is given by Equation (
4):
The following corollary expresses as a discrete function of the time step t with parameters the transmission range and the number of nodes N.
Corollary 2. Network coverage is given by: The ratio
of the network nodes that have been visited so far by the random walker over the total number of network nodes after every time step is calculated using Equation (
5).
Figure 2 depicts the evolution of
for a geometric random graph network of
and various values of
. For
, the network is marginally connected (i.e., the smallest value of
for which all nodes belong to the network with high probability) with the average number of links per node being
; thus, the curve is the lowest one (depicted with the red color). This is explained since
in Equation (
4) is much smaller than one. In all other cases where the average number of links per node is much greater (100, 500 and 1000),
, and the relevant curves are close to the results presented in [
25] i.e., Equation (
7).
Equation (
7) refers to a fully-connected network.
Theorem 2. Equation (
5)
is equivalent to Equation (
7)
for the case of a fully-connected network. The proof for this theorem can be found in
Appendix E.
Given Equation (
5), it is observed that network coverage
evolves almost independently of the network’s density of connections, since the square of the radius
is taken into account, which also lies in the denominator of the fraction. Only on marginally sparse networks, there is a distinct time lag, since in this case, the value of
is the minimum one. The analysis in this section resulted in Equations (
5) and (
6), which demonstrate the evolution of the network coverage using a random walker in relation to time (a walker’s step corresponds to a single time unit). These results are experimentally examined in the next section.
4. Simulation Results
In this section, indicative simulations are provided in order to validate the analytical results and confirm the applicability of the proposed modeling. The following simulations were made on a custom-made simulator. The simulator was developed in Python 3.0, using the SciPy and NumPy libraries, whereas the graphs were plotted using the Matplotlib library. Randomness was generated using the random number generator of Scipy (i.e., the Mersenne Twister pseudo-random number generator) with a different seed each time.
Simulations are performed on random geometric networks with 1000 and 10,000 nodes (see
Figure 3 for an indicative snapshot of a marginally-connected network). The geometric area chosen for the development of the networks is the 2D-torus as suggested by the literature (e.g., in [
23]). The networks assumed for simulation purposes are from marginally- to fully-connected (therefore, there are various values for the radius
), and on each of them, a random walker is employed. Furthermore, in
Figure 4, the mean number of neighbors for a network of 1000 nodes is depicted as a function of
. It is obvious that for each node, the longer the radius
was, the more (on average) neighbors it had.
To begin with, the average spatial movement of the random walker is tested on each step. This is described by the following equation:
where
is the average distance covered by the random walker.
The obtained simulation results of a random walker doing
steps on a network with
nodes and
are shown in
Figure 5, and as depicted, they are in accordance with Equation (
8). In particular, the equation’s result is 0.033, whereas the one derived from the simulation is 0.033.
Afterwards, Equation (
1) is evaluated considering a network with 1000 nodes and radius
. For this network, a random walker performed 100 steps, and on each step, the spatial displacement starting from the starting node is computed. The results are illustrated in
Figure 6 along with the analytic results of Equation (
1). From the depicted comparison, it seems that the analytical result comprehends the actual walker’s movement. Both curves are incremental in a similar manner, and although there are some spikes on the simulation curve, Equation (
1) successfully describes the underlying behavior.
In order to evaluate Equation (
3), the number of each node’s neighbors that were visited by the random walker in the last nine steps is monitored for multiple simulations. The simulations took place in 10 networks of
nodes with the random walker performing
steps for each one of them. The results confirmed the relevant analytical results (analytic calculation = 2.838, simulation results’ mean = 3.264, std = 1.718).
In the sequel, simulations are performed on networks with nodes and varied transmission range and in order to verify the main arguments of this work. For each value of , 10 networks are created, and on each one of them, a random walker runs for steps. On the corresponding illustrations the number of nodes that had received at least one random walker’s visit (i.e., ) is given on the vertical axis, while the number of random walker’s steps (t) lies on the horizontal.
Simulation results for 100 networks with
and the mean number of direct neighbors = 12 are presented in
Figure 7. On the other hand, in
Figure 8, results are depicted for networks with radius
and mean number of direct neighbors = 35, 158, 834, 997, respectively. In
Figure 8, it is shown that the coverage of the network is independent of the density of the connections.
From the aforementioned results and the associated figures, it seems that the previously stated arguments regarding the network coverage in geometric random graphs through the random walker mechanism are confirmed. Therefore, these simulation results are fully consistent with the analytical expectations presented in this work.
Geometric Networks on a Grid
In order to test the proposed analysis in extreme conditions, simulations are also conducted on grid geometric networks. A grid geometric network is composed of nodes deployed on a 2D torus grid. In particular, each node is located on the intersection of the grid in a 2D-torus surface. All considered networks are connected with
nodes each and varied transmission range. Simulation results are presented in
Figure 9 and
Figure 10.
As can be observed, even in these conditions, where the randomness of the network is repealed in the simulation, the results fully support the analytical model proposed in the main part of this work. Although this model was based on the random walker mechanism acting on randomly-generated graphs, the results of
Figure 9 and
Figure 10 showed that it is able to describe a deterministic variant, as well.
5. Conclusions
The random walker’s mechanism is used for information dissemination in order to exploit the probabilistic advantage in the emerging new network environment like energy-harvesting networks. In such environments, approaches like flooding are not suitable since nodes may stop operating from time to time due to energy unavailability resulting in temporarily disconnected networks. In such systems with stochastic behavior, the use of a random walker for the dissemination of information can be quite useful, reducing the number of messages among the nodes. Nevertheless, there is disadvantage with respect to the increased time required for the coverage of the network.
In this work, a handy analytical tool is given that enables the study of the coverage of a network by a random walker over time. The paper focuses on the study of network coverage achieved by a random walker acting on it, under a novel and original perspective. As the random walker acts on a given network, it inevitably revisits the network’s nodes due to the probabilistic nature of the random walker movement. This fact enables the overcoming of the problem of the unavailability of certain nodes from time to time because of a temporary lack of energy. The random walker probabilistically chooses the next neighboring node to visit, without considering any previous visits.
To sum up the contribution of this study, a novel analytical approach is described, presenting the coverage rate in relation to the number of random walker’s steps. In this direction, the probability for the random walker to reach a node for the first time at each step is calculated. Then, this probability value is used to find the number of nodes that had been visited by the random walker, which depends on the number of steps. There are also detailed results on the neighborhood surface in a random geometric graph, as well as some formulas on the average movement of the walker.
This analysis led to the conclusion that the coverage is independent of the network’s connection density (significant time lag is met only in marginally sparse topologies). The analytical findings presented in this work were also evaluated through simulation results in order to be properly verified. As was shown through indicative examples and figures, the presented analytical results were in accordance with the simulation outcomes, even for grid topologies.
Finally, the results of this work could trigger further investigation of the random walker mechanism in geometric graphs, under different assumptions and functionality modes. For example, one could consider the analytical version of the coverage when multiple walkers are employed, or when each node is weighted according to some metric, e.g., its “popularity” (i.e., the number of neighbors); for example, to investigate how the coverage would be affected if a two-hop distance estimation [
47] is considered.