Re: [quicwg/base-drafts] Extension frames (#1473)
Mike Bishop <notifications@github.com> Tue, 26 June 2018 18:21 UTC
Return-Path: <noreply@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 E116A1310F6 for <quic-issues@ietfa.amsl.com>; Tue, 26 Jun 2018 11:21:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.009
X-Spam-Level:
X-Spam-Status: No, score=-8.009 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, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, 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 39mepllMV9Ti for <quic-issues@ietfa.amsl.com>; Tue, 26 Jun 2018 11:21:14 -0700 (PDT)
Received: from out-5.smtp.github.com (out-5.smtp.github.com [192.30.252.196]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6FD4F1310F4 for <quic-issues@ietf.org>; Tue, 26 Jun 2018 11:21:14 -0700 (PDT)
Date: Tue, 26 Jun 2018 11:21:13 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1530037273; bh=M9ZOLX/mskuHUsM26m0MDuQEM9+jfBoXUQkeRJiWhAo=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=ICHQcBVEQMtemvTCBM9ffHUzcw/janf6VsbowXfdGtc0dheZhlwU5zrjySdszN3Q7 0svDXlraDO7inurO3fhVcxJSFd3PL+2qIF10Vf6g4QZpzIcnMwoMtjHCFbEMWXto/N gNhLeb4rOz4enYQJ3EwluBbONBysIGBMnl0fzNPI=
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abedd5dcf268e330eea4b3c8e9032857dd76df0afd92cf00000001174a461992a169ce13fc0fed@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1473/review/132145266@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1473@github.com>
References: <quicwg/base-drafts/pull/1473@github.com>
Subject: Re: [quicwg/base-drafts] Extension frames (#1473)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5b328419c2cc7_16613f95c1100f7c107064"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: MikeBishop
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/2xwU9LTobCWtJrghRty_zJipMbw>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.26
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: Tue, 26 Jun 2018 18:21:17 -0000
MikeBishop approved this pull request. > @@ -921,6 +924,30 @@ explained in more detail as they are referenced later in the document. All QUIC frames are idempotent. That is, a valid frame does not cause undesirable side effects or errors when received more than once. +The Frame Type field uses a variable length integer encoding (see +{{integer-encoding}}) with one exception. To ensure simple and efficient +implementations of frame parsing, a frame type MUST use the shortest possible +encoding. Though a two-, four- or eight-octet encoding of the frame types +defined in this document is possible, the Frame Type field for these frames are +encoded on a single octet. For instance, though 0x4007 is a legitimate +two-octet encoding for a variable-length integer with a value of 7, PING frames +are always encoded as a single octet with the value 0x07. And what am I required to do if I encounter a 2+ byte encoding of 7? > @@ -921,6 +924,30 @@ explained in more detail as they are referenced later in the document. All QUIC frames are idempotent. That is, a valid frame does not cause undesirable side effects or errors when received more than once. +The Frame Type field uses a variable length integer encoding (see +{{integer-encoding}}) with one exception. To ensure simple and efficient +implementations of frame parsing, a frame type MUST use the shortest possible +encoding. Though a two-, four- or eight-octet encoding of the frame types +defined in this document is possible, the Frame Type field for these frames are +encoded on a single octet. For instance, though 0x4007 is a legitimate +two-octet encoding for a variable-length integer with a value of 7, PING frames +are always encoded as a single octet with the value 0x07. + +## Extension Frames + +QUIC frames do not use a self-describing encoding. An endpoint therefore needs +to understand the syntax of all frame before it can successfully process a all frames / each frame > +defined in this document is possible, the Frame Type field for these frames are +encoded on a single octet. For instance, though 0x4007 is a legitimate +two-octet encoding for a variable-length integer with a value of 7, PING frames +are always encoded as a single octet with the value 0x07. + +## Extension Frames + +QUIC frames do not use a self-describing encoding. An endpoint therefore needs +to understand the syntax of all frame before it can successfully process a +packet. This allows for efficient encoding of frames, but it means that an +endpoint cannot send a frame of a type that is unknown to its peer. + +An extension to QUIC that wishes to use a new type of frame MUST first ensure +that a peer is able to understand the frame. An endpoint can use a transport +parameter to signal its willingness to receive a new type of frame, or even +multiple types of frame with the one transport parameter. ...receive one or more extension frame types. -- 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/pull/1473#pullrequestreview-132145266
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) janaiyengar
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) ianswett
- Re: [quicwg/base-drafts] Extension frames (#1473) Mike Bishop
- Re: [quicwg/base-drafts] Extension frames (#1473) ianswett
- Re: [quicwg/base-drafts] Extension frames (#1473) Mike Bishop
- Re: [quicwg/base-drafts] Extension frames (#1473) MikkelFJ
- Re: [quicwg/base-drafts] Extension frames (#1473) Martin Thomson
- Re: [quicwg/base-drafts] Extension frames (#1473) MikkelFJ
- [quicwg/base-drafts] Extension frames (#1473) Martin Thomson