Re: Potential design changes from IETF last call
Martin Duke <martin.h.duke@gmail.com> Tue, 10 November 2020 20:10 UTC
Return-Path: <martin.h.duke@gmail.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 5651A3A0EF4 for <quic@ietfa.amsl.com>; Tue, 10 Nov 2020 12:10:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 rv7l9DeWZeNL for <quic@ietfa.amsl.com>; Tue, 10 Nov 2020 12:10:35 -0800 (PST)
Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 933353A0EF0 for <quic@ietf.org>; Tue, 10 Nov 2020 12:10:35 -0800 (PST)
Received: by mail-il1-x130.google.com with SMTP id k1so13401952ilc.10 for <quic@ietf.org>; Tue, 10 Nov 2020 12:10:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lZr34lL3Jn8tijdm9fhBThd92CwHJxVhqw3XVLkVXyU=; b=h2WcmyReyoqHVv1pFdEwrjZLQOiv2ncTOiPCS9KnpvHTn/3s6L61lNaiHuePG7yjX9 7JbvCTlaamngHdx/k9G+x7A/V11KcdPceH6wCugCz/ckAGQqtfH8BFjR4rjLJ4njN9rQ 6YeLG0bKA5ufUItqvyVC1HILmyg/8YZcv21m+Y47iAPDKW2KhvX/3jw1HatxBgDArk0y kWUt8eBozIhDATzKgjelb+CTmE68uTOPi/evLAizkCZTnR8eOGzlbs3fqCg2tW9CLFMN GW3wUXiCsJB/L7YsQqZIDeDCxE9CGEsfHyxO6DJvnCK1EE9h4JYlExiJUYZWqisgDXuo FVJw==
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=lZr34lL3Jn8tijdm9fhBThd92CwHJxVhqw3XVLkVXyU=; b=eJcM5AO2VTtTQx++Pl99wa4O1XtZ93ymHMnn5+UCf7dZovje3vmOYqnl5CvHlcmjG1 AEIJ/ror2aqUiuHGN6DTvee1Vp8FvJudvH4n/eMRihHt4Y5pa4xvnac0fBCTHFTZM2LA ZVJCGSQlD0WkVVPPQvOjeUL0azV0mnK8i7Eot2jtdx50gbl1OOQDy99XUqNqwL4mMHUq LKLNOiwx/xJl5erY1Ee9gbmXyd3+jmOSFnOLxaCiPdZtNr9R2gWHh+Q1uWqnbw/RBQd4 WBv0zpPercvGDm3eOvAwF4UASBQYtI4oOKzIJbAY7LPHOgkFulob/mx33uVRuF0TiZ0S lROA==
X-Gm-Message-State: AOAM531gVOySbiI5UrEtUcXjCiu7RbW9euC5EBsziySvpN1rBpXiEItp 0Omo1eADrPr+t4Bv8WXuAAD89kg5Vw/H/0iXhF5c2M87Ynz9ug==
X-Google-Smtp-Source: ABdhPJwDavPf8uCd+Ser/0sprNZtd3Xrh7hDJWTEN2I22AZYDofdJAZXmUjZOr5yy7w94zXFPN9Pg0JsnH9V7l1T3yc=
X-Received: by 2002:a05:6e02:d48:: with SMTP id h8mr15893676ilj.249.1605039034791; Tue, 10 Nov 2020 12:10:34 -0800 (PST)
MIME-Version: 1.0
References: <99dc1b78-85eb-46e0-ba0b-83e1517149a4@www.fastmail.com>
In-Reply-To: <99dc1b78-85eb-46e0-ba0b-83e1517149a4@www.fastmail.com>
From: Martin Duke <martin.h.duke@gmail.com>
Date: Tue, 10 Nov 2020 12:10:24 -0800
Message-ID: <CAM4esxToCxV_ewwr6kAzxC7TErLyMhLonX8jhcvXrbu0HPTmKw@mail.gmail.com>
Subject: Re: Potential design changes from IETF last call
To: Martin Thomson <mt@lowentropy.net>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000084fe3b05b3c645c2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/8DHUWcegReSEDYt5qXHBMGXtxUk>
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: Tue, 10 Nov 2020 20:10:37 -0000
I've already said my bit in github, but I think there are non-obvious performance optimizations: that clients should send some full-size datagrams after a migration or after a long idle period (i.e. a possible NAT rebinding) to avoid getting limited by anti-amplification measures. I originally proposed normative text, but given the objections, a non-normative sentence would be fine. For example "After an address migration, or long idle period (which may have triggered a NAT rebinding), a client might send more full-size datagrams than strictly necessary to avoid being limited by server anti-amplification measures" or something to that effect. On Tue, Nov 3, 2020 at 6:45 PM Martin Thomson <mt@lowentropy.net> wrote: > https://github.com/quicwg/base-drafts/issues/4257 is the one issue raised > during last call that seems to be headed toward normative changes that will > affect implementations. I wanted to bring that here to ensure that people > are aware of the problem, the proposal, and the discussion. > > The problem is that in the latest draft (-32) a spoofed migration by an > attacker can be used for an amplification attack. It's not a huge > amplification factor (~20x is estimated), but it seems like the general > view is that it is worth preventing. > > This was highlighted when we required that path validation uses packets > padded to at least 1200 bytes to validate the path MTU. That change made > the amplification factor more reliably large, but the potential for > amplification was already a problem. > > The proposed solution to this is to ensure that endpoints (servers > specifically) respect a 3x amplification limit in response to migrations. > This is the same basic mitigation we already have for other cases where > more data might be sent than received (handshake and connection close). > > This proposal is written up here: > https://github.com/quicwg/base-drafts/pull/4264 > > There has been some debate about the performance implications of this > mitigation. If an endpoint is unaware of a migration and sends a small > packet, the amount of data they can receive in return is limited until path > validation completes. Some people would like to have us recommend padding > for packets that are sent in two cases as a defensive measure. The first > is after migration; the second is after a period of idleness, where a NAT > rebinding might occur. > > I'm not currently reading sufficient support for documenting performance > optimizations along these lines. > >
- Potential design changes from IETF last call Martin Thomson
- Re: Potential design changes from IETF last call Martin Duke