Re: [Taps] TCP components

Brian Trammell <ietf@trammell.ch> Fri, 19 June 2015 10:07 UTC

Return-Path: <ietf@trammell.ch>
X-Original-To: taps@ietfa.amsl.com
Delivered-To: taps@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0C0791A8870 for <taps@ietfa.amsl.com>; Fri, 19 Jun 2015 03:07:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.142
X-Spam-Level:
X-Spam-Status: No, score=-1.142 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_SORBS_WEB=0.77, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=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 gxbdza8febJF for <taps@ietfa.amsl.com>; Fri, 19 Jun 2015 03:07:22 -0700 (PDT)
Received: from trammell.ch (trammell.ch [5.148.172.66]) by ietfa.amsl.com (Postfix) with ESMTP id 8E5791A886B for <taps@ietf.org>; Fri, 19 Jun 2015 03:07:21 -0700 (PDT)
Received: from [10.0.0.87] (unknown [89.246.150.136]) by trammell.ch (Postfix) with ESMTPSA id 9048B1A0777; Fri, 19 Jun 2015 12:07:20 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
Content-Type: multipart/signed; boundary="Apple-Mail=_D8BBFD79-A2B2-4867-845D-7DB0A45DCFE1"; protocol="application/pgp-signature"; micalg="pgp-sha512"
X-Pgp-Agent: GPGMail 2.5
From: Brian Trammell <ietf@trammell.ch>
In-Reply-To: <DF226C37-7132-4348-A466-A4DDE1180F85@ifi.uio.no>
Date: Fri, 19 Jun 2015 12:07:19 +0200
Message-Id: <6F42B0B2-9349-4639-8695-814D9C797F01@trammell.ch>
References: <5579768E.5060402@tik.ee.ethz.ch> <A3EF3A19-0E37-42E6-8D17-94164EBA7FDD@ifi.uio.no> <154FD7B7-9A01-43EC-927D-B9D71F1BC38D@tik.ee.ethz.ch> <57DC7DAB-7054-41BE-8515-626353782BBC@ifi.uio.no> <8377C788-96BC-4F70-ADDD-B3E07AC814A0@trammell.ch> <DF226C37-7132-4348-A466-A4DDE1180F85@ifi.uio.no>
To: Michael Welzl <michawe@ifi.uio.no>
X-Mailer: Apple Mail (2.2098)
Archived-At: <http://mailarchive.ietf.org/arch/msg/taps/aWNweflKR0bKNdlhczCv76MwWIA>
Cc: Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch>, "taps@ietf.org" <taps@ietf.org>
Subject: Re: [Taps] TCP components
X-BeenThere: taps@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussions on Transport Services <taps.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/taps>, <mailto:taps-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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: Fri, 19 Jun 2015 10:07:25 -0000

hi Michael,

A few replies inline.

> On 18 Jun 2015, at 15:54, Michael Welzl <michawe@ifi.uio.no> wrote:
> 
> 
>> On 17 Jun 2015, at 12:13, Brian Trammell <ietf@trammell.ch> wrote:
>> 
>> hi Michael, all,
>> 
>> A couple of random points inline at various levels of quotation...
>> 
>>> On 17 Jun 2015, at 10:44, Michael Welzl <michawe@ifi.uio.no> wrote:
>>> 
>>>>> 
>>>>> I agree that the list below is closer to what I think a "component" should be ... but looking at it, is it not even clearer now that components are not what TAPS is after? To me this list now contains lots and lots of details that are irrelevant to the service provided to the application.
>> 
>> That's part of the point we're trying to address here. The realization we had here is that components *don't* necessarily map to feature, and it's not clear that we can simply ignore those components that don't map, since they may have impact on the interfaces/features it is possible to (reasonably) implement atop those protocols.
>> 
>>>>> Not harmful to list but pretty useless?!
>> 
>> Let's start with TCP as probably the most difficult example (indeed, that's why we worked out this "new" arrangement of components for TCP first). A completely clean and unambiguous decomposition of TCP into its features -- what, I agree, we're after in the end -- is not *really* possible, because the protocols as defined and implemented weren't really composed of discrete features. The evolution of loss-based congestion control, for instance, was predicated on the particular loss signals that were available at the time it was first defined. The error detection mechanism likewise relies on the fact that reliability is provided by retransmission. One could say that given the parallel evolution of computing power that all these choices made by TCP were the only obvious ones at the time. But it's precisely the co-evolution of reliability and congestion control that makes gluing FEC to TCP so fraught with peril. That's an important point to capture IMO.
>> 
>> I expect that the same exercise for SCTP will show a simpler mapping between components and features, since it *was* designed as a composition of features.
> 
> I expect that too, but I still don't understand the point of the component list above. I mean, yes, you may be able to map and say "we need components X Y Z to provide features A and B" but how does this help TAPS?

