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

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 02 December 2022 19:36 UTC

Return-Path: <brian.e.carpenter@gmail.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 9E015C14F692 for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 11:36:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, NICE_REPLY_A=-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_BLOCKED=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=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 IAjNkKtfddjC for <ipv6@ietfa.amsl.com>; Fri, 2 Dec 2022 11:36:33 -0800 (PST)
Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 58E49C14F606 for <ipv6@ietf.org>; Fri, 2 Dec 2022 11:36:33 -0800 (PST)
Received: by mail-pj1-x1033.google.com with SMTP id cm20so5861482pjb.1 for <ipv6@ietf.org>; Fri, 02 Dec 2022 11:36:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qZnrFJMDYqgPTQbQ6iFD/c3AmLFB2pdyyrtjqIaC0o4=; b=XhXPUHpkZK37IBb1lkK+5uWt74SiM0OvcOQ9EhkiNmACGPhWFjujJdlNjzl9dMrr/K kSK0VphmJ5p2TzfdupE1MDMMXw2363kjLLp0yIj0gmvfegoOLKw/BFKIRknqWX3KCBe4 fgrdYkdQ3CVYlxFOTSChUI25CjwBp8IJhiOFLf8xm61VbZMHbltWuZkfzFGCIC2qM/RU TZuRFl1mTNFz6uTGx5Lj4LHduTYVgoOd83952IIFjZCoCgdSyol5SiujWYKxT4Ws6RDw 8XRdo/IwZQ4A2XQ+lPKWUewtBUhomg7oUf/5rmkmb8PCctnWncoDwq8w49DcQmCWbrit slHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qZnrFJMDYqgPTQbQ6iFD/c3AmLFB2pdyyrtjqIaC0o4=; b=CdgHisnBDY5Joa828zciOqyGWqzl8GDuZkLtArCxB/I/pZsu1j06Wxh7LBvqVw00Mi 5aMOP41wUkQxymlZ30Ls6qblx619CSvLxM/RunDYqCKWpRXCickKw94/aT9SRHLBXMCk fPIr5wttslJpkB4IsHOCkUeQbdiZNqHwrIHaE9VDO0p/JzFcmLQ6rBdwl67TG3gJLEuN 7itDvF+Dika+6h2ShZ4Ie6Gw1TcuFiWseImlslzD8h3fLgN80Z6eArB7v/fVXuiB1wpF sckKmXAcm822HwCPCHIfyBmZjaZOKOcvs9+Iq9JHLy+GaqLY+nIcmdenrE5qf7Iu3VTA 1Inw==
X-Gm-Message-State: ANoB5plU3JPZAobPz/Ij/Eg5H5APPCPN7qjr8slJYhFiIT4+K9IsYkwZ C4WU8Y2Xn0Qw5y18flpAfH/1mlEfWJ3kfQ==
X-Google-Smtp-Source: AA0mqf4RwO0Zy/hjQjZx4SOCf5xJ0EWSXUjEXnTsMkbN/L5KFLERo43b4DbPt50buebDim1kr5Vs6A==
X-Received: by 2002:a17:90a:458a:b0:214:166e:e202 with SMTP id v10-20020a17090a458a00b00214166ee202mr78103292pjg.165.1670009792681; Fri, 02 Dec 2022 11:36:32 -0800 (PST)
Received: from [10.5.3.177] ([114.23.167.17]) by smtp.gmail.com with ESMTPSA id p186-20020a6342c3000000b0046fe244ed6esm4413398pga.23.2022.12.02.11.36.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Dec 2022 11:36:31 -0800 (PST)
Message-ID: <6cce7e2c-4108-c85c-2a34-2d2ac0f28b42@gmail.com>
Date: Sat, 03 Dec 2022 08:36:26 +1300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Ted Lemon <mellon@fugue.com>, Vasilenko Eduard <vasilenko.eduard=40huawei.com@dmarc.ietf.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "ipv6@ietf.org" <ipv6@ietf.org>
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>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <CAPt1N1mRsjo21E=3662o+KhNha50DTWnANMa6m7ttqqROF+b=w@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/U9c2fzNvCHpDn8FvjQ4vWmll0Cc>
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 19:36:37 -0000

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>
>     --------------------------------------------------------------------
>