Re: WiSH: A General Purpose Message Framing over Byte-Stream Oriented Wire Protocols (HTTP)
Takeshi Yoshino <tyoshino@google.com> Fri, 28 October 2016 17:25 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 DDD50129581 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Oct 2016 10:25:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.951
X-Spam-Level:
X-Spam-Status: No, score=-6.951 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.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 kBlq7H_ks70H for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 28 Oct 2016 10:25:53 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2DB29129565 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 28 Oct 2016 10:25:53 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c0Aqz-0002Hj-S0 for ietf-http-wg-dist@listhub.w3.org; Fri, 28 Oct 2016 17:22:05 +0000
Resent-Date: Fri, 28 Oct 2016 17:22:05 +0000
Resent-Message-Id: <E1c0Aqz-0002Hj-S0@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tyoshino@google.com>) id 1c0Aqu-0002Gy-TN for ietf-http-wg@listhub.w3.org; Fri, 28 Oct 2016 17:22:00 +0000
Received: from mail-oi0-f50.google.com ([209.85.218.50]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tyoshino@google.com>) id 1c0Aqo-0001eh-Ou for ietf-http-wg@w3.org; Fri, 28 Oct 2016 17:21:55 +0000
Received: by mail-oi0-f50.google.com with SMTP id n202so125175666oig.3 for <ietf-http-wg@w3.org>; Fri, 28 Oct 2016 10:21:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=k/Yqu3VSA++PW7z6drzWr5Q4KFzw46lEf523bX9fmP8=; b=O9X4ld/HVK2sdpE983izDF6qbjz0qD1hV845oOhzH4uUMsZG2y3IN/T3ZWFLdv1MDI ArxEvNAbVA7l9ypUIVaz1DZBOf9f6SSYy0zApsE1t9ur5VKyLQul4k9p6BCpt+7rQzoS rvtFyb9rc8E29i5xcwNIaiDm3aSTt/OOACNLS1MA8FxHpSOqcKbziHoaHW2d7pTMFVaz k5aoI3U0SdFxPYwwuDdc7OkG5Nso16D1d6TFVOYBa/bK2NMOUskYmnpzMemXbG8n05zZ AcPgoGTJd0UaejdhWUavNiQhiRRxOM2YVAyZoxIviwheaPws7YLDXKnrcnC1UxCoKStp y2qQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=k/Yqu3VSA++PW7z6drzWr5Q4KFzw46lEf523bX9fmP8=; b=BLSp3m2PEVy0vBQvggehCDnLnTqLPP2zwjYL3Ly7C09zi+ltZzJyhtsEoD+3P5ejeG 8v9AQYu2eVxh+j03O/I+uo+eJfzjf82UvfBKghmoXKbZtE2cF0+DEuaZhsV7/DKlV+4F rb5dvIWVhcBkxFkZRMoacQwffTA8VnPaOMyIcD5fpcD/Z6gfIZJJt7wMxcS+IuRzgz1L SZ9HCXeSoxnaxAY/hbSeuBEmwvgt9brSFQirWvbE6qJhVPB/kn4btpnTojcJzE8mhb0p STLbQSyiTOlxa8eTJm87xGPpFpY3ZtTlkp10lpTmv45rTARoJKIZpvdTEqJ8Mx6T1w9L s0Xw==
X-Gm-Message-State: ABUngvdxvC39wbVexzRs8inKJg8DxM1PiTHc1xhTnuHgAWX5LYG9/ts2Mv/cQf89ObH9kt+Ou310NcAi+H38Xp5R
X-Received: by 10.107.25.20 with SMTP id 20mr11555151ioz.189.1477675288315; Fri, 28 Oct 2016 10:21:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.113.68 with HTTP; Fri, 28 Oct 2016 10:21:07 -0700 (PDT)
In-Reply-To: <CAP8-FqnLaRvyQgXXkoNQPKcyMhv-O3RN67CMw5L_-1iQ9c6mhw@mail.gmail.com>
References: <CAH9hSJZdBJ02+Z6o=aanZ=5PN=9VwyL1ZcX2jct-6f_FFivLGA@mail.gmail.com> <0f79ddf6-c455-c41a-f269-a1bdcef05b14@ninenines.eu> <CAH9hSJb2R9gv2vNqoyTjbMV4hZTYdpX2PoAoYgWUT1UuigLHRA@mail.gmail.com> <5541be74-afcc-6aef-404e-63acb2f608eb@ninenines.eu> <CAH9hSJarsNFqX1tAL7BZmZQwUrEQs1X3wtrAPuMyz8s-k_7WRg@mail.gmail.com> <43998e7b-9227-7562-b2c6-c08134065e22@ninenines.eu> <CAD3-0rPRPzVvYb6_Z4wDZp73L5Kyb7LmE0P5j4A-2VSRwT7FMw@mail.gmail.com> <CAH9hSJb=mWdHP8xcBis8-jhWgQTfN-cgQXVV3eCyT4U8JYQHZA@mail.gmail.com> <CAP8-FqnLaRvyQgXXkoNQPKcyMhv-O3RN67CMw5L_-1iQ9c6mhw@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Sat, 29 Oct 2016 02:21:07 +0900
Message-ID: <CAH9hSJYpsPW4S9n2LaaLTYYKB7wR3Sod2=fny2CZoUR7A0bSJA@mail.gmail.com>
To: Costin Manolache <costin@gmail.com>
Cc: Wenbo Zhu <wenboz@google.com>, Loïc Hoguin <essen@ninenines.eu>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113ffa22a7aefc053ff01654"
Received-SPF: pass client-ip=209.85.218.50; envelope-from=tyoshino@google.com; helo=mail-oi0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=0.493, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-1.418, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1c0Aqo-0001eh-Ou 77d7a6a1bd72a70727255359bbd69411
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WiSH: A General Purpose Message Framing over Byte-Stream Oriented Wire Protocols (HTTP)
Archived-At: <http://www.w3.org/mid/CAH9hSJYpsPW4S9n2LaaLTYYKB7wR3Sod2=fny2CZoUR7A0bSJA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32707
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
On Sat, Oct 29, 2016 at 1:25 AM, Costin Manolache <costin@gmail.com> wrote: > I think WiSH could be great as a fallback to the webpush protocol push > promises, in devices > that don't fully support http/2, and for webpush delivery receipts. > Great to hear that. > > In the context of IoT: since continuation is available, any reason to > support 64-bit-length frames ? > Even 32 bit ( 4G ) frames may be unpractical. I don't know how common > this int encoding scheme > is - but using varint or fixed may be easier to handle. > It's basically not to introduce any gap with WebSocket's representation power for compatibility while also keeping it efficient for small frames. Re: varint, Actually, old WebSocket protocol I-Ds used base 128 varint for encoding frame length for binary frames. https://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00 We can choose this as this is efficient for small messages but considered that WebSocket encoding is already common and honored input which led to the WebSocket encoding. IIRC there was some feedback from hardware developer against to 128 varint, but I cannot find it now. Re: big frames, We're also seeing that very long messages are uncommon from Chromium's UMA stats. We might be able to share that. Re: small over head for small frames, For the use cases where WiSH is layered on top of HTTP2 overhead and TLS record overhead, this difference might be negligible. So, ... I'm open to changing the encoding, but want to hear more :)
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- WiSH: A General Purpose Message Framing over Byte… Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Loïc Hoguin
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Loïc Hoguin
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Loïc Hoguin
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Wenbo Zhu
- Re: WiSH: A General Purpose Message Framing over … Wenbo Zhu
- Re: WiSH: A General Purpose Message Framing over … Loïc Hoguin
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Wenbo Zhu
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Loïc Hoguin
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Wenbo Zhu
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Wenbo Zhu
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Costin Manolache
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Mark Nottingham
- Re: WiSH: A General Purpose Message Framing over … Andy Green
- Re: WiSH: A General Purpose Message Framing over … Mark Nottingham
- Re: WiSH: A General Purpose Message Framing over … Andy Green
- Re: WiSH: A General Purpose Message Framing over … Mark Nottingham
- Re: WiSH: A General Purpose Message Framing over … Willy Tarreau
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino
- Re: WiSH: A General Purpose Message Framing over … Mark Nottingham
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Poul-Henning Kamp
- RE: WiSH: A General Purpose Message Framing over … Mike Bishop
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Andy Green
- Re: WiSH: A General Purpose Message Framing over … Van Catha
- Re: WiSH: A General Purpose Message Framing over … Andy Green
- Re: WiSH: A General Purpose Message Framing over … Martin J. Dürst
- Re: WiSH: A General Purpose Message Framing over … Alexey Melnikov
- Re: WiSH: A General Purpose Message Framing over … Takeshi Yoshino