A Discrete-Event Network Simulator
API
adaptive-red-tests.cc File Reference
#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"
#include "ns3/traffic-control-module.h"
+ Include dependency graph for adaptive-red-tests.cc:

Go to the source code of this file.

Functions

void BuildAppsTest (uint32_t test)
 Setup the apps. More...
 
void CheckQueueDiscSize (Ptr< QueueDisc > queue)
 Check the queue disc size and write its stats to the output files. More...
 

Variables

double avgQueueDiscSize
 Average QueueDisc size. More...
 
uint32_t checkTimes
 Number of times the queues have been checked. More...
 
double client_start_time
 Client start time. More...
 
double client_stop_time
 Client stop time. More...
 
std::stringstream filePlotQueueDisc
 Output file name for queue disc size. More...
 
std::stringstream filePlotQueueDiscAvg
 Output file name for queue disc average. More...
 
double global_start_time
 Global start time. More...
 
double global_stop_time
 Global stop time. More...
 
Ipv4InterfaceContainer i0i2
 IPv4 interface container i0 + i2. More...
 
Ipv4InterfaceContainer i1i2
 IPv4 interface container i1 + i2. More...
 
Ipv4InterfaceContainer i2i3
 IPv4 interface container i2 + i3. More...
 
Ipv4InterfaceContainer i3i4
 IPv4 interface container i3 + i4. More...
 
Ipv4InterfaceContainer i3i5
 IPv4 interface container i3 + i5. More...
 
NodeContainer n0n2
 Nodecontainer n0 + n2. More...
 
NodeContainer n1n2
 Nodecontainer n1 + n2. More...
 
NodeContainer n2n3
 Nodecontainer n2 + n3. More...
 
NodeContainer n3n4
 Nodecontainer n3 + n4. More...
 
NodeContainer n3n5
 Nodecontainer n3 + n5. More...
 
double sink_start_time
 Sink start time. More...
 
double sink_stop_time
 Sink stop time. More...
 

Detailed Description

Usage

$ ./ns3 run "adaptive-red-tests [Program Options]"

Program Options

--testNumber
Run test 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14 or 15 [1]
--pathOut
Path to save results from –writeForPlot/–writePcap/–writeFlowMonitor [.]
--writeForPlot
Write results for plot (gnuplot) [false]
--writePcap
Write results in pcapfile [false]
--writeFlowMonitor
Enable Flow Monitor and write their results [false]

Definition in file adaptive-red-tests.cc.

Function Documentation

◆ BuildAppsTest()

void BuildAppsTest ( uint32_t  test)

Setup the apps.

Parameters
testThe test number.

Definition at line 136 of file adaptive-red-tests.cc.

◆ CheckQueueDiscSize()

void CheckQueueDiscSize ( Ptr< QueueDisc queue)

Check the queue disc size and write its stats to the output files.

Parameters
queueThe queue to check.

Definition at line 111 of file adaptive-red-tests.cc.

References avgQueueDiscSize, CheckQueueDiscSize(), checkTimes, filePlotQueueDisc, filePlotQueueDiscAvg, ns3::QueueDisc::GetCurrentSize(), ns3::Time::GetSeconds(), ns3::QueueSize::GetValue(), ns3::Now(), and ns3::Seconds().

Referenced by CheckQueueDiscSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ avgQueueDiscSize

double avgQueueDiscSize

Average QueueDisc size.

Definition at line 80 of file adaptive-red-tests.cc.

Referenced by CheckQueueDiscSize().

◆ checkTimes

uint32_t checkTimes

Number of times the queues have been checked.

Definition at line 79 of file adaptive-red-tests.cc.

Referenced by CheckQueueDiscSize().

◆ client_start_time

double client_start_time

Client start time.

Definition at line 87 of file adaptive-red-tests.cc.

◆ client_stop_time

double client_stop_time

Client stop time.

Definition at line 88 of file adaptive-red-tests.cc.

◆ filePlotQueueDisc

std::stringstream filePlotQueueDisc

Output file name for queue disc size.

Definition at line 102 of file adaptive-red-tests.cc.

Referenced by CheckQueueDiscSize().

◆ filePlotQueueDiscAvg

std::stringstream filePlotQueueDiscAvg

Output file name for queue disc average.

Definition at line 103 of file adaptive-red-tests.cc.

Referenced by CheckQueueDiscSize().

◆ global_start_time

double global_start_time

Global start time.

Definition at line 83 of file adaptive-red-tests.cc.

◆ global_stop_time

double global_stop_time

Global stop time.

Definition at line 84 of file adaptive-red-tests.cc.

◆ i0i2

IPv4 interface container i0 + i2.

Definition at line 96 of file adaptive-red-tests.cc.

◆ i1i2

IPv4 interface container i1 + i2.

Definition at line 97 of file adaptive-red-tests.cc.

◆ i2i3

IPv4 interface container i2 + i3.

Definition at line 98 of file adaptive-red-tests.cc.

◆ i3i4

IPv4 interface container i3 + i4.

Definition at line 99 of file adaptive-red-tests.cc.

◆ i3i5

IPv4 interface container i3 + i5.

Definition at line 100 of file adaptive-red-tests.cc.

◆ n0n2

Nodecontainer n0 + n2.

Definition at line 90 of file adaptive-red-tests.cc.

Referenced by Ipv4DynamicGlobalRoutingTestCase::DoRun().

◆ n1n2

◆ n2n3

Nodecontainer n2 + n3.

Definition at line 92 of file adaptive-red-tests.cc.

◆ n3n4

Nodecontainer n3 + n4.

Definition at line 93 of file adaptive-red-tests.cc.

◆ n3n5

Nodecontainer n3 + n5.

Definition at line 94 of file adaptive-red-tests.cc.

◆ sink_start_time

double sink_start_time

Sink start time.

Definition at line 85 of file adaptive-red-tests.cc.

◆ sink_stop_time

double sink_stop_time

Sink stop time.

Definition at line 86 of file adaptive-red-tests.cc.