Commit 7dedfd3b authored by Robert Ricci's avatar Robert Ricci

Added a note about using Karn's algorithm for TCP RTT caclulation, but

dind't implement it.
parent 2e551547
......@@ -39,6 +39,12 @@ void DelaySensor::localSend(PacketInfo *)
void DelaySensor::localAck(PacketInfo * packet)
{
sendValid = false;
/*
* XXX: According to RFC 2988, TCP MUST use Karn's algorithm for RTT
* calculation, which means that it cannot use retransmitted packets to
* caculate RTT (since it is ambiguous which of the two packets is being
* ACKed) unless using TCP timestamps
*/
if (state->isAckValid() && packetHistory->isAckValid()
&& state->getState() == StateSensor::ESTABLISHED)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment