A Discrete-Event Network Simulator
API
queue-discs-benchmark.cc File Reference
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/traffic-control-module.h"
#include "ns3/flow-monitor-module.h"
+ Include dependency graph for queue-discs-benchmark.cc:

Go to the source code of this file.

Functions

void BytesInQueueTrace (Ptr< OutputStreamWrapper > stream, uint32_t oldVal, uint32_t newVal)
 
static void GoodputSampling (std::string fileName, ApplicationContainer app, Ptr< OutputStreamWrapper > stream, float period)
 
void LimitsTrace (Ptr< OutputStreamWrapper > stream, uint32_t oldVal, uint32_t newVal)
 
static void PingRtt (std::string context, Time rtt)
 

Detailed Description

Usage

$ ./waf –run "queue-discs-benchmark [Program Options]"

Program Options

–bandwidth
Bottleneck bandwidth [10Mbps]
–delay
Bottleneck delay [5ms]
–queueDiscType
Bottleneck queue disc type in {PfifoFast, ARED, CoDel, FqCoDel, PIE, prio} [PfifoFast]
–queueDiscSize
Bottleneck queue disc size in packets [1000]
–netdevicesQueueSize
Bottleneck netdevices queue size in packets [50]
–bql
Enable byte queue limits on bottleneck netdevices [false]
–flowsDatarate
Upload and download flows datarate [20Mbps]
–flowsPacketsSize
Upload and download flows packets sizes [1000]
–startTime
Simulation start time [0.1]
–simDuration
Simulation duration in seconds [60]
–samplingPeriod
Goodput sampling period in seconds [1]

Definition in file queue-discs-benchmark.cc.

Function Documentation

◆ BytesInQueueTrace()

void BytesInQueueTrace ( Ptr< OutputStreamWrapper stream,
uint32_t  oldVal,
uint32_t  newVal 
)

Definition at line 76 of file queue-discs-benchmark.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

+ Here is the call graph for this function:

◆ GoodputSampling()

static void GoodputSampling ( std::string  fileName,
ApplicationContainer  app,
Ptr< OutputStreamWrapper stream,
float  period 
)
static

◆ LimitsTrace()

void LimitsTrace ( Ptr< OutputStreamWrapper stream,
uint32_t  oldVal,
uint32_t  newVal 
)

Definition at line 70 of file queue-discs-benchmark.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

+ Here is the call graph for this function:

◆ PingRtt()

static void PingRtt ( std::string  context,
Time  rtt 
)
static

Definition at line 91 of file queue-discs-benchmark.cc.

References ns3::Time::GetMilliSeconds().

+ Here is the call graph for this function: