A Discrete-Event Network Simulator
API
queue-discs-benchmark.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/traffic-control-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)
 Print the bytes in the queue. More...
 
static void GoodputSampling (ApplicationContainer app, Ptr< OutputStreamWrapper > stream, float period)
 Sample and print the queue goodput. More...
 
void LimitsTrace (Ptr< OutputStreamWrapper > stream, uint32_t oldVal, uint32_t newVal)
 Print the queue limits. More...
 
static void PingRtt (std::string context, uint16_t, Time rtt)
 Print the ping RTT. More...
 

Function Documentation

◆ BytesInQueueTrace()

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

Print the bytes in the queue.

Parameters
streamThe output stream.
oldValOld value.
newValNew value.

Definition at line 90 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 ( ApplicationContainer  app,
Ptr< OutputStreamWrapper stream,
float  period 
)
static

Sample and print the queue goodput.

Parameters
appThe Tx app.
streamThe output stream.
periodThe sampling period.

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

References openflow-switch::app, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().

+ Here is the call graph for this function:

◆ LimitsTrace()

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

Print the queue limits.

Parameters
streamThe output stream.
oldValOld value.
newValNew value.

Definition at line 77 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,
uint16_t  ,
Time  rtt 
)
static

Print the ping RTT.

Parameters
contextThe context.
rttThe RTT.

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

References ns3::Time::GetMilliSeconds().

+ Here is the call graph for this function: