LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-07-2017, 02:18 PM   #61
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Re #59, #60.

All copies of wireless-gpsr.tcl that I have :
1) Time stamp = Friday 02 Dec 2005.
2) File size = 8.6kB = 8815B. And have 8,815 characters.

* If you are using the right OS for GPSR : No errors.
See https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 04-07-2017, 02:32 PM   #62
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@61

I use the same tcl file ( wireless-gpsr.tcl), but i don't have the same result that you have (trace file)...

i use ubuntu 12.04 (with ns2.35) and normally must walk, but not yet ....
 
Old 04-07-2017, 04:56 PM   #63
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 12.04 -32 : I updated libc6, and created a new 'ns235-GPSR-K-2017'.

$ ns235-GPSR-K-2017 wireless-gpsr.tcl : trace.tr = 5.1MB
... Uploaded as GPSR-Ubuntu12-KeLiu-trace.tr.txt
https://drive.google.com/file/d/0B7S...ew?usp=sharing

To create a proper executable 'ns235-gpsr-keliu' you will have to start from scratch in a new folder:
tar xvf ns-allinone-2.35_gcc482.tar.gz , etc. etc.

If you cannot get a better result, use the package 'gpsr-keliu-ns-2.34-ubuntu10_i386.deb'
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. provides /usr/local/bin/ns-gpsr-k


-
 
Old 04-10-2017, 06:17 AM   #64
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@63

Hi knudfl,

Thank you very much for reply.
I hope you are well.
I have tested with package gpsr-keliu-ns-2.34-ubuntu10_i386.deb 'but no results. The gpsr protocol appears in the trace.tr file with GPSR-HLS but not with Keliu (always undefined ...).
It seems to me that the format of the file trace is generic for gpsr. So how to calculate the parameters of the PDR, delay, ... in the file awk.
pleaaaase,if you have an example of the AWK file that calculates QoS parameters (PDR, delay, jitter, ....) to see if my file trace.tr it works and gives results.

Thank you in advance.
 
Old 04-10-2017, 07:01 AM   #65
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #35.

As you can see from "GPSR-Ubuntu12-KeLiu-trace.tr.txt"
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... I have lots of lines with "gpsr".


* 130 awk scripts, see awk#perl#python__scripts-1-2017.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

PDR : PDR.awk, PacketDeliveryRatio.awk

Jitter : jitter_.awk, Avg_Jit.awk, Avg_Jit_Flow.awk, instantJitter2005.awk, instantJitter2009.awk, Instnt_Jit.awk, Instnt_Jit_Flow.awk, Jitter2007.awk, intervalo_confianca_delay_-_jitter_maximo.awk, measure-jitter.awk

Delay : End-to-End-Delay.awk, End-to-End-Delay##.pl, delay.awk, delay-e2e.awk, delay_alterado_einar.awk, delay_-_jitter_alterado_einar.awk, delay-link.awk, delay_original.awk, e2edelay.awk, en2end-delay.awk, Endtoenddelay.awk, insdelay_tcp-cbr-vbr.awk, measure-delay.awk, thr_drop_delay.awk


-

Last edited by knudfl; 04-10-2017 at 07:03 AM.
 
Old 04-10-2017, 07:20 AM   #66
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@knudfl

Thank you, but most of them do the test on cbr traffic or AODV, there is not a specification for the format of the gpsr protocol.
 
Old 04-10-2017, 07:31 AM   #67
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #66, #64.

You have four GPSR scripts in "hls/utils/" :
evaluate.pl, evFromdirectory.pl, gls_evaluate.pl, runfromdirectory.pl
 
Old 04-12-2017, 05:43 PM   #68
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@ knudfl

Hi sir,

Thank you so much knudfl for your help.

I will restart the simulation.
 
Old 01-05-2019, 03:27 PM   #69
saz1985
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
please help

I have installed CentOS6.7 -i386 and I exactly follow the instructions related to install & patch gpsr-hls
when I'm going to simulate 'ns2.35/tcl/mobility/gpsr.tcl' I get this ..

[samer@centos6 mobility]$ ns235-gpsr-hls-el6 gpsr.tcl
missing close-brace: possible unbalanced brace in comment
while executing
"proc gpsr-create-mobile-node { id args } {
global ns ns_ chan prop topo tracefd opt node_

set ns_ [Simulator instance]
# ->
#if {..."
(file "gpsr.tcl" line 129)
[samer@centos6 mobility]$

Last edited by saz1985; 01-05-2019 at 03:33 PM.
 
Old 01-05-2019, 04:20 PM   #70
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #69, @saz1985 : Welcome to LQ.

'ns2.35/tcl/mobility/gpsr.tcl' : Please read the file to know it's not a simulation.
'ns2.35/tcl/mobility/gpsr.tcl' is a configuration file !

Valid simulation examples : gpsr-hls-ex_02.18.tar.gz
https://drive.google.com/file/d/1H52...ew?usp=sharing

-
 
Old 01-10-2019, 05:17 PM   #71
saz1985
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
modifying GPSR

thanks knudfl .. but I'm very confused.
first of all, how could I simulate GPSR protocol not an example?
secondly, are these examples using gpsr.h and gpsr.cc?
thirdly, where and which files could I make some modifications on it to enhance GPSR?
finaly, how could I show results to make comparison?
I know it's take time to answer but I'm new in ns2. So could you please guide me?
 
Old 01-11-2019, 10:05 AM   #72
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #71.
Quote:
how could I simulate GPSR protocol not an example
GPSR-hls simulations are done with the examples linked in #70.
Repeat : 'ns2.35/tcl/mobility/gpsr.tcl' is not an example.


Quote:
are these examples using gpsr.h and gpsr.cc
All C++ functions (and tcl/lib/ns** ) are compiled into one file:
The executable 'ns' (ns235-gpsr-hls-el6). No C++ code is used.
See ns2-INFO.txt https://drive.google.com/file/d/1FCj...ew?usp=sharing


Quote:
where and which files could I make some modifications on it to enhance GPSR
I know no examples of modifications to GPSR-hls. And you are probably the first one to ask about this.


Quote:
how could I show results to make comparison
Comparison between GPSR-hls and GPSR-hls-modified ?
You can have as many ns-allinone-2.xx as you want, installed at the same time.
Easy to have multiple "ns-name" :
/usr/local/bin/{ns235-gpsr-hls-el6, ns234-hls-modified}, etc. etc.
See ns2-INFO.txt

Note : You cannot build ns-2.35 + GPSR-hls with a 64bits OS. ns-2.34 must be used.

-
 
Old 01-11-2019, 03:18 PM   #73
saz1985
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Re #72

Quote:
I know no examples of modifications to GPSR-hls. And you are probably the first one to ask about this.
Dear knudfl

sorry, but I'm asking about how can I simulate the original GPSR and modify its code (not GPSR-hls)
GPSR-hls focus on increasing packet delivery ratio (decrease data loss)
I've some ideas and I want to implement it on original GPSR to reduce overhead without using HLS .. is it possible ??

big thanks
 
Old 01-12-2019, 03:49 AM   #74
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #73.

Alternatively, please have a look at "GPSR-KeLiu", which is gpsr only.

Build example :
Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < gpsr-KeLiu_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install
cd ns-2.35/
cp ns ns235-gpsr-keliu
sudo cp ns235-gpsr-keliu /usr/local/bin/

----------- Simulation ------------
ns235-gpsr-keliu wireless-gpsr.tcl
GPSR-KeLiu-examples_07Jun17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
Old 01-15-2019, 12:16 PM   #75
saz1985
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Re #74

Quote:
Originally Posted by knudfl View Post
Re #73.

Alternatively, please have a look at "GPSR-KeLiu", which is gpsr only.

Build example :
Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < gpsr-KeLiu_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install
cd ns-2.35/
cp ns ns235-gpsr-keliu
sudo cp ns235-gpsr-keliu /usr/local/bin/

----------- Simulation ------------
ns235-gpsr-keliu wireless-gpsr.tcl
GPSR-KeLiu-examples_07Jun17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
Dear knudfl

Can you provide me with any editor can help to trace c++ coding for ns2 on CentOS (like visual studio on windows), so I can edit c++ files easily ?

Thanks your effort
 
  


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 12:06 AM.

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