after install some new protocol in ns2.35, it appears some mistake when i run the tcl file
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
after install some new protocol in ns2.35, it appears some mistake when i run the tcl file
i install ns2.35 with cygwin and i followed the guide of the site below http://www.comp.sd.tmu.ac.jp/kazuyas...s2_greedy.html
when i install the greedy protocol successful and turn to test it , the result was show as below:
$ ns greedy.tcl
num_nodes is set 7
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaz_ = 1.5 , distCST_ = 550.0
SORTING LISTS...DONE!
after that ,when i open the nam file ,it has nothing but the topology, i mean , it doesn't contain any communicate process. i don't know why.
and when i use the greedy protocol the tcl file i write ,it does't work either.
could anyone help me?
thx a lot!
by the way , i am new to ns2 and English is not my mother language.
thank you for your time.
Last edited by whatamazing; 04-01-2015 at 02:28 AM.
Right. That's the way the file `greedy.tcl' works.
More complex ?
-
first of all,thanks for your help, i will follow the gpsr later.
But i still fell confused with something.
Would please explain what is the protocol works in ns2?
my point is that : when i simulate the aodv sample successful, and then only change the protocol to greedy and simulator it again ,the xwin tells me Invalid flow.
if you want see the tcl file, just tell me.
i don't know what if i described clearly.
anyway, thank you vary much .
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Re #3.
A random file.tcl cannot be used with : set val(rp) GREEDY
Please have another look at greedy.tcl : Three files are used >>>
1) greedy.tcl
2) nbr.tcl : A configuration file.
3) topo2.txt : A traffic / scene file.
A random file.tcl cannot be used with : set val(rp) GREEDY
Please have another look at greedy.tcl : Three files are used >>>
1) greedy.tcl
2) nbr.tcl : A configuration file.
3) topo2.txt : A traffic / scene file.
-
thanks for your help, now i can run greedy protocol successfully.
but when i turn to the gpsr i found i have the same problem with someone you ever help. http://www.linuxquestions.org/questi...-a-4175528835/
but i still fell confused, should i install some new ns2.35 ?
so i just cope the hls-example file to /usr/local/
after that when i run ssoumayaa.tcl ,the xwin hints me that Segmentation fault(core dumped)
was that(directly cope) cause the error?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Re #5.
Segmentation fault : Probably caused by a 64bits Cygwin.
Ns2 is for a 32bits OS. Suggest : Install 'VirtualBox' in Windows 7.
And then install a genuine 32bits 'Linux OS' into VirtualBox.
... Then you can do: $ ns-gpsr-hls ssoumayaa.tcl
... from the examples, gpsr-hls-examples-05.14.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing
The examples can be kept in / used from any folder in /home/<name>/.
-
thanks a lot!
because my windows is 32bits, so the cygwin i installed is 32bits too.
maybe i miss something else.
should i modified some files in the ns2.35 as well as i install the greedy protocol ?
it seems that the patch has deleted the modifying which i made for greedy protocol. maybe it is the problem laid?
Last edited by whatamazing; 04-07-2015 at 10:31 PM.
Segmentation fault : Probably caused by a 64bits Cygwin.
Ns2 is for a 32bits OS. Suggest : Install 'VirtualBox' in Windows 7.
And then install a genuine 32bits 'Linux OS' into VirtualBox.
-
i have tried to edit some code in the file ,and the result was shown below.
does it means that what i have done is work?
Last edited by whatamazing; 04-08-2015 at 06:56 AM.
HOWTO create a file "result.txt" (Or whatever file name you want) :
$ ns ssoumayaa.tcl 2>&1 | tee result.txt
-
OK.because the xwin doesn't support direct cope(as far as i know), so i just pic it.never again.
maybe you misunderstand what i mean.
in my opinion , the xwin do not throw any erro and the nam file has create successfully.
even though i don't know what situation does the nam file described, but at least it runs.
and does all above means that the ssoumayaa.tcl run correct ?
or is the ssoumayaa runs success in an other way, doesn't like what i post?
thanks a lot. knudfl!
An OK simulation $ ns ssoumayaa.tcl
.. will create the files fangzhen1.nam ~110kb, fangzhen1.tr ~175kB.
And the terminal text is :
it is same in my computer, that means i install the gpsr correct!
by the way , you are awesome and i still use cygwin.
well, would please tell me what's the tr file's formart so i can analyze it.
such as the delay, delay jitter , the rate of the package loss and the energy consumption. or something else.
Analyzing tools :
ns-2.3x/hls/utils/{evaluate.pl, evFromdirectory.pl, gls_evaluate.pl, runfromdirectory.pl}
* Also included in gpsr-hls-examples-05.14.tar.gz .
Using : $ perl <script>.pl fangzhen1.tr
Analyzing tools :
ns-2.3x/hls/utils/{evaluate.pl, evFromdirectory.pl, gls_evaluate.pl, runfromdirectory.pl}
* Also included in gpsr-hls-examples-05.14.tar.gz .
Using : $ perl <script>.pl fangzhen1.tr
thank you for your time.
for example , i'd like to use evaluate.pl to evaluste the tr file
do you mean using: $ perl evaluate.pl fangzhen1.tr ?
but this did't work for me unless i use : perl evaluate.pl -f fangzhen1.tr
for instead.
dose the evaluate.pl test the move speed , and the evFromdirectory.pl and runfromdirectory.pl is the recursive of evaluate.pl ? i can't get it.
it is my first time to use perl, so i just google something.
thanks.
when i use the hls-gpsr,and i find that the node can't communicate each other .because i can't see the packet seed or receive which i write in the tcl code.
then i turn to KeLiu-gpsr, after install successfully, i found i can even hardly create nodes.
when i use the code
Code:
for {set i 0} {$i < $opt(nn) } {incr i} {
gpsr-create-mobile-node $i
set node_($i) [$ns_ node]
}
it will throw some mistake because of "set node_($i) [$ns_ node]"
would you please give me some advice?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.