Re: [hybi] New Version Notification for draft-mcmanus-httpbis-h2-websockets-00.txt

Martin Thomson <martin.thomson@gmail.com> Mon, 16 October 2017 02:51 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CCD5B13416B for <hybi@ietfa.amsl.com>; Sun, 15 Oct 2017 19:51:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=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 7ArrJ92MB8mg for <hybi@ietfa.amsl.com>; Sun, 15 Oct 2017 19:51:53 -0700 (PDT)
Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 992E8126BF3 for <hybi@ietf.org>; Sun, 15 Oct 2017 19:51:53 -0700 (PDT)
Received: by mail-oi0-x22d.google.com with SMTP id h6so2770396oia.10 for <hybi@ietf.org>; Sun, 15 Oct 2017 19:51:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IW3p1ZaTs1T5ZspgWTRHVOenX2XnRF8dpmT8U9lQags=; b=J8fnwhwx8sFactrv5LzY7l0+8PgVf2yVe9+VUkFkYMC3mzKFGBryntEMN6JhKbPKBl LsJtC2X9SUdfHbuufxHnE1qW9DusS5/KNmbJ9VBrKMCQZnDMdteEHVkhvdxPD1ODLSIb R/WqRsomXUlNFt/DpYJnYUIU2zLYdTthAWzVNy1cGfD2DWKUydyWpTpFnPtKiNuG71+C auCVaksvFzaueZsGCDVI32CoifALfzcsnaqXJnifNre1I+CGknxBO7tBxb/HECdF1ae6 9GCdJ+WvSiKmp0q9O2+ayhp6S5ac+IGInrscjtcWDA1qd1PFowjzC95TSMI30/J+ZcuZ dtWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IW3p1ZaTs1T5ZspgWTRHVOenX2XnRF8dpmT8U9lQags=; b=YUlkM1A/GYPBy3CkdYyTmiu6IYT18db4AUYR5MCNvq5sSK5VzW5y+mi4Zhz/THtHuf aiSa3GffXeKeOK90qoVInqTntLXLTb2YShdFuPlnO2wsy8C3cQgOro+ZoDEChHJmf4nd g+BxX/x3VEkyhahMt8fzbhyaSUDHzrM2JfuHj0B7QJGljUrYs5venwafbbK7pGDWPAA5 fqntLdZ+/iZEq3NZZ0naQgTNbvGcLhX4EhgHnXQt7y0odZv5lPz9LELWdn23FBRDZAMk kdEGWueiWvUD0NnjFatkdlkkX2p3cowbtBmv+UCsnHZye6Zzw4n74DaplvOyjr0CJffg gNFw==
X-Gm-Message-State: AMCzsaWZrUBgPcpWKq+Okoz5bplnT2XQm2+fZ/QWirexADlvd1bbHqOh 6MPpxbDpDZxI2ruJF48wvluS1tAD7P0u08klNjE=
X-Google-Smtp-Source: ABhQp+T/RdUhDLGUmxKPKsDIL8pix0tQxAIWzPSb6KsmIAmafQBhc3XQ8Aho3rm6ibc/yCHIS6uffjKLsHdpE37xs6g=
X-Received: by 10.202.166.141 with SMTP id t13mr4752096oij.392.1508122312861; Sun, 15 Oct 2017 19:51:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.72.178 with HTTP; Sun, 15 Oct 2017 19:51:52 -0700 (PDT)
In-Reply-To: <f4bb6b5c-b12e-dc59-6faa-15588b692574@warmcat.com>
References: <150807649389.12130.9191022211105955718.idtracker@ietfa.amsl.com> <CAOdDvNqhaTJmLcEk3CwBBaAbdOroc4U46z+nJzC7+chd1ErSDA@mail.gmail.com> <FEBB57D4-E841-4F45-9B62-81FFC653FF70@lukasa.co.uk> <0F93FB58-579D-4F52-8F22-5FEAFBC99165@warmcat.com> <CAOdDvNpCVxsaKEzoW3EWsK1hmWSBPOP+GHnK-DcP4QO4om_khQ@mail.gmail.com> <f4bb6b5c-b12e-dc59-6faa-15588b692574@warmcat.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 16 Oct 2017 13:51:52 +1100
Message-ID: <CABkgnnUfDwYmxi72f-x=z=iwf4+3L_rcLqufJRYvEMpP=Fb3MA@mail.gmail.com>
To: Andy Green <andy@warmcat.com>
Cc: Patrick McManus <pmcmanus@mozilla.com>, hybi <hybi@ietf.org>, Cory Benfield <cory@lukasa.co.uk>, Patrick McManus <mcmanus@ducksong.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/hybi/DiFcdfp6O8URSIYo2b4dtgquXrU>
Subject: Re: [hybi] New Version Notification for draft-mcmanus-httpbis-h2-websockets-00.txt
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Oct 2017 02:51:56 -0000

On Mon, Oct 16, 2017 at 1:38 PM, Andy Green <andy@warmcat.com> wrote:
> Here's what I think it means for RTT... first the default as it is
>
> Client                          Server
>
>  - SETTINGS                      - SETTINGS
>  - GET /index.html
>                                  - 200 HEADERS + DATA
>
>  - :method CONNECT
>                                  - 200 HEADERS
>
>  - DATA ws handshake
>                                  - DATA ws handshake final
>
>  - DATA ...                      - DATA...
>
> So after the h2 link is up, he needs 3 x roundtrips to send some ws data.

I think that you are exaggerating the cost here.  The ws handshake and
CONNECT can be sent together.  The only real burden that Patrick's
design adds is the need to test that the server is willing to use this
design.

FWIW, if this were me, I would look at trimming the websocket
handshake instead.  Much of the overhead there is what will hurt the
overall latency.  If you took the setting as an indication that this
was an acceptable protocol, you could remove all the Upgrade business
and just start sending ws frames.  But I think that Patrick is right
to start with the minimal thing; I would recommend only doing that
with a new protocol identifier.