问题描述
- gpsr协议仿真脚本出错,不知道哪里有问题。请问有人自己写过GPSR仿真脚本吗?
-
使用ns2进行vanet车载路由协议的仿真,自己编写了个脚本,当使用AODV协议时,脚本可以顺利的运行,但是当使用添加进去的GPSR协议的时候,脚本就会在创建无线节点处出错,并提示Wrong node routing agent!我添加的协议是KELIU版本的协议,但是使用协议自带的关于gpsr的仿真脚本时虽然能运行但是运行出来的nam文件有问题。
解决方案
VANET vehicular routing protocol simulation using NS2, write your own script, when using AODV protocol scripts can be smoothly running, but when added into the use of the GPSR protocol, script will create a wireless node error and prompt a node routing agent! I added the agreement is KELIU version of the protocol, but use agreement comes with a GPSR simulation script while running but run out of the Nam fileMemory dump
I am doing reseach about Vanet routing protocol using NS2.I added GPSR protool to NS2 and succeeded.The GPSR version is KELIU. I used the simulation script( wireless-gpsr.tcl).But the result is wrong.The nam text is wrong and can not run .When I input “nam trace.nam”,it show “Memory dump”. I want to know where to find error.Thank you for your help.