LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2012, 08:21 AM   #1
Khaled ELmishad
LQ Newbie
 
Registered: May 2012
Posts: 10

Rep: Reputation: Disabled
CRCN ns2 add channel GUI nam throughput problem


Help me on CRCN patch problems:

1.crcn GUI (more than 1 channel) after clicking on start sim
it says:
num_nodes is set 10
Process exitValue: 1
Instead of (0 and starting simulation).
(i.e. nam tr files are empty)

2.Related to 1 add-channel when typing ns test.tcl created by CRCN gui


invoked from within
"_o3 cmd add-channel 0 _o13"
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 "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns_ add-channel $i $chan_($i)"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(channum) } {incr i} {
$ns_ add-channel $i $chan_($i)
}"
(file "test.tcl" line 43)


3.While running nam file it keeps telling me: node i not defined (i is nodes of connections i is 1 or 2 ..)

4.Installed gnuplot but throughput can not be displayed
 
Old 05-15-2012, 09:58 PM   #2
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
I also met the same problem, too. Have you already solved it?
 
Old 05-16-2012, 03:35 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The CRCN GUI ( java -jar CRCN.jar )

Which file are you entering ?
I.e. the "Open file from..." window in the CRCN GUI.
 
Old 05-16-2012, 04:01 AM   #4
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
I follow the installation steps in the link below:
http://mclab.wikidot.com/wiki:howto-...on-ubuntu10-04
and all compilations are withour error, then I run a .tcl file in crcn folder like this: ns test4maccon.tcl, then appear this case:
invoked from within
"_o3 cmd add-channel 0 _o13"
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 "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns_ add-channel $i $chan_($i)"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(channum) } {incr i} {
$ns_ add-channel $i $chan_($i)
}"
(file "test.tcl" line 43)

Is there anything wrong? I ask for your help.
Regards
 
Old 05-16-2012, 05:07 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 4 : The OP is about the crcn GUI. So I guess that your crcn issue is off topic.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
http://www.linuxquestions.org/linux/rules.html
→ Probably start your own thread, and please tell which Ubuntu, it's about.

The install instructions are here, post #9 , etc.
http://www.linuxquestions.org/questi...31-a-831390/#9
... Just use the attached Makefile.in, then there's no editing of the Makefile.
Suggest : Use gcc / g++ version 4.1 : Then no files.cc etc. needs editing.
That's much simpler than your link.
Code:
[knudfl@localhost ns-2.31]$ ./ns test4maccon.tcl
num_nodes is set 6
INITIALIZE THE LIST xListHead
INITIALIZE THE LIST xListHead
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
SORTING LISTS ...DONE!
SORTING LISTS ...DONE!
NS EXITING...

Last edited by knudfl; 05-16-2012 at 06:28 AM.
 
Old 05-16-2012, 06:45 AM   #6
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
thanks for your advice!
I used ubuntu10.04 OS under VMmare7.
how can you run with "./ns"?
I'm a new user. If conveniet, would you mind writing a detailed steps from the installation of ns-allinone-2.31 to the installation of CRCN patch?
many thanks.

Last edited by musemicang; 05-16-2012 at 07:18 AM.
 
Old 05-16-2012, 07:51 AM   #7
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
I'm sure I installed ns-2.31 correctly, but I don't know what's the the correct installation ways of CRCN patch, I follow http://stuweb.ee.mtu.edu/~ljialian/installation.htm to step 4,
then I accept your advice, following
http://www.linuxquestions.org/questi...31-a-831390/#9
however, after compiling, when I run"ns test4maccon.tcl", the problem is still existed. What should I do?

Last edited by musemicang; 05-16-2012 at 07:52 AM.
 
Old 05-16-2012, 08:16 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, ./ns means : Run ns in the current directory.

About the patching :
The latest info is here, post # 5 ( I had totally forgotten ..)
http://www.linuxquestions.org/questi...-error-940388/
Ubuntu : cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
&& cd ns-2.31/ && cp ns ns-orig && export CC=gcc-4.1 CXX=g++-4.1 &&
./configure && make clean && make


... Should be the proof way to get crcn to work.
( Required : sudo apt-get install g++-4.1 ).

.
 
Old 05-16-2012, 08:30 PM   #9
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
Hi, I tried to move all files in CRCN patch to ns-2.31 directory, including test4maccon.tcl, test4wcett.tcl and so on. after compiling, I did the following steps:
cd ns-allinone-2.31/ns-2.31& ./ns test4maccon.tcl,
then it runs well. But when I use "ns test4macco.tcl", still error, I don't know why.
then I run with "nam test.nam", the case below appears:
node 0 is not defined... node 0 is not defined... node 1 is not defined... node 1 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... node 5 is not defined... node 0 is not defined... node 0 is not defined... node 2 is not defined... node 3 is not defined... node 5 is not defined... node 4 is not defined... node 1 is not defined... node 4 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 5 is not defined... node 5 is not defined... node 5 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 3 is not defined... node 0 is not defined... node 2 is not defined... node 5 is not defined... node 3 is not defined... node 3 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 2 is not defined... node 2 is not defined... node 2 is not defined... node 5 is not defined... node 5 is not defined... node 5 is not defined... node 0 is not defined... node 4 is not defined... node 2 is not defined... node 1 is not defined... node 5 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 2 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 5 is not defined... node 5 is not defined... node 5 is not defined... node 1 is not defined... node 1 is not defined... node 4 is not defined... node 3 is not defined... node 0 is not defined... node 2 is not defined... node 5 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 2 is not defined... node 2 is not defined... node 2 is not defined... node 5 is not defined... node 5 is not defined... node 5 is not defined... node 0 is not defined... node 0 is not defined... node 4 is not defined... node 5 is not defined... node 5 is not defined... node 2 is not defined... node 0 is not defined... node 3 is not defined... node 4 is not defined... node 1 is not defined... node 2 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 2 is not defined... node 2 is not defined... node 5 is not defined... node 0 is not defined... node 3 is not defined... node 4 is not defined... node 1 is not defined... node 5 is not defined... node 5 is not defined... node 5 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 0 is not defined... node 0 is not defined... node 1 is not defined... node 4 is not defined... node 4 is not defined... node 1 is not defined... node 1 is not defined... node 0 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 5 is not defined... node 4 is not defined... node 4 is not defined... node 4 is not defined... node 3 is not defined... node 3 is not defined... node 5 is not defined... node 5 is not defined... node 1 is not defined... node 1 is not defined... node 0 is not defined... node 0 is not defined... node 2 is not defined... node 0 is not defined... node 0 is not defined... node 3 is not defined... node 5 is not defined... node 5 is not defined... node 2 is not defined... node 1 is not defined... node 1 is not defined... node 5 is not defined... node 1 is not defined... node 1 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... node 5 is not defined... node 1 is not defined... node 3 is not defined... node 3 is not defined... node 3 is not defined... node 1 is not defined... node 4 is not defined... node 4 is not defined... node 1 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... node 1 is not defined... node 1 is not defined... node 0 is not defined... node 5 is not defined... node 5 is not defined... node 3 is not defined... node 3 is not defined... node 4 is not defined... node 0 is not defined... node 5 is not defined... node 5 is not defined... node 4 is not defined... node 4 is not defined... node 0 is not defined... node 3 is not defined... node 2 is not defined... node 2 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 0 is not defined...
What's wrong with that? I ask for your help!

Last edited by musemicang; 05-16-2012 at 08:33 PM.
 
Old 05-17-2012, 02:49 AM   #10
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Well, ./ns means : Run ns in the current directory.

About the patching :
The latest info is here, post # 5 ( I had totally forgotten ..)
http://www.linuxquestions.org/questi...-error-940388/
Ubuntu : cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
&& cd ns-2.31/ && cp ns ns-orig && export CC=gcc-4.1 CXX=g++-4.1 &&
./configure && make clean && make


... Should be the proof way to get crcn to work.
( Required : sudo apt-get install g++-4.1 ).

.
I am located in mainland China, so I can't find the way to open your link below:
https://docs.google.com/open?id=0B7S...XEtS3ozTHpmRHM
If convenient, please send the docs "crcn-ns2.31.tar.gz" to my email.
Regards.

Last edited by musemicang; 05-17-2012 at 03:58 AM.
 
Old 05-17-2012, 03:56 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10

Consider it done. Better delete your mail address for spam reasons.

We already have the "Send Email to musemicang"

http://www.linuxquestions.org/questi...ember&u=652062

.
 
Old 05-17-2012, 04:01 AM   #12
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
# 11
Many thanks, another question:
http://www.linuxquestions.org/questi...blem-944567/#9
Could you give me some advice?
Kind Regards.
 
Old 05-17-2012, 12:58 PM   #13
Khaled ELmishad
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
1 & 2 & 3 Solutions

1. & 2. For 1st error in the thread create your scenario, topology and parameters in CRCN gui. ./ns it from terminal instead of start sim button.

3. For nam not defined problem u gotta check ur topology script carefully and look for missing data
 
Old 05-17-2012, 08:52 PM   #14
musemicang
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
# 13
I just nam test.nam generated by running "./ns test4maccon.tcl", then "node i is not defined" appeared continuously. Its topology script was topo4.tcl, but I can't find any bugs from the topology script, would you mind giving me some advice?
 
Old 05-18-2012, 04:30 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14
Quote:
"node i is not defined"
Better delete the failed build and start from scratch with a new ns-allinone-2.31.tar.gz.
See post # 8. There should be no way it can fail with the new patch.
 
  


Reply

Tags
crcn, ns2



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
trying to display throughput in CRCN GUI humairaafzal73 Linux - Software 33 11-21-2015 05:10 AM
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 01:03 PM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 09:52 AM
problem with opening nam in ns2 MLinux Linux - General 1 11-16-2010 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 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
Open Source Consulting | Domain Registration