Re: [v6ops] An Update to Happy Eyeballs

Lorenzo Colitti <lorenzo@google.com> Wed, 22 March 2017 15:15 UTC

Return-Path: <lorenzo@google.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 F3538129548 for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 08:15:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 jvzFRxRcR2zL for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 08:15:38 -0700 (PDT)
Received: from mail-vk0-x22d.google.com (mail-vk0-x22d.google.com [IPv6:2607:f8b0:400c:c05::22d]) (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 40AA4126C22 for <v6ops@ietf.org>; Wed, 22 Mar 2017 08:15:38 -0700 (PDT)
Received: by mail-vk0-x22d.google.com with SMTP id j64so113191315vkg.3 for <v6ops@ietf.org>; Wed, 22 Mar 2017 08:15:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oByw8eyVEEeF3LiffCBHO+LkdPPgbE5gthHM9CXF5Rw=; b=YF2kthunPEczM6TkRHDyqDT3rrSBisOlz2qX8Uw4fUoPAz3DdCCEXVF8DdF6QOqrXd YfA5/OSNdYdg0UInoLhZ4MtTr+SdokDfROoC2M3/akV87JAn1EHPdtvTAPLk8+fsGQrP IBZNoV5/5IXE+WiWwkxHJ0QrUkvDOyP2g1RUWQQNV5aPDN3+q+oq5cA6d5JbZUM58cBG F6lWCLVrOL//JtUXTQVhv9pD+F3WiJk+So18mtwasxrJxWdCRmrpdMHHcovbQBNP9J1X B6Fdo1czExOeg0QRhqaPZGHywplMZBxzt9sZO0yCeKhGCKbfEGBE7fCWMaoX5gRUZrdW k5hg==
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=oByw8eyVEEeF3LiffCBHO+LkdPPgbE5gthHM9CXF5Rw=; b=iVAKVW3yWPdDUeANLpa4Pz9Q7vq2pJuXHiQFa790gD0TV/BeiL65IHNbqTXzC1GwlW nHlr51xem3iWEMQL8xi+aX/R9rAa4k7dCCaT5y0bZ5tcPQPxgfL5+dNdThZy2lUoXfrJ RsnFQQBkUbIl0DenlYyIwDCz8IyaSxRrHv/Loe8M1u65zkRLa7etGIiRDyTXZOk8p+8k jT0xstliUN36s9biqKYNKU2U5b/qSQ/n7UWY6drG1q018cDnqhZx7coaZtgqqj+POdIj OzbsVBuPNCvF6qbVHykMaii3t9hUTWuQrCZVQc79PSXhULi4GxtzVd3Szy15BRNeTmXR /mfA==
X-Gm-Message-State: AFeK/H1d93tI8NoukBR4CqR3jS0rqmuu8tpvumJqDUF6yd2rLGoEBa6KR23ty84uiKfkg4Qd51rxjqmuybTIGvJr
X-Received: by 10.31.68.197 with SMTP id r188mr9387359vka.45.1490195737015; Wed, 22 Mar 2017 08:15:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.155.211 with HTTP; Wed, 22 Mar 2017 08:15:16 -0700 (PDT)
In-Reply-To: <7ED60D6D-ED70-4543-8F8C-B670A71B44D3@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>
From: Lorenzo Colitti <lorenzo@google.com>
Date: Thu, 23 Mar 2017 00:15:16 +0900
Message-ID: <CAKD1Yr1-WsCQviwpKTEa+ZzpojHNX57NuOLqtnjABXy81ZZySw@mail.gmail.com>
To: Fred Baker <fredbaker.ietf@gmail.com>
Cc: Mark Andrews <marka@isc.org>, IPv6 Operations <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="001a1138efd08d8530054b533b82"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/8kMtxFZ0knokH0IUsdXx_hQ3vZg>
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:15:40 -0000

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.