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

Ted Lemon <mellon@fugue.com> Fri, 02 December 2022 14:31 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 C368BC14F740 for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 06:31:30 -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 86EslrVPHhZK for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 06:31:26 -0800 (PST)
Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 028D6C14F743 for <ipv6@ietf.org>; Fri, 2 Dec 2022 06:31:02 -0800 (PST)
Received: by mail-qv1-xf2b.google.com with SMTP id d2so3486384qvp.12 for <ipv6@ietf.org>; Fri, 02 Dec 2022 06:31:02 -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=g7OGIOtz+vDxO+m7z1U0Qq1X+b9XhStDCdEr6wrKerw=; b=VOAsLHXLDqCGFns8NQZcAjmLOnFiPyijrUyZmMQivbPeAhUGdxT2stdnyYpXg0nD5F BQwVc0rdiUoth1drXMj2wDqmgv4GafC2pcfAX89vzMiENZEoprslpgqJXxZ0fUBXpdL1 eCViNqlWCvSxSsVIcUhOPZ3PniIxFIFvCB+JzuRCXuB6rwqOiSly9Na231stGU5qWd1j hv8jpGc6h4LCwEuWmv7rv60wJEm3K5s/oxxXgD6jqr57Zs5wYqEPiRDMlJaAR8vXWzjO SiKL/Ao7ZeC0ak/HNxUCog0AuVXBaFHGcAo+1/mEwvcOTXc2bjkwqemOxjQDW28n0/DW DISA==
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=g7OGIOtz+vDxO+m7z1U0Qq1X+b9XhStDCdEr6wrKerw=; b=OHCxcvX8Ep6COOQDu9fWek09BjkkxVdeRgMb+WLvbz3GDt0eCGpCWArITWuq7hwFoY /1RhbECjsmrdRaLPRk34Urimuuwzv4DPyxdwts1EmdyWYQYqT+xTclzi11qsAHzJyrnB PjXncOg8CMSDOJ/eF4VkfNCGIWBGzBajRD5y8QV6TseB3JzAF6P7kHbSIdEe7LPmKSAl jmQQNWM0OK40AuKpzHuZbxCmTAx3GDwOzG94sviFep56J+fPvzEMyvfBIpCZG/jIKR+1 /XPGuMgMDUfZmuDY3bEQQEoro2JtzLmxXuy7j5LrY2RbYIE95Cy/FsCf6LY++tPh1Kz3 HWkA==
X-Gm-Message-State: ANoB5pkRqp6gMewby1mAut9KwFDCsu0fYfiQGWbWK0y/TeJoJ8y54DYY 5SjkDjpSdDL3heKMHO0LDdIUt5AQoICJndXOptosEw==
X-Google-Smtp-Source: AA0mqf6J9j+ESvQmvce7I8j9zTh+R4kDdm8AymucOeZBh7CKW7WhljyYz7lDC8t9pdCt35mukKHEQ2kn63t16JSHp/8=
X-Received: by 2002:a05:6214:283:b0:4c6:ea02:9123 with SMTP id l3-20020a056214028300b004c6ea029123mr30755730qvv.50.1669991461163; Fri, 02 Dec 2022 06:31:01 -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>
In-Reply-To: <624493d2d8f84d8cafc6b84690ef4728@huawei.com>
From: Ted Lemon <mellon@fugue.com>
Date: Fri, 02 Dec 2022 09:30:50 -0500
Message-ID: <CAPt1N1mRsjo21E=3662o+KhNha50DTWnANMa6m7ttqqROF+b=w@mail.gmail.com>
To: Vasilenko Eduard <vasilenko.eduard=40huawei.com@dmarc.ietf.org>
Cc: Brian E Carpenter <brian.e.carpenter@gmail.com>, Michael Richardson <mcr+ietf@sandelman.ca>, "ipv6@ietf.org" <ipv6@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d22c8a05eed92fcd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/1EuFo_zo0CvSewBib3kEjIYXoRQ>
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 14:31:30 -0000

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.

Op vr 2 dec. 2022 om 01:34 schreef Vasilenko Eduard <vasilenko.eduard=
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] On Behalf Of Michael Richardson
> Sent: Thursday, December 1, 2022 11:02 PM
> To: Brian E Carpenter <brian.e.carpenter@gmail.com>; ipv6@ietf.org
> Subject: Re: [IPv6] PvD (RFC 8801) is not relevant to MHMP
>
>
> Brian E Carpenter <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>   . o O ( IPv6 IøT consulting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
>
>
>
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>