Re: [v6ops] An Update to Happy Eyeballs

Tommy Pauly <tpauly@apple.com> Thu, 09 March 2017 17:31 UTC

Return-Path: <tpauly@apple.com>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7B1E1294E8 for <v6ops@ietfa.amsl.com>; Thu, 9 Mar 2017 09:31:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.302
X-Spam-Level:
X-Spam-Status: No, score=-4.302 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JUEWmyU0ikTu for <v6ops@ietfa.amsl.com>; Thu, 9 Mar 2017 09:31:24 -0800 (PST)
Received: from mail-in2.apple.com (mail-out2.apple.com [17.151.62.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 51F91129460 for <v6ops@ietf.org>; Thu, 9 Mar 2017 09:31:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1489080684; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=winwAVrS/ZZB+buBOStP6+SPplOfbIQhNH0tpN2i1Y8=; b=kO53JAt9ZV1msERMHTPMSnup+O37OL5ze/GLQ5MgqXsvi9XOq4HNMMraoBIaF/NB ceHU58WzrEZZvgoO1uflmlGP5XJdrbX6A47bpEaV63ehvwvHxdY32+geUTazWs0m VEWJS9BDpzxQ/01zd1DNUgpx2LmVj9sa/14qUxPW3y/jjE7aScb5LqpeCZVZH2CL /OLTPX6rseuWM/o0pMnmVafrG5QVDWqZL+5ll8LOKYqpNH84Q+0beVtbTtf/MpVZ rJyX1QKojmwLC0l+8j8HmOjKYEvHTJqWXjVo42FYGy56ElJpe01sJPuA9IkogKA7 ZxpoZxLjBJBLNaQv36nZIQ==;
Received: from relay8.apple.com (relay8.apple.com [17.128.113.102]) by mail-in2.apple.com (Apple Secure Mail Relay) with SMTP id 60.19.30096.C6191C85; Thu, 9 Mar 2017 09:31:24 -0800 (PST)
X-AuditID: 11973e11-60f049a000007590-ee-58c1916c2b8e
Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by relay8.apple.com (Apple SCV relay) with SMTP id 37.59.07296.B6191C85; Thu, 9 Mar 2017 09:31:24 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from [17.226.23.61] (unknown [17.226.23.61]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OMK00DIM60BFC80@nwk-mmpp-sz09.apple.com>; Thu, 09 Mar 2017 09:31:23 -0800 (PST)
Sender: tpauly@apple.com
From: Tommy Pauly <tpauly@apple.com>
In-reply-to: <DB5PR05MB1030F0C8AA7091494BEE0C6C84210@DB5PR05MB1030.eurprd05.prod.outlook.com>
Date: Thu, 09 Mar 2017 09:31:22 -0800
Message-id: <8ACEDA77-14E6-4DA7-B1CF-1237CF956A1F@apple.com>
References: <148899860042.20118.391380898590855642.idtracker@ietfa.amsl.com> <A609BABB-BDF2-4CCB-8452-F489C019748C@apple.com> <DB5PR05MB1030F0C8AA7091494BEE0C6C84210@DB5PR05MB1030.eurprd05.prod.outlook.com>
To: Nick Chettle <nick@nccnetworks.co.uk>
X-Mailer: Apple Mail (2.3263)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsUi2FCYppsz8WCEwbdNPBZLTmxgsTh9bC+z A5PHkiU/mTz2nDzOHMAUxWWTkpqTWZZapG+XwJXxfPc7toIpChUbJr9mbGD8KNnFyMkhIWAi 8XDRa7YuRi4OIYF9jBJ75+xkgkmsuPaOFSJxkFHizsoZjCAJXgFBiR+T77F0MXJwMAvISxw8 LwsSZhbQkvj+qJUFor6fSaL75gk2kBphAQmJzXsSIUwDiZ/3M0HK2QRUJI5/28AMYnMKxEtc 334AbC2LgKrEpNkzmCFGekmcPrOWCWKrjcSJSR+hxl9ilFi1YyJYQkRAU+JG2x6om2UluhdO YwYpkhBYwSbx7fIutgmMwrOQnD0L4exZSM5ewMi8ilEoNzEzRzczz0gvsaAgJ1UvOT93EyMo sKfbCe5gPL7K6hCjAAejEg/vjOyDEUKsiWXFlbmHGKU5WJTEeYtmH4gQEkhPLEnNTk0tSC2K LyrNSS0+xMjEwSnVwHg6f+urn4dzU39bhR/+y/Rq9SqtR1fU/fiUJq6Z8jthn3C8ke79L1Zd 4UqCt9kevv1/03bekdmRK013f1H6H2oUd21nmpuQ9kInzY3s8aqiD222RL1uYZ+X8DSWfb/V u6SvUS1RplrbRP9Nfl58X3BS6U1W7Utzi7wbdXpcW9Z/XCChtT/D6owSS3FGoqEWc1FxIgCb Oo5fTQIAAA==
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42IRbCgO0M2ZeDDC4OI3VoslJzawWJw+tpfZ gcljyZKfTB57Th5nDmCK4rJJSc3JLEst0rdL4Mp4vvsdW8EUhYoNk18zNjB+lOxi5OSQEDCR WHHtHWsXIxeHkMBBRok7K2cwgiR4BQQlfky+x9LFyMHBLCAvcfC8LEiYWUBL4vujVhaI+n4m ie6bJ9hAaoQFJCQ270mEMA0kft7PBClnE1CROP5tAzOIzSkQL3F9+wEmEJtFQFVi0uwZzBAj vSROn1nLBLHVRuLEpI9Q4y8xSqzaMREsISKgKXGjbQ8TxM2yEt0LpzFPYBSYheTSWQiXzkJy 6QJG5lWMAkWpOYmVFnqJBQU5qXrJ+bmbGMGBWJi2g7FpudUhRgEORiUe3hnZByOEWBPLiitz DzFKcDArifCe7gMK8aYkVlalFuXHF5XmpBYfYqwCemAis5Rocj4wSvJK4g1NTAxMjI3NjI3N TcypIqwkzsu8bG+EkEB6YklqdmpqQWoRzHImDk6pBsZp+yZ8+pV8Z030hIsbY0J7ws89Z5qj drVyavzjfY9W5LHFBa5qqmhO28D38cebEL2Hs0VmHFzrafV/ktGKZ10s3i/LHJ7c8/2gEXA0 IWG/TWxt1sY5TXWh+6/nCt5/4CfJJrhHojD7wanZfd2eITM67yknZytx3k52cOA3ZI0QXNHJ 46HEHa3EUpyRaKjFXFScCAB6m3oqnwIAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/6szbzCYkSAb7b_UaOWkdxiuYu78>
Cc: IPv6 Operations <v6ops@ietf.org>
Subject: Re: [v6ops] An Update to Happy Eyeballs
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Mar 2017 17:31:26 -0000

Hi Nick,

We can clarify the text to make the distinction clearer.

This case refers to the sending of A and AAAA queries to your DNS server:

> Both queries SHOULD be sent on the wire as
>   close together as possible, with the ordering being dictated by the
>   system's host address preference policy.

The second case refers to which DNS server we send to, if we have both an IPv6 address for a DNS server and an IPv4 address for a DNS server:

> In keeping with the Happy Eyeballs approach,
>   queries SHOULD be sent over IPv6 first.

So, to summarize:
- Choose which DNS server to talk to first if you have multiple; prefer IPv6 if you have no better information that's what your system prefers
- When you send queries to that server, send both A and AAAA close together, and if your system prefers IPv6, send the AAAA first.

Thanks,
Tommy 

> On Mar 9, 2017, at 9:22 AM, Nick Chettle <nick@nccnetworks.co.uk> wrote:
> 
> Hi David,
> 
> It looks good, thanks for sharing what you've learnt.
> 
> I just have one question, when talking about the DNS query in section 2 you say:
> 
> Both queries SHOULD be sent on the wire as
>   close together as possible, with the ordering being dictated by the
>   system's host address preference policy.
> 
> Then when talking about DNS server selection in Section 2.1 you mention that:
> 
> In keeping with the Happy Eyeballs approach,
>   queries SHOULD be sent over IPv6 first.
> 
> Are these statements slightly contradictory or should DNS queries relate to the host policy while DNS server selection always uses IPv6 first?
> 
> Thanks, Nick
> 
> 
> 
> 
> 
> ________________________________________
> From: v6ops <v6ops-bounces@ietf.org> on behalf of David Schinazi <dschinazi@apple.com>
> Sent: 08 March 2017 19:25:29
> To: IPv6 Operations
> Subject: [v6ops] An Update to Happy Eyeballs
> 
> Hi v6ops,
> 
> Tommy Pauly and myself have written up what we've learned
> in the past few years maintaining and improving Apple's Happy Eyeballs stack,
> and submitted it as draft-pauly-v6ops-happy-eyeballs-update.
> 
> You'd love to hear your feedback!
> 
> Thanks,
> David Schinazi
> 
> 
> Begin forwarded message:
> 
> From: internet-drafts@ietf.org<mailto:internet-drafts@ietf.org>
> Subject: New Version Notification for draft-pauly-v6ops-happy-eyeballs-update-00.txt
> Date: March 8, 2017 at 10:43:20 PST
> To: Tommy Pauly <tpauly@apple.com<mailto:tpauly@apple.com>>, David Schinazi <dschinazi@apple.com<mailto:dschinazi@apple.com>>
> 
> 
> A new version of I-D, draft-pauly-v6ops-happy-eyeballs-update-00.txt
> has been successfully submitted by David Schinazi and posted to the
> IETF repository.
> 
> Name: draft-pauly-v6ops-happy-eyeballs-update
> Revision: 00
> Title: An Update to Happy Eyeballs
> Document date: 2017-03-08
> Group: Individual Submission
> Pages: 7
> URL:            https://www.ietf.org/internet-drafts/draft-pauly-v6ops-happy-eyeballs-update-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-pauly-v6ops-happy-eyeballs-update/
> Htmlized:       https://tools.ietf.org/html/draft-pauly-v6ops-happy-eyeballs-update-00
> 
> 
> Abstract:
>  "Happy Eyeballs" (RFC6555) is the name for a technique of reducing
>  user-visible delays on dual-stack hosts.  Since one address family
>  (IPv4 or IPv6) may be blocked, broken, or sub-optimal on a network,
>  clients that attempt connections for both address families in
>  parallel have a higher chance of establishing a connection sooner.
>  Now that this approach has been deployed at scale and measured for
>  several years, the algorithm specification can be refined to improve
>  its reliability and generalization.
> 
> 
> 
> 
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org<http://tools.ietf.org>.
> 
> The IETF Secretariat
> 
> 
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops