LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while running MAODV in ns-2.34 (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-running-maodv-in-ns-2-34-a-787178/)

adi.trisna 02-05-2010 02:45 AM

error while running MAODV in ns-2.34
 
hello, right now i encounter error while trying to run a simulation for MAODV in ns-2.34.
=========================================================================
it says :
rangga@rangga-laptop:~/maodv/untitled folder/maodv-scripts$ ns ns.tcl 01 10 1
num_nodes is set 50
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 79)
(Simulator create-wireless-node line 79)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $nodes} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;
}"
(file "ns.tcl" line 43)

=========================================================================
what is the problem? could anyone help me to fix it?

knudfl 02-05-2010 07:07 AM

Quote:

maodv/untitled folder/maodv-scripts
What are these files, and where did you get them ?

Quote:

ns ns.tcl 01 10 1
Is this your exact command ?
And please attach 'ns.tcl' as " ns.tcl.txt ".
.....

And what are the errors ?
.....

adi.trisna 02-07-2010 06:26 AM

@ knudfl, sorry, it takes to long to reply,

Quote:

maodv/untitled folder/maodv-scripts
it my directory of MAODV module.

i downloaded the maodv module from :
http://kunz-pc.sce.carleton.ca/Thesis/maodv-code.zip
at there, they provided a step by step implementation but only for ns-2.26.

Quote:

ns ns.tcl 01 10 1
yes that is the code to run maodv.

and this is the error after i run maodv in ns-2.34
Quote:

num_nodes is set 50
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 79)
(Simulator create-wireless-node line 79)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $nodes} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;
}"
(file "ns.tcl" line 43)

knudfl 02-07-2010 07:03 AM

Thank you for the link.

> > http://kunz-pc.sce.carleton.ca/Thesis/maodv-code.zip

http://kunz-pc.sce.carleton.ca/Thesis/maodv-ns-2.26.pdf
> maodv-ns-2.26.pdf

http://kunz-pc.sce.carleton.ca/Thesis/maodv-scripts.zip
> maodv-scripts.zip > > ns.tcl , etc.

http://kunz-pc.sce.carleton.ca/Thesis/

May be, the code will work in ns-2.26 only ?

I will have a look at it, when I find time to do so.
.....

adi.trisna 02-07-2010 09:36 AM

it's just weird for maodv if it can run in ns-2.26 only and it can't run on newer version of ns-2. i've been searching using google and i don't find any. hm...

by the way, thank you for your reply, i really appreciate it...

sivafedora 02-19-2010 11:00 PM

reply
 
To be precise, you cannot implement MAODV on ns2.34

The maodv implemenatation is done on ns2.26 (files you downloaded from Thomas Kunz). ns 2.26 can install only on RedHat9 Operating System. I tried many times doing MAODV on fedora with ns 2.31 and 2.33. The only way is get a RedHat9 OS, install ns 2.26, then Run the MAODV simulation.

All the Best

sivaprasad.mtech@gmail.com

knudfl 02-20-2010 06:28 AM

Quote:

ns 2.26 can install only on RedHat9 Operating System
Almost correct, but not quite.

ns-2.26 will run with no problems on
the redhat 9 based CentOS 3.9 .
CentOS 3.9 has end of life : October-31-2010.
http://www.linuxquestions.org/questi...-fc9-774202/#9
> > post # 9 , etc.
.....

thinhtelecom 07-12-2010 08:25 AM

Quote:

Originally Posted by sivafedora (Post 3870036)
To be precise, you cannot implement MAODV on ns2.34

The maodv implemenatation is done on ns2.26 (files you downloaded from Thomas Kunz). ns 2.26 can install only on RedHat9 Operating System. I tried many times doing MAODV on fedora with ns 2.31 and 2.33. The only way is get a RedHat9 OS, install ns 2.26, then Run the MAODV simulation.

All the Best

sivaprasad.mtech@gmail.com

Hi !

I really want to install ns-2.26 on Redhat Linux 9.0; however, it occurs some problems (with picture enclosed)
http://i371.photobucket.com/albums/o...-10_221239.jpg

Anyone please tell me the way to install ns-2.26 on Redhat 9.0.
Thanks a lot !
Regards,
thinhtelecom

knudfl 07-13-2010 04:59 AM

ns-allinone-2.26 .. ns-2.26-aodv-uu-mip
 
@ thinhtelecom, post # 8.

Looking for trouble :
Use Redhat 9, released 2002, obsoleted 2004.
If you want to use it : make a complete install :
All development tools must be included.
( glibc-devel, gcc, gcc-c++, etc. etc. )

'ns-allinone-2.26' : Any Linux with gcc / g++ 3.3.3 is OK.
Like Suse 11.2, Fedora 12. Fedora requirements :
# yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel \
xorg-x11-proto-devel make automake autoconf libtool
.. And the Suse gcc-c++ 3.3.3
http://www.linuxquestions.org/questi...2-a-797763/#12 > post # 12.


