RAODV

530 views
Skip to first unread message

Foram Patel

unread,
Jan 3, 2015, 5:03:49 AM1/3/15
to ns-u...@googlegroups.com
Hello, I'm working in NS-2.35, and i want code for RAODV (Reverse AODV). 

Devang Patel

unread,
Jan 13, 2015, 6:37:45 AM1/13/15
to ns-u...@googlegroups.com

Foram Patel

unread,
Mar 3, 2015, 1:10:54 AM3/3/15
to ns-u...@googlegroups.com
Thnx. But this link doesn't work.no page found. If you have any other links or code then please help me.it's urgent .

knudfl

unread,
Mar 3, 2015, 5:28:45 AM3/3/15
to ns-u...@googlegroups.com
@Foram Patel ,   Hi.

The link http://en.pudn.com/downloads178/sourcecode/unix_linux/network/detail825979_en.html
.... is OK.  And you can download all the individual files for free.
Please see the attacked image.
-
pudn__raodv.jpg

knudfl

unread,
Mar 3, 2015, 7:44:22 AM3/3/15
to ns-u...@googlegroups.com
@Foram Patel ,   Hi again.

We also have the year 2013 Randomized AODV, by Varun Malhotra.
https://github.com/softvar/ns2-roadv
Download the files with :
$ git clone https://github.com/softvar/ns2-roadv

... Only two files to compile into a new executable "ns-raodv" :
aodv.cc, aodv.tcl

-

knudfl

unread,
Mar 3, 2015, 7:51:51 AM3/3/15
to ns-u...@googlegroups.com
@Foram Patel ,   Hi again, again.

About ""Randomized AODV, by Varun Malhotra"".
Sorry .... one file, aodv.cc :   The file aodv.tcl  is a simulation file example.


-

Foram Patel

unread,
Mar 3, 2015, 8:20:16 AM3/3/15
to ns-u...@googlegroups.com

Thank you thank you so much .

--
You received this message because you are subscribed to a topic in the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-users/OOBlVuMYiUQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
Mar 3, 2015, 8:22:49 AM3/3/15
to ns-u...@googlegroups.com
@Foram Patel.

Randomized AODV, by Varun Malhotra :
$ cd ns-allinone-2.35/
$ patch -p0 < r-aodv.patch
$ ./install :   No errors.

$ ns235-raodv  R-aodv.tcl  :  Segmentation fault.
So I guess you may have to do some editing.
-
R-aodv.tcl
r-aodv.patch

knudfl

unread,
Mar 4, 2015, 6:53:02 AM3/4/15
to ns-u...@googlegroups.com
@Foram Patel ,   Hi.

The code "RAODV , Reverse AODV" ,,,  r-aodv.zip by @elmurod :
I found a direct link → http://elmurod.net/sfiles/r-aodv.zip

Ref.  http://elmurod.net/en/index.php/my-works
https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=RAODV+elmurod
http://www.ijser.org/researchpaper%5CAn-Implementation-and-Performance-Evaluation-Study-of-AODV-MAODV-RAODV-in-Mobile-Ad-hoc-Networks.pdf
→ etc.

The code `time stamp´, year ~2006 (  ns-2.29.3 ) , probably not usable as is, in ns-2.35.
Expect some editing to be done.
(  Or try out the code with  ns-allinone-2.29.3.tar.gz ).

-

Foram Patel

unread,
Mar 4, 2015, 8:30:25 AM3/4/15
to ns-u...@googlegroups.com
okay .. Again thank you so much .. :)

--

knudfl

unread,
Mar 4, 2015, 4:53:14 PM3/4/15
to ns-u...@googlegroups.com
@Foram Patel ,   Hi.

The "Reverse AODV" (elmurod) adds nicely to ns-2.29, and no build issues.
So I guess the code is OK.

You can watch the changes in a newly created patch, `Reverse-aodv_ns229.patch´
https://drive.google.com/file/d/0B7S255p3kFXNYjI0aVF4YXdWeDA/view?usp=sharing

The "Reverse AODV" from @elmurod is said to work in ns-2.34.
The patch is applied OK ( The errors can be ignored ) :
$ cd ns-allinone-2.34/
$ ln -s  ns-2.34/  ns-2.29
$ patch -p0 < Reverse-aodv_ns229.patch
...  But the build fails :  cmu-trace.cc issues.
... And I cannot write  C++ code.


-

On Saturday, January 3, 2015 at 11:03:49 AM UTC+1, Foram Patel wrote:

Foram Patel

unread,
Mar 6, 2015, 1:59:05 AM3/6/15
to ns-u...@googlegroups.com
ok thank you. But can you please tell me how to run this patch file ?

--

knudfl

unread,
Mar 6, 2015, 5:48:15 AM3/6/15
to ns-u...@googlegroups.com
Hi .

The @elmurod code appeared to be for ns-2.28.
But the only difference in the files is the name of the ns2 maintainer.
( You can see that in the text file :  Reverse-aodv_ns229.patch.)

So we continue with ns-2.29 .

