Re: [v6ops] enable-ula.py
Mark Smith <markzzzsmith@gmail.com> Sun, 15 May 2022 22:51 UTC
Return-Path: <markzzzsmith@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 679B5C2740DB for <v6ops@ietfa.amsl.com>; Sun, 15 May 2022 15:51:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.402
X-Spam-Level:
X-Spam-Status: No, score=0.402 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, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.998, HK_RANDOM_FROM=0.998, RCVD_IN_DNSWL_BLOCKED=0.001, 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=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 Nnkkm5AVd2vI for <v6ops@ietfa.amsl.com>; Sun, 15 May 2022 15:51:40 -0700 (PDT)
Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 8F849C2740D9 for <v6ops@ietf.org>; Sun, 15 May 2022 15:51:40 -0700 (PDT)
Received: by mail-pj1-x1032.google.com with SMTP id o13-20020a17090a9f8d00b001df3fc52ea7so1771028pjp.3 for <v6ops@ietf.org>; Sun, 15 May 2022 15:51:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q4Gv99OYWIzL38BNaJDvQ4BohaTnXD+d/UB02g4jxKM=; b=DChihQGcyI6g48BuFQqelAVESPVX/mZFzigQxcvVUxy0ILeO83EQqtQwUgR+ERD1Oi BVm5I7UyjlWrTyho8/NdgwgqGSqCIDWbd0F1dQbaOV20J/WnU88AqIgUJiuKoySPOUEu z8EKSBc3ak5GPpSkVedPVzI8OY7TlP3/AdAxz4i/+X/mYo+UnALMh9ql3+uNvFNiC+Nq qlrskT8DgVh4c3MdoyEiX9Zd5680yNd4tLmXElSjgRcNwHvKi/YVV7G+CIFBF9abKKy8 L9BGxI0bSUqMvGmjcE993sY3RGML0o68jitVwDQkNFtU3DqHUloJg5XvMRHZZ3aZxxRp XgZQ==
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=Q4Gv99OYWIzL38BNaJDvQ4BohaTnXD+d/UB02g4jxKM=; b=reobaghSSr9LxIkCGQNR0mM8sBGalB10rTiA3QHTyF4wiEXRCqafoSOvczMusGgt9/ MVJviv8sViImzhLqhnhM7bNxrA+eEmE8VNJEhZupE5YGUWM5lCb5Bh9hTrMRXJai2XV/ ELhb093UAVj18Yv/3P6nS2JewVaZFPT2kdufrAK0FrtAwSCjdENJ2dbMoZvsi5drrgix 0rWCJTEgH+fVAes7q/oBc0AS+oFVYNq+hHF7CmBgJ5gzGVzQAm7K1k29PnBEGQP+vn3s n8T0Vjw0nENy8+I1K86FVwgeavAbuwkl0/BLOE/8sMUBVFKCmEnxYj9MeM8VWzqrhcgR bdMQ==
X-Gm-Message-State: AOAM530tYnI4tlh7v0kOsxy4iI/vEglIL9CTXSKWlFIHwumQP+9KAIHF TYZPeySBEsRotybgVx49K7HA7+t+Zlls5nX4wxKSpxH6abs=
X-Google-Smtp-Source: ABdhPJyFGchajFAlxGCwFjFxugrS/LnyYWorH7pSqtycZD2EkxaKTTSAyJs0It+6UXE8EaIIYlfhIJsWEzMGfInBeqo=
X-Received: by 2002:a17:90b:1e09:b0:1dc:6d9a:4f57 with SMTP id pg9-20020a17090b1e0900b001dc6d9a4f57mr27225147pjb.17.1652655099826; Sun, 15 May 2022 15:51:39 -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>
In-Reply-To: <m1nqJ4t-0000IkC@stereo.hq.phicoh.net>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Mon, 16 May 2022 08:51:13 +1000
Message-ID: <CAO42Z2zOb9Hf1rR05EuTLthALA5X61HMwxm0E-M8VL8dnc-fjw@mail.gmail.com>
To: Philip Homburg <pch-v6ops-11@u-1.phicoh.com>
Cc: v6ops list <v6ops@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/lPLRLvDh8ue8iVpTkF0fcMnZ4zs>
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: Sun, 15 May 2022 22:51:44 -0000
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. 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. > > _______________________________________________ > v6ops mailing list > v6ops@ietf.org > https://www.ietf.org/mailman/listinfo/v6ops
- [v6ops] enable-ula.py Brian E Carpenter
- Re: [v6ops] enable-ula.py Brian E Carpenter
- Re: [v6ops] enable-ula.py Vasilenko Eduard
- Re: [v6ops] enable-ula.py Vasilenko Eduard
- Re: [v6ops] enable-ula.py Brian E Carpenter
- Re: [v6ops] enable-ula.py Vasilenko Eduard
- Re: [v6ops] enable-ula.py Brian E Carpenter
- Re: [v6ops] enable-ula.py Vasilenko Eduard
- Re: [v6ops] enable-ula.py otroan
- Re: [v6ops] enable-ula.py Philip Homburg
- Re: [v6ops] enable-ula.py Gert Doering
- Re: [v6ops] enable-ula.py Brian E Carpenter
- [v6ops] Unix code & ULA preference [was enable-ul… Brian E Carpenter
- Re: [v6ops] enable-ula.py Philip Homburg
- Re: [v6ops] enable-ula.py Mark Smith
- Re: [v6ops] enable-ula.py Bob Harold