Documentation
¶
Overview ¶
Command spike-latency-proxy inserts a known, symmetric delay in front of a TCP service so the remote-host spike can be measured at WAN round trips without a WAN.
It exists because the honest LAN and Tailscale numbers turned out to be the same number: Tailscale negotiated a direct path over the same local network, so the "VPN hop" measured 8ms like everything else. Two identical columns answer nothing about how a proxied control-mode pane behaves at 60 or 150ms, which is the range that actually decides whether this feature feels local.
A deterministic shim is also better evidence than a real WAN would be: the number is reproducible, so a later Herdr bake-off compares against the same conditions rather than against whatever the internet was doing that day.
It adds latency only. It does not model jitter, loss, or bandwidth limits — naming that plainly matters, because a reader who assumes otherwise will over-trust the throughput column.
go run ./scripts/spike-latency-proxy -listen 127.0.0.1:2222 -target marcusbook-pro.local:22 -rtt 150ms
Then point ssh at the listener. Each direction is delayed by half the configured RTT, so a request/response pair pays it once.