Re: Reference set in HPACK
"Poul-Henning Kamp" <phk@phk.freebsd.dk> Wed, 02 July 2014 07:24 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B36D61A0AA8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Jul 2014 00:24:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.553
X-Spam-Level:
X-Spam-Status: No, score=-7.553 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 xOaAqfb98LO3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Jul 2014 00:24:22 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 440161A0A98 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 2 Jul 2014 00:24:22 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1X2Ese-0002bV-PP for ietf-http-wg-dist@listhub.w3.org; Wed, 02 Jul 2014 07:23:00 +0000
Resent-Date: Wed, 02 Jul 2014 07:23:00 +0000
Resent-Message-Id: <E1X2Ese-0002bV-PP@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1X2EsV-0002Za-FY for ietf-http-wg@listhub.w3.org; Wed, 02 Jul 2014 07:22:51 +0000
Received: from phk.freebsd.dk ([130.225.244.222]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1X2EsU-0000pT-54 for ietf-http-wg@w3.org; Wed, 02 Jul 2014 07:22:50 +0000
Received: from critter.freebsd.dk (unknown [192.168.60.3]) by phk.freebsd.dk (Postfix) with ESMTP id E235F1598; Wed, 2 Jul 2014 07:22:27 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id s627MPgF019820; Wed, 2 Jul 2014 07:22:26 GMT (envelope-from phk@phk.freebsd.dk)
To: Roberto Peon <grmocg@gmail.com>
cc: Kazu Yamamoto <kazu@iij.ad.jp>, HTTP Working Group <ietf-http-wg@w3.org>
In-reply-to: <CAP+FsNf=RvMaGLr2Dx+VUVwimb6+bxdEgNyV7aL2xPOiFBJcGg@mail.gmail.com>
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <20140702.143041.283993814131065692.kazu@iij.ad.jp> <CAP+FsNexzVzt+YV7oBeMdGrMoajbMVj1Z90XvQfaCuNMDjYdHg@mail.gmail.com> <20140702.145215.1023037072984695261.kazu@iij.ad.jp> <CAP+FsNc+xW1gKma0McrgXtPpwR0BCubHkvHhUbcHHyn1Sd6t0g@mail.gmail.com> <19403.1404282862@critter.freebsd.dk> <CAP+FsNf=RvMaGLr2Dx+VUVwimb6+bxdEgNyV7aL2xPOiFBJcGg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <19818.1404285745.1@critter.freebsd.dk>
Content-Transfer-Encoding: quoted-printable
Date: Wed, 02 Jul 2014 07:22:25 +0000
Message-ID: <19819.1404285745@critter.freebsd.dk>
Received-SPF: none client-ip=130.225.244.222; envelope-from=phk@phk.freebsd.dk; helo=phk.freebsd.dk
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.430, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: lisa.w3.org 1X2EsU-0000pT-54 06d134b707d8048ea2adc250682fe0f7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Reference set in HPACK
Archived-At: <http://www.w3.org/mid/19819.1404285745@critter.freebsd.dk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/25071
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>
In message <CAP+FsNf=RvMaGLr2Dx+VUVwimb6+bxdEgNyV7aL2xPOiFBJcGg@mail.gmail.com>, Roberto Peon writes: >--047d7b2e50c07345ea04fd30267d >That is orthogonal-- small data frames are necessary for latency as well, I don't dispute that, I just dispute the value chosen for "small". But back to your two saved packets: I just tried loading a typical well engineered major news site over HTTP/1 and captured a tcpdump. A total of 1891906 bytes were sent in the TCP packets and 146 HTTP transactions performed. 1718723 of those byes are accounted for by Content-Length (there is a single chunked object but I can't be bothered to tally it from the tcpdump). If the 1718723 bytes optimistically had been sent on a single TCP in one direction from a single server, that would take 1193 packets (without HTTP/2 overhead of framing). Your proposed saving of 2 packets can therefore never exceed a 0.17% ratio for this particular case. In practice 15 different servers were involved and just the distribution of content over 15 TCP connections alone adds 7.5 packets on average in "rounding error", in addition to the three-way handshakes and so on. It also reduces the chances of the few bytes shaved by the reference set from saving any packets (as opposed to having a few byts less in a packet). If I remeber my statistics right, your already pretty slim chances of shaving a packet is reduced by sqrt(15), since the reference set doesn't do anything for you cross-site. So provided the byte for byte savings previously quoted are correct on average you'd probably save half a packet out of the total 1200. That is 0.04 %. Unless you have actual non-contrived data that shows a remarkably better outcome than that, the reference set is not worth the added complexity. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
- Reference set in HPACK Kazu Yamamoto ( 山本和彦 )
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Mark Nottingham
- Re: Reference set in HPACK Kazu Yamamoto ( 山本和彦 )
- Re: Reference set in HPACK Kazu Yamamoto ( 山本和彦 )
- Re: Reference set in HPACK Kazu Yamamoto ( 山本和彦 )
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Poul-Henning Kamp
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Poul-Henning Kamp
- Re: Reference set in HPACK Greg Wilkins
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Roberto Peon
- RE: Reference set in HPACK K.Morgan
- Re: Reference set in HPACK Roberto Peon
- RE: Reference set in HPACK K.Morgan
- RE: Reference set in HPACK K.Morgan
- Re: Reference set in HPACK Poul-Henning Kamp
- Re: Reference set in HPACK Poul-Henning Kamp
- RE: Reference set in HPACK K.Morgan
- Re: Reference set in HPACK Michael Sweet
- Re: Reference set in HPACK Kaoru Maeda
- Re: Reference set in HPACK Johnny Graettinger
- Re: Reference set in HPACK Martin Thomson
- Re: Reference set in HPACK Eric J. Bowman
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Eric J. Bowman
- Re: Reference set in HPACK Roberto Peon
- Re: Reference set in HPACK Eric J. Bowman
- RE: Reference set in HPACK RUELLAN Herve
- Re: Reference set in HPACK Eric J. Bowman
- Compression ratio of 09 (was: Reference set in HP… Kazu Yamamoto ( 山本和彦 )