Re: [IPv6] PvD (RFC 8801) is not relevant to MHMP

Ted Lemon <mellon@fugue.com> Fri, 02 December 2022 20:14 UTC

Return-Path: <mellon@fugue.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93F82C14F613 for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 12:14:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20210112.gappssmtp.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 It8CqoogpnWa for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 12:14:01 -0800 (PST)
Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (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 2C95CC14F693 for <ipv6@ietf.org>; Fri, 2 Dec 2022 12:14:00 -0800 (PST)
Received: by mail-qv1-xf35.google.com with SMTP id u10so4151681qvp.4 for <ipv6@ietf.org>; Fri, 02 Dec 2022 12:14:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O4XneXqMzBe04DSumEaKOvRTlQdF1B+WbfRCE/R51dA=; b=AgDZO7TpQkaV/I5bHrT8IinwwcbetjmQxGm/JmiNWYJPkCqP9VnLNacPRdkJ6aMWZu 5MvLpIKF5viC0Tzqsr6S4SMJApa542JISkOOJ8JVBJq+x+Tq3m5XnRv3V1m0SAAs03t+ LZNcnQmLoAeR55iYF20azLuwoWtPzGasKNlZz/9DRHF+REguC5Nker/2jWwNp5fYHO7n Nn92Q7WCjVu4Ddlh/juu8V81vxJ7C1KFYf2DrVXOkxOSPgJkXD4dyfSfj5JgGzGotPFD 7pFaf91DlFmmdDnNLR6UJp5ABOSpe+vCn+Slz1GmeFSKZv5f3CG6zv8KTR8OKPPwrjQJ t4Lw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O4XneXqMzBe04DSumEaKOvRTlQdF1B+WbfRCE/R51dA=; b=dyRDB0Fni95D5G/jCW66zZmU4KmvzqB74VeLIM4Qnzq3Z7Z+4Q//4V2UXhs1Yq9ZC9 x8pZuLN2y+NoNOgbRV+YSVe260B8f/MeISDUgnOR57cgTmm+W2Uydo0GebbNciYf9zsJ R5uy0xjBQ4t84JMmpeS6O3bdQY+ZEQ5OW1Wprdbb+x4E1gxbd7knq+NjKEsUXAPeoi53 +ahcgAPA41e3U+ZvrDZXybdvEclDp/qI3gbyz/GhvzZdBZYmqV/zfa6yFil/V5PmU99I sf/J/CJAAWRnGTtNqt77Sly01MqJUgKgPfdRyfS3wNeFJHqBp6hRRybP6rVUHnokJzv4 Hzqw==
X-Gm-Message-State: ANoB5plctSnIg6xkLegTd1Np1Uzdpqm6jOBcVW0qXWMFsgwJs208HRT0 JE2YEWXGLXKTmcUNhRLla1YsLh1cGXnEaPeELk53B0A5rj706g==
X-Google-Smtp-Source: AA0mqf7JnESj/AI5qLf1dAXjbiWj73JKqPwbxX/9jlTC5fmCcdfGY2JGbR8dx1/8uDCm6CIiSQ5doldeJIxWwN4oA1s=
X-Received: by 2002:a05:6214:283:b0:4c6:ea02:9123 with SMTP id l3-20020a056214028300b004c6ea029123mr31999981qvv.50.1670012039828; Fri, 02 Dec 2022 12:13:59 -0800 (PST)
MIME-Version: 1.0
References: <8e49314ba8304b54be88fc365987a97c@huawei.com> <15402.1669922453@localhost> <d51350ad-0d1d-c046-707f-5fa3ecd2813e@gmail.com> <29096.1669924918@localhost> <624493d2d8f84d8cafc6b84690ef4728@huawei.com> <CAPt1N1mRsjo21E=3662o+KhNha50DTWnANMa6m7ttqqROF+b=w@mail.gmail.com> <6cce7e2c-4108-c85c-2a34-2d2ac0f28b42@gmail.com>
In-Reply-To: <6cce7e2c-4108-c85c-2a34-2d2ac0f28b42@gmail.com>
From: Ted Lemon <mellon@fugue.com>
Date: Fri, 02 Dec 2022 15:13:24 -0500
Message-ID: <CAPt1N1kBNEzm1f2YmSLE5HY-eaRO6qemi5duyJyrqMAtGMTuCQ@mail.gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: Vasilenko Eduard <vasilenko.eduard=40huawei.com@dmarc.ietf.org>, Michael Richardson <mcr+ietf@sandelman.ca>, "ipv6@ietf.org" <ipv6@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000067c2f105eeddfa5b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/tl-BJlfl58BTXyAaZLLomN7cwPI>
Subject: Re: [IPv6] PvD (RFC 8801) is not relevant to MHMP
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Dec 2022 20:14:05 -0000

To be clear, I wasn't arguing that the IETF shouldn't define an API. I was
pointing out that the IETF hasn't defined an API, and the market has moved
on from the sockets API. It's perfectly possible to build a good
asynchronous API on top of sockets, and I suspect many of us have done it
at least once (I certainly have).

What we were talking about was a slightly different thing, though:
getaddrinfo() as defined in the POSIX world is synchronous and doesn't have
a way to specify a context for the lookup, so it handles multi-home
situations really poorly, just as an example. Fixing this requires an API
that's higher-level than the sockets API anyway. If we want to describe
that API, I think that's fine, but historically we've gotten substantial
pushback when we've tried. We did actually at one point try to define an
MPvD API, but got a lot of pushback on it and never finished the work. It's
a pretty hard problem to do this well.

On Fri, Dec 2, 2022 at 2:36 PM Brian E Carpenter <
brian.e.carpenter@gmail.com> wrote:

> Ted,
> On 03-Dec-22 03:30, Ted Lemon wrote:
> > The reality is that the APIs most developers are using are already
> asynchronous. This is not new. Eg Apple’s Network Framework, but also the
> various happy eyeballs implementations in browsers, and various system
> libraries not written in C. Writing new code now that uses synchronous
> getaddrinfo is just silly. Whether the IETF writes a new document or not is
> sort of irrelevant.
>
> I don't think so. We aren't here to encourage the use of proprietary
> libraries, which work against code portability. It's still unclear to me
> that the Internet as whole benefits from our having handed over the socket
> API to POSIX, and I don't see how it benefits from ducking this question
> now.
>
> How about trying to write down the desirable properties for an asynch
> replacement for getaddrinfo() ?
>
> (Whatever people may sometimes say, there is no rule that "the IETF
> doesn't do APIs.")
>
>      Brian
>
> >
> > Op vr 2 dec. 2022 om 01:34 schreef Vasilenko Eduard <vasilenko.eduard=
> 40huawei.com@dmarc.ietf.org <mailto:40huawei.com@dmarc.ietf.org>>
> >
> >     What you are talking about is very powerful but the same disruptive.
> It would need a separate API that would be used with the current API for
> ages.
> >     It is not RFC 6724bis. It is a completely new RFC for a separate API.
> >     By the way, you have to choose the source address first anyway
> because if you would choose the next hop then you are restricted by the PIO
> announced by this router.
> >
> >     What we have proposed in draft-vv-6man-nd-support-mhmp is much less
> disruptive.
> >     Reverse choice: source address first only then next hop,
> >     Then it is possible to use many simple mechanisms for source address
> choice (section 5):
> >
> >     1.      The same policies could be formatted differently and fed to
> the host by two mechanisms at the same time: 1) “Routing Information
> Options” of [Route Preferences] and 2) [Policy by DHCP] to modify policies
> in [Default Address] selection algorithm. Then the current priority of
> mechanisms could be preserved the same: initially [ND] or routing would
> choose the next-hop, then [Default Address] would choose a proper source
> address. It is the method that is assumed in [MHMP]. This method is
> complicated and costly, and the probability of acceptance is very low.
> Moreover, [Policy by DHCP] was not adopted by the market – it is not
> available on the major operating systems and home gateways.
> >     2.      Application developed may use bind() to choose a source
> address based on many different parameters (including anything from the
> list below). It would effectively revert the default logic of [Default
> Address]. Unfortunately, it is difficult to expect it from the client side,
> which would probably call getaddrinfo() which has a good probability to
> choose the wrong source address.
> >     3.      Only policies could be supplied by [Policy by DHCP] to the
> [Default Address] selection algorithm. This method has a low probability of
> implementation because of not wide support of DHCPv6 in the industry. Maybe
> this method would have more acceptance in the future.
> >     4.      It is possible to check the longest match between the source
> and the destination address to choose the potentially closest address. This
> method looks most promising, it is partially discussed in [Default Address]
> section 7.
> >     5.      The host could use DNS requests with different source
> addresses to understand what is visible for a particular source address.
> >     6.      URL for configuration information could be supplied in RA –
> see [Provisioning domains].
> >     7.      The host may have local performance management capabilities
> (packet loss, delay, jitter, etc) to choose the best source for the
> application.
> >
> >     Ed/
> >     -----Original Message-----
> >     From: ipv6 [mailto:ipv6-bounces@ietf.org <mailto:
> ipv6-bounces@ietf.org>] On Behalf Of Michael Richardson
> >     Sent: Thursday, December 1, 2022 11:02 PM
> >     To: Brian E Carpenter <brian.e.carpenter@gmail.com <mailto:
> brian.e.carpenter@gmail.com>>; ipv6@ietf.org <mailto:ipv6@ietf.org>
> >     Subject: Re: [IPv6] PvD (RFC 8801) is not relevant to MHMP
> >
> >
> >     Brian E Carpenter <brian.e.carpenter@gmail.com <mailto:
> brian.e.carpenter@gmail.com>> wrote:
> >          > True, getaddrinfo() is a weak solution, but I think the
> weakness is not
> >          > really in the "level". There's no reason that gai itself
> couldn't
> >          > interrogate a daemon instead of a table.
> >
> >     Yes, you are right.
> >
> >     We certainly can do something smarter behind the scenes, and we can
> certainly put an synchronous getaddrinfo() on top of it.
> >
> >     But, the problem is that it returns a single sockaddr(), and it
> needs to return something with the source address selected (for each
> destination), or
> >     at least strongly hinted.   Returning a socket/file descriptor would
> be
> >     better.  That also allows for things like PvD to be implemented as
> seperate network namespaces or VRFs.
> >
> >
> >     --
> >     Michael Richardson <mcr+IETF@sandelman.ca <mailto:
> mcr%2BIETF@sandelman.ca>>   . o O ( IPv6 IøT consulting )
> >                 Sandelman Software Works Inc, Ottawa and Worldwide
> >
> >
> >
> >
> >     --------------------------------------------------------------------
> >     IETF IPv6 working group mailing list
> >     ipv6@ietf.org <mailto:ipv6@ietf.org>
> >     Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> <https://www.ietf.org/mailman/listinfo/ipv6>
> >     --------------------------------------------------------------------
> >
>