LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2016, 07:03 AM   #31
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

Re #30.

Please specify the OS that you used for the simulation : gpsr61.tcl ,
... like CentOS 6.7 - 32bits , Ubuntu 9.10 - 32bits.


Quote:
I simulated the example from https://drive.google.com/file/d/0B7S...ew?usp=sharing
"the example" is not a valid identifier,
... the package gpsr-hls-examples-05.14.tar.gz contains 9 examples.


1) $ ns235-gpsr-hls gpsr61.tcl : Result = gpsr61.tr 648kB, out.nam 524kB.

2) And by using the executable 'ns-hls' from "gpsr-hls-2.33-ubuntu10_i386.deb" >>>
https://drive.google.com/file/d/0B7S...ew?usp=sharing >>>
$ ns-hls gpsr61.tcl : Result = gpsr61.tr 880kB, out.nam 524kB.
`gpsr-hls-2.33-ubuntu10_i386.deb' was created `Feb 2013' with an old Ubuntu 10.10 - 32bits.
( Cannot be reproduced with a new Ubuntu 10.10, because of updates : libc6.)

Both the above simulations are causing 'Floating point exception' with a contemporary OS.
( PCLinuxOS 2015 - 32bits ).

3) Using one of my old installs with Ubuntu 10.10 - 32bits (Installed 'Jan 2012') :
>>> gpsr-hls-2.33-ubuntu10_i386.deb >>
$ ns-hls gpsr61.tcl : Result = gpsr61.tr 10.7MB, out.nam 8.1MB.
... And the nam animation is OK.

4) Using the Redhat supported CentOS 6
( My install is version 6.6, 'Nov 2015' , too old to update ) :
$ ns235-hls gpsr61.tcl : Result = gpsr61.tr 10.1MB, out.nam 8.1MB.
Nam animation OK.

Conclusion :
Use an old unsupported OS like Ubuntu 9.10 - 32bits or the supported CentOS 6.7 - 32
http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso


-

Last edited by knudfl; 05-25-2016 at 11:31 AM.
 
Old 05-25-2016, 08:51 AM   #32
lttp
LQ Newbie
 
Registered: May 2016
Posts: 7

Rep: Reputation: Disabled
dear sir,
i'm using Ns-2.35, ubuntu 14.04 32 bits, gpsr-hls patch

Last edited by lttp; 05-25-2016 at 08:55 AM.
 
Old 05-25-2016, 09:36 AM   #33
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
Re #32.

OK, time to use an old / oldish OS if you want to run or to build GPSR-hls.
Obviously no contemporary OS is perfect for ns2 any more.

Like all other new 'Linux OS`s', Ubuntu 14.04 seems to include updates (libc6) causing hls simulations to crash. These "ns2 disabling updates" have been around for some years, preventing increasingly more simulations from working.

I'm going to test a new install with CentOS 6.7, and let you know the result ... later.


-

Last edited by knudfl; 05-25-2016 at 11:35 AM.
 
Old 05-25-2016, 11:17 AM   #34
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
Today`s test with a new install of CentOS 6.7 - i386 :
Works perfect with GPSR-hls.

$ su [enter root password]
# yum install gcc-c++ autoconf automake libtool libXmu-devel patch
( The ns2 critical glibc gets updated when gcc-c++ is installed.)

$ [post #26]
And : $ cd nam-1.15/
# make install

$ ns235-hls gpsr61.tcl : Result = gpsr61.tr 10.1MB, out.nam 8.1MB.
Nam animation OK.

$ ns235-hls ssoumayaa.tcl ,,, and $ ns235-hls ssoumayaa-0.tcl : Also OK.


-

Last edited by knudfl; 05-25-2016 at 11:24 AM.
 
Old 05-25-2016, 03:30 PM   #35
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
Re #34.

I should have waited another hour before downloading CentOS 6 !
Now the one to use is CentOS-6.8-i386-LiveCD.iso, released today :
http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso

... So that's one for you to use : Nothing to update ...
( I updated about 150 packages.)


-

Last edited by knudfl; 05-25-2016 at 03:32 PM.
 
Old 05-26-2016, 05:44 AM   #36
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
CentOS 6.7 can not yet be updated to 6.8 ( # yum update ).
... Will probably be enabled in a few days.

So I installed CentOS 6.8 - 32bits : Works perfect with gpsr61.tcl and ssoumayaa.tcl .

Links for CentOS 6.8 ....
Live-cd http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso
Or the live DVD http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso
Or DVD with packages http://ftp.funet.fi/pub/mirrors/cent...6-bin-DVD1.iso

Good luck !


-
 
Old 05-26-2016, 07:02 AM   #37
lttp
LQ Newbie
 
Registered: May 2016
Posts: 7

Rep: Reputation: Disabled
Re #36
Thank you knudfl. I'm very appreciate your help.
 
Old 05-28-2016, 10:54 AM   #38
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
Application ns-2.35 + GPSR-hls :
A new binary package `gpsr-hls-ns235-el6.8_5.i686.rpm'
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... Provides /usr/local/bin/ns235-gpsr-hls-el6
 
