Re: Implicitly opened streams and exposing stream IDs

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Tue, 03 April 2018 14:07 UTC

Return-Path: <dtikhonov@litespeedtech.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 DA4C212E9DA for <quic@ietfa.amsl.com>; Tue, 3 Apr 2018 07:07:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.20150623.gappssmtp.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 be3My8e4vsHm for <quic@ietfa.amsl.com>; Tue, 3 Apr 2018 07:07:17 -0700 (PDT)
Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (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 C9ABF12E891 for <quic@ietf.org>; Tue, 3 Apr 2018 07:07:16 -0700 (PDT)
Received: by mail-qt0-x22f.google.com with SMTP id w23so11186087qtn.3 for <quic@ietf.org>; Tue, 03 Apr 2018 07:07:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gibfM8/71Z6QK+IZo7l1eTi19RDfktXeo9+SZkemhcU=; b=ZBj75tSQYro3JrIju9IcrBMpyj/V+06BZRqlPvFdHSotG+uDopHKGnTdT7wznl6NIj RqpRLpuBI/tR/eR230fRSUTcOspCiAV/wb62sm3luHfthQIRvBI64G0V7A25jssiKI1D WbzfhzUOrZQuxdwe2LFLgL2TxhS00WSMM8hX/lQ2NRsCe2DiiRC5NLpQZK50bClYt5f7 Y1mPAJbE5yzP6YdXssNGoxxDqcaosQ6e4US9Dpse2zi+FaQDitUBAE/CtTlvBHW9GnbD DU38RJUi6Xjuy+Ks8NV/geDD1wwgTSb1O/s2kfmYupnXq3D+f3CCfw7PClnEn8V0S5aa hwcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=gibfM8/71Z6QK+IZo7l1eTi19RDfktXeo9+SZkemhcU=; b=LLByrRM5azjLdmO3VCn1iOt3ja0c5hMXWsuGkEVdiGPxuZJqDLU0YP2XeeOPgwPjIg EUx26KzCO2v8AZuaNCdxARCtsUO7iaHvOoh/SJxcTv24HL2Nr+GJM3YoaB7FbRCCk3oo mrs4OpmZ6e0nEUOfipJgsTr7s203cI9bicTe1GDlKR92aCdmQdPpOjoJNJEoVo582IMp 6qqRhqJeJyYBdMnYlFm4w4x2ArFmpN/1VAHl97qj5a8ER83KsgXig4rvZ7H3mM9RG3+m RNB8T0estpk1U87Wa3NcbFlZ8s1txEi74mRoJrKmksGLdPgCt5XUqFSzGD/XWTVCZSNg sT1g==
X-Gm-Message-State: ALQs6tDx3ZM0i2UB2MEn1E6mOLVk2VI5aMrH2/vL4z5EO+9qOqS+li0u W819BlirXepL86kueINzwqOlPA==
X-Google-Smtp-Source: AIpwx486CPSZm/6CPzaO3+s9SnBZ9V3YByfoNJ90aCgT31SVI9VEISrIFn/8YYlgbfygDS0Ji83uVQ==
X-Received: by 10.237.41.194 with SMTP id o60mr20165117qtd.197.1522764435769; Tue, 03 Apr 2018 07:07:15 -0700 (PDT)
Received: from ubuntu-dmitri (ool-2f1636b6.static.optonline.net. [47.22.54.182]) by smtp.gmail.com with ESMTPSA id h11sm1511968qtp.38.2018.04.03.07.07.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 07:07:15 -0700 (PDT)
Date: Tue, 03 Apr 2018 10:07:13 -0400
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: Nick Banks <nibanks@microsoft.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Marten Seemann <martenseemann@gmail.com>, Lucas Pardue <Lucas.Pardue@bbc.co.uk>, QUIC WG <quic@ietf.org>
Subject: Re: Implicitly opened streams and exposing stream IDs
Message-ID: <20180403140712.GE1695@ubuntu-dmitri>
Mail-Followup-To: Nick Banks <nibanks@microsoft.com>, Martin Thomson <martin.thomson@gmail.com>, Marten Seemann <martenseemann@gmail.com>, Lucas Pardue <Lucas.Pardue@bbc.co.uk>, QUIC WG <quic@ietf.org>
References: <CAOYVs2qp3L-dTdFfBNDQT0Q=nCu+6Ew3gmF=0GMS2vVw1JfWCg@mail.gmail.com> <7CF7F94CB496BF4FAB1676F375F9666A3BB0D858@bgb01xud1012> <CAOYVs2qb+FmrC1GssCNrWvce0d=c_o4kii361vahoraNEZO=Zg@mail.gmail.com> <CABkgnnWBZ0nRxoJB9XdqQ8JF6etAnCEpjT6c=2ZD76XcghismQ@mail.gmail.com> <20180403120717.GA1695@ubuntu-dmitri> <DM5PR2101MB0901FFF8879857FA36D842D4B3A50@DM5PR2101MB0901.namprd21.prod.outlook.com> <20180403135644.GC1695@ubuntu-dmitri> <DM5PR2101MB09018827D00A182D596DB552B3A50@DM5PR2101MB0901.namprd21.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <DM5PR2101MB09018827D00A182D596DB552B3A50@DM5PR2101MB0901.namprd21.prod.outlook.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/00F4xmTcoJeUPrfkw_682Rg471Y>
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: Tue, 03 Apr 2018 14:07:19 -0000

On Tue, Apr 03, 2018 at 02:02:28PM +0000, Nick Banks wrote:
> For implicit opening, you only need to track the following, and you
> know the state of all stream IDs:
>
>  - Set of all currently opened stream objects
>  - Largest stream ID ever opened
> 
> For explicit opening, since the streams below the largest stream ID
> ever opened, may never have been opened, you need to additionally
> track the stream IDs that have been closed (or inversely the set of
> stream IDs that have ever been opened).

Ah yes, that's true -- I remember adding this code now.

The tracking is simpler with implicit stream opening.

  - Dmitri.