ns 2.35中移值gpsr协议(KeLiu版)

本文档详细记录了在ns 2.35环境下移植GPSR协议的过程,包括下载协议源文件,创建并拷贝文件到指定目录,修改packet.h、priqueue.cc、ns-packet.tcl等关键文件,以及更新Makefile以完成编译。此外,还提及了部分网友建议的修改,但作者表示在自己的环境中并未需要这些修改。

今日有空,把前期在ns 2.35平台上移值gpsr协议的过程记录一下,作以备忘。

1. 下载gpsr协议源文件
2. 建立gpsr文件夹,并拷贝协议文件
    在【~ /ns-allinone-2.35/ns-2.35】下新建【gpsr】文件夹,并将第1步中下载好的压缩包解压到此目录中。
    各个文件功能如下:
  • gpsr_packet.h : definition of packets of different type used by this implementaion
  • gpsr_neighbor.h : definition of the neighbor list of each node used by this gpsr implementation including the planaring procedure (both GG and RNG)
  • gpsr_neighbor.cc : the implementation of the neighbor list class
  • gpsr.h : the definition of functions of GPSR routing agent of this implementation
  • gpsr.cc : the implementation of the GPSR routing agent
  • gpsr_sinklist.h: definition used for scenarios with multiple sinks 
  • gpsr_sinklist.cc: implementation of gpsr_sinklist.cc
  • 以上7个为协议实现文件
  • gpsr.tcl : the node and agent creation functions used by simultion 
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值