LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   CRCN ns2 add channel GUI nam throughput problem (http://www.linuxquestions.org/questions/linux-software-2/crcn-ns2-add-channel-gui-nam-throughput-problem-944567/)

Khaled ELmishad 05-12-2012 09:21 AM

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

musemicang 05-15-2012 10:58 PM

I also met the same problem, too. Have you already solved it?

knudfl 05-16-2012 04:35 AM

The CRCN GUI ( java -jar CRCN.jar )

Which file are you entering ?
I.e. the "Open file from..." window in the CRCN GUI.

musemicang 05-16-2012 05:01 AM

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

knudfl 05-16-2012 06:07 AM

# 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...


musemicang 05-16-2012 07:45 AM

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.

musemicang 05-16-2012 08:51 AM

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?

knudfl 05-16-2012 09:16 AM

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 ).

.

musemicang 05-16-2012 09:30 PM

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!

musemicang 05-17-2012 03:49 AM

Quote:

Originally Posted by knudfl (Post 4679890)
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.

knudfl 05-17-2012 04:56 AM

# 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

.

musemicang 05-17-2012 05:01 AM

# 11
Many thanks, another question:
http://www.linuxquestions.org/questi...blem-944567/#9
Could you give me some advice?
Kind Regards.

Khaled ELmishad 05-17-2012 01:58 PM

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

musemicang 05-17-2012 09:52 PM

# 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?

knudfl 05-18-2012 05:30 AM

# 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.


All times are GMT -5. The time now is 02:30 AM.