#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/error-model.h"
#include "ns3/tcp-header.h"
#include "ns3/udp-header.h"
#include "ns3/enum.h"
#include "ns3/event-id.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/ipv4-global-routing-helper.h"
Go to the source code of this file.
Functions | |
static void | CwndTracer (Ptr< OutputStreamWrapper >stream, uint32_t oldval, uint32_t newval) |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("TcpVariantsComparison") | |
static void | OutputTrace () |
static void | SsThreshTracer (Ptr< OutputStreamWrapper >stream, uint32_t oldval, uint32_t newval) |
static void | TraceCwnd (std::string cwnd_tr_file_name) |
static void | TraceSsThresh (std::string ssthresh_tr_file_name) |
Variables | |
Time | current = Time::FromInteger(3, Time::S) |
bool | first = true |
double | old_time = 0.0 |
EventId | output |
|
static |
Definition at line 70 of file tcp-variants-comparison.cc.
References ns3::EventId::Cancel(), current, first, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::EventId::IsExpired(), ns3::Simulator::Now(), old_time, output, OutputTrace(), and ns3::Simulator::Schedule().
Referenced by TraceCwnd().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 145 of file tcp-variants-comparison.cc.
References ns3::Ipv4InterfaceContainer::Add(), first::address, ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), first::devices, ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4All(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::RateErrorModel::ERROR_UNIT_PACKET, ns3::Ipv4InterfaceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::NodeContainer::GetN(), ns3::Header::GetSerializedSize(), ns3::TcpNewReno::GetTypeId(), ns3::TcpReno::GetTypeId(), ns3::TcpTahoe::GetTypeId(), ns3::TcpSocketFactory::GetTypeId(), ns3::TcpWestwood::GetTypeId(), ns3::PacketSinkHelper::Install(), ns3::BulkSendHelper::Install(), ns3::PointToPointHelper::Install(), ns3::FlowMonitorHelper::InstallAll(), ns3::InternetStackHelper::InstallAll(), first::interfaces, ns3::Ipv4AddressHelper::NewNetwork(), NS_LOG_DEBUG, NS_LOG_INFO, NS_LOG_LOGIC, ns3::CommandLine::Parse(), ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables(), port, ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::FlowMonitor::SerializeToXmlFile(), ns3::PacketSinkHelper::SetAttribute(), ns3::BulkSendHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::RateErrorModel::SetRandomVariable(), ns3::RateErrorModel::SetRate(), ns3::RngSeedManager::SetRun(), ns3::RngSeedManager::SetSeed(), ns3::RandomVariableStream::SetStream(), ns3::RateErrorModel::SetUnit(), first::stack, ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), ns3::ApplicationContainer::Stop(), TraceCwnd(), TraceSsThresh(), ns3::TcpWestwood::TUSTIN, and ns3::TcpWestwood::WESTWOODPLUS.
NS_LOG_COMPONENT_DEFINE | ( | "TcpVariantsComparison" | ) |
|
static |
Definition at line 63 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().
|
static |
Definition at line 92 of file tcp-variants-comparison.cc.
References ns3::EventId::Cancel(), current, first, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::EventId::IsExpired(), ns3::Simulator::Now(), old_time, output, OutputTrace(), and ns3::Simulator::Schedule().
Referenced by TraceSsThresh().
|
static |
Definition at line 114 of file tcp-variants-comparison.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.
Referenced by main().
|
static |
Definition at line 130 of file tcp-variants-comparison.cc.
References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeBoundCallback(), NS_LOG_DEBUG, and SsThreshTracer().
Referenced by main().
Time current = Time::FromInteger(3, Time::S) |
Definition at line 59 of file tcp-variants-comparison.cc.
Referenced by ns3::ModelCreator::Add(), ns3::ModelTypeidCreator::Add(), ns3::PacketMetadata::AddAtEnd(), ns3::TestCase::AddTestCase(), ns3::Object::AggregateObject(), ns3::InterferenceHelper::CalculatePer(), ns3::Object::CheckLoose(), ns3::TestCase::CreateDataDirFilename(), ns3::TestCase::CreateTempDirFilename(), CwndTracer(), ns3::Object::Dispose(), ns3::Object::DoDelete(), ns3::Object::DoGetObject(), ns3::ModelCreator::DoStartVisitArrayItem(), ns3::PacketMetadata::GetSerializedSize(), ns3::PacketMetadata::GetTotalSize(), ns3::Object::Initialize(), ns3::PacketMetadata::IsStateOk(), ns3::PacketMetadata::ReadFromRawU16(), ns3::PacketMetadata::ReadFromRawU32(), ns3::PacketMetadata::ReadFromRawU64(), ns3::PacketMetadata::ReadFromRawU8(), ns3::PacketMetadata::ReadItems(), ns3::PacketMetadata::RemoveAtEnd(), ns3::PacketMetadata::RemoveAtStart(), ns3::PendingData::RemoveToSeq(), ns3::PacketMetadata::ReplaceTail(), ns3::TestCase::ReportTestFailure(), ns3::PacketMetadata::Serialize(), ns3::SimpleDeviceEnergyModel::SetCurrentA(), ns3::SystemPath::Split(), SsThreshTracer(), BasicEnergyUpdateTest::StateSwitchTest(), ns3::GrantedTimeWindowMpiInterface::TestSendComplete(), ns3::NullMessageMpiInterface::TestSendComplete(), ns3::EmpiricalVariableImpl::Validate(), ns3::EmpiricalRandomVariable::Validate(), ns3::PcapFileWrapper::Write(), and ns3::Object::~Object().
bool first = true |
Definition at line 60 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), Ipv4ListRoutingNegativeTestCase::DoRun(), Ipv6ListRoutingNegativeTestCase::DoRun(), Ipv4ListRoutingPositiveTestCase::DoRun(), Ipv6ListRoutingPositiveTestCase::DoRun(), ns3::operator<<(), ns3::Ipv4RawSocketImpl::RecvFrom(), ns3::Ipv6RawSocketImpl::RecvFrom(), SsThreshTracer(), and ns3::dot11s::HwmpRtableTest::TestPrecursorFind().
double old_time = 0.0 |
Definition at line 57 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().
EventId output |
Definition at line 58 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), ns3::Ipv4L3ProtocolTestCase::DoRun(), ns3::Ipv6L3ProtocolTestCase::DoRun(), ErrorModelSimple::DoRun(), BurstErrorModelSimple::DoRun(), main(), PrintPsrVsCollisionInterval(), and SsThreshTracer().