So as I see it, "features" are the TAPS view of the world of the future -- the set of things that transport protocols can do, and that a better interface can give you access to. "Components" are the view of the world of the present -- what the current definitions *and deployed implementations* of transport protocols can do, and what each of those features imply.

There are a few ways you can implement the TAPS API. The one we chose to pursue in the WG (or at least I thought we had) is that the TAPS API takes (1) information from the application about its requirements in terms of features and parameters on those features (if available), (2) information from the path about which transport protocols and options are usable on the path, and the selects a transport protocol, and acts as glue between the API and the underlying protocol.

In this approach, it is IMO important to catalog the protocol components (and the interactions among them) since the mappings between components and features might not be clean. This might not be the document to do that in. But we wanted to do the exercise to see what the outcome looked like.

<snip>

>>>> However, you could go for a even more generic approach and only look at the implementation and as a first step figure where are any knobs that in principle could be configurable and then afterwards discuss all of these very specific knobs. I though about this approach and think it would be an interest exercise and potentially the right way to go. But I also think that the overhead would be super large and I don’t think it would give us much more than we have right now. So we the current approach we might need to expect some arbitrariness…
>>> 
>>> I lean towards this other one, of beginning with the knobs,
>> 
>> ... understanding that interface definitions aren't just about which knobs (and indicators) the API provides, but also the interaction patterns it enables, and that these interaction patterns can also be made inefficient or even impractical by the details of the protocol in question. (It's always *possible* to implement object transfer over streams, or time domain transfer over objects, or to translate asynchonous events into a synchronous API. That the Web and video thereon "work" is proof of that. You can run the whole Internet over DNS, if you want to. It would not work as well as the one we have today. :) )
> 
> Yes, I agree, and I hope that this won't really bite us... or what's your plan for addressing this problem?

In this document, I don't think we need to do anything. If we take an API-centric view, we simply need to note the interaction pattern supported by each API. In the services and interfaces documents, I think we need to explicitly address which interaction patterns we want to support.

>>> but not with the implementation but rather the "abstract API" as Joe called it: the interface to the app as defined in the RFCs (for where it really *is* defined).
>>> 
>>> I think that this discussion with Joe maybe suffered from focusing on TCP. SCTP is perhaps a better starting point because it supports almost everything.
>> 
>> We can certainly do SCTP next, which should make the exercise look less arbitrary. (FWIW I don't think we can *eliminate* arbitrary decisions in classification and where to cut the line between components, or to determine which components are worth talking about. But minimizing them is a good goal. :) )
>> 
>>> So I'm thinking that a different (and, to me, perhaps more appropriate and more systematic) method to get a list of features could be to start with the read / write options in RFC 6458, extend it with all such options from the other protocols, and then, protocol by protocol, ask: "what does this protocol provide that the list now doesn't contain?". Not sure the overhead of this approach would be super large?  But I agree, you may end up with the same list the way you do it now.
>> 
>> Again, that captures knobs and indicators, less so interaction patterns. (I will say I'm not 100% convinced the interaction patterns are important to capture for the individual protocols, but paying attention to them will be *crucial* to making sure that TAPS-the-system sees uptake among application and platform developers)
> 
> I agree about that, but components won't capture these interaction patterns either, or (why/how) would they?

No, they won't -- I was responding to two separate points here, sorry...

Cheers,

Brian