Data structure that records the congestion state of a connection. More...
#include "tcp-socket-state.h"
Public Types | |
enum | EcnCodePoint_t { NotECT = 0 , Ect1 = 1 , Ect0 = 2 , CongExp = 3 } |
ECN code points. More... | |
enum | EcnMode_t { ClassicEcn , DctcpEcn } |
ECN Modes. More... | |
enum | EcnState_t { ECN_DISABLED = 0 , ECN_IDLE , ECN_CE_RCVD , ECN_SENDING_ECE , ECN_ECE_RCVD , ECN_CWR_SENT } |
Definition of the Ecn state machine. More... | |
enum | TcpCAEvent_t { CA_EVENT_TX_START , CA_EVENT_CWND_RESTART , CA_EVENT_COMPLETE_CWR , CA_EVENT_LOSS , CA_EVENT_ECN_NO_CE , CA_EVENT_ECN_IS_CE , CA_EVENT_DELAYED_ACK , CA_EVENT_NON_DELAYED_ACK } |
Congestion avoidance events. More... | |
enum | TcpCongState_t { CA_OPEN , CA_DISORDER , CA_CWR , CA_RECOVERY , CA_LOSS , CA_LAST_STATE } |
Definition of the Congestion state machine. More... | |
enum | UseEcn_t { Off = 0 , On = 1 , AcceptOnly = 2 } |
Parameter value related to ECN enable/disable functionality similar to sysctl for tcp_ecn. More... | |
Public Member Functions | |
TcpSocketState () | |
TcpSocketState Constructor. More... | |
TcpSocketState (const TcpSocketState &other) | |
Copy constructor. More... | |
uint32_t | GetCwndInSegments () const |
Get cwnd in segments rather than bytes. More... | |
uint32_t | GetSsThreshInSegments () const |
Get slow start thresh in segments rather than bytes. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Public Attributes | |
TracedValue< uint32_t > | m_bytesInFlight {0} |
Bytes in flight. More... | |
TracedValue< TcpCongState_t > | m_congState {CA_OPEN} |
State in the Congestion state machine. More... | |
TracedValue< uint32_t > | m_cWnd {0} |
Congestion window. More... | |
TracedValue< uint32_t > | m_cWndInfl |
Inflated congestion window trace (used only for backward compatibility purpose) More... | |
EcnMode_t | m_ecnMode {ClassicEcn} |
ECN mode. More... | |
TracedValue< EcnState_t > | m_ecnState |
Current ECN State, represented as combination of EcnState values. More... | |
EcnCodePoint_t | m_ectCodePoint {Ect0} |
ECT code point to use. More... | |
TracedValue< SequenceNumber32 > | m_highTxMark {0} |
Highest seqno ever sent, regardless of ReTx. More... | |
uint32_t | m_initialCWnd {0} |
Initial cWnd value. More... | |
uint32_t | m_initialSsThresh {0} |
Initial Slow Start Threshold value. More... | |
bool | m_isRetransDataAcked {false} |
Retransmitted data is ACKed if true. More... | |
uint32_t | m_lastAckedSackedBytes |
The number of bytes acked and sacked as indicated by the current ACK received. More... | |
SequenceNumber32 | m_lastAckedSeq {0} |
Last sequence ACKed. More... | |
TracedValue< Time > | m_lastRtt {Seconds(0.0)} |
Last RTT sample collected. More... | |
DataRate | m_maxPacingRate {0} |
Max Pacing rate. More... | |
Time | m_minRtt {Time::Max()} |
Minimum RTT observed throughout the connection. More... | |
TracedValue< SequenceNumber32 > | m_nextTxSequence |
Next seqnum to be sent (SND.NXT), ReTx pushes it back. More... | |
bool | m_paceInitialWindow {false} |
Enable/Disable pacing for the initial window. More... | |
bool | m_pacing {false} |
Pacing status. More... | |
uint16_t | m_pacingCaRatio {0} |
CA pacing ratio. More... | |
TracedValue< DataRate > | m_pacingRate {0} |
Current Pacing rate. More... | |
uint16_t | m_pacingSsRatio {0} |
SS pacing ratio. More... | |
uint32_t | m_rcvTimestampEchoReply {0} |
Sender Timestamp echoed by the receiver. More... | |
uint32_t | m_rcvTimestampValue {0} |
Receiver Timestamp value. More... | |
Ptr< TcpRxBuffer > | m_rxBuffer |
Rx buffer (reordering buffer) More... | |
uint32_t | m_segmentSize {0} |
Segment size. More... | |
Callback< void, uint8_t > | m_sendEmptyPacketCallback |
Callback to send an empty packet. More... | |
TracedValue< uint32_t > | m_ssThresh {0} |
Slow start threshold. More... | |
UseEcn_t | m_useEcn {Off} |
Socket ECN capability. More... | |
Static Public Attributes | |
static const char *const | EcnStateName [TcpSocketState::ECN_CWR_SENT+1] |
Literal names of ECN states for use in log messages. More... | |
static const char *const | TcpCongStateName [TcpSocketState::CA_LAST_STATE] |
Literal names of TCP states for use in log messages. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoDispose () |
Destructor implementation. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Data structure that records the congestion state of a connection.
In this data structure, basic information that should be passed between socket and the congestion control algorithm are saved. Through the code, it will be referred as Transmission Control Block (TCB), but there are some differences. In the RFCs, the TCB contains all the variables that defines a connection, while we preferred to maintain in this class only the values that should be exchanged between socket and other parts, like congestion control algorithms.
Definition at line 42 of file tcp-socket-state.h.
ECN code points.
Enumerator | |
---|---|
NotECT | Unmarkable. |
Ect1 | Markable. |
Ect0 | Markable. |
CongExp | Marked. |
Definition at line 125 of file tcp-socket-state.h.
ECN Modes.
Enumerator | |
---|---|
ClassicEcn | ECN functionality as described in RFC 3168. |
DctcpEcn | ECN functionality as described in RFC 8257. Note: this mode is specific to DCTCP. |
Definition at line 136 of file tcp-socket-state.h.
Definition of the Ecn state machine.
Enumerator | |
---|---|
ECN_DISABLED | ECN disabled traffic. |
ECN_IDLE | ECN is enabled but currently there is no action pertaining to ECE or CWR to be taken. |
ECN_CE_RCVD | Last packet received had CE bit set in IP header. |
ECN_SENDING_ECE | Receiver sends an ACK with ECE bit set in TCP header. |
ECN_ECE_RCVD | Last ACK received had ECE bit set in TCP header. |
ECN_CWR_SENT | Sender has reduced the congestion window, and sent a packet with CWR bit set in TCP header. This state is used for tracing. |
Definition at line 147 of file tcp-socket-state.h.
Congestion avoidance events.
Definition at line 97 of file tcp-socket-state.h.
Definition of the Congestion state machine.
The design of this state machine is taken from Linux v4.0, but it has been maintained in the Linux mainline from ages. It basically avoids to maintain a lot of boolean variables, and it allows to check the transitions from different algorithm in a cleaner way.
These states represent the situation from a congestion control point of view: in fact, apart the CA_OPEN state, the other states represent a situation in which there is a congestion, and different actions should be taken, depending on the case.
Definition at line 80 of file tcp-socket-state.h.
Parameter value related to ECN enable/disable functionality similar to sysctl for tcp_ecn.
Currently value 2 from https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt is not implemented.
Enumerator | |
---|---|
Off | Disable. |
On | Enable. |
AcceptOnly | Enable only when the peer endpoint is ECN capable. |
Definition at line 115 of file tcp-socket-state.h.
|
inline |
TcpSocketState Constructor.
Definition at line 55 of file tcp-socket-state.h.
ns3::TcpSocketState::TcpSocketState | ( | const TcpSocketState & | other | ) |
Copy constructor.
other | object to copy. |
Definition at line 100 of file tcp-socket-state.cc.
|
inline |
Get cwnd in segments rather than bytes.
Definition at line 228 of file tcp-socket-state.h.
References m_cWnd, and m_segmentSize.
Referenced by ns3::TcpHighSpeed::CongestionAvoidance(), ns3::TcpHybla::CongestionAvoidance(), ns3::TcpScalable::CongestionAvoidance(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpVeno::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), ns3::TcpBic::Update(), and ns3::TcpCubic::Update().
|
inline |
Get slow start thresh in segments rather than bytes.
Definition at line 238 of file tcp-socket-state.h.
References m_segmentSize, and m_ssThresh.
|
static |
Get the type ID.
Get the type ID.
Definition at line 25 of file tcp-socket-state.cc.
References m_bytesInFlight, m_congState, m_cWnd, m_cWndInfl, m_ecnState, m_highTxMark, m_lastRtt, m_maxPacingRate, m_nextTxSequence, m_paceInitialWindow, m_pacing, m_pacingCaRatio, m_pacingRate, m_pacingSsRatio, m_ssThresh, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), and ns3::TypeId::SetParent().
|
static |
Literal names of ECN states for use in log messages.
Definition at line 167 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::CompleteFork(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::ForwardUp(), ns3::TcpSocketBase::ForwardUp6(), ns3::TcpSocketBase::ProcessEstablished(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReceivedData(), ns3::TcpSocketBase::SendDataPacket(), ns3::TcpSocketCongestedRouter::SendDataPacket(), and ns3::TcpSocketBase::SetRcvBufSize().
TracedValue<uint32_t> ns3::TcpSocketState::m_bytesInFlight {0} |
Bytes in flight.
Definition at line 209 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::BytesInFlight(), ns3::TcpBbr::CheckDrain(), ns3::TcpBbr::CongestionStateSet(), ns3::TcpPrrRecovery::DoRecovery(), PrrRecoveryTest::DoRun(), GetTypeId(), ns3::TcpBbr::HandleProbeRTT(), ns3::TcpBbr::HandleRestartFromIdle(), ns3::TcpBbr::ModulateCwndForRecovery(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::Send(), ns3::TcpSocketBase::SendPendingData(), and ns3::TcpSocketBase::UpdatePacingRate().
TracedValue<TcpCongState_t> ns3::TcpSocketState::m_congState {CA_OPEN} |
State in the Congestion state machine.
Definition at line 187 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::DupAck(), ns3::TcpSocketBase::EnterCwr(), ns3::TcpSocketBase::EnterRecovery(), GetTypeId(), ns3::TcpHtcp::PktsAcked(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReTxTimeout(), ns3::TcpSocketBase::SendDataPacket(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpSocketBase::SendPendingData(), and ns3::TcpBbr::SetCwnd().
TracedValue<uint32_t> ns3::TcpSocketState::m_cWnd {0} |
Congestion window.
Definition at line 170 of file tcp-socket-state.h.
Referenced by ns3::TcpNewReno::CongestionAvoidance(), ns3::TcpLinuxReno::CongestionAvoidance(), ns3::TcpHighSpeed::CongestionAvoidance(), ns3::TcpHtcp::CongestionAvoidance(), ns3::TcpHybla::CongestionAvoidance(), ns3::TcpLedbat::CongestionAvoidance(), ns3::TcpScalable::CongestionAvoidance(), ns3::TcpBbr::CongestionStateSet(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpPrrRecovery::DoRecovery(), TcpBicIncrementTest::DoRun(), TcpBicDecrementTest::DoRun(), ClassicRecoveryTest::DoRun(), TcpHighSpeedIncrementTest::DoRun(), TcpHighSpeedDecrementTest::DoRun(), TcpHtcpIncrementTest::DoRun(), TcpHyblaIncrementTest::DoRun(), TcpIllinoisTest::DoRun(), ns3::TcpLpToNewReno::DoRun(), ns3::TcpLpInferenceTest1::DoRun(), ns3::TcpLpInferenceTest2::DoRun(), PrrRecoveryTest::DoRun(), TcpScalableIncrementTest::DoRun(), TcpScalableDecrementTest::DoRun(), TcpVegasTest::DoRun(), TcpVenoTest::DoRun(), TcpYeahIncrementTest::DoRun(), TcpYeahDecrementTest::DoRun(), ns3::TcpSocketBase::DupAck(), ns3::TcpSocketBase::EnterCwr(), ns3::TcpClassicRecovery::EnterRecovery(), ns3::TcpSocketBase::EnterRecovery(), TcpBicIncrementTest::ExecuteTest(), TcpBicDecrementTest::ExecuteTest(), TcpDctcpToLinuxReno::ExecuteTest(), TcpLedbatToNewReno::ExecuteTest(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpPrrRecovery::ExitRecovery(), GetCwndInSegments(), GetTypeId(), ns3::TcpCubic::HystartUpdate(), ns3::TcpBic::IncreaseWindow(), ns3::TcpNewReno::IncreaseWindow(), ns3::TcpCubic::IncreaseWindow(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpLedbat::IncreaseWindow(), ns3::TcpLinuxReno::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpVeno::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), ns3::TcpBbr::InitPacingRate(), ns3::TcpBbr::ModulateCwndForProbeRTT(), ns3::TcpBbr::ModulateCwndForRecovery(), TcpVenoTest::NewReno_CongestionAvoidance(), TcpVenoTest::NewReno_IncreaseWindow(), TcpVenoTest::NewReno_SlowStart(), ns3::TcpCubic::PktsAcked(), ns3::TcpLp::PktsAcked(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpBbr::RestoreCwnd(), ns3::TcpSocketBase::ReTxTimeout(), ns3::TcpSocketBase::Send(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpSocketBase::SendPendingData(), ns3::TcpBbr::SetCwnd(), ns3::TcpNewReno::SlowStart(), ns3::TcpLinuxReno::SlowStart(), ns3::TcpHybla::SlowStart(), TcpBicIncrementTest::Update(), ns3::TcpBbr::UpdateAckAggregation(), ns3::TcpSocketBase::UpdatePacingRate(), and ns3::TcpSocketBase::Window().
TracedValue<uint32_t> ns3::TcpSocketState::m_cWndInfl |
Inflated congestion window trace (used only for backward compatibility purpose)
Definition at line 171 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpPrrRecovery::DoRecovery(), ns3::TcpClassicRecovery::DoRecovery(), ClassicRecoveryTest::DoRun(), PrrRecoveryTest::DoRun(), ns3::TcpSocketBase::EnterCwr(), ns3::TcpClassicRecovery::EnterRecovery(), ns3::TcpPrrRecovery::ExitRecovery(), ns3::TcpClassicRecovery::ExitRecovery(), GetTypeId(), ns3::TcpSocketBase::ProcessAck(), and ns3::TcpSocketBase::ReTxTimeout().
EcnMode_t ns3::TcpSocketState::m_ecnMode {ClassicEcn} |
ECN mode.
Definition at line 214 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::AddSocketTags(), and ns3::TcpDctcp::Init().
TracedValue<EcnState_t> ns3::TcpSocketState::m_ecnState |
Current ECN State, represented as combination of EcnState values.
Definition at line 189 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::AddSocketTags(), ns3::TcpDctcp::CeState0to1(), ns3::TcpDctcp::CeState1to0(), ns3::TcpSocketBase::CompleteFork(), ns3::TcpSocketBase::DelAckTimeout(), ns3::TcpSocketBase::DoConnect(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::ForwardUp(), ns3::TcpSocketBase::ForwardUp6(), GetTypeId(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpDctcp::PktsAcked(), ns3::TcpSocketBase::ProcessEstablished(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReceivedData(), ns3::TcpSocketBase::SendDataPacket(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpSocketCongestedRouter::SendDataPacket(), and ns3::TcpSocketBase::SetRcvBufSize().
EcnCodePoint_t ns3::TcpSocketState::m_ectCodePoint {Ect0} |
ECT code point to use.
Definition at line 217 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::AddSocketTags(), ns3::TcpDctcp::Init(), and ns3::TcpSocketBase::PersistTimeout().
TracedValue<SequenceNumber32> ns3::TcpSocketState::m_highTxMark {0} |
Highest seqno ever sent, regardless of ReTx.
Definition at line 192 of file tcp-socket-state.h.
Referenced by ns3::TcpLedbat::CongestionAvoidance(), ns3::TcpSocketBase::EnterCwr(), ns3::TcpSocketBase::EnterRecovery(), TcpDctcpToLinuxReno::ExecuteTest(), TcpLedbatToNewReno::ExecuteTest(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpGeneralTest::GetHighestTxMark(), GetTypeId(), ns3::TcpSocketBase::IsPacingEnabled(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ProcessEstablished(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ProcessWait(), ns3::TcpSocketBase::ReTxTimeout(), ns3::TcpSocketBase::SendDataPacket(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpSocketCongestedRouter::SendDataPacket(), and ns3::TcpSocketBase::UnAckDataCount().
uint32_t ns3::TcpSocketState::m_initialCWnd {0} |
Initial cWnd value.
Definition at line 174 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::GetInitialCwnd(), ns3::TcpBbr::InFlight(), and ns3::TcpSocketBase::SetInitialCwnd().
uint32_t ns3::TcpSocketState::m_initialSsThresh {0} |
Initial Slow Start Threshold value.
Definition at line 175 of file tcp-socket-state.h.
Referenced by ns3::TcpBbr::CongestionStateSet(), ns3::TcpSocketBase::GetInitialSSThresh(), and ns3::TcpSocketBase::SetInitialSSThresh().
bool ns3::TcpSocketState::m_isRetransDataAcked {false} |
Retransmitted data is ACKed if true.
Definition at line 181 of file tcp-socket-state.h.
Referenced by ns3::TcpPrrRecovery::DoRecovery(), and ns3::TcpSocketBase::ReceivedAck().
uint32_t ns3::TcpSocketState::m_lastAckedSackedBytes |
The number of bytes acked and sacked as indicated by the current ACK received.
This is similar to acked_sacked variable in Linux
Definition at line 219 of file tcp-socket-state.h.
Referenced by ns3::TcpBbr::CongestionStateSet(), and ns3::TcpSocketBase::ReceivedAck().
SequenceNumber32 ns3::TcpSocketState::m_lastAckedSeq {0} |
Last sequence ACKed.
Definition at line 185 of file tcp-socket-state.h.
Referenced by ns3::TcpLedbat::CongestionAvoidance(), TcpIllinoisTest::DoRun(), TcpVegasTest::DoRun(), TcpYeahIncrementTest::DoRun(), TcpYeahDecrementTest::DoRun(), TcpDctcpToLinuxReno::ExecuteTest(), TcpLedbatToNewReno::ExecuteTest(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpCubic::IncreaseWindow(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), ns3::TcpDctcp::PktsAcked(), and ns3::TcpSocketBase::ProcessAck().
TracedValue<Time> ns3::TcpSocketState::m_lastRtt {Seconds(0.0)} |
Last RTT sample collected.
Definition at line 210 of file tcp-socket-state.h.
Referenced by ns3::TcpBbr::CongestionStateSet(), ns3::TcpSocketBase::EstimateRtt(), GetTypeId(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::UpdatePacingRate(), and ns3::TcpBbr::UpdateRTprop().
DataRate ns3::TcpSocketState::m_maxPacingRate {0} |
Max Pacing rate.
Definition at line 201 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::TcpSocketBase(), GetTypeId(), ns3::TcpBbr::SetPacingRate(), and ns3::TcpSocketBase::UpdatePacingRate().
Minimum RTT observed throughout the connection.
Definition at line 207 of file tcp-socket-state.h.
Referenced by TcpHyblaIncrementTest::DoRun(), TcpVegasTest::DoRun(), TcpVenoTest::DoRun(), TcpYeahIncrementTest::DoRun(), ns3::TcpSocketBase::EstimateRtt(), ns3::TcpBbr::InitPacingRate(), ns3::TcpHybla::PktsAcked(), ns3::TcpHybla::RecalcParam(), ns3::TcpSocketBase::ReceivedAck(), and ns3::TcpBbr::SetPacingRate().
TracedValue<SequenceNumber32> ns3::TcpSocketState::m_nextTxSequence |
Next seqnum to be sent (SND.NXT), ReTx pushes it back.
Definition at line 193 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::Close(), ns3::TcpIllinois::CongestionStateSet(), ns3::TcpYeah::CongestionStateSet(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::DoRetransmit(), TcpIllinoisTest::DoRun(), TcpVegasTest::DoRun(), TcpYeahIncrementTest::DoRun(), TcpYeahDecrementTest::DoRun(), ns3::TcpVegas::EnableVegas(), GetTypeId(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), ns3::TcpSocketBase::NewAck(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpDctcp::PktsAcked(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpDctcp::Reset(), ns3::TcpSocketBase::Send(), ns3::TcpSocketBase::SendEmptyPacket(), ns3::TcpSocketSmallAcks::SendEmptyPacket(), and ns3::TcpSocketBase::SendPendingData().
bool ns3::TcpSocketState::m_paceInitialWindow {false} |
Enable/Disable pacing for the initial window.
Definition at line 205 of file tcp-socket-state.h.
Referenced by GetTypeId(), ns3::TcpSocketBase::IsPacingEnabled(), and ns3::TcpSocketBase::SetPaceInitialWindow().
bool ns3::TcpSocketState::m_pacing {false} |
Pacing status.
Definition at line 200 of file tcp-socket-state.h.
Referenced by ns3::TcpBbrPacingEnableTest::ExecuteTest(), GetTypeId(), ns3::TcpBbr::InitPacingRate(), ns3::TcpSocketBase::IsPacingEnabled(), ns3::TcpSocketBase::SetPacingStatus(), and ns3::TcpSocketBase::UpdatePacingRate().
uint16_t ns3::TcpSocketState::m_pacingCaRatio {0} |
CA pacing ratio.
Definition at line 204 of file tcp-socket-state.h.
Referenced by GetTypeId(), and ns3::TcpSocketBase::UpdatePacingRate().
TracedValue<DataRate> ns3::TcpSocketState::m_pacingRate {0} |
Current Pacing rate.
Definition at line 202 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::TcpSocketBase(), GetTypeId(), ns3::TcpBbr::InitPacingRate(), ns3::TcpSocketBase::SendDataPacket(), ns3::TcpSocketBase::SendPendingData(), ns3::TcpBbr::SetPacingRate(), and ns3::TcpSocketBase::UpdatePacingRate().
uint16_t ns3::TcpSocketState::m_pacingSsRatio {0} |
SS pacing ratio.
Definition at line 203 of file tcp-socket-state.h.
Referenced by GetTypeId(), and ns3::TcpSocketBase::UpdatePacingRate().
uint32_t ns3::TcpSocketState::m_rcvTimestampEchoReply {0} |
Sender Timestamp echoed by the receiver.
Definition at line 197 of file tcp-socket-state.h.
Referenced by ns3::TcpLpToNewReno::DoRun(), ns3::TcpLpInferenceTest1::DoRun(), ns3::TcpLpInferenceTest2::DoRun(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpLp::OwdCalculator(), ns3::TcpLedbat::PktsAcked(), ns3::TcpLp::PktsAcked(), and ns3::TcpSocketBase::ProcessOptionTimestamp().
uint32_t ns3::TcpSocketState::m_rcvTimestampValue {0} |
Receiver Timestamp value.
Definition at line 196 of file tcp-socket-state.h.
Referenced by ns3::TcpLpToNewReno::DoRun(), ns3::TcpLpInferenceTest1::DoRun(), ns3::TcpLpInferenceTest2::DoRun(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpLp::OwdCalculator(), ns3::TcpLedbat::PktsAcked(), and ns3::TcpSocketBase::ProcessOptionTimestamp().
Ptr<TcpRxBuffer> ns3::TcpSocketState::m_rxBuffer |
Rx buffer (reordering buffer)
Definition at line 212 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::TcpSocketBase(), ns3::TcpSocketBase::AddOptionSack(), ns3::TcpSocketBase::AdvertisedWindowSize(), ns3::TcpSocketBase::CalculateWScale(), ns3::TcpDctcp::CeState0to1(), ns3::TcpDctcp::CeState1to0(), ns3::TcpSocketBase::Close(), ns3::TcpSocketBase::CompleteFork(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::GetRcvBufSize(), ns3::TcpSocketBase::GetRxAvailable(), ns3::TcpSocketBase::GetRxBuffer(), ns3::TcpSocketBase::IsValidTcpSegment(), ns3::TcpSocketBase::OutOfRange(), ns3::TcpSocketBase::PeerClose(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpSocketBase::ProcessClosing(), ns3::TcpSocketBase::ProcessEstablished(), ns3::TcpSocketBase::ProcessLastAck(), ns3::TcpSocketBase::ProcessOptionTimestamp(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ProcessWait(), ns3::TcpSocketBase::ReceivedData(), ns3::TcpSocketBase::Recv(), ns3::TcpSocketBase::SendDataPacket(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpSocketCongestedRouter::SendDataPacket(), ns3::TcpSocketBase::SendEmptyPacket(), ns3::TcpSocketSmallAcks::SendEmptyPacket(), and ns3::TcpSocketBase::SetRcvBufSize().
uint32_t ns3::TcpSocketState::m_segmentSize {0} |
Segment size.
Definition at line 184 of file tcp-socket-state.h.
Referenced by ns3::TcpNewReno::CongestionAvoidance(), ns3::TcpLinuxReno::CongestionAvoidance(), ns3::TcpHighSpeed::CongestionAvoidance(), ns3::TcpHtcp::CongestionAvoidance(), ns3::TcpHybla::CongestionAvoidance(), ns3::TcpLedbat::CongestionAvoidance(), ns3::TcpScalable::CongestionAvoidance(), ns3::TcpBbr::CongestionStateSet(), ns3::TcpPrrRecovery::DoRecovery(), ns3::TcpClassicRecovery::DoRecovery(), ns3::TcpSocketBase::DoRetransmit(), TcpBicIncrementTest::DoRun(), TcpBicDecrementTest::DoRun(), ClassicRecoveryTest::DoRun(), TcpHighSpeedIncrementTest::DoRun(), TcpHighSpeedDecrementTest::DoRun(), TcpHtcpIncrementTest::DoRun(), TcpHyblaIncrementTest::DoRun(), TcpIllinoisTest::DoRun(), ns3::TcpLpToNewReno::DoRun(), ns3::TcpLpInferenceTest1::DoRun(), ns3::TcpLpInferenceTest2::DoRun(), PrrRecoveryTest::DoRun(), TcpScalableIncrementTest::DoRun(), TcpScalableDecrementTest::DoRun(), TcpVegasTest::DoRun(), TcpVenoTest::DoRun(), TcpYeahIncrementTest::DoRun(), TcpYeahDecrementTest::DoRun(), ns3::TcpClassicRecovery::EnterRecovery(), ns3::TcpSocketBase::EnterRecovery(), ns3::TcpWestwoodPlus::EstimateBW(), TcpDctcpToLinuxReno::ExecuteTest(), TcpLedbatToNewReno::ExecuteTest(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), GetCwndInSegments(), ns3::TcpSocketBase::GetSegSize(), GetSsThreshInSegments(), ns3::TcpBic::IncreaseWindow(), ns3::TcpCubic::IncreaseWindow(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpLedbat::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), ns3::TcpBbr::InFlight(), ns3::TcpSocketBase::IsPacingEnabled(), ns3::TcpBbr::ModulateCwndForRecovery(), TcpVenoTest::NewReno_CongestionAvoidance(), TcpVenoTest::NewReno_SlowStart(), ns3::TcpCubic::PktsAcked(), ns3::TcpDctcp::PktsAcked(), ns3::TcpHtcp::PktsAcked(), ns3::TcpLp::PktsAcked(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReTxTimeout(), ns3::TcpSocketBase::Send(), ns3::TcpSocketBase::SendPendingData(), ns3::TcpBbr::SetCwnd(), ns3::TcpSocketBase::SetSegSize(), ns3::TcpBbr::SetSendQuantum(), ns3::TcpNewReno::SlowStart(), ns3::TcpLinuxReno::SlowStart(), ns3::TcpHybla::SlowStart(), and TcpBicIncrementTest::Update().
Callback<void, uint8_t> ns3::TcpSocketState::m_sendEmptyPacketCallback |
Callback to send an empty packet.
Definition at line 246 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::TcpSocketBase(), ns3::TcpDctcp::CeState0to1(), and ns3::TcpDctcp::CeState1to0().
TracedValue<uint32_t> ns3::TcpSocketState::m_ssThresh {0} |
Slow start threshold.
Definition at line 173 of file tcp-socket-state.h.
Referenced by ns3::TcpBbr::CheckDrain(), ns3::TcpNewReno::CongestionAvoidance(), ns3::TcpHighSpeed::CongestionAvoidance(), ns3::TcpHtcp::CongestionAvoidance(), ns3::TcpHybla::CongestionAvoidance(), ns3::TcpLedbat::CongestionAvoidance(), ns3::TcpScalable::CongestionAvoidance(), ns3::TcpBbr::CongestionStateSet(), ns3::TcpSocketBase::DoForwardUp(), ns3::TcpPrrRecovery::DoRecovery(), TcpBicIncrementTest::DoRun(), ClassicRecoveryTest::DoRun(), TcpHyblaIncrementTest::DoRun(), TcpIllinoisTest::DoRun(), ns3::TcpLpToNewReno::DoRun(), PrrRecoveryTest::DoRun(), TcpVegasTest::DoRun(), TcpVenoTest::DoRun(), TcpYeahIncrementTest::DoRun(), TcpYeahDecrementTest::DoRun(), ns3::TcpSocketBase::EnterCwr(), ns3::TcpClassicRecovery::EnterRecovery(), ns3::TcpSocketBase::EnterRecovery(), TcpDctcpToLinuxReno::ExecuteTest(), TcpLedbatToNewReno::ExecuteTest(), TcpLedbatIncrementTest::ExecuteTest(), TcpLedbatDecrementTest::ExecuteTest(), ns3::TcpClassicRecovery::ExitRecovery(), GetSsThreshInSegments(), GetTypeId(), ns3::TcpCubic::HystartUpdate(), ns3::TcpBic::IncreaseWindow(), ns3::TcpNewReno::IncreaseWindow(), ns3::TcpCubic::IncreaseWindow(), ns3::TcpIllinois::IncreaseWindow(), ns3::TcpLedbat::IncreaseWindow(), ns3::TcpLinuxReno::IncreaseWindow(), ns3::TcpVegas::IncreaseWindow(), ns3::TcpVeno::IncreaseWindow(), ns3::TcpYeah::IncreaseWindow(), TcpVenoTest::NewReno_IncreaseWindow(), ns3::TcpCubic::PktsAcked(), ns3::TcpSocketBase::ProcessAck(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReTxTimeout(), TcpDctcpCongestedRouter::SendDataPacket(), ns3::TcpNewReno::SlowStart(), ns3::TcpLinuxReno::SlowStart(), ns3::TcpHybla::SlowStart(), and ns3::TcpSocketBase::UpdatePacingRate().
Socket ECN capability.
Definition at line 215 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::CompleteFork(), ns3::TcpSocketBase::DoConnect(), ns3::TcpDctcp::Init(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ReTxTimeout(), and ns3::TcpSocketBase::SetUseEcn().
|
static |
Literal names of TCP states for use in log messages.
Definition at line 162 of file tcp-socket-state.h.
Referenced by ns3::TcpSocketBase::EnterCwr(), ns3::TcpSocketBase::EnterRecovery(), ns3::TcpSocketBase::ProcessAck(), and ns3::TcpSocketBase::ReceivedAck().