|
When talking >=QUIC_VERSION_22, regularly send updated bandwidth
estimates to the client (in SCUP messages).
The main work is in QuicConnection, where a new alarm regularly checks
for substantially changed bandwidth estimates and sends them to the
client if so. The majority of the rest of this CL is plumbing, and test
code.
Feel free to suggest better values for:
- Timeout between bandwidth estimate alarms
- Definition of "substantial change" in estimate
The flow is:
- on every congestion event (ACK, packet loss) the sent packet manager
passes a bandwidth estimate to the sustained bandwidth recorder
- on every congestion window change, the QuicServerSession checks to see
if the bandwidth has changed sufficiently *and* enough time has passed
since last time we sent an update to the client
- if so, it populates the CachedNetworkParams proto, and passes this to
the CryptoStream which sends a SCUP message to the client
Merge internal change: 73579021
R=rch@chromium.org, rjshade@chromium.org, wtc@chromium.org
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+533 lines, -59 lines) |
Patch |
 |
M |
net/net.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/crypto/quic_crypto_server_config.h
|
View
|
|
3 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/quic/crypto/quic_crypto_server_config.cc
|
View
|
|
5 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
 |
M |
net/quic/crypto/quic_crypto_server_config_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/crypto/source_address_token.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_connection.h
|
View
|
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/quic_connection.cc
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/quic_connection_test.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_crypto_server_stream.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/quic_crypto_server_stream.cc
|
View
|
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_packet_generator.h
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_protocol.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_sent_packet_manager.h
|
View
|
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/quic_sent_packet_manager.cc
|
View
|
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_sent_packet_manager_test.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_server_session.h
|
View
|
|
3 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_server_session.cc
|
View
|
|
3 chunks |
+76 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/quic_session.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_session.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_sustained_bandwidth_recorder.h
|
View
|
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_sustained_bandwidth_recorder.cc
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_sustained_bandwidth_recorder_test.cc
|
View
|
|
6 chunks |
+27 lines, -21 lines |
0 comments
|
Download
|
 |
M |
net/quic/test_tools/quic_sent_packet_manager_peer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/test_tools/quic_sent_packet_manager_peer.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.cc
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/test_tools/quic_test_utils.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_server_session.h
|
View
|
|
3 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_server_session.cc
|
View
|
|
3 chunks |
+77 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_server_session_test.cc
|
View
|
|
6 chunks |
+111 lines, -0 lines |
2 comments
|
Download
|
Total messages: 4 (0 generated)
|