Re: Explicit measurability in the QUIC wire image (was Re: Packet number encryption)

Kazuho Oku <kazuhooku@gmail.com> Thu, 08 February 2018 02:08 UTC

Return-Path: <kazuhooku@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 B528D126C26 for <quic@ietfa.amsl.com>; Wed, 7 Feb 2018 18:08:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 iVdaICzNnoGQ for <quic@ietfa.amsl.com>; Wed, 7 Feb 2018 18:08:27 -0800 (PST)
Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 EC159124B18 for <quic@ietf.org>; Wed, 7 Feb 2018 18:08:26 -0800 (PST)
Received: by mail-pf0-x236.google.com with SMTP id 17so1171924pfw.11 for <quic@ietf.org>; Wed, 07 Feb 2018 18:08:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CHsjmnVNSkOpKmst6fGXcYR0OZa3QL5zk/extZ3bIMg=; b=SZRUs+PQK47ZOr9X2LrElSHrCFi8FrJk4Cnx1kdAo1SQkrhA/PlN2u8JjeArL/0bv9 I/2YkY+vjKuSamT97GRtOlYtsf+YktNTE/5EVyqa9W3j4Nws77h2WpeupjaGZlDEm7rb Y7n8uL46LD5R4CSwnSL+tbL3z5N50Nxcvkn9Q9bbgs8H6/CO1kXllGdEAsuZL/52Zs6h ajTIhNdFzvEZUBCvIuhmh70079ZUeX+9l+XUV1c5peUBSl8u8cIVD3AfjGgFJslyKWr6 FqVvCJ0kqwVcYKRtPxFY3tzLKM0dtxARNuDh6LzS5F6QEywsdAUoydfjvK+SPF0S7lEs N+0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CHsjmnVNSkOpKmst6fGXcYR0OZa3QL5zk/extZ3bIMg=; b=oiVmRHTmbwIRz8XPKK32I0XkxxdWcLcSY5PuqoF2SIC5eaEYVUzANijIvkNl2bnu9g 6VGvWKTay5cfQPsSpvF5zuBYEtkVFsRf3Jt/oOr6RuBjkYr7qCo3l5g7lgtnMPZHkwxA 67Zf94GvW+WtIPxWAJUT5gGKvZSkzG0ajvvHA7FF+l7R24WzVG4R6Fhaa068TorJmdQU YviwR9aknHR3Tc04gcet82I3lVUc//Gh7jKvIrH/IZNXKCuNh7xIx38NYWVpEpTPAhJt Tn/xMvXwjIu6dyDJGdSey3lLLmgMQ16vtUQEDQHSapsrRYeBp4WEE7AUkcf1HWfE+8eD 5tlQ==
X-Gm-Message-State: APf1xPC3VjxwLnDEgaN0hK6OvCsjDWqSkbfumRb+geRw5cnVfmHgqRGu 0GzyzClQYN0k9fxnyLbnifY5ELkh4lm7gns1kv0+Eg==
X-Google-Smtp-Source: AH8x226VNUUy4LQ+ad3KmliOGm4tleRnNwtd49vTYylZfwItUnXZgNDz6tIXfoUkjEltWvxAe06z5r5EdTD9Ors29KE=
X-Received: by 10.98.7.214 with SMTP id 83mr7768791pfh.130.1518055706346; Wed, 07 Feb 2018 18:08:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.236.156.11 with HTTP; Wed, 7 Feb 2018 18:08:25 -0800 (PST)
In-Reply-To: <0828f8d4-e8cc-c4be-6062-6e9fe843f849@huitema.net>
References: <CABkgnnVyo3MmWtVULiV=FJTnR528qfY8-OmKGWAs0bCvri-a_g@mail.gmail.com> <2CD9DC43-D69B-43F0-8474-DFE798850A52@akamai.com> <CAGD1bZaUuNxqpDkn62B0wWcFD8=mCUWrAwWGG-rAOxH7Mf1=cQ@mail.gmail.com> <CY4PR21MB01334E30C7AF6AE75F58EEFDB6FE0@CY4PR21MB0133.namprd21.prod.outlook.com> <CAGD1bZaxrqzdkk0wxRaULwOTgg6wnrSrXNBK31s4uxdozaACBA@mail.gmail.com> <CAGD1bZbOAaSBcQw4nVtGuwRunaAW8MYHq9yPxNN6DdKHzt5HtQ@mail.gmail.com> <CANatvzx+uDHMV5XS=OuVYBqe_RYX=EmVWAmjuONS8BpNYCPweA@mail.gmail.com> <5233815B-00F3-4961-ABB8-505906258B89@trammell.ch> <CAN1APdcuKSLYw4Odyc4g=+4_+ojsNekeqmM9eYqxykkfxRx3Cg@mail.gmail.com> <CANatvzz3rmGPRgu1Z5+bAHhgjiN3L5OVTDhb4fmpPX+M8o4z3w@mail.gmail.com> <DB6PR10MB17661B9957DF90733FA28EC5ACFD0@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <DB6PR10MB176682C63A91007574BBEAECACFC0@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <CAN1APddkFxLFREQQe+0Kqqi+zJeU20ALjzN4R0Muf9FD1BzZUg@mail.gmail.com> <CANatvzw3RFekoHx_MJWkDY0Q+G2gUNshpocozwkQWpH8sqnnTA@mail.gmail.com> <0828f8d4-e8cc-c4be-6062-6e9fe843f849@huitema.net>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Thu, 08 Feb 2018 11:08:25 +0900
Message-ID: <CANatvzyqjCk0Obg0KOeUEcu7J-WFudzvsg-8dM51mHMzQzm_-w@mail.gmail.com>
Subject: Re: Explicit measurability in the QUIC wire image (was Re: Packet number encryption)
To: Christian Huitema <huitema@huitema.net>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/Xk_qsAxKa80askelcaC4wtm2vKo>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 08 Feb 2018 02:08:29 -0000

