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

Nidhi Jaju <nidhijaju@google.com> Mon, 11 March 2024 09:27 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 B0818C14F5FE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Mar 2024 02:27:41 -0700 (PDT)
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="jwy1chkj"; dkim=pass (2048-bit key) header.d=w3.org header.b="NcxFhOgC"; dkim=pass (2048-bit key) header.d=google.com header.b="rNQ5yKsl"
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 JG5B2YZSsqq8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Mar 2024 02:27:37 -0700 (PDT)
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 B245CC14F5F2 for <httpbisa-archive-bis2Juki@ietf.org>; Mon, 11 Mar 2024 02:27:37 -0700 (PDT)
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=dseZ9JFReHz4T3ECdiKCvmpwlE9c7Y7Wo4su4WsaGz4=; b=jwy1chkjTX5ahDpPB5pKNFVNQe U8K7miIsrMJ2RhoOEzsCrJg0a/11JJ1H5mmbWs7QcuycFSZeWRXDwlDdJ+z7t5A2vcJmz1Ea+QbUm UegnweO3qev4hpKNKkrHvkaB38JhPog69Pxi5JfGuquwlfj5ebaGGOutiEfSF0hVSpNtp03PwfQmX s6oC7MVXp0EJVHX7LyFGFxySvKaq9XgX3HrkktZPO8IKAQVx2GgxJTMhSwxjML8ex4kndFlMWThUS qlRGOcNDafMzHtGK/3IC+BXuqYDJS57utHyKXGfLiTehEKKNWQH1AhAr6D7RdDRhffXNFy3Vs9tGO tngEuasw==;
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rjbuN-00GIlt-Rx for ietf-http-wg-dist@listhub.w3.org; Mon, 11 Mar 2024 09:25:24 +0000
Resent-Date: Mon, 11 Mar 2024 09:25:23 +0000
Resent-Message-Id: <E1rjbuN-00GIlt-Rx@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 1rjbuC-00GIkf-QE for ietf-http-wg@listhub.w3.org; Mon, 11 Mar 2024 09:25:12 +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=dseZ9JFReHz4T3ECdiKCvmpwlE9c7Y7Wo4su4WsaGz4=; t=1710149112; x=1711013112; b=NcxFhOgCgYvj5L7rUkUfRvcElNaMv4sImlTeW/7dEb9b4Oajp6nurR0OupuNmo/TdvczBqFz8C3 2zeywT0QilywoQQTxOLbbmWHU+LMn6btrXVComrAFuXzMzTA/INpJcCf7072JhSghD0UEA2GS8eWj ph89KV9mWti1upWsx05HCuYj/ZT8djkt3I//qvr1XKemjC0qVwM5km0tet2Fc/0jJXEMDaliD/Nr4 UPctNpRLBeklIf1Y86r/gyk3Zr80TA/mjtWJ3mlgR24gBmGfAWFDU63ua7ZrUbhUxtFbaHRoJe6em k9oAf+/TG9INUkxska9k+OuEPvRj1U5TJNHQ==;
Received-SPF: pass (puck.w3.org: domain of google.com designates 2a00:1450:4864:20::531 as permitted sender) client-ip=2a00:1450:4864:20::531; envelope-from=nidhijaju@google.com; helo=mail-ed1-x531.google.com;
Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) 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 1rjbuB-006ktv-2H for ietf-http-wg@w3.org; Mon, 11 Mar 2024 09:25:12 +0000
Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-566b160f6eeso9482a12.1 for <ietf-http-wg@w3.org>; Mon, 11 Mar 2024 02:25:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710149108; x=1710753908; 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=dseZ9JFReHz4T3ECdiKCvmpwlE9c7Y7Wo4su4WsaGz4=; b=rNQ5yKsltCsyJWIWYVcgTJXzOJIl897bt43es6Rw/mtKWJ0GG1I0j0OTQIGiBqLkAM H4n0PkSuxjZfO6UGLQWWn/OqlEpOBXXPLd/9LyBhKe51ivzFdcaeF3z+pnsNwuTMOALV eLUAuaVDjnvWK3wSMc2hSbz2lp2YY3ZvXmD5dM3ripXm5KSt6gIEmqLhR3goAm25xOcw mVNvFPU7tWg9T49/paiqtYvlNxkPp/Iy7xC3kiXq6fBz/Xl7f/XFB8ufYx4oFtw5rVVR c2zJ7PLbEQw0niCCkBarFYy5Cr/5hZ120Xa0tM0oQGsXhHJqMKLeNpooRdZj7NHLu0s0 09Eg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710149108; x=1710753908; 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=dseZ9JFReHz4T3ECdiKCvmpwlE9c7Y7Wo4su4WsaGz4=; b=SC5QOI7aVTSPoD2VdCPp0bJaRMlHWqmlPSTXl2uz5zk45IWvxUOPbXPRy4BSuyjnHp WAz7IsZex3r0Bh3snXAO+4CkQJcQOMLK4lSUUpafRaDEKvyW3tloI/Gex6T2hKKgAU/z jsh0lIGh4zLn8UiVeed9kBRmyqQf72GMPsT3SCXUIQKvDkAyT2EWIRnNbJ5DX7W75OW9 Bx9P1lGOFpvp6hSUc5UTqnY7Xr2DSouCE6SQrhyI8i9VMRrr4cLBQpqE2/vh3MBUAefZ jIAjWbsgz1zRATxoSQwBKq/6GmWUWqbaKJ2g3BNkYLzB/spmKP758lEOuWz1QDRmB0i5 uBKQ==
X-Forwarded-Encrypted: i=1; AJvYcCVk3PvrgqPyMryisV7AlKefxAMzpjwRHi8PogszDqA1T5iB+5I9hkodmeNs5UaILEbFfFDX7Phf2rbkRB/ZfTKsyU4x
X-Gm-Message-State: AOJu0YyIVJqsTTWdu0vbc5GEAbb40e9PICLvSnssJ1jMZPvB75HjaTQq NhMsW3g+FDIsKkaXM9dRGJmEx/hLygLmjOcuQBV+Q6l/TcDwTQZ2IpQQbeXqvTgRdOet6pJOMdw gaig892OAV6fKN8tTWdq6pQucpHfASXIXVkwdFp9+rUuZcY9rhF62
X-Google-Smtp-Source: AGHT+IFiENMtqL5SZ8p4k1iusQYX1R2N7OXnLjZ8Eeu0K9/tfHJHDr+eLoVeOisVz0kOv3UVWngghisCfSjXQk+cs7I=
X-Received: by 2002:a05:6402:2022:b0:568:271a:8c13 with SMTP id ay2-20020a056402202200b00568271a8c13mr501571edb.1.1710149107127; Mon, 11 Mar 2024 02:25:07 -0700 (PDT)
MIME-Version: 1.0
References: <170959112780.45035.16361642801992496075@ietfa.amsl.com> <CAHARgnKx0eFcY5u4sOybbs6YcDFLOPbzBFF4DkP0z3KUt5uHkw@mail.gmail.com> <675f9437-5873-47fb-8865-326b32029aa3@betaapp.fastmail.com> <CAHARgnJUP_7-y9fm-MWVGcMEoq-RibaNaLidHShwdC0LcSsATA@mail.gmail.com> <CACsn0c=fY43Et55zaVTOkRxRWwt5cDLuku3FOdhj9Q4-aW9AAQ@mail.gmail.com>
In-Reply-To: <CACsn0c=fY43Et55zaVTOkRxRWwt5cDLuku3FOdhj9Q4-aW9AAQ@mail.gmail.com>
From: Nidhi Jaju <nidhijaju@google.com>
Date: Mon, 11 Mar 2024 18:24:55 +0900
Message-ID: <CAHARgnLsnWrZhHFg8siJwsNrQyy7=ezXh4OSDncWfio866XU7Q@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Cc: Martin Thomson <mt@lowentropy.net>, HTTP Working Group <ietf-http-wg@w3.org>, Yann Collet <cyan@meta.com>, Felix Handte <felixh@meta.com>
Content-Type: multipart/alternative; boundary="0000000000000b9dfe06135f1e7a"
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 1rjbuB-006ktv-2H b26bc5d830647595c31294f6ba76fefd
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/CAHARgnLsnWrZhHFg8siJwsNrQyy7=ezXh4OSDncWfio866XU7Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51873
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>

