Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-13.txt

Joseph Touch <touch@strayalpha.com> Sun, 11 July 2021 00:30 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 1C8503A13F2 for <tsvwg@ietfa.amsl.com>; Sat, 10 Jul 2021 17:30:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.454
X-Spam-Level:
X-Spam-Status: No, score=0.454 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=no 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 KSbCeEuIE3AH for <tsvwg@ietfa.amsl.com>; Sat, 10 Jul 2021 17:30:42 -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 743183A13F3 for <tsvwg@ietf.org>; Sat, 10 Jul 2021 17:30:41 -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=uTdaZ3XZEO5UB19Vwqo+5fBRXbKVzg0xGqNBDWRfeFA=; b=LAW8TXZOW9PiY5FEEGplGCgEpv qnUUzkxFgyHhfmR+j9XxpaKtJShci7u/iaTX6834dpM9uQjEhBDB/1d3AHqBqMDAEGE3INqMgJVAW ikFm9zRqU5PvtzHam9jRZSZHnisUDjxE2SxOPIppBFT/xsfnBIsZOcugEt9mjtPUhFqrzRSkSokTH vuZ4dyPD6JOM07gOe6YqcN3DDXZeslgwjpQhNSrCTZ2HnHr2uswr21JlljkF3JptdXeedy1bddacd 4speM3pR2IUY2d4h8N0LxFno1qXYOkzCQdUbCqqMWVtHF6ehoHqOwye8lp+Zyqgn/AyoxO+QLYNtV LskztQQQ==;
Received: from cpe-172-250-225-198.socal.res.rr.com ([172.250.225.198]:56010 helo=smtpclient.apple) by server217.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <touch@strayalpha.com>) id 1m2NMh-000EOz-9W; Sat, 10 Jul 2021 20:30:40 -0400
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\))
From: Joseph Touch <touch@strayalpha.com>
In-Reply-To: <CALx6S34=TZKNwmBn0xvS7-JFtkbx5w4DyyHTxCDZ_Do20Ea+fA@mail.gmail.com>
Date: Sat, 10 Jul 2021 17:30:34 -0700
Cc: TSVWG <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <45383EC3-F244-4809-99E4-50E7ADD2C07E@strayalpha.com>
References: <162408795080.21706.5548660195641640175@ietfa.amsl.com> <C2C396E7-B728-496E-841B-D9F64004D3E3@strayalpha.com> <CACL_3VHC55cdu96=5OuNKmaaXrvDY5wkYid9a+j6=VtQrvJhZg@mail.gmail.com> <5086F1C2-55C9-4BD4-BB80-9C247E379204@strayalpha.com> <CALx6S373DmsGAncT8j2rGdpSfQ8q6pZi7iTVw4geZuxQdbA-sA@mail.gmail.com> <6E26E6BD-9AC0-46FF-8BA5-EDA016F840CE@strayalpha.com> <CALx6S352p8rboxD9k3bebLvep0rwk37y5avxbqFaFCsuQ_Nt2w@mail.gmail.com> <FE7B082E-B684-4D0A-B0F7-3761EBC25720@strayalpha.com> <CALx6S36Avgjhz84rKc_=c1DCRsWHquSgztPT_7visUkacj+H8A@mail.gmail.com> <EBBDB369-55D6-4E5B-8FC5-1EDF65A13327@strayalpha.com> <CALx6S34=TZKNwmBn0xvS7-JFtkbx5w4DyyHTxCDZ_Do20Ea+fA@mail.gmail.com>
To: Tom Herbert <tom@herbertland.com>
X-Mailer: Apple Mail (2.3654.100.0.2.22)
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/SO_WV9usI-2muxU5Zxf0eencuLs>
Subject: Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-13.txt
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: Sun, 11 Jul 2021 00:30:47 -0000


> On Jul 10, 2021, at 11:49 AM, Tom Herbert <tom@herbertland.com> wrote:
> 
> On Sat, Jul 10, 2021 at 9:09 AM Joseph Touch <touch@strayalpha.com> wrote:
>> 
>> 
>> UDP options does at least when UDP checksum is
>> non-zero. If processing UDP options walks the list twice,
>> 
>> Only when the SHOULD is not followed; we can certainly add that note.
>> 
>> An implementation could easily walk the TLV and set a flag if options other than OCS or NOP appear. The walk ignores such options until OCS and restarts if OCS works.

And notes when OCS isn’t present but required.

>> So we can note that this “double walk” would incur double work if:
>> - options other than OCS and NOP appear before OCS
> 
> What if OCS is not present?

See above.

> If we ignore options in the first walk to
> account for the possibility that an OCS might be present, doesn't that
> mean that once the walk completes and we haven't found the OCS we need
> to walk again to actually process all the options?

Only if OCS is optional.  If OCS is required, if you haven’t found OCS you would stop.

If OCS is present and early, the walk stops quickly. However, if OCS isn’t required, it’s not clear that if its absence in the first few bytes should interfere with the rest of processing (which would be ignored if OCS shows up later).

>> AND
>> - offloading is used

Again, it boils down to whether OCS is buried deep in the packet or not - that’s why we have a SHOULD. If we have a MUST, we have to decide now what the alignment is and force that overhead on all packets (including alignment).

Again, though, if the WG wants to push that field to the front as fixed - either always the first two bytes or always the first two X-aligned bytes (for X=4 or 8), then it’s easy to add - but we need to pick 4 or 8 now to do that. The issue is that there are no other equivalent fields that are needed, though.

Joe