各位大神,哪里可以找到AODV协议(就是官网找的那个可以运行的aodv-uu-0.9.6)程序的详
答案:2 悬赏:0 手机版
解决时间 2021-02-06 14:39
- 提问者网友:温柔港
- 2021-02-06 05:10
各位大神,哪里可以找到AODV协议(就是官网找的那个可以运行的aodv-uu-0.9.6)程序的详细注释,谢谢
最佳答案
- 五星知识达人网友:舍身薄凉客
- 2021-02-06 06:28
aodv-uu-0.9.6\aodv-uu-0.9.6\aodv_hello.c
.............\.............\aodv_hello.h
.............\.............\aodv_neighbor.c
.............\.............\aodv_neighbor.h
.............\.............\aodv_rerr.c
.............\.............\aodv_rerr.h
.............\.............\aodv_rrep.c
.............\.............\aodv_rrep.h
.............\.............\aodv_rreq.c
.............\.............\aodv_rreq.h
.............\.............\aodv_socket.c
.............\.............\aodv_socket.h
.............\.............\aodv_timeout.c
.............\.............\aodv_timeout.h
.............\.............\ChangeLog
.............\.............\debug.c
.............\.............\debug.h
.............\.............\defs.h
.............\.............\endian.c
.............\.............\GPL
.............\.............\list.c
.............\.............\list.h
.............\.............\llf.c
.............\.............\llf.h
.............\.............\locality.c
.............\.............\locality.h
.............\.............\main.c
.............\.............\Makefile
.............\.............\nl.c
.............\.............\nl.h
.............\.............\params.h
.............\.............\README
.............\.............\README.ns
.............\.............\rfc3561.txt
.............\.............\routing_table.c
.............\.............\routing_table.h
.............\.............\seek_list.c
.............\.............\seek_list.h
.............\.............\TAGS
.............\.............\timer_queue.c
.............\.............\timer_queue.h
.............\.............\TODO
.............\.............\lnx\kaodv-debug.c
.............\.............\...\kaodv-debug.h
.............\.............\...\kaodv-expl.c
.............\.............\...\kaodv-expl.h
.............\.............\...\kaodv-ipenc.c
.............\.............\...\kaodv-ipenc.h
.............\.............\...\kaodv-mod.c
.............\.............\...\kaodv-mod.h
.............\.............\...\kaodv-netlink.c
.............\.............\...\kaodv-netlink.h
.............\.............\...\kaodv-queue.c
.............\.............\...\kaodv-queue.h
.............\.............\...\kaodv.h
.............\.............\...\Makefile
.............\.............\...\TAGS
.............\.............\patches\ns-2.26-aodv-uu-0.8.patch
.............\.............\.......\ns-2.27-aodv-uu-0.8.patch
.............\.............\.......\ns-2.27-aodv-uu-0.9.1.patch
.............\.............\.......\ns-2.27-aodv-uu-0.9.patch
.............\.............\.......\ns-2.28-aodv-uu-0.9.1.patch
.............\.............\.......\ns-2.29-aodv-uu-0.9.1-dsr-uu-0.2-oolsr-0.99.15.patch
.............\.............\.......\ns-2.29.3-aodv-uu-0.9.2.patch
.............\.............\.......\ns-2.32-aodv-uu.patch
.............\.............\lnx
.............\.............\patches
.............\aodv-uu-0.9.6
aodv-uu-0.9.6
.............\.............\aodv_hello.h
.............\.............\aodv_neighbor.c
.............\.............\aodv_neighbor.h
.............\.............\aodv_rerr.c
.............\.............\aodv_rerr.h
.............\.............\aodv_rrep.c
.............\.............\aodv_rrep.h
.............\.............\aodv_rreq.c
.............\.............\aodv_rreq.h
.............\.............\aodv_socket.c
.............\.............\aodv_socket.h
.............\.............\aodv_timeout.c
.............\.............\aodv_timeout.h
.............\.............\ChangeLog
.............\.............\debug.c
.............\.............\debug.h
.............\.............\defs.h
.............\.............\endian.c
.............\.............\GPL
.............\.............\list.c
.............\.............\list.h
.............\.............\llf.c
.............\.............\llf.h
.............\.............\locality.c
.............\.............\locality.h
.............\.............\main.c
.............\.............\Makefile
.............\.............\nl.c
.............\.............\nl.h
.............\.............\params.h
.............\.............\README
.............\.............\README.ns
.............\.............\rfc3561.txt
.............\.............\routing_table.c
.............\.............\routing_table.h
.............\.............\seek_list.c
.............\.............\seek_list.h
.............\.............\TAGS
.............\.............\timer_queue.c
.............\.............\timer_queue.h
.............\.............\TODO
.............\.............\lnx\kaodv-debug.c
.............\.............\...\kaodv-debug.h
.............\.............\...\kaodv-expl.c
.............\.............\...\kaodv-expl.h
.............\.............\...\kaodv-ipenc.c
.............\.............\...\kaodv-ipenc.h
.............\.............\...\kaodv-mod.c
.............\.............\...\kaodv-mod.h
.............\.............\...\kaodv-netlink.c
.............\.............\...\kaodv-netlink.h
.............\.............\...\kaodv-queue.c
.............\.............\...\kaodv-queue.h
.............\.............\...\kaodv.h
.............\.............\...\Makefile
.............\.............\...\TAGS
.............\.............\patches\ns-2.26-aodv-uu-0.8.patch
.............\.............\.......\ns-2.27-aodv-uu-0.8.patch
.............\.............\.......\ns-2.27-aodv-uu-0.9.1.patch
.............\.............\.......\ns-2.27-aodv-uu-0.9.patch
.............\.............\.......\ns-2.28-aodv-uu-0.9.1.patch
.............\.............\.......\ns-2.29-aodv-uu-0.9.1-dsr-uu-0.2-oolsr-0.99.15.patch
.............\.............\.......\ns-2.29.3-aodv-uu-0.9.2.patch
.............\.............\.......\ns-2.32-aodv-uu.patch
.............\.............\lnx
.............\.............\patches
.............\aodv-uu-0.9.6
aodv-uu-0.9.6
全部回答
- 1楼网友:詩光轨車
- 2021-02-06 08:03
我想这应该是aodv建立连接和维护连接的过程。要弄清楚这些语句具体是什么意思,必须要查看实现aodv协议的源文件,找到源文件后,在里面寻找相应的语句比如“raw send socket buffer size”,这个源文件,应该在你们下载的aodvuu这个package里面。一般来说,既然这些话能打印出来,说明在源文件中必然存在着一些诸如 printf之类的函数,功能就是打印这些话;然后通过上下文,弄清楚整个函数体在实现什么功能。
下面再讲讲我的一些猜测,希望能帮助你更快的找到答案。 真正要搞清这些语句的确切含义,必须查找源文件,在上下文齐全的情况下才有可能。
aodv_socket_init, 这应该牵扯到socket编程,这里我能得到的信息是,aodv作为网络层协议,上层是不是还有相应的传输层和应用层agent不得而知,他们是否是和aodv的agent嵌在一起的也不得而知,因此,我给你讲讲socket的大概工作原理,你可以沿着这个方向去寻找答案,就像我第一节课给你们讲的,网络是分层的,在实现的时候,application layer和transport layer之间有一个接口,这个接口叫做socket,application layer的应用程序通过控制socket,向transport layer发送数据,因此 raw send socket buffer size set to 262142 也许是说,发送端的socket buffer size设置成262142个bit或其他什么单位。相应的,在receiver一端,也需要配置好socket的参数,那么第二行可能就是配置receiver端的socket buffer size.
14:13:57.445 main: in wait on reboot for 15000 milliseconds. disable with "-d". 这个main可能是主线程的意思,这里信息太少,你需要去查ns2的源代码,找到相应的语句,然后判断这是什么意思。
14:13:57.445 hello_start: starting to send hellos! 在aodv里面,每个节点每隔一段时间都会发出hello这个消息,目的是搞清楚自己周围有哪些节点。
14:14:33.610 rt_table_insert: inserting 10.1.12.2 (bucket 10) next hop 10.1.12.2 这句话应该是说,在routing table里面加了一条记录,指明如果要到达10.1.12.2这个节点,下一跳应怎么走,但这条记录奇怪的地方在于,目的地址和下一条都是一样的,也许说明本节点就是10.1.12.2
hello_process: 10.1.12.2 new neighbor! 10.1.12.2这个节点找到了新的neighbor.
希望对你有帮助,真正要搞清楚,还要去读代码!
you know who i am, right? 哈哈
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