#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/internet-apps-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"
Go to the source code of this file.
Functions | |
static void | PacketDequeue (std::ofstream *n0OfStream, std::ofstream *n1OfStream, Ptr< const QueueDiscItem > item) |
void | ScheduleN0PacketSinkConnection () |
void | ScheduleN0TcpCwndTraceConnection (std::ofstream *ofStream) |
void | ScheduleN0TcpRttTraceConnection (std::ofstream *ofStream) |
void | ScheduleN1PacketSinkConnection () |
void | ScheduleN1TcpCwndTraceConnection (std::ofstream *ofStream) |
void | ScheduleN1TcpRttTraceConnection (std::ofstream *ofStream) |
void | TraceDrop (std::ofstream *ofStream, Ptr< const QueueDiscItem > item) |
void | TraceDropsFrequency (std::ofstream *ofStream, Time dropsSamplingInterval) |
void | TraceMark (std::ofstream *ofStream, Ptr< const QueueDiscItem > item, const char *reason) |
void | TraceMarksFrequency (std::ofstream *ofStream, Time marksSamplingInterval) |
void | TraceN0Cwnd (std::ofstream *ofStream, uint32_t oldCwnd, uint32_t newCwnd) |
void | TraceN0Rtt (std::ofstream *ofStream, Time oldRtt, Time newRtt) |
void | TraceN0Rx (Ptr< const Packet > packet, const Address &address) |
void | TraceN0Throughput (std::ofstream *ofStream, Time throughputInterval) |
void | TraceN1Cwnd (std::ofstream *ofStream, uint32_t oldCwnd, uint32_t newCwnd) |
void | TraceN1Rtt (std::ofstream *ofStream, Time oldRtt, Time newRtt) |
void | TraceN1Rx (Ptr< const Packet > packet, const Address &address) |
void | TraceN1Throughput (std::ofstream *ofStream, Time throughputInterval) |
void | TracePingRtt (std::ofstream *ofStream, uint16_t seqNo, Time rtt) |
void | TraceQueueLength (std::ofstream *ofStream, DataRate linkRate, uint32_t oldVal, uint32_t newVal) |
Variables | |
double | avgQueueDiscSize |
uint32_t | checkTimes |
uint32_t | g_dropsObserved = 0 |
uint32_t | g_marksObserved = 0 |
uint32_t | g_n0BytesReceived = 0 |
uint32_t | g_n1BytesReceived = 0 |
|
static |
Definition at line 437 of file fqcodel-l4s-example.cc.
References ns3::Time::GetMicroSeconds(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::PeekPointer().
void ScheduleN0PacketSinkConnection | ( | ) |
Definition at line 409 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeCallback(), and TraceN0Rx().
void ScheduleN0TcpCwndTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 395 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN0Cwnd().
void ScheduleN0TcpRttTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 402 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN0Rtt().
void ScheduleN1PacketSinkConnection | ( | ) |
Definition at line 430 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeCallback(), and TraceN1Rx().
void ScheduleN1TcpCwndTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 416 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN1Cwnd().
void ScheduleN1TcpRttTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 423 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN1Rtt().
void TraceDrop | ( | std::ofstream * | ofStream, |
Ptr< const QueueDiscItem > | item ) |
Definition at line 333 of file fqcodel-l4s-example.cc.
References g_dropsObserved, ns3::Time::GetSeconds(), and ns3::Simulator::Now().
void TraceDropsFrequency | ( | std::ofstream * | ofStream, |
Time | dropsSamplingInterval ) |
Definition at line 355 of file fqcodel-l4s-example.cc.
References g_dropsObserved, ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and TraceDropsFrequency().
Referenced by TraceDropsFrequency().
void TraceMark | ( | std::ofstream * | ofStream, |
Ptr< const QueueDiscItem > | item, | ||
const char * | reason ) |
Definition at line 340 of file fqcodel-l4s-example.cc.
References g_marksObserved, ns3::Time::GetSeconds(), and ns3::Simulator::Now().
void TraceMarksFrequency | ( | std::ofstream * | ofStream, |
Time | marksSamplingInterval ) |
Definition at line 366 of file fqcodel-l4s-example.cc.
References g_marksObserved, ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and TraceMarksFrequency().
Referenced by TraceMarksFrequency().
Definition at line 284 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN0TcpCwndTraceConnection().
Definition at line 302 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN0TcpRttTraceConnection().
Definition at line 321 of file fqcodel-l4s-example.cc.
References g_n0BytesReceived.
Referenced by ScheduleN0PacketSinkConnection().
void TraceN0Throughput | ( | std::ofstream * | ofStream, |
Time | throughputInterval ) |
Definition at line 377 of file fqcodel-l4s-example.cc.
References g_n0BytesReceived, ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and TraceN0Throughput().
Referenced by TraceN0Throughput().
Definition at line 293 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN1TcpCwndTraceConnection().
Definition at line 308 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN1TcpRttTraceConnection().
Definition at line 327 of file fqcodel-l4s-example.cc.
References g_n1BytesReceived.
Referenced by ScheduleN1PacketSinkConnection().
void TraceN1Throughput | ( | std::ofstream * | ofStream, |
Time | throughputInterval ) |
Definition at line 386 of file fqcodel-l4s-example.cc.
References g_n1BytesReceived, ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and TraceN1Throughput().
Referenced by TraceN1Throughput().
void TracePingRtt | ( | std::ofstream * | ofStream, |
uint16_t | seqNo, | ||
Time | rtt ) |
Definition at line 314 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
void TraceQueueLength | ( | std::ofstream * | ofStream, |
DataRate | linkRate, | ||
uint32_t | oldVal, | ||
uint32_t | newVal ) |
Definition at line 347 of file fqcodel-l4s-example.cc.
References ns3::DataRate::GetBitRate(), ns3::Time::GetSeconds(), and ns3::Simulator::Now().
double avgQueueDiscSize |
Definition at line 276 of file fqcodel-l4s-example.cc.
uint32_t checkTimes |
Definition at line 275 of file fqcodel-l4s-example.cc.
uint32_t g_dropsObserved = 0 |
Definition at line 281 of file fqcodel-l4s-example.cc.
Referenced by TraceDrop(), and TraceDropsFrequency().
uint32_t g_marksObserved = 0 |
Definition at line 280 of file fqcodel-l4s-example.cc.
Referenced by TraceMark(), and TraceMarksFrequency().
uint32_t g_n0BytesReceived = 0 |
Definition at line 278 of file fqcodel-l4s-example.cc.
Referenced by TraceN0Rx(), and TraceN0Throughput().
uint32_t g_n1BytesReceived = 0 |
Definition at line 279 of file fqcodel-l4s-example.cc.
Referenced by TraceN1Rx(), and TraceN1Throughput().