Confirm peer data paths and fit the Devices window to its roster

Measure the encrypted round trip to each reachable peer using the existing overlay echo, including over mesh relays. Keep the last sample during a new probe or one missed reply. Clear it when the route or addresses are lost or two probes time out. Exclude these packets from application counters and idle activity. Ready and Idle require a confirmed path and a usable key.

Require a verified data path before a speed test can send, and let a responder finish its first echo if the initiator is ready first. Keep the payload on the encrypted tunnel and reserve time for reliable feedback within the five-second deadline. Native TCP TLS now prefers 9442, advertises the actual bound port and honors explicit overrides. Existing wire versions remain compatible.

Extend the network and peer traffic plots to the right edge. Set the initial Devices height from the roster and row spacing, bounded by the monitor and a 260–780 point range. Subsequent snapshots preserve manual resizing.

Validated on macOS arm64 with workspace formatting, strict Clippy and the locked all-targets suite (692 passed, 8 ignored by default). Also ran the opt-in 120-second WireGuard rekey test. Coverage includes a real three-agent relayed speed test, control-only rejection, delayed control feedback and resized egui frames. Cargo emitted a manifest warning about the existing directories dependency.
This commit is contained in:
Aleksandr Bogomiakov committed 2026-11-26 17:13:56 +02:00
1 parent a966152143
commit 87fa83e482
27 files changed
+772 -299

No files matched your search

+15 -6
View File
@@ -136,8 +136,11 @@ The **Shoes** family adds two embedded TCP carriers. `vless-xhttp` uses VLESS
over XHTTP stream-one with HTTP/2 and pinned TLS 1.3 (preferred port 9443).
`ss2022` uses Shadowsocks 2022 with AES-128-GCM or AES-256-GCM (9444).
Peers agree fresh credentials over their authenticated control connection on
every attempt. The agent runs both listeners itself. Override their ports with
`tsng up -o vless-xhttp:port=10443 -o ss2022:port=10444`.
every attempt. The native `tcp-tls` listener prefers TCP 9442. To use all three
on a public server, allow inbound TCP 9442–9444. For a second agent on the
same host, set its listeners explicitly, for example
`tsng up -o tcp-tls:port=10442 -o vless-xhttp:port=10443 -o ss2022:port=10444`,
and allow TCP 10442–10444 for that instance.
With two updated peers, `tcp-tls` and both Shoes carriers try the opposite dial
direction if the first fails. One reachable TCP listener suffices. If neither
@@ -163,7 +166,10 @@ buttons change it. Hover or tap the information icon for protocol details. **Sho
Tsunagi versions. On Android, tap a device to see its version and traffic.
Select a peer’s speedometer in **Devices** to measure download and upload
through its current encrypted mesh path. The cell shows live rates in Mbit/s.
through its current encrypted mesh path. A test becomes available after a
round trip to the peer succeeds over that path, directly or through relay
members. The control connection coordinates the test and returns its results.
Only packets received over the data path count towards the rate in Mbit/s.
Select the result to test again, or use **Test exits** to check the network’s
online, compatible exit nodes one at a time. The test ends at the peer, so its
Internet uplink beyond that peer is outside the measurement. Hover or long-press
@@ -182,9 +188,12 @@ initiator. These ceilings count probe IP packets before tunnel overhead.
Adjacent peers need a common external transport at the same wire version.
Peers that both support link comparison probe another mutually enabled transport
while traffic continues on the current one. They can switch to a faster healthy link.
`tsng status` and the tray show the direct data link's measured RTT separately
from the control connection's RTT. A mesh relay's first-hop RTT cannot measure
the round trip to the destination.
`tsng status` and Devices show the round trip of an encrypted probe to the
destination, including any mesh relay hops. The previous measurement stays
visible while the next probe is in flight. Losing the route or missing two
consecutive probes clears the measurement. Devices shows **Ready** or **Idle**
only while the data path is confirmed and the tunnel has a usable session key.
Control RTT is shown separately.
Selection applies to this device's incoming and outgoing data links; control and
discovery are independent. A relay's next hop may use a different transport.
Every pair uses one internal WireGuard cipher, hidden from these controls.