Re: The use of binary data in any part of HTTP 2.0 is not good

William Chan (陈智昌) <willchan@chromium.org> Sun, 20 January 2013 23:23 UTC

Return-Path: <ietf-http-wg-request@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 7947421F8481 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 20 Jan 2013 15:23:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.078
X-Spam-Level:
X-Spam-Status: No, score=-7.078 tagged_above=-999 required=5 tests=[FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9SNsNNEVS10V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 20 Jan 2013 15:23:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 97CB921F8855 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 20 Jan 2013 15:23:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tx4DB-0002S9-2o for ietf-http-wg-dist@listhub.w3.org; Sun, 20 Jan 2013 23:22:01 +0000
Resent-Date: Sun, 20 Jan 2013 23:22:01 +0000
Resent-Message-Id: <E1Tx4DB-0002S9-2o@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1Tx4D5-0002RO-Qs for ietf-http-wg@listhub.w3.org; Sun, 20 Jan 2013 23:21:55 +0000
Received: from mail-qa0-f49.google.com ([209.85.216.49]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1Tx4D5-00009I-1O for ietf-http-wg@w3.org; Sun, 20 Jan 2013 23:21:55 +0000
Received: by mail-qa0-f49.google.com with SMTP id r4so4211339qaq.8 for <ietf-http-wg@w3.org>; Sun, 20 Jan 2013 15:21:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=G3fzwTpW82zF84GD5VHTreQ7LteNPC23Nd8gne3Xi0g=; b=UUWscZPOhPfh2xvr+N9mMdK2JWSTyQYvwrloTDgvDcLsbFNOW8X0tLJiHnL08PC/uJ ABJRAEkAzNOp+kFifTPtzGL9O+9FTxBsjkaCqysFMQGqDqwjPuW6EyDD1Ahomk1Rto7/ K8IUvmeRZRf+Sgwm94sV1A1qJM/APpanJTGWF8dZw9mSFV5YEuPe1E9MBpCNDVxVKBNh pUHH1IdE8nDmKZiNuz3Or4uKMF/QXNIb9CGk4ct68LJlW1U+XYFmRUsfYE9zKbV/XHkC 3swSJqcauQDLP2zRrzxpTR55seT3tyz4/W0UbajhkwYLwX4KME796OqGtkZN17ZJhN5d dFlQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=G3fzwTpW82zF84GD5VHTreQ7LteNPC23Nd8gne3Xi0g=; b=SkFUyAELcgSKqhpX2QS1FG41zKEA1UdB30/LvCtHgJcaDj/5Oe1uK1SBYiDXuZMZur 5KJHIEcI8YayOkfUcWidx+Ilu3Crr6g+VOiyajqu1xnKI9crxvcWyeXSb0GQYPgA3SyX V8rqKiFeuR3DVwJwwQsCHCBoVv7B4cICTIXnw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=G3fzwTpW82zF84GD5VHTreQ7LteNPC23Nd8gne3Xi0g=; b=isjK3WBdcM0eQPqGBDJPqPBKTUiIZf8XnTIpZ4v/1eihSA1nHucG6cWl4C/aATs5zI dgmMX9T3JqkC2+iPS1gDvLHDhKhP4oPwRN+0KLm/uTKffXoHOsditjIu8U8fG5TROsUm MUUlNzfInSTdAvsKvD4OPYcH5Sh6V4RSht+jRoIwOejV/8cSOKNz6VjHOx4aIHf0j43R 4aRvPW2vsHOqLuGmII6qBv7dja6yx3utdo5QUInteJeAtgDpky4g6GnQJ9m+tMoCFkTI dtd1vzayK7ENKmVU29PnhRkB/ALEGY94y0OmBAyrgg0zL/0PWkfRE8UYIiDIATjVX42N bqsg==
MIME-Version: 1.0
X-Received: by 10.224.31.196 with SMTP id z4mr17413228qac.20.1358724088840; Sun, 20 Jan 2013 15:21:28 -0800 (PST)
Sender: willchan@google.com
Received: by 10.229.57.163 with HTTP; Sun, 20 Jan 2013 15:21:28 -0800 (PST)
In-Reply-To: <alpine.LRH.2.01.1301201514090.15390@egate.xpasc.com>
References: <CAAZO4q4vEiYhH5FaX2XCxXox9jkf4dLTy8coQZiE+CYHA-QzBg@mail.gmail.com> <20130120223022.GQ6838@1wt.eu> <alpine.LRH.2.01.1301201514090.15390@egate.xpasc.com>
Date: Sun, 20 Jan 2013 15:21:28 -0800
X-Google-Sender-Auth: j5Hc8T7bsBdb0G3WiuKbOqBgzCo
Message-ID: <CAA4WUYi0EoGbP+iJRfWTdJc_fuNdHssTZsZNGhw7zgT_iGROOA@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
X-Gm-Message-State: ALoCoQns9724vCTopdHMgHynCK5mlPrTQ8oEkj2gOIVwY0aIFOhOV6qQOGqpwt8/7JYTrZH9vs9hv1fh708rCRaYxPVgfFHNhYYiyCeU/XTe2tXUX5ZsO728/hpEH0GHs8fIA+qCWsUIODu+qa9pku8jfCrvdJxnFwxSqiwj6CH8pnavojj4teHWxkkO92NNiFA6pwVzKjHB
Received-SPF: pass client-ip=209.85.216.49; envelope-from=willchan@google.com; helo=mail-qa0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.657, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tx4D5-00009I-1O 21539fd0c9cfb2af987a2bc1c01152bb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: The use of binary data in any part of HTTP 2.0 is not good
Archived-At: <http://www.w3.org/mid/CAA4WUYi0EoGbP+iJRfWTdJc_fuNdHssTZsZNGhw7zgT_iGROOA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16052
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>

Indeed. It might be something similar to
https://code.google.com/p/spdyshark/. Or spdycat
(https://github.com/tatsuhiro-t/spdylay).

On Sun, Jan 20, 2013 at 3:15 PM, David Morris <dwm@xpasc.com> wrote:
>
>
> On Sun, 20 Jan 2013, Willy Tarreau wrote:
>
>> Hi Pablo,
>>
>> On Sun, Jan 20, 2013 at 07:20:25PM -0300, Pablo wrote:
>> > Hello,
>> >
>> >    I have readed this document
>> > http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft1 today [1].
>> >
>> > I just wanted to say that I think that the use of any binary data (framing,
>> > header compression, etc.) in any place of the "header" part of HTTP
>> > protocol is not good; so, please only use plaintext for HTTP 2.0 because,
>> > otherwise, that will make very difficult to "see" the headers's protocol :)
>> >
>> > Thats all,
>> > Thanks for reading this few lines, sorry for my basic English, and I hope
>> > that you can re-think all this of using binary data in any part of HTTP X.X
>> > (ej: session layer).
>>
>> As much as I love to read HTTP protocol in network traces or in programs,
>> I must say that we (humans) are very rare HTTP readers. I suspect that only
>> something like 1 request on 1 billion is read by a human. This is not a great
>> enough ratio for keeping an ambiguous, complex, and sometimes even insecure
>> protocol to parse.
>>
>> I too tried as much as I could to see what would be achievable with a text
>> based protocol, but I finally admitted it was a dead end. At the moment the
>> challenges consist in feeding requests as fast as possible over high latency
>> connections and processing them as fast as possible on load balancers and
>> caches in order to maintain a scalable internet. Humans are very incapable
>> devices there.
>
> It won't be rocket science to create a plugin for Wireshark/etherial and
> other network tools which can format the binary data for those cases where
> humans need to do that for debugging.
>