#include <iostream>
#include <fstream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/config-store-module.h"
#include "ns3/error-model.h"
#include "ns3/tcp-header.h"
#include "ns3/udp-header.h"
#include "ns3/enum.h"
#include "ns3/event-id.h"
#include "ns3/ipv4-global-routing-helper.h"
Go to the source code of this file.
Functions | |
void | CreateBulkFlow (AddressValue remoteAddress, Ptr< Node > sender, uint32_t pktSize, float stopTime) |
void | CreateOnOffFlow (AddressValue remoteAddress, Ptr< Node > sender, float stopTime) |
static void | CwndTracer (Ptr< OutputStreamWrapper >stream, uint32_t oldval, uint32_t newval) |
static void | DroppingStateTracer (Ptr< OutputStreamWrapper >stream, bool oldVal, bool newVal) |
static void | EveryDropTracer (Ptr< OutputStreamWrapper >stream, Ptr< const Packet > p) |
int | main (int argc, char *argv[]) |
static void | QueueLengthTracer (Ptr< OutputStreamWrapper >stream, uint32_t oldval, uint32_t newval) |
static void | SojournTracer (Ptr< OutputStreamWrapper >stream, Time oldval, Time newval) |
static void | TraceCwnd (std::string cwndTrFileName) |
static void | TraceDroppingState (std::string dropStateTrFileName) |
static void | TraceEveryDrop (std::string everyDropTrFileName) |
static void | TraceQueueLength (std::string queueLengthTrFileName) |
static void | TraceSojourn (std::string sojournTrFileName) |
void CreateBulkFlow | ( | AddressValue | remoteAddress, |
Ptr< Node > | sender, | ||
uint32_t | pktSize, | ||
float | stopTime | ||
) |
Definition at line 190 of file codel-vs-droptail-asymmetric.cc.
References ns3::BulkSendHelper::Install(), ns3::Seconds(), ns3::BulkSendHelper::SetAttribute(), ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Referenced by main().
void CreateOnOffFlow | ( | AddressValue | remoteAddress, |
Ptr< Node > | sender, | ||
float | stopTime | ||
) |
Definition at line 202 of file codel-vs-droptail-asymmetric.cc.
References ns3::OnOffHelper::Install(), ns3::Seconds(), ns3::OnOffHelper::SetAttribute(), ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Referenced by main().
|
static |
Definition at line 71 of file codel-vs-droptail-asymmetric.cc.
References ns3::OutputStreamWrapper::GetStream().
Referenced by TraceCwnd().
|
static |
Definition at line 159 of file codel-vs-droptail-asymmetric.cc.
References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by TraceDroppingState().
|
static |
Definition at line 137 of file codel-vs-droptail-asymmetric.cc.
References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().
Referenced by TraceEveryDrop().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 212 of file codel-vs-droptail-asymmetric.cc.
References ns3::Names::Add(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::GlobalValue::Bind(), ns3::ConfigStore::ConfigureAttributes(), ns3::ConfigStore::ConfigureDefaults(), ns3::NodeContainer::Create(), CreateBulkFlow(), CreateOnOffFlow(), ns3::Simulator::Destroy(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::PacketSinkHelper::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::InstallAll(), ns3::LOG_LEVEL_FUNCTION, ns3::LogComponentEnable(), first::nodes, NS_LOG_INFO, ns3::CommandLine::Parse(), ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables(), ns3::Queue::QUEUE_MODE_BYTES, ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), ns3::ObjectBase::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), first::stack, ns3::ApplicationContainer::Start(), startTime, ns3::Simulator::Stop(), ns3::ApplicationContainer::Stop(), stopTime, TraceCwnd(), TraceDroppingState(), TraceEveryDrop(), TraceQueueLength(), and TraceSojourn().
|
static |
Definition at line 115 of file codel-vs-droptail-asymmetric.cc.
References ns3::OutputStreamWrapper::GetStream().
Referenced by TraceQueueLength().
|
static |
Definition at line 93 of file codel-vs-droptail-asymmetric.cc.
References ns3::OutputStreamWrapper::GetStream().
Referenced by TraceSojourn().
|
static |
Definition at line 77 of file codel-vs-droptail-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
Referenced by main().
|
static |
Definition at line 174 of file codel-vs-droptail-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), DroppingStateTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
Referenced by main().
|
static |
Definition at line 143 of file codel-vs-droptail-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), EveryDropTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
Referenced by main().
|
static |
Definition at line 121 of file codel-vs-droptail-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeBoundCallback(), NS_LOG_DEBUG, and QueueLengthTracer().
Referenced by main().
|
static |
Definition at line 99 of file codel-vs-droptail-asymmetric.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeBoundCallback(), NS_LOG_DEBUG, and SojournTracer().
Referenced by main().