Ask HN: Internet magically gets faster when opening speedtest?
685 pointsI want to start by saying this is anecdotal, and I feel paranoid for even thinking it. But often my internet will feel very slow, so I'll open speedtest to check if something's wrong. When I do, all of my stalled tabs suddenly spring into action and finish loading.
The tinfoil hat wearer inside of me speculates that my internet provider is overloaded and throttling my bandwidth, but immediately prioritizes me when it senses that I'm trying to check if I'm getting what I pay for.
Has anyone else noticed this pattern? Is there a way I can test this more scientifically?
Comments (345) 108 threads
Earlier commentsSomething like this: alias pingspeed="ping -i 4 speedtest.net"
This could be an interesting business model for a VPN service. Host a popular speedtest and VPN endpoints on the same IP's. The challenge is to make the speedtest popular enough so ISP's will optimize for it.
Some background: If you study traffic shaping, you'll discover that TCP behaves poorly if packets are simply dropped when throughput approaches the limit (congestion collapse). So traffic shaping usually _delays_ packets rather than dropping, at least initially. This works in that TCP backs off its send rate gracefully and throughput approaches the provisioned limit. However you've now introduced a large delay into every packet's transit through the shaper box. This isn't a problem for bulk TCP flows -- they work ok in the presence of latency but it is problematic for unrelated latency sensitive traffic (e.g. UDP, SSH). To work around this problem traffic shaping usually introduces some notion of delay per flow. This can be done in a few different ways e.g. RED (random early detection), or per-flow queues.
Ok so back to Spectrum: my experience has been that their shaper box does not do anything good as far as per-flow queues, RED etc. It seems pretty basic and dumb. The result is that latency approaches infinity as throughput approaches the provisioned limit.
I work around this by deploying my own shaping on my edge router. Through experiment, I have configured it to limit at just below the threshold where Spectrum begins severely delaying my traffic. I use RED on my router to give good latency for traffic unrelated to bulk flows. You'll need a router capable of traffic shaping, e.g. Mikrotik, Linux iptraf, Cisco IOS.
Other than that, you're 100% correct on Spectrum's ridiculously high buffer sizes on their end.
[1] https://tcpcc.systemsapproach.org/aqm.html#controlled-delay
[2] https://www.bufferbloat.net/projects/codel/wiki/CakeTechnica...
All comments shown.
Couldn't load more comments. Check your connection and try again.