Collect additional TcpExt metrics#10844
Merged
Merged
Conversation
Number of martian packets dropped by the reverse path filter: IPReversePathFilter I've used `system.net.ip.reverse_path_filter` as the metric name for this one as even if it's under TcpExt, it has absolutely nothing to do with the TCP layer. Prune TCP queue metrics: PruneCalled, RcvPruned and OfoPruned netstat defines PruneCalled as '%u packets pruned from receive queue because of socket' which is inexact. This metric will count the number of called to the tcp_prune_queue and doesn't necessarily drop packets if it manages to free enough space. Packets dropped by PAWS: PAWSActive and PAWSEstab PAWSActive is a confusing name. It's basically the number of dropped SYNACK packets by the PAWS mechanism. Active is probably for "active open", when the socket is in a SYN_SENT state. Using `system.net.tcp.paws_connection_drop` as the metric name for PAWSActive made more sense. Number of retransmitted SYN packets: TCPSynRetrans Number of socket closed due to a TCP timeout (maximum retransmission reached or keep-alive timeouts): TCPAbortOnTimeout 0win state changes: TCPFromZeroWindowAdv, TCPToZeroWindowAdv Syn cookies stats: SyncookiesSent, SyncookiesRecv, SyncookiesFailed Reused TW socket: TWRecycled. This can easily be confused with the `tcp_tw_recycle` sysctl option which doesn't exist anymore. In the kernel code, we can see it's incremented if the reuse part was successful (`twsk_unique(sk, sk2, twp)`) https://github.com/torvalds/linux/blob/19757cebf0c5016a1f36f7fe9810a9f0b33c0832/net/ipv4/inet_hashtables.c#L487-L490 So I've used `system.net.tcp.tw_reused` for this one which make a bit more sense.
ChristineTChen
approved these changes
Dec 13, 2021
github-actions Bot
pushed a commit
that referenced
this pull request
Jan 3, 2022
Number of martian packets dropped by the reverse path filter: IPReversePathFilter I've used `system.net.ip.reverse_path_filter` as the metric name for this one as even if it's under TcpExt, it has absolutely nothing to do with the TCP layer. Prune TCP queue metrics: PruneCalled, RcvPruned and OfoPruned netstat defines PruneCalled as '%u packets pruned from receive queue because of socket' which is inexact. This metric will count the number of called to the tcp_prune_queue and doesn't necessarily drop packets if it manages to free enough space. Packets dropped by PAWS: PAWSActive and PAWSEstab PAWSActive is a confusing name. It's basically the number of dropped SYNACK packets by the PAWS mechanism. Active is probably for "active open", when the socket is in a SYN_SENT state. Using `system.net.tcp.paws_connection_drop` as the metric name for PAWSActive made more sense. Number of retransmitted SYN packets: TCPSynRetrans Number of socket closed due to a TCP timeout (maximum retransmission reached or keep-alive timeouts): TCPAbortOnTimeout 0win state changes: TCPFromZeroWindowAdv, TCPToZeroWindowAdv Syn cookies stats: SyncookiesSent, SyncookiesRecv, SyncookiesFailed Reused TW socket: TWRecycled. This can easily be confused with the `tcp_tw_recycle` sysctl option which doesn't exist anymore. In the kernel code, we can see it's incremented if the reuse part was successful (`twsk_unique(sk, sk2, twp)`) https://github.com/torvalds/linux/blob/19757cebf0c5016a1f36f7fe9810a9f0b33c0832/net/ipv4/inet_hashtables.c#L487-L490 So I've used `system.net.tcp.tw_reused` for this one which make a bit more sense. 891c7dd
cswatt
pushed a commit
that referenced
this pull request
Jan 5, 2022
Number of martian packets dropped by the reverse path filter: IPReversePathFilter I've used `system.net.ip.reverse_path_filter` as the metric name for this one as even if it's under TcpExt, it has absolutely nothing to do with the TCP layer. Prune TCP queue metrics: PruneCalled, RcvPruned and OfoPruned netstat defines PruneCalled as '%u packets pruned from receive queue because of socket' which is inexact. This metric will count the number of called to the tcp_prune_queue and doesn't necessarily drop packets if it manages to free enough space. Packets dropped by PAWS: PAWSActive and PAWSEstab PAWSActive is a confusing name. It's basically the number of dropped SYNACK packets by the PAWS mechanism. Active is probably for "active open", when the socket is in a SYN_SENT state. Using `system.net.tcp.paws_connection_drop` as the metric name for PAWSActive made more sense. Number of retransmitted SYN packets: TCPSynRetrans Number of socket closed due to a TCP timeout (maximum retransmission reached or keep-alive timeouts): TCPAbortOnTimeout 0win state changes: TCPFromZeroWindowAdv, TCPToZeroWindowAdv Syn cookies stats: SyncookiesSent, SyncookiesRecv, SyncookiesFailed Reused TW socket: TWRecycled. This can easily be confused with the `tcp_tw_recycle` sysctl option which doesn't exist anymore. In the kernel code, we can see it's incremented if the reuse part was successful (`twsk_unique(sk, sk2, twp)`) https://github.com/torvalds/linux/blob/19757cebf0c5016a1f36f7fe9810a9f0b33c0832/net/ipv4/inet_hashtables.c#L487-L490 So I've used `system.net.tcp.tw_reused` for this one which make a bit more sense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Collect additional TcpExt metrics
Motivation
We're lacking visibility to deep dive and troubleshoot complex network issues with datadog.
Additional Notes
Number of martian packets dropped by the reverse path filter: IPReversePathFilter
I've used
system.net.ip.reverse_path_filteras the metric name forthis one as even if it's under TcpExt, it has absolutely nothing to do
with the TCP layer.
Prune TCP queue metrics: PruneCalled, RcvPruned and OfoPruned
netstat defines PruneCalled as '%u packets pruned from receive queue because of socket' which is inexact.
This metric will count the number of called to the tcp_prune_queue and
doesn't necessarily drop packets if it manages to free enough space.
Packets dropped by PAWS: PAWSActive and PAWSEstab
PAWSActive is a confusing name. It's basically the number of dropped
SYNACK packets by the PAWS mechanism. Active is probably for "active
open", when the socket is in a SYN_SENT state.
Using
system.net.tcp.paws_connection_dropas the metric name for PAWSActive made more sense.Number of retransmitted SYN packets: TCPSynRetrans
Number of socket closed due to a TCP timeout (maximum retransmission
reached or keep-alive timeouts): TCPAbortOnTimeout
0win state changes: TCPFromZeroWindowAdv, TCPToZeroWindowAdv
Syn cookies stats: SyncookiesSent, SyncookiesRecv, SyncookiesFailed
Reused TW socket: TWRecycled.
This can easily be confused with the
tcp_tw_recyclesysctl optionwhich doesn't exist anymore.
In the kernel code, we can see it's incremented if the tw reuse was
successful (
twsk_unique(sk, sk2, twp))https://github.com/torvalds/linux/blob/19757cebf0c5016a1f36f7fe9810a9f0b33c0832/net/ipv4/inet_hashtables.c#L487-L490
So I've used
system.net.tcp.tw_reusedfor this one which makes a bitmore sense.
Review checklist (to be filled by reviewers)
changelog/andintegration/labels attached