Re: stateless reset in response to packet that is 43 bytes

Ian Swett <ianswett@google.com> Mon, 01 June 2020 04:54 UTC

Return-Path: <ianswett@google.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 9E2633A0CC3 for <quic@ietfa.amsl.com>; Sun, 31 May 2020 21:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 z3H5Lx1vVF9v for <quic@ietfa.amsl.com>; Sun, 31 May 2020 21:54:25 -0700 (PDT)
Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 028873A0CC0 for <quic@ietf.org>; Sun, 31 May 2020 21:54:25 -0700 (PDT)
Received: by mail-wr1-x430.google.com with SMTP id t18so10083009wru.6 for <quic@ietf.org>; Sun, 31 May 2020 21:54:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eKb7SFBpfHV3sk59Uyr+c3jC7q84Y46OR+vs/tsmbfY=; b=FowzJVzzrp/U4P8tPZEh7zLsPXpG50zLk7A+c82oZxOzbZiF2f29BTbjr3bcrNO4EE CEdpv284yK9rWs1NiXBbxx/rEeTWYGXks3KhPFMC8QUbvhImSGk3cl/UVLUh90sMztKw n4wyrGinXGJpgOSkvdulWUgsIvXgM/qVkivEMs+r/N9iNSuhII5njLyYvHlcm7vTfQVp Ozp8/7m3Fs4eqcTR7UdHDnrQVFDCY3gHiGBUWagY45xUAReoW+8uEQQCu16chcxUWd2O c56r7ccoVqkE+F0dR1MQDAw4MXZVsiOzD263cNlJf3/phSmYM0GBmthH/ba+kb6cwBVx AJOA==
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=eKb7SFBpfHV3sk59Uyr+c3jC7q84Y46OR+vs/tsmbfY=; b=pkVzbRNy76co0cHGcXAKJw1HaWB/k8BmWcAE3uH0NpTpgCmOCLOHtgxGiX+HUmz79F 3fZUAmkmObW2muaYQDq5NgZ/C28cmCAxmR6OYN4js3qTQespCHZ0FWSyl94zdagBuXHz /uItFG4sMulz/lavlslvNLJ8l/Pf0Pt93JQVcq89D9VjOJPB6cVIMzl0m6Z7VxhTOvbG QRObetJW7oYmJ28CSNjrm4O7OVJurWpf8bOQD96B31Y+hobD50jr/hdcvy9S5hmhfnec sqe9/xLmUOkEohnBFPQKbTMKpOlDijjVDIkc+D6AtyJ45DtIxC5c4+xgwgX5rgnH5bKy hJuA==
X-Gm-Message-State: AOAM533CacQfyQ40jN8Bma6T2D98sxYGaKDlE16sMG4LEhn9E1uguHfj 2D9OJkB+ZImcLACtmtT67cTh/bqxo7Ia51bnR4mFRj6i
X-Google-Smtp-Source: ABdhPJwZv5SQlvqk1sGPhxfbIcq9yUTLYDucBrqBpaNzavjmgUNomXojlhnSTlO/JbeUJB1BVNu1yQGz4gJ2gKtq/IA=
X-Received: by 2002:adf:c44e:: with SMTP id a14mr18830281wrg.50.1590987263304; Sun, 31 May 2020 21:54:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAG9+TpZujQdj2OwJjnVOGQS942--wTuRN7n+MsHTjxYUhNtLdQ@mail.gmail.com> <755286bf-348d-4272-8905-ab71c8dd0cc0@www.fastmail.com>
In-Reply-To: <755286bf-348d-4272-8905-ab71c8dd0cc0@www.fastmail.com>
From: Ian Swett <ianswett@google.com>
Date: Mon, 01 Jun 2020 00:54:11 -0400
Message-ID: <CAKcm_gNF3rLJ8_eAOTwukhW+uYM1oTSzjA3a3Xm2bW7fYiNjNg@mail.gmail.com>
Subject: Re: stateless reset in response to packet that is 43 bytes
To: Martin Thomson <mt@lowentropy.net>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ac33a805a6fe96a7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/x3C_uia6QkRGpTo3_GBNUqLXAiw>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 01 Jun 2020 04:54:27 -0000

I believe we assumed 1 byte of payload as well, so I believe 43 is correct.

On Sun, May 31, 2020 at 9:34 PM Martin Thomson <mt@lowentropy.net> wrote:

> The packet with a short header that has the lowest length, but a
> maximum-length connection ID is 1 (type) + 20 (destination connection ID) +
> 4 (packet number + data) + 16 (aead expansion) = 41 bytes.
>
> Hmm, maybe this should be 42 instead of 43.  I always get this bit wrong
> though.
>
> On Mon, Jun 1, 2020, at 02:55, Jiuhai Zhang wrote:
> > https://tools.ietf.org/html/draft-ietf-quic-transport-27#section-10.4
> > An endpoint that sends a stateless reset in response to
> >    packet that is 43 bytes or less in length SHOULD send a stateless
> >    reset that is one byte shorter than the packet it responds to.
> > Could someone explain why it is 43 bytes? thks
>
>