Re: Unidirectional streams PR

Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com> Thu, 29 June 2017 19:02 UTC

Return-Path: <mikkelfj@gmail.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBE1B129ABD for <quic@ietfa.amsl.com>; Thu, 29 Jun 2017 12:02:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.697
X-Spam-Level:
X-Spam-Status: No, score=-2.697 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, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=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 pjmGey9sXKnc for <quic@ietfa.amsl.com>; Thu, 29 Jun 2017 12:02:24 -0700 (PDT)
Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (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 7C839129BA0 for <quic@ietf.org>; Thu, 29 Jun 2017 12:02:11 -0700 (PDT)
Received: by mail-vk0-x22c.google.com with SMTP id r125so55393730vkf.1 for <quic@ietf.org>; Thu, 29 Jun 2017 12:02:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=iSPNobEFVzO7wG2omB7i+0ZUeakOlWXjbTGp/ncYiBk=; b=bDmAFfa+nkA6FIvgF0p/2KxDm7QepYiM1qBY5IoABK6AiZr6RfydK9/Xj/tZpI0/Jc 7CiXCI38sy/YvHuNex31evR7hPRSWmgqcPd3T4ZCXlud7Dr+m7rJ0OwssnOT4FdhKRI+ C8Q8kH3VR4a4ZgZl7r7OxUGMXxmKugPF/FhRFIibbmxm/xEnpM7YkDKCkMFSaSqbWcJi WyTejiJL+o2xK69j+U2pv7WqxDl7Xt36VmqXppewHFkNqkAmQ+fUGbwgGR4bYbrrbttq DENSM3Xhb2z+ec4PPmu0Cb1gm9KS+XVSHX76l3yaFSZ/qguRXAN1ygJdMeLJOw1ANjMK 5PLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=iSPNobEFVzO7wG2omB7i+0ZUeakOlWXjbTGp/ncYiBk=; b=p6rs29oeeX7NqukUs4vONouHEJGntHpHS7GSnq7Z7VNyQIwTSQU1SZTQOxYNGFC4rA v/Cla4h34qqgR+QhQXnEB+byE2/GtAHaYRZ9EMs8qPt/IeA0X+vfAWQw2OE/wg5VNP5v t85w0JlmC7rUguUQPXdOIGgw9kKkyxjZ//Og87mIiBNl6ZRu4x5OkxhN9J2p5DVnkEQ/ o4b4O/sLGSCpBcfoortsa1u7CNWEwQBjR6LbcPPhuIUHrC4LOYtdao/b2SYcrzs4kNcP IoD0dWlR9IGdz36Fstw7Bqe17wmu6cgc9zPC4Smd4yPrH2NQE9sFfRNYNIBDi9BeOht3 SDUw==
X-Gm-Message-State: AKS2vOyjq3U+0OQkmZ7KIRgnl4hphGphaeOQJlF2pm0zE6hymRuYMF+l cRMFQLGbB9cyccUiw4msAo57WeKhgo7U
X-Received: by 10.31.69.82 with SMTP id s79mr10206535vka.118.1498762930359; Thu, 29 Jun 2017 12:02:10 -0700 (PDT)
Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Thu, 29 Jun 2017 15:02:09 -0400
From: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>
In-Reply-To: <176a76c7-bdcd-9007-1f26-e436f61076f3@huitema.net>
References: <CAN1APdc_ckZu39ZZTETv04iZieogoE_NQCBR-n0jHrC-9dM7Aw@mail.gmail.com> <5d69489d-8f46-ebbe-4e5c-fa6c02ffd8dd@huitema.net> <CAF4GZgBm7525i2GxiN-Pv66g0WqbDH==fRXN27=7ursNA70w1Q@mail.gmail.com> <20170628124221.GA15608@ubuntu-dmitri> <CAN1APdc3YO4-FEc6C--PzFGxzQiAUeBZ96HkjtjS1RR0qigrzw@mail.gmail.com> <CAE=ybzNtSZx9-bj9-n-ieLMB=YvJCjCExugvA3_JPVrdEEqK9A@mail.gmail.com> <DB5PR07MB123748F2AB7374DAC0CC9E1484DD0@DB5PR07MB1237.eurprd07.prod.outlook.com> <MWHPR21MB0141BD23011EB26F882C864787DD0@MWHPR21MB0141.namprd21.prod.outlook.com> <CABkgnnXEq9-jxedU_Rmi4XQ+t0SNUOAMbyWXcnhyLKz+OzP2CQ@mail.gmail.com> <2240c2a68910453e97fc50d42e8a1d4f@usma1ex-dag1mb5.msg.corp.akamai.com> <CAKcm_gMb9PkBKhTRF3ue2KGgwHgKN8rsanD8rqqr_wUFJ3GNZQ@mail.gmail.com> <83e22460-8864-e6f7-546a-d0e77e4f8ae8@huitema.net> <MWHPR21MB0141DAB51088DE57504B12F087D20@MWHPR21MB0141.namprd21.prod.outlook.com> <176a76c7-bdcd-9007-1f26-e436f61076f3@huitema.net>
X-Mailer: Airmail (420)
MIME-Version: 1.0
Date: Thu, 29 Jun 2017 15:02:09 -0400
Message-ID: <CAN1APdcMn8ik_UFqBx7T7xPSrBpdYOD3oQgC_XRrdrz2ikFDFw@mail.gmail.com>
Subject: Re: Unidirectional streams PR
To: "quic@ietf.org" <quic@ietf.org>, Christian Huitema <huitema@huitema.net>, Mike Bishop <michael.bishop@microsoft.com>
Content-Type: multipart/alternative; boundary="001a114db0bc11132405531df056"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/j86t73ho1K1PkAM6t1n3OAJhNoo>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jun 2017 19:02:26 -0000

On 29 June 2017 at 20.40.50, Christian Huitema (huitema@huitema.net) wrote:

I am looking at the "mixed" scenario, in which the client would open an
unidirectional stream with an associated "stream N" in the other direction.
Will we say that doing so automatically pushes the server's maximum stream
ID to some value greater than N?

I believe the streams need to operate independently: having endpoint A open
a unidirectional stream A/N that can be responded to by endpoint B
necessarily requires that B has granted A a limit of at least the value
A/N. If the stream A/N permits association by one or more streams B/M
initiated by B, each of those streams necessarily must be at or below the
limit granted by A but only once those streams are in fact opened. Endpoint
A might never grant sufficient streams to enable B to respond. The
identifiers B/M chosen by B are unknown to A.

Note that there is a problem with enforcing how many streams that can be
associated with A/N because A/N might be closed and gone. Keeping state is
problematic. On the other hand it is trivial to reject associations with
streams that have not yet been opened, especially if streams are opened in
strict order. Implicit opening of lower valued streams will not work, and
is not needed.