# 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](https://github.com/atanu16/Blockchain-Enabled-AODV-Routing-Simulation-for-Secure-MANETs) <-- 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 ](https://i.ibb.co/MS9Z0V5/image.png)
## 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
```bash
blackhole.m
```
## Authors
- [@Atanu](https://www.github.com/atanu16)
没有合适的资源?快使用搜索试试~ 我知道了~
AODV 路由协议行为matlab代码.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共2个文件
md:1个
m:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 126 浏览量
2024-05-03
23:21:39
上传
评论
收藏 4KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 2 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/864ffdc5a26342a6add0026479aef1e5_matlab_dingdang.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
matlab科研助手
- 粉丝: 2w+
- 资源: 2698
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)