Satmux: 3.6x faster inflight Wi-Fi via BBR TCP multiplexing
Comments
TCP multiplexer and 1-RTT HTTP/TLS relay for geostationary (GEO) inflight Wi-Fi (Inmarsat GX, Viasat, Panasonic, SITA). Pure Python 3 stdlib, zero external dependencies.
Measured inflight over Inmarsat GX Ka-band (~620 ms RTT, SITA AS206433 Amsterdam ground station):
ORIGIN (6ร PARALLEL) RAW CABIN WI-FI (:443) 1-RTT BBR + ZLIB MUX SPEEDUP
โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโ
GitHub Repo โโโโโโโโโโโโ TIMEOUT โโโโโโโโโโโโ 4.66s FIXED โ
GitHub API โโโโโโโโโโโโ TCP RESET โโโโโโโโโโโโ 2.66s FIXED โ
Hacker News โโโโโโโโโโโโ TIMEOUT โโโโโโโโโโโโ 2.28s FIXED โ
MDN Docs โโโโโโโโโโโโ 12.01s โโโโโโโโโโโโ 2.30s 5.2ร
Cloudflare โโโโโโโโโโโโ 2.97s โโโโโโโโโโโโ 1.40s 2.1ร
PyPI JSON API โโโโโโโโโโโโ 7.09s โโโโโโโโโโโโ 2.64s 2.7ร
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
6-Origin Burst: 19.13s (3/6 failed) โ 5.35s (0/6 failed) [3.6ร faster ยท -76% TTFB]
Why Non-Starlink Inflight Wi-Fi Breaks
Non-Starlink inflight Wi-Fi usually breaks on three things unrelated to raw bandwidth:
- Onboard
:443middleboxes and DNS interception. Cabin gateways intercept:53DNS and run a transparent:443split-TCP proxy (PEP) whose state table drops connections under load (Connection reset by peer/ TLS timeouts ongithub.com,api.github.com, package registries). Non-443 TCP ports pass through untouched. - Handshake round-trips (~620 ms per GEO hop). Every new origin normally pays multiple satellite round-trips (DNS + TCP + TLS) before transferring payload bytes.
- Cubic congestion collapse. Cabin Wi-Fi packet loss causes standard TCP to halve
cwndrepeatedly, leaving most of your per-seat token-bucket cap unused.
Direct (:443):
laptop โโโถ cabin DNS + :443 PEP โโ(3-4 GEO RTTs)โโโถ ground โโโถ origin (frequent TCP resets)
satmux (:8444):
laptop โโ(12 persistent TCP :8444 BBR + zlib pipes)โโโถ ground VM โโ(2 ms)โโโถ origin
- Persistent non-443 carrier pool (
:8444): Keeps 12 pre-warmed TCP connections open to a Linux VM near the satellite ground station, bypassing the cabin:443proxy and onboard DNS. Streams are scheduled onto the carrier with the lowest recent byte load so idle browser keepalives do not cause head-of-line queueing. - 0-RTT stream open (
127.0.0.1:1080SOCKS5 /127.0.0.1:8080HTTP CONNECT): ReturnsOKlocally inmux.psk && chmod 600 mux.psk
Setup
2. Ground VM: start server
scp satmux.py mux.psk root@:/root/ssh root@ 'nohup env SATMUX_PSK=$(cat /root/mux.psk) python3 /root/satmux.py server --port 8444 >/var/log/satmux.log 2>&1 &'3. Laptop: start client + enable macOS / git / gh routing
SATMUX_PSK=$(cat mux.psk) python3 satmux.py client --host --port 8444 --carriers 12 &./bin/satmux-macos on
Benchmark or run parallel range downloads:
./bin/satmux-bench./bin/satmux-get https://example.com/archive.tar.gz./bin/satmux-macos off
Restores macOS Wi-Fi proxy settings, ~/.gitconfig, gh http_unix_socket, and launchctl env vars, then destroy the temporary VM.
MIT
Comments
No comments yet. Start the discussion.