LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-27-2014, 05:45 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 30 .

Ns-2.xx/indep-utils/cmu-scen-gen/README :
cbrgen.tcl -- for generating CBR connections.
$ cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc connections] [-rate rate]


Ns-2.xx/indep-utils/cmu-scen-gen/setdest/README :
A scenario or node-movement file generator.
$ ./setdest [options] > out.file


Scenario files and simulations.tcl : gpsr-hls-examples-05.14.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

-

Last edited by knudfl; 05-27-2014 at 05:46 AM.
 
Old 05-28-2014, 07:14 AM   #32
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear Sir knudfl

I did all steps in #30 before it's empty scenario file

what you think about this problem

Thanks
 
Old 05-28-2014, 08:20 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 32 .

Please show the command you used to generate "scenario".
 
Old 05-28-2014, 08:29 AM   #34
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl
this is the command that I used to generate "scenario".

$ cd ns-allinone-2.33/
$cd ns-2.33/
$cd indep-utils/
$cd cmu-scen-gen/
$cd setdest/
$./setdest -n [number of nodes] -p [pause time] -m [max speed] -t [simulation time] -x [axis x] -y [axis y] > name (for the file scenario)


thanks
 
Old 05-28-2014, 09:32 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 34 .

The right command is, example :
1) $ cd ns-allinone-2.33/ns-2.33/indep-utils/setdest/
2) $ ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test

I.e. "for creating a node-movement scenario consisting of 20 nodes
moving with maximum speed of 10.0m/s with an average pause between
movement being 2s. We want the simulation to stop after 200s and
the topology boundary is defined as 500 X 500."

Please read the file /indep-utils/cmu-scen-gen/setdest/README

-
 
Old 05-28-2014, 09:57 AM   #36
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thanks is done
 
Old 05-29-2014, 01:29 PM   #37
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl

I need to ask you about the awk for GPSR protocol is same for AODV and OLSR protocols or different

Best regards
 
Old 05-30-2014, 06:21 AM   #38
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl

when I did implementation for GPSR protocol with the input files (cbr & scenario)inside the terminal window show this sentence

Segmentation fault (core dumped)

please, I need to know this sentence mean failure for the implementation or not?

If it mistake how I can solve it?

Thanks
 
Old 05-30-2014, 06:49 AM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 38 .
Quote:
... GPSR protocol with the input files (cbr & scenario) ...
? Which files ? And which command ?

Examples :
1) $ ns-hls hls.tcl
... which will also use the files {cp-n40-a40-t40-c4-m0, sc-x2000-y2000-n40-s25-t40}.

2) $ ns-hls ssoumayaa.tcl
... uses : changjing1.tcl

-
 
Old 05-30-2014, 06:58 AM   #40
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear knudfl

I use hls.tcl file.

but the commands are:

$cd Desktop
$cd new folder (I created folder for include the hls.tcl, cbr file and scenario file)
&ns hls.tcl
 
Old 05-30-2014, 11:04 PM   #41
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl

Please help me for #38, #40

Thanks
 
Old 05-31-2014, 07:15 AM   #42
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 38 .

Don't know how you can get `Segmentation faultī.
Might indicate a failed build.
$ ns-hls hls.tcl : Should produce "other errors" with Ubuntu 12.04 .

1) The executable ns must be copied to a new name, e.g. ns-hls, and then :
$ sudo cp ns-hls /usr/local/bin/
... Then run all hls simulations with $ ns-hls file.tcl
2) But : Ubuntu 12.04 has been updated to a level,
that makes it unusable for building any GPSR. (Hence "other errors").

* Using the stock GPSR-hls version :
Install the package `gpsr-hls-2.33-ubuntu10_i386.debī
https://drive.google.com/file/d/0B7S...it?usp=sharing
.. then you will have no issues with $ ns-hls hls.tcl , etc.

Please read http://www.linuxquestions.org/questions/tags/gpsr/

Usable OS's for building GPSR : CentOS 6.5 - i386 (and the unsupported Ubuntu 10.10).

-

Last edited by knudfl; 05-31-2014 at 08:08 AM.
 
Old 06-01-2014, 12:38 AM   #43
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl

when I run simulation I have this problem


Seeding Random number generator with 1.0

num_nodes is set 5
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
can't read "God_": no such variable
while executing
"$God_ set-dist 0 1 16777215"
(file "ss66" line 19)
invoked from within
"source.orig ss66"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $opt(sc)"
invoked from within
"if { $opt(sc) == "" } {
puts "*** NOTE: no scenario file specified."
set opt(sc) "none"
} else {
puts "Loading scenario file..."
source $opt(sc)
puts ..."

how can I solve this problem

Thanks
 
Old 06-01-2014, 05:00 AM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 43 .
Quote:
can't read "God_": no such variable
Take care that your unknown file.tcl uses the same naming for `godī,
as your connected files.


Any questions : "when I run simulation" isn't the required information.
Minimum information is : 1) The full command, like $ ns-hls file.tcl
2) And the right file names for all files / connected files must be shown.

-
 
Old 06-01-2014, 08:03 AM   #45
muthana
Member
 
Registered: Oct 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Dear sir knudfl

Please, can you send to me awk for GPSR protocol

Thanks
 
  


Reply

Tags
gpsr, gpsr-hls, 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
[SOLVED] GPSR on NS2.34 farfattou Linux - Software 17 01-10-2015 08:29 AM
GPSR tcl farfattou Linux - Software 0 06-21-2013 07:44 PM
GPSR in VANET Darshana.yadav@gmail.com Linux - Newbie 2 10-19-2012 01:44 AM
GPSR installation mrohini Linux - Networking 1 10-15-2012 04:33 AM

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

All times are GMT -5. The time now is 07:00 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