Re: Design Issue: Separate HEADERS and PRIORITY Frames, Eliminate HEADERS+PRIORITY

William Chan (陈智昌) <willchan@chromium.org> Tue, 21 May 2013 17:31 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 E920621F97E5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 10:31:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.365
X-Spam-Level:
X-Spam-Status: No, score=-9.365 tagged_above=-999 required=5 tests=[AWL=0.311, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jVXaNiTgXwl9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 10:31:43 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5C60021F9794 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 May 2013 10:31:43 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UeqOz-0005v9-FM for ietf-http-wg-dist@listhub.w3.org; Tue, 21 May 2013 17:31:09 +0000
Resent-Date: Tue, 21 May 2013 17:31:09 +0000
Resent-Message-Id: <E1UeqOz-0005v9-FM@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 1UeqOn-0005u1-Ix for ietf-http-wg@listhub.w3.org; Tue, 21 May 2013 17:30:57 +0000
Received: from mail-qa0-f53.google.com ([209.85.216.53]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1UeqOi-0007lK-UC for ietf-http-wg@w3.org; Tue, 21 May 2013 17:30:57 +0000
Received: by mail-qa0-f53.google.com with SMTP id bs12so538479qab.12 for <ietf-http-wg@w3.org>; Tue, 21 May 2013 10:30:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Zb+lsid4I7H+8vlVxOyqhmFHEamKA8g60SXFfGCiyrs=; b=lR+1CjIpG68X1e0jroyORFYkp3zvT4J6GHMLyYtlcr36Ypgxh9/g78uIpt3KMLjGwm kUUS7WAaBNS6ZGlMbcnn9fLpFuZVOaCXSKzHlwnpK+kgMn19yQHF5rF5auC8cTpI7Fh6 a2LKPcVXP3gnaCEMfoULJV1jDDK9cWGgr+tKw/Rx29yqMWFjvFLGENyqSHZTbiptH02H U5aOMqPT+SyWKtJwdk4sPHf0Spr9wq0Fq7tNPRXaBnZtvRWCzLPLNFpR0d9idW/q/O4I xvvPLoiaBWu9A/8IYK5mdF/At9m/IHs/B17gtPzz3AuMsuCM5YrFE05jmH8uLOeov0Cx htvA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Zb+lsid4I7H+8vlVxOyqhmFHEamKA8g60SXFfGCiyrs=; b=HXwhXczQMIPvyyVibXp3CjjXxGL91ZSR11WvIefku/dnLRdPFB5Bo54XbFRt75Q53I zGaUJEfoiOnDzqK1OYEVClebQCqycZfAZ+agTl4n0pmQ6ujCm7WpvLG87PHHSuI+gp32 CsdcvHYZP9/QfpPX7lQXZwN4jvxiU2P/MKZRY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=Zb+lsid4I7H+8vlVxOyqhmFHEamKA8g60SXFfGCiyrs=; b=Q3VRv/7wr9orvwO62BMp2CyGTVCmMttXvPoM2408HpGYxrqZBHjZ+jG/xl2FertRQ4 x/2oDyLv3DtDiZFKX3V4GUQjGLGIdZ1GItMPWIzUgMVOGmFCJx5kI90S8OgssBzO9R5B FKZLTNpnBZGcqhEziBArKt0gg+jCm11691vbRpNuLihqibfMwrm9WhbK82UTUl3EOVu2 hHDU3WpxMB4if1TAeuSrdnl4jp3N1dHjiPCPALEuklwoX3tuclNWdF+5MrIKE5GUEu1C oNRsQn9lxMKVd6WD+FQMNKswm5qd52cOTUIWvuenU9+pW//NXP8jRAlZwkxZHeA9+2i6 9wZQ==
MIME-Version: 1.0
X-Received: by 10.49.49.167 with SMTP id v7mr3886337qen.10.1369157427036; Tue, 21 May 2013 10:30:27 -0700 (PDT)
Sender: willchan@google.com
Received: by 10.229.217.19 with HTTP; Tue, 21 May 2013 10:30:26 -0700 (PDT)
In-Reply-To: <CAOdDvNqkuY5qtOzFz5J0v1F1_n8HmFY9J==sXMs_9tDrTTE=cg@mail.gmail.com>
References: <CABP7RbfX_H_7dwM7ExL5qJgpV5JN1NYyv9tqnu_E23qGk63mWg@mail.gmail.com> <CAA4WUYhDhoS+BNknRnYLAOXfWzumcjkWnQnM=NkNM8oqqE=atw@mail.gmail.com> <CAOdDvNqkuY5qtOzFz5J0v1F1_n8HmFY9J==sXMs_9tDrTTE=cg@mail.gmail.com>
Date: Tue, 21 May 2013 14:30:26 -0300
X-Google-Sender-Auth: is0n29HVBcSVc4ojPaHBM7RIZ-E
Message-ID: <CAA4WUYhZb_ScYZ=F8ypGkXkX=3oK+4TnyWOtuN_FNkZqqhbZLQ@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: James M Snell <jasnell@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7b6da828149fb804dd3dce85"
X-Gm-Message-State: ALoCoQkFwDoBaJmue0+ciWeTskjuLm67kaj8R4ftyS5ESiqsBJt9JP/OKrVSS9egwejohYvB9P64hfiFU7eZVnVwZupdFAmK6SWzQ86G99Ie/o9mtCVS0VAOw+li4cIW70hOXngUmVED637K+/Jx9g0+ukjXhJStCqOInRM9IdMuO734bCFlzGvj2D8MP9UPoD4OoUBpwHCf
Received-SPF: pass client-ip=209.85.216.53; envelope-from=willchan@google.com; helo=mail-qa0-f53.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.184, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.07, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UeqOi-0007lK-UC 6174cda6b12d6ac573ecd5111bdadb40
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: Separate HEADERS and PRIORITY Frames, Eliminate HEADERS+PRIORITY
Archived-At: <http://www.w3.org/mid/CAA4WUYhZb_ScYZ=F8ypGkXkX=3oK+4TnyWOtuN_FNkZqqhbZLQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18065
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>

Thanks for describing these cases now. I had not thought of them.

If everyone's sold on reprioritization, then let's go ahead and do this and
have the debate about ditching HEADERS+PRIORITY or not. I want to keep it.
I don't like the idea of sending a PRIORITY frame first. Is sending a
PRIORITY frame going to trigger stream state allocation at the receiver?
What's the expectation? And if you don't have a priority for the HEADERS,
then you have the race that Roberto described.


On Tue, May 21, 2013 at 2:09 PM, Patrick McManus <pmcmanus@mozilla.com>wrote:

>
> On Tue, May 21, 2013 at 12:32 PM, William Chan (陈智昌) <
> willchan@chromium.org> wrote:
>
>>
>> I support adding a new additional PRIORITY frame for stream
>> reprioritization.
>>
>
> me too. Specifically I support this as a mechanism for the client to be
> able to explicitly prioritize an open pushed stream. I can wait for more
> evidence about re-prioritizing, but in cases where the client hasn't ever
> explicitly set the stream's priority I think we have evidence that its time
> to do something.
>
>>
>> Unless there's a reason this needs to be in the current http/2 draft
>> sooner rather than later, I'd rather punt on this discussion until we have
>> implementation experience that can guide this debate.
>>
>
> I think there is experience here specifically related to push.
>
> e.g. You can easily configure mod_spdy to push images when html is pulled.
> but you can't effectively dictate the relative priorities of those two
> things.
>
> Sure, you can define an explicit priority for those images but priority
> implementations are all about relative levels and the client set the
> priority of the html.
>
> You can argue that mod_spdy should have defined relative priorities (+/-
> the associated stream) instead of constants.. that would be better but the
> client still has no way to make sure those streams are at a higher priority
> than a "save as" background stream (I've seen this one happen as mod_spdy
> defaults to lowest priority when pushing), or a lower priority than a
> real-time video stream..
>
> plus there is no scale for the server to work with.. it might set a +2
> priority for pushed images but the client might be using +3 for pulled
> images causing a mismatch in something that was intended to be equally
> weighted.
>
> at least with a priority frame the client can make those adjustments in a
> RTT.
>
> Cheefully,
> -Patrick
>
>
>