LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Closed Thread
  Search this Thread
Old 02-16-2013, 12:31 PM   #121
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

# 120 .

Actually you do not have to build anything at all.
The two packages will do.
The main purpose of ns-allinone-2.xx is to build one file : 'ns'.

"gpsr-hls-2.33-ubuntu10_i386.deb" : You get ns(-hls).
And "gpsr-keliu-ns-2.34-ubuntu10_i386.deb" : ns(-gpsr-k)

All you need to run the KeLiu example is the KeLiu "gpsr/" folder
in an ns-2.33/ or ns-2.34/.
And the folder can be renamed to e.g. ns-2.33/gpsr-K,
if you already have a folder by name gpsr/.
The KeLiu "gpsr/" is in the patched ns234 "gpsr-KeLiu-patched-ns234.tar.gz",
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Install gpsr-keliu-ns-2.34-ubuntu10_i386.deb, and you can do :
$ cd ///ns-2.xx/gpsr(-K) && ns-gpsr-k wireless-gpsr.tcl

-
 
1 members found this post helpful.
Old 02-16-2013, 05:45 PM   #122
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
thank you for your reply , i run wireless-gpsr.tcl with no error by this command

ns-gpsr-k wireless-gpsr.tcl

a file named "nam.out.tr" was created , when i try to run it with this command

nam nam.out.tr

the nam windows appear but no node and no transmission .

i'm asking if there is a possibiity to see some simulation and some nodes mooving , using nam from the file "wireless-gpsr.tcl"

thx in advance

 
Old 02-26-2013, 07:14 AM   #123
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
hi all , hope you all fine , i run gpsr protocol on my file tcl with " ns-hls ", but the trace file , have another format , so i cant apply my scripts awk , and this an extract of my trace file

Code:
M 5.00000 42 (289.27, 817.09, 0.00), (288.98, 815.93), 1.19
s 5.043290218 _1_ AGT  --- 48 cbr 512 [0 0 0 0] ------- [1:0 2:0 32 0] [11] 0 0
r 5.043290218 _1_ RTR  --- 48 cbr 512 [0 0 0 0] ------- [1:0 2:0 32 0] [11] 0 0
SB 5.04329 _1_ stuck into send buff 1 -> 2
HLS_H_s   5.065642879380 24 <9 792.00 264.00> -> <14 792.00 440.00> 1
HLS_H_fr  5.065642879380 24<-24 [817.01 290.75 <9>] <14 792.00 440.00> 1
my question is , should i modify my awk script ? and if its the only way to resolve my problem , what mean
HLS_UPD_s , HLS_UD_fr and is there a difference between them and s , r ( i talk about the beginning of each line of my trace file)

or i should find another awk script special to gpsr routing protocol ,?

i'm confused , plz help , and thanks in advance .



Last edited by info_mimi; 02-26-2013 at 07:16 AM.
 
Old 02-27-2013, 10:02 PM   #124
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
hi

gpsr worked fine , but when i try running it with MOVE it gives the following error :
num_nodes is set 250
Connect to TraCI server
startSimStepHandler()
INITIALIZE THE LIST xListHead
Starting Simulation...
send commandSimulationStep2(), time = 1
ns: _o19 start:
(_o19 cmd line 1)
invoked from within
"_o19 cmd start"
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 "_o19" line 2)
(SplitObject unknown line 2)
invoked from within
"_o19 start"
 
Old 03-11-2013, 04:28 AM   #125
tunerhuei
LQ Newbie
 
Registered: Mar 2013
Location: Taiwan
Posts: 5

Rep: Reputation: Disabled
Hi all
I have installed the hls-n2.33-patch with NS-2.33 on ubuntu 10.04 LTS
if you encountered some problem like me:
/trace/cmu-trace.cc error
when using "make" command after you patching the package,
find the upper layer folder, ns-2.33-hls_working/ns-2.33/
put the contain to the right place, ex:
Code:
ns-2.33-hls_working/ns-2.33/mobile/geo_util.cc
                                   geo_util.h
                           /tcl/mobility/gpsr.tcl
                           
                           /gpsr/
                           /hls/
                           /locservices/
to your ns-2.33 folder
then run "make" command
it might be solved
hope these help you

Last edited by tunerhuei; 03-12-2013 at 10:29 PM.
 
Old 03-11-2013, 05:04 AM   #126
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
# 125.

Please read post # 23 about the GPSR-hls install.
There is already a patch (hls-files-ns233.tar.gz),
that will unpack the files to the right locations.

And please read post # 69 :
Binary package, gpsr-hls-2.33-ubuntu10_i386.deb ( 4.5 MB ).
 
Old 04-28-2013, 02:03 PM   #127
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Rep: Reputation: Disabled
hi arjunjoshi89 m also facing the same problem. please please tell me how did u resolve it ??
 
Old 08-16-2013, 01:53 AM   #128
hemantnyadav
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Let me know how you solve error like

$ make
Makefile:339: *** recipe commences before first target. Stop.


Quote:
Originally Posted by nimacasino View Post
first of all thank you for your kind

Dear Knudfl, problem solved!
I handled this problem using the guidance of this webpage : http://www.cs.binghamton.edu/~kliu/r...ode/index.html
It worked and now i am happy.
 
Old 08-16-2013, 05:39 AM   #129
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
# 128 .
Quote:
Makefile:339: *** recipe commences before first target. Stop.
Line 339 : Looks like you have added some (GPSR ?) code to the wrong ns-2.xx,
probably ns-2.35 . The usable versions have no edits in Makefile*, line 339.

