
The TCP-over-TCP Tax: An Architectural Autopsy
IT InstaTunnel Team Published by our engineering team The TCP-over-TCP Tax: An Architectural Autopsy The TCP-over-TCP Tax: An Architectural Autopsy Your tunnel isn’t slow because of your ISP; it’s slow because your packets are stuck in a “double-retransmission” loop. To a systems engineer, high-speed fiber feels like a dial-up connection the moment you wrap a TCP stream inside another TCP stream. This phenomenon, known in networking circles as the TCP-over-TCP Tax (or more dramatically, the TCP Meltdown), is a classic architectural anti-pattern. In this autopsy, we will dissect the mathematical and algorithmic reasons why SSH tunnels, OpenVPN-TCP, and other nested TCP architectures fail under even minor packet loss, and why modern alternatives like WireGuard and QUIC are the only cure for “sluggish” tunnels. The Anatomy of Encapsulation To understand the tax, we must first look at the stack. When you run an SSH tunnel or a TCP-based VPN, you aren’t just sending data; you are encapsulat
Continue reading on Dev.to
Opens in a new tab


