[quicwg/base-drafts] Implicitly Acknowledging CRYTPO Data (#1741)
Nick Banks <notifications@github.com> Wed, 12 September 2018 19:57 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 773E1130E16 for <quic-issues@ietfa.amsl.com>; Wed, 12 Sep 2018 12:57:22 -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 JxC1ig2wBkMl for <quic-issues@ietfa.amsl.com>; Wed, 12 Sep 2018 12:57:20 -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 D982D130EBB for <quic-issues@ietf.org>; Wed, 12 Sep 2018 12:57:19 -0700 (PDT)
Date: Wed, 12 Sep 2018 12:57:18 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1536782238; bh=l9W7Gg57FU6iNgnFJ0/e8+slukeQUGUQRzq7BUs83u0=; h=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=O1QNCsgK4sSHQs0Zi5WrJzWGYsfu+e0Y/WMTp8GjOUPqIlDzm59ClUVzRuaRBMkhX Jv56c+wZpmK/m25WRHjM7FU/Ar7whj0O8vcjquM6S8LjYPN+kxC3dW9xni+ve09juE jsJFYoct4syYSBJLSC7/y0mlcVvWDPY8XWSJ22tg=
From: Nick Banks <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab10183d8acfb43d094666a9a2d830ec9a7a13394292cf0000000117b1319e92a169ce156f81ba@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/1741@github.com>
Subject: [quicwg/base-drafts] Implicitly Acknowledging CRYTPO Data (#1741)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5b996f9ed52da_4e023f81c90d45b4105216"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: nibanks
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/vdqPSZH8GrlM-jYLGr7RF5G8fuE>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 12 Sep 2018 19:57:23 -0000
I recently hit an assert in my crypto TX path, and after looking at it for a while I figured out it was because it was trying to retransmit data with an older encryption key than the one currently configured for sending. I was starting to look into how to fix my code to allow this case, but then I was thinking more. Should I? The actual packets exchanged were (from the server PoV): ``` [quic][RX][0] LH Ver:0xe0000ff DestCID:78e0d957a1d861c9 SrcCID:5d9b053011bce8f1 Type:I (Token 0 bytes) (Payload 1226 bytes) (PktNum 1 bytes) [quic][RX][0] CRYPTO Offset:0 Len:291 [quic][RX][0] PADDING Len:914 [quic][TX][0] LH Ver:0xe0000ff DestCID:5d9b053011bce8f1 SrcCID:78444bb1394fce67 Type:I (Token 0 bytes) (Payload 182 bytes) (PktNum 1 bytes) [quic][TX][0] ACK Largest:0 Delay:856 [quic][TX][0] 0 [quic][TX][0] CRYPTO Offset:0 Len:155 [quic][TX][1] LH Ver:0xe0000ff DestCID:5d9b053011bce8f1 SrcCID:78444bb1394fce67 Type:HS (Payload 1020 bytes) (PktNum 1 bytes) [quic][TX][1] CRYPTO Offset:0 Len:999 [quic][TX][2] LH Ver:0xe0000ff DestCID:5d9b053011bce8f1 SrcCID:78444bb1394fce67 Type:HS (Payload 1228 bytes) (PktNum 1 bytes) [quic][TX][2] CRYPTO Offset:999 Len:1206 [quic][TX][3] LH Ver:0xe0000ff DestCID:5d9b053011bce8f1 SrcCID:78444bb1394fce67 Type:HS (Payload 1228 bytes) (PktNum 1 bytes) [quic][TX][3] CRYPTO Offset:2205 Len:1206 [quic][TX][4] LH Ver:0xe0000ff DestCID:5d9b053011bce8f1 SrcCID:78444bb1394fce67 Type:HS (Payload 1209 bytes) (PktNum 1 bytes) [quic][TX][4] CRYPTO Offset:3411 Len:1187 [quic][RX][0] LH Ver:0xe0000ff DestCID:78444bb1394fce67 SrcCID:5d9b053011bce8f1 Type:HS (Payload 61 bytes) (PktNum 1 bytes) [quic][RX][0] CRYPTO Offset:0 Len:36 [quic][RX][0] ACK Largest:4 Delay:0 [quic][RX][0] 1 - 4 [quic][TX][0] FACK 4 [quic][TX][0] retransmitting ``` So either the ACK for my server's Initial packet wasn't sent yet, was sent after the Handshake packet or was lost. Either way, I end up deciding it was lost and my generic packet loss detection/recovery logic kicks in and decided the data in packet 0 should be retransmitted. The thing is, at the crypto (and TLS) layers I know I have received handshake data (all of it actually) and I am ready to send out my NST in 1-RTT. In order to get this far in the handshake, the peer MUST have received my Initial packet, so it would seem pointless to actually retransmit it. So should I? -- 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/1741
- [quicwg/base-drafts] Implicitly Acknowledging CRY… Nick Banks
- Re: [quicwg/base-drafts] Implicitly Acknowledging… MikkelFJ
- Re: [quicwg/base-drafts] Implicitly Acknowledging… Nick Banks
- Re: [quicwg/base-drafts] Implicitly Acknowledging… MikkelFJ
- Re: [quicwg/base-drafts] Implicitly Acknowledging… MikkelFJ
- Re: [quicwg/base-drafts] Implicitly Acknowledging… Rui Paulo
- Re: [quicwg/base-drafts] Implicitly Acknowledging… Martin Thomson
- Re: [quicwg/base-drafts] Implicitly Acknowledging… Martin Thomson
- Re: [quicwg/base-drafts] Implicitly Acknowledging… Martin Thomson