39 TypeId(
"ns3::TcpPrrRecovery")
41 .AddConstructor<TcpPrrRecovery>()
42 .SetGroupName(
"Internet")
43 .AddAttribute(
"ReductionBound",
44 "Type of Reduction Bound",
59 m_prrDelivered(recovery.m_prrDelivered),
60 m_prrOut(recovery.m_prrOut),
61 m_recoveryFlightSize(recovery.m_recoveryFlightSize),
62 m_reductionBoundMode(recovery.m_reductionBoundMode)
74 uint32_t dupAckCount [[maybe_unused]],
75 uint32_t unAckDataCount,
76 uint32_t deliveredBytes)
114 limit = deliveredBytes;
143 return CopyObject<TcpPrrRecovery>(
this);
149 return "PrrRecovery";
Hold variables of type enum.
The Classic recovery implementation.
An implementation of PRR.
ReductionBound_t m_reductionBoundMode
mode of Reduction Bound to be used
void EnterRecovery(Ptr< TcpSocketState > tcb, uint32_t dupAckCount, uint32_t unAckDataCount, uint32_t deliveredBytes) override
Performs variable initialization at the start of recovery.
static TypeId GetTypeId()
Get the type ID.
void UpdateBytesSent(uint32_t bytesSent) override
Keeps track of bytes sent during recovery phase.
@ CRB
Conservative Reduction Bound.
@ SSRB
Slow Start Reduction Bound.
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.
uint32_t m_prrOut
total bytes sent during recovery phase
~TcpPrrRecovery() override
TcpPrrRecovery()
Create an unbound tcp socket.
uint32_t m_prrDelivered
total bytes delivered during recovery phase
Ptr< TcpRecoveryOps > Fork() override
Copy the recovery algorithm across socket.
void DoRecovery(Ptr< TcpSocketState > tcb, uint32_t deliveredBytes) override
Performs recovery based on the recovery algorithm.
uint32_t m_recoveryFlightSize
value of bytesInFlight at the start of recovery phase
uint32_t m_segmentSize
Segment size.
bool m_isRetransDataAcked
Retransmitted data is ACKed if true.
TracedValue< uint32_t > m_cWnd
Congestion window.
TracedValue< uint32_t > m_bytesInFlight
Bytes in flight.
TracedValue< uint32_t > m_cWndInfl
Inflated congestion window trace (used only for backward compatibility purpose)
TracedValue< uint32_t > m_ssThresh
Slow start threshold.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeEnumChecker(T v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.