LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 05-24-2014, 10:34 AM   #241
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

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

# 240 .

Latest build example, GPSR-hls : Post #5 here ...
http://www.linuxquestions.org/questi...-4175498876/#5


All GPSR-hls : http://www.linuxquestions.org/questions/tags/gpsr-hls/

-
 
Old 05-24-2014, 12:45 PM   #242
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear Knudfl,
According to your post #96 which is also in accordance with #5 as specified in this thread I have executed the commands.But it is giving

cservice.o locservices/gridlocservice.cc
locservices/gridlocservice.cc: In member function ‘void GridLocService::evaluateLocation(Packet*)’:
locservices/gridlocservice.cc:249: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc:253: error: ‘PT_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newReply(Packet*, nodelocation*)’:
locservices/gridlocservice.cc:747: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newRequest(nsaddr_t)’:
locservices/gridlocservice.cc:794: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newUpdate(nodelocation*)’:
locservices/gridlocservice.cc:830: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newUpdAck(Packet*, nodelocation*)’:
locservices/gridlocservice.cc:890: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newNotify(nodelocation*)’:
locservices/gridlocservice.cc:939: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘virtual int GridLocService::hdr_size(Packet*)’:
locservices/gridlocservice.cc:1385: error: ‘PT_GPSR’ was not declared in this scope
make: *** [locservices/gridlocservice.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Please suggest a way out.

With thanks.

Last edited by Chakraborty; 05-24-2014 at 12:47 PM.
 
Old 05-24-2014, 02:37 PM   #243
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 242 .

No. Post #96 is $ patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz

The safe way is $ tar xvf gpsr-hls-ns233-patching.tar.bz2
Please read http://www.linuxquestions.org/questi...-4175498876/#5
( But then again, I don't know why you can have any errors.)

* Ubuntu is not getting better at handling dubious patches like ns-2.33-hls.patch.
Which OS are you using now ?
a) uname -m
b) cat /etc/issue
* And which compiler are you using ? ?

Remark : You can add the OS {Name, version, architecture} to your profile.

-
 
Old 05-24-2014, 04:17 PM   #244
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Smile

# 242.
Dear knudfl,
Well, again by your help it took clean install.
Now what about path?...I am already having KeLiu-GPSR.
And validation.

*And finally the most important how to check and run the gpsr.
Where are the default tcl scripts?

->One interesting thing : it has formed a ns-2.33 directory within the ns-allinone-2.33/ns-2.33/
->The gpsr dir is not within ns-allinone-2.33/ns-2.33/,
rather within ns-allinone-2.33/ns-2.33/ns-2.33, and that to with no object file
[i.e gpsr.o]
Could you please explain?

many thanks for your consistent support and help!

Last edited by Chakraborty; 05-24-2014 at 04:36 PM.
 
Old 05-24-2014, 05:53 PM   #245
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 244 .
Quote:
it has formed a ns-2.33 directory within the ns-allinone-2.33/ns-2.33/
Time to read post #5 here ! http://www.linuxquestions.org/questi...-4175498876/#5
It clearly says :
$ cd ns-allinone-2.33/
$ tar xvf gpsr-hls-ns233-patching.tar.bz2
$ export CC=gcc41 CXX=g++41 && ./install
... If you do it different, you will of course fail with the build.


Quote:
Now what about path?...I am already having KeLiu-GPSR.
Delete any *PATH text that you added to .bashrc .
$ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns-gpsr-keliu ( Or whatever name you like.)
$ sudo cp ns-gpsr-keliu /usr/local/bin/

.. And when you have done the ns-2.33 + GPSR-hls build :
$ cd ns-allinone-2.33/ns-2.33/
$ cp ns ns-hls
$ sudo cp ns-hls /usr/local/bin/

*** All simulations can then be run with $ ns-<new-name> file.tcl


All the above has been mentioned numerous times, e.g. here :
http://www.linuxquestions.org/questions/tags/gpsr-hls/


-
 
Old 05-25-2014, 07:19 AM   #246
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear Knudfl,

Reinstalled it ! I recognized the fault from post #245.
Installation and validation is done.
Great help !!
Analyzing the code.

Thanking you for all !! with a request for your mail-id.
 
Old 05-25-2014, 10:40 AM   #247
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 246 .

Email : Please use "Send email to knudfl" :
http://www.linuxquestions.org/questi...ember&u=386037
 
Old 05-25-2014, 12:10 PM   #248
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear knudfl,
When I run ns-hls hls.tcl after:

Quote:
chakraborty@chakraborty-Inspiron-1545:~$ cd ns-allinone-2.34/ns-2.34/
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ cp ns ns-gpsr-keliu
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ sudo cp ns-gpsr-keliu /usr/local/bin/
[sudo] password for chakraborty:
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ cd ..
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34$ cd ..
chakraborty@chakraborty-Inspiron-1545:~$ cd ns-allinone-2.33/ns-2.33/
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33$ cp ns ns-hls
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33$ sudo cp ns-hls /usr/local/bin/
I got:

Quote:
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33/hls/utils$ ns-hls hls.tcl
num_nodes is set 40
Configuring Nodes (40)
INITIALIZE THE LIST xListHead
Starting Simulation...
...............
................
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 ----------
Is it a problem ?
Please suggest the way out.
Though trace is formed!!


Unable to comprehend format of these sections from trace:
Especially the bolded sections.

