#include "ns3/applications-module.h"#include "ns3/core-module.h"#include "ns3/enum.h"#include "ns3/error-model.h"#include "ns3/event-id.h"#include "ns3/flow-monitor-helper.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 | |
| static void | CwndTracer (std::string context, uint32_t oldval, uint32_t newval) | 
| Congestion window tracer. | |
| static uint32_t | GetNodeIdFromContext (std::string context) | 
| Get the Node Id From Context. | |
| static void | InFlightTracer (std::string context, uint32_t old, uint32_t inFlight) | 
| In-flight tracer. | |
| static void | NextRxTracer (std::string context, SequenceNumber32 old, SequenceNumber32 nextRx) | 
| Next RX tracer. | |
| static void | NextTxTracer (std::string context, SequenceNumber32 old, SequenceNumber32 nextTx) | 
| Next TX tracer. | |
| static void | RtoTracer (std::string context, Time oldval, Time newval) | 
| RTO tracer. | |
| static void | RttTracer (std::string context, Time oldval, Time newval) | 
| RTT tracer. | |
| static void | SsThreshTracer (std::string context, uint32_t oldval, uint32_t newval) | 
| Slow start threshold tracer. | |
| static void | TraceCwnd (std::string cwnd_tr_file_name, uint32_t nodeId) | 
| Congestion window trace connection. | |
| static void | TraceInFlight (std::string &in_flight_file_name, uint32_t nodeId) | 
| In flight trace connection. | |
| static void | TraceNextRx (std::string &next_rx_seq_file_name, uint32_t nodeId) | 
| Next RX trace connection. | |
| static void | TraceNextTx (std::string &next_tx_seq_file_name, uint32_t nodeId) | 
| Next TX trace connection. | |
| static void | TraceRto (std::string rto_tr_file_name, uint32_t nodeId) | 
| RTO trace connection. | |
| static void | TraceRtt (std::string rtt_tr_file_name, uint32_t nodeId) | 
| RTT trace connection. | |
| static void | TraceSsThresh (std::string ssthresh_tr_file_name, uint32_t nodeId) | 
| Slow start threshold trace connection. | |
| Variables | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | cWndStream | 
| Congstion window output stream. | |
| static std::map< uint32_t, uint32_t > | cWndValue | 
| congestion window value. | |
| static std::map< uint32_t, bool > | firstCwnd | 
| First congestion window. | |
| static std::map< uint32_t, bool > | firstRto | 
| First RTO. | |
| static std::map< uint32_t, bool > | firstRtt | 
| First RTT. | |
| static std::map< uint32_t, bool > | firstSshThr | 
| First SlowStart threshold. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | inFlightStream | 
| In flight output stream. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | nextRxStream | 
| Next RX output stream. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | nextTxStream | 
| Next TX output stream. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | rtoStream | 
| RTO output stream. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | rttStream | 
| RTT output stream. | |
| static std::map< uint32_t, Ptr< OutputStreamWrapper > > | ssThreshStream | 
| SlowStart threshold output stream. | |
| static std::map< uint32_t, uint32_t > | ssThreshValue | 
| SlowStart threshold value. | |
$ ./ns3 run "tcp-variants-comparison [Program Options]"
--transport_prot  --error_p  --bandwidth  --delay  --access_bandwidth  --access_delay  --tracing  --prefix_name  --data  --mtu  --num_flows  --duration  --run  --flow_monitor  --pcap_tracing  --queue_disc_type  --sack  --recovery  Definition in file tcp-variants-comparison.cc.
Congestion window tracer.
| context | The context. | 
| oldval | Old value. | 
| newval | New value. | 
Definition at line 84 of file tcp-variants-comparison.cc.
References cWndStream, cWndValue, firstCwnd, firstSshThr, GetNodeIdFromContext(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), ssThreshStream, and ssThreshValue.
| 
 | static | 
Get the Node Id From Context.
| context | The context. | 
Definition at line 69 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), InFlightTracer(), NextRxTracer(), NextTxTracer(), RtoTracer(), RttTracer(), and SsThreshTracer().
In-flight tracer.
| context | The context. | 
| old | Old value. | 
| inFlight | In flight value. | 
Definition at line 197 of file tcp-variants-comparison.cc.
References GetNodeIdFromContext(), ns3::Time::GetSeconds(), inFlightStream, and ns3::Simulator::Now().
Referenced by TraceInFlight().
| 
 | static | 