Generally about ""recipe commences before first target"" :
Some surplus <space> were added, like this :
gpsr/gpsr_neighbor.o \ <space>
gpsr/gpsr_sinklist.o \ <space><space>
gpsr/gpsr.o \
@V_STLOBJ@

Solution : Delete the forbidden <space> entries, then it's usually OK.

Any questions ? Then all the usual information must be shown in a new post :
ns2 version, GPSR version ( gpsr-hls ? gpsr-KeLiu ? ),
your OS name, version, architecture. Arch : That's the 'uname -m' command.

-
 
Old 08-31-2013, 04:22 AM   #130
hemantnyadav
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Unhappy Could not load GPSR Animation

Hi,

I have configured GPSR as per GPSR_KeLiu_SUNY_Binghamton with ns 2.35
and with the help of #17

But still when I run ns wireless-gpsr.tcl
and then nam nam.out.tr

it is showing only

node 82 is not defined... node 82 is not defined... node 8 is not defined... node 8 is not defined... node 72 is not defined... node 81 is not defined... node 92 is not defined... node 83 is not defined... node 91 is not defined... node 71 is not defined... node 73 is not defined... node 93 is not defined... node 62 is not defined... node 80 is not defined... node 84 is

at command promt and nothing is being loaded in animation

please let me know hot solve it

hemantnyadav@gmail.com
 
Old 08-31-2013, 04:30 AM   #131
hemantnyadav
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Yet it is giving he same error: where is mobility module?

Hi,

Yet I am getting error,
and could not understand what is mobility model?




Quote:
Originally Posted by muaz.sh View Post
In order to surpass the problem of "node X is not defined" you need to add this loop after the definition of the nodes i.e after if { $opt(sc) == "" } statement:

for {set i 0} {$i < $opt(nn) } {incr i} {
$ns_ initial_node_pos $node_($i) 10
}
where
$ns_ initial_node_pos node size
command defines the node initial position in nam. <size> denotes the size of node in nam. This function must be called after mobility model has been defined.
 
Old 08-31-2013, 04:44 AM   #132
hemantnyadav
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Yet getting Error

I have followed all your communications

Its great and get me to the configuring of GPSR
but when I run

ns wireless-gpsr.tcl
nam nam.out.tr

it do not load animation and instead gives error like

60 is not defined... node 62 is not defined... node 82 is not defined... node 51 is not defined... node 91 is not defined... node 73 is not defined... node 94 is not defined... node 94 is not defined... node 84 is not defined... node 93 is not defined... node 95 is not defined... node 83 is not defined... node 85 is not defined... node 74 is not defined... node 92 is not defined

Please let me know How you get success

Quote:
Originally Posted by mdkhasawneh View Post
Hello i run GPSR Successfully from Keliu GPSR implementation.
when i run nam nam.out.tr i can see the radio range for nodes and transmission but the nodes are static and not moving. is this ok or nodes can be moving also.

i have another problem in understanding the trace file format from nam.out.tr to represent the result in grapgh.

it look different from the trace file format at

http://www.cs.binghamton.edu/~kliu/r...ode/index.html

i will attache some data from nam.out.tr and please if anyone can understand the format explain for me.

Code:
r -t 0.060020077 -s 30 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020077 -s 21 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020104 -s 11 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020104 -s 31 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020143 -s 0 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020143 -s 40 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
r -t 0.060020143 -s 22 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 13 -k RTR
+ -t 0.068286028 -s 40 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR 
- -t 0.068286028 -s 40 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
h -t 0.068286028 -s 40 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482095 -s 30 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482095 -s 50 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482095 -s 41 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482123 -s 31 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482123 -s 51 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482162 -s 20 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482162 -s 60 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
r -t 0.069482162 -s 42 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 14 -k RTR
+ -t 0.088690801 -s 58 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 15 -k RTR 
- -t 0.088690801 -s 58 -d -1 -p gpsr -e 29 -c 2 -a 0 -i 15 -k RTR
where the format at http://www.cs.binghamton.edu/~kliu/r...ode/index.html

look like

Code:
s 76.000000000 _98_ AGT  --- 1812 cbr 32 [0 0 0 0] ------- [98:0 0:0 32 0]
r 0.010176954 _9_ RTR  --- 1 gpsr 29 [0 ffffffff 8 800] ------- [8:255 -1:255 32 0]
 
Old 09-27-2013, 08:23 PM   #133
Jasper Ramu
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
hai..
my final year project - Wireless sensor network - GPSR protocol. i am facing lot of errors in coding.. can u guide me? if possible send the coding to my mail id jasper.ramu@gmail.com.
Thanks in advance


Quote:
Originally Posted by VanetG View Post
hi

gpsr worked fine , but when i try running it with MOVE it gives the following error :
num_nodes is set 250
Connect to TraCI server
startSimStepHandler()
INITIALIZE THE LIST xListHead
Starting Simulation...
send commandSimulationStep2(), time = 1
ns: _o19 start:
(_o19 cmd line 1)
invoked from within
"_o19 cmd start"
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 "_o19" line 2)
(SplitObject unknown line 2)
invoked from within
"_o19 start"
 
Old 11-26-2013, 09:31 PM   #134
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr.VANET_Prasad
 
Old 11-26-2013, 09:33 PM   #135
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
GPRS

Dear Mr.VANET_Prasad, Excuse me,may you help me by sending me the files and procedures to implement GPRS in ns 2.33 if possible.

Thanks
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195



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
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 01:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 06:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 04:24 AM

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

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