#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/traffic-control-module.h"
Go to the source code of this file.
Functions | |
void | BuildAppsTest (uint32_t test) |
Setup the apps. | |
void | CheckQueueDiscSize (Ptr< QueueDisc > queue) |
Check the queue disc size and write its stats to the output files. | |
Variables | |
double | avgQueueDiscSize |
Average QueueDisc size. | |
uint32_t | checkTimes |
Number of times the queues have been checked. | |
double | client_start_time |
Client start time. | |
double | client_stop_time |
Client stop time. | |
std::stringstream | filePlotQueueDisc |
Output file name for queue disc size. | |
std::stringstream | filePlotQueueDiscAvg |
Output file name for queue disc average. | |
double | global_start_time |
Global start time. | |
double | global_stop_time |
Global stop time. | |
Ipv4InterfaceContainer | i0i2 |
IPv4 interface container i0 + i2. | |
Ipv4InterfaceContainer | i1i2 |
IPv4 interface container i1 + i2. | |
Ipv4InterfaceContainer | i2i3 |
IPv4 interface container i2 + i3. | |
Ipv4InterfaceContainer | i3i4 |
IPv4 interface container i3 + i4. | |
Ipv4InterfaceContainer | i3i5 |
IPv4 interface container i3 + i5. | |
NodeContainer | n0n2 |
Nodecontainer n0 + n2. | |
NodeContainer | n1n2 |
Nodecontainer n1 + n2. | |
NodeContainer | n2n3 |
Nodecontainer n2 + n3. | |
NodeContainer | n3n4 |
Nodecontainer n3 + n4. | |
NodeContainer | n3n5 |
Nodecontainer n3 + n5. | |
double | sink_start_time |
Sink start time. | |
double | sink_stop_time |
Sink stop time. | |
void BuildAppsTest | ( | uint32_t | test | ) |
Setup the apps.
test | The test number. |
Definition at line 125 of file adaptive-red-tests.cc.
References ns3::ApplicationContainer::Add(), client_start_time, client_stop_time, ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), i3i4, ns3::ApplicationHelper::Install(), n0n2, n1n2, n3n4, port, ns3::Seconds(), ns3::ApplicationHelper::SetAttribute(), sink_start_time, sink_stop_time, ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Check the queue disc size and write its stats to the output files.
queue | The queue to check. |
Definition at line 99 of file adaptive-red-tests.cc.
References avgQueueDiscSize, CheckQueueDiscSize(), checkTimes, filePlotQueueDisc, filePlotQueueDiscAvg, ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().
Referenced by CheckQueueDiscSize().
double avgQueueDiscSize |
Average QueueDisc size.
Definition at line 68 of file adaptive-red-tests.cc.
Referenced by CheckQueueDiscSize().
uint32_t checkTimes |
Number of times the queues have been checked.
Definition at line 67 of file adaptive-red-tests.cc.
Referenced by CheckQueueDiscSize().
double client_start_time |
Client start time.
Definition at line 75 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest().
double client_stop_time |
Client stop time.
Definition at line 76 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest().
std::stringstream filePlotQueueDisc |
Output file name for queue disc size.
Definition at line 90 of file adaptive-red-tests.cc.
Referenced by CheckQueueDiscSize().
std::stringstream filePlotQueueDiscAvg |
Output file name for queue disc average.
Definition at line 91 of file adaptive-red-tests.cc.
Referenced by CheckQueueDiscSize().
double global_start_time |
Global start time.
Definition at line 71 of file adaptive-red-tests.cc.
double global_stop_time |
Global stop time.
Definition at line 72 of file adaptive-red-tests.cc.
IPv4 interface container i0 + i2.
Definition at line 84 of file adaptive-red-tests.cc.
IPv4 interface container i1 + i2.
Definition at line 85 of file adaptive-red-tests.cc.
Referenced by Ns3TcpCubicTestCase::DoRun().
IPv4 interface container i2 + i3.
Definition at line 86 of file adaptive-red-tests.cc.
IPv4 interface container i3 + i4.
Definition at line 87 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest().
IPv4 interface container i3 + i5.
Definition at line 88 of file adaptive-red-tests.cc.
NodeContainer n0n2 |
Nodecontainer n0 + n2.
Definition at line 78 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest(), and Ipv4DynamicGlobalRoutingTestCase::DoRun().
NodeContainer n1n2 |
Nodecontainer n1 + n2.
Definition at line 79 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest(), IcmpTimeExceedTestCase::DoRun(), IcmpV6TimeExceedTestCase::DoRun(), Ipv4DynamicGlobalRoutingTestCase::DoRun(), and Ns3TcpStateTestCase::DoRun().
NodeContainer n2n3 |
Nodecontainer n2 + n3.
Definition at line 80 of file adaptive-red-tests.cc.
NodeContainer n3n4 |
Nodecontainer n3 + n4.
Definition at line 81 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest().
NodeContainer n3n5 |
Nodecontainer n3 + n5.
Definition at line 82 of file adaptive-red-tests.cc.
double sink_start_time |
Sink start time.
Definition at line 73 of file adaptive-red-tests.cc.
Referenced by BuildAppsTest().
double sink_stop_time |