Re: [v6ops] An Update to Happy Eyeballs

Job Snijders <job@instituut.net> Wed, 22 March 2017 15:18 UTC

Return-Path: <job@instituut.net>
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 22B9B127241 for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 08:18:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=instituut-net.20150623.gappssmtp.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 nv28GYFVqKKX for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 08:18:52 -0700 (PDT)
Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 147CB129494 for <v6ops@ietf.org>; Wed, 22 Mar 2017 08:18:51 -0700 (PDT)
Received: by mail-wm0-x234.google.com with SMTP id t189so41007784wmt.1 for <v6ops@ietf.org>; Wed, 22 Mar 2017 08:18:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=instituut-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bXOkXYOPgibfHsOU224tOzhB6B4jyLvnnGzUWfwzXkI=; b=M7caIVX8LYLT8Oo9+X3ethegdABzZqe9s7edii9SxJHFN6FQcJOQI1J9rwfHqEsgd4 osGohY0c8UrKLpmvwoD3ezIqv2E7/rRU+wRK7a3dUAWo5Jl5WbDZQ9YMliHnCz3poeuk BT1DMN0OzteDPVSgogfZStlbWg+ejzEU1aRIj9bTZeOJJQmr7/bsRH/+ElmqfVPPPk1w knR4ioAzOLC81CHGX2jYfXZhVKqrwO1yqVsz6u75znUkv2+yWjl4MQQOmd1TNrbZy6LX JqggOW9vJlvVPH1obcqJDFmVzOLX7KCfy/K0i6R/8iczM/xq9CsPfYO5wKhQR+ATysER 90mg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bXOkXYOPgibfHsOU224tOzhB6B4jyLvnnGzUWfwzXkI=; b=CBBPaBTWuYPjTO8CuZyva412OE9ycML3lz7E+NlzlkZzqeTUgfuBLcwov36fuNct4e wxSGqXR+2kVAEwJqvhPsYksbBZNc5VExJoRKOdZJfLfGaDrIas9d/EuYkf96D9PpqZku Rx3UGizF4kmBwCF1P1fANPlMVR5wteu0TMpDHWKo3q4Wu3QSq4yYoBkoixCCMR2qvGyj On2jwBe1Tz9htPyDmGh3jqGn2kMHdy9JMRGr4ePMaeC9WuMXjo2OgVKxNVlkUrz4s6ve VY4deHhV5jY6GxZO2w+bB2vCXsMaXVVqB90bvkQypH0gt0LqVhupu+1BKwq4Eh4Bbll1 VYaA==
X-Gm-Message-State: AFeK/H3GdVYzQ8dtzoyf2ujxa/19lqOQJwsWvUeR5y4EizVanD+aurC37NmwE4H+FoY+TZdl+835tHH+OzMQ9A==
X-Received: by 10.28.137.208 with SMTP id l199mr7991058wmd.65.1490195930455; Wed, 22 Mar 2017 08:18:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.182.162 with HTTP; Wed, 22 Mar 2017 08:18:49 -0700 (PDT)
X-Originating-IP: [88.128.80.130]
In-Reply-To: <CAKD1Yr1-WsCQviwpKTEa+ZzpojHNX57NuOLqtnjABXy81ZZySw@mail.gmail.com>
References: <148899860042.20118.391380898590855642.idtracker@ietfa.amsl.com> <A609BABB-BDF2-4CCB-8452-F489C019748C@apple.com> <m1clvfj-0000FCC@stereo.hq.phicoh.net> <ABE752F6-895B-431C-9E94-E0CD2FDDB2E3@apple.com> <m1cmTQX-0000IcC@stereo.hq.phicoh.net> <92EEB875-288D-4CF9-B81F-3B5C8EA49F53@apple.com> <CAKC-DJjeUX1rRB_e99SGJS06RoFZ6E6A8Tpj0hPAvfS6+L+XWA@mail.gmail.com> <BAEBBDCE-790E-43D7-BD2A-AE1BF9B81B34@apple.com> <20170315034622.0EAB566D1CED@rock.dv.isc.org> <CAKD1Yr2fKeJbW=q1wP8+6C-Q=WoVHYR9-HfXZ8-AjZ-_Y8ckyw@mail.gmail.com> <7ED60D6D-ED70-4543-8F8C-B670A71B44D3@gmail.com> <CAKD1Yr1-WsCQviwpKTEa+ZzpojHNX57NuOLqtnjABXy81ZZySw@mail.gmail.com>
From: Job Snijders <job@instituut.net>
Date: Wed, 22 Mar 2017 16:18:49 +0100
Message-ID: <CACWOCC8AJGFqcZWjgkhSFSsajQt0jGgM5h6VMHj4dqYp69POdQ@mail.gmail.com>
To: Lorenzo Colitti <lorenzo@google.com>
Cc: Fred Baker <fredbaker.ietf@gmail.com>, IPv6 Operations <v6ops@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/R4ff9d7VqJTbyJU6xaMXh4hMuJk>
Subject: Re: [v6ops] An Update to Happy Eyeballs
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 22 Mar 2017 15:18:59 -0000

Perhaps of interest to this group:

https://blog.powerdns.com/2014/05/21/a-surprising-discovery-on-converting-ipv6-addresses-we-no-longer-prefer-getaddrinfo/

Kind regards,

Job

On Wed, Mar 22, 2017 at 4:15 PM, Lorenzo Colitti <lorenzo@google.com> wrote:
> On Thu, Mar 23, 2017 at 12:04 AM, Fred Baker <fredbaker.ietf@gmail.com>
> wrote:
>>
>> > I think it's extremely hard to argue that waiting for an A query when
>> > you have an AAAA in cache (or vice versa) is going to reduce latency or
>> > improve user experience. You can use getaddrinfo if you want, but you're
>> > going to pay the price in terms of latency. I wouldn't call that a best
>> > practice.
>>
>> I must be missing something. If you already know the AAAA, fine. If you're
>> using the resolver's cache, what API gets you an IPv6 address other than
>> getaddrinfo?
>
>
> You don't have to use getaddrinfo to do AAAA lookups. You can use your own
> code, or even pass binary blobs to res_send if you want.
>
> getaddrinfo is not very smart. It keeps trying until it has answers for
> everything you asked it to do, and then it returns everything. That means
> that if the A query is in cache and the AAAA query is not, then you have to
> wait for the AAAA query to succeed.
>
> I think the key point here is that integrating the DNS resolver retry loops
> with the connection attempts provide latency savings.
>
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops
>