25 #include "ns3/tcp-congestion-ops.h" 62 virtual std::string
GetName ()
const;
Simulation virtual time values and global simulation resolution.
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
virtual void CwndEvent(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCAEvent_t event)
Trigger events/calculations on occurrence of congestion window event.
The NewReno implementation.
virtual void Init(Ptr< TcpSocketState > tcb)
Set configuration required by congestion control algorithm, This method will force DctcpEcn mode and ...
void SetDctcpAlpha(double alpha)
Sets the value of m_alpha.
void CeState1to0(Ptr< TcpSocketState > tcb)
Changes state of m_ceState to false.
bool m_useEct0
Use ECT(0) for ECN codepoint.
virtual std::string GetName() const
Get the name of the congestion control algorithm.
static TypeId GetTypeId(void)
Get the type ID.
void UpdateAckReserved(Ptr< TcpSocketState > tcb, const TcpSocketState::TcpCAEvent_t event)
Updates the value of m_delayedAckReserved.
void Reset(Ptr< TcpSocketState > tcb)
Resets the value of m_ackedBytesEcn, m_ackedBytesTotal and m_nextSeq.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Timing information on received ACK.
bool m_ceState
DCTCP Congestion Experienced state.
double m_alpha
Parameter used to estimate the amount of network congestion.
SequenceNumber32 m_nextSeq
TCP sequence number threshold for beginning a new observation window.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
An implementation of DCTCP.
virtual ~TcpDctcp(void)
Destructor.
double m_g
Estimation gain.
void CeState0to1(Ptr< TcpSocketState > tcb)
Changes state of m_ceState to true.
uint32_t m_ackedBytesEcn
Number of acked bytes which are marked.
uint32_t m_ackedBytesTotal
Total number of acked bytes.
TcpDctcp()
Create an unbound tcp socket.
bool m_priorRcvNxtFlag
Variable used in setting the value of m_priorRcvNxt for first time.
SequenceNumber32 m_priorRcvNxt
Sequence number of the first missing byte in data.
bool m_delayedAckReserved
Delayed Ack state.
virtual void ReduceCwnd(Ptr< TcpSocketState > tcb)
Reduces congestion window on receipt of ECN Echo Flag.
bool m_nextSeqFlag
Variable used in setting the value of m_nextSeq for first time.
a unique identifier for an interface.