A Discrete-Event Network Simulator
API
tcp-bbr-example.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/flow-monitor-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 <filesystem>
+ Include dependency graph for tcp-bbr-example.cc:

Go to the source code of this file.

Functions

void CheckQueueSize (Ptr< QueueDisc > qd)
 
static void CwndTracer (Ptr< OutputStreamWrapper > stream, uint32_t oldval, uint32_t newval)
 
void TraceCwnd (uint32_t nodeId, uint32_t socketId)
 
static void TraceThroughput (Ptr< FlowMonitor > monitor)
 

Variables

std::string dir
 
uint32_t prev = 0
 
Time prevTime = Seconds(0)
 
std::ofstream queueSize
 
std::ofstream throughput
 

Function Documentation

◆ CheckQueueSize()

void CheckQueueSize ( Ptr< QueueDisc qd)

◆ CwndTracer()

static void CwndTracer ( Ptr< OutputStreamWrapper stream,
uint32_t  oldval,
uint32_t  newval 
)
static

Definition at line 104 of file tcp-bbr-example.cc.

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

Referenced by TraceCwnd().

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

◆ TraceCwnd()

void TraceCwnd ( uint32_t  nodeId,
uint32_t  socketId 
)

◆ TraceThroughput()

static void TraceThroughput ( Ptr< FlowMonitor monitor)
static

Definition at line 77 of file tcp-bbr-example.cc.

References ns3::Now(), prev, prevTime, ns3::Simulator::Schedule(), ns3::Seconds(), throughput, and ns3::Time::US.

+ Here is the call graph for this function:

Variable Documentation

◆ dir

◆ prev

◆ prevTime

Time prevTime = Seconds(0)

◆ queueSize

◆ throughput