AODV+

所属分类:3G/4G/5G开发
开发工具:Others
文件大小:38KB
下载次数:92
上传日期:2008-06-18 11:15:54
上 传 者yishaou
说明:  在NS环境下对aodv路由协议进行仿真,在研究mac层时,路由层直接用aodv就可以
(NS environment in AODV Routing Protocol under the simulation, in the study mac layer, routing layer can be directly used AODV)

文件列表:
AODV+\aodv.cc (72914, 2004-10-05)
AODV+\aodv.h (14496, 2004-10-05)
AODV+\aodv.tcl (2609, 2004-10-05)
AODV+\aodv_logs.cc (4083, 2004-10-05)
AODV+\aodv_packet.h (9687, 2004-10-05)
AODV+\aodv_rqueue.cc (5531, 2004-10-29)
AODV+\aodv_rqueue.h (3479, 2004-10-05)
AODV+\aodv_rtable.cc (4889, 2004-10-05)
AODV+\aodv_rtable.h (5305, 2004-10-05)
AODV+\demo\wired_wireless_ex.tcl (6291, 2004-11-16)
AODV+\demo (0, 2008-06-18)
AODV+ (0, 2008-06-18)

AODV+ for ns-2.27 to ns-2.31 =============================================================================== ================ | Introduction | ================ With this implementation, one is able to use AODV as an ad hoc routing protocol for simulations of wired-cum-wireless scenarios in ns-2. The implementation is based on the Internet draft draft-wakikawa-manet-globalv6-01.txt. There are no guarantees that it implements all features correctly. The implementation is a result of my master's thesis "A Study of Internet Connectivity for Mobile Ad Hoc Networks in NS 2", which can be found on my home page together with "Performance of Internet Access Solutions in Mobile Ad Hoc Networks": www.telecom.lth.se/Personal/alexh/ AODV+ is meant to work WITHOUT Mobile IP! ====================== | How to get started | ====================== In the following, it is assumed that ns-allinone-2.28 is installed in your home directory (~). 1. download aodv+.tar to the ~/ns-allinone-2.28/ns-2.28/aodv directory 2. in directory ~/ns-allinone-2.28/ns-2.28/aodv, create a new directory where you can put all your aodv files (otherwise they will be overwritten by the new aodv+ files) 3. move all your current aodv files to the created directory 4. > tar -xvf aodv+.tar 5. > cd .. 6. > make 7. > cd ~/ns-allinone-2.28/ns-2.28/tcl/lib 8. in ns-default.tcl, add this (preferably under "Agents"): #My modification*************************************************************// #Modifications needed for aodv+! #Reactive gateway discovery method is used by default. Agent/AODV set gw_discovery 2 #****************************************************************************// 9. > cd ~/ns-allinone-2.28/ns-2.28 10. > make =========================== | How to run a simulation | =========================== Now you are able to run a simulation with a wired-cum-wireless scenario with AODV as your ad hoc routing protocol. To run wireless2.tcl from the ns-tutorial: 1. > cd ~/ns-allinone-2.28/ns-2.28/ns-tutorial/examples/ 2. in wireless2.tcl, change a) 'set opt(adhocRouting) DSDV' to 'set opt(adhocRouting) AODV' b) 'set opt(sc) "../mobility/scene/scen-3-test"' to 'set opt(sc) "../../tcl/mobility/scene/scen-3-test"' c) 'routerTrace OFF' to 'routerTrace ON' 3. > ns wireless2.tcl To run demo/wired_wireless_ex.tcl: 1. > ns wired_wireless_ex.tcl ============================= | Gateway discovery methods | ============================= With AODV+ a mobile node can find a route to a gateway in three different ways: 1. proactive gateway discovery method 2. hybrid gateway discovery method 3. reactive gateway discovery method (default) If you want to use: 1. PROACTIVE GATEWAY DISCOVERY METHOD * Type "Agent/AODV set gw_discovery 0" before the creation of the nodes in * your Tcl file. Configurable parameters: ADVERTISEMENT_INTERVAL (aodv.h) 2. HYBRID GATEWAY DISCOVERY METHOD * Type "Agent/AODV set gw_discovery 1" before the creation of the nodes in * your Tcl file. Configurable parameters: ADVERTISEMENT_INTERVAL & ADVERTISEMENT_ZONE (aodv.h) 3. REACTIVE GATEWAY DISCOVERY METHOD * Type "Agent/AODV set gw_discovery 2" before the creation of the nodes in * your Tcl file. NOTE! After modifying a .h file in ns-2 (e.g. aodv.h) one must execute "make depend" apart from "make" otherwise the modifications in the .h file will not take effect. ======================= | Contact information | ======================= Homepage: http://www.telecom.lth.se/Personal/alexh/ Email: alex.hamidian@eit.lth.se

近期下载者

相关文件


收藏者