LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2012, 05:08 AM   #1
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Rep: Reputation: Disabled
how to patch aodv-uu0.9.6 in ns2.34


hello all


please help me
how to patch aodv-uu ns2?
 
Old 08-13-2012, 02:47 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

aodv-uu-0.9.6/patches/ : The latest patch is for ns-2.32
>> ns-2.32-aodv-uu.patch

cd ns-allinone-2.32/ && patch -p0 < ns-2.32-aodv-uu.patch

It is not a problem having more than one version of ns-allinone-2.xx:
You can have as many versions installed as you want.
But: Do not add any of them to a *PATH.

More questions ? Then please specify Linux OS <name>, <version>, please.

.
 
Old 08-15-2012, 01:00 AM   #3
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Dear

mr knudfl,

thank u so much !!!
 
Old 08-15-2012, 07:34 AM   #4
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Red face

hello all,


after patching aodu-uu in ns2,
it show that >>>>> ns: command not found when I type ns
why is it?
before patching , it show % when I type ns and it is ok to test .tcl files.

so, please help me.
it is important for me!!!!!
 
Old 08-15-2012, 10:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Repeat : Please specify Linux OS <name>, <version>,
.. like Fedora 17 - 64bits, Ubuntu 10.10 - 32bits , etc. etc.

And : Are you using ns-2.32 ?
 
Old 08-15-2012, 12:13 PM   #6
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Yeah sir,

I have installed ubuntu 10.04-32 bit over VMware workstation .
I have installed ns2.34 and ns2.32.
I have to patch AODV-UU,DYMOUM and UM-OLSR to ns2.
But it is not ok to patch these routing protocols.
So,please help me and guide me how to patch these.
Should I install ubuntu over VMware?



Thanks a lot for your help!!!!!
 
Old 08-15-2012, 12:54 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
# 6 : Ubuntu 10.04 in VMware is OK.

Dymoum makes no changes to ns-2.xx files,
and may work together with another patch.
! Or may not work with another patch !

aodv-uu and um-olsr make different changes to the same files,
and cannot be used together.

Overview :
aodv-uu , ns-2.32
ns-2.32/common/packet.h
ns-2.32.orig/queue/priqueue.cc
ns-2.32/tcl/lib/ns-agent.tcl
ns-2.32/tcl/lib/ns-default.tcl
ns-2.32/tcl/lib/ns-lib.tcl
ns-2.32/tcl/lib/ns-mobilenode.tcl
ns-2.32/tcl/lib/ns-packet.tcl
ns-2.32/trace/cmu-trace.cc
ns-2.32/trace/cmu-trace.h

dymoum : ns-2.33 ? ns-2.34 ?
dymoum-0.3_ported_to_ns-2.33.patch
dymoum_ns-2.34_v0.3.patch

um-olsr : ns-2.29 ?
ns-2.29/common/packet.h
ns-2.29/queue/priqueue.cc
ns-2.29/tcl/lib/ns-agent.tcl
ns-2.29/tcl/lib/ns-default.tcl
ns-2.29/tcl/lib/ns-lib.tcl
ns-2.29/tcl/lib/ns-packet.tcl
ns-2.29/trace/cmu-trace.cc
ns-2.29/trace/cmu-trace.h
 
Old 08-16-2012, 09:34 AM   #8
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Red face Please help me!!!!

I have installed ns2.32 in ubuntu10.04 according to the following steps.......
$ cd /home/khinmyo/ns-allinone-2.32

khinmyo@ubuntu:~/ns-allinone-2.32$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3

$ cd otcl-1.13/
$ ls

$ gedit Makefile.in

change CC=gcc-4.3

$ cd ..
$ sudo su
# ./install



$ su khinmyo
$ gedit ~/.bashrc

Copy the following lines:

#LD_LIBRARY_PATH
OTCL_LIB=/home/khinmyo/ns-allinone-2.32/otcl-1.13
NS2_LIB=/home/khinmyo/ns-allinone-2.32/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:
$USR_LOCAL_LIB
#TCL_LIBRARY
TCL_LIB=/home/khinmyo/ns-allinone-2.32/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
#PATH
XGRAPH=/home/khinmyo/ns-allinone-2.32/bin:/home/khinmyo/ns-allinone-2.32/tcl8.4.18/
unix:/home/khinmyo/ns-allinone-2.32/tk8.4.18/unix
NS=/home/khinmyo/ns-allinone-2.32/ns-2.32/
NAM=/home/khinmyo/ns-allinone-2.32/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM

After these steps,
when I type "ns" , it show %
and when I type nam , it show nam graph . It show that ns2 is successfully installed!!!!!

However, after patching aodv-uu in ns2,
when I type "ns", it show that ns: command not found!!! And
when I type "nam" it show the same!!!

I patch aodv-uu into ns2.32 according to these steps.....
download aodv-uu from http://en.sourceforge.jp/projects/sf...dvuu/releases/
1. put aodv-uu-0.9.5.tar.gz under ns-2.32

tar xvfz aodv-uu-0.9.5.tar.gz

2. put ns-2.32-aodv-uu-patch under ns-2

3. Open the terminal and type

ln -s ./aodv-uu-0.9.5 ./aodv-uu

