LinuxQuestions.org
Help answer threads with 0 replies.
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-22-2010, 10:15 PM   #1
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
problem in running "dsr.tcl" file.


I have problem in running file "dsr.tcl"

num_nodes is set 6
INITIALIZE THE LIST xListHead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
Start of simulation..
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
 
Old 02-23-2010, 08:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Do you know, which output this file is supposed to provide ?

The command : ns dsr.tcl
→ → I get no output at all !

.....
 
Old 02-23-2010, 09:56 AM   #3
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
I think dsr.tcl is protocol script. so you are not getting any output. Use this dsr protocol agent. create a simulation enviroment. that you should do.
 
1 members found this post helpful.
Old 02-25-2010, 05:00 AM   #4
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Hello sir
thank you alot ...

But i need your kind attention on "segmentation fault" part of the msg which i get from run of that command.
How can i overcome this fault actually.??
 
Old 03-02-2010, 06:24 PM   #5
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
anyone is there ... with any solution of Segmentation Fault.
 
Old 03-02-2010, 06:29 PM   #6
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Have you tried running it as root?
 
Old 03-02-2010, 11:16 PM   #7
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Yes always sir... because i have only one account in my LAP that is admin... should i try with "sudo" command.??
 
Old 12-21-2013, 12:35 PM   #8
Suhaila
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Rep: Reputation: Disabled
segmentation fault

just write
## this part used in dsr to avoid segmentation fault error
if { $val(rp) =="DSR"} {
set val(ifq) CMUPriQueue
} else {
set val(ifq) Queue/DropTail/PriQueue
}
 
Old 05-28-2014, 01:07 AM   #9
s20
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
Hello Sir,

I am trying to run wired-cum-wireless tcl in ns2.
The above mention tcl file is running well with dsdv as a routing protocol.when i replace dsdv with dsr and qtype as CMUPriQueue.

it shows me following error as i run command ns test.tcl

sneha@ubuntu:~/Desktop/test/
test18_05_2014$ ns test.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
can't read "ragent_": no such variable
while executing
"subst $[subst $var]"
(procedure "_o37" line 5)
(SplitObject set line 5)
invoked from within
"$self set ragent_"
(procedure "_o37" line 3)
(Node/MobileNode agenttrace line 3)
invoked from within
"$node agenttrace $tracefd"
(procedure "_o3" line 109)
(Simulator create-wireless-node line 109)
invoked from within
"_o3 create-wireless-node 1.0.0"
("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 [lindex $temp 0]"
invoked from within
"set BS(0) [ $ns_ node [lindex $temp 0]]"
(file "test.tcl" line 155)


please help me to resolve this error as early as possible.

Thanks and regards,
s20
 
Old 05-28-2014, 06:33 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Post #9, @s20.
Quote:
I am trying to run wired-cum-wireless tcl in ns2.
The above mention tcl file is running well with dsdv as a routing protocol.
When I replace dsdv with dsr and qtype as CMUPriQueue,
it shows me following error ...
First : The original 'ns-2.35/tcl/ex/wired-cum-wireless.tcl' → already has DSR →
set val(adhocRouting) DSR

And : Changing "set val(ifq) Queue/DropTail/PriQueue" → to →
set val(ifq) CMUPriQueue
... doesn't prevent the file from showing an OK simulation.


Quote:
can't read "ragent_": no such variable
There is no "ragent_" in the original file !

So what are you doing ? Are you using a clean ns2 version ? No code changes ?
And did you do other changes to `wired-cum-wireless.tcl´ ?

Please attach your file as test_s20.tcl.txt (Or any new name, you'd prefer :
Already multiple files with the naming `test.tcl´ !
Attachments : The paper clip tool in the 'Advanced Editor'.
-
Attached Files
File Type: txt CMUPriQueue__wired-cum-wireless.tcl.txt (3.0 KB, 2 views)
 
Old 05-28-2014, 07:13 AM   #11
s20
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
hello Sir,
Sorry for inconvenience.

Here is the actual topology need to be simulated.

It consists of three sections of links and four nodes.
The wired part including two sections of links, one is the link from the source to the router, and the other one is the link from the router to the base station. The wireless part is the link from the base station to the terminal. The bandwidth of the link from the source to the router is 100Mbps,and the delay is 1ms. The bandwidth of the link form the router to the base station is 100Mbps, and the delay is 49ms. The bandwidth of the link from the base station to the terminal is 1Mbps, and the delay is 0.01ms. The data packet's size is set to the fixed length 1000byte, and the range of wireless error rate is 0.001-0.01. The simulation last for 200s, and there is only one data stream named FTP which starts at 10s and ends at 200s.

With the above topology i need to use dsr as a routing protocol.
1. yes i am using clean ns2 version, no changes made to dsr protocol

Aim of the project is to improve performance of TCP Reno on wired-cum-wireless topology by making some changes in tcp reno.

in above topology tcl as a routing protocol tried DSDV it is working well but not with DSR and AODV.

herewith I am attaching my tcl file

Kindly suggest the solution

Thanks and regards,
s20
Attached Files
File Type: txt DSR_wired-cm-wireless.txt (6.1 KB, 4 views)
 
Old 05-31-2014, 04:08 AM   #12
maulanaibrahim
LQ Newbie
 
Registered: May 2014
Posts: 19

Rep: Reputation: Disabled
ive used the scenario that i made to run dsr but the cbr file not suited because it suited just for 25 nodes. does anyone have the cbr file that can adjust the more node because in my project it need 90-200 node. thks for the reply
 
Old 05-31-2014, 06:36 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
# 12 .

Examples : ns-2.xx/tcl/mobility/scene/{ cbr-* }

Generating a new ``CMU's connection pattern´´ :
ns-2.xx/indep-utils/cmu-scen-gen/README
Examples, -nn 100 :
a) $ ns cbrgen.tcl -type tcp -nn 100 -seed 0.1 -mc 20 > cbr-100
b) $ ns cbrgen.tcl -type tcp -nn 100 -seed 512 -mc 20 -rate -4 > cbr-100-20-4-512
c) $ ns cbrgen.tcl -type vbr -nn 100 -seed 512 -mc 20 -rate -4 > vbr-100-20-4-512

-
 
Old 06-04-2014, 10:34 AM   #14
maulanaibrahim
LQ Newbie
 
Registered: May 2014
Posts: 19

Rep: Reputation: Disabled
#13.

thanks. but when i called nam it got me error like this :

Cannot connect to existing nam instance. Starting a new one...
You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph

and there arent node in nam..

can you tell the solution of this?

btw i used ubuntu 10.04,gcc++-4.3,nam 1.14
 
Old 06-04-2014, 01:29 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
# 14 .

Please attach your edited tcl file as <name>.tcl.txt,
and the scenario files as <name>.txt

Remark : gcc-4.3 and g++-4.3 are not recommended.
Please use "4.1" : $ sudo apt-get install g++-4.1

-
 
  


Reply

Tags
dsr, 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
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
"Permission denied " running any .sh file mamunbabu2001 Linux - Newbie 9 09-24-2009 12:09 PM
tcl/expect stdout redirected to file stops (possibly due to a "@" in exp_send) cejennings_cr Programming 1 07-08-2009 06:01 PM
EXPECT/TCL: the "source" command and passing arguments qmqmqm Programming 4 04-02-2009 05:36 PM
Running "svn update" but modified, uncommited file remains kenneho Linux - Software 2 03-12-2008 09:16 AM


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

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