OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // max packet size is 1500 bytes, 1500 - 48 = 1452. | 57 // max packet size is 1500 bytes, 1500 - 48 = 1452. |
58 const QuicByteCount kMaxPacketSize = 1452; | 58 const QuicByteCount kMaxPacketSize = 1452; |
59 // Default maximum packet size used in Linux TCP implementations. | 59 // Default maximum packet size used in Linux TCP implementations. |
60 const QuicByteCount kDefaultTCPMSS = 1460; | 60 const QuicByteCount kDefaultTCPMSS = 1460; |
61 | 61 |
62 // We match SPDY's use of 32 when secure (since we'd compete with SPDY). | 62 // We match SPDY's use of 32 when secure (since we'd compete with SPDY). |
63 const QuicPacketCount kInitialCongestionWindowSecure = 32; | 63 const QuicPacketCount kInitialCongestionWindowSecure = 32; |
64 // Be conservative, and just use double a typical TCP ICWND for HTTP. | 64 // Be conservative, and just use double a typical TCP ICWND for HTTP. |
65 const QuicPacketCount kInitialCongestionWindowInsecure = 20; | 65 const QuicPacketCount kInitialCongestionWindowInsecure = 20; |
66 | 66 |
67 // Default size of initial flow control window, for both stream and session. | 67 // Minimum size of initial flow control window, for both stream and session. |
68 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB | 68 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB |
69 | 69 |
70 // Minimum size of the CWND, in packets, when doing bandwidth resumption. | 70 // Minimum size of the CWND, in packets, when doing bandwidth resumption. |
71 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; | 71 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; |
72 | 72 |
73 // Maximum size of the CWND, in packets, for TCP congestion control algorithms. | 73 // Maximum size of the CWND, in packets, for TCP congestion control algorithms. |
74 const QuicPacketCount kMaxTcpCongestionWindow = 200; | 74 const QuicPacketCount kMaxTcpCongestionWindow = 200; |
75 | 75 |
76 // Default size of the socket receive buffer in bytes. | 76 // Default size of the socket receive buffer in bytes. |
77 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; | 77 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; |
78 // Minimum size of the socket receive buffer in bytes. | 78 // Minimum size of the socket receive buffer in bytes. |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 bool in_flight; | 1099 bool in_flight; |
1100 // True if the packet can never be acked, so it can be removed. | 1100 // True if the packet can never be acked, so it can be removed. |
1101 bool is_unackable; | 1101 bool is_unackable; |
1102 // True if the packet is an FEC packet. | 1102 // True if the packet is an FEC packet. |
1103 bool is_fec_packet; | 1103 bool is_fec_packet; |
1104 }; | 1104 }; |
1105 | 1105 |
1106 } // namespace net | 1106 } // namespace net |
1107 | 1107 |
1108 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1108 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |