Re: [Taps] On Profiles for TAPS Preconnections

Tommy Pauly <tpauly@apple.com> Mon, 22 July 2019 23:15 UTC

Return-Path: <tpauly@apple.com>
X-Original-To: taps@ietfa.amsl.com
Delivered-To: taps@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CE59120094 for <taps@ietfa.amsl.com>; Mon, 22 Jul 2019 16:15:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.001
X-Spam-Level:
X-Spam-Status: No, score=-7.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G47H2Gp0LWZy for <taps@ietfa.amsl.com>; Mon, 22 Jul 2019 16:15:11 -0700 (PDT)
Received: from ma1-aaemail-dr-lapp02.apple.com (ma1-aaemail-dr-lapp02.apple.com [17.171.2.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 00738120048 for <taps@ietf.org>; Mon, 22 Jul 2019 16:15:10 -0700 (PDT)
Received: from pps.filterd (ma1-aaemail-dr-lapp02.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x6MN2ELk062408; Mon, 22 Jul 2019 16:15:10 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=llpq8zIjicizuM1GE82ZOFh7rQgJM/cSp/Myg12XL0Q=; b=XUyTlrKBuL7LP1XneOkjL/L40OTtf/phJNXSa7Y29JfE/AEy/FtqnIGeUHGFwFL7530O bItE7h+C2kzx95X4cnjr/06aw6TRLWpeQ2CK9UIImliVluS3+aCc6E0vah9RoouyzUqg 08m7859xlx1+glaETjlU0lqunBHsU33PEDKif1Fzelb5si4sj225DiXj+kPtp7Lmtzvl 10OY/qEPiJZ0eUpwfDwppTC+n/Hvkiv3ww8rivI1vumHikr+8AKOInQnYTeeBud/iUU+ uMckwN8h5YtyK5lhH/wH0H7xVUxKdr3VLtDRZ1lk0lXxlMrA6fuJPPQ1bAQxx9flYLes VA==
Received: from mr2-mtap-s02.rno.apple.com (mr2-mtap-s02.rno.apple.com [17.179.226.134]) by ma1-aaemail-dr-lapp02.apple.com with ESMTP id 2tuymwwd6m-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 22 Jul 2019 16:15:10 -0700
Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by mr2-mtap-s02.rno.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0PV2004VKGL9V140@mr2-mtap-s02.rno.apple.com>; Mon, 22 Jul 2019 16:15:09 -0700 (PDT)
Received: from process_milters-daemon.nwk-mmpp-sz09.apple.com by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0PV200200GGI1D00@nwk-mmpp-sz09.apple.com>; Mon, 22 Jul 2019 16:15:09 -0700 (PDT)
X-Va-A:
X-Va-T-CD: 2b784dc161e0635db4a0c2407b1814f4
X-Va-E-CD: 6b84095c203fe2a1a8945a03453fd93c
X-Va-R-CD: 6aae7abbe171cacdfada0471f498e066
X-Va-CD: 0
X-Va-ID: 29d6903f-fa0e-44f5-a46b-a17e67bab7fa
X-V-A:
X-V-T-CD: 2b784dc161e0635db4a0c2407b1814f4
X-V-E-CD: 6b84095c203fe2a1a8945a03453fd93c
X-V-R-CD: 6aae7abbe171cacdfada0471f498e066
X-V-CD: 0
X-V-ID: 69b2eb42-9b97-4102-876a-606d9683e5a1
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-22_16:,, signatures=0
Received: from [17.235.47.251] by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0PV200IWIGL5H900@nwk-mmpp-sz09.apple.com>; Mon, 22 Jul 2019 16:15:08 -0700 (PDT)
Sender: tpauly@apple.com
Content-type: text/plain; charset="utf-8"
MIME-version: 1.0 (Mac OS X Mail 12.4 \(3445.104.2\))
From: Tommy Pauly <tpauly@apple.com>
In-reply-to: <1A621491-019B-49C0-BE4E-A3C843EA0D35@tiesel.net>
Date: Mon, 22 Jul 2019 19:15:02 -0400
Cc: taps WG <taps@ietf.org>
Content-transfer-encoding: quoted-printable
Message-id: <BE950551-28E9-4A0F-A6E5-E951191CDCE6@apple.com>
References: <370C3CC6-363D-4036-ABCC-7B02F6BD04F6@apple.com> <1A621491-019B-49C0-BE4E-A3C843EA0D35@tiesel.net>
To: "Philipp S. Tiesel" <philipp@tiesel.net>
X-Mailer: Apple Mail (2.3445.104.2)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-22_16:, , signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/taps/B6pn5alBl8nbqASoqNV9OpkYgo8>
Subject: Re: [Taps] On Profiles for TAPS Preconnections
X-BeenThere: taps@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IETF Transport Services \(TAPS\) Working Group" <taps.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/taps>, <mailto:taps-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/taps/>
List-Post: <mailto:taps@ietf.org>
List-Help: <mailto:taps-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/taps>, <mailto:taps-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jul 2019 23:15:14 -0000


> On Jul 22, 2019, at 6:56 PM, Philipp S. Tiesel <philipp@tiesel.net> wrote:
> 
> Hi,
> 
>> On 22. Jul 2019, at 15:09, Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org> wrote:
>> 
>> An issue we discussed today in the TAPS meeting was whether or not we should add a concept of "profiles" to the Transport Services APIs. An example of a profile is a "reliable, secure, in-order stream"; or "unreliable datagrams". Another way to think of these profiles are as convenient ways to initialize common parameters.
>> 
>> One option is described in this PR: https://github.com/ietf-tapswg/api-drafts/pull/328
>> 
>> To help discern the working group's position, I'll try to distill the high-level options here:
>> 
>> 1. Add Profiles as a top-level API document concept that modifies how transport properties and/or preconnections are created. (This is PR #328.)
>> 2. Mention in the API document that specific API implementations may expose conveniences and profiles (presumably as a way to initialize preconnections), but do not modify the API or specify an abstract symbol for profiles.
>> 3. Do not mention profiles at all in the API document, but mention something in the implementation document.
> 
> I am definitely in favour of option 1. Our implementation experience with PyTAPS showed that setting all transport properties necessary to get “UDP like service” becomes tedious otherwise.
> I fear not including them in the examples and the core API will result in many developers rejecting TAPS as too complex to use.
> The profiles provide a useful convenience to applications (just like the the shortcuts properties.prefer(property) instead of properties.add(property, prefer)).
> 
> In addition, profiles allow us to be less conservative in how we choose the defaults for transport properties, i.e., we don’t need the TAPS defaults to be TCP compatible as long as the reliable-in-order-stream profile is.

Speaking not as the person asking the question, but as an individual in the group:

I'm pretty strongly against option (1), and prefer (2). I think we should specify that convenience functions can exist, but I think changing the one initialization function of the transport properties to take a profile is not the right move for the API. Everything can be achieved by making the API for a convenience profile be a layer on top of the existing API.

Specifically, these are the differences:

(1) Exposes an API in which you always pass a profile (or an explicit nil) to a TransportProperties object; but the TransportProperties *also* lets you set each of the individual properties after that.
(2) Allows implementations to expose an API call to deliver a TransportProperties that's set up based on a profile, but that isn't the fundamental constructor. It is implemented by creating a TransportProperties (TransportProperties()) and then setting the properties internally.

Thanks,
Tommy

> 
> AVE!
>   Philipp S. Tiesel
> 
> -- 
> Philipp S. Tiesel 
> https://philipp.tiesel.net/
>