Re: [Webpush] Receipt subscription follow-up

Costin Manolache <costin@gmail.com> Thu, 28 April 2016 02:20 UTC

Return-Path: <costin@gmail.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DA09B12B00A for <webpush@ietfa.amsl.com>; Wed, 27 Apr 2016 19:20:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 vyEpovLluace for <webpush@ietfa.amsl.com>; Wed, 27 Apr 2016 19:20:31 -0700 (PDT)
Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3CB2012D521 for <webpush@ietf.org>; Wed, 27 Apr 2016 19:20:31 -0700 (PDT)
Received: by mail-io0-x235.google.com with SMTP id d62so64612730iof.2 for <webpush@ietf.org>; Wed, 27 Apr 2016 19:20:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NRQ7FQBE+4I5bKnrMO/nis4DapdL5D948WAyW5WeCR8=; b=a7XT+45WfrsMAsY5TBEujdwI2bXmM1pDXAP1yp8MqB5JSuML9j4PO7lfq5ztGD8MEd 1XbxiGZKXc0565OYU062e7HlFrqSWNkKlTldexK6qGzt4n33wS7UKiehgHw97p4a8aXH ctYlAgSMAzDFwqHcr6tdstVNnhvaNRy2pZmTDfhWxsTtPZvfrwJ0zHBTfvQux6mT6i9k TGILk+4KZWCBZT+b2PmPU/tD6FTuhfhWotcocuazuwOZybxyUn3I+HhZ6GcHtshtR9/D F2gwT1aNo7r3KVU7s/mqQImC3wfRzVAeWYoYf4Fi2b0oun2CGfrTdyqMNGH+hqMfq4hE AS5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NRQ7FQBE+4I5bKnrMO/nis4DapdL5D948WAyW5WeCR8=; b=Sdfh4kGXEFNFnSkI3J6blhlYPRoYZUfAS0c4naAyuoUTBeKTPef3TRsZh0c8I4mpqV wrqu+UebZsKetBvbDdALeb9sX+LZ/myUCOwTHJe1jCsj2G1Wtu/uklCFxJJt2Bmf4f4T tbBuiQIyRYp01yxrnuo81UmNoRs6s9D3dgSUZXBEF5dMJErIkkp+HQl5ubYn+mOzYdBl QCSZ40yzKLKinQAD6/l90oNcFbjUcjXSxzvLMJ7F1i4g1x2NjTYulYxdm2ilRfDVgXB/ fwvk3GAtGJooBPwN3dM0DLroqI0+qB57Iuv/rA77ODu0omt1Dxv/O6t8Zadcw9YbCbW0 /h7g==
X-Gm-Message-State: AOPr4FWn6BUTumd1aJYlHGqU5ZABiWVmP9DcwRmEHxk/zPGUEgaO5VApArfZjYTQhsRQ18H5CNZGTpDGkluaTg==
X-Received: by 10.107.173.69 with SMTP id w66mr15570230ioe.182.1461810030631; Wed, 27 Apr 2016 19:20:30 -0700 (PDT)
MIME-Version: 1.0
References: <CABkgnnXKDZvLWxkhFP0R4jW=ZyFwqiqQREFA5BFKH9i4PQCmyA@mail.gmail.com> <CO2PR03MB24076724ECF95BDBB9B83E0F83640@CO2PR03MB2407.namprd03.prod.outlook.com> <CAP8-Fqk8p1HkbJkB60UoE=jeQPa9CKorgc8kqSF7sUMS3FcAfQ@mail.gmail.com> <CABkgnnU_jnSuUX7TC+qy2SwteU1tW9DEAb0uoHmhOcYNQaYuvw@mail.gmail.com> <CO2PR03MB24079FEC854A49F60C66F81583640@CO2PR03MB2407.namprd03.prod.outlook.com> <CAP8-Fq=aufZchVdqCM=+0+7WxGvgoaez0t8J2x=U6_Mz91s+Yg@mail.gmail.com> <CABkgnnW=_3BfHGmr=fVo_gx3dE3bLrPqMFcPvHqWt6cfOJVnaQ@mail.gmail.com> <CO2PR03MB2407C751A0F725A2D8916DEE83650@CO2PR03MB2407.namprd03.prod.outlook.com> <CABkgnnWDp1QiagN3W=xZaUTWy+hScGsV-dkRZzdAHKHCRnTVXA@mail.gmail.com> <CO2PR03MB2407968C0BFB4EB5CC6741EB83650@CO2PR03MB2407.namprd03.prod.outlook.com> <CABkgnnUz8HsNoNVVKTLuZni=s=bPEstgwNE47UaYq+GyZZmy4Q@mail.gmail.com>
In-Reply-To: <CABkgnnUz8HsNoNVVKTLuZni=s=bPEstgwNE47UaYq+GyZZmy4Q@mail.gmail.com>
From: Costin Manolache <costin@gmail.com>
Date: Thu, 28 Apr 2016 02:20:21 +0000
Message-ID: <CAP8-FqmCezOo1M=WbeT_-0Gagp3RKPKiBbHPx-ye_BoXVEV-BA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>, Brian Raymor <Brian.Raymor@microsoft.com>
Content-Type: multipart/alternative; boundary=001a114464f49ae4940531822b0a
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/4FamMqM87Zu4pCILaVF5_X4xekk>
Cc: "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Receipt subscription follow-up
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Apr 2016 02:20:33 -0000

Yes, traffic is not uniform. For example if one network has an outage - a
lot of saved messages will
be delivered when the network recovers, resulting in a spike of receipts,
which may bring down
some AS servers - with cascading effect. And very little they can do about
it.

Also it's hard for PS to load balance without some feedback. Delete would
provide the feedback
and support flow control - at least if it is sent on the same h2
connection. If it's send on a different
connection - who knows where it'll be load balanced, and it gets quite
tricky to correlate.

One option would be to have multiple GET requests on the receipt resource -
each would get
a MAX_CONNECTION promises (receipts), after that the AS would need to make
another GET.  They can also have 2-3 concurrent GET requests if they want,
and manage
the flow by (outstanding GET * max_receipts_per_get).

May still lose some receipts (no confirmation), but ok if spec is clear
that receipts are best
effort.

Costin

On Wed, Apr 27, 2016 at 6:18 PM Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 28 April 2016 at 10:51, Brian Raymor <Brian.Raymor@microsoft.com>
> wrote:
> >
> >
> > Martin Thomson <martin.thomson@gmail.com> wrote:
> >
> >> On 28 April 2016 at 10:29, Brian Raymor <Brian.Raymor@microsoft.com>
> wrote:
> >>> PS can already rate control an AS:
> >
> >> This was about the reverse, having rate control on the delivery of
> >> receipts to the AS.  It's possible that a PS could overwhelm an AS
> >> with these.
> >
> > I understand - my point is that the AS is creating its own problem. It's
> requesting
> > too many push messages with receipts and then failing to scale when
> receiving the
> > receipts from the PS. In this case, the AS needs to be encouraged by the
> PS to slow
> > down its rate of requests that are generating those receipts.
>
> It's not that easy.  An AS could send messages out over several time
> and still be flooded with receipts in a sudden spike.
>