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

Go to the source code of this file.


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)


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

Function Documentation

◆ CheckQueueSize()

void CheckQueueSize ( Ptr< QueueDisc qd)

◆ CwndTracer()

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

Definition at line 95 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 

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

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), dir, and ns3::MakeBoundCallback().

+ Here is the call graph for this function:

◆ TraceThroughput()

static void TraceThroughput ( Ptr< FlowMonitor monitor)

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

References dir, ns3::FlowMonitor::GetFlowStats(), ns3::Time::GetSeconds(), ns3::Now(), prev, prevTime, ns3::Simulator::Schedule(), and ns3::Seconds().

+ Here is the call graph for this function:

Variable Documentation

◆ dir

◆ prev

◆ prevTime

Time prevTime = Seconds (0)