Blockchain-Enabled-AODV-Routing-Simulation-for-Secure-MANETs

버전 1.0.0 (3.8 KB) 작성자: Atanu Bera
This project simulates Mobile Ad-hoc Networks (MANETs) using AODV routing, integrating blockchain for secure transactions. It tests routing
다운로드 수: 38
업데이트 날짜: 2024/4/24

Blockchain-Enabled AODV Routing Simulation for Secure MANETs

This project simulates a Mobile Ad-hoc Network (MANET) environment, integrating the AODV routing protocol with blockchain technology to enhance security. Nodes communicate using AODV, with blockchain maintaining a secure record of transactions. The script initializes node positions, blockchain structures, and functions to implement routing and blockchain operations. It tests routing with and without a Blackhole Attack, visualizing network connectivity and attack effects. By combining AODV with blockchain, the project explores potential solutions for securing MANETs against attacks while ensuring reliable communication. This simulation offers insights into decentralized and tamper-resistant communication protocols for dynamic network environments.

  • Blackhole Attack <-- Checkout Simulation of AODV Routing with Blackhole Attack from here

  • Both are Same Code but this one is contain Blockchain implementation.

Simulation

Blockchain Implementation

In the provided MATLAB code, blockchain technology is integrated to enhance the Security and Trustworthiness of the routing process. Here's how blockchain contributes to the output:

Transaction Data Recording:

  • Each time the AODV routing protocol determines a route from a source node to a destination node, transaction data related to this routing decision is recorded in the blockchain of the source node.
  • The transaction data typically includes information such as the source node ID, destination node ID, timestamp, and possibly Other relevant details about the routing process.

Immutable Record Keeping:

  • The blockchain maintains an immutable ledger of transactions. Each block in the blockchain contains a cryptographic hash of the previous block, creating a chain of blocks that cannot be altered without modifying subsequent blocks.
  • This immutability ensures that the recorded routing transactions cannot be tampered with or altered after they are recorded. It provides a secure and reliable record of routing decisions made by each node in the network.

Auditable Routing History:

  • The transparency and auditability of the blockchain enable stakeholders to inspect the routing history of each node in the network.
  • Participants can verify the integrity of routing decisions by examining the blockchain, ensuring that the recorded transactions accurately reflect the routing paths chosen by each node.

Security against Manipulation:

  • By recording routing transactions in a blockchain, the network mitigates the risk of fraudulent activity or manipulation by malicious nodes.
  • Even in the presence of a blackhole node or other malicious entities, the recorded routing data remains secure and tamper-resistant, providing assurance to network participants about the reliability of the routing process.

Consensus Mechanisms:

  • While not explicitly shown in the provided code, blockchain networks often employ consensus mechanisms to validate and agree on the state of the blockchain.
  • These mechanisms ensure that only valid routing transactions are added to the blockchain and that no single node can manipulate the blockchain's contents. It enhances the overall security and reliability of the routing process.

Output Explanation

Blockchain enhances output by ensuring data integrity and trust in routing. Each node maintains an immutable ledger recording routing transactions, preventing tampering. Despite the presence of a blackhole node, blockchain verifies and secures routing paths, maintaining the same route, thus ensuring reliability in the network's operation. Here's an explanation of each line of output :

  • Route without blackhole :
  1. This line indicates the route obtained when there is no blackhole node present in the network.
  2. The route starts from node 1 (source node), passes through node 2, and ends at node 20 (destination node).
  3. This suggests that the routing protocol successfully found a path from the source to the destination without any disruptions or interceptions.
  • Route with blackhole :
  1. This line indicates the route obtained when a blackhole node is present in the network.
  2. Similar to the route without a blackhole, it starts from node 1, passes through node 2, and ends at node 20.
  3. Despite the presence of the blackhole node, the route remains the same, indicating that the blackhole node may not have affected the routing path in this specific scenario.

Note - The presence of node 2 in the route suggests that, based on the network topology and connectivity, node 2 lies on the shortest path between the source node (node 1) and the destination node (node 20).

Nodes

The nodes are visually distinguished by three different colors: red, blue, and green. Let's explain the significance of each color:

  • Red Nodes: The source node and destination node are both represented by red color. These nodes are crucial in routing protocols as they represent the starting point (source) and the destination of data packets.
  • Blue Nodes: Nodes along the route without a blackhole are represented by blue color. These nodes are part of the shortest path between the source and destination nodes in the absence of any malicious activity.
  • Green Nodes: The blackhole node is represented by green color. This node is introduced into the network as part of the simulation to mimic a malicious node that disrupts communication by dropping or altering packets.

Installation

Add this blockchainBlackhole.m and Block.m in your matlab and run blockchainBlackhole.m

blockchainBlackhole.m
Block.m

Authors

인용 양식

Atanu Bera (2025). Blockchain-Enabled-AODV-Routing-Simulation-for-Secure-MANETs (https://github.com/atanu16/Blockchain-Enabled-AODV-Routing-Simulation-for-Secure-MANETs), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2024a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.