Re: Stream0 Proposal: CRYPTO_HS frame encoding (Re: Stream0 Design Team Proposal)

Martin Thomson <martin.thomson@gmail.com> Thu, 24 May 2018 00:41 UTC

Return-Path: <martin.thomson@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 52E7312D87A for <quic@ietfa.amsl.com>; Wed, 23 May 2018 17:41:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable 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 aBqcUrAtpkC7 for <quic@ietfa.amsl.com>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
Received: from mail-ot0-x22c.google.com (mail-ot0-x22c.google.com [IPv6:2607:f8b0:4003:c0f::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 2253212751F for <quic@ietf.org>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
Received: by mail-ot0-x22c.google.com with SMTP id 77-v6so27430880otd.4 for <quic@ietf.org>; Wed, 23 May 2018 17:41:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ajt71+OAhZ8Wf0hq+AM9VPVKkdk9QoG/pvPT1A9Xqto=; b=oi51fMWwS6c3jMB58VW/aArcyeYK8OPJH3EMagN/oWNy85AgHDQwEep9iEpHjqJ8qH 5MhbPj48xiNJoRRdjASuMuyV6Bhs2MKGjG8OaClaOTasbZtTagpZOh2sGQh7KyiB7tBd IdaFSIYb2WT6WIxlZNv3tHNSN2GvPvp0k3Mg99AI40EBqAQwB+EB+WKz1gtljYElDsTe T7s3srh1WVULa1fjq/fMG+fZPTtBMuT9Ld75dg+9Z17XeqnAzjPtFO6F2ajm4xdnXU+V F7f20DdT8A7EzIJOIMnpxnOEawKqYmu+/2sAwy/mYVQUwzHIFd0GaFvi8amYM4RAmfw4 H21g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ajt71+OAhZ8Wf0hq+AM9VPVKkdk9QoG/pvPT1A9Xqto=; b=XwITRPPfUNmq16PxW0wesfhfqdKgrD2yuP5zUifk8v323jJ49gGnZ0Rwks+MvOF/rB TsvD3C0JhGSN8RMxPiuogDLGEhVK092SKxPJHscO8U6dAVRI2D3zNh/6ioIxaddAIThy xvfIxUlmv+ObPXSv5eY3Ay+UwKx1BrH6fu5PYyn9l0oQFbeHBCb4JXEJTeI7U2LF6MQl +wk1n3ZxEkItYNO54Tb44uKNiOUrzWTW7AOZVcYnQtwlbF+znK0xOP5YLkzjFr0V3ra3 v0DtpBmWJEIih31vuegyL36lZMLbLRNWFfCRZ6XBXFIeGBUEyoow2+8VSs6uQqI9tjGz 6/jw==
X-Gm-Message-State: ALKqPwfOJNDvg+CCR1E2gx7+rxBGLzeBlQmbJLnxjb493XMgPrSoiolw H6kLqPx0rM8zKdGoLeFtss4frj2+fyU1EkSbANclHA==
X-Google-Smtp-Source: AB8JxZqruk+P3CdsnecDwgWAV8UaZhgfLJmq9EgkltT81rtgxBltRjeJCMei2VtAWvhs2UKatC6V7j/plgKzJajtZbk=
X-Received: by 2002:a9d:3ea5:: with SMTP id b34-v6mr3030705otc.283.1527122500486; Wed, 23 May 2018 17:41:40 -0700 (PDT)
MIME-Version: 1.0
References: <CANatvzyWK3OxTYx6EFRQG_tJ0tYmyvAd9-2HH2=cDVRhuUd2bQ@mail.gmail.com>
In-Reply-To: <CANatvzyWK3OxTYx6EFRQG_tJ0tYmyvAd9-2HH2=cDVRhuUd2bQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 24 May 2018 10:41:30 +1000
Message-ID: <CABkgnnUe8yd5s+kyPvwXQ6RoSdFXbaL2P4j0_fkL_reVe7s+_Q@mail.gmail.com>
Subject: Re: Stream0 Proposal: CRYPTO_HS frame encoding (Re: Stream0 Design Team Proposal)
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: Jana Iyengar <jri.ietf@gmail.com>, ekr@mozilla.com, QUIC WG <quic@ietf.org>, Ian Swett <ianswett=40google.com@dmarc.ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/Bb7ortyocRPUb-ojgn1k2F8GqTg>
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, 24 May 2018 00:41:43 -0000

On Thu, May 24, 2018 at 10:06 AM Kazuho Oku <kazuhooku@gmail.com> wrote:
> 0x10 - 0x17: STREAM frame
> 0x18: CRYPTO_HS frame
...
> I think that is workable, although it makes me sad because we will
> have more conditional branches.

Yeah.  We have an extremely limited space here.  And while Jana is right
that we haven't used much yet, we're only just starting.  As for
conditionals.  Maybe.  One way to implement this is a switch statement, and
those might not suffer as badly when you consider that you also have to
dispatch to other frame handlers in the same piece of code.