Re: [Taps] On Profiles for TAPS Preconnections

"Brian Trammell (IETF)" <ietf@trammell.ch> Tue, 23 July 2019 18:21 UTC

Return-Path: <ietf@trammell.ch>
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 0AB7612079F for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 11:21:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
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 pY2qXNp_YwRR for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 11:21:53 -0700 (PDT)
Received: from smtp-sh.infomaniak.ch (smtp-sh.infomaniak.ch [128.65.195.4]) (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 25FE5120476 for <taps@ietf.org>; Tue, 23 Jul 2019 11:21:52 -0700 (PDT)
Received: from smtp7.infomaniak.ch (smtp7.infomaniak.ch [83.166.132.30]) by smtp-sh.infomaniak.ch (8.14.5/8.14.5) with ESMTP id x6NILmBi024678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Jul 2019 20:21:48 +0200
Received: from [IPv6:2001:67c:370:128:2092:d1eb:42de:d3d5] ([IPv6:2001:67c:370:128:2092:d1eb:42de:d3d5]) (authenticated bits=0) by smtp7.infomaniak.ch (8.14.5/8.14.5) with ESMTP id x6NILkjC100261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 23 Jul 2019 20:21:47 +0200
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: "Brian Trammell (IETF)" <ietf@trammell.ch>
In-Reply-To: <BE950551-28E9-4A0F-A6E5-E951191CDCE6@apple.com>
Date: Tue, 23 Jul 2019 14:21:45 -0400
Cc: "Philipp S. Tiesel" <philipp@tiesel.net>, taps WG <taps@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BE49D789-20A2-49C1-9497-9F54B09527B5@trammell.ch>
References: <370C3CC6-363D-4036-ABCC-7B02F6BD04F6@apple.com> <1A621491-019B-49C0-BE4E-A3C843EA0D35@tiesel.net> <BE950551-28E9-4A0F-A6E5-E951191CDCE6@apple.com>
To: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3445.104.11)
X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.6.0.2.8
X-Antivirus-Code: 0x100000
Archived-At: <https://mailarchive.ietf.org/arch/msg/taps/HVe9RG3kmaMe-OH6mdAlxMBHv4g>
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: Tue, 23 Jul 2019 18:21:55 -0000

hi Tommy, all,

> On 22 Jul 2019, at 19:15, Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org> wrote:
> 
> 
> 
>> 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.

+1, for the same reasons.

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

I really like the idea of being able to pull a profile off the shelf and then tweak it.

It does seem to me that the right model here is "profiles as convenience constructors or copyable constants" -- that model is pretty reasonably implementable as an add-on, without 

(That's separate from the question of whether profiles are a "mandatory" feature in taps-interface, a suggested feature in an appendix, or something that exists in a different document).

Cheers,

Brian

> (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/
>> 
> 
> _______________________________________________
> Taps mailing list
> Taps@ietf.org
> https://www.ietf.org/mailman/listinfo/taps