Re: [Taps] On Profiles for TAPS Preconnections

Max Franke <mfranke@inet.tu-berlin.de> Tue, 23 July 2019 13:35 UTC

Return-Path: <mfranke@inet.tu-berlin.de>
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 AE65D1202BD for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 06:35:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.478
X-Spam-Level:
X-Spam-Status: No, score=0.478 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.1, MISSING_MIMEOLE=1.899, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 v7UuhdF7o3g3 for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 06:35:04 -0700 (PDT)
Received: from mail.net.t-labs.tu-berlin.de (mail1.net.t-labs.tu-berlin.de [IPv6:2001:638:809:ff11:130:149:220:242]) by ietfa.amsl.com (Postfix) with ESMTP id 07990120302 for <taps@ietf.org>; Tue, 23 Jul 2019 06:34:52 -0700 (PDT)
Received: from [172.16.150.129] (unknown [207.115.96.130]) by mail.net.t-labs.tu-berlin.de (Postfix) with ESMTPSA id 5F334171B; Tue, 23 Jul 2019 15:34:50 +0200 (CEST)
Date: Tue, 23 Jul 2019 09:34:51 -0400
Message-ID: <a11d917f-3b40-4614-94b1-6e7d56892159@email.android.com>
X-Android-Message-ID: <a11d917f-3b40-4614-94b1-6e7d56892159@email.android.com>
In-Reply-To: <BE950551-28E9-4A0F-A6E5-E951191CDCE6@apple.com>
From: Max Franke <mfranke@inet.tu-berlin.de>
To: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>
Cc: "Philipp S. Tiesel" <philipp@tiesel.net>, taps WG <taps@ietf.org>
Importance: Normal
X-Priority: 3
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/taps/RQkqxMx0SkeW8EyYgdQlX9K2uwI>
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 13:35:08 -0000

I wonder if this argument is more because at the moment profiles are handed over as a parameter on creation of the properties and not about the existance of properties in general. 
Maybe another solution would be a call along the lines of TransportProperties.WithProfile(profile) , similar to what we already have with WithService on the endpoints?
As Philipp said, there are already convenience features in other places of the API which should be removed if we agree on keeping the complexity to the bare minimum for the core interface. 

Best regards,
Max

Am 22.07.2019 19:15 schrieb Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>:

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

_______________________________________________
Taps mailing list
Taps@ietf.org
https://www.ietf.org/mailman/listinfo/taps