Re: Fwd: New Version Notification for draft-jaju-httpbis-zstd-window-size-00.txt

Martin Thomson <mt@lowentropy.net> Tue, 05 March 2024 04:15 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=ietf.org@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 95BAEC157927 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Mar 2024 20:15:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.856
X-Spam-Level:
X-Spam-Status: No, score=-2.856 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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=w3.org header.b="BsPo0vYq"; dkim=pass (2048-bit key) header.d=w3.org header.b="WzPCH6hL"; dkim=pass (2048-bit key) header.d=lowentropy.net header.b="m8D28oHH"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="ShF1wC2Z"
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 QEpwpIDrCYaw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Mar 2024 20:15:19 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87D68C151985 for <httpbisa-archive-bis2Juki@ietf.org>; Mon, 4 Mar 2024 20:15:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:Content-Type:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Cc:Reply-To; bh=H8HXFDeH5LgeaEC9x7zAg19YqJdOKMcNTVlYA626lM8=; b= BsPo0vYqRZ4odLgiBSbwW0WTgewDVOJTwz/8keP94t36GKnHgPtx+h3ZhgfjDpKxhJ07iLXKhl88P RRBOTzbdjuim25Cs9Gm812kjsuhFeg2CqEt7sXEj6oAMefYdtFoulw6r8D3WylHWqKKv9FET4f/bN 5TuQYQxrc6e7cMq9BKIpowqVhdJBbCCgtL3wlnFQef071QO4bQ72EQkz9Ky9FOmZBGQERvkKhm1tZ mCkrndpD8BhiJfo0E3ZVu1RoxeP0RtiS3xyVMuly1dVg10Lha//lIihcfIoCOfX89oUBJrAZDtlf0 bmxK9nG2sUfy7ti92I/sAKNqCtsqwPxg9A==;
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rhMAR-001hD9-SP for ietf-http-wg-dist@listhub.w3.org; Tue, 05 Mar 2024 04:12:39 +0000
Resent-Date: Tue, 05 Mar 2024 04:12:39 +0000
Resent-Message-Id: <E1rhMAR-001hD9-SP@lyra.w3.org>
Received: from puck.w3.org ([34.196.82.207]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <mt@lowentropy.net>) id 1rhMAP-001hC7-6J for ietf-http-wg@listhub.w3.org; Tue, 05 Mar 2024 04:12:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Cc:Reply-To; bh=H8HXFDeH5LgeaEC9x7zAg19YqJdOKMcNTVlYA626lM8=; t=1709611957; x=1710475957; b=WzPCH6hLYWMxQa7G5zFk2K1vW4iSLQOmXk8dKuPpSWygxlC DtKg/5e57Q2plOUkCzuiP4eK3enV4hAWzChbirRClHMpOEKVqjVUra3pPLhzP9FoBirPVs2nhYFT3 hv911sptsnZ3Zvj2+RuvA9u5lXADGe+wzeF4nsulI3YoxrFqtciwWJXFIp4L369XZt0t2P49/V+Nc lPvQAetW4K+5C5TzmcQXTqRDDe7SNjs/QRZVTJoBA77+oEN9nCmHCa7s9uMFKvTJRTN1lYn4o/D2O bULJKJ7PqW6lVqwCDErkFHf+Kkm3TuhDwTI59jWVTREWxVxdMXuRSRKT4X3pA3mw==;
Received-SPF: pass (puck.w3.org: domain of lowentropy.net designates 64.147.123.155 as permitted sender) client-ip=64.147.123.155; envelope-from=mt@lowentropy.net; helo=wfhigh4-smtp.messagingengine.com;
Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by puck.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <mt@lowentropy.net>) id 1rhMAO-004i4t-0i for ietf-http-wg@w3.org; Tue, 05 Mar 2024 04:12:36 +0000
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id E0701180008A; Mon, 4 Mar 2024 23:12:31 -0500 (EST)
Received: from imap41 ([10.202.2.91]) by compute6.internal (MEProxy); Mon, 04 Mar 2024 23:12:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1709611951; x=1709698351; bh=H8HXFDeH5LgeaEC9x7zAg19YqJdOKMcNTVlYA626lM8=; b= m8D28oHH6YYzjAVLXk+sqfRFBQuni8tOJiby+Co6eIwNxU74yEVTobF9eZuLudUY ozi4tC9iih9pu9wKKPrgcU0D7JoT85zbnxEM82HJnpdOuHeUUy039Zu8p6d6cCfr w46CxTxB6lgANo9fxJQH0K0mkPtmECKAp2m/9Borna1gD/6qNCUpt+kcfA3nlyfr bFJ1N11bQYpEqKdPo5RpPLLcjZ537/9UexV9fRc9KO0Glmwq/692ebTGWfiAL3Oc e7YBLUO3bCMm5ZwwxSg9f0iJ9ujue+X0Wryl45KstwaCd0IBN9Xnqlrx5VAGWSVR Circx0CkHlhtqJ0aPLZPYQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709611951; x= 1709698351; bh=H8HXFDeH5LgeaEC9x7zAg19YqJdOKMcNTVlYA626lM8=; b=S hF1wC2Z+BGU0D6gEVuhmhmPF1H8QDJhG0axkCZy5nFF0l8t1w1hSFfZOXTZ/bnpE iaxzNJtxgl5uS9bI/VAzJwQLbk56vali+Na+wXIC6e1abDkPnGM8Dkd5RJ8uLZZr +C9gkRtGxRo6/TPurgPY3gAbMSbh105+8i1dE1S/A0YJexRXuv2A7t+0cf5ZSQML eMDs713Iq2Kc7T5giApnGacq2l00/dJYQrzSBApdBsDGJrFVdRkTVJXCuQEoc02M JnLhadzaZ6idRtBkxzATkN8QRlWo6ON6NhTp7YxC16m4oSETyzg7yiibnDyegMiO G+j+Z+v1zfzdHXB/ZgGWw==
X-ME-Sender: <xms:r5vmZaZWJ8aL73JJA5T2TVwaohCNsEvlTERUVvoz4zPJ5bAUEaDg4Q> <xme:r5vmZdYkl9Orafht09OtRQpYVe8o4Ol5IxK5yuWeBwkaPf_cMUpybZWSOCjxCeakd U-M4RcK-2SpLtrffFU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheekgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdforghr thhinhcuvfhhohhmshhonhdfuceomhhtsehlohifvghnthhrohhphidrnhgvtheqnecugg ftrfgrthhtvghrnhepueekudegieduffekhfdtuddutddttdetkeffuddulefffeffjeel gfekvdehhedunecuffhomhgrihhnpehivghtfhdrohhrghdpfiefrdhorhhgpdhgohhogh hlvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehmtheslhhofigvnhhtrhhophihrdhnvght
X-ME-Proxy: <xmx:r5vmZU9LG2MnBdKqTLH9mmOaVRw2sIzzgJHQpI6yhNqe4w--laQeXA> <xmx:r5vmZcp2_-toxeR-FqmjZCp4hoA3HgqoGnDk5nOWPU8gYAhXSRxOvA> <xmx:r5vmZVrU-upjnDTAmIe5dDa4ZHY9Tga5WM0QQzOrtpnGr8moPTTRQQ> <xmx:r5vmZWDRPtO0t7OMUhVcMbVonkVvGj4NwdXBak-NHFNeifa5AC0-DDzBwA8>
Feedback-ID: ic129442d:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3670B2340080; Mon, 4 Mar 2024 23:12:31 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.11.0-alpha0-208-g3f1d79aedb-fm-20240301.002-g3f1d79ae
MIME-Version: 1.0
Message-Id: <675f9437-5873-47fb-8865-326b32029aa3@betaapp.fastmail.com>
In-Reply-To: <CAHARgnKx0eFcY5u4sOybbs6YcDFLOPbzBFF4DkP0z3KUt5uHkw@mail.gmail.com>
References: <170959112780.45035.16361642801992496075@ietfa.amsl.com> <CAHARgnKx0eFcY5u4sOybbs6YcDFLOPbzBFF4DkP0z3KUt5uHkw@mail.gmail.com>
Date: Tue, 05 Mar 2024 15:12:09 +1100
From: Martin Thomson <mt@lowentropy.net>
To: "nidhijaju@google.com" <nidhijaju@google.com>, ietf-http-wg@w3.org
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-W3C-Hub-DKIM-Status: validation passed: (address=mt@lowentropy.net domain=lowentropy.net), signature is good
X-W3C-Hub-DKIM-Status: validation passed: (address=mt@lowentropy.net domain=messagingengine.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-9.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: puck.w3.org 1rhMAO-004i4t-0i f7b5233a86ae97897f97cc0faefa8ac5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Fwd: New Version Notification for draft-jaju-httpbis-zstd-window-size-00.txt
Archived-At: <https://www.w3.org/mid/675f9437-5873-47fb-8865-326b32029aa3@betaapp.fastmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51855
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This seems fine.  And 8M is a fine choice of limit.

However, I don't think that ㄟ( ▔, ▔ )ㄏ is a good interoperability strategy:

> Decoders are free to support higher or lower limits, depending on local limitations, if negotiated out-of-band. Many deployments of Zstandard operate in controlled, private environments and can directly communicate with their encoder and decoder to negotiate a higher or lower limit.

I think that it is obvious that decoders could support more.  But supporting less would not be following the standard.  The same goes for an encoder that wants a larger window.

We should encourage people to choose a different way of identifying that content-coding.  In other words, encoding > 8M or decoding < 8M is not Content-Encoding: zstd.

On Tue, Mar 5, 2024, at 14:16, Nidhi Jaju wrote:
> Hi all,
>
> I wrote a draft regarding window sizes in Zstandard Content Encoding 
> that aims to update RFC8878 
> <https://datatracker.ietf.org/doc/html/rfc8878> to require a specific 
> limit for improved interoperability.
>
> For context, we recently shipped zstd Content Encoding support in 
> Chrome 123 and came across incompatibilities in the field where 
> developers were confused when their compressed content was not able to 
> be decoded by Chrome, but was correctly decoded by curl and the zstd 
> CLI. Having an explicit agreed-upon limit would help deployers of zstd 
> to align their implementations and cause less user friction.
>
> I believe this topic was also previously discussed at 
> https://lists.w3.org/Archives/Public/ietf-http-wg/2021JulSep/0137.html 
> and 
> https://lists.w3.org/Archives/Public/ietf-http-wg/2023JulSep/0178.html. 
> This was also discussed at the W3C WebPerf WG meeting 
> <https://docs.google.com/document/d/1ijP7yc6UXZVgzpXDVmBa7h70gxLpFcqdlOZzL3DRT_0/edit#heading=h.xn2d3li0b8op> 
> at TPAC 2023.
>
> Please let us know what you think.
>
> Best regards,
> Nidhi
>
> ---------- Forwarded message ---------
> From: <internet-drafts@ietf..org <mailto:internet-drafts@ietf.org>>
> Date: Tue, Mar 5, 2024 at 7:26 AM
> Subject: New Version Notification for draft-jaju-httpbis-zstd-window-size-00.txt
> To: W. Felix P. Handte <felixh@meta.com>, Nidhi Jaju <nidhijaju@google.com>
>
>
> A new version of Internet-Draft draft-jaju-httpbis-zstd-window-size-00.txt has
> been successfully submitted by Nidhi Jaju and posted to the
> IETF repository.
>
> Name:     draft-jaju-httpbis-zstd-window-size
> Revision: 00
> Title:    Window Sizing for Zstandard Content Encoding
> Date:     2024-03-04
> Group:    Individual Submission
> Pages:    5
> URL:      
> https://www.ietf.org/archive/id/draft-jaju-httpbis-zstd-window-size-00.txt
> Status:   
> https://datatracker.ietf.org/doc/draft-jaju-httpbis-zstd-window-size/
> HTML:     
> https://www.ietf.org/archive/id/draft-jaju-httpbis-zstd-window-size-00.html
> HTMLized: 
> https://datatracker.ietf.org/doc/html/draft-jaju-httpbis-zstd-window-size
>
>
> Abstract:
>
>    Deployments of Zstandard, or "zstd", can use different window sizes
>    to limit memory usage during compression and decompression.  Some
>    browsers and user agents limit window sizes to mitigate memory usage
>    concerns, causing interoperability issues.  This document updates the
>    window size limit in RFC8878 from a recommendation to a requirement
>    in HTTP contexts.
>
>
>
> The IETF Secretariat