Repository navigation
ember: forward single-path ping requests from PathSelection - #27
Merged
Merged
Conversation
Add PathSelection::ping symmetrical to PathSelection::close so a custom PathSelector can request one single-path QUIC PING (noq::Path::ping) on a specific open path incarnation after select_path applies the selection. Keep iroh policy-free. Deduplicate repeated requests for the same path incarnation within one selection pass, skip disabled relays and generation mismatches, and ignore closed connections or closed paths without error. Co-authored-by: darksky <darksky@cue.surf>
Pin reported probe samples to 5 ms and 500 us after each real TLS probe round in the noise test. Enable TCP_NODELAY on CountingEntrance sockets as well. Any real-clock test of sub-10 ms gain above 20 percent has under 10 ms of scheduler headroom. On macOS CI, 5 ms timer sleeps stretched to 11.6 ms and crossed ENTRY_MIN_GAIN. Co-authored-by: darksky <darksky@cue.surf>
CommaBot
force-pushed
the
ember/path-selection-ping
branch
from
November 21, 2026 05:56
ce4b7bf to
9d1903e
Compare
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.
This pull request adds
PathSelection::pingsymmetrical toPathSelection::closeon thestillfailbranch, plus a separate test commit fixing a pre-existing scheduler-jitter failure inrelay::actor::tests.Commit 1:
ember: forward single-path ping requests from PathSelection(ba47aeff)PingTargetandPathSelection::ping(&mut self, path: &PathSelectionData<'_>)so a customPathSelectorcan request one single-path QUICPING(noq::Path::ping) on a specific open(ConnId, PathId, FourTuple)incarnation afterselect_pathapplies the selection.irohpolicy-free.RemoteStateActor::ping_pathsdeduplicates repeated requests for the same path incarnation within one selection pass, skips disabled relays and generation mismatches, and ignores closed connections or closed paths without error.STILLFAIL.md.PINGsources inselector_ping_sends_only_when_requested_and_once_per_request_and_ignores_closed_paths:.clear_ip_transports()andrun_relay_server_with(false)disable IP QNT holepunching,.mtu_discovery_config(None)disables DPLPMTUD probePINGframes,.keep_alive_interval(60s)and.default_path_keep_alive_interval(60s)suppress heartbeatPINGframes, and.initial_rtt(500ms)with zero in-flight packets prevents PTOPINGframes. Bindtarget_connandother_connexplicitly byConnection::stable_id()rather thanFxHashMapiteration order.Commit 2:
test(relay): decouple sub-10ms entrance noise test from scheduler jitter(9d1903ef)136743244581,entry_probe_noise_only_difference_keeps_backoff_to_300s(#24) stretched5 msCountingEntrancetimer sleeps to9.93-11.85 msatt = 30 sversus0.5-2.8 msonentry, crossingENTRY_MIN_GAIN(10 ms), recording a candidate, and resetting backoff from60 sto30 s.5 msand500 us(#[cfg(test)]) after each real ephemeral TLS probe exchange finishes, and enableTCP_NODELAYonCountingEntrancesockets.CPU Contention Verification (50 Interleaved Runs per Test)
Linux x86_64 (
pvg-office-1,taskset -c 0with two busy Python loops on CPU 0, GCC/BFD, dev debug disabled):ce4b7bf3/0d8d64f8)9d1903ef)selector_ping_sends_only_when_requested_and_once_per_request_and_ignores_closed_pathsentry_probe_noise_only_difference_keeps_backoff_to_300smacOS arm64 (
tokyo-mac-studio-0, 18 cores with 36 busy Python loops, dev debug disabled):ce4b7bf3/0d8d64f8)9d1903ef)selector_ping_sends_only_when_requested_and_once_per_request_and_ignores_closed_pathsentry_probe_noise_only_difference_keeps_backoff_to_300sPlease leave this pull request unmerged for review alongside the
AFK-surf/monoidpull request.Model: gemini-4-carbon (high). Tests: Rust libtest and Tokio with a Python CPU-contention harness, plus
cargo check --target wasm32-unknown-unknown --no-default-features.