LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-18-2012, 05:49 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297

# 15 : Sorry, aodv-uu 0.8.1 seems to be for ns-2.26.

How was your result from aodv-uu-0.9.6 / ns-2.32 ?
Did it work ?
 
Old 08-18-2012, 05:51 AM   #17
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
when I stalled ns2.29 ,I Edit some 'Makefile.in' :


otcl-1.11/, line 7 : CC = gcc-4.1
tclcl-1.17/, line 40 : CC = gcc-4.1
tclcl-1.17/, line 41 : CPP = g++-4.1
ns-2.29/ , line 36 : CC = gcc-4.1
ns-2.29/ , line 37 : CPP = g++-4.1
nam-1.11/, line 44 : CC = gcc-4.1
nam-1.11/, line 45 : CPP = g++-4.1

so please give me ns-2.29.3-aodv-uu.patch file which is compatible with ns2.29.3 !!
please sir!!!
 
Old 08-18-2012, 05:55 AM   #18
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Red face

it is not ok to patch aodv-uu 0.9.6 to ns2.32!
so, I give up to do!!
if so, how can I do?
please guide me ,sir!
 
Old 08-18-2012, 06:03 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
# 17. The patch / patches : The package aodv-uu-0.9.6/patches/ :
ns-2.29.3-aodv-uu-0.9.2.patch
ns-2.29-aodv-uu-0.9.1-dsr-uu-0.2-oolsr-0.99.15.patch
... they are for version 0.9.6.

But using ns-2.29 may not make much difference from ns-2.32.

How did it work out with ns-2.32 ? ?


? And : Why are you editing Makefile's, when you can just do
export CC=gcc-4.1 CXX=gcc-4.1 && ./install

.
 
Old 08-18-2012, 10:25 AM   #20
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Yeah sir,

If so,I will install ns2.32 again.
Now ,I will patch aodv-uu 0.9.6 ,again.
I make effort to install this.
If I encounter problems,pleae guide me in detail.


Thanks a lot,sir!!
 
Old 08-18-2012, 10:59 AM   #21
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
hi sir,

how to know if aodv-uu-0.9.6 patching is successful?
now ,after patching aodv-uu-0.9.6 to ns 2.32 ,
when I type ns, it show % and
when t type nam, tt shows graph.

Please guide me how to test aodv-uu in ns2.
It does not include example .tcl files!!!

Next, I want to know that I can patch another routing protocol like DYMO to this ns2.32?
Your instructions are very useful for me!! So,Thanks a lot!!

May be happy & healthy ,sir!!!
 
Old 08-18-2012, 12:54 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
# 21

Dymoum is for ns-2.33 or ns-2.34. AFAIK. See post # 7.

You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any of them to a *PATH.
( I never added anything to .bashrc.
Then it's easy to have 10 times ns-allinone-2.xx .
The binary ns is hard coded to know where its libraries are located.)


? Sample scripts aodv-uu : Google .. aodv-uu tcl ..
http://www.cs.kau.se/cs/prtp/pmwiki/...UForNs-miracle
http://www.cs.kau.se/cs/prtp/pmwiki/...g-1.0.0.tar.gz
simple-wireless-aodv-uu-tcl http://www.scribd.com/doc/51264395/1...ss-aodv-uu-tcl
wireless-test.tcl http://code.google.com/p/uu-cope/sou...test.tcl?r=164

Google .. wireless1-aodv-uu.tcl ..
↓ This one looks like a good place to start ↓
https://prj.tzi.org/cgi-bin/trac.cgi...runk/README.ns

.
 
Old 08-20-2012, 03:48 AM   #23
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Yeah sir,
I download nsmiracle-pong-1.0.0.tar.gz form your site http://www.cs.kau.se/cs/prtp/pmwiki/...g-1.0.0.tar.gz
I put this file to ns-allinone-2.32 > >ns2.32 > >tcl >>ex .
When I do the following steps..... , it show that....

khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex/nsmiracle-pong-1.0.0/samples$ ls
dynlibutils.tcl pong.tclkhinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex$ cd nsmiracle-pong-1.0.0/
khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex/nsmiracle-pong-1.0.0$ ls
aclocal.m4 configure install-sh Makefile.in pong-module.h
autogen.sh configure.ac ltmain.sh missing pong-tracer.cc
config.guess depcomp m4 pong-defaults.tcl samples
config.sub initlib.cc Makefile.am pong-module.cc
khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex/nsmiracle-pong-1.0.0$ cd samples/
khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex/nsmiracle-pong-1.0.0/samples$ ns pong.tcl
couldn't load file "libMiracle.so": libMiracle.so: cannot open shared object file: No such file or directory
while executing
"load "[dynlibname ${name}]""
(procedure "dynlibload" line 4)
invoked from within
"dynlibload Miracle "
(file "pong.tcl" line 38)
khinmyo@ubuntu:~/ns-allinone-2.32/ns-2.32/tcl/ex/nsmiracle-pong-1.0.0/samples$

