Regression: RTO in Consumers was not exponentially increased
diff --git a/apps/ndn-consumer-batches.cc b/apps/ndn-consumer-batches.cc
index e66b741..c4e93fb 100644
--- a/apps/ndn-consumer-batches.cc
+++ b/apps/ndn-consumer-batches.cc
@@ -81,7 +81,7 @@
ConsumerBatches::ScheduleNextPacket ()
{
if (!m_sendEvent.IsRunning ())
- m_sendEvent = Simulator::Schedule (Seconds (m_rtt->RetransmitTimeout ().ToDouble (Time::S) * 0.1), &Consumer::SendPacket, this);
+ m_sendEvent = Simulator::Schedule (Seconds (m_rtt->RetransmitTimeout ().ToDouble (Time::S)), &Consumer::SendPacket, this);
}
///////////////////////////////////////////////////
diff --git a/apps/ndn-consumer.cc b/apps/ndn-consumer.cc
index 80b410b..2c13925 100644
--- a/apps/ndn-consumer.cc
+++ b/apps/ndn-consumer.cc
@@ -319,16 +319,17 @@
m_retxSeqs.insert (seq);
NS_LOG_INFO ("After: " << m_retxSeqs.size ());
- // m_rtt->IncreaseMultiplier (); // Double the next RTO ??
+ m_rtt->IncreaseMultiplier (); // Double the next RTO ??
ScheduleNextPacket ();
}
void
Consumer::OnTimeout (uint32_t sequenceNumber)
{
+ NS_LOG_FUNCTION (sequenceNumber);
// std::cout << Simulator::Now () << ", TO: " << sequenceNumber << ", current RTO: " << m_rtt->RetransmitTimeout ().ToDouble (Time::S) << "s\n";
- // m_rtt->IncreaseMultiplier (); // Double the next RTO
+ m_rtt->IncreaseMultiplier (); // Double the next RTO
m_rtt->SentSeq (SequenceNumber32 (sequenceNumber), 1); // make sure to disable RTT calculation for this sample
m_retxSeqs.insert (sequenceNumber);
ScheduleNextPacket ();