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 04-07-2017, 04:55 AM   #46
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@45


Thank you knudfl. I appreciate your help

I will test it.

Last edited by Ssafae; 04-07-2017 at 04:57 AM.
 
Old 04-07-2017, 05:28 AM   #47
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@ Knudfl

Hi sir,

I installed the package in:~/ns-allinone-2.35, but ....
Selecting previously unselected package gpsr-hls.
(Lecture de la base de données... 157131 fichiers et répertoires déjà installés.)
Dépaquetage de gpsr-hls (à partir de gpsr-hls-2.33-ubuntu10_i386.deb) ...
Paramétrage de gpsr-hls (2.33-ubuntu10) ...

Then I tested the example of hls.tcl but without result

PLzzzzz help me, I can't see the tarce file you got:
https://02097500755918511408.googleg...WFNL9boY6C1v7M

Last edited by Ssafae; 04-07-2017 at 06:08 AM.
 
Old 04-07-2017, 05:58 AM   #48
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #47.

Please use CODE tags for error output / code :
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. [code]code text[/code]

"wireless-gpsr.tcl" is not an HLS simulation. Is for another GPSR setup: GPSR-KeLiu.
So instead of editing to code tags, you can actually delete the misplaced errors in #47 →
→ → That's the 'Edit' button in post #47.


One HLS file can be used with the executable 'ns-hls' in Ubuntu 12.04: hls.tcl.
All more complex simulations will crash : Use CentOS 6.9 - i386.
Examples, see gpsr-hls-examples-05.15.tar.gz


-
 
Old 04-07-2017, 06:20 AM   #49
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@49

I'm sorry for mistake.

I wanted to install KELIU patch from: https://drive.google.com/file/d/0B7S...ctd3JsZGs/view
but I get make failed !!!!!
So for hls.tcl what i can do !!!!!!!! To get a correct trace file (because I get the same error when I run the tcl file used in a VANET project)
As for [code] it does not work in a TCL code

Thanks in advanced
 
Old 04-07-2017, 08:29 AM   #50
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #49.

hls.tcl : Can be run with an executable that includes HLS.
Not necessarily with a Vanet patch added.
If you want HLS or GPSR-KeLiu added together with "Vanet", please specify Vanet.
? VanetRBC ?

Latest hls examples : gpsr-hls-examples-07.16.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
( No new examples, {evaluate-07.2016.pl, scengen, trafgen} are now included.)


GPSR-KeLiu :
Patch http://www.linuxquestions.org/questi...-4175431318/#6
Build GPSR-KeLiu, in a new folder :
Code:
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < gpsr-KeLiu_ns235.patch
./install
cd ns-2.35/
cp ns ns235-gpsr-keliu
sudo cp ns235-gpsr-keliu /usr/local/bin/

-

Last edited by knudfl; 04-07-2017 at 08:31 AM.
 
Old 04-07-2017, 10:48 AM   #51
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@50

Vanet this is the simulation environment; Vehicular Ad-hoc NEtwork
I can't download the example of HLS from the link that your suggested:
https://drive.google.com/file/d/0B7S...ew?usp=sharing
I have already installed GPSR-HLS and when I wanted to add the patch of GPSR KELIU, it gives me "make failed". Knowing that I followed the same steps that you mentioned (the ".o " file isn't in the gpsr folder).
I always try to test the hls.tcl , but doesn't generate the correct trace file, then I wanted to test with KELIU.

I really want to solve this problem, it is necessary that GPSR works in ns235. Please help me

THanks in advanced

Last edited by Ssafae; 04-07-2017 at 11:03 AM.
 
Old 04-07-2017, 11:54 AM   #52
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@ Knudfl

I successfully installed GPSR-Keliu and then I launched wirelless.tcl but the trace file does not configure GPSR.
s 15.014387618 _81_ RTR --- 502 undefined 29 [0 0 0 0] ------- [81:255 -1:255 32 0]
r 15.015283684 _71_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283684 _80_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283684 _91_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283684 _82_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283712 _90_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283712 _70_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283712 _72_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283712 _92_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283751 _61_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]
r 15.015283751 _83_ RTR --- 502 undefined 29 [0 ffffffff 51 800] ------- [81:255 -1:255 32 0]

PLzz How i can resolve this problem ???
 
Old 04-07-2017, 12:22 PM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #51.

If you want GPSR-KeLiu, it must be added to a new ns-allinone-2.35,
see post #50.
 
Old 04-07-2017, 12:28 PM   #54
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@52

I followed the same steps and its walking (it generates the .o) but when I tested example wireless-gpsr.tcl, it generates me the attached trace file:
And another downloading example of the same file gets me this error:
(_o17 cmd line 1)
invoked from within
"_o17 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"_o17 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o4" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o4 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o4" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
Click image for larger version

Name:	tr.png
Views:	27
Size:	154.1 KB
ID:	24714
 
Old 04-07-2017, 12:45 PM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #52.

Assume 'trace.tr' from "ns235-gpsr-keliu wireless-gpsr.tcl".

My result is uploaded as GPSR__wireless-gpsr-trace.tr.txt ( 5.1MB ).
Read and/or download https://drive.google.com/file/d/0B7S...ew?usp=sharing

I used an old executable "ns232-gpsr-KeLiu" with CentOS 6.9 - 32 for the simulation.


Quote:
it is necessary that GPSR works ...
Then avoid Ubuntu ...


-
 
Old 04-07-2017, 01:08 PM   #56
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@55

I tested with: "ns235-gpsr-keliu wireless-gpsr.tcl"
But I can't see the same trace file as yours.
If you can allow, you can send me the wireless-gpsr.tcl file that you use to see the difference between mine.

- have seen a lot of work that uses ubuntu for different simulation, that's why I wanted to work with but here I
encounter problems ....

Thanks in advanced
 
Old 04-07-2017, 01:12 PM   #57
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #54.

The command used for the result must always be included in every post.
Missing in #54, #52.

#54 : »» another downloading example of the same file «« : ? Which file ?
Please specify any file you mention ...

About the errors in post #54 : Generic errors.
A lot of files.tcl can show that result. If it's a corrupt file. Or used with the wrong 'ns'.

So please edit post #54 to show only the command (ns*** file.tcl) and the image.


-
 
Old 04-07-2017, 01:20 PM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #56.

The file wireless-gpsr.tcl that I used was :
"gpsr/wireless-gpsr.tcl" which you have from the patching of ns-2.35/.

Your issues aren't with the files, I think. Your copy is probably OK.
Else have a look into "GPSR_KeLiu_examples.06.2016.tar.gz"
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 04-07-2017, 01:27 PM   #59
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@57

I downloaded 2 versions of the GPSR-keliu ( gpsr-hls-examples-05.15 & GPSR_KeLiu_examples.06.2016) and when I launched the simulation of the file wireless-gpsr.tcl. Each of them gives me a different error.

For the error in #54, I use ns235-gpsr-keliu which is located in /usr/local/bin. So normally should this work unless it is a problem in the sample file.
 
Old 04-07-2017, 01:32 PM   #60
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
@58

I also tested the same file from the patching of ns-2.35/. but there is not the gpsr protocol in the trace file .....
 
  


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 05:45 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