#include "ns3/applications-module.h"
#include "ns3/core-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"
#include <fstream>
#include <iostream>
#include <string>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
void | CheckQueueSize (Ptr< QueueDisc > queue) |
static void | CwndChange (uint32_t oldCwnd, uint32_t newCwnd) |
static void | DropAtQueue (Ptr< OutputStreamWrapper > stream, Ptr< const QueueDiscItem > item) |
void | InstallBulkSend (Ptr< Node > node, Ipv4Address address, uint16_t port, std::string socketFactory, uint32_t nodeId, uint32_t cwndWindow, Callback< void, uint32_t, uint32_t > CwndTrace) |
void | InstallPacketSink (Ptr< Node > node, uint16_t port, std::string socketFactory) |
void | TraceCwnd (uint32_t node, uint32_t cwndWindow, Callback< void, uint32_t, uint32_t > CwndTrace) |
Variables | |
std::string | dir = "results/" |
std::ofstream | fPlotCwnd |
std::ofstream | fPlotQueue |
uint32_t | segmentSize = 524 |
Time | stopTime = Seconds(60) |
Definition at line 60 of file tcp-linux-reno.cc.
References fPlotQueue, ns3::QueueDisc::GetCurrentSize(), ns3::Time::GetSeconds(), ns3::QueueSize::GetValue(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().
|
static |
Definition at line 71 of file tcp-linux-reno.cc.
References fPlotCwnd, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and segmentSize.
|
static |
Definition at line 78 of file tcp-linux-reno.cc.
References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().
void InstallBulkSend | ( | Ptr< Node > | node, |
Ipv4Address | address, | ||
uint16_t | port, | ||
std::string | socketFactory, | ||
uint32_t | nodeId, | ||
uint32_t | cwndWindow, | ||
Callback< void, uint32_t, uint32_t > | CwndTrace | ||
) |
Definition at line 95 of file tcp-linux-reno.cc.
References first::address, CwndTrace(), ns3::BulkSendHelper::Install(), port, ns3::Simulator::Schedule(), ns3::Seconds(), ns3::BulkSendHelper::SetAttribute(), ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), stopTime, and TraceCwnd().
Definition at line 113 of file tcp-linux-reno.cc.
References ns3::Ipv4Address::GetAny(), port, ns3::Seconds(), sink, ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), and stopTime.
void TraceCwnd | ( | uint32_t | node, |
uint32_t | cwndWindow, | ||
Callback< void, uint32_t, uint32_t > | CwndTrace | ||
) |
Definition at line 85 of file tcp-linux-reno.cc.
References ns3::Config::ConnectWithoutContext(), CwndTrace(), and nlohmann::to_string().
Referenced by InstallBulkSend().
std::string dir = "results/" |
Definition at line 51 of file tcp-linux-reno.cc.
std::ofstream fPlotCwnd |
Definition at line 56 of file tcp-linux-reno.cc.
Referenced by CwndChange().
std::ofstream fPlotQueue |
Definition at line 55 of file tcp-linux-reno.cc.
Referenced by CheckQueueSize().
uint32_t segmentSize = 524 |
Definition at line 53 of file tcp-linux-reno.cc.
Referenced by TcpPacingTestSuite::TcpPacingTestSuite(), ns3::TcpRateLinux::CalculateAppLimited(), CwndChange(), ns3::TcpGeneralTest::SetSegmentSize(), ns3::TcpTxBuffer::SetSegmentSize(), and TcpTxBufferTestCase::TestNextSeg().
Time stopTime = Seconds(60) |
Definition at line 52 of file tcp-linux-reno.cc.
Referenced by CreateBulkFlow(), CreateOnOffFlow(), LteRlcAmE2eTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), Ns3TcpCubicTestCase::DoRun(), ns3::AnimationInterface::EnableIpv4L3ProtocolCounters(), ns3::AnimationInterface::EnableIpv4RouteTracking(), ns3::AnimationInterface::EnableQueueCounters(), ns3::AnimationInterface::EnableWifiMacCounters(), ns3::AnimationInterface::EnableWifiPhyCounters(), experiment(), InstallBulkSend(), InstallPacketSink(), PingTestCase::SetSimulatorStopTime(), PingTestCase::SetStopTime(), and ns3::DataCalculator::Stop().