Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: net/quic/quic_sent_packet_manager.h

Issue 181723003: Start using the loss timeout in QuicSentPacketManager and add a mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 private: 169 private:
170 friend class test::QuicConnectionPeer; 170 friend class test::QuicConnectionPeer;
171 friend class test::QuicSentPacketManagerPeer; 171 friend class test::QuicSentPacketManagerPeer;
172 172
173 enum ReceivedByPeer { 173 enum ReceivedByPeer {
174 RECEIVED_BY_PEER, 174 RECEIVED_BY_PEER,
175 NOT_RECEIVED_BY_PEER, 175 NOT_RECEIVED_BY_PEER,
176 }; 176 };
177 177
178 // The retransmission timer is a single timer which switches modes depending
179 // upon connection state.
178 enum RetransmissionTimeoutMode { 180 enum RetransmissionTimeoutMode {
181 // A conventional TCP style RTO.
179 RTO_MODE, 182 RTO_MODE,
183 // A tail loss probe. By default, QUIC sends up to two before RTOing.
180 TLP_MODE, 184 TLP_MODE,
185 // Retransmission of handshake packets prior to handshake completion.
181 HANDSHAKE_MODE, 186 HANDSHAKE_MODE,
187 // Re-invoke the loss detection when a packet is not acked before the
188 // loss detection algorithm expects.
189 LOSS_MODE,
182 }; 190 };
183 191
184 typedef linked_hash_map<QuicPacketSequenceNumber, 192 typedef linked_hash_map<QuicPacketSequenceNumber,
185 TransmissionType> PendingRetransmissionMap; 193 TransmissionType> PendingRetransmissionMap;
186 194
187 // Process the incoming ack looking for newly ack'd data packets. 195 // Process the incoming ack looking for newly ack'd data packets.
188 void HandleAckForSentPackets(const ReceivedPacketInfo& received_info); 196 void HandleAckForSentPackets(const ReceivedPacketInfo& received_info);
189 197
190 // Called when a packet is timed out, such as an RTO. Removes the bytes from 198 // Called when a packet is timed out, such as an RTO. Removes the bytes from
191 // the congestion manager, but does not change the congestion window size. 199 // the congestion manager, but does not change the congestion window size.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Maximum number of tail loss probes to send before firing an RTO. 284 // Maximum number of tail loss probes to send before firing an RTO.
277 size_t max_tail_loss_probes_; 285 size_t max_tail_loss_probes_;
278 bool using_pacing_; 286 bool using_pacing_;
279 287
280 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 288 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
281 }; 289 };
282 290
283 } // namespace net 291 } // namespace net
284 292
285 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 293 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698