LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 05-15-2013, 05:49 AM   #1
sants
LQ Newbie
 
Registered: May 2013
Posts: 10

Rep: Reputation: Disabled
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
 
Old 05-15-2013, 08:50 AM   #2
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
All GPSR at LQ http://www.linuxquestions.org/questions/tags/gpsr/
GPSR-hls http://www.linuxquestions.org/questions/tags/gpsr-hls/
GPSR-Keliu http://www.linuxquestions.org/questi...gs/gpsr-keliu/

GPSR-hls is for ns-2.33 . GPSR-KeLiu : For ns-2.34 . No GPSR for ns-2.35 .
I.e. the most additional protocols are for ns-2.26 ... ns-2.34 .

Note : 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 .

Example running the GPSR-hls simulations ( no ns-allinone is required ) :
Install 1) the package gpsr-hls-2.33-ubuntu10_i386.deb (4.5 MB),
and 2) use the examples.tcl "gpsr-hls-examples-0113.tar.gz".
Download 1) https://docs.google.com/file/d/0B7S2...it?usp=sharing
Download 2) https://docs.google.com/file/d/0B7S2...it?usp=sharing
Example simulation : $ ns-hls hls.tcl

-

Last edited by knudfl; 05-15-2013 at 08:55 AM.
 
Old 07-25-2013, 01:45 AM   #3
sants
LQ Newbie
 
Registered: May 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-25-2013, 05:42 AM   #4
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
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.
Old 04-14-2014, 03:13 AM   #5
shahidz
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
Unhappy

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.
 
Old 04-14-2014, 03:25 AM   #6
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
# 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

-
 
Old 04-14-2014, 06:15 AM   #7
shahidz
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
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 ----------
 
Old 04-14-2014, 06:41 AM   #8
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
# 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

-
 
Old 04-14-2014, 02:19 PM   #9
shahidz
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
sir i run parameter.awk file over hls_test.tr file but it gives us wrong result sir what is error in these files
Attached Files
File Type: txt parameters-cbr_awk.txt (3.0 KB, 46 views)

Last edited by shahidz; 04-14-2014 at 02:28 PM.
 
Old 04-14-2014, 02:36 PM   #10
shahidz
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
hls_test.tr file is
Attached Files
File Type: txt hls_test_tr.txt (6.9 KB, 43 views)
 
Old 04-14-2014, 05:13 PM   #11
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
# 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.

-
 
Old 08-11-2014, 06:10 AM   #12
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
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
 
Old 08-11-2014, 02:18 PM   #13
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
# 12.

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

Latest (#5) http://www.linuxquestions.org/questi...-4175498876/#5

How to get the right compiler (Style gcc41/g++41) :
You will have to specify your OS → →
a) $ uname -m
b) OS name and version.

-
 
Old 08-12-2014, 03:29 AM   #14
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
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
 
Old 08-12-2014, 03:36 AM   #15
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
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
 
  


Reply

Tags
gpsr, ns2



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
Error during GPSR installation in NS2 mrohini Linux - Networking 13 08-23-2014 06:36 AM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM

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

All times are GMT -5. The time now is 05:21 PM.

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