#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>
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 |
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().
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().
void InitializeCounters | ( | ) |
Definition at line 133 of file dctcp-example.cc.
References rxS1R1Bytes, rxS2R2Bytes, and rxS3R1Bytes.
void PrintFairness | ( | Time | measurementWindow | ) |
Definition at line 174 of file dctcp-example.cc.
References fairnessIndex, ns3::Time::GetSeconds(), rxS1R1Bytes, rxS2R2Bytes, and rxS3R1Bytes.
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().
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.
Definition at line 115 of file dctcp-example.cc.
References rxS1R1Bytes.
Definition at line 121 of file dctcp-example.cc.
References rxS2R2Bytes.
Definition at line 127 of file dctcp-example.cc.
References rxS3R1Bytes.
std::ofstream fairnessIndex |
Definition at line 99 of file dctcp-example.cc.
Referenced by PrintFairness().
std::stringstream filePlotQueue1 |
Definition at line 94 of file dctcp-example.cc.
std::stringstream filePlotQueue2 |
Definition at line 95 of file dctcp-example.cc.
std::vector<uint64_t> rxS1R1Bytes |
Definition at line 102 of file dctcp-example.cc.
Referenced by InitializeCounters(), PrintFairness(), PrintThroughput(), and TraceS1R1Sink().
std::ofstream rxS1R1Throughput |
Definition at line 96 of file dctcp-example.cc.
Referenced by PrintThroughput().
std::vector<uint64_t> rxS2R2Bytes |
Definition at line 103 of file dctcp-example.cc.
Referenced by InitializeCounters(), PrintFairness(), PrintThroughput(), and TraceS2R2Sink().
std::ofstream rxS2R2Throughput |
Definition at line 97 of file dctcp-example.cc.
Referenced by PrintThroughput().
std::vector<uint64_t> rxS3R1Bytes |
Definition at line 104 of file dctcp-example.cc.
Referenced by InitializeCounters(), PrintFairness(), PrintThroughput(), and TraceS3R1Sink().
std::ofstream rxS3R1Throughput |
Definition at line 98 of file dctcp-example.cc.
Referenced by PrintThroughput().
std::ofstream t1QueueLength |
Definition at line 100 of file dctcp-example.cc.
Referenced by CheckT1QueueSize().
std::ofstream t2QueueLength |
Definition at line 101 of file dctcp-example.cc.
Referenced by CheckT2QueueSize().