Re: Q and L loss bits: which is which?

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Tue, 19 November 2019 19:26 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 0BEE012089D for <quic@ietfa.amsl.com>; Tue, 19 Nov 2019 11:26:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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=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 HZOsNtYfvBIX for <quic@ietfa.amsl.com>; Tue, 19 Nov 2019 11:26:26 -0800 (PST)
Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 6593812029C for <quic@ietf.org>; Tue, 19 Nov 2019 11:26:26 -0800 (PST)
Received: by mail-qk1-x735.google.com with SMTP id i19so18933832qki.2 for <quic@ietf.org>; Tue, 19 Nov 2019 11:26:26 -0800 (PST)
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=wj6iVJzhAuEYt+0UiAe9lop1EGC3NrBxjvkaZwep9uM=; b=0u4tp1Ztado2KnLm/k1SAuh68JDyT9T1csZvrAby6MNEkCYBAxQPWmaEOKRbl4vuwb 4wWE/kHefvs+MjmUzalVNlG1/xxSWHlLN9AGzZ+sfgweGVOYxuhKoMv6zlzbrVxyfWby N0y8Pwh7lE0CznHP8KRvTJzacFZRwQpM3AzVS3Zr6B7BSQxbNnzMaqYGK9BojZCY+gzV nuEHTuXByhMoD/Uh1ACBNDRSQmj7AnlegxpQVgWjDOKFaG7Of7+7PVdHksLgZyDf6UwL 1CBQE48nOY9YkjPKgHjZRPZ2g2iBcLjyA4sMNLQJI3b/1YcjMrhKrhkmXdOGR7TLNCfy AQ9w==
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=wj6iVJzhAuEYt+0UiAe9lop1EGC3NrBxjvkaZwep9uM=; b=s0krCSfJbqQhje8hm5VBSv8q5gvsaa2md52H9yzAz7p1bGZpEzz4kKoGkngLFxW9dn 4XXwT6QjW4zw5UDFVdXfu7G03K04NfWNO+QWHioniVVP+oX8vEantB0ZzXJurra1XlvO A2bn04HoMAazDjtCJNUZAaKGLshDv2aegfCUT+ft7XwWkpDHrBR0s/xEb46YlmSPcLMl a0q4+UqwRKw/ZvHpvcTBCxVPHnrmruyQ+cywbIOyYx8/RVwB1MSQ/vrECCcxrsaQutBZ tTy/18a4aDa2Mtn/3HzTrqXui8bYGUvzohgiBdVqGqEdkHmbiA31ULVGYVkkp8kV6H7I Xt8A==
X-Gm-Message-State: APjAAAUBaNGkgFpb1KnMinzOFrpZHMxlSQ52/AXYwlRZepH6705fNRg+ 0qpkOM/YCckAgb5+KNiJQ6s+JQ==
X-Google-Smtp-Source: APXvYqwQouNphZ2AVWGBA7m0Be4h/jQrKbV2vRpZmd/4AsoIyPTazJdOantx72v3QIXV2u0u/0T+zA==
X-Received: by 2002:a37:7f87:: with SMTP id a129mr30779919qkd.122.1574191585518; Tue, 19 Nov 2019 11:26:25 -0800 (PST)
Received: from ubuntu-dmitri (ool-2f1636b6.static.optonline.net. [47.22.54.182]) by smtp.gmail.com with ESMTPSA id w2sm10572231qkw.31.2019.11.19.11.26.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 11:26:25 -0800 (PST)
Date: Tue, 19 Nov 2019 14:26:23 -0500
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: alexandre.ferrieux@orange.com, IETF QUIC WG <quic@ietf.org>
Subject: Re: Q and L loss bits: which is which?
Message-ID: <20191119192622.GE2789@ubuntu-dmitri>
Mail-Followup-To: alexandre.ferrieux@orange.com, IETF QUIC WG <quic@ietf.org>
References: <20191119143218.GB2789@ubuntu-dmitri> <24388_1574174932_5DD400D4_24388_372_7_1574174948.30247.49.camel@orange.com> <20191119150829.GD2789@ubuntu-dmitri>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20191119150829.GD2789@ubuntu-dmitri>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/3N-wqpFjzTcc6bP1zLa2ZugDv1g>
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, 19 Nov 2019 19:26:28 -0000

I added a loss bits server on

    http3-test.litespeedtech.com:4440

Feel free to give it a shot!

Both lsquic server and client can be compiled with loss bits support
by doing

    EXTRA_CLFAGS=-DLSQUIC_LOSS_BITS=1 cmake ....

The code is on a branch for now:

    https://github.com/litespeedtech/lsquic/commit/0b83dfa304bcd9750b67e6297416ce493d9fb5b1

  - Dmitri.

On Tue, Nov 19, 2019 at 10:08:29AM -0500, Dmitri Tikhonov wrote:
> On Tue, Nov 19, 2019 at 03:49:08PM +0100, alexandre.ferrieux@orange.com wrote:
> > Thanks for your offer: experimentations are very welcome !
> > You're right we forgot to just define which is what, we'll fix the
> > draft shortly. We'll choose: 0x10 for Q and 0x08 for L.
> > This means the first byte layout becomes:
> >  |0|1|S|Q|L|K|P P|
> 
> Thank you!
> 
> I also assume that these two bits would now be outside of the header
> protection?  That is, the short header header protection mask [1] is
> now 0x7 instead of 0x1F?  This is not mentioned in your draft, but I
> don't see how an observer could get at those bits otherwise.
> 
>   - Dmitri.
> 
> 1. https://tools.ietf.org/html/draft-ietf-quic-tls-24#section-5.4.1