Re: [tsvwg] Comment on draft-ietf-tsvwg-udp-options-02.txt

Joe Touch <touch@strayalpha.com> Mon, 02 July 2018 17:42 UTC

Return-Path: <touch@strayalpha.com>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9877B130DDA for <tsvwg@ietfa.amsl.com>; Mon, 2 Jul 2018 10:42:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.989
X-Spam-Level:
X-Spam-Status: No, score=-1.989 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=strayalpha.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 GLdj2EtU0_Dq for <tsvwg@ietfa.amsl.com>; Mon, 2 Jul 2018 10:42:31 -0700 (PDT)
Received: from server217-3.web-hosting.com (server217-3.web-hosting.com [198.54.115.226]) (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 EE54512D7F8 for <tsvwg@ietf.org>; Mon, 2 Jul 2018 10:42:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=strayalpha.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IfvRaCntRsgcyl4Rbkah0yMdW6+DM/tHzbTtmlJjwxU=; b=sPMaPzPPB+J2W6W7bhO2Ze3vI CBnCG4mXOkWbhvqSrt5xBazYi1vkCTP1MsQc4toNQJuwqBZiGTLY7VM87G5507O7PogRuxU4Eohjl ND4V++6ZC69Yj+bQDDLT7fbafql3gKqrS7Iy2uJ0yT2bGhmbyUYfzi/JfXCzKRSf6I6ILLkrRWDhM 1pSBlmEK8S9LsndY4vV8TVGJJhvS6ivy+6GyoLP0+YYtw2V52h2+XBqthYU4wfuxRSEdhD1FBbomn DY6SmmFik9ZUYbgrNznF/JDIDHx0BClDe15hxvpI7fLMKlNbXtdWSFuYQMO8mGJzHQMOZfjqxMhk4 xjzxTNgxQ==;
Received: from cpe-172-250-240-132.socal.res.rr.com ([172.250.240.132]:61554 helo=[192.168.1.77]) by server217.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from <touch@strayalpha.com>) id 1fa2qL-004502-0n; Mon, 02 Jul 2018 13:42:30 -0400
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\))
From: Joe Touch <touch@strayalpha.com>
In-Reply-To: <CALx6S369bG_5Ta33-Z9uj+bifud0QhHpUebi3j0O_qXr7hUMpg@mail.gmail.com>
Date: Mon, 02 Jul 2018 10:42:28 -0700
Cc: tsvwg <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F8F72087-92F4-4EA2-BEF6-CE05DAB2582B@strayalpha.com>
References: <CALx6S34Yxzv_9U4XFr_PdDUP_1X1iN3vYH5=5XVe8hKWfvS1WQ@mail.gmail.com> <272B6C51-AD9D-4AFB-9FFE-0CB40E6D1A37@strayalpha.com> <2714DC0A-60AA-41FA-B602-4BD40DE7FE81@strayalpha.com> <CALx6S369bG_5Ta33-Z9uj+bifud0QhHpUebi3j0O_qXr7hUMpg@mail.gmail.com>
To: Tom Herbert <tom@herbertland.com>
X-Mailer: Apple Mail (2.3445.8.2)
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server217.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - strayalpha.com
X-Get-Message-Sender-Via: server217.web-hosting.com: authenticated_id: touch@strayalpha.com
X-Authenticated-Sender: server217.web-hosting.com: touch@strayalpha.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/rGa3i3Gckly5Gd_yDy-cboSwopc>
Subject: Re: [tsvwg] Comment on draft-ietf-tsvwg-udp-options-02.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2018 17:42:36 -0000


> On Jul 2, 2018, at 8:56 AM, Tom Herbert <tom@herbertland.com> wrote:
> 
> On Sun, Jul 1, 2018 at 9:03 PM, Joe Touch <touch@strayalpha.com> wrote:
>> Catching up on a series of edits...
>> 
>> On Jan 21, 2018, at 2:47 PM, Joe Touch <touch@strayalpha.com> wrote:
>> 
>> For instance, if
>> an ACS checksum kind field flips from 3 to zero, the receiver would
>> see EOL instead of ACS. I believe this is a general problem any time
>> checksum or security is put in options. For GUE, we added a disclaimer
>> like this (draft-ietf-intarea-gue-extensions-02)
>> 
>> 
>> I can add some text addressing this.
>> 
>> 
>> I have reconsidered this issue.
>> 
>> It is impractical and not useful to address the different ways in which an
>> arbitrary byte change can “flip” and the consequences thereof.
>> 
>> If a header checksum is used, these might be caught, but if not, all bets
>> are off. It’s not clear even that needs to be said.
> 
> To follow your gaming analogy, when a sender inserts a checksum or
> integrity check it is making a bet that corrupted packets will be
> detected (the wager is the cost of computing the checksum). Any type
> of check can be assigned a probability that corrpupted packets will be
> detected. Suppose that a mandatory checksum (like in TCP or IP) has
> probability 'p_m' and and optional checksum has probability 'p_o'.
> Then we know that 'p_m > p_o' because the the data check can detect
> corruption of the checksum information, but an optional checksum
> misses corruption of the type field for the checksum. Manadory
> checksum is a better bet for the sender, question is how much better
> is it.
> 
> For UDP options, my biggest concern is still misinterpretation of the
> slack space.

Agreed - the question is whether that check needs to be very strong.

> I don't believe it has been proven that in the 40 year
> history of UDP no packets are being sent with an UDP length/IP lenght
> mismatch,

It’s impossible to prove a negative without complete information; given we can’t see every packet on the Internet over the past 40 years, there can never be such a proof...

> although I do wonder if this has ever been used covert
> channel.

Sure - but there are plenty of other covert channels in Internet protocols that are easier to use..

> A fixed UDP options header with a checksum would
> probabilistically ensure that such misinterpretion won't happen-- at a
> cost of just a few bytes.

Probabilistically, a single byte checksum might be sufficient to catch this happening in a sequence of such packets, though. 

We could add text that if a large number of packets fail the test, then we would assume the option area is not supported and disable it.

Joe