[squid-users] New Squid prefers IPv4

Alex Rousskov rousskov at measurement-factory.com
Mon Feb 5 18:17:31 UTC 2024


On 2024-02-05 11:32, Rob van der Putten wrote:
> On 05/02/2024 17:16, Dieter Bloms wrote:
>> On Mon, Feb 05, Rob van der Putten wrote:
>>> After upgrading Squid from 3 to 5 the percentage of IPv6 reduced from 
>>> 61% to less then 1%. Any ideas?
>>
>> yes, since squid5 the happy eyeball algorithm as described in rfc 8305
>> is used. If your ipv4 connectivity is better than ipv6 than ipv4 is used.
> 
> I'm not quite sure how this is established.

See RFC 8305 for the general approach, search squid.conf.documented for 
"Happy Eyeballs" to find relevant configuration directives, and see the 
following Squid commit message for a subset of Squid implementation caveats:

https://github.com/squid-cache/squid/commit/5562295321debdf33b59f772bce846bf6dd33c26


Antony is correct that ICMP is pretty much irrelevant here. A brief 
algorithm description in Antony's response is easy to misinterpret, but 
it can be used as a rough approximation of what is actually going on.

AFAICT, we do not have a good understanding of how the implemented 
algorithm actually behaves in various deployment environments. If you 
believe your IPv6 connectivity is better than your IPv4 connectivity, 
you may want to investigate why your Squid favors IPv4.


HTH,

Alex.



More information about the squid-users mailing list