Slow internet requests due to IPv6
Lately, after last full system upgrade, I noticed that loading webpages in Chrome is considerably slower. When ever I type in a URL or click a link, the Chrome is stuck for a few seconds with "Processing request..." in lower left corner. Fortunatelly, this already happened to me a few years ago - it is caused by IPv6 enabled, i.e. disabling it solves the problem. My question is why is this happening, and why it works OK for several years and then I have to again switch off IPv6 support because it delays requests (I suspect that the network stack is first trying to get IPv6 address and waits a few seconds before timing out). It is very annoying and I would say unusable for daily work, hopefully I don't need IPv6 for anything. Maybe it is caused by my ISP, TBH I did not investigate because I quickly solved it by disabling IPv6 in Arch linux. Do you guys experiencing similar behavior, when IPv6 is enabled?
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- e41o6h
9 comments
Is it trying to use an ipv6 dns server but timing out? That happened to me, because my ipv6 wasn't working and would try that dns server before falling back to ipv4
Yeah, IPv6 doesn't work so well on some ISPs. My internet connection improved considerably when I switched to IPv4 only.
:(
A lot of routers shit the need when you turn on dual stack. The carrier grade stuff your isp uses is almost never to blame.
No, it was definitely the ISP's fault - used wireless connection directly to the ISP's router, and after that it's all ISP's hardware.
I've had similar issues when my router was incorrectly advertising upstream IPv6 support. I'd switched ISPs — the old one having full IPv6 support and the new one does not — and for some reason by router insisted on advertising the old ISP's IPv6 range I'd been delegated to have. Then the computers on the network were auto-configuring for IPv6 addresses, but communication to the internet would obviously fail. The solution was to get my router to stop advertising, and then everything worked as expected. (There are still link-local IPv6 addresses on the computers, but no global addresses, so nothing tries to do DNS or generic communication via IPv6.)
That's effectively disabling IPv6. Instead, you should fix your IPv6 to use it when it's available.
I mean, that's what I did. There is no upstream IPv6 connection, so the router shouldn't have been advertising it. It was remembering the previous ISPs delegated domain and ignoring the fact that reconnecting to a new ISP should have invalidated the information. I had to go through a squirrely incantation of setting manual IPv6 information, disabling IPv6, resetting to auto configuration, and re-enabling again because the router OS is a piece of shit, but it's eventually all consistent again (and willing to accept a new IPv6 delegated domain should one be advertised from my ISP in the future).
I wasn't advocating for disabling — rather, I was trying to stress that apparently some routers are awful and just fail to do their jobs properly if you've recently reconfigured something.
Most client software uses some smart strategy to quickly connect via IPv4 or IPv6, whatever is supported best. This is usually much more sophisticated than just "try IPv6, then try IPv4 after a timeout". See "happy eyeballs" for example.
I have IPv6 enabled and connection establishment is quick both for IPv4-only and IPv6-enabled hosts. In my experience, problems mostly occur when the website admin or your ISP screwed up. Some ideas to troubleshoot the issue:
You need to fix your IPv6, not disable it. Per facebook and linkedin, IPv6 is ~15% better performance than IPv4.