Next RX tracer.
| context | The context. | 
| old | Old sequence number. | 
| nextRx | Next sequence number. | 
Definition at line 213 of file tcp-variants-comparison.cc.
References GetNodeIdFromContext(), ns3::Time::GetSeconds(), nextRxStream, and ns3::Simulator::Now().
Referenced by TraceNextRx().
| 
 | static | 
Next TX tracer.
| context | The context. | 
| old | Old sequence number. | 
| nextTx | Next sequence number. | 
Definition at line 181 of file tcp-variants-comparison.cc.
References GetNodeIdFromContext(), ns3::Time::GetSeconds(), nextTxStream, and ns3::Simulator::Now().
Referenced by TraceNextTx().
RTO tracer.
| context | The context. | 
| oldval | Old value. | 
| newval | New value. | 
Definition at line 160 of file tcp-variants-comparison.cc.
References firstRto, GetNodeIdFromContext(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), and rtoStream.
Referenced by TraceRto().
RTT tracer.
| context | The context. | 
| oldval | Old value. | 
| newval | New value. | 
Definition at line 139 of file tcp-variants-comparison.cc.
References firstRtt, GetNodeIdFromContext(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), and rttStream.
Referenced by TraceRtt().
Slow start threshold tracer.
| context | The context. | 
| oldval | Old value. | 
| newval | New value. | 
Definition at line 111 of file tcp-variants-comparison.cc.
References cWndStream, cWndValue, firstCwnd, firstSshThr, GetNodeIdFromContext(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), ssThreshStream, and ssThreshValue.
| 
 | static | 
Congestion window trace connection.
| cwnd_tr_file_name | Congestion window trace file name. | 
| nodeId | Node ID. | 
Definition at line 228 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), cWndStream, CwndTracer(), and ns3::MakeCallback().
| 
 | static | 
In flight trace connection.
| in_flight_file_name | In flight trace file name. | 
| nodeId | Node ID. | 
Definition at line 306 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), inFlightStream, InFlightTracer(), and ns3::MakeCallback().
| 
 | static | 
Next RX trace connection.
| next_rx_seq_file_name | Next RX trace file name. | 
| nodeId | Node ID. | 
Definition at line 322 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), nextRxStream, and NextRxTracer().
| 
 | static | 
Next TX trace connection.
| next_tx_seq_file_name | Next TX trace file name. | 
| nodeId | Node ID. | 
Definition at line 290 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), nextTxStream, and NextTxTracer().
| 
 | static | 
RTO trace connection.
| rto_tr_file_name | RTO trace file name. | 
| nodeId | Node ID. | 
Definition at line 275 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), rtoStream, and RtoTracer().
| 
 | static | 
RTT trace connection.
| rtt_tr_file_name | RTT trace file name. | 
| nodeId | Node ID. | 
Definition at line 260 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), rttStream, and RttTracer().
| 
 | static | 
Slow start threshold trace connection.
| ssthresh_tr_file_name | Slow start threshold trace file name. | 
| nodeId | Node ID. | 
Definition at line 244 of file tcp-variants-comparison.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::MakeCallback(), ssThreshStream, and SsThreshTracer().
| 
 | static | 
Congstion window output stream.
Definition at line 51 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), SsThreshTracer(), and TraceCwnd().
congestion window value.
Definition at line 59 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().
| 
 | static | 
First congestion window.
Definition at line 47 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().
| 
 | static | 
| 
 | static | 
| 
 | static | 
First SlowStart threshold.
Definition at line 48 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().
| 
 | static | 
In flight output stream.
Definition at line 58 of file tcp-variants-comparison.cc.
Referenced by InFlightTracer(), and TraceInFlight().
| 
 | static | 
Next RX output stream.
Definition at line 57 of file tcp-variants-comparison.cc.
Referenced by NextRxTracer(), and TraceNextRx().
| 
 | static | 
Next TX output stream.
Definition at line 56 of file tcp-variants-comparison.cc.
Referenced by NextTxTracer(), and TraceNextTx().
| 
 | static | 
RTO output stream.
Definition at line 55 of file tcp-variants-comparison.cc.
Referenced by RtoTracer(), and TraceRto().
| 
 | static | 
RTT output stream.
Definition at line 54 of file tcp-variants-comparison.cc.
Referenced by RttTracer(), and TraceRtt().
| 
 | static | 
SlowStart threshold output stream.
Definition at line 53 of file tcp-variants-comparison.cc.
SlowStart threshold value.
Definition at line 60 of file tcp-variants-comparison.cc.
Referenced by CwndTracer(), and SsThreshTracer().