?? readme
字號(hào):
AODV+ for ns-2.27 to ns-2.31===============================================================================================| Introduction |================With this implementation, one is able to use AODV as an ad hoc routing protocolfor simulations of wired-cum-wireless scenarios in ns-2. The implementation isbased 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 directory2. 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 directory4. > tar -xvf aodv+.tar5. > cd ..6. > make7. > cd ~/ns-allinone-2.28/ns-2.28/tcl/lib8. 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.2810. > make===========================| How to run a simulation |===========================Now you are able to run a simulation with a wired-cum-wireless scenario withAODV 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.tclTo 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 method2. hybrid gateway discovery method3. 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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -