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-10-2014, 01:39 PM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Rep: Reputation: Disabled
Question NS2 and Aqua-sim


Dear all,

I have a question related to NS2 and aqua-sim?

Is there a dedicated amount of RAM that is assigned to the simulator? I installed aqua-sim on ubuntu 12.4 (64 bit) which is installed on a virtual machine.
My machine is 16 GB RAM but I'm receiving a segmentation fault when I increased the number of nodes.

I need argent help, please.

Thank you in advance...
 
Old 06-10-2014, 01:42 PM   #2
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
I mean 12.04 in the above question.
 
Old 06-10-2014, 11:40 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
NS2 limitations : Some simulations have a maximum of 14 nodes, some 100+.

http://www.cs.binghamton.edu/~kliu/r...2code/#speedup
"The implementation of the Packet data structure of NS2 does not math the realities.
The packet in ns2 simulation keeps all packet headers for any protocols implemented in NS2.
For example, a DSR routing packet may keep DSDV, AODV, or even a PING application header.
For this reason, till today, a packet used in ns2 simulation, would have a header size around 40~64KB.
And NO packet would be deleted to release the memory it holds until the end of the simulation.
So for a typical simulation with 100 nodes in ns2 around 1M packets exchanged (of course,
you may reuse the packets already being freed through Packet::free(Packet*).
To learn the implementation of it, please check file common/packet{.h,.cc} ),
you may hold 10% of it, 100K packets, and you may use a memory at least 100K*64KB -> 6.4GB,
which definitely would crash your computer (even it is a super server)."

http://network-simulator-ns-2.7690.n...36.html#a26937
"NS2 does not have automatic garbage collection, thus warrants a manual
freeing of allocated memory once an object is no longer needed."

P.S. : Also → → post #5 here ....
http://www.linuxquestions.org/questi...ut-4175506731/

-

Last edited by knudfl; 06-11-2014 at 12:42 AM.
 
2 members found this post helpful.
Old 06-12-2014, 12:46 AM   #4
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Thank you for the useful information.
 
  


Reply

Tags
aquasim, ns2, segmentation fault 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 - DBR protocol saye_s Linux - Software 71 03-04-2017 09:19 AM
simulating routing protocols in aqua-sim Faiza Al-Salti Linux - Networking 9 06-07-2014 09:05 AM
Simulation in aqua-sim Faiza Al-Salti Linux - Newbie 9 05-29-2014 08:41 AM
VBF protocol in Aqua-sim lilong_guet Linux - Wireless Networking 2 07-05-2013 06:30 AM
[SOLVED] install aqua-sim on ubuntu dina Linux - Newbie 4 11-01-2012 04:49 AM

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

All times are GMT -5. The time now is 07:53 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