tar xvf ns-allinone-2.29.3.tar.gz
http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.29/ns-allinone-2.29.3.tar.gz/download
cd ns-allinone-2.29/
patch -p0 < Reverse-aodv_ns229.patch
export CC=gcc41 CXX=g++41 && ./install
(  Please specify your OS, then I'll provide links to the right gcc ver. 4.1.2.)
cd ns-2.29/
sudo make install
cp ns ns-raodv
sudo cp ns-raodv /usr/local/bin/
.....  Then you can run R-aodv simulations with $ ns-raodv file.tcl
.....  to make sure that you are not using an 'ns' from another install.

-

Foram Patel

unread,
Mar 6, 2015, 7:02:03 AM3/6/15
to ns-u...@googlegroups.com
ohh .. ok ok .. thnk u .. :)

Foram Patel

unread,
Mar 25, 2015, 6:01:11 AM3/25/15
to ns-u...@googlegroups.com
Hi .. actually I download randomized aodv.cc and and run with tcl file and it generates drop factor .. but when I see trace file there is no request reply or any header package and packet delivered is zero.. can you please help me ..

Another thing is I had changed in aodv file and add this new line which is in raodv.patch. But when I run it it shows error on line srand(time (NULL));

Foram Patel

unread,
Mar 31, 2015, 1:40:12 AM3/31/15
to ns-u...@googlegroups.com
sir please help me ...

On Wed, Mar 25, 2015 at 3:31 PM, Foram Patel <foram.2...@gmail.com> wrote:
Hi .. actually I download randomized aodv.cc and and run with tcl file and it generates drop factor .. but when I see trace file there is no request reply or any header package and packet delivered is zero.. can you please help me ..

Another thing is I had changed in aodv file and add this new line which is in raodv.patch. But when I run it it shows error on line srand(time (NULL));

crossl...@gmail.com

unread,
Aug 25, 2015, 6:20:23 AM8/25/15
to Network Simulator 2 (NS2), foram.2...@gmail.com
hi... ....i m running the aodv.tcl file but its giving warning...
pls do help
unable to open the file datacache.nam.nam


On Saturday, January 3, 2015 at 3:33:49 PM UTC+5:30, Foram Patel wrote:

crossl...@gmail.com

unread,
Aug 25, 2015, 6:22:25 AM8/25/15
to Network Simulator 2 (NS2), foram.2...@gmail.com

Its giving following error....

unable to open the file datacache.nam.nam

On Saturday, January 3, 2015 at 3:33:49 PM UTC+5:30, Foram Patel wrote:

knudfl

unread,
Aug 25, 2015, 7:30:47 AM8/25/15
to Network Simulator 2 (NS2), foram.2...@gmail.com
@crossl... ,   Hi.

»» unable to open the file datacache.nam.nam «« :
.. Well ...  then please attach the simulation file that you are trying to run :
As   <name>.tcl.txt

* Only one file from "The All simulation files" produces 'datacache.nam' :  Aodv-enggedu-33.tcl

The "All examples" package is 'all_tcl-examples-2.tar.gz' : ~2,000 files,  41.8MB
https://drive.google.com/file/d/0B7S255p3kFXNUUpUYWJ6TTdseWc/view?usp=sharing

-

islam algadi

unread,
Aug 25, 2016, 8:01:29 AM8/25/16
to Network Simulator 2 (NS2), foram.2...@gmail.com

 Hi ..
 does raodv work with u ??
plz tell me what do u do in points and steps

Arief Hidayat

unread,
Aug 14, 2018, 11:41:13 AM8/14/18
to Network Simulator 2 (NS2)

hi knudlf

i have read  https://github.com/softvar/ns2-roadv, but i'm confused because i'm beginner to use network simulator, how do process to merge aodv.cc and aodv.h become patch -p0 < Reverse-aodv_ns229.patch?

knudfl

unread,
Aug 14, 2018, 4:04:28 PM8/14/18
to Network Simulator 2 (NS2)
@Arief Hidayat, Hi.

The code https://github.com/softvar/ns2-roadv is `Randomized AODV (R-AODV) Protocol´.
...  Nothing to do with Reverse-aodv ! See README.md .

The two unrelated patches are:   Reverse-aodv_ns229.patch, random-aodv_ns235.patch .

"How to create a patch" :
Actually quite simple →
Modify one ns-2.35, and have an original ns-2.35 renamed to ns-2.35-orig ....
And run the diff command :
$ diff -Naur ns-2.35-orig/ ns-2.35/ >  random-aodv_ns235.patch

Arief Hidayat

unread,
Sep 17, 2018, 3:26:21 AM9/17/18
to Network Simulator 2 (NS2)
hi knudlf
whether patch 2.34 matches ns2.35?

knudfl

unread,
Sep 17, 2018, 10:49:26 AM9/17/18
to Network Simulator 2 (NS2)
@Arief Hidayat ,   Hi.

Not quite clear what you mean.     Which patch is it about ? ?  random-aodv_ns235.patch ?
...  in a new folder in /home/name/ns2/**

I.e. you can have an unlimited  number of ns2 installed at the same time (I have ~200 on one OS)  https://drive.google.com/file/d/1FCjn-9fkR7tKeqClUpHsleaEdnoKRZzq/view?usp=sharing

knudfl

unread,
Sep 17, 2018, 10:52:39 AM9/17/18
to Network Simulator 2 (NS2)



On Monday, September 17, 2018 at 9:26:21 AM UTC+2, Arief Hidayat wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages