Re: Suggestions for HTTP/2, RFC 9113, Section 2.

Rupinder Singh <rupi.pal@gmail.com> Thu, 04 January 2024 06:50 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 98B98C2FEDED for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Jan 2024 22:50:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.755
X-Spam-Level:
X-Spam-Status: No, score=-2.755 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H5=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=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 jmVmNTF41JbN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Jan 2024 22:50:37 -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 18D38C257F1A for <httpbisa-archive-bis2Juki@ietf.org>; Wed, 3 Jan 2024 22:50:37 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rLHYf-00DXbF-VW for ietf-http-wg-dist@listhub.w3.org; Thu, 04 Jan 2024 06:50:26 +0000
Resent-Date: Thu, 04 Jan 2024 06:50:25 +0000
Resent-Message-Id: <E1rLHYf-00DXbF-VW@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <rupi.pal@gmail.com>) id 1rLHYZ-00DXaD-WA for ietf-http-wg@listhub.w3.org; Thu, 04 Jan 2024 06:50:20 +0000
Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <rupi.pal@gmail.com>) id 1rLHYX-0017TT-IN for ietf-http-wg@w3.org; Thu, 04 Jan 2024 06:50:19 +0000
Received: by mail-ua1-x936.google.com with SMTP id a1e0cc1a2514c-7ccdb4b764cso69037241.2 for <ietf-http-wg@w3.org>; Wed, 03 Jan 2024 22:50:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704351014; x=1704955814; 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=Tu1zCFsPcWPBFLqobMmMNbR6rMk+DjzexGzTbTZYxFU=; b=GBOxAOdqnfocGvKne9Ms/+tBRGw+cp7DZpBITBLtS4I5qua1AEfoUoshIS0xNFKJa7 fj8C/N+jge1OLKCmUl2Qgv5ukTMCo26c/PxvtYMZXsWeb1yWuyoKPSLl5xsEeTeVcnVt GEV8R1tikAnafEcrwtkTFUD4G03NJfYHW2fg/VBXi4NNSbhd7enZt9yo3nkQUeydrsz2 rQ7IZG7GNYjHBVdJYeOvKTw0moMD8Svn8wwwa0mZPicGuM3W8/eMbRsJBieEsb6nzqaC y/W8WlxLEnxqhh9icxQAZ00Gv5EwQMNHqA94oP0OfOc7YOhgf7ShFC30tFK0CKtHoX0Z WGwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704351014; x=1704955814; 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=Tu1zCFsPcWPBFLqobMmMNbR6rMk+DjzexGzTbTZYxFU=; b=eIchbtJ3mAP9AUmlx+dat3U3F8xAR18NKC6++ZU6gHrzdStPZmRvLUrXA/3ZUrumuO XaK47+wmTGvxrCrEdp0woCo5s5b17p19mD3jtKzBSSjhEjqbumH7cK1ARtoa1zNI7hdb wye7OJS3jYccGPA51oIVh5CvPm3Rp8Ic5VlWySFF6/91mTMQBlyR9g6to9wG66Bd+4xT QxCcIjo+wIDmaaco6escnUkYGXWcwCSCKBcO7l/nQJ+xCTZaxiS9sQqe3ppNebqDvDhn 3Ei07Ppac1DTDxF2g+5zhPn35VoNVoo59HCGz27RYzOMOHpFSm1XHgQHfGKshOprPinh MxGg==
X-Gm-Message-State: AOJu0Yzy+n6Lwi0oiskFFkr9Hi1Wq1u2AD3cnFfkugJcyu/SYWTH/8lP 8qIM0n+uj216TgJ/FychP5gc3MjbEchjLGkdvFtOPyBiLtJm9Q==
X-Google-Smtp-Source: AGHT+IHmLQrmXOQXGgT0N4BOvzOTDr/L+hW+iV8gISOqsCS7nqrKkHcBaqkxB/ZTubzy06meD02DuihZ1Fc1mVrD31I=
X-Received: by 2002:a05:6102:5112:b0:467:2aa9:83be with SMTP id bm18-20020a056102511200b004672aa983bemr66376vsb.19.1704351013609; Wed, 03 Jan 2024 22:50:13 -0800 (PST)
MIME-Version: 1.0
References: <CAKguLS5KuNRH5=JHug=x-HJXUQX7VfwmAHwz+yvXUE+Y2QMShQ@mail.gmail.com> <0237bba0-b45a-4e14-aa77-9486d20fd938@betaapp.fastmail.com>
In-Reply-To: <0237bba0-b45a-4e14-aa77-9486d20fd938@betaapp.fastmail.com>
From: Rupinder Singh <rupi.pal@gmail.com>
Date: Thu, 04 Jan 2024 12:19:36 +0530
Message-ID: <CAKguLS4kE8HfQmtvU9trTCU=68WmExv00T8dcDbAS8ixL7b47g@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="000000000000bd2695060e1924e2"
Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=rupi.pal@gmail.com; helo=mail-ua1-x936.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=rupi.pal@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1rLHYX-0017TT-IN 8e8e5d60fd54f8d1618685e9e743b9fc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Suggestions for HTTP/2, RFC 9113, Section 2.
Archived-At: <https://www.w3.org/mid/CAKguLS4kE8HfQmtvU9trTCU=68WmExv00T8dcDbAS8ixL7b47g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51705
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 your reply.

