LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2017, 11:20 PM   #16
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled

Thanks Sir..But in vbf_example_7.tcl same output comes as was told you regarding vbf_example_6.tcl..No effect of increasing time:

set opt(stop) 1000 ;# simulation time
set opt(prestop) 900 ;# time to prepare to stop

Nodes just moving in the nam without doing any transmission.I think problem may be at different point..Please help me sir!
 
Old 06-23-2017, 12:36 AM   #17
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks Sir..But in vbf_example_7.tcl same output comes as was told you regarding vbf_example_6.tcl..No effect of increasing time:

set opt(stop) 1000 ;# simulation time
set opt(prestop) 900 ;# time to prepare to stop

Nodes just moving in the nam without doing any transmission.I think problem may be at different point..Please help me sir!

By mistaken i have again post it..Please ignore it

Last edited by Shaveta Kamra; 06-23-2017 at 12:39 AM.
 
Old 06-23-2017, 01:29 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
.
.
 
Old 06-23-2017, 01:45 AM   #19
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
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..
Attached Thumbnails
Click image for larger version

Name:	vbf_example_71nam.png
Views:	24
Size:	99.1 KB
ID:	25301  

Last edited by Shaveta Kamra; 06-23-2017 at 01:58 AM.
 
Old 06-23-2017, 03:41 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #19.
Quote:
I did not get that output
Ubuntu 16.04 - 32bits (i686) :
Code:
$ ns-aqua-el6 vbf_example_7.tcl > vbf7.txt
... You are right. Not much of a result to look at. But it can be edited:
Code:
$ grep -A1 "I get" vbf7.txt >> vbf7-Ubuntu16-32-A1.txt (option -A1 will print the next line too)
.... and fill in the top and bottom sections :
Result https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Last edited by knudfl; 06-23-2017 at 03:51 AM.
 
Old 06-23-2017, 03:53 AM   #21
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks sir for helping But can you explain more? I am unable to understand this:

$ grep -A1 "I get" vbf7.txt >> vbf7-Ubuntu16-32-A1.txt (option -A1 will print the next line too)
 
Old 06-23-2017, 04:03 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #20, #21.

First:
Be aware that I used the executable 'ns-aqua-el6' from aquasim-ns2_2.30-1.el6_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... for best result.


'grep' : Please read $ man grep
Or the on-line man page https://linux.die.net/man/1/grep

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

-

Last edited by knudfl; 06-23-2017 at 04:04 AM.
 
Old 06-23-2017, 04:25 AM   #23
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Exclamation

Hi Sir,

I have installed the aquasim from this site:
http://mohittahiliani.blogspot.in/20...s-in-ns-2.html

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?
Attached Thumbnails
Click image for larger version

Name:	my ns-aquasim.png
Views:	26
Size:	208.9 KB
ID:	25302  
 
Old 06-23-2017, 05:16 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #23. Not a good idea : Building aquasim with Ubuntu (16.04).

Please download the two binary packages : aquasim-ns2_2.30-1.el6_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

And aquasim-ns-2.30-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

And may be the third, aquasim-ns_2.30-2-ubuntu1010_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

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


P.S.:
I got a result with even more output with CentOS 6.9 and the Ubuntu 10 'ns-aqua':
$ ns-aqua vbf_example_7.tcl >> vbf7-CentOS6__ns-aqua-Ubuntu10.txt
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... and ...
$ ns-aqua-1010 vbf_example_7.tcl >> vbf7-CentOS6__ns-aqua-Ubuntu1010.txt
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Last edited by knudfl; 06-23-2017 at 05:25 AM.
 
Old 06-23-2017, 11:32 PM   #25
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Can we install more than 1 aquasim at our ubuntu 16.04 sytsem? Is they not conflict ?

And you are suggesting me to install the aquasim from your links?
 
Old 06-24-2017, 04:04 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
-
Attached Files
File Type: txt usr.local.bin.ns.txt (888 Bytes, 25 views)
 
1 members found this post helpful.
Old 06-24-2017, 04:07 AM   #27
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks Sir!
 
Old 06-24-2017, 04:40 AM   #28
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

Original Poster
Rep: Reputation: Disabled
Angry

aquasim output as your said.txtHii Sir,

I have installed all said aquasim..But still in nam window i am unable to show transmission. But at terminal output is same as yours.

What need to be do now??
 
Old 06-24-2017, 05:11 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

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

-
 
Old 06-24-2017, 12:41 PM   #30
Shaveta Kamra
Member
 
Registered: Jun 2017
Posts: 39

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


Reply

Tags
aquasim, ns2



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
Aqua-Sim in NS2 Shaveta Kamra Linux - Newbie 4 06-13-2017 01:35 AM
Aqua-Sim in NS2 Shaveta Kamra Linux - Newbie 3 06-07-2017 11:01 AM
Aqua-Sim in NS2 Shaveta Kamra Linux - Wireless Networking 1 06-07-2017 06:02 AM
aqua sim in ns2 - DBR protocol saye_s Linux - Software 71 03-04-2017 09:19 AM
NS2 and Aqua-sim Faiza Al-Salti Linux - Networking 3 06-12-2014 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 AM.

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