Re: [v6ops] An Update to Happy Eyeballs

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 22 March 2017 22:22 UTC

Return-Path: <brian.e.carpenter@gmail.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 1FEA8129514 for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 15:22:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 CSw7-rnuamba for <v6ops@ietfa.amsl.com>; Wed, 22 Mar 2017 15:22:10 -0700 (PDT)
Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 32FE5127735 for <v6ops@ietf.org>; Wed, 22 Mar 2017 15:22:10 -0700 (PDT)
Received: by mail-io0-x22b.google.com with SMTP id z13so72847613iof.2 for <v6ops@ietf.org>; Wed, 22 Mar 2017 15:22:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bIH69a+Q2pz3uw7NPxnRQKKFG1knVLTL9MzFxfv0L6o=; b=AjM6OmhJuy7KkBO8pug0SafO6zu4pd/2b60mHE02BkK4ZFo0Rub5wRXi7+/6bfJIhl uMj5JgbciXL8Q4vWzWdJxVrjdku2+Uy2IeF2TTjQ5WqqcXKa/qIU7cPcMDCx+glQ/hDz a4Knlrgm8qGvVJFkVGwMidJyytjWrvpu9qfnMmGoOzyfJ/HqiDwS5xfS9iYotADsJ1dl 05UankFT98OARcn00hsLSVWwk4C1LggE3UH4MD5GGgAtyxKWw/BmEkGUsAWh/hZnEoVC UisXDscqj4wnem0wuGdwUL1Of1cVkjaHFiXeqF3+w2k26rGet1eboN+Kx6SB57eRZhed slcg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=bIH69a+Q2pz3uw7NPxnRQKKFG1knVLTL9MzFxfv0L6o=; b=uJdJSJb3L5miggmw9YYy6AnpPKSLbkj3pU4n2BzZV1DDrjwx5XPA8ZsiSf35GI1FK5 3aMilGCP7gf+A3bLqdGQ/XDCQki7H2+n9dO/HRcmlj48HQFEjVucVW6moQDv4D83Sfhs Sn9KAWgeDqkIiMfd/gJc77LAZnPAft1QslwU5RcEt8eqINExP1nTuRlmsEU9XQnqxegF 5lhJM6HFYa/PY7mgexCYIN4jdFj1OSZ5C0NMLAiUbDzU3b/IjFJJkgFWAreaPt4Casze OgAoOYZE2NSXVRmRXVTMFMwbY6b0EeJ0E+dgwt3TBLp8t3JtDVM4Z5qqfxzMGUDJ7g4H TxTA==
X-Gm-Message-State: AFeK/H2AtOuVPq96uu7wgvztehhdhz6Y+owyuhkZ8bgwptbgqFJyXHN1ZUoR847oIl4S6Q==
X-Received: by 10.107.134.36 with SMTP id i36mr46927281iod.192.1490221329597; Wed, 22 Mar 2017 15:22:09 -0700 (PDT)
Received: from [172.16.11.95] (50-76-68-137-static.hfc.comcastbusiness.net. [50.76.68.137]) by smtp.gmail.com with ESMTPSA id s21sm787246ite.0.2017.03.22.15.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 15:22:08 -0700 (PDT)
To: Job Snijders <job@instituut.net>, Lorenzo Colitti <lorenzo@google.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> <CACWOCC8AJGFqcZWjgkhSFSsajQt0jGgM5h6VMHj4dqYp69POdQ@mail.gmail.com>
Cc: IPv6 Operations <v6ops@ietf.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <04a8b752-b5ae-020b-134e-aa365fea4261@gmail.com>
Date: Thu, 23 Mar 2017 11:22:15 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <CACWOCC8AJGFqcZWjgkhSFSsajQt0jGgM5h6VMHj4dqYp69POdQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/hdHeG0UMm07P8VU0RgWMrffv_cQ>
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 22:22:12 -0000

On 23/03/2017 04:18, Job Snijders wrote:
> 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/

What a bizarre idea to use getaddrinfo() for format conversion, when inet_pton() and inet_ntop() exist.

My sympathy is limited.

   Brian

> 
> 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
>>
> 
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops
>