#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
Go to the source code of this file.
Functions | |
void | BuildAppsTest (uint32_t test) |
void | CheckQueueSize (Ptr< Queue > queue) |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("RedTests") | |
Variables | |
double | avgQueueSize |
uint32_t | checkTimes |
double | client_start_time |
double | client_stop_time |
std::stringstream | filePlotQueue |
std::stringstream | filePlotQueueAvg |
double | global_start_time |
double | global_stop_time |
Ipv4InterfaceContainer | i0i2 |
Ipv4InterfaceContainer | i1i2 |
Ipv4InterfaceContainer | i2i3 |
Ipv4InterfaceContainer | i3i4 |
Ipv4InterfaceContainer | i3i5 |
NodeContainer | n0n2 |
NodeContainer | n1n2 |
NodeContainer | n2n3 |
NodeContainer | n3n4 |
NodeContainer | n3n5 |
double | sink_start_time |
double | sink_stop_time |
void BuildAppsTest | ( | uint32_t | test | ) |
Definition at line 98 of file red-tests.cc.
References ns3::ApplicationContainer::Add(), client_start_time, client_stop_time, ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), i0i2, i1i2, i3i4, i3i5, ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), n0n2, n1n2, n3n4, n3n5, port, ns3::OnOffHelper::SetAttribute(), sink_start_time, sink_stop_time, ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Referenced by main().
Definition at line 78 of file red-tests.cc.
References avgQueueSize, checkTimes, filePlotQueue, filePlotQueueAvg, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 254 of file red-tests.cc.
References ns3::Names::Add(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::GlobalValue::Bind(), BuildAppsTest(), CheckQueueSize(), client_start_time, client_stop_time, ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::PcapHelperForDevice::EnablePcapAll(), filePlotQueue, filePlotQueueAvg, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::PointToPointNetDevice::GetQueue(), global_start_time, global_stop_time, i0i2, i1i2, i2i3, i3i4, i3i5, ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::FlowMonitorHelper::InstallAll(), ns3::LOG_LEVEL_INFO, ns3::LogComponentEnable(), n0n2, n1n2, n2n3, n3n4, n3n5, NS_ABORT_MSG, NS_LOG_INFO, ns3::CommandLine::Parse(), ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables(), ns3::Queue::QUEUE_MODE_PACKETS, ns3::Simulator::Run(), ns3::Simulator::ScheduleNow(), ns3::FlowMonitor::SerializeToXmlFile(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::PointToPointHelper::SetQueue(), sink_start_time, sink_stop_time, and ns3::Simulator::Stop().
NS_LOG_COMPONENT_DEFINE | ( | "RedTests" | ) |
double avgQueueSize |
Definition at line 52 of file red-tests.cc.
Referenced by CheckQueueSize().
uint32_t checkTimes |
Definition at line 51 of file red-tests.cc.
Referenced by CheckQueueSize().
double client_start_time |
Definition at line 59 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
double client_stop_time |
Definition at line 60 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
std::stringstream filePlotQueue |
Definition at line 74 of file red-tests.cc.
Referenced by CheckQueueSize(), and main().
std::stringstream filePlotQueueAvg |
Definition at line 75 of file red-tests.cc.
Referenced by CheckQueueSize(), and main().
double global_start_time |
Definition at line 55 of file red-tests.cc.
Referenced by main().
double global_stop_time |
Definition at line 56 of file red-tests.cc.
Referenced by main().
Definition at line 68 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
Definition at line 69 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
Definition at line 70 of file red-tests.cc.
Referenced by main().
Definition at line 71 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
Definition at line 72 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
NodeContainer n0n2 |
Definition at line 62 of file red-tests.cc.
Referenced by BuildAppsTest(), DynamicGlobalRoutingTestCase::DoRun(), and main().
NodeContainer n1n2 |
Definition at line 63 of file red-tests.cc.
Referenced by BuildAppsTest(), DynamicGlobalRoutingTestCase::DoRun(), Ns3TcpStateTestCase::DoRun(), Ns3TcpCwndTestCase2::DoRun(), and main().
NodeContainer n2n3 |
Definition at line 64 of file red-tests.cc.
Referenced by Ns3TcpCwndTestCase2::DoRun(), and main().
NodeContainer n3n4 |
Definition at line 65 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
NodeContainer n3n5 |
Definition at line 66 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
double sink_start_time |
Definition at line 57 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().
double sink_stop_time |
Definition at line 58 of file red-tests.cc.
Referenced by BuildAppsTest(), and main().