Windows下搭建VANET仿真环境:OMNeT++/Veins/SUMO详解

需积分: 39 134 下载量 130 浏览量 更新于2024-09-07 12 收藏 374KB PDF 举报
本文介绍的是如何在Windows环境下搭建VANET(车载自组织网络)的仿真平台,主要涉及三个核心组件:OMNeT++、SUMO和Veins。这是一个逐步的搭建过程,包括下载和配置这三款软件,并确保它们能够协同工作。 VANET仿真平台搭建步骤详解: 1. **下载SUMO**: SUMO (Simulation of Urban MObility) 是一个用于交通流模拟的开源工具。下载sumo-0.19.0版本并解压到指定目录,同时确保安装了Microsoft Visual C++ 2010 (x86)库,因为SUMO的运行可能依赖于该环境。 2. **安装OMNeT++**: 下载OMNeT++ 4.3.1 for Windows,解压后执行安装步骤。打开mingwenv.cmd,然后运行./configure、make以及omnetpp命令,以编译和启动OMNeT++环境。 3. **安装Veins框架**: Veins是一个基于OMNeT++和SUMO的VANET仿真框架。下载Veins 2.1版本并解压到指定目录,然后在OMNeT++环境中导入Veins项目。 4. **验证SUMO运行**: 在mingwenv.cmd环境下,切换到Veins的示例目录,运行SUMO以检查其是否正常工作。通过运行sumo.exe并指定配置文件cerlangen.sumo.cfg,如果显示"Loading configuration done",则表示SUMO已成功启动。 5. **验证OMNeT++和MiXiM Framework**: 在OMNeT++中,首先编译MiXiM框架的示例项目(BuildAll),然后运行baseNetwork示例,以确保OMNeT++和MiXiM框架可以正常运行。 6. **运行Veins演示方案**: 使用sumo-launchd.py脚本启动OMNeT++与SUMO的连接。在mingwenv.cmd中运行该脚本,并指定SUMO的路径。在OMNeT++环境中,运行veins示例的omnetpp.ini文件,选择Run as > OMNeT++ simulation,启动VANET仿真实例。 搭建VANET仿真平台的过程涉及到多个软件的配置和集成,每个步骤都需要细心操作。完成以上步骤后,用户可以使用Veins进行VANET应用的仿真研究,例如通信协议性能分析、车辆安全距离计算等。同时,这个平台也可以扩展以支持其他交通或通信场景的模拟。
2018-11-09 上传
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