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/
-