summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2019-03-05 16:40:40 -0800
committerShentubot <shentubot@google.com>2019-03-05 16:41:44 -0800
commit1718fdd1a8e16f36433b069a0f5d88ea7bdb65f5 (patch)
tree35b9f258024d54d8950d5c50c682b5a4a571f726 /pkg/tcpip/tcpip.go
parent23e66ee96d159a774ecac9f89fab8cff463174a4 (diff)
Add new retransmissions and recovery related metrics.
PiperOrigin-RevId: 236945145 Change-Id: I051760d95154ea5574c8bb6aea526f488af5e07b
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index 49cc8705a..7010d1b68 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -628,6 +628,28 @@ type TCPStats struct {
// ResetsReceived is the number of TCP resets received.
ResetsReceived *StatCounter
+
+ // Retransmits is the number of TCP segments retransmitted.
+ Retransmits *StatCounter
+
+ // FastRecovery is the number of times Fast Recovery was used to
+ // recover from packet loss.
+ FastRecovery *StatCounter
+
+ // SACKRecovery is the number of times SACK Recovery was used to
+ // recover from packet loss.
+ SACKRecovery *StatCounter
+
+ // SlowStartRetransmits is the number of segments retransmitted in slow
+ // start.
+ SlowStartRetransmits *StatCounter
+
+ // FastRetransmit is the number of segments retransmitted in fast
+ // recovery.
+ FastRetransmit *StatCounter
+
+ // Timeouts is the number of times the RTO expired.
+ Timeouts *StatCounter
}
// UDPStats collects UDP-specific stats.