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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
05-15-2013, 05:49 AM
|
#1
|
LQ Newbie
Registered: May 2013
Posts: 10
Rep: 
|
GPSR patch for ns2.35 ubantu12.04
hi,
i m using ns2.35 on ubantu 12.04.
i want a GPSR patch for the above.if smone have plz give the link and mention the procedure to install the patch.
thanks
|
|
|
07-25-2013, 01:45 AM
|
#3
|
LQ Newbie
Registered: May 2013
Posts: 10
Original Poster
Rep: 
|
gpsr patch and ns2
i have already installed ns2.34 on ubuntu 10.04 and given the PATH in Bashrc
but i want to install gpsr-KeLiu-patched-ns234.tar in same ubantu for GPSR. can i do this on same ubuntu.
|
|
|
07-25-2013, 05:42 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any path text to .bashrc.
The thing with "set a PATH" in .bashrc :
Used when you are not the computer owner / administrator.
Your computer : The executable 'ns' is usually copied to a system PATH:
/usr/local/bin/ . By more than one 'ns' : Use different naming.
Example : /usr/local/bin/{ns-gpsr-k ns-hls ns } etc. etc.
-
|
|
1 members found this post helpful.
|
04-14-2014, 03:13 AM
|
#5
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep: 
|
sir due to your help i pacth some of protocols ,A lot of THANKS sir
GPSR implimentation in ns-allinone-2.33.
Terminal output
.............
.............
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33# ns
The program 'ns' is currently not installed. You can install it by typing:
apt-get install ns2
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33# cd hls
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33/hls# ls
cellbuilder.h hls_advanced.o hls_basic.h hls.cc hls.o quadratic.cc quadratic.o utils
hls_advanced.cc hls_basic.cc hls_basic.o hls.h position.h quadratic.h README_HLS
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33/hls# cd utils/
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33/hls/utils# ns hls.tcl
The program 'ns' is currently not installed. You can install it by typing:
apt-get install ns2
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33/hls/utils#
sir after installaion of ns-allinone-2.33,path variabls change then make clean && perform the above commands.
please help for this error
Last edited by shahidz; 04-14-2014 at 03:14 AM.
|
|
|
04-14-2014, 03:25 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 5 .
I guess you will have to read the above post #4.
And don't use root for any ns2 commands. Except 'make install'.
How to build ns-2.33 + GPSR-hls : Post #5 here ...
http://www.linuxquestions.org/questi...-4175498876/#5
$ cd ns-allinone-2.33/
$ tar xvf gpsr-hls-ns233-patching.tar.bz2
$ export CC=gcc41 CXX=g++41 && ./install
$ cd ns-2.33/
$ sudo make install
-
|
|
|
04-14-2014, 06:15 AM
|
#7
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep: 
|
thanks sir Now it works.
where is the name.awk file to analyze the results?
root@XubunTOS:/home/user/ns2/ns-allinone-2.33/ns-2.33/hls/utils# ns hls.tcl
num_nodes is set 40
Configuring Nodes (40)
INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
.............
.............
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o31: no target for slot 0
_o31 type: Classifier/Port
content dump:
classifier _o31
0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o33 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------
|
|
|
04-14-2014, 06:41 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 7 .
Perl or awk can be used to sort / extract results from hls_test.tr :
Four perl scripts are included →
hls/utils/{evaluate.pl, evFromdirectory.pl, gls_evaluate.pl, runfromdirectory.pl}
* Examples, awk scripts : awk_scripts_03.2014.tar.bz2 →
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
|
|
|
04-14-2014, 02:19 PM
|
#9
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep: 
|
sir i run parameter.awk file over hls_test.tr file but it gives us wrong result sir what is error in these files
Last edited by shahidz; 04-14-2014 at 02:28 PM.
|
|
|
04-14-2014, 02:36 PM
|
#10
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep: 
|
hls_test.tr file is
|
|
|
04-14-2014, 05:13 PM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 9 : No errors shown : What do you mean by "wrong result" ?
"parameters*.awk" : Must be edited if you want to use it.
Alternatively try out the other files from "awk_scripts_03.2014.tar.bz2".
# 10 : The attached file is 6.9 kB.
A typical hls_test.tr is 7.3 MB, 99,980 lines.
-
|
|
|
08-11-2014, 06:10 AM
|
#12
|
Member
Registered: Aug 2014
Posts: 77
Rep: 
|
Hi Shahidz and knudfl
I am new to ns2 i have ns-2.33 ,
can anyone clearly explain about how to patch gpsr in ns-2.33
Thanks in Advance
|
|
|
08-12-2014, 03:29 AM
|
#14
|
Member
Registered: Aug 2014
Posts: 77
Rep: 
|
Hi Mr.Knudfl,Thanks for response
a)$uname -m
i686
b) OS ubuntu 12.04
chase@chase-desktop:~$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l
|
|
|
08-12-2014, 03:36 AM
|
#15
|
Member
Registered: Aug 2014
Posts: 77
Rep: 
|
Already i followed procedure in this post
http://www.linuxquestions.org/questi...-4175498876/#5
but when executing ns hls.tcl i am getting error
--------------------------------------
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "run.tcl" line 41)
----------------------------------------
i think , i used correct ns version 2.33 and correct patch for it
|
|
|
All times are GMT -5. The time now is 11:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|