A Trusted Routing Scheme Using Blockchain and Reinforcement Learning for Wireless Sensor Networks

Jidian Yang, Shiwen He, Yang Xu, Linweiya Chen, Ju Ren2019

TL;DR

This paper proposes a novel routing scheme for Wireless Sensor Networks (WSNs) that combines blockchain and reinforcement learning to enhance security and efficiency. By leveraging blockchain for tamper-proof routing information and reinforcement learning for dynamic route selection, the scheme effectively mitigates malicious node attacks and improves network performance.

What Problem Does This Paper Address?

Wireless Sensor Networks (WSNs) are crucial for data collection in various applications, but their open and distributed nature makes them vulnerable to security threats, particularly during the multi-hop routing process. Traditional secure routing schemes struggle to dynamically identify and counter malicious nodes, leading to issues like black hole attacks where nodes drop packets, or false information injection that disrupts routing. Existing trust management systems often rely on centralized authorities or limited local information, which are insufficient for dynamic WSN environments. The paper aims to address these limitations by creating a decentralized, secure, and adaptive routing mechanism.

Methods

The proposed solution, termed RLBC (Reinforcement Learning and Blockchain-based) routing algorithm, integrates two key technologies:

  • Blockchain for Trusted Routing Information: A Proof-of-Authority (PoA) blockchain is used as a decentralized ledger to store and manage routing information. Each routing node registers on the blockchain, and its routing actions (e.g., sending packets, confirming receipt) are recorded as token transactions. This makes routing information traceable, tamper-proof, and globally accessible to all nodes, eliminating reliance on potentially untrusted neighbors.
  • Reinforcement Learning for Dynamic Route Selection: Each routing node employs a reinforcement learning model (specifically, Q-learning) to learn optimal routing policies. This model continuously queries the blockchain for up-to-date routing information (like timestamps and token transfer amounts) and uses this data to dynamically select the most trusted and efficient next-hop routing nodes. The reward mechanism in reinforcement learning is designed to penalize links associated with malicious behavior, thereby guiding the learning process towards secure paths.

Datasets

Not discussed in the paper. The experiments were conducted using a simulated environment with custom configurations for server nodes, routing nodes, and terminal devices.

Key Insights and Ideas

  • Decentralized Trust: Blockchain provides a robust foundation for trust in WSN routing by making information immutable and verifiable by all participants, rather than relying on individual node reputations.
  • Adaptive Routing: Reinforcement learning allows WSN nodes to dynamically adapt their routing decisions based on real-time, trusted information from the blockchain, making the network resilient to evolving threats.
  • Mitigating Malicious Behavior: The combination of blockchain's traceability and reinforcement learning's reward mechanism effectively discourages malicious nodes from dropping packets or injecting false information, as such actions would be recorded and lead to their exclusion from optimal routes.
  • PoA Efficiency: The choice of Proof-of-Authority (PoA) as the consensus mechanism for the blockchain offers significant advantages in terms of transaction latency and throughput compared to Proof-of-Work (PoW), making it more suitable for the real-time demands of WSN routing.

Key Results

The proposed RLBC algorithm demonstrated superior performance compared to traditional routing algorithms (BP, QL-BP, TB-BP) in environments with malicious nodes:

  • Reduced Delay: With 25% malicious nodes, RLBC reduced average packet delay by up to 78% compared to the traditional BP algorithm. Even with 50% malicious nodes, RLBC achieved an 81% reduction in average packet delay.
  • Efficiency: The PoA blockchain system achieved significantly lower transaction latency (0.29 ms) compared to PoW (0.52 ms), saving approximately 44% in latency.
  • Throughput: The PoA system demonstrated higher token transaction throughput (3300 times/s) than the PoW system (1900 times/s), indicating better scalability for handling concurrent requests.

Limitations and Future Work

  • Limitations: The paper assumes the blockchain network itself is trusted (i.e., no attacker controls more than half of the server nodes). It also assumes nodes are either normal or malicious, not exhibiting intermittent abnormal behavior. Collusion attacks between two routing nodes for invalid blockchain transactions are not considered.
  • Future Work: The authors plan to extend their system to test other routing scheduling algorithms besides BP to verify its effectiveness and portability. They also intend to incorporate blockchain-based data validation technology and explore integrating the reinforcement learning model directly into blockchain smart contracts to simplify operations and reduce server-side burden.

Summary updated

BibTeX
@misc{yang2019trusted,
  author = {Jidian Yang and Shiwen He and Yang Xu and Linweiya Chen and Ju Ren},
  title = {{A Trusted Routing Scheme Using Blockchain and Reinforcement Learning for Wireless Sensor Networks}},
  year = {2019},
  doi = {10.3390/s19040970},
}

Loading related content...

Figure