Re: [Taps] On Profiles for TAPS Preconnections

Tommy Pauly <tpauly@apple.com> Tue, 23 July 2019 13:42 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 7346012030C for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 06:42:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 ag2Fw73EDcpz for <taps@ietfa.amsl.com>; Tue, 23 Jul 2019 06:42:25 -0700 (PDT)
Received: from nwk-aaemail-lapp03.apple.com (nwk-aaemail-lapp03.apple.com [17.151.62.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 06F3F120313 for <taps@ietf.org>; Tue, 23 Jul 2019 06:42:25 -0700 (PDT)
Received: from pps.filterd (nwk-aaemail-lapp03.apple.com [127.0.0.1]) by nwk-aaemail-lapp03.apple.com (8.16.0.27/8.16.0.27) with SMTP id x6NDgH2J053220; Tue, 23 Jul 2019 06:42:22 -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 : message-id : references : to; s=20180706; bh=jjRvVdKV63xUXolvaNwgNuE01+5mH+idZ+xTDulE10w=; b=vfpsApFiciG60cHd5Sw8PP8NWYEqu6C3kC7ZUBbDJHMtesTEQ9aRd+s2nIB+UQYB6yJp +WACLKPv+AvPSqdOkR2bqHdfoXMlKqxZ448DYkyWOvbxkS53AaRfmFrWdAMmFcQuE+Jc 2MZITKdi88y6uqaHb1N9ErxqkIu/l+yXUCaBpjkHS9TXMH3ZVyAEbiqUSbxhbmY1zlw7 Uf/rZ/jqDl6hc+qebZC5OP558Qk+E3i3fXrAigmhODepeF1QT6OC1SpD9juFjzqwP1bG PpXruLAveupyLcCYr+K+FJs+a2GcSUZjeOaQrV8h64Nnt8CbF5SVFVI10Nw4q16y6G1c Ew==
Received: from ma1-mtap-s03.corp.apple.com (ma1-mtap-s03.corp.apple.com [17.40.76.7]) by nwk-aaemail-lapp03.apple.com with ESMTP id 2tvk6mts5p-24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 23 Jul 2019 06:42:22 -0700
Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by ma1-mtap-s03.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0PV300GW6KQ8FE60@ma1-mtap-s03.corp.apple.com>; Tue, 23 Jul 2019 06:42:09 -0700 (PDT)
Received: from process_milters-daemon.nwk-mmpp-sz10.apple.com by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0PV300800KJ6FI00@nwk-mmpp-sz10.apple.com>; Tue, 23 Jul 2019 06:42:09 -0700 (PDT)
X-Va-A:
X-Va-T-CD: 8dd9a97d16a6334c7005ce5b0715e098
X-Va-E-CD: 6b84095c203fe2a1a8945a03453fd93c
X-Va-R-CD: 6aae7abbe171cacdfada0471f498e066
X-Va-CD: 0
X-Va-ID: b6b42bef-8885-4b46-80ce-e50c64da277b
X-V-A:
X-V-T-CD: 8dd9a97d16a6334c7005ce5b0715e098
X-V-E-CD: 6b84095c203fe2a1a8945a03453fd93c
X-V-R-CD: 6aae7abbe171cacdfada0471f498e066
X-V-CD: 0
X-V-ID: 7a2477b5-1037-441a-bb33-cc85d4bb1655
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-23_06:,, signatures=0
Received: from [17.235.51.16] by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0PV300B93KNTPG10@nwk-mmpp-sz10.apple.com>; Tue, 23 Jul 2019 06:40:44 -0700 (PDT)
Sender: tpauly@apple.com
Content-type: multipart/alternative; boundary="Apple-Mail=_7C884793-E2D9-48FF-9E48-82CF78E3A059"
MIME-version: 1.0 (Mac OS X Mail 12.4 \(3445.104.2\))
From: Tommy Pauly <tpauly@apple.com>
X-Priority: 3
In-reply-to: <a11d917f-3b40-4614-94b1-6e7d56892159@email.android.com>
Date: Tue, 23 Jul 2019 09:40:37 -0400
Cc: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>, taps WG <taps@ietf.org>, "Philipp S. Tiesel" <philipp@tiesel.net>
Message-id: <857A1326-9DA7-4BE9-A8C3-B12474ABEF76@apple.com>
References: <a11d917f-3b40-4614-94b1-6e7d56892159@email.android.com>
To: Max Franke <mfranke@inet.tu-berlin.de>
X-Mailer: Apple Mail (2.3445.104.2)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-23_06:, , signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/taps/SULLDureAJXDuXSdJL8wxeZVl6w>
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:42:34 -0000

Yes, I would be happier with suggesting something like TransportProperties.WithProfile(profile), rather than replacing the primary constructor.

To the point of trimming down the API, I do think that it may be good to only choose one between options like this:

* properties.prefer(property)
* properties.add(property, prefer)

The API prescribed by this document is abstract, and needs to give freedom to implementations to make things elegant in their particular languages.

What about having an appending, that's non-normative and not required for RFC compliance, that describes suggested conveniences, such as "properties.prefer()" and the concept of convenience profiles?

The point is, if you wanted to have the minimal implementation of a TAPS implementation that made it possible to let applications do what they need over TAPS, you wouldn't necessarily need to implement these conveniences, since they don't add any new capabilities, but instead are semantic sugar.

Thanks,
Tommy

> On Jul 23, 2019, at 9:34 AM, Max Franke <mfranke@inet.tu-berlin.de> wrote:
> 
> 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
> 
> 
> _______________________________________________
> Taps mailing list
> Taps@ietf.org
> https://www.ietf.org/mailman/listinfo/taps