A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
dctcp-example.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-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 <iomanip>
#include <iostream>
+ Include dependency graph for dctcp-example.cc:

Go to the source code of this file.

Functions

void CheckT1QueueSize (Ptr< QueueDisc > queue)
 
void CheckT2QueueSize (Ptr< QueueDisc > queue)
 
void InitializeCounters ()
 
void PrintFairness (Time measurementWindow)
 
void PrintProgress (Time interval)
 
void PrintThroughput (Time measurementWindow)
 
void TraceS1R1Sink (std::size_t index, Ptr< const Packet > p, const Address &a)
 
void TraceS2R2Sink (std::size_t index, Ptr< const Packet > p, const Address &a)
 
void TraceS3R1Sink (std::size_t index, Ptr< const Packet > p, const Address &a)
 

Variables

std::ofstream fairnessIndex
 
std::stringstream filePlotQueue1
 
std::stringstream filePlotQueue2
 
std::vector< uint64_t > rxS1R1Bytes
 
std::ofstream rxS1R1Throughput
 
std::vector< uint64_t > rxS2R2Bytes
 
std::ofstream rxS2R2Throughput
 
std::vector< uint64_t > rxS3R1Bytes
 
std::ofstream rxS3R1Throughput
 
std::ofstream t1QueueLength
 
std::ofstream t2QueueLength
 

Function Documentation

◆ CheckT1QueueSize()

void CheckT1QueueSize ( Ptr< QueueDisc > queue)

Definition at line 243 of file dctcp-example.cc.

References CheckT1QueueSize(), ns3::Time::GetMicroSeconds(), ns3::Time::GetSeconds(), ns3::MilliSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), ns3::Seconds(), and t1QueueLength.

Referenced by CheckT1QueueSize().

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

◆ CheckT2QueueSize()

void CheckT2QueueSize ( Ptr< QueueDisc > queue)

Definition at line 256 of file dctcp-example.cc.

References CheckT2QueueSize(), ns3::Time::GetMicroSeconds(), ns3::Time::GetSeconds(), ns3::MilliSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), ns3::Seconds(), and t2QueueLength.

Referenced by CheckT2QueueSize().

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

◆ InitializeCounters()

void InitializeCounters ( )

Definition at line 133 of file dctcp-example.cc.

References rxS1R1Bytes, rxS2R2Bytes, and rxS3R1Bytes.

◆ PrintFairness()

void PrintFairness ( Time measurementWindow)

Definition at line 174 of file dctcp-example.cc.

References fairnessIndex, ns3::Time::GetSeconds(), rxS1R1Bytes, rxS2R2Bytes, and rxS3R1Bytes.

+ Here is the call graph for this function:

◆ PrintProgress()

void PrintProgress ( Time interval)

Definition at line 107 of file dctcp-example.cc.

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), PrintProgress(), and ns3::Simulator::Schedule().

Referenced by PrintProgress().

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

◆ PrintThroughput()

void PrintThroughput ( Time measurementWindow)

Definition at line 150 of file dctcp-example.cc.

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), rxS1R1Bytes, rxS1R1Throughput, rxS2R2Bytes, rxS2R2Throughput, rxS3R1Bytes, and rxS3R1Throughput.

+ Here is the call graph for this function:

◆ TraceS1R1Sink()

void TraceS1R1Sink ( std::size_t index,
Ptr< const Packet > p,
const Address & a )

Definition at line 115 of file dctcp-example.cc.

References rxS1R1Bytes.

◆ TraceS2R2Sink()

void TraceS2R2Sink ( std::size_t index,
Ptr< const Packet > p,
const Address & a )

Definition at line 121 of file dctcp-example.cc.

References rxS2R2Bytes.

◆ TraceS3R1Sink()

void TraceS3R1Sink ( std::size_t index,
Ptr< const Packet > p,
const Address & a )

Definition at line 127 of file dctcp-example.cc.

References rxS3R1Bytes.

Variable Documentation

◆ fairnessIndex

std::ofstream fairnessIndex

Definition at line 99 of file dctcp-example.cc.

Referenced by PrintFairness().

◆ filePlotQueue1

std::stringstream filePlotQueue1

Definition at line 94 of file dctcp-example.cc.

◆ filePlotQueue2

std::stringstream filePlotQueue2

Definition at line 95 of file dctcp-example.cc.

◆ rxS1R1Bytes

std::vector<uint64_t> rxS1R1Bytes

◆ rxS1R1Throughput

std::ofstream rxS1R1Throughput

Definition at line 96 of file dctcp-example.cc.

Referenced by PrintThroughput().

◆ rxS2R2Bytes

std::vector<uint64_t> rxS2R2Bytes

◆ rxS2R2Throughput

std::ofstream rxS2R2Throughput

Definition at line 97 of file dctcp-example.cc.

Referenced by PrintThroughput().

◆ rxS3R1Bytes

std::vector<uint64_t> rxS3R1Bytes

◆ rxS3R1Throughput

std::ofstream rxS3R1Throughput

Definition at line 98 of file dctcp-example.cc.

Referenced by PrintThroughput().

◆ t1QueueLength

std::ofstream t1QueueLength

Definition at line 100 of file dctcp-example.cc.

Referenced by CheckT1QueueSize().

◆ t2QueueLength

std::ofstream t2QueueLength

Definition at line 101 of file dctcp-example.cc.

Referenced by CheckT2QueueSize().