There are 5 Wifi stations sending 1000 bytes to a single AP. I want to offset their application start times by using the following snippet:
double t = 0;
double SimulationStartTime = 2;
for (unsigned int i = 0; i < staNodes.GetN(); i++)
{
t=SimulationStartTime+(double)(i)/100;
server.SetAttribute ("StartTime", TimeValue (Seconds (t)));
serverApp.Add(server.Install (staNodes.Get (i)));
std::cout<<"Station "<<i+1<<" starting at "<<t<<"s\n";
}
The start times can be verified by looking at output.txt (attached). The problem that occurs is that data is sent
twice by all the 5 stations to the AP. This doesn't happen when I just set the same starting time for all stations:
serverApp.Start (Seconds (2.0));
What's wrong about my implementation? Or could this be a bug?
Thanks,
Varun