Skip to content

fix(golden): permanent neighbor entries in the workload's veth pairs - #359

Open
randomizedcoder wants to merge 2 commits into
mainfrom
fix/opts-b-listener-drops
Open

randomizedcoder wants to merge 2 commits into
mainfrom
fix/opts-b-listener-drops

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner
  • Flake: golden-opts-b's dual-stack listener read 0 or 1 sk_mem_info_drops.
  • Cause: right after link-up, about 1 fresh veth pair in 8 lost its first IPv6 neighbor solicitation. The 1 s ND retransmit outlasted tcp_client's 1 s dial timeout, so the tcp6 client abandoned its first attempt and dialled again. Its RST for the abandoned attempt reached the half-open request; tcp_check_req reset it and tcp_v6_rcv counted the segment on the listener (discard_and_relse).
  • Evidence: in a capture that read 1, golden-opts-a made 8 active opens for its 7 clients and sent 1 RST, and golden-opts-b counted 1 EmbryonicRsts. A guest probe over 30 fresh pairs: 4 first pings took ~1 s.
  • Fix: pair() installs permanent neighbor entries on both ends (IPv4 and IPv6). The probe then answered 30 of 30 in under 0.05 ms, and the listener reads 0.
  • Fixture: recaptured. xtcp2-golden diff against the old one shows only that listener's drops (nonzero -> 0); two captures with the fix passed all 56 rows and match each other.
  • Checks: all 19 nix checks pass.

🤖 Generated with Claude Code

randomizedcoder and others added 2 commits November 28, 2026 01:04
Right after link-up, the first IPv6 neighbor solicitation on a fresh
veth pair went unanswered in about one pair in eight (a guest probe: 4
of 30 first pings took ~1 s, the ND retransmit). On golden-opts the
tcp6 client's 1 s dial timeout then abandoned its first attempt; the
client's RST reached the half-open request, tcp_check_req reset it and
tcp_v6_rcv counted the segment as a drop on the listener. That is the
golden-opts-b IPv6 listener's 0-or-1 sk_mem_info_drops.

pair() now installs permanent neighbor entries for both ends (IPv4 and
IPv6), so no handshake waits on neighbor discovery: 30 of 30 first pings
answered in under 0.05 ms, and the listener reads 0 drops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…drops

With permanent neighbor entries in the veth pairs, no tcp6 dial is
abandoned, so the listener no longer counts the abandoned attempt's RST.
xtcp2-golden diff against the old fixture: only that listener's
sk_mem_info_drops (nonzero -> 0). Status doc and CHANGELOG record the
cause and the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant