Re: [tsvwg] OCS option in draft-ietf-tsvwg-udp-options-07

Raffaele Zullo <raffaele@erg.abdn.ac.uk> Mon, 11 March 2019 19:27 UTC

Return-Path: <raffaele@erg.abdn.ac.uk>
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 6C1D11310EE for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2019 12:27:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.1
X-Spam-Level: ***
X-Spam-Status: No, score=3.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, GB_SUMOF=5] autolearn=no autolearn_force=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 WbDPfaCZdL0Z for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2019 12:27:12 -0700 (PDT)
Received: from pegasus.erg.abdn.ac.uk (pegasus.erg.abdn.ac.uk [IPv6:2001:630:42:150::2]) by ietfa.amsl.com (Postfix) with ESMTP id C10A91310AB for <tsvwg@ietf.org>; Mon, 11 Mar 2019 12:27:12 -0700 (PDT)
Received: from erg.abdn.ac.uk (at-www-1.erg.abdn.ac.uk [IPv6:2001:630:42:150::5]) by pegasus.erg.abdn.ac.uk (Postfix) with ESMTPSA id 28CDA1B001CB; Mon, 11 Mar 2019 19:27:08 +0000 (GMT)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Date: Mon, 11 Mar 2019 19:27:08 +0000
From: Raffaele Zullo <raffaele@erg.abdn.ac.uk>
To: "C. M. Heard" <heard@pobox.com>
Cc: Joe Touch <touch@strayalpha.com>, tsvwg <tsvwg@ietf.org>
In-Reply-To: <CACL_3VGp48nu_CRPTKTRnVkEpc=PAK05jQ8zKBoqpWSMxHnihg@mail.gmail.com>
References: <CACL_3VFg-EWCYHZ4+kYV30vjNzPs90ysAu5SCdLNb+9OPxE+3g@mail.gmail.com> <B1D19ABC-428B-42D8-AE97-BF3B967B1140@strayalpha.com> <f95fb11b44f5d628ba85ede7d9feccf7@erg.abdn.ac.uk> <136FF703-4DFE-4B32-A722-67122F28C894@strayalpha.com> <CACL_3VGp48nu_CRPTKTRnVkEpc=PAK05jQ8zKBoqpWSMxHnihg@mail.gmail.com>
Message-ID: <32fee79db0d64dd078e3025a8a5c89ff@erg.abdn.ac.uk>
X-Sender: raffaele@erg.abdn.ac.uk
User-Agent: Roundcube Webmail/1.2.3
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/ma7c3hFkLDvC7-bObZ84ZiAEH1E>
Subject: Re: [tsvwg] OCS option in draft-ietf-tsvwg-udp-options-07
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.29
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, 11 Mar 2019 19:27:14 -0000

Hello,

On 2019-03-11 16:26, C. M. Heard wrote:
> On Sat, 9 Mar 2019 11:28:57 -0800 Joe Touch wrote:
>> Well, there are several implications here:
>> 
>> 1. we can add in the option length, BUT that also means:
>>         (a) we need to declare that the option area consumes the
> whole of
>>         the surplus area (no chance for other uses)
>>         OR
>>         (b) that the surplus area is always zero
>>         OR
>>         (c) that OCS covers even the surplus area (it doesn’t need
> to be
>>         zero; it does need to be included)
>> 
>>         we need a choice here. AFAICT, the safest (a)
> 
> I agree with that.


I would add that a Zero padding after UDP Options area is not neutral to 
the (full IP payload) checksum because it still increases the IP Total 
Length (it changes the "pseudo-header").


>> 2. we don’t need OCS alignment; what we do need is to
> “coordinate” the
> 
>  alignment of a 16-bit of the length to the OCS checksum field
>>         i.e.:
>>         - calculate the length needed (IPlen - UDP len)
>>         - if OCS checksum field is not 16-bit aligned to the start
> of the
>>           option area, then swap bytes
>>         - add the result to the OCS checksum (‘pseudo header’
> seems a bit
>>           heavy here, but same point)
> 
> I believe that is correct. Padding could still be convenient, though,
> 
> and I see no reason to disallow it (the current draft does permit
> padding for alignment).
> 

Would it be possible to leave this as a choice?
CCO draft, despite on sender's side required alignemnt,
on receiver's side only required that the complement of the sum of 
Options and pseudoheader was zero,
in order to accept also a working CCO computed without alignment.

Thank you,
Raffaele Zullo