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

Chakraborty 03-13-2014 02:30 PM

Quote:

# 179
Don't know what you are doing, or why.
( Not easily at least.)
-
sorry for the misunderstanding.I was just asking how the hls patch would work with the patch supplied to you, i.e with the patch I am having. But as it is KLiu-one, so understood with reference to below.

Quote:

# 179
The "hls" and "KeLiu" are two different setups that can't be mixed.
The file wireless-gpsr.tcl will only work with "KeLiu", not "hls".
-
Now, I think I have successfully patched the hls. It has created a gpsr.cc and gpsr.h in 2.xx/gpsr
1) installed ns-2.33
2) ./validate
3) untarred hls
4) installed : $patch -p1 < ns2-hls-patch/ns-2.33-hls.patch
5) renamed ns : $cp ns ns-hls
$sudo cp ns-hls /usr/local/bin/
6) make clean
: a new version of Makefile.in!
7) ./configure
8) make clean && make --> gpsr.o created in /gpsr
but
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/hls/utils$ ns hls.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "hls.tcl" line 6)

What could be the fault. GPSR not binded.

Please suggest
With Thanks

Chakraborty 03-13-2014 03:01 PM

Then, I run with reference to
http://www.linuxquestions.org/questi...-4175446277/#2

Then:
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/hls/utils$ bash run_small.bat
Run Configuration: -n 100 -s 30 -t 100 -x 2000 -y 2000 -mrd 1 -c 400
Can't open perl script "./namable.pl": No such file or directory

!Warning! Don't forget to check header-inclusion
(Not needed for GPSR/DSR & CBR/Ping)

num_nodes is set 100
Configuring Nodes (100)
INITIALIZE THE LIST xListHead
Loading scenario file (sc-x2000-y2000-n100-s30-t100-MRD)...
Loading connection pattern (cp-n100-c400-15-98.tcl)...
----------
Illegal division by zero at ../evaluate.pl line 1226.

$ ns run.tcl -out hls_trace.txt -sc sc-x2000-y2000-n100-s30-t100-MRD -cp cp-n100-c400-15-98.tcl -nn 100 -locs 3 -use_peri 1 -x 2000 -y 2000 -mac_emu 0 -stop 100 -zip 0
$: command not found
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/hls/utils$ ns hls.tclinvalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "hls.tcl" line 6)

What to do now?

Please suggest.

knudfl 03-13-2014 03:03 PM

# 181 .
Quote:

invalid command name "Agent/GPSR"
That's a failed build.

Or you are using the wrong executable 'ns'.
To be sure that the right one is used, make a copy of 'ns' to a new name :
$ cp ns ns-gprs-hls ( Or whatever name you like.)
.. And : $ sudo cp ns-gprs-hls /usr/local/bin/

.. The simulation will run with : $ ns-gprs-hls hls.tcl

-

Chakraborty 03-13-2014 04:10 PM

Dear Knudfl,
KeLiu GPSR successfully patched.
Thank You.

Chakraborty 03-13-2014 04:22 PM

Quote:

# 181
To be sure ......
-
Ok. Will Check.

I need to change the cbr connections such that multiple Udp sources and 1 sinks of the cbr100.tcl.
assigned null agent to 1 node and udp agents to others
Quote:

chakraborty@chakraborty-desktop:~/ns-allinone-2.34/ns-2.34/gpsr$ ns-KeLiu wireless-gpsr_4src_1sink.tcl
num_nodes is set 100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Load complete...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 129.2
SORTING LISTS ...DONE!
2 nodes are the same
2 nodes are the same
...
....
Wrong the other node
chakraborty@chakraborty-desktop:~/ns-allinone-2.34/ns-2.34/gpsr$
-
Please suggest.
thanking you.

Chakraborty 03-15-2014 06:18 AM

Quote:

Originally Posted by knudfl (Post 5134056)
# 181 .
That's a failed build.
-

Giving a try.

Chakraborty 03-15-2014 07:09 AM

Dear Knudfl,
What information can be extracted from these.
"sinklist.tr"
"gpsrnb_trace.tr"
How to extract information from these.
Unknown about their format.

Please suggest.
With Thanks

knudfl 03-15-2014 07:50 AM

# 187 .

NS-2 Trace Formats http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats

Files.tr are text files that can be viewed in any editor.
And you can use a perl script or an awk script to get some information.
→ awk_scripts_03.2014.tar.bz2 https://drive.google.com/file/d/0B7S...it?usp=sharing

Read the folder `hls/utils/' from hls-files-ns233.tar.gz :
There are three perl scripts, which may be usable.

-

Chakraborty 03-15-2014 08:30 AM

Quote:

# 187 .
-
Thank You for the valuable information.
Will check
Quote:

Read the folder `hls/utils/' from hls-files-ns233.tar.gz :
There are three perl scripts, which may be usable.
-
I referred
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
but no discussion of "gpsrnblist.tr" especially "nblist"
Because I need neighborhood locality information about nodes.

Any idea about this.

Thanking You Once Again.

knudfl 03-15-2014 10:28 AM

# 189 .

"neighborhood locality information about nodes" : I have no idea.

Probably ask at http://network-simulator-ns-2.7690.n7.nabble.com/

-

Chakraborty 03-18-2014 05:09 AM

Quote:

Originally Posted by Chakraborty;
Because I need neighborhood locality information about nodes.

Dear Knudfl,

I need to examine the buffer occupancy level of the candidate relay nodes.
1)Do 'ifqlen' maps the concerned need?
2)How to refer and incorporate it in inbuilt logic, repeatedly, before relays?
3)where to find the related codes for ifqlength handling?

Please suggest.

knudfl 03-18-2014 07:04 AM

# 191 : Not questions that I can answer.

Please ask at http://network-simulator-ns-2.7690.n7.nabble.com/
And https://groups.google.com/forum/?fro...forum/ns-users

-

Chakraborty 03-27-2014 10:26 AM

Dear knudfl,

Please suggest a easy to use graph plotter which will take collected values, from various traces of different simulations.
Would be good if it plots attractively.

With thanks.

Chakraborty 04-01-2014 08:54 AM

Quote:

#193
Dear knudfl,

Please suggest a tutorial link how to use xgraph.

knudfl 04-01-2014 09:59 AM

# 194 .

Using Xgraph examples : $ cd xgraph-12.1/examples/
$ xgraph Animation.xg
$ xgraph xgtest.xg
.... Etc. etc.
* The xgraph plot files are text : Please study the six examples.

Example.tcl that uses xgraph at simulation end :
http://hpds.ee.ncku.edu.tw/~smallko/...less-udp-1.htm
$ ns-* JoeNaoum-Sawaya.tcl
... and three times Xgraph windows will open.

* The VINT Xgraph http://www.isi.edu/nsnam/xgraph/index.html
* Documentation : Not sure thre is any.
* Google .. xgraph plotting in ns2 examples ..
https://www.google.com/webhp?hl=all#...evid=298535658
http://www.isi.edu/nsnam/ns/tutorial/nsscript4.html
http://www.nsnam.com/2011/08/xgraph.html
→ etc., 7,000 hits : I guess you'll find what you are looking for.

-


All times are GMT -5. The time now is 01:56 PM.