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

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

Issue 2005853002: Ignore the peer's receive buffer in QUIC and instead set the max CWND to 2000 packets. Protected b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122420070
Patch Set: Created 4 years, 7 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
« no previous file with comments | « net/quic/quic_flags.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 (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 <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB 72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB
73 73
74 // Maximum flow control receive window limits for connection and stream. 74 // Maximum flow control receive window limits for connection and stream.
75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB 75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB
76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB 76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB
77 77
78 // Minimum size of the CWND, in packets, when doing bandwidth resumption. 78 // Minimum size of the CWND, in packets, when doing bandwidth resumption.
79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; 79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10;
80 80
81 // Maximum number of tracked packets. 81 // Maximum number of tracked packets.
82 const QuicPacketCount kMaxTrackedPackets = 5000; 82 const QuicPacketCount kMaxTrackedPackets = 10000;
83 83
84 // Default size of the socket receive buffer in bytes. 84 // Default size of the socket receive buffer in bytes.
85 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; 85 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024;
86 // Minimum size of the socket receive buffer in bytes. 86 // Minimum size of the socket receive buffer in bytes.
87 // Smaller values are ignored. 87 // Smaller values are ignored.
88 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024; 88 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024;
89 89
90 // Fraction of the receive buffer that can be used for encrypted bytes. 90 // Fraction of the receive buffer that can be used for encrypted bytes.
91 // Allows a 5% overhead for IP and UDP framing, as well as ack only packets. 91 // Allows a 5% overhead for IP and UDP framing, as well as ack only packets.
92 static const float kUsableRecieveBufferFraction = 0.95f; 92 static const float kUsableRecieveBufferFraction = 0.95f;
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1497 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1498 1498
1499 const struct iovec* iov; 1499 const struct iovec* iov;
1500 const int iov_count; 1500 const int iov_count;
1501 const size_t total_length; 1501 const size_t total_length;
1502 }; 1502 };
1503 1503
1504 } // namespace net 1504 } // namespace net
1505 1505
1506 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1506 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698