Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #16.
Quote:
without doing any transmission
Please read vbf7.txt, attached to post #15.
Code:
.
.
UWSink (id:0): I get the packet data no.2 from 96
UWSink (id:0): I get the packet data no.3 from 96
SK 0: Num_Recv 2, InterArrival 10.263230
UWSink (id:0): I get the packet data no.4 from 96
SK 0: Num_Recv 3, InterArrival 9.999551
UWSink (id:0): I get the packet data no.6 from 71
SK 0: Num_Recv 4, InterArrival 19.039347
UWSink (id:0): I get the packet data no.7 from 96
SK 0: Num_Recv 5, InterArrival 13.116915
UWSink (id:0): I get the packet data no.28 from 12
SK 0: Num_Recv 6, InterArrival 206.608150
UWSink (id:0): I get the packet data no.29 from 12
SK 0: Num_Recv 7, InterArrival 11.333350
UWSink (id:0): I get the packet data no.31 from 56
SK 0: Num_Recv 8, InterArrival 19.843164
UWSink (id:0): I get the packet data no.32 from 56
SK 0: Num_Recv 9, InterArrival 9.866157
UWSink (id:0): I get the packet data no.35 from 56
SK 0: Num_Recv 10, InterArrival 29.938490
UWSink (id:0): I get the packet data no.36 from 56
SK 0: Num_Recv 11, InterArrival 11.087990
UWSink (id:0): I get the packet data no.37 from 72
SK 0: Num_Recv 12, InterArrival 9.139958
UWSink (id:0): I get the packet data no.41 from 12
.
.
I rename vbf_example_7.tcl to vbf_example_71.tcl for my easiness. when i run vbf_example_71.tcl the output comes on terminal is showing below:
shaveta@shaveta-Aspire-4738Z:~/Aqua-Sim-1.0/ns-2.30$ cd underwatersensor/uw_tclshaveta@shaveta-Aspire-4738Z:~/Aqua-Sim-1.0/ns-2.30/underwatersensor/uw_tcl$ ns-aquasim vbf_example_71.tcl
the file name is vbf_example_71.data
the sending interval is 10.0
num_nodes is set 100
Width=100
INITIALIZE THE LIST xListHead
Node 1 is sending first!!
starting Simulation...
GOD: the old file name istest.data
GOD: the new file name isvbf_example_71.data
SORTING LISTS ...DONE!
UWSink (id:0): I get the packet data no.4 from 71
UWSink (id:0): I get the packet data no.13 from 61
SK 0: Num_Recv 2, InterArrival 92.538205
UWSink (id:0): I get the packet data no.18 from 91
SK 0: Num_Recv 3, InterArrival 47.632677
UWSink (id:0): I get the packet data no.21 from 91
SK 0: Num_Recv 4, InterArrival 34.552799
UWSink (id:0): I get the packet data no.22 from 91
SK 0: Num_Recv 5, InterArrival 6.982694
UWSink (id:0): I get the packet data no.23 from 91
SK 0: Num_Recv 6, InterArrival 10.165944
UWSink (id:0): I get the packet data no.24 from 91
SK 0: Num_Recv 7, InterArrival 11.267667
SINK 1 : terminates (send 100, recv 0, cum_delay 0.000000)
SINK 0 : terminates (send 0, recv 7, cum_delay 58.929200)
SINK(0) : send_id = 1, num_recv = 7
god: the energy consumped is 874.780647
NS EXISTING...
But I did not observe the output in nam window in which nodes changes their position randomly but no communication takes place can be observed.I have attached a shot.Please guide me.
Is vbf_example_7.tcl run at aquas3d environment? suggest me something that will also work for me..
Last edited by Shaveta Kamra; 06-23-2017 at 02:58 AM.
$ grep "I get" vbf7.txt : Will print all lines with ".. I get the packet data no.* from *"
$ grep -A1 "I get" vbf7.txt : Will also print the next line.
I have a different ns-aquasim from yours.May be thats why i cannot get the results..Attached a shot of my aquasim and please tell if in this vbf_example_6.tcl of 100 nodes can work or not?
cd Downloads/
sudo gdebi ./aquasim-ns2_2.30-1.el6_i386.deb
sudo gdebi ./aquasim-ns-2.30-ubuntu10_i386.deb
... and try out the two new executable´s 'ns-aqua', 'ns-aqua-el6'.
The third: sudo dpkg -i --force-all aquasim-ns_2.30-2-ubuntu1010_i386.deb
( Because of the equal package names.)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #25.
You can have as many times ns2 as you want, installed at the same time.
But do never add any *PATH text to .bashrc. Not required.
Just keep all your executable´s 'ns-any-name' in /usr/local/bin/.
Example → The three mentioned in #24 :
/usr/local/bin/{ ns-aqua-u10, ns-aqua-1010, ns-aqua-el6 }.
... And you can have a hundred more if you want.
Currently I have 40 times ns*-name on this OS. Once when 32bits: 120! (pclos 2016)
Attached.
-
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #28.
I guess you have to keep up with the data you have now. The text output.
It's rather tricky to write a new simulation.tcl like vbf_example_6.tcl for aquasim.
But please do, if you want.
E.g. example vbf_example_5.tcl has nam activity.
'vbf_example_5.tcl': Every node has to be defined / set with a lot of lines.
Besides that, nam doesn't support everything / every protocol detail.
Ok Sir..I will try to create tcl by defining each and every node separately for 100 nodes tcl like in vbf_example_5.tcl.This is the remaining option i think.
Thanks for your support!
I have done two protocols like vbf and DBR..I want to do one more protocol.Kindly guide me and send me tcl's of third protocol of aquasim under water sensor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.