perfsonar-user - Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Tim Chown <>
- To: Brian Candler <>
- Cc: Andrew Lake <>, "" <>
- Subject: Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records
- Date: Tue, 10 May 2016 12:50:27 +0000
- Accept-language: en-GB, en-US
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
Hi,
I agree this is good advice. It’s also interesting of course to directly compare v4 and v6 performance.
In summary, yes :)
It boils down to how, e.g., a getaddrinfo() lookup returns an ordered list of v4 and v6 addresses, and how applications then obtain an address to use.
For more info on this see RFC 6724, which describes both source and destination address selection heuristics, which some OSes let you influence, e.g. through /etc/gai.conf on Linux. Not all OSes implement the RFC fully, e.g. OS X has a variant of it, but
most now do. It’s an important capability when both a source and a destination may have multiple addresses, and you need a heuristic to pick the best pair.
Further, RFC 6555, “Happy Eyeballs”, describes how applications can attempt v4 and v6 connections in parallel to the same destination host; the first one completing is then used. IPv6 typically gets a few 100ms head start, to favour it. This approach was
introduced in earlier days of v6 deployment to avoid noticeable (20-30 second) timeouts if v6 was tried before v4 and v6 was not working; this isn’t really an issue today, but was very useful for the World IPv6 Day back in June 2011 (indeed Google were clever
here - they made Google services available by v4 and v6 for the day, and added Happy Eyeballs to Chrome in advance, so they could say ‘for the best experience accessing Google or any other v6-enabled services on IPv6 Day, use Chrome :)). The cost to the provider
is more incoming connections, the benefit to the user is no noticeable latency if v6 (or v4) is down.
Having said that, I don’t think Happy Eyeballs is appropriate for perfSONAR meshes, as you’d want predictable tests to be run each time, using the ipv4_only or ipv6_only options as suggested above, but it’s useful to bear in mind that many applications
now use Happy Eyeballs, including most (all?) common web browsers.
Best wishes,
Tim
|
- [perfsonar-user] Mesh where same hostname has both A and AAAA records, Brian Candler, 05/05/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Andrew Lake, 05/05/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Brian Candler, 05/05/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Tim Chown, 05/10/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Brian Candler, 05/05/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Eli Dart, 05/05/2016
- <Possible follow-up(s)>
- [perfsonar-user] Mesh where same hostname has both A and AAAA records, Brian Candler, 05/05/2016
- Re: [perfsonar-user] Mesh where same hostname has both A and AAAA records, Andrew Lake, 05/05/2016
Archive powered by MHonArc 2.6.16.