[quicwg/base-drafts] per-CID PN space? (#1317)
Kazuho Oku <notifications@github.com> Mon, 23 April 2018 02: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 C33511270AE for <quic-issues@ietfa.amsl.com>; Sun, 22 Apr 2018 19:45:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.01
X-Spam-Level:
X-Spam-Status: No, score=-8.01 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] 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 4ccudt2pfvZQ for <quic-issues@ietfa.amsl.com>; Sun, 22 Apr 2018 19:45:05 -0700 (PDT)
Received: from out-1.smtp.github.com (out-1.smtp.github.com [192.30.252.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C72841243FE for <quic-issues@ietf.org>; Sun, 22 Apr 2018 19:45:04 -0700 (PDT)
Date: Sun, 22 Apr 2018 19:45:03 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1524451503; bh=kX+H0tbJO0vtbXqcWHczcHHzuFg/lpMON+o/asAliD0=; h=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=bAoL+eadIaxxRLiMptnlkk5Nf6ZNmbQy3NVY7g1xWoCge0hQm/DkghT9gxnLMmnbG Bx+tgVKcbNrdM8vBRitjd9svWUAhJIp4N/5Ryjh1vic8XviZqqO4QKq1I5b6ywkUgJ /nyMItFOY/h5UArSIW7/W+bsm9UE/GQTVKi/NS/w=
From: Kazuho Oku <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab6524bbea6b2b493da130ac1749fbaf481f314c9492cf0000000116f50aaf92a169ce12df98aa@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/1317@github.com>
Subject: [quicwg/base-drafts] per-CID PN space? (#1317)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5add48afbe78b_bfa3f8ac0646f8893109b"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: kazuho
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/goeL9GIwWkrIwJj2f2m11CYqyJU>
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: Mon, 23 Apr 2018 02:45:07 -0000
It seems to me that any PNE scheme without an accompanying checksum is fragile to side-channel attacks [\[1\]](https://github.com/quicwg/base-drafts/pull/1079#issuecomment-383438404), assuming that an receiver might drop a packet that contains a PN that it has already seen without decrypting the payload [\[2\]](https://github.com/quicwg/base-drafts/pull/1079#issuecomment-382459179). However I am not sure if we want to accept the overhead of including the checksum of PN in every packet. Leak of PN is a privacy issue because we share a single PN space among multiple CIDs. Considering that, it might be a good idea to consider if we can have different PN space for each CID. As an example, I think that the making following changes to the drafts would be sufficient to have per-CID PN space. * maximum value of the Sequence field in the NEW_CONNECTION_ID frame (hereafter referred to as _CID sequence number_) will be set to UINT32_MAX. Note that CID sequence number is never reused. * CID sequence number of the first CID will be changed from -1 to 0 * every ACK frame will have a CID sequence number field. The field carries the sequence number of the CID to which the acked packets belong * AEAD nonce will be the concatenation of the CID sequence number and the per-CID packet number, which will be 94-bits long. Per RFC 5116, we can reasonably assume that every AEAD scheme will be capable of handing a nonce of that size. The pros of the approach are: * PN leak is no longer a privacy concern. It becomes purely an ossification issue that can be resolved separately. * RTT can be measured separately for each CID The primary concern will be that the implementations will be required to record PNs and send ACKs for each CID rather than for the entire connection. If that is a deal-blocker, we can consider retaining the current ACK format by changing the proposed approach so that the concatenation of CID sequence number and the per-CID PN would fit into 62-bits (e.g., 16-bit CID sequence number and 46-bit PN). On the sender side, we can continue living with just one loss recovery / congestion control device per connection. This is because in QUIC v1 a sender never sends retransmittable frames through under multiple CIDs at the same time. [1] https://github.com/quicwg/base-drafts/pull/1079#issuecomment-383438404 [2] https://github.com/quicwg/base-drafts/pull/1079#issuecomment-382459179 -- 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/1317
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- [quicwg/base-drafts] per-CID PN space? (#1317) Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space? (#1317) MikkelFJ
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… ianswett
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Antoine Delignat-Lavaud
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Antoine Delignat-Lavaud
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… janaiyengar
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Christian Huitema
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Martin Thomson
- Re: [quicwg/base-drafts] per-CID PN space to avoi… ianswett
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Martin Thomson
- Re: [quicwg/base-drafts] per-CID PN space to avoi… MikkelFJ
- Re: [quicwg/base-drafts] per-CID PN space to avoi… Kazuho Oku
- Re: [quicwg/base-drafts] per-CID PN space to avoi… janaiyengar