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

"C. M. Heard" <heard@pobox.com> Mon, 11 March 2019 20:28 UTC

Return-Path: <heard@pobox.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 5A6F2127961 for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2019 13:28:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.299
X-Spam-Level: **
X-Spam-Status: No, score=2.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, GB_SUMOF=5, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=pobox.com; domainkeys=pass (1024-bit key) header.from=heard@pobox.com header.d=pobox.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 wRdCwiOYDV2s for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2019 13:28:26 -0700 (PDT)
Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4559112787F for <tsvwg@ietf.org>; Mon, 11 Mar 2019 13:28:26 -0700 (PDT)
Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 2F2901344A5 for <tsvwg@ietf.org>; Mon, 11 Mar 2019 16:28:25 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; s=sasl; bh=QxByFDmerD+n tGxFyZ4eUM8RmsU=; b=o9hRGalsd3O4enrq8qXWqsc8uZjk0MklDMO2C3Eqdplh /kqHwOviUwxDfwe3WbcIg3xivtpDiKYZvtCKYKBSPBJzoVCS1pnvfzx4vYcKpRLP ciHgZFAG/EAP7LV/gJAliGuF2Z59eLe3PFZqdMdNlfiq5pLEfVoN+aFT3xodmcs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; q=dns; s=sasl; b=CzMbL/ EINafkTU2+VPGKZKAgPMYoJZ75kWUl3gPnNCH1PFs3IpBZectRGg20LSPstkypMN Ewmj6CpoVBRgHlXvpYtLUqYVRHLt/l3iTxhwTDJwsMbNxcyOFuyWssuCSX1Gu57Y iEdZS2Zxgr/GX3tejPBz/u6636AokAYKFE1QU=
Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 2742C1344A4 for <tsvwg@ietf.org>; Mon, 11 Mar 2019 16:28:25 -0400 (EDT)
Received: from mail-it1-f169.google.com (unknown [209.85.166.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 9AAF11344A1 for <tsvwg@ietf.org>; Mon, 11 Mar 2019 16:28:24 -0400 (EDT)
Received: by mail-it1-f169.google.com with SMTP id k193so817348ita.3 for <tsvwg@ietf.org>; Mon, 11 Mar 2019 13:28:24 -0700 (PDT)
X-Gm-Message-State: APjAAAXnOOtimb5NNnJlz6/W/GD9O2KDjw2hcCrky+rZsf3U3KYjRUgj PwyIgKB69KcaPfAdJHlqRVqsqp61/l/PsZ+pxz8=
X-Google-Smtp-Source: APXvYqx55cCw/o+enwXZ985tGpLJboAihjYlwWiX+iiMJ72M8p9SCfhvgvFpI6BpzSGHuBDweI6KuEO2RXDwQBZMLeA=
X-Received: by 2002:a24:101:: with SMTP id 1mr53338itk.138.1552336104054; Mon, 11 Mar 2019 13:28:24 -0700 (PDT)
MIME-Version: 1.0
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> <32fee79db0d64dd078e3025a8a5c89ff@erg.abdn.ac.uk>
In-Reply-To: <32fee79db0d64dd078e3025a8a5c89ff@erg.abdn.ac.uk>
From: "C. M. Heard" <heard@pobox.com>
Date: Mon, 11 Mar 2019 13:28:12 -0700
X-Gmail-Original-Message-ID: <CACL_3VE=6Yq0mHyadsOB92AwTyhoWXHCCHTsZOAo8VGjUJcVZQ@mail.gmail.com>
Message-ID: <CACL_3VE=6Yq0mHyadsOB92AwTyhoWXHCCHTsZOAo8VGjUJcVZQ@mail.gmail.com>
To: Raffaele Zullo <raffaele@erg.abdn.ac.uk>
Cc: Joe Touch <touch@strayalpha.com>, tsvwg <tsvwg@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Pobox-Relay-ID: 3867E794-443C-11E9-8CC0-DF19F34BB12D-06080547!pb-smtp2.pobox.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/MovOrateWXBFH8wvEwS1Z4ecp8o>
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 20:28:27 -0000

On Mon, 11 Mar 2019 19:27:08 +0000 PM Raffaele Zullo wrote:
> 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").

Good point; that one seems to keep escaping me :-(

> >> 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.

+1

Mike Heard