Re: [v6ops] enable-ula.py

Bob Harold <rharolde@umich.edu> Mon, 16 May 2022 12:15 UTC

Return-Path: <rharolde@umich.edu>
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 851ACC1850CF for <v6ops@ietfa.amsl.com>; Mon, 16 May 2022 05:15:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.852
X-Spam-Level:
X-Spam-Status: No, score=-0.852 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=umich.edu
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KWIhABKhT87d for <v6ops@ietfa.amsl.com>; Mon, 16 May 2022 05:15:35 -0700 (PDT)
Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3427C1850C9 for <v6ops@ietf.org>; Mon, 16 May 2022 05:15:35 -0700 (PDT)
Received: by mail-yb1-xb30.google.com with SMTP id j84so15749208ybc.3 for <v6ops@ietf.org>; Mon, 16 May 2022 05:15:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J2x1CLwFTyirrr4A7Ko3WcOLGbMvpL/XOsAD17/uhxA=; b=hUL1dQ4QmPE5EMhhTlV6Bm90LsvcmO7fTPuoT5REagNRScm5qgGWGeDMkpWdPvgpPv MKnVW3NNsTGDDwHpPvHfj7wGx2Z0qF+2MWAdbLzn7syefNS/GisjoGIRAexV5AFFawvz olCzfTRKPWRkW1IHg8+oCp1va544cBedVJkYIm6OIddXFkqpIUnxfKcSPFdF44q/ixev +1rUAmGUOYaGllDPJyUlAoIa4wBwAgmvgUJXCCk62jvCpils165URjA7WxpIzz7KXcdB qIKnZkEwymuJt4veJj2jqL2iyOfQYwnnMVa/brQQqoBB0pp9jtjU+hOWiSFW3cAu1h5e 0wIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J2x1CLwFTyirrr4A7Ko3WcOLGbMvpL/XOsAD17/uhxA=; b=WerjVxC5k74fvE4JL45x5skyGwq5X6ekEpKz5TPxZzN0FYiHnPvZkmAx1ipPfFCkET BCXDQP5XkfI+gANEPLCl61L0w5STnLqJ2zIp7gT6u+6MlbeeZM5f7/yXwCZ6/2OVpCkh zpr/jtEVk725CFNqVmPmnhz5fdnbpOPcGCc9joDQ5LGES+GiniXH6FuiIsF+IxRUw6cx k7I//XfPrqud/D4ipi6cpXOR5QAMErogAoM7QwBnOA7dJKrMw318eT1k3f0zmYzhmJ2p QyI9v1hRp8kKKNUKQCrhgWf8CesWO62h8QrfWtT5KzQhS9JEnqCtJ1EVmc9udQfo6bMe xk2g==
X-Gm-Message-State: AOAM532z8UpuMhMykMPwRjgBp4zSDm5BZ/Df+Z4rz9K2/hXvjcOMYcLd wbUYCl7KJ5O+IiDkKJdMLpT4ufktHKdsrjqAKzDwahoV7BE=
X-Google-Smtp-Source: ABdhPJxM+MHLcbv3OGdnz7XhvLC9vqXUJUQAsiCGqy4pJRVzAvQ/HzJcnQL6apS4/zqz+cYNOyEIypNSW2PA/oyrBgE=
X-Received: by 2002:a25:d312:0:b0:64d:74b9:5caa with SMTP id e18-20020a25d312000000b0064d74b95caamr8704590ybf.37.1652703334055; Mon, 16 May 2022 05:15:34 -0700 (PDT)
MIME-Version: 1.0
References: <c52c20ee-772c-3c4c-b87f-e76de7d157a9@gmail.com> <cbe52294-48c7-07f3-9d08-c0a68f56f637@gmail.com> <fd0b026e289b4e11a6636d1942c34315@huawei.com> <f978a0bd5771429381258e81541add98@huawei.com> <73b15db0-ab2b-8f13-0b59-106e177667c7@gmail.com> <03bdac98e61046b790afd433fcb0ffdc@huawei.com> <27ca530a-0897-e615-b990-dd88ec22b2bc@gmail.com> <88496827-EDA5-4B19-8FE5-1D40973BB3F8@employees.org> <m1npQwn-0000IKC@stereo.hq.phicoh.net> <b3fdbf49-7c85-82d4-0e51-e7f02e3a524a@gmail.com> <m1nqJ4t-0000IkC@stereo.hq.phicoh.net> <CAO42Z2zOb9Hf1rR05EuTLthALA5X61HMwxm0E-M8VL8dnc-fjw@mail.gmail.com>
In-Reply-To: <CAO42Z2zOb9Hf1rR05EuTLthALA5X61HMwxm0E-M8VL8dnc-fjw@mail.gmail.com>
From: Bob Harold <rharolde@umich.edu>
Date: Mon, 16 May 2022 08:15:23 -0400
Message-ID: <CA+nkc8DFM2_BycPLG6sGfvg9qVfNGnUJhw0vfhGHn7zdxFWr-A@mail.gmail.com>
To: Mark Smith <markzzzsmith@gmail.com>
Cc: Philip Homburg <pch-v6ops-11@u-1.phicoh.com>, v6ops list <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000025583b05df1ffb26"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/BuceJwiHHeVjb2EZSuMxlorLUDY>
Subject: Re: [v6ops] enable-ula.py
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.34
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: Mon, 16 May 2022 12:15:40 -0000

