A Discrete-Event Network Simulator
API
tcp-variants-comparison.cc File Reference
#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"
#include "ns3/traffic-control-module.h"
+ Include dependency graph for tcp-variants-comparison.cc:

Go to the source code of this file.

Functions

static void CwndTracer (uint32_t oldval, uint32_t newval)
 
static void InFlightTracer (uint32_t old, uint32_t inFlight)
 
static void NextRxTracer (SequenceNumber32 old, SequenceNumber32 nextRx)
 
static void NextTxTracer (SequenceNumber32 old, SequenceNumber32 nextTx)
 
static void RtoTracer (Time oldval, Time newval)
 
static void RttTracer (Time oldval, Time newval)
 
static void SsThreshTracer (uint32_t oldval, uint32_t newval)
 
static void TraceCwnd (std::string cwnd_tr_file_name)
 
static void TraceInFlight (std::string &in_flight_file_name)
 
static void TraceNextRx (std::string &next_rx_seq_file_name)
 
static void TraceNextTx (std::string &next_tx_seq_file_name)
 
static void TraceRto (std::string rto_tr_file_name)
 
static void TraceRtt (std::string rtt_tr_file_name)
 
static void TraceSsThresh (std::string ssthresh_tr_file_name)
 

Variables

Ptr< OutputStreamWrappercWndStream
 
uint32_t cWndValue
 
bool firstCwnd = true
 
bool firstRto = true
 
bool firstRtt = true
 
bool firstSshThr = true
 
Ptr< OutputStreamWrapperinFlightStream
 
Ptr< OutputStreamWrappernextRxStream
 
Ptr< OutputStreamWrappernextTxStream
 
Ptr< OutputStreamWrapperrtoStream
 
Ptr< OutputStreamWrapperrttStream
 
Ptr< OutputStreamWrapperssThreshStream
 
uint32_t ssThreshValue
 

Function Documentation

static void CwndTracer ( uint32_t  oldval,
uint32_t  newval 
)
static

Definition at line 74 of file tcp-variants-comparison.cc.

References cWndValue, firstCwnd, firstSshThr, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::Simulator::Now(), and ssThreshValue.

Referenced by TraceCwnd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void InFlightTracer ( uint32_t  old,
uint32_t  inFlight 
)
static

Definition at line 136 of file tcp-variants-comparison.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

Referenced by TraceInFlight().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void NextRxTracer ( SequenceNumber32  old,
SequenceNumber32  nextRx 
)
static

Definition at line 142 of file tcp-variants-comparison.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

Referenced by TraceNextRx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void NextTxTracer ( SequenceNumber32  old,
SequenceNumber32  nextTx 
)
static

Definition at line 130 of file tcp-variants-comparison.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

Referenced by TraceNextTx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void RtoTracer ( Time  oldval,
Time  newval 
)
static

Definition at line 119 of file tcp-variants-comparison.cc.

References firstRto, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

Referenced by TraceRto().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void RttTracer ( Time  oldval,
Time  newval 
)
static

Definition at line 108 of file tcp-variants-comparison.cc.

References firstRtt, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), and ns3::Simulator::Now().

Referenced by TraceRtt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SsThreshTracer ( uint32_t  oldval,
uint32_t  newval 
)
static

Definition at line 91 of file tcp-variants-comparison.cc.

References cWndValue, firstCwnd, firstSshThr, ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), ns3::Simulator::Now(), and ssThreshValue.

Referenced by TraceSsThresh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void TraceCwnd ( std::string  cwnd_tr_file_name)
static

Definition at line 148 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), and ns3::MakeCallback().

+ Here is the call graph for this function:

static void TraceInFlight ( std::string &  in_flight_file_name)
static

Definition at line 188 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), InFlightTracer(), and ns3::MakeCallback().

+ Here is the call graph for this function:

static void TraceNextRx ( std::string &  next_rx_seq_file_name)
static

Definition at line 197 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), and NextRxTracer().

+ Here is the call graph for this function:

static void TraceNextTx ( std::string &  next_tx_seq_file_name)
static

Definition at line 180 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), and NextTxTracer().

+ Here is the call graph for this function:

static void TraceRto ( std::string  rto_tr_file_name)
static

Definition at line 172 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), and RtoTracer().

+ Here is the call graph for this function:

static void TraceRtt ( std::string  rtt_tr_file_name)
static

Definition at line 164 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), and RttTracer().

+ Here is the call graph for this function:

static void TraceSsThresh ( std::string  ssthresh_tr_file_name)
static

Definition at line 156 of file tcp-variants-comparison.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), and SsThreshTracer().

+ Here is the call graph for this function:

Variable Documentation

Ptr<OutputStreamWrapper> cWndStream

Definition at line 62 of file tcp-variants-comparison.cc.

uint32_t cWndValue

Definition at line 69 of file tcp-variants-comparison.cc.

Referenced by CwndTracer(), and SsThreshTracer().

bool firstCwnd = true

Definition at line 58 of file tcp-variants-comparison.cc.

Referenced by CwndTracer(), and SsThreshTracer().

bool firstRto = true

Definition at line 61 of file tcp-variants-comparison.cc.

Referenced by RtoTracer().

bool firstRtt = true

Definition at line 60 of file tcp-variants-comparison.cc.

Referenced by RttTracer().

bool firstSshThr = true

Definition at line 59 of file tcp-variants-comparison.cc.

Referenced by CwndTracer(), and SsThreshTracer().

Ptr<OutputStreamWrapper> inFlightStream

Definition at line 68 of file tcp-variants-comparison.cc.

Ptr<OutputStreamWrapper> nextRxStream

Definition at line 67 of file tcp-variants-comparison.cc.

Ptr<OutputStreamWrapper> nextTxStream

Definition at line 66 of file tcp-variants-comparison.cc.

Definition at line 65 of file tcp-variants-comparison.cc.

Definition at line 64 of file tcp-variants-comparison.cc.

Ptr<OutputStreamWrapper> ssThreshStream

Definition at line 63 of file tcp-variants-comparison.cc.

uint32_t ssThreshValue

Definition at line 70 of file tcp-variants-comparison.cc.

Referenced by CwndTracer(), and SsThreshTracer().