ns2.35下gpsr协议移植

本文详细介绍了如何在ns2.35环境下移植GPSR协议,包括下载源码、修改packet.h、cmu-trace.cc、priqueue.cc、ns-packet.tcl、ns-lib.tcl文件,以及更新Makefile并重新编译,最后进行仿真运行。
摘要由CSDN通过智能技术生成

一、下载gpsr协议源码,在~/ns-allinone-2.35/ns-2.35下解压,得到gpsr文件夹。

源码地址:点击打开链接

7个为协议实现文件:
gpsr_packet.h: definition of packets of different type used by thisimplementaion

gpsr_neighbor.h : definition of the neighbor listof each node used by this gpsr implementation including the planaringprocedure

(both GG and RNG)

gpsr_neighbor.cc : theimplementation of the neighbor list class

gpsr.h : thedefinition of functions of GPSR routing agent of thisimplementation

gpsr.cc : the implementation of the GPSR routingagent

gpsr_sinklist.h: definition used for scenarios withmultiple sinks


gpsr_sinklist.cc:implementation of gpsr_sinklist.cc


4个文件为仿真所需文件

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值