patch -p1 < aodv-uu/patches/ns-2.32-aodv-uu.patch

./configure

make distclean

./configure

make



SO, help me how to patch aodv-uu and how to do !!!!!
 
Old 08-16-2012, 12:43 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#8. There is no patch for ns-2.32 in aodv-uu-0.9.5.tar.gz.

aodv-uu-0.9.6.tar.gz : The aodv-uu-0.9.6/patches/ns-2.32-aodv-uu.patch
is wrong, or some files are missing in the package.
I have added the missing files and repacked to aodv-uu-0.9.6-2012.tar.gz
Download link https://docs.google.com/open?id=0B7S...01tVjFncEZjdHM
( The missing files were found in aodv-uu-0.8.1.tar.gz )

cd ns-allinone-2.32/ns-2.32/ && tar xvf aodv-uu-0.9.6-2012.tar.gz &&
ln -s ln -s aodv-uu-0.9.6 aodv-uu &&
patch -p1 < aodv-uu/patches/ns-2.32-aodv-uu.patch && cd ../ &&
export CC=gcc-4.3 CXX=g++-4.3 && ./install

gcc-4.3 / g++-4.3 : Probably OK. You will find out after running './validate'.
The best result is usually with : gcc/g++ version 4.1.2. Post # 14 here ..
http://www.linuxquestions.org/questi...4-a-944856/#14

.
 
Old 08-16-2012, 11:30 PM   #10
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Dear mr knudfl,

Thanks a lot for your helping !!!!
 
Old 08-17-2012, 12:31 AM   #11
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Red face

hi dear knudfl,

I encounter problem when I do the following step...

khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32$ tar xvf aodv-uu-0.9.6-2012
tar: aodv-uu-0.9.6-2012: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now


So,how can I do .
Please help me!!!
May be happy!!!!
 
Old 08-17-2012, 02:44 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#11 : It's tar xvf aodv-uu-0.9.6-2012.tar.gz

And you will of course have to copy aodv-uu-0.9.6-2012.tar.gz
to ns-allinone-2.32/ns-2.32/ to unpack it there.
Or do : tar xvf <path-to-location>/aodv-uu-0.9.6-2012.tar.gz
 
Old 08-17-2012, 05:17 AM   #13
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Unhappy

Dear mr knudfl,


sorry!!!
I make careless mistake!
Now, it is ok to do tar xvf aodv-uu-0.9.6-2012.tar.gz.
However, it is not ok as follow:

khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32$ ns
ns: command not found
khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."



I do according to your instructions,

cd ns-allinone-2.32/ns-2.32
tar xvf aodv-uu-0.9.6-2012.tar.gz
ln -s aodv-uu-0.9.6 aodv-uu
patch -p1 < aodv-uu/patches/ns-2.32-aodv-uu.patch
cd ..
export CC=gcc-4.3 CXX=g++-4.3
./install

but it is not ok!!!!

how can I do .
I know I ask many questions.
I am beginner to study these !!!
So ,help me please!
thanks a lot
 
Old 08-17-2012, 05:58 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#13.
Nam http://www.linuxquestions.org/questi...-4175422530/#2


May be 'ns' failed with g++-4.3 in your particular update of Ubuntu 10.04 ?
That's why I prefer g++41 / gcc41.

Anyway you can just try out the two binaries, I have built :
"ns aodv-uu g++41" , "ns aodv-uu g++-4.3" → ns-bin-2.32.aodv.uu-ubu1004-i386.tar.gz
https://docs.google.com/open?id=0B7S...HprV2VkczFtNDQ
..... and also try out if "the funny looking" aodv-uu-0.9.6 works at all.
If not : You may have to use the older extended 0.8.1 version for
ns-allinone-2.29.3. http://de.sourceforge.jp/projects/sf...dvuu/releases/
> http://de.sourceforge.jp/projects/sf...-0.8.1.tar.gz/
> aodv-uu-0.8.1.tar.gz/ EDIT : 0.8.1 seems to be for ns-2.26.

.

Last edited by knudfl; 08-18-2012 at 06:46 AM.
 
Old 08-18-2012, 06:39 AM   #15
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
hi
dear mr.knudfl,

according your suggestion,

Now, I have installed ns2.29.3 over ubuntu 10.04.
Ii is successful.

Now I want to patch aodv-uu 0.8.1 to ns2.29.3.
but, I have not ns-2.29.3-aodv-uu.patch file to do patch -p1 < aodv-uu/patches/ns-2.29-aodv-uu.patch

So, please help me,sir!!!
I will always be grateful to you!
May be happy!!
 
  


Reply

Tags
aodv-uu, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2-aodv hello packet indumit18 Linux - Software 0 03-05-2012 05:33 AM
manet in ns2-wormhole attack(modifying aodv) indumit18 Linux - Software 2 02-02-2012 04:12 AM
after doing some modifications in aodv.cc file in ns2.34 i will get error breeze259 Linux - Newbie 1 01-05-2012 09:04 PM
tunnel formation between two malicious node by modifying aodv ns2 indumit18 Linux - Newbie 0 10-28-2011 06:38 AM
error in ns2-while trying to print routing table in aodv indumit18 Linux - Software 1 09-24-2011 05:29 AM


All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration