Commit Graph
5375 Commits
Author SHA1 Message Date
evgeny e543b091ae Confirm new TCP sessions and bound reciprocal challenge retries
Negotiate new TCP sessions even when the peer epoch is known, and let the retry timer send reciprocal challenges to avoid feedback loops when confirmations are lost.

Cover peer restarts, simultaneous connects, REALITY, confirmation loss, second links, stale confirmations and deadlines. Remove forced client resets and count only validated test payloads in the UDP reconnect test.

Validation: 149 tests passed; proxy, burst and load integration tests passed; Android assembleDebug succeeded.
2026-10-12 21:29:41 +02:00
evgeny bd237670dc Reuse automatically completed profiles in the NAT fixture 2026-10-12 20:57:29 +02:00
evgeny a527f58d72 Release cold priority after a completed partial measurement 2026-10-12 20:48:33 +02:00
evgeny 816d9d8708 Wait for the actual DOWN timer in the owner-release test 2026-10-12 20:46:43 +02:00
evgeny 7c166d4667 Preserve cold NAT trials in the real network fixture 2026-10-12 20:43:39 +02:00
evgeny 068a53f99c Refresh signed socket metadata when changing the failure-test profile 2026-10-12 20:33:31 +02:00
evgeny 3139dd392f Publish the test peer profile through the instance-owned snapshot 2026-10-12 20:33:16 +02:00
evgeny c51e745cd4 Test failure recheck eligibility and coalescing on a blocked UDP peer 2026-10-12 20:33:03 +02:00
evgeny 4efb9b7305 Start a cold measurement when automatic detection is enabled 2026-10-12 20:31:45 +02:00
evgeny 9046720011 Protect cold ingress before the third routed node is announced 2026-10-12 20:29:33 +02:00
evgeny 680696b427 Log cold candidate eligibility and reservation changes 2026-10-12 20:27:34 +02:00
evgeny 15c1f869f6 Document failure recheck limits and validate requested endpoints 2026-10-12 20:26:12 +02:00
evgeny 4a5f54c8b0 Trigger NAT rechecks after direct timeout and exhausted reverse 2026-10-12 20:25:42 +02:00
evgeny 331a4aa468 Schedule bounded endpoint rechecks after compatible UDP failure 2026-10-12 20:25:20 +02:00
evgeny bf2f688d37 Cancel UDP route probes with their contexts before socket teardown 2026-10-12 20:21:02 +02:00
evgeny e1ed78decc Wait for complete NAT cycles and test an indirect private helper 2026-10-12 20:18:21 +02:00
evgeny 078fd5a4b2 Expose pending NAT candidate cycles in local diagnostic status 2026-10-12 20:17:44 +02:00
evgeny 858483f48c Document grouped control, isolated helper ports and ingress correlation 2026-10-12 20:07:49 +02:00
evgeny 7ff682799a Release received packets when cold NAT priority defers PONG 2026-10-12 20:05:47 +02:00
evgeny 39c26a4c1e Allow routed observers in the NAT integration assertions 2026-10-12 19:54:39 +02:00
evgeny d78d15f396 Keep connection-manager background pings out of cold NAT trials 2026-10-12 19:44:28 +02:00
evgeny 4272e9eb6f Test automatic detection in another group over a TCP routed helper 2026-10-12 19:30:42 +02:00
evgeny 08cbe8de9a Try controlled ingress before asking the broker for helper mapping 2026-10-12 19:27:58 +02:00
evgeny 0033442db7 Trace the first UDP contacts that affect cold NAT classification 2026-10-12 19:17:06 +02:00
evgeny af417daae7 Keep background PONG replies from contaminating cold ingress checks 2026-10-12 19:01:13 +02:00
evgeny 800fc546a6 Defer reachability probes while the first NAT ingress is protected 2026-10-12 18:50:08 +02:00
evgeny 3c02f250ff Give initial NAT measurements bounded priority without opening filters 2026-10-12 18:50:08 +02:00
evgeny 90196fe98e Isolate helper traffic from the measured working sockets 2026-10-12 18:47:54 +02:00
evgeny f85c9ca067 Keep detection attempt counters and network fixtures group-aware 2026-10-12 18:20:47 +02:00
evgeny 7256486800 Prefer untouched helper IPs and exercise NAT through real groups 2026-10-12 18:13:29 +02:00
evgeny 36624fd40e Complete grouped NAT control and cancel tasks with group lifetime 2026-10-12 18:08:47 +02:00
evgeny 4351288efa Measure helper endpoints and protect controlled UDP ingress trials 2026-10-12 17:57:22 +02:00
evgeny 7785754667 Select NAT candidates across groups and route authenticated control 2026-10-12 17:50:45 +02:00
evgeny a29860658e Define grouped NAT probe tags and a routed control service 2026-10-12 17:43:27 +02:00
evgeny 280a0ae7e6 Check desktop address rendering with compact NAT profiles 2026-10-12 17:18:23 +02:00
evgeny bbd7e80e10 Document compact NAT profiles and stable measurement lifetime 2026-10-12 17:13:22 +02:00
evgeny 627d16ca2c Invalidate changed endpoints and verify the Android address contract 2026-10-12 17:11:56 +02:00
evgeny f44cfb4847 Verify compact address snapshots, migration and Android JSON 2026-10-12 17:10:48 +02:00
evgeny 6e76a83e9c Keep STUN round diagnostics separate from published NAT profiles 2026-10-12 17:07:35 +02:00
evgeny 4db8cfa85a Test stable published profiles across repeated NAT measurements 2026-10-12 17:06:35 +02:00
evgeny 9f3dca53d6 Align socket monitoring with compact address profiles 2026-10-12 17:05:23 +02:00
evgeny 77aab42980 Retain stable NAT results and compact the address database 2026-10-12 17:04:59 +02:00
evgeny 55caeb9430 Remove time-dependent profile matching from connection setup 2026-10-12 17:01:28 +02:00
evgeny 76813da08d Use the last published address profile without a time limit 2026-10-12 17:01:02 +02:00
evgeny 53a74c3ba4 Remove measurement IDs and timestamps from NODEINFO profiles 2026-10-12 17:00:38 +02:00
evgeny 658915f356 Fix Android member details layout and address formatting 2026-10-12 16:40:40 +02:00
evgeny 614dc5ad2e Fix Android external network monitoring and startup readiness
Select frontend network callbacks for auto_sockets=android instead of opening a denied netlink monitor. Preserve monitor descriptor ownership, keep native monitoring failures fatal, and release caller config on failed Android core creation and restart.

Register ConnectivityManager before requesting startup, report readiness after SERVICE_STARTED, and refresh addresses after initialization with serialized updates and generation checks. Add regression coverage for denied netlink, socket failures, address updates, and fd=0 preservation. Record the separate cancellation issue for startup before readiness.

Validation: full check.sh passed, including proxy/burst/load integrations. Clean Android build installed successfully on SM-A525F and Q8; logcat confirms both cores initialized and entered the poll loop with external monitoring and post-start address refresh.
2026-10-12 16:01:26 +02:00
evgeny d48c895c62 Fix sockless TCP keepalive and require complete UTUN initialization
Receive keepalive through the owning ETCP link, preserve RX deadlines, and report routing metrics without TUN. Use independent netlink requests and track installed routes for rollback. Reject incomplete resource initialization and release partially constructed cores while preserving caller config ownership.

Validated startup failure and rollback, padded keepalive, standby, STCP traffic, transport lifecycle, dynamic sockets, and daemon startup. Real TUN/netlink checks passed in an isolated Linux network namespace; modified modules passed FreeBSD compilation checks.
2026-10-12 14:24:32 +02:00
evgeny aa3fa02fb9 Extend Android playback counters across long running streams 2026-10-12 12:54:13 +02:00
evgeny b26a538278 Bound audio writes and release codecs after failed initialization 2026-10-12 11:49:09 +02:00