Quote:
M 0.00000 37 (1729.94, 1089.38, 0.00), (1280.88, 1832.51), 12.63
M 0.00000 38 (157.71, 681.51, 0.00), (158.15, 18.42), 19.66
M 0.00000 39 (1204.51, 204.07, 0.00), (1721.98, 1412.68), 11.55
--------------------------------------------------------------
TESTQ 0.012128558015 0 (556.79 1023.40) 12 (1195.60 1560.18)
HLS_REQ_s 0.012128558015 (0_0) 0 ->12 <52 792.00 792.00 (1)>
VEPM 0.012129 _0_ [0 -> -2] [556.79/1023.40]


Please suggest.
Awaiting your reply.

With thanks.

Last edited by Chakraborty; 05-25-2014 at 12:35 PM.
 
Old 05-25-2014, 12:20 PM   #249
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
#246
Quote:

Email : Please use "Send email to knudfl" :
http://www.linuxquestions.org/questi...ember&u=386037
The link takes to a restricted access zone.
Please give some other means. And please reply to #248.

With thanks.
 
Old 05-25-2014, 04:17 PM   #250
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 248 .

GPSR-hls : An OS <not-one-of-the-later-versions> will work for the build.
You can read http://www.linuxquestions.org/questions/tags/gpsr-hls/
.. to know which versions that were used with success.

If you have a 32bits OS, just install the package, gpsr-hls-2.33-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...it?usp=sharing
The package was built with (the now unsupported) Ubuntu 10.10 for best performance.

If you want to build your own version of GPSR-hls :
The safe choice of a supported OS is CentOS 6.5 - i686/i386.

-

Last edited by knudfl; 05-25-2014 at 05:20 PM.
 
Old 05-26-2014, 02:36 AM   #251
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear Knudfl,
Cannot understand what you mean by:
Quote:
GPSR-hls : An OS <not-one-of-the-later-versions> will work for the build.
Need to understand the mechanism of support. How to get it thorough?

And, YES... it is working now!

Please reply with reference to:
Quote:
#248
Unable to comprehend format of these sections from trace:
Awaiting a reply w.ref.t #246.

WITH THANKS.

Last edited by Chakraborty; 05-26-2014 at 02:40 AM.
 
Old 05-26-2014, 05:40 AM   #252
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 251 → #248.

Please read all files in /hls/utils/ : run.tcl README_HLS README.txt etc.
The documentation "Kiess2003b.pdf" is available as ``10.1.1.73.963.pdf´´
from http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf
... then you may find an explanation for the {HLS_REQ , TESTQ , VEPM } lines.


The error ""--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---""
.. appears when you are building ns-2.33 + GPSR-hls
in an updated / current version of an OS. ( Ubuntu 13.10 .. 14.04 ? ).
* How did you solve the error ?

About email : All technical discussions are supposed to take place in the Forums,
.. then everybody else can benefit from the solutions.
The option "Send email to <name> is available.
( Option "Send email to Chakraborty" is also present, in all your posts.)

-
 
Old 05-26-2014, 11:12 AM   #253
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear knudfl,

Both KeLiu and HLS is using 802.11. I need to incorporate SMAC in hls, as it is highly energy efficient,
as my work is cross-layer.

But, whenever I am using it, it is giving

"Couldn't schedule timer".

What could be the problem ?

What more is to be added to wireless-gpsr.tcl & hls.tcl

Analysed the code. Some of the things seems to be in comprehensible !!
I have the Smac paper, which is proving not sufficient enough to
comprehend the working of Smac function-by-function, in terms of code.

Could you please help how to get the detailed documentation of Smac.

In short, how to get it working and analyse its working w.r.t code.


#252
Quote:
The option "Send email to <name> is available.
( Option "Send email to Chakraborty" is also present, in all your posts.)
Not finding from my side. Please mention from where to do that?


Thanking you for all above.

Last edited by Chakraborty; 05-26-2014 at 11:18 AM.
 
Old 05-26-2014, 04:09 PM   #254
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 253 .
Quote:
incorporate SMAC in hls
Works OK. Testing GPSR-hls simulations with SMAC :
1) hls.tcl (smac_hls.tcl)
2) ssoumayaa.tcl (smac_ssoumayaa.tcl) :
set val(mac) Mac/SMAC
.... No issues by using the old executable 'ns-hls' from Ubuntu 10.10 :
$ ns-hls <file>.tcl

Testing "smac_wireless-gpsr.tcl" : set val(mac) Mac/SMAC
.. No issues with the executable 'ns-gpsr-k' from Ubuntu 10.10 :
$ ns-gpsr-k smac_wireless-gpsr.tcl

-
 
Old 05-27-2014, 01:53 AM   #255
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Dear Knudfl,

W.ref.t #254

Quote:
1) hls.tcl (smac_hls.tcl)
2) ssoumayaa.tcl (smac_ssoumayaa.tcl)
"ssoumayaa.tcl" is not there in /utils(missing!!) Only "hls.tcl" & "run.tcl" present.
What other necessary files needed? Could you please upload it?



Already renamed the respective ns'
Will give a try a/c to #254

Working with 12.04. So, w.ref.t

Quote:
.... No issues by using the old executable 'ns-hls' from Ubuntu 10.10 :
$ ns-hls <file>.tcl

.. No issues with the executable 'ns-gpsr-k' from Ubuntu 10.10 :
$ ns-gpsr-k smac_wireless-gpsr.tcl
Will it not work in 12.04, or is it mandatory to switch to 10.10.
There must be some other way!!
My entire work is amidst, and and that to, in 12.04.


Please suggest.
With thanks.

Last edited by Chakraborty; 05-27-2014 at 01:55 AM.
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 01:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 06:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 04:24 AM

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

All times are GMT -5. The time now is 02:12 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