Re: [hybi] Payload only compression extension, again

John Tamplin <jat@google.com> Tue, 26 July 2011 15:11 UTC

Return-Path: <jat@google.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 601BB21F86A0 for <hybi@ietfa.amsl.com>; Tue, 26 Jul 2011 08:11:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.943
X-Spam-Level:
X-Spam-Status: No, score=-105.943 tagged_above=-999 required=5 tests=[AWL=0.033, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 R5YUQPy5lJCm for <hybi@ietfa.amsl.com>; Tue, 26 Jul 2011 08:11:33 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id B6CC921F8541 for <hybi@ietf.org>; Tue, 26 Jul 2011 08:11:33 -0700 (PDT)
Received: from kpbe17.cbf.corp.google.com (kpbe17.cbf.corp.google.com [172.25.105.81]) by smtp-out.google.com with ESMTP id p6QFBXra009618 for <hybi@ietf.org>; Tue, 26 Jul 2011 08:11:33 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1311693093; bh=+Yxph1PgY5o2lIPvdRxJBAbreO8=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aJLF+9TT49q/VWHL6QQwnmczCXpaHeZImDNhd4sTh+iAkTD3sA1o+qpmPA9B/fmCb NODU9+YHagxas/f8Axkag==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:from:date: message-id:subject:to:cc:content-type:x-system-of-record; b=v1IcNhtU9hgxyJL4IFOfdXGJHnE0/xz7qblaIC1r+bRpdEnV53Oi4b7nsjiFf3qSB Oeu++HN0BOX8E7c7DxmKA==
Received: from ywo7 (ywo7.prod.google.com [10.192.15.7]) by kpbe17.cbf.corp.google.com with ESMTP id p6QFAp1E026555 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Tue, 26 Jul 2011 08:11:32 -0700
Received: by ywo7 with SMTP id 7so618791ywo.25 for <hybi@ietf.org>; Tue, 26 Jul 2011 08:11:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5fVw0ePR59E6JPGCQZlSSLZvB3jVzYOmBuQxMXCvXwM=; b=eTHfFb4f9Cu5CDNAtaUmAjp9wFQe6gVhGqHK8sMdq7/CISIcC4z3k8Y+4vsJGeCQA9 thpuoE+kIcTm+kFpz77Q==
Received: by 10.150.187.20 with SMTP id k20mr5799710ybf.401.1311693091095; Tue, 26 Jul 2011 08:11:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.49.7 with HTTP; Tue, 26 Jul 2011 08:11:11 -0700 (PDT)
In-Reply-To: <CAH9hSJYhenXHobhmL+sdmRp-b5BRWQUmj3V1oridcMma233zOA@mail.gmail.com>
References: <AANLkTik2LqCC2-ZLLdWNNaQ18ypcQU_5djJobkYtYk6T@mail.gmail.com> <AANLkTik+uh98b0n7U=xrE0Aaa7MyBfZVXSwj+8wfVTKW@mail.gmail.com> <AANLkTinCtDepu+wDt4=8GyXqhfn=SQ7v2SjJhKzP2Mzr@mail.gmail.com> <AANLkTinhw0j5U_tvfCCrcEx=J6b7wBua4XzhWkvthUjL@mail.gmail.com> <BANLkTi=SjQwGQu-3v2wjniyp9DrQ1ZcQdA@mail.gmail.com> <BANLkTi=dqFN-57GV3rYDv4feTAaZFQko1g@mail.gmail.com> <BANLkTikWFwfs0FOuET5ZS1HEzjweNO0_CA@mail.gmail.com> <BANLkTikHXtVM+7nfz60toKTJCXBuMwMC1g@mail.gmail.com> <BANLkTinsMu+Znbg7Fe7+9HZeZg=Q8SwDHg@mail.gmail.com> <4DB8D3B2.8090002@mozilla.com> <BANLkTimE9qYEvBVLGbOsU7YDVGDwHpGjgA@mail.gmail.com> <BANLkTi=L=8r7dCkRa6MTC3AGziZWeM+fpA@mail.gmail.com> <BANLkTi=-msm-ppt1n_2U5+bHoZO1i+Yj7A@mail.gmail.com> <BANLkTikEYhsdcrK1RqQTwjy3yuSVOaw=Dw@mail.gmail.com> <BANLkTimhEai77LC53NFeOhgNzFQes7HS7g@mail.gmail.com> <BANLkTinW8SL-kwJs-ZsJPmqj269dT29N0A@mail.gmail.com> <CAH9hSJYkjiGPM6RihBkF54zFDXFn935Y0T4FU91G6ttekCyBwA@mail.gmail.com> <CALiegfkUa90DP=YAHJuyQK=CrMs4MoSguxca60fuxM16GgYr8w@mail.gmail.com> <CABLsOLAkdxrGJzqvmoBSxF3QH_zqjg2DHzW2TkfJC+iYiSXKrg@mail.gmail.com> <CAH9hSJZmdSU0j5WETz2A339Gbe=7BTp3VXfie0VChboQoJ=Pjw@mail.gmail.com> <CAH_y2NG6uWp_Utu_0NRXUA2-i+sMdFjDWnf42zM0JaOzojcXiA@mail.gmail.com> <CAH9hSJbS+y8+742OC0fc_1Hy8VgopPSG7yN+BgBCx4CY+kzGnQ@mail.gmail.com> <CABLsOLCk9DHHwk=NumpNruCgso5nr6_QwaLtfiZJ-m0Tp7vm_Q@mail.gmail.com> <CAH_y2NEYmvGPESMyKgMCHOXC1Yp1-cpbZH=X-zhMAhKTRsKgKQ@mail.gmail.com> <CAE8AN_VuTFi5OrOW7md1L_Ggqvyx9_8VPu+0LE6t9j31mHYcnQ@mail.gmail.com> <CAH9hSJYhenXHobhmL+sdmRp-b5BRWQUmj3V1oridcMma233zOA@mail.gmail.com>
From: John Tamplin <jat@google.com>
Date: Tue, 26 Jul 2011 11:11:11 -0400
Message-ID: <CABLsOLA7TSTDqxCvbtxOzGOrdOuzMtEc=ysAAvs2CBZm1MrToA@mail.gmail.com>
To: Takeshi Yoshino <tyoshino@google.com>
Content-Type: multipart/alternative; boundary="000e0cd6ae5abfc52804a8fa5888"
X-System-Of-Record: true
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Payload only compression extension, again
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Tue, 26 Jul 2011 15:11:34 -0000

On Tue, Jul 26, 2011 at 10:23 AM, Takeshi Yoshino <tyoshino@google.com>wrote:

> Additionally, I'd like to propose one more parameter.
>
> - No compression context sharing option
> -- though I'm claiming that compression context sharing across frames is
> good, it's sometimes harmful for intermediaries
> -- for load balancers that dispatches WebSocket frames to different
> backends, shared compression context means that the load balancer have to
> perform decompression. it's burden in terms of both memory pressure and CPU
> power.
> -- So, I'd add parameter "finish_at_eof" to allow such intermediaries to
> ask clients not to keep using the same compression context across frames
>

The problem is that if you don't share compression state across frames, then
it becomes critical to not try and compress incompressible content.  Look at
the experiment data I presented in that same thread -- it is very easy for
frame sizes to go up if you aren't sharing compression state, so I think if
this option is included we have to decide now how to turn off compression on
a frame-by-frame basis rather than delaying it for a future extension.  In
contrast, if compression state is maintained across frames, it is still
usually a win even on incompressible content because different frames have
redundancy, and the loss is never bad.

I would prefer, for the initial version, to simply have load balancers that
can't maintain compression state to simply refuse compression.

-- 
John A. Tamplin
Software Engineer (GWT), Google