Files
tsunagi/crates/tsunagi-awg
Aleksandr Bogomiakov b47acb8321 Fix peer speed measurements and fit compact traffic counters
A slow first download could make the rate search settle around 60 Mbit/s
on a much faster link. A final faster train could also exhaust the byte
budget before its feedback reached the sender. Reprobe above the first
apparent limit and use unique payload actually delivered over sustained
sender and receiver intervals. Count each submitted packet even when the
tunnel is backpressured, and keep the unused part of the pacing batch
available. The five-second deadline, metered limits and v1 wire format
remain compatible with existing peers.

Show achieved Mbit/s in the devices list and describe a lower bound in
the tooltip. Reserve a font-measured TX/RX width independent of changing
byte counts on narrow desktop windows and landscape Android. Support
counters through exabytes and retain exact packet counts. Align the
application, Android and Nix versions for 1.0.7.

On a shaped 300/250 Mbit/s path with a cold download, the regression
measured 295/247 Mbit/s after the fix and 59/244 on 1.0.6. The suite
also covers trailing feedback, local tunnel pressure and compact layouts
at multiple font sizes and display densities. Mixed 1.0.6/1.0.7 speed
sessions completed in both roles. Two unmetered runs over real WireGuard
on loopback measured 251 and 250 Mbit/s down and completed both directions
in 3.0 and 3.1 seconds.

On macOS arm64, workspace formatting and strict Clippy passed, and the
locked all-targets suite passed 646 tests with six opt-in tests ignored.
Cargo also reported the existing directories manifest warning. The GNU
Windows workspace cross-check and Android arm64 debug APK build passed.
2026-11-25 20:46:43 +02:00
..