Re: [quicwg/base-drafts] Extension frames (#1473)
ianswett <notifications@github.com> Tue, 26 June 2018 18:45 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 113271310FC for <quic-issues@ietfa.amsl.com>; Tue, 26 Jun 2018 11:45:12 -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 up9JB_hDb7aQ for <quic-issues@ietfa.amsl.com>; Tue, 26 Jun 2018 11:45:09 -0700 (PDT)
Received: from out-7.smtp.github.com (out-7.smtp.github.com [192.30.252.198]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 250EE1310F8 for <quic-issues@ietf.org>; Tue, 26 Jun 2018 11:45:08 -0700 (PDT)
Date: Tue, 26 Jun 2018 11:45:07 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1530038707; bh=+uCU3c80bV8xecL+Jo100kknVkFDDQz80YvyxzLHZ4M=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=cJ/5yW/J8PaclsG/8cSII+HeOJ3R4CPeWHKO6tTLHOLJuayzB+SU6ICUqHPzvW+zv KYmUT5b556NpPyaO8y3+mNNV7TLiSSYtMyiy3m92BAbfBTyc8/dBx7Z+oHCHryyHRJ iCwRaKsd5s89faxlPybw8sIJjy4ezgwtBkQoCwvs=
From: ianswett <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab9b25f1589022ae6a4f5db4ca8f824251f99a0a8a92cf00000001174a4bb392a169ce13fc0fed@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/132154963@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_5b3289b3adf25_b193fd0d58e6f808278c"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: ianswett
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/0Yc8noQ31RhzQOao55e6FAVGDMY>
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:45:13 -0000
ianswett approved this pull request. Looking good. > @@ -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. Agreed, I think we either need to say you MAY close the connection or this is a SHOULD not a MUST > +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 +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 It would be nice to have an example here at some point, but since we don't have any extension frames, I guess that's for the future? -- 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-132154963
- 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