Re: [tsvwg] Fwd: New Version Notification for draft-touch-tsvwg-udp-options-05.txt

Derek Fawcus <dfawcus+lists-tsvwg@employees.org> Tue, 28 February 2017 21:36 UTC

Return-Path: <dfawcus@employees.org>
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 E88CB1296CB for <tsvwg@ietfa.amsl.com>; Tue, 28 Feb 2017 13:36:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=employees.org; domainkeys=pass (1024-bit key) header.from=dfawcus+lists-tsvwg@employees.org header.d=employees.org
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 T4RViWyxvDPY for <tsvwg@ietfa.amsl.com>; Tue, 28 Feb 2017 13:36:21 -0800 (PST)
Received: from esa01.kjsl.com (esa01.kjsl.com [IPv6:2607:7c80:54:3::87]) by ietfa.amsl.com (Postfix) with ESMTP id A83CA126D73 for <tsvwg@ietf.org>; Tue, 28 Feb 2017 13:36:21 -0800 (PST)
Received: from cowbell.employees.org ([198.137.202.74]) by esa01.kjsl.com with ESMTP; 28 Feb 2017 21:36:20 +0000
Received: from cowbell.employees.org (localhost [127.0.0.1]) by cowbell.employees.org (Postfix) with ESMTP id 96F31D7890; Tue, 28 Feb 2017 13:36:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=employees.org; h=date:from :to:cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=selector1; bh=c+FR1gGvpd9RlzO7E0sKFr7SVE8=; b=eS SJ0fXOu4xIUpmVl+B1InqTj5UK6HyLu4Aoa6GOVnIKJRUCcKvPgxK4hBYQBelcw9 mN0MT6X+Mm/TbeQvMqwmiqDZ6a00VY2XGXNCy4uacBWm847+QY2AuaYizvya7hNL +IrfRTdg/65nZHLOoQGpiSXA9S0n/gKsrz1NWinH4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=employees.org; h=date:from :to:cc:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=selector1; b=aByewJltuF+1WNESixT26yRf+Nsc a6cu36SRZSDLRyAKFvzL8zXnibzBahp5lSOEX30KziwD4icblAsBvGMqbRK3S4mj EtoqiR/cZKOVsIctIsAxffKaFLQY9mHe23lfjMPM3E/yW9kwEwjhu94SfJOxC+ME sOCslmu6so4pzlM=
Received: by cowbell.employees.org (Postfix, from userid 1736) id 91256D788F; Tue, 28 Feb 2017 13:36:20 -0800 (PST)
Date: Tue, 28 Feb 2017 21:36:20 +0000
From: Derek Fawcus <dfawcus+lists-tsvwg@employees.org>
To: Joe Touch <touch@isi.edu>
Message-ID: <20170228213620.GA4674@cowbell.employees.org>
Mail-Followup-To: Joe Touch <touch@isi.edu>, tsvwg <tsvwg@ietf.org>
References: <148823787288.13843.6091386736320524682.idtracker@ietfa.amsl.com> <800de1a6-cb9b-f22b-946a-8b6832fc9a05@isi.edu> <20170228163751.GA89477@cowbell.employees.org> <7d58ead9-2d1a-d35c-7cd2-90526918838c@isi.edu> <20170228204607.GA71184@cowbell.employees.org> <d03f54c3-46cd-7023-0d2f-70b3831ad067@isi.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <d03f54c3-46cd-7023-0d2f-70b3831ad067@isi.edu>
User-Agent: Mutt/1.7.2 (2016-11-26)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/G9GggJzdE5kArh-ol8mXovpfDuc>
Cc: tsvwg <tsvwg@ietf.org>
Subject: Re: [tsvwg] Fwd: New Version Notification for draft-touch-tsvwg-udp-options-05.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 28 Feb 2017 21:36:23 -0000

On Tue, Feb 28, 2017 at 01:16:07p.m. -0800, Joe Touch wrote:
> > Sorry,  I've lost the thread here.
> >
> > I was not suggesting altering how the normal UDP checksum works.
> >
> > I was mainly driving at how in implementing this in a host stack I'd
> > like to verify the options.  Namely that in the absense of the Lite
> > option,  it would allow one to use the existing checksum validation
> > routine to run across the whole of the surplus area, and if it summed
> > to the usual (1's complement) zero,  it is good.
> I'm not sure I see that.
> The existing checksum runs over the IP pseudoheader, the UDP header, and
> the UDP body.
> 
> OCS runs over just the option area.
> 
> Even in the absence of LITE, the UDP checksum wouldn't cover the option
> area.

We're at cross purposes here...

I'm not suggesting altering the UDP checksum,  I'm referring to replacing
(discarding) the OCS option.

So in section 4, figure 3 where you describe the surplus area, which is
essentially an array of bytes used for options.  I'm proposing instead to
give it a structure:

    +------+-------+
    |   checksum   |
    +------+-------+
    ... options ...
    +------+-------+

Where options is zero or more options as you describe (omitting OCS).

Where checksum is the usual checksum algorith over the whole of the
surplus area.  i.e. such that when the receiver sums the whole of the
area checksum through to the end of options, it should sum to 1s-complement
zero.  (taking in to consideration the length of options being odd).


Then for your LITE header scheme,  still require that the LITE header
be the first option,  and rather than swap 4 bytes (the LITE header)
as you describe,  instead swap 6 bytes (the checksum followed by the
LITE header).  Hence why I was the referring to partial sums.

DF