Coder Social home page Coder Social logo

atanu16 / simulation-of-aodv-routing-with-blackhole-attack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3 KB

A simulation illustrating AODV routing protocol behavior in MANETs, with emphasis on blackhole attack detection and mitigation.

MATLAB 100.00%
aodv manet matlab matlab-script blackhole-attack

simulation-of-aodv-routing-with-blackhole-attack's Introduction

Simulation of AODV Routing with Blackhole Attack

This project simulates a mobile ad hoc network (MANET) using the Ad-hoc On-demand Distance Vector (AODV) routing protocol and investigates its vulnerability to blackhole attacks. AODV is implemented to establish routes between nodes, while a blackhole node is introduced to intercept and potentially disrupt communication. Through visualization, the simulation demonstrates the impact of the blackhole attack on routing paths, comparing routes with and without the presence of the malicious node. This project serves as an educational tool to understand the behavior of routing protocols in the face of security threats, offering insights into strategies for mitigating such attacks in MANETs.

  • Blockchain-Enabled <-- Checkout Simulation of Blockchain-Enabled AODV Routing Preventing from Blackhole-Attack from here

  • Both are Same Code but this one is contain Blackhole-Attack Simulation only.

Simulation

Output Explanation

The lines "Route without blackhole" and "Route with blackhole" indicate the paths followed by data packets from the source node to the destination node in the simulated network, both in the absence and presence of a blackhole attack, respectively.

  • Route without blackhole :
  1. This line indicates the path taken by data packets when there is no blackhole node in the network.
  2. In this case, the route consists of two nodes: node 1 (the source node) and node 20 (the destination node).
  3. The data packets are successfully transmitted from the source node (node 1) to the destination node (node 20) without encountering any disruption or interference.
  • Route with blackhole :
  1. This line indicates the path taken by data packets when a blackhole node is present in the network.
  2. In this case, the route consists of three nodes: node 1 (the source node), node 20 (the destination node), and node 10 (the blackhole node).
  3. The data packets, instead of being routed directly from the source node to the destination node, are diverted through the blackhole node (node 10).
  4. This diversion is characteristic of a blackhole attack, where the malicious node intercepts and drops or alters data packets, disrupting communication between legitimate nodes.

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 blackhole.m in your matlab and run it

blackhole.m

Authors

simulation-of-aodv-routing-with-blackhole-attack's People

Contributors

atanu16 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.