Re: [tcpm] Catalog approach for syn option aggregation draft

Yoshifumi Nishida <nsd.ietf@gmail.com> Sat, 08 July 2023 07:09 UTC

Return-Path: <nsd.ietf@gmail.com>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2CD6FC151066 for <tcpm@ietfa.amsl.com>; Sat, 8 Jul 2023 00:09:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7_dfTTTtJ45J for <tcpm@ietfa.amsl.com>; Sat, 8 Jul 2023 00:09:02 -0700 (PDT)
Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3146FC14CE53 for <tcpm@ietf.org>; Sat, 8 Jul 2023 00:09:02 -0700 (PDT)
Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1b055511b85so2459090fac.2 for <tcpm@ietf.org>; Sat, 08 Jul 2023 00:09:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688800141; x=1691392141; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zeayu+zCV9l+UpMnSaUM76qeimBEFo6JU4K99ziNlW4=; b=qQGW2Kk5yIAr9vCR9ZiV4DSYSUqIg3/OkNXWO95qUWcMiJlUiOiFzJ7Eog2Yuu/LpC PENJeOL+8jbAzWLxbgJQYDM04FJ1DxkRKIumhYHIedbM5qjswPvLIYMCaWOrFDOJMdQ0 Whaa8+cSiwbtXKpFYh1wO71yQcokaVce6lIzL0cWlzJVkljPFHLIWZpwZYl4QllEuoiA gcO5UPaKBKdJDhpvXB1toJ3RhcFG/A8T9yPRL8FUEKR+Y4IYNY1PWSPzeWhb4iT7GUnb rNC3H3KGc1N92ybhFx0Ryy7dfBNTIevRrUxxsNBHKQ0n5ENanqdhHCVzMggkQNqadK85 Zx6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688800141; x=1691392141; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zeayu+zCV9l+UpMnSaUM76qeimBEFo6JU4K99ziNlW4=; b=NpUxlenIA/SO37qd7GIIKD7C77EqKz9BokgCJ+m7MK+gRkYs2Dt0lWwTNWmpVr2lzJ 60Yta4NtbvBrH8x6WSIu6yZULrdrPKBg4XjAwRszso/eBT49+vd1WMIDL6zysfsrZbqX fgUJV1vZPDz1g4ESeVlE6/QgI4/FGajBQNOwGC0N9HIK6RWdsMKFXQQVS/nvi4yja0Ne +bLrSI19LQoZ75dCZy2BfT1KfpMrrBESu7CkOtrHHi1+2nMfKanPfC6beg2cjg8wkWcH JnWqbcZ20LIoAf1C2Vw+ot2GHStSwZrDkTPPy08ANF+787ptORdvsd9yno0QQa0o92ej o3BQ==
X-Gm-Message-State: ABy/qLYmXf0sURHc/4tMLGsD28BZVNAlvY0fAKul7E5o6dlwiznFYg3h 2eD5hBUcxZmO+BiWcfyIfjIuM4v9br2V+21C5lQ=
X-Google-Smtp-Source: APBJJlFLBKLrWTuhy8h+MY6FFKiL1y74M7m3+Ck1cF/9RgmZ5XH0EpnRXC5aod9tOt6lfOKlAaTQGE4tgWfZyYyh/sQ=
X-Received: by 2002:a05:6870:a454:b0:1b0:289d:40fc with SMTP id n20-20020a056870a45400b001b0289d40fcmr8989558oal.28.1688800141301; Sat, 08 Jul 2023 00:09:01 -0700 (PDT)
MIME-Version: 1.0
References: <168854542387.36296.13082017864116657962@ietfa.amsl.com> <CAAK044Tgsp87kf6PGOcr-MA6UKHnP4wGu20CnJEXZ+yA=7rMgg@mail.gmail.com> <18b4eb50c5024e0a99bacecea8e0c0f3@hs-esslingen.de> <CAAK044QQOwj74m=jp-OU5Yc5vMrpDgVxjwe32vPixX1uE5hedA@mail.gmail.com> <CADVnQykA=e5NezOgyrM6Asbw-yw_NCHHVa_q99wk2cX_h5NApQ@mail.gmail.com>
In-Reply-To: <CADVnQykA=e5NezOgyrM6Asbw-yw_NCHHVa_q99wk2cX_h5NApQ@mail.gmail.com>
From: Yoshifumi Nishida <nsd.ietf@gmail.com>
Date: Sat, 08 Jul 2023 00:08:50 -0700
Message-ID: <CAAK044STKd9Tourt94sJ6MwN6tY3qsGs88dE0y7drmMeSWJE8g@mail.gmail.com>
To: Neal Cardwell <ncardwell@google.com>
Cc: "Scharf, Michael" <Michael.Scharf@hs-esslingen.de>, "tcpm@ietf.org Extensions" <tcpm@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000084db4505fff46c13"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/Rxff405W6FsohmWEhSV_lSf1VVI>
Subject: Re: [tcpm] Catalog approach for syn option aggregation draft
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 08 Jul 2023 07:09:06 -0000

Hi Neal,
Thanks for the comments.

On Fri, Jul 7, 2023 at 5:32 AM Neal Cardwell <ncardwell@google.com> wrote:

> Hi Yoshi,
>
> Thanks for posting this draft. I had a couple quick questions:
>
> (1) Would it be possible to extend the draft text to describe the proposed
> deployment model for this option? It's not clear to me how/why/when this
> new option would be deployed to convey support of the existing wscale,
> SACK, and MSS options.  If a SYN sender does not know whether the remote
> side supports this new aggregated option (the likely case for the public
> Internet), then to ensure it can convey support for wscale, SACK, and MSS
> the SYN sender must send both the original wscale, SACK, and MSS option,
> *plus* the new aggregated option. So no space is saved on the SYN; rather,
> extra space is consumed.  So is the idea that this option would only be
> used in controlled environments (datacenter, enterprise, embedded) where
> the sender could administratively "know" that the remote side supports this
> new aggregated option? Or is the idea that we really only need to save
> space on the SYN+ACK, by which point the passive side will "know" that the
> active side supports the new option?
>

The focus of the draft is not only controlled environments but also public
internet.
One possible way to include aggregated options with existing options as
you've mentioned although this is a bit redundant.
But, endpoints can cache this info. So, redundant sending won't always
happen.
In addition, I think we can do redundant sending in SYN/ACK and then the
client caches the info if it supports the aggregated formats. In this way,
at least we don't have to do redundant sending in SYN.
I will try to describe something like this in the next version as one
possibility.


> (2) Section 3.1, "Option Format",  mentions that the length byte holds a
> value between 3 and 5. But it seems that there can be up to four groups. So
> presumably the option as a whole can be as large as 4 bytes for group data,
> plus a 1-byte kind, plus a 1-byte length, for a total of 6 bytes?
>

sorry. I forgot to update this part from the previous version. Yes, in the
current format, the length will be 3-6.
Thanks for pointing it out.

(3) I share the concern about supporting MSS values that make sense for
> IPv6+Ethernet, and the concern about the installed base of MSS clamping.
>

I am thinking about several points for MSS clamping.
1: if we use a catalog approach for clamped MSS, which values can be
efficient
2: If an endpoint uses aggregated option for MSS and clamping happens in
the middle boxes which don't understand aggregated options, the MSS info
might be messed up.
If there're some thoughts on them or other points to be considered, please
let me know.

Thanks,
--
Yoshi

