the execution speed of Simulation is too slow to tolerate

213 views
Skip to first unread message

林奇彼得

unread,
Oct 18, 2016, 9:01:03 AM10/18/16
to ns-3-users

We use SUMO and NS3 to simulate VANET.The ultimate purpose is to design a new routing protocol.Some preparation is made now.Simulation parameters is above,and the propagation model is FriisPropagationLossModel.The rate is 800 000 bps.It takes 30minutes to execute the simulation.I already used  optimized mode.What's wrong?Could anyboby give me a hand.Thank you in advance.

Tommaso Pecorella

unread,
Oct 20, 2016, 4:24:09 PM10/20/16
to ns-3-users
Hi,

first and foremost, ns-3 is not capitalized and it does have a dash between "ns" and "3". It's just a small detail, but it's useful to point it out.

About the simulation speed, you have a pretty much crowded area. Most of your nodes will be able to receive packets with just one hop, and this increases the simulation time (strange but true).
You could try to check if there are too many packet collisions, and find a way to avoid them. One common mistake is to have applications transmitting at the same time, generating a lot of collisions.

Other than that there are the usual (but useless) suggestions: more RAM, more CPU speed, and less dump to files.
As a side note, even in optimized mode if you have logs going on (e.g., AsciiTrace, PcapTrace, etc.) your simulation will go slower. Just enable the strict necessary.

T.
Reply all
Reply to author
Forward
0 new messages