Repository navigation
Require destination confirmation before reporting a path MTU - #159
Merged
Merged
Conversation
A reported MTU below the protocol minimum is invalid (RFC 8201 §4), and one below an already confirmed size contradicts it. Count either as a failed probe instead of aborting the search, so a bogus hint cannot end PMTUD unconfirmed. Update the PMTUD algorithm description in ARCHITECTURE.md to match.
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.
PMTUD could report an MTU without confirming that any packet of that size reached the destination: the first router hint completed discovery immediately, all-timeout searches assumed the protocol minimum worked, and intermediate ICMP errors counted as success. Continue probing after size hints, track a separately confirmed size, require two destination Echo Replies, and leave the result unconfirmed when delivery cannot be demonstrated. Local EMSGSIZE handling follows the same state machine; IPv6 port-unreachable is no longer mistaken for IPv4 fragmentation-needed.
The TUI now shows
MTU: unconfirmedfor a finished search without a result. JSON adds a defaultedconfirmed_sizefield and preserves old recordings. Documentation explains the configured ceiling, 8-byte tolerance, and conservative behavior under loss/filtering.Validation: full build/test suite, strict all-target Clippy, formatting, private-item rustdoc, and Rust 1.88 check passed. Regressions exercise successive 1400/1320-byte router limits, IPv4/IPv6 total timeout and local size errors, an explicitly confirmed IPv6 floor, intermediate replies, non-destination Echo Replies, and old JSON. Validation is deterministic; live router/kernel behavior still merits manual testing across supported platforms.
References: RFC 8201 §3 explains repeated reductions for successive bottlenecks; RFC 8899 informs positive probe confirmation. This remains ICMP Echo probing and does not claim full datagram DPLPMTUD compliance.