>
>
> On Fri, Jul 7, 2023 at 4:07 AM Yoshifumi Nishida <nsd.ietf@gmail.com>
> wrote:
>
>> Hi Michael,
>>
>> Yes, the pcap files I've used don't have much v6 traffic, so I only
>> collected 1.4M syn packets for IPv6. But, the most dominant value for MSS
>> is 1440 (more than 60%)
>> So, I think your suggestion makes sense to me.
>> Thank you so much!
>> --
>> Yoshi
>>
>> On Fri, Jul 7, 2023 at 12:41 AM Scharf, Michael <
>> Michael.Scharf@hs-esslingen.de> wrote:
>>
>>> Hi Yoshi,
>>>
>>>
>>>
>>> Regarding the MSS: Isn’t the MSS for IPv6 only 1440 byte?
>>>
>>>
>>>
>>> Just as a thought: Instead of encoding an MSS value, 1 bit could be used
>>> to convey “if set to 1, use the maximum MSS for the Ethernet MTU of 1500
>>> byte”?
>>>
>>>
>>>
>>> Disclaimer: I haven’t thought about the implications on IPv4/IPv6
>>> translation techniques. But, anyway, the bigger problem may be the
>>> installed base of MSS clamping…
>>>
>>>
>>>
>>> Michael
>>>
>>>
>>>
>>> *From:* tcpm <tcpm-bounces@ietf.org> *On Behalf Of * Yoshifumi Nishida
>>> *Sent:* Friday, July 7, 2023 8:40 AM
>>> *To:* tcpm@ietf.org Extensions <tcpm@ietf.org>
>>> *Subject:* [tcpm] Catalog approach for syn option aggregation draft
>>>
>>>
>>>
>>> Hi folks,
>>>
>>>
>>>
>>> During my presentation for syn aggregation draft in the last WG meeting,
>>> some folks suggested using a catalog approach to compress existing options
>>> such as MSS, wscale, etc.
>>>
>>> I am still thinking, but I've put some initial ideas about this approach
>>> in the updated version of the draft.
>>>
>>>
>>>
>>> In a nutshell, the idea is to use entire bits for 'Group 1'. As one
>>> group can carry 6 bits, we use 4 bits for window scale option, 1 bit for
>>> SACK-permit and another 1 bit for MSS.
>>>
>>> As window scale value ranges from 0 to 14, we can accomodate all values
>>> in 4 bits.
>>>
>>> SACK-permit carries 1 bit information, so using 1 bit is enough.
>>>
>>> MSS is a bit tricky as it can carry various values. But, as far as I've
>>> checked 24M syn packets in CAIDA and WIDE's packet captures, over 40% MSS
>>> options in SYN packets carries 1460.
>>>
>>> Hence, the draft uses 1 bit to indicate MSS=1460.
>>>
>>>
>>>
>>> Since I'm still wondering if this format is fine or there might be more
>>> efficient ways, your feedback is highly appreciated.
>>>
>>> If you're interested, please check the updated draft.
>>>
>>> Thank you so much!
>>>
>>> --
>>>
>>> Yoshi
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------- Forwarded message ---------
>>> From: <internet-drafts@ietf.org>
>>> Date: Wed, Jul 5, 2023 at 1:24 AM
>>> Subject: I-D Action: draft-nishida-tcpm-agg-syn-ext-04.txt
>>> To: <i-d-announce@ietf.org>
>>>
>>>
>>>
>>>
>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>> directories.
>>>
>>>    Title           : Aggregated Option for SYN Option Space Extension
>>>    Author          : Yoshifumi Nishida
>>>    Filename        : draft-nishida-tcpm-agg-syn-ext-04.txt
>>>    Pages           : 11
>>>    Date            : 2023-07-05
>>>
>>> Abstract:
>>>    TCP option space is scarce resource as its maximum length is limited
>>>    to 40 bytes.  This limitation becomes more significant in SYN
>>>    segments as all options used in a connection should be exchanged
>>>    during SYN negotiations.  This document proposes a new SYN option
>>>    negotiation scheme that can aggregate multiple TCP options in SYN
>>>    segments into a single option so that more options can be negotiate
>>>    during 3-way handshake.  With its simple design, the approach does
>>>    not require fundamental changes in TCP.
>>>
>>> The IETF datatracker status page for this Internet-Draft is:
>>> https://datatracker.ietf.org/doc/draft-nishida-tcpm-agg-syn-ext/
>>>
>>> There is also an HTML version available at:
>>> https://www.ietf.org/archive/id/draft-nishida-tcpm-agg-syn-ext-04.html
>>>
>>> A diff from the previous version is available at:
>>>
>>> https://author-tools.ietf.org/iddiff?url2=draft-nishida-tcpm-agg-syn-ext-04
>>>
>>> Internet-Drafts are also available by rsync at rsync.ietf.org:
>>> :internet-drafts
>>>
>>>
>>> _______________________________________________
>>> I-D-Announce mailing list
>>> I-D-Announce@ietf.org
>>> https://www.ietf.org/mailman/listinfo/i-d-announce
>>> Internet-Draft directories: http://www.ietf.org/shadow.html
>>> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
>>>
>> _______________________________________________
>> tcpm mailing list
>> tcpm@ietf.org
>> https://www.ietf.org/mailman/listinfo/tcpm
>>
>