Re: [quicwg/base-drafts] Stream creation order (#634)

Dmitri Tikhonov <notifications@github.com> Thu, 28 September 2017 02:11 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BA2A7135258 for <quic-issues@ietfa.amsl.com>; Wed, 27 Sep 2017 19:11:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.019
X-Spam-Level:
X-Spam-Status: No, score=-2.019 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 wTRg8Ay8REuG for <quic-issues@ietfa.amsl.com>; Wed, 27 Sep 2017 19:11:51 -0700 (PDT)
Received: from o9.sgmail.github.com (o9.sgmail.github.com [167.89.101.2]) (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 759DF135257 for <quic-issues@ietf.org>; Wed, 27 Sep 2017 19:11:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=Bwa59QJDHs8EZvVP37Bh4kkTXLw=; b=RSv6rqyh5KsEnAgw ax80Z/4o4tUChQO058p7EZWKjJ5rMZVNs/QFnPiubF1GlcjTk2Wlk2lwNFxveVVo IjQGnRLaVdahGckiAkghps1ZDsWxCHbWq7vipQ7+GHchixrgciHCCE5cmbsfgAzD kNBWeAMe3EQp1Kbo6RO+HzG1kGQ=
Received: by filter1100p1mdw1.sendgrid.net with SMTP id filter1100p1mdw1-11057-59CC5A65-25 2017-09-28 02:11:49.686466833 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0010p1iad1.sendgrid.net (SG) with ESMTP id KJpqJrPFTMK7Ua9v7MEeHg for <quic-issues@ietf.org>; Thu, 28 Sep 2017 02:11:49.678 +0000 (UTC)
Date: Thu, 28 Sep 2017 02:11:49 +0000
From: Dmitri Tikhonov <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab056e06aafdeaae643171c65052cdd1943b6730cf92cf0000000115e41c6592a169ce0e164e9f@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/634/332707015@github.com>
In-Reply-To: <quicwg/base-drafts/issues/634@github.com>
References: <quicwg/base-drafts/issues/634@github.com>
Subject: Re: [quicwg/base-drafts] Stream creation order (#634)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59cc5a65843a6_6e03fd785cfaf3492960"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: dtikhonov
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak35PenLnF7OhY5765DKTvv3ojAsEGfk+GQ+6i VJRtS9DZWhczc0cQ/kQHPmS8U3UYNMNrVbgpZqpTanu7R33CtbRUBlhiRypy/WCORIV8zhL7+ahQeW AbqUqy6GD5TIn+kzo5wW2WJMFv3Jefz3kgIOTIzEHwzmeR1Kystbf/RGaCF968LnehkFKznBel/YUv Y=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/iWInS7QycBjwN4laTG_evF7WRvM>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Sep 2017 02:11:53 -0000

@MikeBishop, I see -- thank you for the explanation.  @martinthomson must have been also alluding to this 
when he wrote that "open streams need a bunch of state."  The draft says that

> opening a stream causes all lower-numbered streams in the same direction to become open.

Now I disagree with arguments for mandating stream creation order on _two_ counts -- implementation and protocol specification.

***I. Implementation.***

The way to track open streams that you describe is suboptimal.  The assertion that "open streams need a bunch of state" is not true: this is because stream transition from idle to open states can be treated in a purely conceptual fashion.  Real stream state -- that is, some data structures and linkages -- does not have to be allocated until the first frame received for that stream.  This is how we chose to implement it at LiteSpeed, guided by a sort of rule of thumb "delay doing work until you have to."

As a side note, doing a large chunk of work to allocate stream resources is not always timely: consider the case when a connection is closed shortly after this chunk of work is performed.  This is more likely to occur than not in this situation, as a large hole in the sequence of incoming stream IDs may be a symptom of network issues.

***II. Protocol Specification***

A protocol should strive to be simpler rather than more complex.  If something is not required by the protocol itself -- which the order of stream creation is not -- it does not belong in the specification.  The protocol specification should not be a place where the way to implement something is mandated.  This may prevent a clever implementer from employing some optimization mechanism that the protocol authors had not thought about.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/issues/634#issuecomment-332707015