25#include "ns3/tcp-congestion-ops.h" 
   26#include "ns3/tcp-linux-reno.h" 
   27#include "ns3/traced-callback.h" 
   64  virtual std::string 
GetName () 
const;
 
An implementation of DCTCP.
 
void(* CongestionEstimateTracedCallback)(uint32_t bytesAcked, uint32_t bytesMarked, double alpha)
TracedCallback signature for DCTCP update of congestion state.
 
SequenceNumber32 m_priorRcvNxt
Sequence number of the first missing byte in data.
 
double m_alpha
Parameter used to estimate the amount of network congestion.
 
virtual void CwndEvent(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCAEvent_t event)
Trigger events/calculations on occurrence of congestion window event.
 
double m_g
Estimation gain.
 
bool m_initialized
Whether DCTCP has been initialized.
 
bool m_ceState
DCTCP Congestion Experienced state.
 
bool m_priorRcvNxtFlag
Variable used in setting the value of m_priorRcvNxt for first time.
 
void InitializeDctcpAlpha(double alpha)
Initialize the value of m_alpha.
 
SequenceNumber32 m_nextSeq
TCP sequence number threshold for beginning a new observation window.
 
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
 
uint32_t m_ackedBytesEcn
Number of acked bytes which are marked.
 
virtual void Init(Ptr< TcpSocketState > tcb)
Set configuration required by congestion control algorithm, This method will force DctcpEcn mode and ...
 
TcpDctcp()
Create an unbound tcp socket.
 
void Reset(Ptr< TcpSocketState > tcb)
Resets the value of m_ackedBytesEcn, m_ackedBytesTotal and m_nextSeq.
 
uint32_t m_ackedBytesTotal
Total number of acked bytes.
 
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get the slow start threshold after a loss event.
 
static TypeId GetTypeId(void)
Get the type ID.
 
virtual std::string GetName() const
Get the name of the congestion control algorithm.
 
bool m_nextSeqFlag
Variable used in setting the value of m_nextSeq for first time.
 
void CeState1to0(Ptr< TcpSocketState > tcb)
Changes state of m_ceState to false.
 
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Timing information on received ACK.
 
void UpdateAckReserved(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCAEvent_t event)
Updates the value of m_delayedAckReserved.
 
bool m_delayedAckReserved
Delayed Ack state.
 
TracedCallback< uint32_t, uint32_t, double > m_traceCongestionEstimate
Callback pointer for congestion state update.
 
bool m_useEct0
Use ECT(0) for ECN codepoint.
 
void CeState0to1(Ptr< TcpSocketState > tcb)
Changes state of m_ceState to true.
 
virtual ~TcpDctcp(void)
Destructor.
 
Reno congestion control algorithm.
 
TcpCAEvent_t
Congestion avoidance events.
 
Simulation virtual time values and global simulation resolution.
 
a unique identifier for an interface.
 
Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
float alpha
Plot alpha value (transparency)