Re: [quicwg/base-drafts] Change Packet Number Gap to Packet Number Offset (#1307)

MikkelFJ <notifications@github.com> Fri, 20 April 2018 13:51 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 02F3D12751F for <quic-issues@ietfa.amsl.com>; Fri, 20 Apr 2018 06:51:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.01
X-Spam-Level:
X-Spam-Status: No, score=-3.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 HKgAywtdsBvW for <quic-issues@ietfa.amsl.com>; Fri, 20 Apr 2018 06:51:07 -0700 (PDT)
Received: from o9.sgmail.github.com (o9.sgmail.github.com [167.89.101.2]) (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 224971276AF for <quic-issues@ietf.org>; Fri, 20 Apr 2018 06:51:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=nb8HHS9QsW0tRkxzQShRKu8qrAM=; b=k2eQh+yhtkBy9eLS Ddg5Tz/B880cYZ5hZJV02O0jdvSNM28ygUlfKPSst2BXYktW6tSrTz2K1QIGYtnL IkxZ1iM9Df3c3z8wR4DvF7/pP2wdaef4a+oQeV8NAiCp54lQu35r5fZrqnyJ8Q0m ujwrmgzgmamdpaLHv/WQyZjyQLg=
Received: by filter1088p1mdw1.sendgrid.net with SMTP id filter1088p1mdw1-1711-5AD9F04A-3 2018-04-20 13:51:06.036094705 +0000 UTC
Received: from smtp.github.com (out-1.smtp.github.com [192.30.252.192]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id jscQMiB3R1i2fz5mXrV3_Q for <quic-issues@ietf.org>; Fri, 20 Apr 2018 13:51:05.956 +0000 (UTC)
Date: Fri, 20 Apr 2018 13:51:06 +0000
From: MikkelFJ <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abd2e5bc7b7bdf27eb5f0f43416d52df929c5de0cb92cf0000000116f1b24992a169ce12d68139@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1307/c383102463@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1307@github.com>
References: <quicwg/base-drafts/pull/1307@github.com>
Subject: Re: [quicwg/base-drafts] Change Packet Number Gap to Packet Number Offset (#1307)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5ad9f049d8383_69fc2ab0c1130f50105995"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: mikkelfj
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-CSA-Complaints: whitelist-complaints@eco.de
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1/QJ9HWc1zZcxVsFSXu0uJ/45JLZWoDA7kS+ VuU8emoaB0n0VrepyWpcXZ4O0ZY/xFnSBvk9Xa/6nvUIIL7vfw8QHCQtnUAexfC2gZXLhdOp63qu6V 48jWvCeurHfWY8x+7rno03x/7+usPfoasWWefTe7VqPw9E+kOsdiLiAvMLqpW17iN1m4/vvrBp91DB Y=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/bYV1QJBcmSZpGOZNQ40HHGyvsTM>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Apr 2018 13:51:09 -0000

@nibanks this looks a bit like my segmented packet numbers proposal but not that this proposal has a fixed offset per connection ID and that a connection ID is replaced before that offset is exhausted.

This avoids any linkage other than NAT rebinding.

https://github.com/quicwg/base-drafts/issues/1105

You can further mutilate the clean packet number sequence with a reversible permutation

http://stackoverflow.com/a/12996028
```
   uint32_t x;

    x = ((uint32_t)(size_t)key) ^ (uint32_t)(MY_SEED);

    x = ((x >> 16) ^ x) * 0x45d9f3bUL;
    x = ((x >> 16) ^ x) * 0x45d9f3bUL;
    x = ((x >> 16) ^ x);
    return x;
```

And you can further encrypt that permuation using simple XOR magic - apparently IPSec style.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/1307#issuecomment-383102463