LinuxQuestions.org
Visit Jeremy's Blog.
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 02-14-2011, 12:32 PM   #31
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1

I'm still stuck in this error please help me
*************
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$ ns simple-mipv6.tcl
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

Erreur de segmentation
**************
 
Old 02-15-2011, 06:45 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
*

Post # 31 , @ rochd : Which Ubuntu are you using ? ?
 
Old 02-16-2011, 12:41 AM   #33
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Hi! Knudfl & All,

I have successfully installed ns2.33 and mobiwan. Also I have executed simple-mipv6 well by following Knudfl's explanation (by set BASEDIR to the correct path). But when I execute the TCL script file that excited in /ex folder (/ns-2.33/tcl/ex/simple.tcl),I got the following error:

ex]$ ns simple.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns attach-agent $n0 $udp0"
(file "simple.tcl" line 29)

How can I handle such this error?

Many Thanks!
 
Old 02-16-2011, 05:00 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
@ Asago ( and all others too ) : http://linuxsilo.net/docs/smart-questions_en.html

Every time you ask a question, tell which OS, that's used, please.

The application (ns233 mobiwan) behaves slightly different on the different OS'.

And in post # 33 the Fedora ? version is missing !

..
 
Old 02-16-2011, 10:08 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Post #31, @rochd :

The commands are
1) cd ns-allinone-2.33/ns-2.33/tcl/mobiwan/
2) ns simple-mipv6.tcl

The file simple-mipv6.tcl will not work in another location.

..
 
Old 02-16-2011, 10:16 AM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Post #33, @ Asago :

The binary 'ns', you are using is compiled with mobiwan, it seems.
And cannot be used for a "ns simple.tcl" command.

For that, you will have to compile a binary ns with no mobiwan.
And suggest : Rename it to 'ns233'.
Then 'ns233 simple.tcl' will work. ( And open nam.)

..
 
Old 02-18-2011, 05:44 AM   #37
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@Knudfl
thank you for your reply
I use ubunto 10.04
when I've run from tcl / mobiwan here is what the actual execution

rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ ns simple-mipv6.tcl
couldn't open "out.tr": permission denied
while executing
"open $opt(tracefile) w"
(procedure "main" line 23)
invoked from within
"main"
(file "simple-mipv6.tcl" line 152)
 
Old 02-18-2011, 02:54 PM   #38
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@Knudfl
I do not know how but I have to run again another time in the file ns-2.33, and he gave the following
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$ ns simple-mipv6.tcl
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
31.9021 get_coa for BS 1.2.0:4198400
Simulation finished

|Binding Cache for node 1.1.0 at 100 --------------------------------------- |
|Node COA Type Info Flag Last Time Life Expire Nb|
|1.1.1 1.2.6 7 MN 1 22 96.9076 10 0 12 |


|Binding Cache for node 0.0.0 at 100 --------------------------------------- |
|Node COA Type Info Flag Last Time Life Expire Nb|
|1.1.1 1.2.6 7 MN 1 23 96.9098 10 0 11 |


|Binding Update List for node 1.1.1 at 100 --------------------------------------- |
|Node COA Type Info Flag Last Time Life Expire Nb|
|0.0.0 1.2.6 5 CN 1 23 96.9021 10 109.964 11 |
|1.1.0 1.2.6 3 HA 1 22 96.9021 10 2.68435e+08 12 |


|Base Station List for node 1.1.1 at 100 --------------------------------------- |
|Node COA Type Info Flag Last Time Life Expire Nb|
|1.2.0 1.2.6 8 BS 1
-1 99.5648 10 135 |

rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$ nam out.nam
Cannot connect to existing nam instance. Starting a new one...

(attachment)

i can say is well done mobiwan ?????
if so I do not seen as the mobile node moves in out.nam and the graphs are not displayed
Attached Images
File Type: png nam.png (59.5 KB, 8 views)

Last edited by rochd; 02-18-2011 at 03:02 PM.
 
Old 02-18-2011, 05:43 PM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Everything is OK so far.

Please push the 'Play' button in nam, and watch.

Graphs ? You get : out.nam and out.tr : 'out.tr' is a text file, you can read.
Or may be the mobiwan documentation has other suggestions ? ?

..
 
Old 02-20-2011, 07:26 AM   #40
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@knudfl

when I click button play the figure remains stable no node moves to show the mobility !!!????
how I could get the graphics simulations?? I need to convert out.tr in graphics

Last edited by rochd; 02-20-2011 at 08:42 AM.
 
Old 02-21-2011, 11:55 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
# 40.

One LQ member complained, that the nodes moved to a new position,
every time 'nam out.nam' was run. Is is that kind of mobility, you want ?

Mobile doesn't necessarily means that a unit is on the run all the time.
You can actually use a mobile unit when you do not move.
Also : It would be rather confusing, if the nodes constantly circled around ?

.
 
Old 02-22-2011, 04:32 AM   #42
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@41 Knudfl

for the scenario that I envisage for mobility, this link here or there is a simulation of mobility.(http://plex.coe.psu.ac.th/mip/ns2mobiwan.pdf see figure out.nam)
secondly I would like to know is what I could have graphics? I heard that the file may become out.tr graphics??

thank you very much for your answers Knudfl

Last edited by rochd; 02-22-2011 at 04:35 AM.
 
Old 02-22-2011, 04:57 PM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
# 42.

Sorry, I don't know the "mobiwan-020513bis.tar.gz files".

But I guess, the required "awk filter" by name 'mipv6-awk', etc. is included
in that tarball.
 
Old 02-24-2011, 02:50 AM   #44
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by knudfl View Post
Post #33, @ Asago :

The binary 'ns', you are using is compiled with mobiwan, it seems.
And cannot be used for a "ns simple.tcl" command.

For that, you will have to compile a binary ns with no mobiwan.
And suggest : Rename it to 'ns233'.
Then 'ns233 simple.tcl' will work. ( And open nam.)

..
Thank you Kundfl,
Just for clarify, in case I compile ns2 without mobiwan, that means mipv6 will not work again ..
Do you think can we dealing with ipv4&6 in one ns framework?!.
 
Old 02-24-2011, 06:56 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,162

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
# 44.

You can have both binaries.
The most easy is to do './install' in a ns-allinone-2.33/ with no mobiwan.
And after that : cd ns-allinone-2.33/ns-2.33/ && mv ns ns233
Then you can use it with : ns233 simple.tcl
Suggest : copy all binaries, ns and nam, to /use/local/bin/.
Then you don't have to care about the path.

Currently, I have these "ns" : 'ls /usr/local/bin/ns*'

/usr/local/bin/ns227* /usr/local/bin/ns234*
/usr/local/bin/ns227-leach* /usr/local/bin/ns233-mobiwan*
/usr/local/bin/ns233

..
 
  


Reply

Tags
ns2, nsg2


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
problem in running "dsr.tcl" file. neeraj.dwivedi Linux - Newbie 17 06-11-2014 02:08 AM
Running tcl script in LINUX smruthana Linux - General 1 01-28-2007 04:04 AM
problems running textSTAT with python and tcl sigma1 Linux - Software 0 09-17-2006 10:38 AM
tcl script maphin Linux - General 1 05-18-2006 11:43 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration