AODV+
ns2 aodv 

所属分类:网络编程
开发工具:Visual C++
文件大小:38KB
下载次数:0
上传日期:2021-04-22 15:24:15
上 传 者Somgic
说明:  本AODV+算法可以将AODV用作adhoc路由协议,用于模拟ns-2中的有线和无线场景
(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. There are no guarantees that it implements all features correctly.)

文件列表:
AODV+\aodv.cc (73325, 2009-01-20)
AODV+\aodv.h (14344, 2009-01-20)
AODV+\aodv.tcl (2609, 2009-01-20)
AODV+\aodv_logs.cc (4083, 2009-01-20)
AODV+\aodv_packet.h (9572, 2009-01-20)
AODV+\aodv_rqueue.cc (5545, 2009-01-20)
AODV+\aodv_rqueue.h (3479, 2009-01-20)
AODV+\aodv_rtable.cc (4889, 2009-01-20)
AODV+\aodv_rtable.h (5305, 2009-01-20)
AODV+\demo\wired_wireless_ex.tcl (6291, 2009-01-20)
AODV+\demo (0, 2021-04-17)
AODV+ (0, 2021-04-17)

AODV+ for ns-2.27 to ns-2.33 =============================================================================== ================ | 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. 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.eit.lth.se/staff/ali.hamidian AODV+ is meant to work WITHOUT Mobile IP! ============ | Citation | ============ You can download the source code of AODV+ and the simulation files freely for teaching and non-profit research activities, but please cite our work when you use it: Ali Hamidian, Ulf Krner, Anders Nilsson, Performance of Internet Access Solutions in Mobile Ad hoc Networks, Lecture Notes in Computer Science (LNCS), vol. 3427, pp. 189-201, 2004. ====================== | How to get started | ====================== In the following, it is assumed that ns-allinone-2.33 is installed in your home directory (~). 1. download aodv+.tar to the ~/ns-allinone-2.33/ns-2.33/aodv directory 2. in directory ~/ns-allinone-2.33/ns-2.33/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.33/ns-2.33/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.33/ns-2.33 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.33/ns-2.33/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 remove the corresponding .o file (e.g., aodv.o) before executing "make", otherwise the modifications in the .h file will not take effect. ======================= | Contact information | ======================= Homepage: www.eit.lth.se/staff/ali.hamidian Email: ali.hamidian@eit.lth.se

近期下载者

相关文件


收藏者