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

Nidhi Jaju <nidhijaju@google.com> Tue, 05 March 2024 04:56 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 27A16C14F5E3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Mar 2024 20:56:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.356
X-Spam-Level:
X-Spam-Status: No, score=-15.356 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, 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, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=w3.org header.b="o2yaPF+X"; dkim=pass (2048-bit key) header.d=w3.org header.b="FI5fwfq5"; dkim=pass (2048-bit key) header.d=google.com header.b="vavb4v+Y"
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 x5m4Lkl8QOKj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Mar 2024 20:56:31 -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 3E3B0C14F60B for <httpbisa-archive-bis2Juki@ietf.org>; Mon, 4 Mar 2024 20:56:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:Content-Type:Cc:To:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=4c/tAioYy633k7tcm0PXaOp2bkCXZPg1CdlWdKIK/tA=; b=o2yaPF+XoFmB2WbWamIxCF56yN pTg6xp0G/+oZaeuO2/RMq8zUpdNkDnYN5r/yPGzfZlLNdQkeYIfUufxw+kgvHo04giJlwtjO/N846 A5UOl7s6N6rRtJIgEE9q7IVsffmpdKqZs6Q/gbTro4q15IZ6DOO1beK451O1Hv7/y+sFr53VvmIIT KjQlojyOT2oBLxdVXMRKdAvgedBgScyFrQzK9a5O76Mz6p+2B/efJtsZLtIq7a8By27SFDrsPPRSh xtk48cAdwssyJ+YSjKDMTjf/8wr4r5pN6oU8UKnVB4qZcAXKSMuedJGNipmCkGn4EyXr8l7JAERwS BgKqw/2Q==;
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rhMqK-001kWC-C6 for ietf-http-wg-dist@listhub.w3.org; Tue, 05 Mar 2024 04:55:56 +0000
Resent-Date: Tue, 05 Mar 2024 04:55:56 +0000
Resent-Message-Id: <E1rhMqK-001kWC-C6@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 <nidhijaju@google.com>) id 1rhMqI-001kVJ-HA for ietf-http-wg@listhub.w3.org; Tue, 05 Mar 2024 04:55:54 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=4c/tAioYy633k7tcm0PXaOp2bkCXZPg1CdlWdKIK/tA=; t=1709614554; x=1710478554; b=FI5fwfq5mi5R+kbEAcT6gPe5yFX5sGMNsA2ni5x32Ikd8l16C/IujtrS68E4UGXWE6l2UG1V7Kf 8K34FtSrDEGtIpAem8Bb31wMDv3ZBz9TAFsZHYalLTJTG86al3d6VYOLAagMD97tijq1fjtanrfmT IuE7reahQigHRnC99khJ0yeEs0QzJIP4iuqcdwdKzhh7HUaEU8rLzjoN4T5XpPmm2cj0g6bFns6bH 5pzPixJWBw1C10lVYSu6e7Q5BC9lb7vWjk2TUSubShZaqcnieztpcD8l2zsbHUNuZaPXoMPZiQvnj 5/+fJsPUTZxyqaTEB9BZItRUMJH7LzcIbv1Q==;
Received-SPF: pass (puck.w3.org: domain of google.com designates 2a00:1450:4864:20::534 as permitted sender) client-ip=2a00:1450:4864:20::534; envelope-from=nidhijaju@google.com; helo=mail-ed1-x534.google.com;
Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by puck.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <nidhijaju@google.com>) id 1rhMqH-004iin-1u for ietf-http-wg@w3.org; Tue, 05 Mar 2024 04:55:54 +0000
Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-565223fd7d9so5061a12.1 for <ietf-http-wg@w3.org>; Mon, 04 Mar 2024 20:55:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709614549; x=1710219349; darn=w3.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4c/tAioYy633k7tcm0PXaOp2bkCXZPg1CdlWdKIK/tA=; b=vavb4v+YBSm9BFITri72Qw77DfWN6/ebtdnctcc7eZjHUwKuyY74WBAVqlAdWxOyJC WLo8JGcrRrhLInPheCYtmFRqv5dY5/f9B41G71PP8u+pIZR9H7qE4ONjWX0eNjao+ftf JijYghOfEYSUa3bj7Cbc01RnMDbDR6nqzoSEYwBG4W+GbM3tgX0Cn5rdAe/VTJj484jP 75KK41vMYU+Gjzzj6Gb8GOC5RJ6GEFR+n43Aqqr7j/fXjw3wTS/AnOQMkHesSWarZeOX w4dr0CW2P1B+45ghyBkVrI51QuUi6xydC6BXx/WytWI3z36bOU7q4LsSs9xn3c7tMdpY H0dQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709614549; x=1710219349; 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=4c/tAioYy633k7tcm0PXaOp2bkCXZPg1CdlWdKIK/tA=; b=T5MMNsDF64AT/okOPpWCXF7btdQ131q29G+ydJMOpfXIMdyaA34xBSrYyz62/hZFZn +SHAeGa9iTAIV0ZUiFc9jGODqQn51Zgmt4LVlVT+D5A6KahsYALOcqdb9K8DUbezqL+U QgOk8REx05ZMFw0G4pR/hZYlcL39wiBf4sO+qWI6oJyE6XAMvthxQ0p9Ja+v7WmhX4f0 pVnq85c8oE6lUH2xr8YTdEotloj7IThtDwhspnRMY7rzqBuwjTOd5o9zYZ2Pt2UwifUO WOFrH3SqxibEjki2dhNpYvCjg6fm8BPDz5y69tMzi7HTGetwMRdR59m+9X02mJUybKKZ wMRw==
X-Gm-Message-State: AOJu0Yw5RRUQGLTln9GiAosEJ2Oxk+qXgRietlXdVXlx/Oo67WlS/c6e Pn6OBWMatklZp/PTt0HD6Y/JrZWuUbQJpn54+ten0erkiPv+npTrphSlMTGrW8HDHE9fheJPi2x 76eX9GZhydMGN0rGWSwq82hdRoTRObpGDkz+SUkfWiYN+eX+Oopm1lfA=
X-Google-Smtp-Source: AGHT+IH95iVE2DDWgTCuMtnVzIjG2wr5zwUpAidvKYiMAB25sNF/hBVEg3EtKOXwFpaZpggsGgpiqsXCsG33cTWatLQ=
X-Received: by 2002:aa7:d587:0:b0:565:ad42:b97d with SMTP id r7-20020aa7d587000000b00565ad42b97dmr57650edq.0.1709614549138; Mon, 04 Mar 2024 20:55:49 -0800 (PST)
MIME-Version: 1.0
References: <170959112780.45035.16361642801992496075@ietfa.amsl.com> <CAHARgnKx0eFcY5u4sOybbs6YcDFLOPbzBFF4DkP0z3KUt5uHkw@mail.gmail.com> <675f9437-5873-47fb-8865-326b32029aa3@betaapp.fastmail.com>
In-Reply-To: <675f9437-5873-47fb-8865-326b32029aa3@betaapp.fastmail.com>
From: Nidhi Jaju <nidhijaju@google.com>
Date: Tue, 05 Mar 2024 13:55:37 +0900
Message-ID: <CAHARgnJUP_7-y9fm-MWVGcMEoq-RibaNaLidHShwdC0LcSsATA@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="000000000000e86fb50612e2a771"
X-W3C-Hub-DKIM-Status: validation passed: (address=nidhijaju@google.com domain=google.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-21.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS=-0.001, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=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_DBL_BLOCKED_OPENDNS=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: puck.w3.org 1rhMqH-004iin-1u bd8bb99c46fa897ef8d2eca634f91a80
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/CAHARgnJUP_7-y9fm-MWVGcMEoq-RibaNaLidHShwdC0LcSsATA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51856
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>

Hi Martin,

Thanks for taking a look and the comments!

I agree that `Content-Encoding: zstd` should mean that encoders use <= 8MB
and decoders support >= 8MB. This is key, and if there's a better way to
word that, I'd love suggestions.

The part that you mentioned about decoders being able to support a
different limit was added as an attempt to explain that deployments of zstd
operating in a private environment that don't care about interoperability
should negotiate it out-of-band. Maybe I could change that text to
something along the lines of:
  "Decoders that wish to support a lower limit and encoders that wish to
emit
  frames requiring a larger window size MUST negotiate the limit
out-of-band."

What do you think? Also, do we need to address this case at all? It
specifically only applies in situations where endpoints aren't trying to
interoperate beyond a short list of peers.

Best,
Nidhi

On Tue, Mar 5, 2024 at 1:12 PM Martin Thomson <mt@lowentropy.net> wrote:

> 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