blob: 66da4b8b29089fe603e2bffedb4ee63b9534ec7f [file] [log] [blame]
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011 University of California, Los Angeles
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Ilya Moiseenko <iliamo@cs.ucla.edu>
19 */
20
21#include "ccnx-consumer.h"
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -070022#include "ns3/ptr.h"
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080023#include "ns3/log.h"
24#include "ns3/simulator.h"
25#include "ns3/packet.h"
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -070026#include "ns3/callback.h"
Alexander Afanasyeva46844b2011-11-21 19:13:26 -080027#include "ns3/string.h"
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080028#include "ns3/boolean.h"
29#include "ns3/uinteger.h"
Alexander Afanasyevb3e4b852011-12-23 15:58:20 -080030#include "ns3/double.h"
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080031
32#include "ns3/ccnx.h"
Alexander Afanasyevf9f4eb02011-12-16 01:51:14 -080033#include "../model/ccnx-local-face.h"
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080034#include "ns3/ccnx-interest-header.h"
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -070035#include "ns3/ccnx-content-object-header.h"
Alexander Afanasyev6bff0df2012-01-19 17:51:52 -080036#include "ns3/ccnx-path-stretch-tag.h"
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -070037
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080038#include <boost/ref.hpp>
Alexander Afanasyev781ea812011-12-15 22:42:09 -080039#include <boost/lexical_cast.hpp>
40#include <boost/lambda/lambda.hpp>
41#include <boost/lambda/bind.hpp>
42
Alexander Afanasyev3661e232012-01-20 17:36:15 -080043#include "ns3/names.h"
44
Alexander Afanasyev781ea812011-12-15 22:42:09 -080045namespace ll = boost::lambda;
Alexander Afanasyev19426ef2011-11-23 20:55:28 -080046
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -070047NS_LOG_COMPONENT_DEFINE ("CcnxConsumer");
48
49namespace ns3
50{
51
52NS_OBJECT_ENSURE_REGISTERED (CcnxConsumer);
53
54TypeId
55CcnxConsumer::GetTypeId (void)
56{
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -080057 static TypeId tid = TypeId ("ns3::CcnxConsumer")
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -080058 .SetParent<CcnxApp> ()
Alexander Afanasyev781ea812011-12-15 22:42:09 -080059 .AddAttribute ("StartSeq", "Initial sequence number",
Alexander Afanasyevb3e4b852011-12-23 15:58:20 -080060 IntegerValue (0),
Alexander Afanasyev781ea812011-12-15 22:42:09 -080061 MakeIntegerAccessor(&CcnxConsumer::m_seq),
62 MakeIntegerChecker<int32_t>())
Alexander Afanasyev011b8592011-12-21 14:45:27 -080063
Alexander Afanasyev4975f732011-12-20 17:52:19 -080064 .AddAttribute ("Prefix","CcnxName of the Interest",
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -080065 StringValue ("/"),
66 MakeCcnxNameComponentsAccessor (&CcnxConsumer::m_interestName),
67 MakeCcnxNameComponentsChecker ())
Ilya Moiseenko956d0542012-01-02 15:26:40 -080068 .AddAttribute ("LifeTime", "LifeTime for interest packet",
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -080069 StringValue ("2s"),
70 MakeTimeAccessor (&CcnxConsumer::m_interestLifeTime),
71 MakeTimeChecker ())
72 .AddAttribute ("MinSuffixComponents", "MinSuffixComponents",
73 IntegerValue(-1),
74 MakeIntegerAccessor(&CcnxConsumer::m_minSuffixComponents),
75 MakeIntegerChecker<int32_t>())
76 .AddAttribute ("MaxSuffixComponents", "MaxSuffixComponents",
77 IntegerValue(-1),
78 MakeIntegerAccessor(&CcnxConsumer::m_maxSuffixComponents),
79 MakeIntegerChecker<int32_t>())
80 .AddAttribute ("ChildSelector", "ChildSelector",
81 BooleanValue(false),
82 MakeBooleanAccessor(&CcnxConsumer::m_childSelector),
83 MakeBooleanChecker())
84 .AddAttribute ("Exclude", "only simple name matching is supported (use CcnxNameComponents)",
85 CcnxNameComponentsValue (),
86 MakeCcnxNameComponentsAccessor (&CcnxConsumer::m_exclude),
87 MakeCcnxNameComponentsChecker ())
Alexander Afanasyev781ea812011-12-15 22:42:09 -080088
Alexander Afanasyev781ea812011-12-15 22:42:09 -080089 .AddAttribute ("RetxTimer",
90 "Timeout defining how frequent retransmission timeouts should be checked",
Alexander Afanasyev3d0c2e02012-01-22 18:50:05 -080091 StringValue ("50ms"),
Alexander Afanasyev781ea812011-12-15 22:42:09 -080092 MakeTimeAccessor (&CcnxConsumer::GetRetxTimer, &CcnxConsumer::SetRetxTimer),
93 MakeTimeChecker ())
94
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -080095 .AddTraceSource ("TransmittedInterests", "TransmittedInterests",
96 MakeTraceSourceAccessor (&CcnxConsumer::m_transmittedInterests))
Alexander Afanasyev6bff0df2012-01-19 17:51:52 -080097
98 .AddTraceSource ("PathWeightsTrace", "PathWeightsTrace",
99 MakeTraceSourceAccessor (&CcnxConsumer::m_pathWeightsTrace))
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800100 ;
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700101
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800102 return tid;
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700103}
104
105CcnxConsumer::CcnxConsumer ()
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800106 : m_rand (0, std::numeric_limits<uint32_t>::max ())
107 , m_seq (0)
Alexander Afanasyevb7ad2322012-01-17 22:54:49 -0800108 , m_seqMax (0) // don't request anything
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700109{
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800110 NS_LOG_FUNCTION_NOARGS ();
Alexander Afanasyev011b8592011-12-21 14:45:27 -0800111
Alexander Afanasyev94cebd02012-01-16 12:22:34 -0800112 m_rtt = CreateObject<RttMeanDeviation> ();
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700113}
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800114
115void
116CcnxConsumer::SetRetxTimer (Time retxTimer)
117{
118 m_retxTimer = retxTimer;
119 if (m_retxEvent.IsRunning ())
120 m_retxEvent.Cancel (); // cancel any scheduled cleanup events
121
122 // schedule even with new timeout
123 m_retxEvent = Simulator::Schedule (m_retxTimer,
124 &CcnxConsumer::CheckRetxTimeout, this);
125}
126
127Time
128CcnxConsumer::GetRetxTimer () const
129{
130 return m_retxTimer;
131}
132
133void
134CcnxConsumer::CheckRetxTimeout ()
135{
136 Time now = Simulator::Now ();
137
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800138 Time rto = m_rtt->RetransmitTimeout ();
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800139
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800140 while (!m_seqTimeouts.empty ())
141 {
142 SeqTimeoutsContainer::index<i_timestamp>::type::iterator entry =
143 m_seqTimeouts.get<i_timestamp> ().begin ();
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800144 if (entry->time + rto <= now) // timeout expired?
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800145 {
Alexander Afanasyeve0e5bd12012-01-21 14:30:52 -0800146 uint32_t seqNo = entry->seq;
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800147 m_seqTimeouts.get<i_timestamp> ().erase (entry);
Alexander Afanasyeve0e5bd12012-01-21 14:30:52 -0800148 OnTimeout (seqNo);
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800149 }
150 else
151 break; // nothing else to do. All later packets need not be retransmitted
152 }
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800153
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800154 m_retxEvent = Simulator::Schedule (m_retxTimer,
155 &CcnxConsumer::CheckRetxTimeout, this);
156}
157
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700158// Application Methods
159void
160CcnxConsumer::StartApplication () // Called at time specified by Start
161{
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800162 NS_LOG_FUNCTION_NOARGS ();
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700163
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800164 // do base stuff
165 CcnxApp::StartApplication ();
Alexander Afanasyev011b8592011-12-21 14:45:27 -0800166
167 ScheduleNextPacket ();
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700168}
169
170void
171CcnxConsumer::StopApplication () // Called at time specified by Stop
172{
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800173 NS_LOG_FUNCTION_NOARGS ();
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700174
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800175 // cancel periodic packet generation
176 Simulator::Cancel (m_sendEvent);
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700177
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800178 // cleanup base stuff
179 CcnxApp::StopApplication ();
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700180}
181
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700182void
183CcnxConsumer::SendPacket ()
184{
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800185 if (!m_active) return;
186
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800187 NS_LOG_FUNCTION_NOARGS ();
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800188
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800189 uint32_t seq=std::numeric_limits<uint32_t>::max (); //invalid
190
Alexander Afanasyev1180b042012-01-25 19:26:13 -0800191 // std::cout << Simulator::Now ().ToDouble (Time::S) << "s max -> " << m_seqMax << "\n";
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800192
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800193 while (m_retxSeqs.size ())
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800194 {
195 seq = *m_retxSeqs.begin ();
196 m_retxSeqs.erase (m_retxSeqs.begin ());
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800197
198 // NS_ASSERT (m_seqLifetimes.find (seq) != m_seqLifetimes.end ());
199 // if (m_seqLifetimes.find (seq)->time <= Simulator::Now ())
200 // {
201
202 // NS_LOG_DEBUG ("Expire " << seq);
203 // m_seqLifetimes.erase (seq); // lifetime expired. Trying to find another unexpired sequence number
204 // continue;
205 // }
206 break;
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800207 }
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800208
209 if (seq == std::numeric_limits<uint32_t>::max ())
Alexander Afanasyevb3e4b852011-12-23 15:58:20 -0800210 {
Alexander Afanasyev812f7ab2012-01-24 11:08:04 -0800211 if (m_seqMax != std::numeric_limits<uint32_t>::max ())
Alexander Afanasyevb3e4b852011-12-23 15:58:20 -0800212 {
213 if (m_seq >= m_seqMax)
214 {
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800215 return; // we are totally done
Alexander Afanasyevb3e4b852011-12-23 15:58:20 -0800216 }
217 }
218
219 seq = m_seq++;
220 }
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800221
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800222 // std::cout << Simulator::Now ().ToDouble (Time::S) << "s -> " << seq << "\n";
Ilya Moiseenko0605d262011-10-28 13:00:07 -0700223
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800224 //
225 Ptr<CcnxNameComponents> nameWithSequence = Create<CcnxNameComponents> (m_interestName);
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800226 (*nameWithSequence) (seq);
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800227 //
228
229 CcnxInterestHeader interestHeader;
230 interestHeader.SetNonce (m_rand.GetValue ());
231 interestHeader.SetName (nameWithSequence);
232 interestHeader.SetInterestLifetime (m_interestLifeTime);
233 interestHeader.SetChildSelector (m_childSelector);
Alexander Afanasyevc39f0b42011-11-28 12:51:12 -0800234 if (m_exclude.size ()>0)
235 {
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800236 interestHeader.SetExclude (Create<CcnxNameComponents> (m_exclude));
Alexander Afanasyevc39f0b42011-11-28 12:51:12 -0800237 }
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800238 interestHeader.SetMaxSuffixComponents (m_maxSuffixComponents);
239 interestHeader.SetMinSuffixComponents (m_minSuffixComponents);
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700240
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800241 // NS_LOG_INFO ("Requesting Interest: \n" << interestHeader);
242 NS_LOG_INFO ("> Interest for " << seq);
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700243
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800244 Ptr<Packet> packet = Create<Packet> ();
245 packet->AddHeader (interestHeader);
Alexander Afanasyev59e67712012-02-07 11:49:34 -0800246 NS_LOG_DEBUG ("Interest packet size: " << packet->GetSize ());
Alexander Afanasyevd02a5d62011-11-21 11:01:51 -0800247
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800248 m_protocolHandler (packet);
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800249
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800250 NS_LOG_DEBUG ("Trying to add " << seq << " with " << Simulator::Now () << ". already " << m_seqTimeouts.size () << " items");
251
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800252 m_seqTimeouts.insert (SeqTimeout (seq, Simulator::Now ()));
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800253 m_seqLifetimes.insert (SeqTimeout (seq, Simulator::Now () + m_interestLifeTime)); // only one insert will work. if entry exists, nothing will happen... nothing should happen
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800254 m_transmittedInterests (&interestHeader, this, m_face);
Alexander Afanasyev011b8592011-12-21 14:45:27 -0800255
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800256 m_rtt->SentSeq (SequenceNumber32 (seq), 1);
Alexander Afanasyev011b8592011-12-21 14:45:27 -0800257 ScheduleNextPacket ();
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700258}
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700259
Alexander Afanasyev011b8592011-12-21 14:45:27 -0800260///////////////////////////////////////////////////
261// Process incoming packets //
262///////////////////////////////////////////////////
263
264
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700265void
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700266CcnxConsumer::OnContentObject (const Ptr<const CcnxContentObjectHeader> &contentObject,
Alexander Afanasyeve9c9d722012-01-19 16:59:30 -0800267 Ptr<Packet> payload)
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700268{
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800269 if (!m_active) return;
270
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800271 CcnxApp::OnContentObject (contentObject, payload); // tracing inside
272
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800273 NS_LOG_FUNCTION (this << contentObject << payload);
274
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800275 // NS_LOG_INFO ("Received content object: " << boost::cref(*contentObject));
276
277 uint32_t seq = boost::lexical_cast<uint32_t> (contentObject->GetName ().GetComponents ().back ());
278 NS_LOG_INFO ("< DATA for " << seq);
279
Alexander Afanasyev8dcfa5d2012-01-05 14:22:25 -0700280 // SeqTimeoutsContainer::iterator entry = m_seqTimeouts.find (seq);
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800281
Alexander Afanasyev8f5a9bb2011-12-18 19:49:02 -0800282 // NS_ASSERT_MSG (entry != m_seqTimeouts.end (),
283 // "Comment out this assert, if it causes problems");
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800284
Alexander Afanasyev36d5c2a2012-01-02 19:09:19 -0800285 // if (entry != m_seqTimeouts.end ())
286 // m_seqTimeouts.erase (entry);
287
Alexander Afanasyev1ec705f2012-01-23 12:35:10 -0800288 m_seqLifetimes.erase (seq);
Alexander Afanasyev36d5c2a2012-01-02 19:09:19 -0800289 m_seqTimeouts.erase (seq);
290 m_retxSeqs.erase (seq);
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800291
292 m_rtt->AckSeq (SequenceNumber32 (seq));
Alexander Afanasyev6bff0df2012-01-19 17:51:52 -0800293
294 Ptr<const WeightsPathStretchTag> tag = payload->RemovePacketTag<WeightsPathStretchTag> ();
295 if (tag != 0)
296 {
297 // Notify trace about path weights vector (e.g., for path-stretch calculation)
Alexander Afanasyev3661e232012-01-20 17:36:15 -0800298 m_pathWeightsTrace (GetNode (), tag->GetSourceNode (), seq, tag->GetTotalWeight ());
299 // if (Names::FindName (GetNode ()) == "36")// || Names::FindName (GetNode ()) == "40"|| Names::FindName (GetNode ()) == "5")
300 // std::cout << Simulator::Now () << "\t" << boost::cref(*tag) << " = " << tag->GetTotalWeight () << "\n";
Alexander Afanasyev34a177c2012-02-04 14:23:02 -0800301}
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800302}
303
304void
Alexander Afanasyeve9c9d722012-01-19 16:59:30 -0800305CcnxConsumer::OnNack (const Ptr<const CcnxInterestHeader> &interest, Ptr<Packet> origPacket)
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800306{
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800307 if (!m_active) return;
308
Alexander Afanasyeve9c9d722012-01-19 16:59:30 -0800309 CcnxApp::OnNack (interest, origPacket); // tracing inside
Alexander Afanasyevbdc0d982011-12-16 01:15:26 -0800310
Alexander Afanasyev120bf312011-12-19 01:24:47 -0800311 NS_LOG_DEBUG ("Nack type: " << interest->GetNack ());
Alexander Afanasyev120bf312011-12-19 01:24:47 -0800312
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800313 NS_LOG_FUNCTION (this << interest);
314
315 // NS_LOG_INFO ("Received NACK: " << boost::cref(*interest));
316 uint32_t seq = boost::lexical_cast<uint32_t> (interest->GetName ().GetComponents ().back ());
317 NS_LOG_INFO ("< NACK for " << seq);
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800318 // std::cout << Simulator::Now ().ToDouble (Time::S) << "s -> " << "NACK for " << seq << "\n";
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800319
320 // put in the queue of interests to be retransmitted
Alexander Afanasyev120bf312011-12-19 01:24:47 -0800321 NS_LOG_INFO ("Before: " << m_retxSeqs.size ());
Alexander Afanasyev781ea812011-12-15 22:42:09 -0800322 m_retxSeqs.insert (seq);
Alexander Afanasyev120bf312011-12-19 01:24:47 -0800323 NS_LOG_INFO ("After: " << m_retxSeqs.size ());
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800324
Alexander Afanasyev1180b042012-01-25 19:26:13 -0800325 // m_rtt->IncreaseMultiplier (); // Double the next RTO ??
Alexander Afanasyev3183b5a2011-12-23 20:48:20 -0800326 ScheduleNextPacket ();
Ilya Moiseenko8196d2e2011-08-29 13:03:22 -0700327}
Alexander Afanasyevc5a23e22011-09-07 00:37:36 -0700328
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800329void
330CcnxConsumer::OnTimeout (uint32_t sequenceNumber)
331{
Alexander Afanasyev8e0d2812012-01-19 22:38:14 -0800332 // std::cout << Simulator::Now () << ", TO: " << sequenceNumber << ", current RTO: " << m_rtt->RetransmitTimeout ().ToDouble (Time::S) << "s\n";
Alexander Afanasyevb7ad2322012-01-17 22:54:49 -0800333
Alexander Afanasyevb8f51392012-01-23 10:59:51 -0800334 // m_rtt->IncreaseMultiplier (); // Double the next RTO
Alexander Afanasyev8e0d2812012-01-19 22:38:14 -0800335 m_rtt->SentSeq (SequenceNumber32 (sequenceNumber), 1); // make sure to disable RTT calculation for this sample
Alexander Afanasyev4d66de52012-01-13 00:06:01 -0800336 m_retxSeqs.insert (sequenceNumber);
Alexander Afanasyev359bfb72012-01-09 18:42:50 -0800337 ScheduleNextPacket ();
338}
339
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -0800340} // namespace ns3