And the same for doing nsmiracle-aodv-uu.1.0.0!!!!
So, why is it,sir?
Is it not successful to patch aodv-uu?
Please guide me ,sir!!
 
Old 08-20-2012, 04:18 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
The examples were just "random examples".

Better try with the example in the file README.ns
https://prj.tzi.org/cgi-bin/trac.cgi...runk/README.ns


.
 
Old 08-22-2012, 12:47 AM   #25
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
hi sir,
how to remove ns2.xx from ubuntu 10.0.4 ?

Next, should I install all ns2.32 ,ns2.29 and ns2.34 over ubuntu 10.04 simultaneously ?
Because I encounter problems when I add the following files to ~/.bashrc!!!

#LD_LIBRARY_PATH
OTCL_LIB=/home/khinmyo/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/khinmyo/ns-allinone-2.34/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.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
#PATH
XGRAPH=/home/khinmyo/ns-allinone-2.34/bin:/home/khinmyo/ns-allinone-2.34/tcl8.4.18/
unix:/home/khinmyo/ns-allinone-2.34/tk8.4.18/unix
NS=/home/khinmyo/ns-allinone-2.34/ns-2.34/
NAM=/home/khinmyo/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM

This is conflict for all ns version.

Please guide me sir!
Thank you so much for everything !!!
 
Old 08-22-2012, 03:45 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
# 25
Quote:
how to remove ns2.xx from ubuntu 10.0.4 ?
Why would you remove a version ?
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add anything to a *PATH.
So if you added some path's to .bashrc : That text should be deleted.
Explanation :
The binarys ns and nam are hard coded to know the location of their libraries.

Quote:
I encounter problems when I add the following files to ~/.bashrc
Yes. Don't do that. Not required on Linux.

Using 'ns' : ns2.32 ,ns2.29 and ns2.34 :
Make copies of the three 'ns', use different names for 'ns' :
ns ns229 ns232 ns234, and cp them all to /usr/local/bin/.
Example command for simulation : ns234 file.tcl .

Nam : One copy of nam in /usr/local/bin/ will do.
( The best version is from nam-1.14 ).

.
 
Old 09-03-2012, 10:50 PM   #27
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Hi sir,

I want to get ZRP for NS2.34.
So,please help me sir!
May be happy !!!
 
Old 09-04-2012, 04:42 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
# 27, zrp.

LQ Search : Tag = zrp

... And then please read the four ZRP threads.

ZRP is for ns-2.33 :
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any of them to a *PATH.
And: You can usually not use an ns2 patched with another patch for zrp:
Different patches will most often make conflicting modifications.

If you have zrp questions : Please start a new thread.
This thread is about aodv-uu only.

.
 
Old 09-08-2012, 02:50 AM   #29
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
how to install ns2.33 in ubuntu10.04

Hello all,

After installing ns2.33 , when I type nam ,it show the following
khinmyo@ubuntu:~$ cd ns-allinone-2.33/
khinmyo@ubuntu:~/ns-allinone-2.33$ ns
% ^C
khinmyo@ubuntu:~/ns-allinone-2.33$ 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..."
khinmyo@ubuntu:~/ns-allinone-2.33$



So,please help me what should I do?
 
Old 09-08-2012, 04:32 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,707

Rep: Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297Reputation: 3297
# 29

Keep one nam in /usr/local/bin/ for all versions of ns2.
Nam is a separate application, and is included in ns-allinone for
completeness only. Any nam can be used. Most advanced: nam-1.14.
http://www.linuxquestions.org/questi...04-a-842109/#4
> post # 4.

.
 
  


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 04:33 AM
manet in ns2-wormhole attack(modifying aodv) indumit18 Linux - Software 2 02-02-2012 03:12 AM
after doing some modifications in aodv.cc file in ns2.34 i will get error breeze259 Linux - Newbie 1 01-05-2012 08:04 PM
tunnel formation between two malicious node by modifying aodv ns2 indumit18 Linux - Newbie 0 10-28-2011 05:38 AM
error in ns2-while trying to print routing table in aodv indumit18 Linux - Software 1 09-24-2011 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 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