Old 05-30-2016, 05:19 AM   #39
Rach k
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Rep: Reputation: Disabled
please some one can help to get awk script for calculating pdr, throughput, end-to-end delay for gpsr protocol
the awk script which I am using for AODV,OLSR. It isnt showing the result for gpsr getting 0 as values

Last edited by Rach k; 05-30-2016 at 05:21 AM.
 
Old 06-02-2016, 07:14 AM   #40
h8yung
LQ Newbie
 
Registered: May 2016
Posts: 5

Rep: Reputation: Disabled
I do performance simulation of GPSR protocol.I study VANET and the nodes move.the version is KULIU.But the packet delivery ratio is zero.I find the position of nodes don not change,even the position of nodes move away.what is wrong.
 
Old 08-17-2016, 05:09 AM   #41
VirkHarry
LQ Newbie
 
Registered: Aug 2016
Posts: 1

Rep: Reputation: Disabled
hello knudfl, i have followed your post to patch gprs in ns2.35.It created gprs folder in ns2.35.It contains only three files gprs.cc,gprs.h and gprs.o while already existing protocols like AODV contains many files like packet.h etc.When i run ssoumayaa.tcl from examples,it gave segmentation error(core dumped).Plzz....tell me whether these three files are enough to run gpsr on ns2.35?Thanks in advance
 
Old 04-06-2017, 05:33 PM   #42
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
Error when run simulation of GPSR in ns2.35

Hi,

I followed this steps for installing the patch GPSR in ns2.35 ( ubunto 12.04):
$ tar xvf ns-allinone-2.35_gcc482.tar.gz ( Patched for gcc-4.8.2 and -4.9.1 ).
$ cd ns-allinone-2.35/
$ patch -p0 < GPSR-hls_ns235.patch
$ ./install
$ cd ns-2.35/
$ cp ns ns-gpsr-hls
$ sudo cp ns-gpsr-hls /usr/local/bin/

But i have the following error when i run the file hls.tcl from the examples, gpsr-hls-examples-05.14.tar.gz
https://drive.google.com/file/d/0B7S...w?usp=sharing:

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 2090.1
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o26: no target for slot 0
_o26 type: Classifier/Port
content dump:
classifier _o26

0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o28 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------
IN trace file,the simulation does not end until the end and there is only the presence of the ARP, MAC , but AGT and CBR does not configure among the protocols used.
Plzzz tell me , how i can solve this problem
Thnaks in advanced
 
Old 04-06-2017, 06:11 PM   #43
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
Re #42, @Ssafae : Welcome to LQ.

Please read my answer here ...
https://groups.google.com/forum/?fro...rs/Y4ylA1NpuBw

INFO http://www.linuxquestions.org/questions/tags/gpsr-hls/
#32 http://www.linuxquestions.org/questi...084/page3.html


-
 
Old 04-06-2017, 06:30 PM   #44
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
#Re43 @ knudfl

Thank you for your reply. It's very kind of you
After patching gpsr in ns2.35, I have tested ssoumaya.tcl and running it works but with hls.tcl no.
I work with ns2.35 ubuntu 12.04 (i686). So how am I going to use Ubuntu 10.10 - 32,. And if it is possible what are the steps of installing the package (knowing that I followed the same steps as you mentioned for GPSR-hls patch)
??
Thanks in advanced
 
Old 04-06-2017, 10:17 PM   #45
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
Re #44.

Installing the package 'gpsr-hls-2.33-ubuntu10_i386.deb' in Ubuntu 12.04 :
Click the package, and it will be installed by the package installer.


Ubuntu 10.10-i386 : The old packages do not exist any more.
A new install of g++ will also update libc6 to the later unusable version.

CentOS 6.9 is based on Fedora 12 from year 2010. Same as "10.10".
Easy to install. Same Gnome Desktop. The package names are a little different :

Ubuntu : sudo apt-get install g++ autoconf automake make patch libtool libxmu-dev
CentOS : sudo yum install gcc-c++ autoconf automake make patch libtool libXmu-devel


-

Last edited by knudfl; 04-06-2017 at 10:39 PM.
 
  


Reply

Tags
gpsr, gpsr-hls, gpsr-keliu#50, 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
GPSR on ns2.35 nad_y Linux - Software 22 08-07-2015 07:21 AM
[SOLVED] GPSR on NS2.34 farfattou Linux - Software 17 01-10-2015 08:29 AM
gpsr in ns2 navidsal Linux - Software 1 12-05-2014 04:46 AM
[SOLVED] GPSR in ns2 aidin8790 Linux - Software 36 07-05-2014 02:56 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 08:13 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