Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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
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
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 ,?
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"
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:
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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 ).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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.
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
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
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.
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
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.
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
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.