Re: Greasing the QUIC Bit

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Sun, 05 July 2020 20:27 UTC

Return-Path: <dtikhonov@litespeedtech.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 499433A0AE5 for <quic@ietfa.amsl.com>; Sun, 5 Jul 2020 13:27:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.20150623.gappssmtp.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 UKsp5qWzdS33 for <quic@ietfa.amsl.com>; Sun, 5 Jul 2020 13:27:05 -0700 (PDT)
Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 0BB7D3A0AE3 for <quic@ietf.org>; Sun, 5 Jul 2020 13:27:04 -0700 (PDT)
Received: by mail-qt1-x82b.google.com with SMTP id b25so6123838qto.2 for <quic@ietf.org>; Sun, 05 Jul 2020 13:27:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RjrzA3obfITttu+1O9Pa2a67iTP0cGwFGBW0GOKg0Bg=; b=Uf8D7/R7qmwlw97GjIU8hHrf/9bCV20h2gOzudUDxuO1f22+mgs6Hy/2klKvSEWJZu 0uou3pnar5Qzkfyd8R0yb+ENUbxCSTzsGSH9WXPgK4V+2KlIR3pHzao/SO2v0hYxsPwB st4fSPFH/TULk+LV/5EwNUT/MqXo7Duo1nCmJBa/BavCFrwg3gxlKrhAEmZn80vVqfyZ rkAquSD+xeGYbFNC8b8mp33vy2lKEGyfEZ9hfnin3q+HyMY4pLiZwkoNTEYoKWNaqXmm mRFXvGAZWSjE5KZ2lX+TJ9iYqS8c4CDwGME4IkCAKQQNcNGKIxnO9xASbYhHFlhGNXhU XsnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RjrzA3obfITttu+1O9Pa2a67iTP0cGwFGBW0GOKg0Bg=; b=tXs/u7394+9q7LD1bOAK9i0a4h511KrysWjdkWplZFFh2qIOQ/p8UPF2L246zO83Ap GjBJlA/t1bja4oP0SPSqAdOUS23zX1ulo1H2Y3erG3uD5n3FosafiCPo3TqZlCiwE1Bq Wa6rVv0eN9Uz9zf/DZJhOpSF2I2pkNb5UEBUuGZKt9AA2fWra+sE2BTgXlbkps6QFgNv 0XI03XKqEiwkWncWPLAM4QHotK3pt2HAQyBj06knFKhKHmV0XpvZ7DbaFE0mwJu8G9N8 u1JU2sU5m8p98lG/c3TbQzwMHm8BFYj9JLngHiCTI8z4kMrctQZmtlVGm4H3HHzlEFBb juaA==
X-Gm-Message-State: AOAM533pSxxca5to3S7Coz/QlyqSJ3dTajz29FYAwUi2Bs1iVQUxUScS L/3+P+agJhatKSZloBnEdd9GykiiwpeGfg==
X-Google-Smtp-Source: ABdhPJy6p1kiwAgIzhA5kTHajFI/LeU/VGr2Yvx1ogcZG4JiEyDVkVRsEGq2dUwu7C8iY0XQPA0LMg==
X-Received: by 2002:aed:35d8:: with SMTP id d24mr47956042qte.246.1593980823832; Sun, 05 Jul 2020 13:27:03 -0700 (PDT)
Received: from lubuntu (ool-44c1d219.dyn.optonline.net. [68.193.210.25]) by smtp.gmail.com with ESMTPSA id z4sm17055127qkb.66.2020.07.05.13.27.02 for <quic@ietf.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 13:27:03 -0700 (PDT)
Date: Sun, 05 Jul 2020 16:26:53 -0400
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: quic@ietf.org
Subject: Re: Greasing the QUIC Bit
Message-ID: <20200705202652.GB3335@lubuntu>
Mail-Followup-To: quic@ietf.org
References: <5943e1bd-fba9-473b-a20f-7992ad0579ab@www.fastmail.com> <CH2PR22MB2086FD91E42AC403D85DC42FDA6D0@CH2PR22MB2086.namprd22.prod.outlook.com> <65c908df-7123-46ee-838c-575f8154c811@www.fastmail.com> <9db597a6-5e75-4df6-5447-8204d052100c@huitema.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <9db597a6-5e75-4df6-5447-8204d052100c@huitema.net>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/V3wyihLy6pbktILRSI8H_ZwDzKY>
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: Sun, 05 Jul 2020 20:27:06 -0000

On Fri, Jul 03, 2020 at 07:02:55PM -0700, Christian Huitema wrote:
> I am almost done implementing this in picoquic, I just have a question
> about to set the quic bit if the option is negotiated
> 
> The spec says "use an unpredictable value", and I am hesitating between
> three options:
> 
> 1) flip a coin upon negotiation of the TP, and set all Quic Bits for the
> connection to the selected value.
> 
> 2) flip the bit at every packet.
> 
> 3) run a random number generator for each packet.

The draft does not make it clear whether the "unpredicable value" is
per connection or per packet:

 " Endpoints that receive the grease_quic_bit transport parameter from a
 " peer MAY set the QUIC Bit to any value in packets they sent to that
 " peer.  Endpoints SHOULD set the QUIC Bit to an unpredictable value
 " unless another extension assigns specific meaning to the value of the
 " bit.

When I read it the first time around, I interpreted it as "per packet."
If one interprets it as "per connection," it makes for the most efficient
method, which would be my preference.

  - Dmitri.