Re: Design: Adding ASSOCIATED_ONLY

Amos Jeffries <squid3@treenet.co.nz> Thu, 20 June 2013 16:22 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 ABD5F21F9DE8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 20 Jun 2013 09:22:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.496
X-Spam-Level:
X-Spam-Status: No, score=-10.496 tagged_above=-999 required=5 tests=[AWL=0.103, BAYES_00=-2.599, 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 DerKENWb3045 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 20 Jun 2013 09:22:05 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 083B121F9E03 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 20 Jun 2013 09:22:03 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uphby-000413-OS for ietf-http-wg-dist@listhub.w3.org; Thu, 20 Jun 2013 16:21:26 +0000
Resent-Date: Thu, 20 Jun 2013 16:21:26 +0000
Resent-Message-Id: <E1Uphby-000413-OS@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Uphbk-00040G-0c for ietf-http-wg@listhub.w3.org; Thu, 20 Jun 2013 16:21:12 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Uphbd-0004Zx-QT for ietf-http-wg@w3.org; Thu, 20 Jun 2013 16:21:11 +0000
Received: from [192.168.2.7] (103-9-42-2.flip.co.nz [103.9.42.2]) by treenet.co.nz (Postfix) with ESMTP id D4CBFE72CE for <ietf-http-wg@w3.org>; Fri, 21 Jun 2013 04:20:40 +1200 (NZST)
Message-ID: <51C32BCD.10107@treenet.co.nz>
Date: Fri, 21 Jun 2013 04:20:29 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <CABP7Rbe29dHp3LZuWEMKJdVEkuHW2jOUK0sSyBuh6PFnq=9Z1A@mail.gmail.com> <CABkgnnUKnborWAtuxwEvWx7wR=JYdOTvWHbpPd6NJ5kXK0Sw9A@mail.gmail.com> <CABaLYCuhs5zmMHD9D7qNEhhUpvzWf1THHOjS5-vTu6soMUqALA@mail.gmail.com> <CABP7RbfreVJv=RZga+Y6iHxsOhmdheyjcvZ3dTNgW3drg4j2iw@mail.gmail.com> <CABaLYCsj3eWPurynfDc=gd5zm=_=vCfWM7ocKVJpHBhFPi3cNw@mail.gmail.com>
In-Reply-To: <CABaLYCsj3eWPurynfDc=gd5zm=_=vCfWM7ocKVJpHBhFPi3cNw@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.437, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Uphbd-0004Zx-QT e6d1a89f9110c4c74e9fc48cba47040d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design: Adding ASSOCIATED_ONLY
Archived-At: <http://www.w3.org/mid/51C32BCD.10107@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18319
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 20/06/2013 7:30 a.m., Mike Belshe wrote:
>
>
>
> On Wed, Jun 19, 2013 at 11:26 AM, James M Snell <jasnell@gmail.com 
> <mailto:jasnell@gmail.com>> wrote:
>
>     Not very contrived use case: Switching away from one browser tab with
>     N-active push streams. Without this, we would need to send PRIORITY
>     frames for each individual pushed stream, which is bad.
>
>
> The reason I don't find this interesting is because most sites will 
> never experience it.  You have to have multiple tabs able to share a 
> connection for prioritization to have any meaning.
>
> So the use case you're referring to is:
>    * user has multiple tabs open to the same site
>    * the site does significant amount of background traffic which 
> create congestion for the foreground tab.
>
> I think this is contrived.

Possibly. I can also think of a very likely scenario which this will 
cause problems for.

1) Middleware which is caching the pushed resources will not be happy to 
have them terminated incompletely received even if the user has closed 
the main non-cacheable stream.

2) Middleware serving the pushed objects up to multiple clients in 
parallel will be quite put out to have the streams discontinued 
underneath it simply because they were associated as secondary resources 
with _one_ particular client who went away.

Per-stream reset frames can be recieved and the reset easily dropped if 
the stream is shared by multiple active clients or otherwise desired to 
be kept going. Retaining additional state on every stream to record the 
associations it has to all other streams is an unwelcome complexity.

>
>     At the interim, as part of the updated lifecycle discussions, we all
>     seemed to agree that the lifecycle of push streams was independent of
>     the originating stream, given that, if I close a browser tab with
>     N-active push streams, I would have to send a separate RST_STREAM for
>     every push stream in addition to the originating stream. This
>     eliminates that need.
>
>
> If you knew today that 99% of the time the number of push streams 
> you'd have to cancel was 2, you wouldn't care.
> On the other hand, if the typical number of push streams was 100000, 
> you'd care.
>
> My gut tells me it will be closer to 2 to 100000, but you may 
> disagree.  Either way, its not a problem we have, and the 
> "inefficiency" is not that inefficient!
>
> You can pack about 200 stream resets into a single TCP/ethernet packet 
> so.... isn't that good enough?
>
> I think multiple RST frames is just fine.

Same here.

Amos