An Efficient Routing Algorithm for Wireless Sensor Networks based on Centrality Measures

Stephanie Mwika Mbiya, Gerhard P. Hancke, Bruno SilvaActa 2020

Abstract

A routing algorithm for wireless sensor networks with a random distribution in a target observation area is proposed. In practice, selecting a path to route data from a source node to a destination node in a sensor network is very useful. An investigation is carried out on the combination of centrality measures and a routing algorithm to determine whether this can improve the route selected by the network's decision. Various measures of centrality are used and the network's response is evaluated with regards to the route selected by the network's decision when some nodes fail. It is demonstrated through simulations that controlling sensor nodes efficiently with a high measure of centrality gives a network the ability to resist node failures or attacks. Furthermore, this provides the network with high failure tolerance. In this paper, a routing algorithm that uses centrality measures to select the shortest path (a low-energy path between the source and destination node) is implemented.

Introduction

Wireless Sensor Networks (WSNs) are frequently deployed in harsh or inaccessible environments where nodes rely on limited battery power and are vulnerable to hardware failure or external attacks. A primary challenge in these networks is efficient routing—determining the most reliable and energy-efficient path to move data from a source sensor to a central base station (sink).

Traditional routing methods, such as Dijkstra’s algorithm, are effective at finding the mathematically shortest path but often require global knowledge of the network state. In resource-constrained WSNs, maintaining this global view is computationally expensive and generates significant message overhead. This paper proposes a dynamic routing approach that utilizes graph theory centrality measures to identify "important" nodes locally, enabling faster and more resilient data transmission.

Methodology and Algorithm Design

The proposed approach models the WSN as a graph where sensors are nodes and communication links are edges. Rather than a global "greedy" search, the algorithm focuses on structural properties to make routing decisions. Three primary centrality metrics are integrated:

  • Degree Centrality: Measures the number of direct connections a node has, identifying network "hubs."
  • Closeness Centrality: Quantifies how close a node is to all other nodes, facilitating rapid information spread.
  • Betweenness Centrality: Identifies nodes that act as critical bridges along the shortest paths between other node pairs.

The Dynamic Routing Process

Unlike static algorithms, this method iteratively selects "tentative" nodes based on their hop count (Snbr) and centrality status. By prioritizing nodes that are structurally significant, the algorithm can "hop" toward the destination more efficiently than a search that evaluates every possible vertex in the network.

Figure 6: Flowchart of the proposed dynamic routing algorithm using centrality measures.

Key Insights: Centrality as a Proxy for Reliability

A core finding of this research is that nodes with high Betweenness Centrality serve as the network's backbone. By efficiently managing these nodes, the network can maintain connectivity even during targeted attacks or random failures. The simulation results suggest that local knowledge of these "important" neighbors is often sufficient to find an optimal or near-optimal path without the overhead of global network mapping.

Figure 4: Comparison of centrality measures (Degree, Closeness, and Betweenness) across different network nodes used for routing decisions.

Results and Performance

The algorithm was benchmarked against Dijkstra’s algorithm using MATLAB simulations of randomly deployed nodes (up to 100 nodes in an $80m \times 80m$ field). Key results include:

  • Execution Speed: The proposed algorithm achieved an average execution time of $1.6 \times 10^{-4}$ seconds, significantly faster than Dijkstra’s $2.3 \times 10^{-4}$ seconds.
  • Worst-Case Stability: In complex topologies, Dijkstra’s execution time spiked to $4.9 \times 10^{-4}$ seconds, while the proposed algorithm remained stable at $2.7 \times 10^{-4}$ seconds.
  • Fault Tolerance: Prioritizing high-centrality nodes allowed the network to maintain stable decision-making and connectivity even as the percentage of failed nodes increased.

Conclusion

By leveraging the structural importance of nodes through centrality measures, the proposed dynamic routing algorithm offers a faster, more energy-efficient, and fault-tolerant alternative to traditional greedy algorithms. Future work will focus on incorporating real-world traffic metrics like Packet Delivery Ratio (PDR) and adapting the logic for mobile sink nodes in dynamic IoT environments.

Summary updated

BibTeX
@inproceedings{mbiya2020efficient,
  author = {Stephanie Mwika Mbiya and Gerhard P. Hancke and Bruno Silva},
  title = {{An Efficient Routing Algorithm for Wireless Sensor Networks based on Centrality Measures}},
  booktitle = {Acta},
  year = {2020},
  doi = {10.12700/aph.17.1.2020.1.5},
}
Figure