On Sun, May 15, 2022 at 6:51 PM Mark Smith <markzzzsmith@gmail.com> wrote:

> Hi,
>
> On Mon, 16 May 2022, 04:35 Philip Homburg, <pch-v6ops-11@u-1.phicoh.com>
> wrote:
> >
> > > The goal is noble. I think that making it general-purpose, in the
> > > way that the socket API is general-purpose, will be very hard. Will
> > > it become the standard answer to all relevant questions on Stack
> > > Overflow?
> > >
> > > So, despite that effort, and all Eduard's arguments, I think that
> > > the best we can do here is focus on making RFC6724 work better.
> > > Even that requires getting getaddrinfo() developers to work for
> > > us.
> >
> > Getaddrinfo is important for two reasons:
> > 1) It is all we have, and it is unlikely we will get something better.
> > 2) There is a lot of code that uses getaddrinfo and then follows with a
> >    synchronous loop over the struct addrinfo entries.
>
>
> I think the more fundamental issue is that default DNS resolver and
> TCP transport layer protocol connection establishment timeouts are
> terribly un-user friendly these days. They would have been back in the
> 80s too when they were chosen, so I'm not sure what motivated them
> being so large.
>

Back then, there were modem links that auto-dialed when there was traffic,
and that took a while to make a connection.  Computers and links were much
slower back then.  Yes, we should update the timeouts, but there was a
reason why they were set that way.

-- 
Bob Harold


>
> For example, on current Fedora Linux, a TCP connection to a
> destination that doesn't exist took 2 minutes and 12 seconds to
> timeout:
>
> [mark@opy ~]$ date; telnet 8.8.8.9; date
> Mon 16 May 2022 08:24:50 AEST
> Trying 8.8.8.9...
> telnet: connect to address 8.8.8.9: Connection timed out
> Mon 16 May 2022 08:27:02 AEST
> [mark@opy ~]$
>
> Going by "Response Times: The 3 Important Limits" (
> https://www.nngroup.com/articles/response-times-3-important-limits/ )
> an application connection attempt should take no more than 10 seconds
> before the end-user gets some feedback either on progress or that it
> has failed.
>
> So I think the goal for connection attempting the average number of
> DAs that getaddrinfo() returns needs to be a total of 10 seconds. Much
> lower DNS timeouts and TCP etc. connection timeouts would facilitate
> sequential connection attempts within a much more user friendly time
> period.
>
> I realise that this WG is not the place to solve DNS and transport
> layer timeouts, however I think it is an impossible thing to solve
> entirely with IPv6 SA/DA address selection changes and getaddrinfo()
> when the overriding constraint are these un-user friendly DNS and TCP
> etc. timeouts.
>
> Regards,
> Mark.
>
> >
> > So we have to make getaddrinfo work as well as we can. In particular,
> > we need to make the chance as high as possible that a connection to
> > the first struct addrinfo entry succeeds (based on local knowledge).
> >
> > That said, getaddrinfo is relic of the past. It probably was a nice step
> > forward 20 years ago. Now is the wrong tool.
> >
> > Fixing getaddrinfo is like coming up with a better design for a steam
> > engine. Not because steam engines are so great. But because we completely
> > failed to have a standard for anything more modern.
> >
> > I don't claim to know what a modern tool should look like. But we are
> stuck
> > in the past. We can't try anything new to see if it works and what the
> > limitations are.
> >
>