22 #ifndef TCP_RECOVERY_OPS_H
23 #define TCP_RECOVERY_OPS_H
25 #include "ns3/object.h"
103 uint32_t dupAckCount,
104 uint32_t unAckDataCount,
105 uint32_t deliveredBytes) = 0;
185 std::string
GetName()
const override;
188 uint32_t dupAckCount,
189 uint32_t unAckDataCount,
190 uint32_t deliveredBytes)
override;
A base class which provides memory management and object aggregation.
The Classic recovery implementation.
Ptr< TcpRecoveryOps > Fork() override
Copy the recovery algorithm across socket.
void EnterRecovery(Ptr< TcpSocketState > tcb, uint32_t dupAckCount, uint32_t unAckDataCount, uint32_t deliveredBytes) override
Performs variable initialization at the start of recovery.
void DoRecovery(Ptr< TcpSocketState > tcb, uint32_t deliveredBytes) override
Performs recovery based on the recovery algorithm.
void ExitRecovery(Ptr< TcpSocketState > tcb) override
Performs cwnd adjustments at the end of recovery.
std::string GetName() const override
Get the name of the recovery algorithm.
static TypeId GetTypeId()
Get the type ID.
TcpClassicRecovery()
Constructor.
~TcpClassicRecovery() override
Constructor.
virtual void EnterRecovery(Ptr< TcpSocketState > tcb, uint32_t dupAckCount, uint32_t unAckDataCount, uint32_t deliveredBytes)=0
Performs variable initialization at the start of recovery.
static TypeId GetTypeId()
Get the type ID.
virtual void UpdateBytesSent(uint32_t bytesSent)
Keeps track of bytes sent during recovery phase.
virtual Ptr< TcpRecoveryOps > Fork()=0
Copy the recovery algorithm across socket.
virtual std::string GetName() const =0
Get the name of the recovery algorithm.
TcpRecoveryOps()
Constructor.
~TcpRecoveryOps() override
Deconstructor.
virtual void DoRecovery(Ptr< TcpSocketState > tcb, uint32_t deliveredBytes)=0
Performs recovery based on the recovery algorithm.
virtual void ExitRecovery(Ptr< TcpSocketState > tcb)=0
Performs cwnd adjustments at the end of recovery.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.