Server Push, Alt-Svc and connection switching

Lucas Pardue <lucaspardue.24.7@gmail.com> Wed, 16 October 2019 00:53 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 E3862120830 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 15 Oct 2019 17:53:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 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.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cdqy1Fp9Xc9R for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 15 Oct 2019 17:53:54 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F36EE120825 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 15 Oct 2019 17:53:53 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1iKXXN-0004de-FG for ietf-http-wg-dist@listhub.w3.org; Wed, 16 Oct 2019 00:51:37 +0000
Resent-Date: Wed, 16 Oct 2019 00:51:37 +0000
Resent-Message-Id: <E1iKXXN-0004de-FG@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <lucaspardue.24.7@gmail.com>) id 1iKXXM-0004cQ-1J for ietf-http-wg@listhub.w3.org; Wed, 16 Oct 2019 00:51:36 +0000
Received: from mail-vk1-xa31.google.com ([2607:f8b0:4864:20::a31]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <lucaspardue.24.7@gmail.com>) id 1iKXXK-0005xU-O2 for ietf-http-wg@w3.org; Wed, 16 Oct 2019 00:51:35 +0000
Received: by mail-vk1-xa31.google.com with SMTP id d126so4792338vkb.1 for <ietf-http-wg@w3.org>; Tue, 15 Oct 2019 17:51:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HlI6Qu/KL94Co33Ih+TiuXP1bGMkSGO6Soe1DOcboEI=; b=GwZtkuXL1BKJV+yQqqehm4E6lBi0PMABRYt9UIDM6DSrC5WO176ejQBXzK9NQNB8DV Bx7iT0gq/Fm+3t6yD2tkCmsKEDE6Z7xwIm3quKro+O9Mf+SQR2sYrHup9TwjU7nkKez+ yRZOVKxkkAb+mijS8n3t/u1ic6cSIRe8Vqy/i8hi04PP4M7bznvbcFBamEFIY1BUf6I3 CfCtAdwp8rPrhr2EgIodrJm7CPUXqEXhdpaFPgp8iMgM1Tcio4c09p3hTDv7yu3RRRvx Ql6xJbVisOr3UZhArR3ZZrKyBn/EPERm1YB2jNZ+DfIaUvFjNNBSi/ZtABL6MDvSOQ3t 8hyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HlI6Qu/KL94Co33Ih+TiuXP1bGMkSGO6Soe1DOcboEI=; b=abJ4EOXfcZ/v5Jb2BsHpnSrzyJwVqyiP/RKz3VWH5T87SdFWzKVdvnChWzOuAdniFP 8m8n3CYUb8D2R0ubf7/rLzQTSSRxnAxK73AWDCils96VRierH8OXln4uS4PfrjQKdaft i7K0I65FcM0g0jwPtag1OzsdUCQ6bwK67bY2vaTU4uWggfwVPWLzq8dEJl5iPSKtUmCr Udht0ioCENhhEpBO1TM73zHOh5qiCyxYzxFjnHDZb425Qmhfi+C0nvx1D5oXIUxYzEpK pbYPTlycuA3PtKgOntKOIxnC3ngly2Gf9AbKeO7qgMgW8Fvp5sTUz4Bf6ZtCcgrEGOVf fhLg==
X-Gm-Message-State: APjAAAXmC62VK2U2fHklygxl2Yfx0Yr9AOI4wzRUaVMEcTRmvv50/kM1 /jRGLkWIeP/98S2Mqu2Ovm6thj71zHr0TJ743csG/p77
X-Google-Smtp-Source: APXvYqzAj0YF0qxnqXQZYgeFvXCUcYugNI/He6WmqTnAFUg8F6Bep4Kh29is0LxcGa+AmnRxNcRsauai2oj2a7OuRik=
X-Received: by 2002:a1f:fec8:: with SMTP id l191mr20712951vki.15.1571187093237; Tue, 15 Oct 2019 17:51:33 -0700 (PDT)
MIME-Version: 1.0
From: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Wed, 16 Oct 2019 01:51:22 +0100
Message-ID: <CALGR9oY_zT0rnoh2TdrfsxNjhx2uNv3y21Mqmt9DPQ8CPdpx+Q@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="0000000000009174ac0594fc80fa"
Received-SPF: pass client-ip=2607:f8b0:4864:20::a31; envelope-from=lucaspardue.24.7@gmail.com; helo=mail-vk1-xa31.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1iKXXK-0005xU-O2 b6d31732e40a063cc539214fcf081611
X-Original-To: ietf-http-wg@w3.org
Subject: Server Push, Alt-Svc and connection switching
Archived-At: <https://www.w3.org/mid/CALGR9oY_zT0rnoh2TdrfsxNjhx2uNv3y21Mqmt9DPQ8CPdpx+Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37057
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/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Based on some observations of how Chrome Canary discovers HTTP/3 and
switches, I've begun wondering how the connection switching behaviour plays
with the way user agents implement server push - particularly around the
concept of "push caches" that may or may not be tied to a connection.

To use an example consider a document (index.html) that contains some tags
for script1.js, script2.js and script3.js. On first visit, the request
might happen as so

index.html - requested over TCP+TLS using HTTP/2. Contains Alt-Svc: h3-23
   * script1.js - requested over QUIC and H3
   * script2.js - requested over QUIC and H3
   * script3.js - requested over QUIC and H3

Now consider Server Push in this scenario; where requests for index.html
trigger server push for script(1-3).js unconditionally.

What do people think n the above case when the server sends PUSH_PROMISE,
HEADERS and DATA for scripts on HTTP/2 before sending the HEADERS for
index.html that contains the Alt-Svc.

If pushed responses are held in a "push cache" tied to the H2 connection,
is there a chance that this is blown away when you change to H3? Or do the
requests for scripts resolve to the push cache and promote to the client
cache proper? Or something totally different unique to each implementation.

This seems like an undesirable side-effect of our current capabilities and
deployment plans if it indeed an issue.

Any thoughts from the group?

Lucas