Re: [Taps] TAPS Transports and ICMP

"Pal Martinsen (palmarti)" <palmarti@cisco.com> Thu, 04 June 2015 19:08 UTC

Return-Path: <palmarti@cisco.com>
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 7E8681A88BD for <taps@ietfa.amsl.com>; Thu, 4 Jun 2015 12:08:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 g-_ibplQHd2B for <taps@ietfa.amsl.com>; Thu, 4 Jun 2015 12:08:31 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E5151A8900 for <taps@ietf.org>; Thu, 4 Jun 2015 12:08:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4676; q=dns/txt; s=iport; t=1433444906; x=1434654506; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=v/hX0IoviNvzElEvslttGyDPleqESIBjBJO4I4i7QgY=; b=GJNgXJ61Dxof4OV8L5tled+dlUdvAWtdhOuKq5Q/Ou1tHjHMgwNp5iqZ b3QlRcCnrgt4S3uG/yEZnV9mIFX+fgM/aMW7kBUjmmjhQqOyHNDldkWBb 4xEHEqSjbTosjnREm0gqhfeaC5/117ZzF83rwaZGWHYhuDpEYxwSEX3pP I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AjBQBmoXBV/5xdJa1bDoMCVF4Ggxi9EYV1AhyBHkwBAQEBAQGBC4QiAQEBAwEjEUUFCwIBCBgCAiMDAgICMBQBEAIEDgUWA4gMCA23V6QNAQEBAQEBAQEBAQEBAQEBAQEBAQEBEwSBIYoihCRHGweCaC+BFgWTGoQ8hmiXUCRhglg+bwGBA0KBAQEBAQ
X-IronPort-AV: E=Sophos;i="5.13,554,1427760000"; d="scan'208";a="17549356"
Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-8.cisco.com with ESMTP; 04 Jun 2015 19:08:25 +0000
Received: from xhc-rcd-x05.cisco.com (xhc-rcd-x05.cisco.com [173.37.183.79]) by rcdn-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id t54J8PZd017326 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 4 Jun 2015 19:08:25 GMT
Received: from xmb-rcd-x06.cisco.com ([169.254.6.183]) by xhc-rcd-x05.cisco.com ([173.37.183.79]) with mapi id 14.03.0195.001; Thu, 4 Jun 2015 14:08:25 -0500
From: "Pal Martinsen (palmarti)" <palmarti@cisco.com>
To: Joe Touch <touch@isi.edu>
Thread-Topic: [Taps] TAPS Transports and ICMP
Thread-Index: AQHQnrPt38kKNK6QP0icmFYJs5spRZ2c0L6AgAAqlgCAAANHAIAAC3cA
Date: Thu, 04 Jun 2015 19:08:24 +0000
Message-ID: <554F884C-642C-42B1-A976-EECD0C32928B@cisco.com>
References: <00597CB8-D128-408A-8F35-BA98CDF45A62@cisco.com> <55707211.8010609@isi.edu> <26B9DE0B-4D38-430D-A9A1-921CD0067C70@cisco.com> <5570988A.6040208@isi.edu>
In-Reply-To: <5570988A.6040208@isi.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.61.72.232]
Content-Type: text/plain; charset="utf-8"
Content-ID: <D93B9BB597FAD543BF684F5383FFC93D@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/taps/_moHg401XxBIe5t0EtAq3t2fXdQ>
Cc: "taps@ietf.org" <taps@ietf.org>
Subject: Re: [Taps] TAPS Transports and ICMP
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: Thu, 04 Jun 2015 19:08:39 -0000

> On 04 Jun 2015, at 20:27, Joe Touch <touch@isi.edu> wrote:
> 
> 
> 
> On 6/4/2015 11:15 AM, Pal Martinsen (palmarti) wrote:
>> 
>>> On 04 Jun 2015, at 17:43, Joe Touch <touch@isi.edu
>>> <mailto:touch@isi.edu>> wrote:
>>> 
>>> 
>>> 
>>> On 6/4/2015 3:48 AM, Pal Martinsen (palmarti) wrote:
>>> ...
>>>> Does it make sense for the TAPS transports draft to add ICMP?
>>> 
>>> ICMP is not a transport protocol.
>> 
>> Sure. And I agree. But it has the potential to influence how the various
>> transport protocols behave. That interaction might be nice to have
>> described in the transports draft.
> 
> Abstract APIs need to be described. These are part of that description.
> 
>>> The ways in which transport protocols either terminate or pass-through
>>> ICMP messages is part of the transport protocol abstract API.
>>> 
>>> E.g., for UDP and TCP see RFC1122.
>>> 
>>> UDP passes all ICMP messages to the app.
>>> 
>> No. Not unless the application specifically listens for it.
> 
> UDP passes all ICMP messages to the app. If the app doesn't listen for
> it, that’s the app's decision.
> 
Then there is a lot UDP application developers out there that does not care. 

Ill guess what I am asking if we should make life easier for them.

>> Unfortunately how to do this varies from OS to OS:
>> See https://tools.ietf.org/html/draft-martinsen-tram-stuntrace-01#appendix-A.2 for
>> examples.
> 
> You are confusing the OS and language-dependent implementation of the
> API with the abstract API.
> 
On purpose. I hate it when a feature should work because it says so in a RFC, but the implementations of it is so vastly different that it is not possible to get the thing to work so the app developer just chose to ignore it.

If TAPS ends up like the ICMP abstract interfaces it would make life even harder for the app developers trying to get things working on various platforms.

> RFC1122 requires that UDP implementations make the ICMP signals
> available to the application. It does not indicate by what mechanism.
> 
>> Listening for port unreachable can be nice to avoid spamming a host or
>> application that recently crashed. Detecting fragmentation or max MTU is
>> also a nice feature especially VoIP applications sending video can
>> utilise to optimise their packet sizes. 
> 
> UDP is required to pass ALL ICMP messages to the app layer, as per RFC 1122.

That is another problem. An app using port 5555 will receive all ICMP messages also generated by other apps running on other ports. Trivial to find the ones that belongs to you if you know how. 

So this boils down better education of the app developers?

> 
>>> TCP passes only dest unreachable types 0, 1, and 5, time exceeded and
>>> parameter problem. All others it interprets or ignores internally and
>>> it’s not clear it should pass up to the app.
>> 
>> That is exactly that kind of information I would find useful in the
>> transports draft.
> 
> Well, yes - IMO, that’s because it's part of the abstract API.
> 
Can they at least cite RFC 1122 then?

>> Any pitfalls with ICMP when doing SCTP?
> 
> In many ways, SCTP subsumes similar requirements as TCP, but that's
> probably buried in the SCTP docs.
> 

Thanks. Useful discussion for me. Not so sure if it was useful for rest of the TAPS list. Sorry about that.

.-.
Pål-Erik

> Joe