LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-13-2014, 02:30 PM   #181
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled

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
 
Old 03-13-2014, 03:01 PM   #182
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.

Last edited by Chakraborty; 03-15-2014 at 06:09 AM.
 
Old 03-13-2014, 03:03 PM   #183
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
# 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

-
 
1 members found this post helpful.
Old 03-13-2014, 04:10 PM   #184
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,
KeLiu GPSR successfully patched.
Thank You.
 
Old 03-13-2014, 04:22 PM   #185
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.
 
Old 03-15-2014, 06:18 AM   #186
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 181 .
That's a failed build.
-
Giving a try.
 
Old 03-15-2014, 07:09 AM   #187
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,
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

Last edited by Chakraborty; 03-15-2014 at 07:13 AM.
 
Old 03-15-2014, 07:50 AM   #188
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
# 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.

-
 
Old 03-15-2014, 08:30 AM   #189
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.

Last edited by Chakraborty; 03-15-2014 at 08:38 AM.
 
Old 03-15-2014, 10:28 AM   #190
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
# 189 .

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

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

-
 
Old 03-18-2014, 05:09 AM   #191
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.
 
Old 03-18-2014, 07:04 AM   #192
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
# 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

-
 
Old 03-27-2014, 10:26 AM   #193
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,

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.
 
Old 04-01-2014, 08:54 AM   #194
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
#193
Dear knudfl,

Please suggest a tutorial link how to use xgraph.
 
Old 04-01-2014, 09:59 AM   #195
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
# 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.

-
 
1 members found this post helpful.
  


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 10:47 PM.

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