25 #include "ns3/tcp-socket-base.h" 38 .AddConstructor<TcpLp> ()
39 .SetGroupName (
"Internet")
48 m_owdMin (0xffffffff),
51 m_lastDrop (
Time (0)),
52 m_inference (
Time (0))
61 m_owdMin (sock.m_owdMin),
62 m_owdMax (sock.m_owdMax),
63 m_owdMaxRsv (sock.m_owdMaxRsv),
64 m_lastDrop (sock.m_lastDrop),
65 m_inference (sock.m_inference)
78 return CopyObject<TcpLp> (
this);
uint32_t m_rcvTimestampValue
Receiver Timestamp value.
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Calculated One-Way Delay is valid.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint32_t m_owdMin
Minimum One-Way Delay.
uint32_t m_sOwd
Smoothed One-Way Delay.
uint32_t m_rcvTimestampEchoReply
Sender Timestamp echoed by the receiver.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
uint32_t m_segmentSize
Segment size.
The NewReno implementation.
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Timing information on received ACK.
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Invokes Congestion Avoidance of TcpNewReno if TcpLp is not within inference.
TcpLp is within Threshold.
Time m_inference
Current inference period.
TcpLp(void)
Creates an unbound tcp socket.
uint32_t m_flag
TcpLp state flag.
TcpLp is within Inference.
uint32_t m_owdMax
Maximum One-Way Delay.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Time Now(void)
Return the current simulation virtual time.
TracedValue< uint32_t > m_cWnd
Congestion window.
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
Introspection did not find any typical Config paths.
int64_t GetMilliSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
T Get(void) const
Get the underlying value.
virtual std::string GetName() const
Get the name of the congestion control algorithm.
void RttSample(Ptr< TcpSocketState > tcb)
Estimates minimum and maximum One-Way Delays and calculates the smoothed One-Way Delay.
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
NewReno congestion avoidance.
uint32_t m_owdMaxRsv
Reserved Maximum One-Way Delay.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t OwdCalculator(Ptr< TcpSocketState > tcb)
Calculates One-Way Delay using Sender and Receiver timestamps.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Time m_lastDrop
Last time when cwnd was reduced.