LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to patch GPSR routing protocol to ns-2.34 (https://www.linuxquestions.org/questions/linux-software-2/how-to-patch-gpsr-routing-protocol-to-ns-2-34-a-878526/)

knudfl 05-24-2014 10:34 AM

# 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/

-

Chakraborty 05-24-2014 12:45 PM

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.

knudfl 05-24-2014 02:37 PM

# 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.

-

Chakraborty 05-24-2014 04:17 PM

# 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!

knudfl 05-24-2014 05:53 PM

# 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/


-

Chakraborty 05-25-2014 07:19 AM

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.

knudfl 05-25-2014 10:40 AM

# 246 .

Email : Please use "Send email to knudfl" :
http://www.linuxquestions.org/questi...ember&u=386037

Chakraborty 05-25-2014 12:10 PM

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.

Chakraborty 05-25-2014 12:20 PM

#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.

knudfl 05-25-2014 04:17 PM

# 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.

-

Chakraborty 05-26-2014 02:36 AM

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.

knudfl 05-26-2014 05:40 AM

# 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.)

-

Chakraborty 05-26-2014 11:12 AM

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

knudfl 05-26-2014 04:09 PM

# 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

-

Chakraborty 05-27-2014 01:53 AM

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.


All times are GMT -5. The time now is 12:02 PM.