2018-02-08 9:37 GMT+09:00 Christian Huitema <huitema@huitema.net>:
>
>
> On 2/7/2018 1:10 AM, Kazuho Oku wrote:
>> The pros of using a sequence that randomly distributes 0 and ones
>> (i.e. PI or xorshift+) is that you can extract good loss / reordering
>> information if the error rate is low.
>>
>> OTOH, it is fragile to high error rate or certain patterns of error.
>> Let me explain two examples.
>>
>> Consider the case where the packet loss rate is 50%. I doubt if you
>> could use pattern matching against those sequences to figure out the
>> loss rate. This is because the power among the sequence is mostly high
>> frequencies. If you use a sequence that distributes power among lower
>> frequencies (like square wave or sin wave that I discussed), you can
>> calculate the loss rate in such cases as well.
>
> Actually, it should be possible to build a maximum likelihood decoder
> for an xorshift sending pattern. You are mostly concerned with erasure
> and permutations, and you roughly know the range of probability, so you
> can see likelihood of 1, 2, 3, etc. erasures, or permutations in some
> range. Obviously, the range that you can manage depends on the length of
> the code. If you can keep the decoder synchronized, you will be able to
> measure the erasure rate.

I agree with you that it is possible to detect loss / reorder if the
decoder can be kept synchronized.

What I am questioning is the possibility of keeping the decoder
synchronized under heavy loss / reorder.

> If it looses synchronization, you know that
> the error rate is truly horrendous, and that's information too.

I disagree.

It might be true that loosing synchronization due to heavy loss can be
a signal. OTOH, loosing synchronization due to massive reorder is not
an issue if the reorder resolves in a certain timeframe (IIRC 1/8
RTT).

My understanding is that the middleboxes' reliance to the sequence
number has led to the ossification of TCP. The ossification has
prevented us from doing some nifty things, such as sending some TCP
packets through a different node while answering others directly. In
QUIC, I am interested in doing such things, and I would expect that
others will be.

Considering that, I would prefer not to exposing a signal that could
give false information to observers when there is a "good" reorder.

> And
> xorshift codes are self synchronizing, so you will regain
> synchronization quickly.
>
> -- Christian Huitema
>



-- 
Kazuho Oku