The simulation does not end. Why?

46 views
Skip to first unread message

KousukeSasaki

unread,
Nov 17, 2014, 9:46:16 PM11/17/14
to ns-3-...@googlegroups.com
Hello,

My name is Kousuke Sasaki. I am a student at Future University Hakodate, Japan.

I am researching the MANET.
However, I simulated the MANET(nodes is 500) , and it did not finish.

I think that there are two causes.

Firstly, I think that the only 1/4 core of the CPU was used.
In other words, the 3/4 core of the CPU did not work. 
Maybe, NS3 does not support multithreading or I do not set multithreading?

Secondly, the scenario script file has more than 40000 lines, because I want to move the nodes intricately.(By using MobileWayPoints)
For example.

Ptr<ListPositionAllocator> taPositionAlloc = CreateObject<ListPositionAllocator> ();
taPositionAlloc->Add (Vector(2303.579427, -4429.291026, 0));
taPositionAlloc->Add (Vector(2259.502083, -4427.757127, 0));
taPositionAlloc->Add (Vector(2142.684349, -4446.364144, 0));
taPositionAlloc->Add (Vector(2262.601748, -4435.443530, 0));
taPositionAlloc->Add (Vector(2295.277091, -4436.312132, 0));
~~~~

//Node_ID 0
mobilityAdhoc.Install(adhocNodes.Get(0));
Ptr<WaypointMobilityModel> WaypointMobility0 = DynamicCast<WaypointMobilityModel>( adhocNodes.Get(0)->GetObject<MobilityModel>());
WaypointMobility0->AddWaypoint(Waypoint(Seconds(0.0),Vector(2303.579427,-4429.291026, 0)));
WaypointMobility0->AddWaypoint(Waypoint(Seconds(10.0),Vector(2303.788073,-4428.381916, 0)));
WaypointMobility0->AddWaypoint(Waypoint(Seconds(20.0),Vector(2280.988159,-4428.329493, 0)));
WaypointMobility0->AddWaypoint(Waypoint(Seconds(30.0),Vector(2281.017572,-4427.862607, 0)));
WaypointMobility0->AddWaypoint(Waypoint(Seconds(40.0),Vector(2259.502083,-4427.757127, 0)));

//Node_ID 1
mobilityAdhoc.Install(adhocNodes.Get(1));
Ptr<WaypointMobilityModel> WaypointMobility1 = DynamicCast<WaypointMobilityModel>( adhocNodes.Get(1)->GetObject<MobilityModel>());
WaypointMobility1->AddWaypoint(Waypoint(Seconds(0.0),Vector(2259.502083,-4427.757127, 0)));
~~~


My English is not good but hope you understand me.
I hope that the good answer comes.

Thank you

Konstantinos

unread,
Nov 18, 2014, 3:52:19 AM11/18/14
to ns-3-...@googlegroups.com
Do you have Simulator::Stop(<time>) before the Simulator::Run()
Reply all
Reply to author
Forward
0 new messages