Measure M10.2c loss and head-of-line behaviour of the QUIC channels
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m46s
Foundation / checks (network) (push) Successful in 8m16s
Foundation / checks (client) (push) Successful in 12m6s
Foundation / checks (tsan) (push) Successful in 7m46s
Foundation / checks (checks) (push) Successful in 31m39s
Foundation / checks (postgres) (push) Successful in 33m28s
Foundation / postgres-tools (push) Successful in 19s
Foundation / image (push) Successful in 2m15s
Foundation / server-image (push) Successful in 18m31s

evo-quic-hol-measure sends the same 20 Hz state on the DATAGRAM channel and the
ordered reliable stream plus 16 KiB reliable messages through the impairment relay
across RTT x loss. Under 5-10 % loss the stream's p95 is 3-5.5x the datagrams' and
exceeds the 250 ms target at 100 ms RTT, confirming the ADR-0090 channel split.
The relay and tool request 1 ms timer resolution on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-03 17:25:38 -04:00
co-authored by Claude Opus 5.5
parent ca762bff75
commit 1055cc8c8f
10 changed files with 405 additions and 5 deletions
+11
View File
@@ -16,6 +16,8 @@
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
// After <winsock2.h>: timeBeginPeriod for 1 ms waits (default timer tick is ~15.6 ms).
#include <timeapi.h>
#else
#include <arpa/inet.h>
#include <fcntl.h>
@@ -201,6 +203,9 @@ UdpRelay::UdpRelay(std::unique_ptr<Impl> impl) : impl_{std::move(impl)} {}
UdpRelay::~UdpRelay() {
impl_->stop.store(true);
#ifdef _WIN32
timeEndPeriod(1);
#endif
if (impl_->thread.joinable())
impl_->thread.join();
if (impl_->client_side != invalid)
@@ -213,6 +218,7 @@ std::unique_ptr<UdpRelay> UdpRelay::start(std::uint16_t target_port, Impairment
Impairment downstream, std::uint64_t seed) {
if (!startup() || target_port == 0)
return nullptr;
auto impl = std::make_unique<Impl>();
impl->client_side = bound_udp(0);
impl->server_side = bound_udp(0);
@@ -229,6 +235,11 @@ std::unique_ptr<UdpRelay> UdpRelay::start(std::uint16_t target_port, Impairment
impl->up = upstream;
impl->down = downstream;
impl->rng.state = seed;
#ifdef _WIN32
// Delays are emulated with 1 ms waits; Windows' default timer tick (~15.6 ms) would
// add its own latency to every forwarded packet. Balanced by the destructor.
timeBeginPeriod(1);
#endif
std::unique_ptr<UdpRelay> relay{new UdpRelay{std::move(impl)}};
auto* raw = relay->impl_.get();
raw->thread = std::thread{[raw] { raw->run(); }};