Skip to content

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?

7 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 100% up
Kind
Text
ID
e41o6h

Author

1
posts
4
comments
0
media
View profile

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

5 points

Yeah, IPv6 doesn't work so well on some ISPs. My internet connection improved considerably when I switched to IPv4 only.

:(

1 points

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.

2 points

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.

2 points

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.)

1 points

That's effectively disabling IPv6. Instead, you should fix your IPv6 to use it when it's available.

1 points

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.

1 points

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:

  • The developer console (F12 in Chrome and Firefox) has a network tab with detailed timings, it also includes DNS resolution.
  • curl -v is another option if you're not familiar with the developer console, although less detailed.
  • Try websites such as http://ipv4.ident.me (IPv4-only), http://ipv6.ident.me (IPv6-only) and http://ident.me (dual-stack) to see what kind of websites cause issues.
1 points

You need to fix your IPv6, not disable it. Per facebook and linkedin, IPv6 is ~15% better performance than IPv4.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.