gpsr
Hi, I patch by this way and the result is
muthana@muthana:~$ cd my-ns-allinone-2.33/ muthana@muthana:~/my-ns-allinone-2.33$ cd ns-2.33/ muthana@muthana:~/my-ns-allinone-2.33/ns-2.33$ ./ns-2.33-hls-patch.sh patching file common/agent.h patching file common/ip.h patching file common/mobilenode.h patching file common/packet.h patching file gpsr/gpsr.cc patching file gpsr/gpsr.h patching file hls/cellbuilder.h patching file hls/.directory patching file hls/hls_advanced.cc patching file hls/hls_basic.cc patching file hls/hls_basic.h patching file hls/hls.cc patching file hls/hls.h patching file hls/position.h patching file hls/quadratic.cc patching file hls/quadratic.h patching file hls/README_HLS patching file hls/utils/cp-n100-c400-15-98.tcl patching file hls/utils/cp-n40-a40-t40-c4-m0 patching file hls/utils/evaluate.pl patching file hls/utils/evFromdirectory.pl patching file hls/utils/gls_evaluate.pl patching file hls/utils/hls.tcl patching file hls/utils/README.txt patching file hls/utils/runfromdirectory.pl patching file hls/utils/run_small.bat patching file hls/utils/run.tcl patching file hls/utils/sc-x2000-y2000-n100-s30-t100-MRD patching file hls/utils/sc-x2000-y2000-n40-s25-t40 patching file hls/utils/test_parameter.txt patching file locservices/chc_caches.cc patching file locservices/chc.cc patching file locservices/chc.h patching file locservices/gridlocservice.cc patching file locservices/gridlocservice.h patching file locservices/.#gridlocservice.h.1.4 patching file locservices/hdr_locs.cc patching file locservices/hdr_locs.h patching file locservices/locservice.h patching file locservices/.#locservice.h.1.4 patching file locservices/ls_queued_timer.cc patching file locservices/ls_queued_timer.h patching file locservices/ls_timer_heap.h patching file locservices/omnilocservice.cc patching file locservices/omnilocservice.h patching file locservices/realocservice.cc patching file locservices/realocservice.h patching file mac/mac-802_11.cc patching file mac/mac-802_11.h patching file mac/mac.h patching file Makefile.in patching file mobile/geo_util.cc patching file mobile/geo_util.h patching file mobile/god.cc patching file mobile/god.h patching file queue/priqueue.cc patching file queue/priqueue.h patching file tcl/lib/ns-default.tcl patching file tcl/lib/ns-lib.tcl patching file tcl/lib/ns-mobilenode.tcl patching file tcl/lib/ns-packet.tcl patching file tcl/mobility/gpsr.tcl patching file trace/cmu-trace.cc patching file trace/cmu-trace.h patching file Makefile and I tried to implement hls.tcl and I have this problem muthana@muthana:~$ cd Desktop muthana@muthana:~/Desktop$ ns hls.tcl invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) make: *** [trace/trace.o] Error 1 please can any one help me to solve this problem thanks |
Hi, Sir I install ns2 and I need to implement this hls.tcl I have this problem can you help me
muthana@muthana:~/Desktop$ ns hls.tcl invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) thank's |
gpsr
Please any one help me to solve this problem
muthana@muthana:~/Desktop$ ns hls.tcl invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) thank's |
Post #1 shows that you are not building "ns-hls".
The build instructions, post #23 here .. http://www.linuxquestions.org/questi...526/page2.html I.e. for a 32bits Ubuntu version 11.04 .. 13.10 it is : a) $ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch b) $ tar xvf hls-files-ns233.tar.gz && cd ../ c) $ export CC=gcc41 CXX=g++41 && ./install Then : $ cd ns-2.33/ $ cp ns ns-hls (Or whatever <ns-new-name> you want.) $ sudo cp ns-hls /usr/local/bin/ ... Only then you are sure using the right "ns<-??>". Run the simulation with $ ns-hls ssoumayaa.tcl .. etc. etc. from the examples, gpsr-hls-examples-0113.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing Please read * http://www.linuxquestions.org/questions/tags/gpsr-hls/ * http://www.linuxquestions.org/questions/tags/gpsr/ - |
dear I use the ubuntu 12.04 and the ns-2.33 and I implement many examples in ns if you like to see the result of the example I ready to sent it for you. I need only to skip this problem
muthana@muthana:~/Desktop$ ns hls.tcl invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) Thank you Sir for every thing |
# 5 .
Quote:
""invalid command name "Agent/GPSR" : Means you are using a wrong 'ns'. If you build more than one ns2-<version>, or two times ns-2.33, you will have to use a copy of the executable 'ns' with a new name. Read post #4. * There can only be one file by name 'ns' : /usr/local/bin/ns * You can of course use $ ./ns file.tcl , if 'ns' is the right version. ""invalid command name "Agent/GPSR" : Can also mean a failed build. There is no other way than the method in post #4. The package 'hls-files-ns233.tar.gz' must be used, to fill in the files that the unreliable "Ubuntu patch command" misses. - |
Mr. knudfl I did all the step that you send and the same problem
please what I can do Thanks for your help |
# 7 .
Which command are you using for the simulation ? ? $ ns-hls ssoumayaa.tcl ? Or ? ? Do you use 'ns' as plain $ ns <file> * Please don't do that. * Did you ever add any *PATH text to .bashrc ? → Delete, please. Never required. Anyway, you do not have to build ns2 with gpsr-hls. ( You don't actually build all the other applications, that you use in Ubuntu.) Just install the package 'gpsr-hls-2.33-ubuntu10_i386.deb' , 4.5 MB http://www.ijceronline.com/papers/Vo...O023704711.pdf .. which works with all 32bits Ubuntu versions 10.04 ... 13.10 . - |
Dear Sir for patch I did this steps
Applying the patch ---------------------- Copy the following files into your "ns-allinone2.33/ns-2.33/" directory: - ns-2.33-hls-patch.sh - ns-2.33-hls.patch - ns-2.33-hls.Makefile.patch Change to your "ns-allinone2.33/ns-2.33/" directory. Execute the patch: [you@ns-2.33]$ ./ns-2.33-hls-patch.sh patching file common/agent.h patching file common/ip.h ... without this For fresh install (if you didn't install ns2 yet), change to your "ns-allinone2.33" directory and install it: [you@ns-allinone2.33]$ ./install Else, stay in your "ns-2.33" directory to 'make clean' and 'make': [you@ns-2.33]$ make clean [you@ns-2.33]$ make Done! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> and my path is # LD_LIBRARY_PATH OTCL_LIB=/home/my-ns-allinone-2.33/ns-2.33/otcl-1.13 NS2_LIB=/home/my-ns-allinone-2.33/ns-2.33/lib X11_LIB=/usr/X11R6/lib USR_LOCAL_LIB=/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB # TCL_LIBRARY TCL_LIB=/home/my-ns-allinone-2.33/ns-2.33/tcl8.4.18/library USR_LIB=/usr/lib export TCL_LIBRARY=$TCL_LIB:$USR_LIB # PATH XGRAPH=/home/my-ns-allinone-2.33/ns-2.33/bin:/home/my-ns-allinone-2.33/ns-2.33/tcl8.4.18/unix:/home/my-ns-allinone-2.33/ns-2.33/tk8.4.18/unix NS=/home/my-ns-allinone-2.33/ns-2.33/ NAM=/home/my-ns-allinone-2.33/ns-2.33/nam-1.14/ PATH=$PATH:$XGRAPH:$NS:$NAM Thanks |
# 9 .
Is there a question in post #9 ? Did the simulations work, when you did as post #9 describes ? - |
No question, but I need to show you what I do for the patch and path in my installation .
The simulations not work the result at #5 Thank you Sir again |
# 11 .
Well, you should know that the post #9 outdated method doesn't work in Ubuntu, when you have read http://www.linuxquestions.org/questions/tags/gpsr-hls/ and http://www.linuxquestions.org/questions/tags/gpsr/ There would be no reason to invent the new method, if the old one still worked with Ubuntu. And : The old 1997..1999 text ""Please put .. /You must put ... /"IMPORTANT NOTICES:" /"" makes no sense : The executable 'ns' is now (at least since ns-2.26) hard coded to know the library locations, ... and xgraph never builds in ns2 , and nam probably fails, etc. etc. A successful ns2-hls build : Read post #4 : "The method that never fails". - |
Dear Sir knudfl
please can you help me for how I can find the code of wak for the GPSR protocol Best regard |
# 13 .
Do you mean awk ? ? |
sorry this is my mistake for print. Yes sir
---------- Post added 04-14-14 at 04:24 AM ---------- I mean awk |
|
Dear Sir knudfl
please can you help me for how I can find the code of awk for the GPSR protocol only for all performances metrics because there is confuse for the attach file that you send it to me.I sow that it's all awk for the other protocols Best regard |
# 17 .
The package "awk_scripts_03.2014.tar.bz2" is not an attachment. It's a package with 46 awk scripts. To be downloaded from .. https://drive.google.com/file/d/0B7S...it?usp=sharing Ref. post #8 here http://www.linuxquestions.org/questi...7/#post5152212 - |
Dear sir am sorry for the same request. I like to ask you the package with 46 awk scripts all them for GPSR ?
thank you again and best regard |
# 19 .
The scripts in the package awk_scripts_03.2014.tar.bz2 are a collection of awk scripts mostly for general purpose. And not all are usable as is. Some must be edited to be functional. - |
Dear Sir knudfl
please can you help me for how I can find the code of wak for the GPSR protocol Thanks |
# 21 .
#236 http://www.linuxquestions.org/questi...26/page16.html Code Tags : Type [/code] at code end, and [code] at code start. |
Dear Sir knudfl
please can you help me to send the tcl script for GPSR protocol best regards |
Dear Sir knudfl
when I make implementation for the hls.tcl for GPSR after some time for the implementation and the calculate the result it show this problem . . . . terminate called recursively terminate called recursively terminate called recursively terminate called recursively terminate called recursively terminate called recursively terminate called recursively bus error (core dumped) please can you help me to solve this problem best regards |
# 23 .
Well, then read the GPSR threads http://www.linuxquestions.org/questions/tags/gpsr/ .. and you will find "gpsr-hls-examples-0113.tar.gz" → → Download link = https://drive.google.com/file/d/0B7S...it?usp=sharing - |
Dear Sir knudfl
when I make patch for the gpsr the result is as follow: patch file common/agent.h Reversed (or previously applied) patch detected ! Assume -R? [n] that tell me there is patched before, do I do it only first time after I install ns2.33 please can you help me to solve this problem Best regards |
# 26 .
Please read http://www.linuxquestions.org/questions/tags/gpsr/ .. to find "latest", post # 5 here : http://www.linuxquestions.org/questi...-4175498876/#5 |
Dear Sir knudfl
when I create scenario file to run simulation for GPSR the file is empty please can you help me for this preblem why the scenario file is empty ? Best regards |
# 28 .
I guess you mean : » creating a "simulation-file.tcl" « ? If you created a new file meant for simulation, then please attach your file as name.tcl.txt * Attachments : The paper clip tool in the 'Advanced Editor'. GPSR-hls documentation http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf - |
Dear Sir knudfl
I mean when we need to run simulation for GPSR we must creat two input files (traffic file (cbr file) and scenario file), for the cbr file I don't have any problem for it but the problem with he scenario file is empty. Thanks |
# 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 - |
Dear Sir knudfl
I did all steps in #30 before it's empty scenario file what you think about this problem Thanks |
# 32 .
Please show the command you used to generate "scenario". |
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 |
# 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 - |
Thanks is done
|
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 |
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 |
# 38 .
Quote:
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 - |
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 |
Dear sir knudfl
Please help me for #38, #40 Thanks |
# 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). - |
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 |
# 43 .
Quote:
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. - |
Dear sir knudfl
Please, can you send to me awk for GPSR protocol Thanks |
# 45 .
The GPSR script are ``perl scripts´´. See hls/utils/. Other awk scripts : awk_scripts-05.2014.tar.bz2 https://drive.google.com/file/d/0B7S...it?usp=sharing - |
Dear knudfl
thanks for your help but all awk scripts not work the for the all is error thanks |
Dear knudfl
thanks for your help but the awk not work in #45 please if you have another one thanks again |
# 48 .
Did you try out all "68" scripts ? ? |
#49
Yes sir I tried all of them Thanks |
All times are GMT -5. The time now is 11:39 PM. |