Re: [Last-Call] [Taps] Last Call: <draft-ietf-taps-interface-25.txt> (An Abstract Application Layer Interface to Transport Services) to Proposed Standard

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 12 March 2024 19:36 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: last-call@ietfa.amsl.com
Delivered-To: last-call@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 54C95C14F619; Tue, 12 Mar 2024 12:36:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.196
X-Spam-Level:
X-Spam-Status: No, score=-2.196 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.091, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=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 05-mxPI7yhwR; Tue, 12 Mar 2024 12:36:06 -0700 (PDT)
Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (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 DCAE6C14F5E5; Tue, 12 Mar 2024 12:36:06 -0700 (PDT)
Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6e6aa5c5a6fso291293b3a.0; Tue, 12 Mar 2024 12:36:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710272166; x=1710876966; darn=ietf.org; 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=EHBYWgpxHowev+z7eb2yxZIoKbJiE7hlBP2r6P+CKGw=; b=W9b0/E/ZxxcqialYGE5hGOdrK2kiPWiesE+cJb0PJbFpxeEFgFH4PalOQ1w8Penvcr qECaoEuZAlATQcMy6qVQJ4uZtLyR8EgroT1Q9kWiOnZsJYZkAGk5pLSw7zdsRS8AS5aP 5qwno9Q+fYDzFFYdMKw8tKfEzeEk3dryMkQL/irc0ncROAJ8ea+WKhJRTr59AsiSHhVR CSpzbBuOoRf/QUewIIS9Me1BLIeDY5BUfy7ANOLAZt8GodlUG17NPxVloE/1gRlfO8+r 9WGW1rpQQxZd7+8mehE5t15j31xnXQZv8SjK2FfEIKNzWsZmma4/fWCfmCwjZlw9PJPO eqHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710272166; x=1710876966; 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=EHBYWgpxHowev+z7eb2yxZIoKbJiE7hlBP2r6P+CKGw=; b=nnzpNfTL6i5ALI0TyWpXuNWV8hfoADzBq6ToTK9jaJvKZHFsQa2SWDtKFFCLmxUcMy eTx6wCoO2qQFhakOuQzy9tW4FW0j5agK/4MqDIMGR6yXxCtaC+bJppsTK1qgZdrL1Skt dVE2NP6uSyfT3VofyIeAVsrOFNu6+nusj2xHijMEk0e2HUTvaizWrpL8Aob/huT0Rbra gJyvJTau20o8JshSqdWh3sPjMX08KMMQEUICSVRPVhcZRuzqSBYmNJS8eyd+TBWSfZPB wBz+OcBjP3Oti8M272PRH2O/LxM5e5fvqJOE4v1AjulsX9siVMW4wDlTd/pm5sYJMFac V6UA==
X-Forwarded-Encrypted: i=1; AJvYcCWEExPsmTmlA9/RK6P9jl7rfLCvZgNZE2OLvezmUzLydZYp/DTdNVs1SezaAk9dHYf5BV34FdLa2JlMp7MgfIuhWpHB+YokjAyOCZGcawQJZav2XCemM6WCbUqVNMzlDSC3XPoyblchr15SN/SiiNR1wKLGDTAKbg==
X-Gm-Message-State: AOJu0Yx7VfZuz1tUBNKCiMhQ9/DLZjvkz4bjZsS7DLiGZGedBeUtZv3o elmFebpSh7q8weG+m2Ez7BCQirg5IoWf65aUBg7BgwG989IaQd1R
X-Google-Smtp-Source: AGHT+IFPTlwysuYtMCt2fpWsxttnT9pQKZsoa5fOqNt5+8LPh+tSoAoqIoeJDBbFemqtDwTphZhezQ==
X-Received: by 2002:a05:6a20:a11f:b0:1a3:1258:5ed6 with SMTP id q31-20020a056a20a11f00b001a312585ed6mr4844652pzk.38.1710272166263; Tue, 12 Mar 2024 12:36:06 -0700 (PDT)
Received: from ?IPV6:2404:4400:541d:a600:44b7:2c2e:2bc6:8707? ([2404:4400:541d:a600:44b7:2c2e:2bc6:8707]) by smtp.gmail.com with ESMTPSA id y11-20020a056a00038b00b006e6529c7d75sm6499869pfs.3.2024.03.12.12.36.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Mar 2024 12:36:05 -0700 (PDT)
Message-ID: <72a9dc39-9112-7bb0-1140-69ece97f04c5@gmail.com>
Date: Wed, 13 Mar 2024 08:36:02 +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: Tommy Pauly <tpauly@apple.com>
Cc: last-call@ietf.org, draft-ietf-taps-interface@ietf.org, taps-chairs@ietf.org, Anna Brunström <anna.brunstrom@kau.se>, taps@ietf.org
References: <170809307174.2850.3578202994430798602@ietfa.amsl.com> <5f27f700-1110-c773-df95-e1b784e8f299@gmail.com> <F4959284-A38E-4629-B5EC-4835F9D005F4@apple.com> <2e2968aa-32dd-a8d4-c35b-fa8386044a34@gmail.com> <19A34649-8A07-4369-8ADF-A91D48B600E5@apple.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <19A34649-8A07-4369-8ADF-A91D48B600E5@apple.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/last-call/AIoM6TGnBA6GcvcmLTHqaxc0qFc>
Subject: Re: [Last-Call] [Taps] Last Call: <draft-ietf-taps-interface-25.txt> (An Abstract Application Layer Interface to Transport Services) to Proposed Standard
X-BeenThere: last-call@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF Last Calls <last-call.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/last-call>, <mailto:last-call-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/last-call/>
List-Post: <mailto:last-call@ietf.org>
List-Help: <mailto:last-call-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/last-call>, <mailto:last-call-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Mar 2024 19:36:11 -0000

Thanks.

Regards
    Brian Carpenter

On 13-Mar-24 04:02, Tommy Pauly wrote:
> 
> 
>> On Mar 11, 2024, at 12:42 PM, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
>>
>> Hi Tommy,
>>
>> Responses in line:
>>
>> On 12-Mar-24 04:48, Tommy Pauly wrote:
>>> Hi Brian,
>>>> On Feb 16, 2024, at 11:53 AM, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
>>>>
>>>> It's good to see this work advancing. I have a few comments:
>>>>
>>>> 1. Unless I've missed it, the terminology and notation only support IP addresses in their human-readable form. There are situations where an API user needs to manipulate addresses as binary objects. (The Python ipaddress.ip_address class is an example of how to handle this,
>>>> with its .packed property.) How does the TAPS API expose this?
>>> The IP addresses are not expected to be strings (although a concrete API certainly may offer that option). The type is “defined" here:
>>> https://www.ietf.org/archive/id/draft-ietf-taps-interface-25.html#section-1.1-17.5.1 <https://www.ietf.org/archive/id/draft-ietf-taps-interface-25.html#section-1.1-17.5.1>
>>> And used here:
>>> https://www.ietf.org/archive/id/draft-ietf-taps-interface-25.html#section-6.1-11.1.1 <https://www.ietf.org/archive/id/draft-ietf-taps-interface-25.html#section-6.1-11.1.1>
>>> Note that this is just as an “address” type, not a string.
>>> In the concrete API instantiation that we have at Apple, we allow this type to be created either with a data blob or a string:
>>> https://developer.apple.com/documentation/network/ipaddress <https://developer.apple.com/documentation/network/ipaddress>
>>
>> That is fair enough, but in that case the citation in  Section 1.1. 'Terminology and Notation': "IP Address: An IPv4 or IPv6 address [RFC5952]" is very confusing, because you aren't referring to the human-readable format in particular. Also, that RFC doesn't define the human-readable format for IPv4 addresses.
>>
>> For IP addresses as an abstraction, I think you need RFC 791 and RFC 4291. Or no citation at all.
> 
> Good point! Switching those references to RFC 791 and RFC 4291 makes sense here, I think.
>>
>> The examples in 6.1. 'Specifying Endpoints' such as "RemoteSpecifier.WithIPAddress(192.0.2.21)" have the same problem. At the very least, you need to explain that you are using the human-readable format for readability, but that it's shorthand.
>>
>> This argument doesn't apply to WithHostName and WithPort because they are intrinsically typed. I see that in other places you use undefined abstractions like SourceAddress and GroupAddress and even QUIC. Maybe you need to use IPv6Address and IPv4Address, e.g. RemoteSpecifier.WithIPAddress(IPv4Address).
> 
> Yes, it can be made clear that these are taking the previously defined types, not necessarily a human-readable format.
> 
>>
>>>>
>>>> 2. The same applies to interface names, which (as described in RFC 4007, where they are called Zone Identifiers) correspond to  underlying interface indexes (integers). IPv6 addresses are actually {address, interface_index} 2-tuples - the interface index is not optional, it's just normally defaulted to zero. I think this property needs to be listed in section 1.1, not hidden away in section 6.1, with a citation of RFC 4007.
>>> I don’t think I agree that an interface identifier needs a top-level type in the API here. While in concrete API instantiations, it is useful to have an interface object or identifier, the nature of the identifier can vary depending on the operating system / platform / language, etc. The “common” type is just a string, as we use it in 6.1, and the exact nature of a more specific type depends on the platform.
>>> This is similar to the PvD identification situation, described in https://www.ietf.org/archive/id/draft-ietf-taps-interface-25.html#section-6.2.12-4.
>>> The fact that the interface is technically present in an IPv6 address, but defaults to zero, is a good example of how a higher-level API can make that an optional field.
>>
>> But, and it's a big but, RFC4007 makes the support of a default optional (a blunder IMHO) and the result is that only some o/s support a default. Crucially, on Linux, you *cannot* default the interface in link-local addresses. So in reality, supporting it isn't an option. If you don't support it, I don't see how TAPS will actually work for link-local IPv6 addresses on a Linux host, even if there is only one interface active.
>>
>> I can see your argument for not making it a top level type. But 'WithInterface("en0")' presents the same issue as 'RemoteSpecifier.WithIPAddress(192.0.2.21)'. "en0" should be an abstraction such as InterfaceIdentifier.
> 
> I would lean towards having the text explain (as it does for PvDs) that this takes whatever system identifier is present for an interface, be it a string or integer or strongly-typed object.
> 
> Thanks,
> Tommy
> 
>>
>>>>
>>>> 3. I realise that this is an abstract API, but for such an ambitious project, I am quite disappointed that there is no Implementation Status section per BCP205. How many implementations already exist?
>>> As Michael noted, the implementation list is in the implementation draft, which already is past last call, etc:
>>> https://www.ietf.org/archive/id/draft-ietf-taps-impl-18.html#name-existing-implementations <https://www.ietf.org/archive/id/draft-ietf-taps-impl-18.html#name-existing-implementations>
>>
>> Yes, that is perfect.
>>
>> Rgds
>>    Brian
>>
>>> Thanks,
>>> Tommy
>>>>
>>>> Regards
>>>>    Brian Carpenter
>>>>
>>>> On 17-Feb-24 03:17, The IESG wrote:
>>>>> The IESG has received a request from the Transport Services WG (taps) to
>>>>> consider the following document: - 'An Abstract Application Layer Interface
>>>>> to Transport Services'
>>>>>    <draft-ietf-taps-interface-25.txt> as Proposed Standard
>>>>> The IESG plans to make a decision in the next few weeks, and solicits final
>>>>> comments on this action. Please send substantive comments to the
>>>>> last-call@ietf.org mailing lists by 2024-03-01. Exceptionally, comments may
>>>>> be sent to iesg@ietf.org instead. In either case, please retain the beginning
>>>>> of the Subject line to allow automated sorting.
>>>>> Abstract
>>>>>     This document describes an abstract application programming
>>>>>     interface, API, to the transport layer that enables the selection of
>>>>>     transport protocols and network paths dynamically at runtime.  This
>>>>>     API enables faster deployment of new protocols and protocol features
>>>>>     without requiring changes to the applications.  The specified API
>>>>>     follows the Transport Services architecture by providing
>>>>>     asynchronous, atomic transmission of messages.  It is intended to
>>>>>     replace the BSD sockets API as the common interface to the transport
>>>>>     layer, in an environment where endpoints could select from multiple
>>>>>     network paths and potential transport protocols.
>>>>> The file can be obtained via
>>>>> https://datatracker.ietf.org/doc/draft-ietf-taps-interface/
>>>>> This draft is going for a 2nd IETF last call due to the changes resulted during the IESG evaluation. A diff towards the -20 version of this document should show the changes since the previous IETF last call.
>>>>> No IPR declarations have been submitted directly on this I-D.
>>>>> _______________________________________________
>>>>> IETF-Announce mailing list
>>>>> IETF-Announce@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/ietf-announce
>>>>
>>>> _______________________________________________
>>>> Taps mailing list
>>>> Taps@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/taps
> 
> .