OLD | NEW |
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_CONNECTION_STATS_H_ | 5 #ifndef NET_QUIC_QUIC_CONNECTION_STATS_H_ |
6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ | 6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // be lost when the alarm fires. | 48 // be lost when the alarm fires. |
49 uint32 loss_timeout_count; | 49 uint32 loss_timeout_count; |
50 uint32 tlp_count; | 50 uint32 tlp_count; |
51 uint32 rto_count; // Count of times the rto timer fired. | 51 uint32 rto_count; // Count of times the rto timer fired. |
52 uint32 spurious_rto_count; | 52 uint32 spurious_rto_count; |
53 | 53 |
54 int64 min_rtt_us; // Minimum RTT in microseconds. | 54 int64 min_rtt_us; // Minimum RTT in microseconds. |
55 int64 srtt_us; // Smoothed RTT in microseconds. | 55 int64 srtt_us; // Smoothed RTT in microseconds. |
56 uint32 max_packet_size; // In bytes. | 56 uint32 max_packet_size; // In bytes. |
57 uint64 estimated_bandwidth; // In bytes per second. | 57 uint64 estimated_bandwidth; // In bytes per second. |
58 uint32 congestion_window; // In bytes | |
59 uint32 slow_start_threshold; // In bytes | |
60 | 58 |
61 // Reordering stats for received packets. | 59 // Reordering stats for received packets. |
62 // Number of packets received out of sequence number order. | 60 // Number of packets received out of sequence number order. |
63 uint32 packets_reordered; | 61 uint32 packets_reordered; |
64 // Maximum reordering observed in sequence space. | 62 // Maximum reordering observed in sequence space. |
65 uint32 max_sequence_reordering; | 63 uint32 max_sequence_reordering; |
66 // Maximum reordering observed in microseconds | 64 // Maximum reordering observed in microseconds |
67 int64 max_time_reordering_us; | 65 int64 max_time_reordering_us; |
68 | 66 |
69 // The following stats are used only in TcpCubicSender. | 67 // The following stats are used only in TcpCubicSender. |
70 // The number of loss events from TCP's perspective. Each loss event includes | 68 // The number of loss events from TCP's perspective. Each loss event includes |
71 // one or more lost packets. | 69 // one or more lost packets. |
72 uint32 tcp_loss_events; | 70 uint32 tcp_loss_events; |
73 // Total amount of cwnd increase by TCPCubic in congestion avoidance. | 71 // Total amount of cwnd increase by TCPCubic in congestion avoidance. |
74 uint32 cwnd_increase_congestion_avoidance; | 72 uint32 cwnd_increase_congestion_avoidance; |
75 // Total amount of cwnd increase by TCPCubic in cubic mode. | 73 // Total amount of cwnd increase by TCPCubic in cubic mode. |
76 uint32 cwnd_increase_cubic_mode; | 74 uint32 cwnd_increase_cubic_mode; |
77 | 75 |
78 // Creation time, as reported by the QuicClock. | 76 // Creation time, as reported by the QuicClock. |
79 QuicTime connection_creation_time; | 77 QuicTime connection_creation_time; |
80 }; | 78 }; |
81 | 79 |
82 } // namespace net | 80 } // namespace net |
83 | 81 |
84 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ | 82 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ |
OLD | NEW |