#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 448 of file fqcodel-l4s-example.cc.
References first::address, ns3::Time::GetMicroSeconds(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::PeekPointer().
void ScheduleN0PacketSinkConnection | ( | ) |
Definition at line 420 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeCallback(), and TraceN0Rx().
void ScheduleN0TcpCwndTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 406 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN0Cwnd().
void ScheduleN0TcpRttTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 413 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN0Rtt().
void ScheduleN1PacketSinkConnection | ( | ) |
Definition at line 441 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeCallback(), and TraceN1Rx().
void ScheduleN1TcpCwndTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 427 of file fqcodel-l4s-example.cc.
References ns3::Config::ConnectWithoutContext(), ns3::MakeBoundCallback(), and TraceN1Cwnd().
void ScheduleN1TcpRttTraceConnection | ( | std::ofstream * | ofStream | ) |
Definition at line 434 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 344 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 366 of file fqcodel-l4s-example.cc.
References g_dropsObserved, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().
void TraceMark | ( | std::ofstream * | ofStream, |
Ptr< const QueueDiscItem > | item, | ||
const char * | reason | ||
) |
Definition at line 351 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 377 of file fqcodel-l4s-example.cc.
References g_marksObserved, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().
void TraceN0Cwnd | ( | std::ofstream * | ofStream, |
uint32_t | oldCwnd, | ||
uint32_t | newCwnd | ||
) |
Definition at line 295 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN0TcpCwndTraceConnection().
Definition at line 313 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN0TcpRttTraceConnection().
Definition at line 332 of file fqcodel-l4s-example.cc.
References g_n0BytesReceived, and ns3::Packet::GetSize().
Referenced by ScheduleN0PacketSinkConnection().
void TraceN0Throughput | ( | std::ofstream * | ofStream, |
Time | throughputInterval | ||
) |
Definition at line 388 of file fqcodel-l4s-example.cc.
References g_n0BytesReceived, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().
void TraceN1Cwnd | ( | std::ofstream * | ofStream, |
uint32_t | oldCwnd, | ||
uint32_t | newCwnd | ||
) |
Definition at line 304 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN1TcpCwndTraceConnection().
Definition at line 319 of file fqcodel-l4s-example.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ScheduleN1TcpRttTraceConnection().
Definition at line 338 of file fqcodel-l4s-example.cc.
References g_n1BytesReceived, and ns3::Packet::GetSize().
Referenced by ScheduleN1PacketSinkConnection().
void TraceN1Throughput | ( | std::ofstream * | ofStream, |
Time | throughputInterval | ||
) |
Definition at line 397 of file fqcodel-l4s-example.cc.
References g_n1BytesReceived, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().
void TracePingRtt | ( | std::ofstream * | ofStream, |
uint16_t | seqNo, | ||
Time | rtt | ||
) |
Definition at line 325 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 358 of file fqcodel-l4s-example.cc.
References ns3::DataRate::GetBitRate(), ns3::Time::GetSeconds(), and ns3::Simulator::Now().
double avgQueueDiscSize |
Definition at line 287 of file fqcodel-l4s-example.cc.
uint32_t checkTimes |
Definition at line 286 of file fqcodel-l4s-example.cc.
uint32_t g_dropsObserved = 0 |
Definition at line 292 of file fqcodel-l4s-example.cc.
Referenced by TraceDrop(), and TraceDropsFrequency().
uint32_t g_marksObserved = 0 |
Definition at line 291 of file fqcodel-l4s-example.cc.
Referenced by TraceMark(), and TraceMarksFrequency().
uint32_t g_n0BytesReceived = 0 |
Definition at line 289 of file fqcodel-l4s-example.cc.
Referenced by TraceN0Rx(), and TraceN0Throughput().
uint32_t g_n1BytesReceived = 0 |
Definition at line 290 of file fqcodel-l4s-example.cc.
Referenced by TraceN1Rx(), and TraceN1Throughput().