(Adding Yann and Felix, in case they have other thoughts)

Thank you, Watson and Martin!

That makes sense to me. RFC8878 was scoped to specify how the Zstandard
algorithm should work in general, but this draft is specifically about the
"zstd" token in HTTP Content Encoding contexts. That means that we probably
don't need to talk about other contexts (semi-private environments, etc.)
in this draft, and can just strongly define the token to mean we accept no
more than 8MB window sizes.

I filed an issue about this at
https://github.com/nidhijaju/draft-zstd-window-size/issues/2.

Best,
Nidhi

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

> On Tue, Mar 5, 2024, at 15:55, Nidhi Jaju wrote:
> > 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."
>
> My email was a veiled suggestion that you delete the paragraph.
>
> More generally, if you want to do something that is not the standard, then
> it is not the standard.  If you manage to make a private arrangement to do
> something other than the standard that's nice, but that doesn't need the
> blessing of the IETF.
>
> However, if you make a private arrangement to do something other than the
> standard, but use the standard codepoints, that carries a pretty serious
> risk of damaging interoperability.  Private stuff escapes confinement.  We
> should not encourage people to do that (even if they regularly do).


On Tue, Mar 5, 2024 at 3:25 PM Watson Ladd <watsonbladd@gmail.com> wrote:

>
>
> On Mon, Mar 4, 2024 at 8:57 PM Nidhi Jaju <nidhijaju@google.com> wrote:
> >
> > 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.
>
> The sad fact is that every file will go across the Internet, or some
> suitably Internety segment of a network at least once and usually many
> times. Containment is not likely.
>
> >
> > 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
>
>
>