NDN-ns-3-仿真第一步:创建自己的模块

//用ndnSIM仿真的第一步首先就是要创建自己的仿真模块
//这方面在网上并没有太多详细的描述
//所以在这里整理一下

工具

  • ndnSIM 2.3
  • ubuntu 16.04

创建新模块

  • 在终端打开ndnSIM中ns-3所在的文件夹
cd ndnSIM/ns-3/
  • 打开src文件夹
cd src/
  • 在终端用create-module.py创建一个模块,也就是直接输入一下命令
./create-module.py ndn-vanet
  • 接着你就会发现src文件夹中出现了一个名叫ndn-vanet的文件夹,里面包括doc、examples、helper、model、test文件夹和一个wscript文件
  • 将你的仿真主程序放入examples,将所调用的程序(.cc & .h)文件放入model中,再将这些文件名字添加进wscript中
  • 退到ns-3文件下,编译一下
cd ..
./waf configure --enables-examples
./waf
  • 现在就可以开始仿真了
./waf --run=ndn-highway --vis
Originally reactive protocols were not design for the characteristic of highly mobility during route discovery. Due to dynamically modification to the VANET this changes very often due to breakdown which causing excessive broadcasting and flooding the entire network in order for new routes to be discovered. In additional, the initial of routing need some time and this latency can easily change everything. Due to these reasons, the typical reactive protocols, in their current format, do not totally appropriate for time critical applications such as cooperative collision avoidance (CCA). The Cooperative Collision Avoidance is an important class of safety applications in VANETs, which aims at offering earlier warning to drivers using vehicle-to-vehicle (V2V) communication [13]. Ad Hoc On Demand Distance Vector (AODV) is an reactive routing protocolwhich capable of both unicast and multicast. In AODV, like all reactive protocols,topology information is only transmitted by nodes on-demand. When source hassomething to send then initially it propagates RREQ message which is forwarded byintermediate node until destination is reached. A route reply message is unicastedback to the source if the receiver is either the node using the requested address, or ithas a valid route to the requested address. This repository provides a MATLAB simulaiton of VANET enviornment and rsults comparison in terms of throughput, packet drop ratio etc. More information can be reached at https://www.youtube.com/watch?v=2QeSYOgJo9s&t=32s
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值