I was aware of that kind of assumption/distinction/possibility because 9113
itself does try to clarify that.

So, we are basically saying that HTTP/2 (9113) is not a standalone
protocol, and that the HTTP semantics need to be read from 9110 in
conjunction ( which is apparently made clear here:  "Those semantics are
expressed “on the wire” in three ways"  https://httpwg.org/specs/ ; and, it
appears, not so explicitly in 9113 itself). One chief HTTP semantic being
that it is stateless, including w.r.t. authentication. In other words, 9113
doesn't concern with the semantics themselves, but the mapping to the TCP
layer; one may say, it deals with the frame layer. Being so it isn't at the
application-layer (HTTP semantics), but inserted at a layer between the
application-layer & the TCP layer  Which is where  I am trying to bring to
notice that, then, HTTP/2 can't being called specifically technically
"application-layer," though it is connection-oriented.

Were HTTP 1.1 ( 9112) ready to leave the HTTP semantics entirely to 9110
and concern itself entirely with "the wire, " it can describe itself as
connection-oriented too. It doesn't [https://httpwg.org/specs/rfc9112.html]
There might be historical reasons (e.g., backward compatibility)  for that
too. But we can bring that clarity vis-a-vis HTTP/2. When we say HTTP (or
HTTP 1.1) is stateless, we mean HTTP, at the application layer, admits no
idea of session-state or connection-state; there could be connections at
the lower TCP layer.

Kind regards.
Rupinder


On Thu, Jan 4, 2024 at 10:46 AM Martin Thomson <mt@lowentropy.net> wrote:

> Hi Rupinder,
>
> I think that perhaps you are looking at this more broadly than the
> document intends.
>
> HTTP/2 is a protocol between an HTTP client and server, as opposed to user
> agent or origin server or proxy or intermediary (or any of those terms that
> HTTP uses).  As a definition of a single "hop", using connection-oriented
> is entirely appropriate.  For instance, while HTTP itself is stateless,
> HTTP/2 uses a connection-oriented method to convey HTTP semantics.
>
> A lot of the older HTTP literature did not properly distinguish between
> HTTP in general and the specific HTTP/1.1 protocol.  A lot of that has been
> carefully cleaned up with the publication of RFC 9110, so I'd encourage you
> to read the document with that in mind.
>
> Cheers,
> Martin
>
> On Sat, Dec 30, 2023, at 04:56, Rupinder Singh wrote:
> > Hello,
> >
> > Most respectfully. I've the following suggestions w.r.t.  HTTP/2, RFC
> > 9113, Section 2.
> >
> > 1. "HTTP/2 is a connection-oriented application-layer protocol..."
> >
> > HTTP/2 is a stateless application-layer protocol...
> >
> > 2. Sub-section 2..2. The term "endpoint" may not be equated with a
> > client or server. The term endpoint refers specifically to a URI at the
> > application layer. By extension/overloading, it also refers to the
> > proxy software ( e.g., class) abstracting the endpoint. It can't refer
> > to the client IP address + port  or to the server IP address+port that
> > actually sets up the TCP connection at the transport layer. And  a
> > typical web client like a user agent/client (e.g. browser) doesn't have
> > a  URI.  Yes, maybe, the term endpoint can be used for the addresses of
> > the other stateless protocols, e.g., simply, an IP address at the IP
> > layer.
> >
> > 3. In the traditional HTTP 1.1 literature as well as software
> > documentation, the term HTTP connection or HTTP session are used.
> > However, from the context, it is clear that they refer to the
> > connection/session at the TCP layer, not at the the HTTP/application
> > layer itself, where communication exchange is
> > stateless/connectioness/sesssionless (simply Request-Response; or
> > additionally a Server push as in HTTP/2). We may clarify the
> > terminology in this RFC accordingly.
> >
> >
> > Kind regards,
> > Rupinder Singh
>
>