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

Kazuho Oku <kazuhooku@gmail.com> Thu, 08 February 2018 03:54 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 82B7212D84E for <quic@ietfa.amsl.com>; Wed, 7 Feb 2018 19:54:49 -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 ix9-k0b5cRoa for <quic@ietfa.amsl.com>; Wed, 7 Feb 2018 19:54:47 -0800 (PST)
Received: from mail-pl0-x232.google.com (mail-pl0-x232.google.com [IPv6:2607:f8b0:400e:c01::232]) (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 30F4512D849 for <quic@ietf.org>; Wed, 7 Feb 2018 19:54:47 -0800 (PST)
Received: by mail-pl0-x232.google.com with SMTP id v3-v6so1438564plg.3 for <quic@ietf.org>; Wed, 07 Feb 2018 19:54:47 -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=KZlODMP9fiU9L34DKEC7ijPAWBDiJygc8OnlnmfsjTw=; b=u7dKTbNUw/GWEfYBefr7R8r66mfITSjg5k6TX7PqXWQoeqehIf/NzFxQfCjK50128/ rzGUSoTKL+sdGlVK9nTp81z/PQwjYpoAma4/LjOyhFBWHLa6zVBuHPcikYcnUy24yPCc lbGS3dspZkL1fAbpn8rGCpd4aISloumQ2CC7LvN+C6JbMeQQRVB1eac0nnesjGk8oc+D hwftGZfczgiCO9xUVFd1aTy0hFDfnsnuev9hp1Hi3PByaeupLC2fBhsHPRghUe3cuj1k Ze/D5HEQwpUKhf8VRhw/hiZTXeNLjDQbxMLbPw19L5XlsRvycpYo/5ZNrBN0quvtwFGX mIeQ==
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=KZlODMP9fiU9L34DKEC7ijPAWBDiJygc8OnlnmfsjTw=; b=ZeET5G5Ic58TABB0LIv7jjMpH+hVnDjlyAVOpUOkCROqHfhPN6eTXnl2hpSF2aEddq MP39CLzdc3xO1XWLPOt0QOUoRMR8IzCp59yX31NZZ5jEgMPWKbT+pmilJ/4hvfQdUSxv 04mX/T/ZDbbZocUCcDruU/nqYgk39xndErLV32RklTmq+mIycEPrSBiBVedMhFN0tBq2 s3wLwoUNGdNp7p/Re7zhjn1NwLVbg0ewYE+fdWk3q6SvmzvL5jrqHtgZbL9k2Ph8xwaW K1HL5uMn3ZOyLO1iS32lF0j7jiRkmO90xOO8Nw9GTwLj3JTDKi+w+i8BSUVnKE71thyk 41Jw==
X-Gm-Message-State: APf1xPCs9stgRFlxNgMzLEmlOilYT8PgYlHedQxq4yPdukAG01p199ID U4zXW3DT7bxKwC5Gq0V986s/uxU3RWHkgQYSMDw=
X-Google-Smtp-Source: AH8x226Noh4l6A90T5IelaGS+7ubkyQl0DlvFcNmcIBex1z38FIQkEN7iUfpLSPkRKITwZOr65aaxiHNHjyfbkZK+wU=
X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr8100695plg.327.1518062086542; Wed, 07 Feb 2018 19:54:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.236.156.11 with HTTP; Wed, 7 Feb 2018 19:54:45 -0800 (PST)
In-Reply-To: <CANatvzyqjCk0Obg0KOeUEcu7J-WFudzvsg-8dM51mHMzQzm_-w@mail.gmail.com>
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> <CANatvzyqjCk0Obg0KOeUEcu7J-WFudzvsg-8dM51mHMzQzm_-w@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Thu, 08 Feb 2018 12:54:45 +0900
Message-ID: <CANatvzxt3CvWapVcd++PBG1OyJypXct9xWHVnsicu2mf-atC6g@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/5ikRM1vYVLOMY5_eeDpHzfA5tmE>
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 03:54:49 -0000

2018-02-08 11:08 GMT+09:00 Kazuho Oku <kazuhooku@gmail.com>:
> 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.

Please let me paraphrase the last sentence to the following:

I would prefer using a signal that is tolerant to "good" reorder (i.e.
happening frequently but resolving in a fraction of RTT so that they
don't trigger a retransmit).



Anyways, I think that we are making progress in sense that we are
discussing what is the "best" way to achieve loss / reorder
observability using 1 bit, rather than using multiple bits.

Use of less bits lead to less chance of leaking information as well as
finding space to store the information.

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



-- 
Kazuho Oku