Edit some 'Makefile.in' :
otcl-1.0a8/, line 7 : CC = gcc-3.3
tclcl-1.0b13/, line 40 : CC = gcc-3.3
tclcl-1.17/, line 41 : CPP = g++-3.3
ns-2.26/ , line 36 : CC = gcc-3.3
ns-2.26/ , line 37 : CPP = g++-3.3
nam-1.11/, line 44 : CC = gcc-3.3 (Any nam can be used.)
nam-1.11/, line 45 : CPP = g++-3.3
tcl, tk : I don't remember.
..

thinhtelecom 07-13-2010 11:55 PM

1 Attachment(s)
@ knudfl


I will try to install ns-2.26 on Redhat 9.0, again.:hattip:

Now I simulate MAODV on Fedora 8 with ns-2.26. However, I have a problem when I run ns.tcl script, it informs an error that :

ns: _o194 aodv-join-group -2147483648:
(_o194 cmd line 1)
invoked from within
"_o194 cmd aodv-join-group -2147483648"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o194" line 2)
(SplitObject unknown line 2)
invoked from within
"_o194 aodv-join-group -2147483648"

I have searched my problem on the internet, but I cannot find out solution for this.
If possible, please show me the way to fix this problem.

Thanks a lot !
Regards,
Vo

knudfl 07-14-2010 01:15 AM

Post # 10 , @thinhtelecom

This I remember :
The aodv patching and the scripts work OK on CentOS 3.9.
CentOS 3.9 is the long term supported free version of
Redhat 9, and is supported until Oct. 31, 2010.
..

thinhtelecom 07-14-2010 08:10 AM

Quote:

Originally Posted by knudfl (Post 4032571)
Post # 10 , @thinhtelecom

This I remember :
The aodv patching and the scripts work OK on CentOS 3.9.
CentOS 3.9 is the long term supported free version of
Redhat 9, and is supported until Oct. 31, 2010.
..

I am using VMware 6.5 and Redhat 9.0. However, Redhat cannot connect to the internet.

Could you show me the way to access the internet ?
Thanks.

thinhtelecom 07-14-2010 08:27 AM

Quote:

Originally Posted by knudfl (Post 4031656)
@ thinhtelecom, post # 8.

Looking for trouble :
Use Redhat 9, released 2002, obsoleted 2004.
If you want to use it : make a complete install :
All development tools must be included.
( glibc-devel, gcc, gcc-c++, etc. etc. )

'ns-allinone-2.26' : Any Linux with gcc / g++ 3.3.3 is OK.
Like Suse 11.2, Fedora 12. Fedora requirements :
# yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel \
xorg-x11-proto-devel make automake autoconf libtool
.. And the Suse gcc-c++ 3.3.3
http://www.linuxquestions.org/questi...2-a-797763/#12 > post # 12.


Edit some 'Makefile.in' :
otcl-1.0a8/, line 7 : CC = gcc-3.3
tclcl-1.0b13/, line 40 : CC = gcc-3.3
tclcl-1.17/, line 41 : CPP = g++-3.3
ns-2.26/ , line 36 : CC = gcc-3.3
ns-2.26/ , line 37 : CPP = g++-3.3
nam-1.11/, line 44 : CC = gcc-3.3 (Any nam can be used.)
nam-1.11/, line 45 : CPP = g++-3.3
tcl, tk : I don't remember.
..

Please more specific about it. According your instructions, I have to edit "Makefile.in" which were located in ns-2.26 ?

Please provide more information about tcl, tk because I cannot install successfully with out them

Thanks !

knudfl 07-14-2010 12:36 PM

The instructions in post # 9 are for e.g. Fedora 12, not Redhat 9.

Just look into ns-allinone-2.26/ns-2.26/Makefile.in
etc. etc.

If any problems with tcl, tk :
ns-allinone-2.26/tcl8.3.2/unix/Makefile.in , line 229 : CC = gcc-3.3
ns-allinone-2.26/tk8.3.2/unix/Makefile.in , line 236 : CC = gcc-3.3

..
Redhat 9 / CentOS 3.x : No edits.
..

thinhtelecom 07-15-2010 10:57 AM

Quote:

Originally Posted by knudfl (Post 4033038)
The instructions in post # 9 are for e.g. Fedora 12, not Redhat 9.

Just look into ns-allinone-2.26/ns-2.26/Makefile.in
etc. etc.

If any problems with tcl, tk :
ns-allinone-2.26/tcl8.3.2/unix/Makefile.in , line 229 : CC = gcc-3.3
ns-allinone-2.26/tk8.3.2/unix/Makefile.in , line 236 : CC = gcc-3.3

..
Redhat 9 / CentOS 3.x : No edits.
..

The fact is that my Red hat 9 cannot access the internet, so what should I do to update some packages necessary. I'm a newbie, please help me more.

Thanks.


All times are GMT -5. The time now is 02:59 PM.