#include "ns3/applications-module.h"
#include "ns3/config-store.h"
#include "ns3/core-module.h"
#include "ns3/enum.h"
#include "ns3/error-model.h"
#include "ns3/event-id.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/tcp-header.h"
#include "ns3/traffic-control-module.h"
#include "ns3/udp-header.h"
#include <fstream>
#include <iostream>
#include <string>
Go to the source code of this file.
Functions | |
void | CreateBulkFlow (AddressValue remoteAddress, Ptr< Node > sender, uint32_t pktSize, float stopTime) |
Create a Bulk Flow application. | |
void | CreateOnOffFlow (AddressValue remoteAddress, Ptr< Node > sender, float stopTime) |
Create a On Off Flow application. | |
static void | CwndTracer (Ptr< OutputStreamWrapper > stream, uint32_t oldval, uint32_t newval) |
TCP Congestion window tracker. | |
static void | DroppingStateTracer (Ptr< OutputStreamWrapper > stream, bool oldVal, bool newVal) |
Traffic Control Dropping state trace. | |
static void | EveryDropTracer (Ptr< OutputStreamWrapper > stream, Ptr< const QueueDiscItem > item) |
Traffic control drop trace. | |
static void | QueueLengthTracer (Ptr< OutputStreamWrapper > stream, uint32_t oldval, uint32_t newval) |
Traffic Control Queue length tracker. | |
static void | SojournTracer (Ptr< OutputStreamWrapper > stream, Time newval) |
Traffic Control Sojourn tracker. | |
static void | TraceCwnd (std::string cwndTrFileName) |
Setup for TCP congestion window tracking. | |
static void | TraceDroppingState (std::string dropStateTrFileName) |
Setup for Traffic Control dropping tracking. | |
static void | TraceEveryDrop (std::string everyDropTrFileName) |
Setup for Traffic Control drop tracking. | |
static void | TraceQueueLength (std::string queueLengthTrFileName) |
Setup for Traffic Control Queue length tracking. | |
static void | TraceSojourn (std::string sojournTrFileName) |
Setup for Traffic Control Sojourn time tracking. | |
void CreateBulkFlow | ( | AddressValue | remoteAddress, |
Ptr< Node > | sender, | ||
uint32_t | pktSize, | ||
float | stopTime ) |
Create a Bulk Flow application.
remoteAddress | Remote address. |
sender | Sender node. |
pktSize | Packet size. |
stopTime | Stop time. |
Definition at line 256 of file codel-vs-pfifo-asymmetric.cc.
References ns3::ApplicationHelper::Install(), pktSize, ns3::Seconds(), ns3::ApplicationHelper::SetAttribute(), ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), and stopTime.
void CreateOnOffFlow | ( | AddressValue | remoteAddress, |
Ptr< Node > | sender, | ||
float | stopTime ) |
Create a On Off Flow application.
remoteAddress | Remote address. |
sender | Sender node. |
stopTime | Stop time. |
Definition at line 275 of file codel-vs-pfifo-asymmetric.cc.
References ns3::ApplicationHelper::Install(), ns3::Seconds(), ns3::ApplicationHelper::SetAttribute(), ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), and stopTime.
|
static |
TCP Congestion window tracker.
stream | The output stream. |
oldval | Old value. |
newval | New value. |
Definition at line 68 of file codel-vs-pfifo-asymmetric.cc.
Referenced by TraceCwnd().
|
static |
Traffic Control Dropping state trace.
stream | The output stream. |
oldVal | Old value. |
newVal | New value. |
Definition at line 210 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Time::GetSeconds(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by TraceDroppingState().
|
static |
Traffic control drop trace.
stream | The output stream. |
item | The dropped item. |
Definition at line 174 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by TraceEveryDrop().
|
static |
Traffic Control Queue length tracker.
stream | The output stream. |
oldval | Old value. |
newval | New value. |
Definition at line 139 of file codel-vs-pfifo-asymmetric.cc.
Referenced by TraceQueueLength().
|
static |
Traffic Control Sojourn tracker.
stream | The output stream. |
newval | New value. |
Definition at line 103 of file codel-vs-pfifo-asymmetric.cc.
Referenced by TraceSojourn().
|
static |
Setup for TCP congestion window tracking.
cwndTrFileName | Congestion window output file name. |
Definition at line 79 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
|
static |
Setup for Traffic Control dropping tracking.
dropStateTrFileName | TC drop state output file name. |
Definition at line 230 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), DroppingStateTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
|
static |
Setup for Traffic Control drop tracking.
everyDropTrFileName | TC drop output file name. |
Definition at line 185 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), EveryDropTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
|
static |
Setup for Traffic Control Queue length tracking.
queueLengthTrFileName | Queue length output file name. |
Definition at line 150 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeBoundCallback(), NS_LOG_DEBUG, and QueueLengthTracer().
|
static |
Setup for Traffic Control Sojourn time tracking.
sojournTrFileName | Sojourn time output file name. |
Definition at line 114 of file codel-vs-pfifo-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeBoundCallback(), NS_LOG_DEBUG, and SojournTracer().