fix tcp burst start times

main
EmaMaker 2023-12-31 13:16:42 +00:00
parent da94f5cd99
commit c5cae89c0e
13 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -312,25 +312,25 @@ int main(int argc, char* argv[])
onOffHelper_11.SetAttribute("OnTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_11.SetAttribute("OffTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_11.SetAttribute("PacketSize", UintegerValue(1821));
onOffHelper_11.SetAttribute("StartTime", StringValue("1.15s"));
// onOffHelper_11.SetAttribute("StartTime", StringValue("1.15s"));
ApplicationContainer node11_app = onOffHelper_11.Install(wifiStaNodes.Get(1));
node11_app.Start(Seconds(0.0));
node11_app.Start(Seconds(1.15));
// Node 15 that sends to server 1
OnOffHelper onOffHelper_10("ns3::TcpSocketFactory", InetSocketAddress(ipptp12.GetAddress(0), port0));
onOffHelper_10.SetAttribute("OnTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_10.SetAttribute("OffTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_10.SetAttribute("PacketSize", UintegerValue(1829));
onOffHelper_10.SetAttribute("StartTime", StringValue("3.39s"));
// onOffHelper_10.SetAttribute("StartTime", StringValue("3.39s"));
ApplicationContainer node10_app = onOffHelper_10.Install(wifiStaNodes.Get(0));
node10_app.Start(Seconds(0.0));
node10_app.Start(Seconds(3.39));
// Node 15 that sends to server 0
OnOffHelper onOffHelper_15("ns3::TcpSocketFactory", InetSocketAddress(ipptp02.GetAddress(0), port1));
onOffHelper_15.SetAttribute("OnTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_15.SetAttribute("OffTime", StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
onOffHelper_15.SetAttribute("PacketSize", UintegerValue(1099));
onOffHelper_15.SetAttribute("StartTime", StringValue("3.71s"));
// onOffHelper_15.SetAttribute("StartTime", StringValue("3.71s"));
ApplicationContainer node15_app = onOffHelper_15.Install(wifiStaNodes.Get(5));
node15_app.Start(Seconds(0.0));
node15_app.Start(Seconds(3.71));
/* ----- End of TCP Burst ----- */
/* ----- Start of UDP Echo ----- */