Re: Alternative ways to keeps ODCID on the server

Ian Swett <ianswett@google.com> Sat, 25 January 2020 21:37 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 1947512006F for <quic@ietfa.amsl.com>; Sat, 25 Jan 2020 13:37:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.499
X-Spam-Level:
X-Spam-Status: No, score=-17.499 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, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 kslLdToekC8Q for <quic@ietfa.amsl.com>; Sat, 25 Jan 2020 13:37:05 -0800 (PST)
Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 0FA2512004C for <quic@ietf.org>; Sat, 25 Jan 2020 13:37:05 -0800 (PST)
Received: by mail-wr1-x42f.google.com with SMTP id w15so6336109wru.4 for <quic@ietf.org>; Sat, 25 Jan 2020 13:37:04 -0800 (PST)
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=FKgrlI9NCba9/W9gNRAqsxzph/U41yZqrLZTuSJgH2I=; b=GCaxO1mL8O90TA72ZRNuuHLV8VqrL6rFS69GPCrY40+s02+sjfoap1/cUkpT29s3Hr mBRTSHxDELwPJAIjaQ20qN7mk9qC1m+NpKGkCg8Jt5GRQHPsS5e2TUevvrxfwyGHAWuN gFJ0uPX75zJd17BMSFY98xG7HAi5DehDofgHV3e32nekm98T0JhXheHIvTKaQmjeUqzK bU6ZWU3ETC8Jbpqmc7YiPeudLOL4y2laW8WL7VhqMdpljSYlTnAwNbT8VoOclq2g3o94 iVT7sFHXhfTk4CwUtPrfthuGo3P3cnN9ME0DUN2pbnogSlT3cJoil7nOU04PnMf5DVqU 7uLw==
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=FKgrlI9NCba9/W9gNRAqsxzph/U41yZqrLZTuSJgH2I=; b=cD7AiYWfIVkQMC05X1ZdGrVZSnzzVouHw6Dr9Ty/KqZMie1ySXD2ZFFKDxLL/kaXqe Wis+c1fIOA8gI/57ZeCszLNo6RfwHmfORcCDhG1UgOInDc/KMnJrcr5DWGCUlNLJW/by y7gEEcfeSei5a38thDkcquvu9Co0IrFkOq47JAxpcP16fXRr86LkY1PDnIPFLlxf4MRm I/1yMTJ1RMJXVxbvDl/0NMxU99IECYjaz9PhQ3lUbqcjb7C0JF10bgFpGe4kJbyWo3ZI 62qeH3L+xi/iBjKwr3taI42DhUkGFpUYAT8jUBBl397PTr3TxGIAIXsWClQWRGGyAmch FkrQ==
X-Gm-Message-State: APjAAAVCdut9znaNN7LmVFGLSDOWH7nu0pVlc+FoP2xBv6PyQSK6wF3t FWdAiACcQt74crh/yWowFdZVK1P4nQKzQK0Ar90E3w==
X-Google-Smtp-Source: APXvYqwCgHVpnkI5OYaRbW7iUXriDZ65s1pCHyZHaoVTGQzhro6vPvZRCzO0XVWSyCkp2DO88P5an8/32/AMSk9crlY=
X-Received: by 2002:a5d:40c9:: with SMTP id b9mr12519751wrq.419.1579988223245; Sat, 25 Jan 2020 13:37:03 -0800 (PST)
MIME-Version: 1.0
References: <20200124222434.GA8279@ubuntu-dmitri> <7b228c14-c0d3-6458-77ab-945e713ef429@huitema.net> <CAOYVs2qhPBtbjrVEXE+oMXWUWRBqhzDfZsiOatRW5Zd67e1sWg@mail.gmail.com> <ee0f625b-b260-9e3d-12b6-80291fc110eb@huitema.net>
In-Reply-To: <ee0f625b-b260-9e3d-12b6-80291fc110eb@huitema.net>
From: Ian Swett <ianswett@google.com>
Date: Sat, 25 Jan 2020 16:36:51 -0500
Message-ID: <CAKcm_gNKu5b__cjy5212pWN=PKwdZKX23rXHs423-u8hZMjr+w@mail.gmail.com>
Subject: Re: Alternative ways to keeps ODCID on the server
To: Christian Huitema <huitema@huitema.net>
Cc: Marten Seemann <martenseemann@gmail.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000cc101c059cfdaca1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/mPC78S-n9ExV5G_fHun3gKzI5hU>
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: Sat, 25 Jan 2020 21:37:07 -0000

This is a bit of an edge case, so spelling out what's required to proceed
seems reasonable to me.

On Sat, Jan 25, 2020 at 12:11 AM Christian Huitema <huitema@huitema.net>
wrote:

>
> On 1/24/2020 8:41 PM, Marten Seemann wrote:
>
> Then it's not a *Retry* token, then it's a NEW_TOKEN token.
> It's a kind of subtle distinction (as I noted in
> https://github.com/quicwg/base-drafts/pull/3107#discussion_r349859380).
>
>
> I understand that they are different. But look at the text in draft-25:
>
>    If a server receives a client Initial that can be unprotected but
>    contains an invalid Retry token, it knows the client will not accept
>    another Retry token.  The server can discard such a packet and allow
>    the client to time out to detect handshake failure, but that could
>    impose a significant latency penalty on the client.  A server MAY
>    proceed with the connection without verifying the token, though the
>    server MUST NOT consider the client address validated.  If a server
>    chooses not to proceed with the handshake, it SHOULD immediately
>    close (Section 10.3 <https://tools.ietf.org/html/draft-ietf-quic-transport-25#section-10.3>) the connection with an INVALID_TOKEN error.
>    Note that a server has not established any state for the connection
>    at this point and so does not enter the closing period.
>
> Invalid is invalid. An invalid token is something that the server cannot parse.
> The server does not know whether the client got the token from a retry packet
> or a new token frame, or just made it up with random bytes.
>
> -- Christian Huitema
>
>