A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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
 
std::ofstream queueSize
 
std::ofstream throughput
 

Function Documentation

◆ CheckQueueSize()

void CheckQueueSize ( Ptr< QueueDisc > qd)

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

References CheckQueueSize(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), queueSize, ns3::Simulator::Schedule(), and ns3::Seconds().

Referenced by CheckQueueSize().

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

◆ CwndTracer()

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

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

References ns3::Time::GetSeconds(), 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 102 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)
static

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

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

Referenced by TraceThroughput().

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

Variable Documentation

◆ dir

◆ prev

◆ prevTime

◆ queueSize

◆ throughput