RE: Getting to consensus on packet number encryption

Praveen Balasubramanian <pravb@microsoft.com> Wed, 04 April 2018 23:22 UTC

Return-Path: <pravb@microsoft.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 06DAA126C2F for <quic@ietfa.amsl.com>; Wed, 4 Apr 2018 16:22:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.012
X-Spam-Level:
X-Spam-Status: No, score=-0.012 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, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 FIy_8h3z0sgU for <quic@ietfa.amsl.com>; Wed, 4 Apr 2018 16:22:27 -0700 (PDT)
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0117.outbound.protection.outlook.com [104.47.34.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17C01126FB3 for <quic@ietf.org>; Wed, 4 Apr 2018 16:22:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KUg6pbGIZTovTma/ezuehJTWMlsSuX4JT2igMq1o+g0=; b=bZfzWhbcmfV1S+i3PXLITzlSVSg8Xdkn0yJpuh8LTQKQZN51ufTemIePXit6Dk7WF9pW3KOdNZyAsm4c2RDEc4ML5OjmYqTXu5iQCni9I0OAQRoRJx5a5lN3GDSFtVtQZeJUgoCKVjNUtV8uvm96JlOvfHW3SO0Q5ya2YY5V6gw=
Received: from CY4PR21MB0630.namprd21.prod.outlook.com (10.175.115.20) by CY4PR21MB0182.namprd21.prod.outlook.com (10.173.193.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.1; Wed, 4 Apr 2018 23:22:25 +0000
Received: from CY4PR21MB0630.namprd21.prod.outlook.com ([fe80::de:ba33:4748:51da]) by CY4PR21MB0630.namprd21.prod.outlook.com ([fe80::de:ba33:4748:51da%6]) with mapi id 15.20.0675.003; Wed, 4 Apr 2018 23:22:25 +0000
From: Praveen Balasubramanian <pravb@microsoft.com>
To: Ian Swett <ianswett=40google.com@dmarc.ietf.org>, Mark Nottingham <mnot@mnot.net>
CC: Lars Eggert <lars@eggert.org>, IETF QUIC WG <quic@ietf.org>, Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch>
Subject: RE: Getting to consensus on packet number encryption
Thread-Topic: Getting to consensus on packet number encryption
Thread-Index: AQHTy9GYaiUVNrU6h0aiyBQtEo3l9KPwZ0sAgAC4ugCAAARcAIAAFTbw
Date: Wed, 04 Apr 2018 23:22:25 +0000
Message-ID: <CY4PR21MB0630FA0EDD343396AD414641B6A40@CY4PR21MB0630.namprd21.prod.outlook.com>
References: <7fd34142-2e14-e383-1f65-bc3ca657576c@huitema.net> <F9FCC213-62B9-437C-ADF9-1277E6090317@gmail.com> <CABcZeBM3PfPkqVxPMcWM-Noyk=M2eCFWZw2Eq-XytbHM=0T9Uw@mail.gmail.com> <CAN1APdfjuvd1eBWCYedsbpi1mx9_+Xa6VvZ3aq_Bhhc+HN67ug@mail.gmail.com> <CABcZeBMtQBwsAF85i=xHmWN3PuGRkJEci+_PjS3LDXi7NgHyYg@mail.gmail.com> <1F436ED13A22A246A59CA374CBC543998B5CCEFD@ORSMSX111.amr.corp.intel.com> <CABcZeBNfPsJtLErBn1=iGKuLjJMo=jEB5OLxDuU7FxjJv=+b=A@mail.gmail.com> <1F436ED13A22A246A59CA374CBC543998B5CDAD4@ORSMSX111.amr.corp.intel.com> <BBB8D1DE-25F8-4F3D-B274-C317848DE872@akamai.com> <CAN1APdd=47b2eXkvMg+Q_+P254xo4vo-Tu-YQu6XoUGMByO_eQ@mail.gmail.com> <CAKcm_gMpz4MpdmrHLtC8MvTf5uO9LjD915jM-i2LfpKY384O2w@mail.gmail.com> <HE1PR0702MB3611A67E764EE1C7D1644FAD84AD0@HE1PR0702MB3611.eurprd07.prod.outlook.com> <d8e35569-e939-4064-9ec4-2cccfba2f341@huitema.net> <CACpbDccqKoF-Y1poHMN2cLOK9GOuvtMTPsF-QEen3b30kUo9bg@mail.gmail.com> <CAKcm_gNffwpraF-H2LQBF33vUhYFx0bi_UXJ3N14k4Xj4NmWUw@mail.gmail.com> <40C1F6FE-2B2C-469F-8F98-66329703ED50@mnot.net> <21C36B57-6AE2-40EF-9549-7196D7FA9B45@tik.ee.ethz.ch> <B176FC07-887D-4135-B01E-FE8B4986A5EE@mnot.net> <CAKcm_gOCeocLyrYpOS7Ud332xdz3xHSH0psPN8T6BGRjoL9ptQ@mail.gmail.com>
In-Reply-To: <CAKcm_gOCeocLyrYpOS7Ud332xdz3xHSH0psPN8T6BGRjoL9ptQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:4898:80e8:a::712]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR21MB0182; 7:9nf6/sJUZp0KUsQH/iOwpayEYC/FmLXt0f7n5liPPJX1L9HcWE/ABKrQCu1VFksD9dFEb8xckmBuEYvq//i6i1h1D77idLNUI72Q8t8txyIbdctV3dX03sicZsQvnCresTf4Q6VtDfzjOa2B0k+pJa/VWewjdCxU9aOqfkLvegdacNMwl7UJ+LCbFA/wHI5gDqy81jaOQ1ds4K2VF0wa5yzhHToBfzisVIeABK1zBXv20/jBh17vuV/D4PqxnsLY; 20:x/VthzGyvQZowzWUSSD5g/WCDNPbmqKbQPt5H0jUWsVD6Ce7CuUmPbf4Qzjw5xKxhF2MN9uiMvqkJbf3mHZz/lZZp8BKEEhIe0caaLgAjLmnLmy/zTXhlT9Oqr0W3j1fZd47EiinNj+bOwbtJgnj/ssKShiR3Jd1iYgZXIJRe7A=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: fc0f8b5d-7f4c-4612-ce18-08d59a82eceb
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:CY4PR21MB0182;
x-ms-traffictypediagnostic: CY4PR21MB0182:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pravb@microsoft.com;
x-microsoft-antispam-prvs: <CY4PR21MB01824DFD95A4E4999B29F227B6A40@CY4PR21MB0182.namprd21.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(158342451672863)(189930954265078)(85827821059158)(100405760836317)(219752817060721)(21748063052155)(17755550239193);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR21MB0182; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0182;
x-forefront-prvs: 0632519F33
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(366004)(39380400002)(376002)(396003)(39860400002)(189003)(51914003)(199004)(51444003)(53754006)(25786009)(186003)(33656002)(316002)(106356001)(59450400001)(53546011)(93886005)(561944003)(6506007)(22452003)(102836004)(6436002)(966005)(14454004)(606006)(105586002)(478600001)(81166006)(86362001)(236005)(97736004)(8936002)(6246003)(53936002)(9686003)(55016002)(6306002)(54896002)(7736002)(476003)(5660300001)(74316002)(81156014)(229853002)(8990500004)(11346002)(8676002)(10290500003)(446003)(4326008)(99286004)(54906003)(10090500001)(486006)(3660700001)(86612001)(68736007)(6116002)(110136005)(2906002)(19609705001)(46003)(3280700002)(5250100002)(790700001)(2900100001)(7696005)(76176011); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0182; H:CY4PR21MB0630.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: lD3fPuIRDZPJOZ0/Nzj88aowW+9qOTkCLQVaXiNczAAHa5h5owWjJdg5NQCYI2CgINq40RYT+pSaU7/ZsnH2+ON/PSIc5u2rYzbQkfPUqR5GdeWG1ezZQM3D2Eb10qgIEBc6IQdSsIF3FwIFxVUusGiNdhltZt3RPw3VQV90jrFtcuvq0mIvHx+3LQ35h150Nntf1xwwu3Ke+cFMIHwlzMDUpe+sB8TGXGcGaiwmSZGfzJo2BXtHh5460ZRYn5kU7y/BoHA7n2vlmezOF9pf+doONEr2DsPrbM0rfk6D15Vy4oh0Y+/gwUfvd+Be2PPeZ2gJdGgpvl+L8QAJDYn3EX/KySTl6qR8Q303jW0+jze67hyamsDKTP2rJH//MfTW0Rm6N01Yk0NEh5eLL9qE3j8BSkJQRDxdc/rMrTUDNnA=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR21MB0630FA0EDD343396AD414641B6A40CY4PR21MB0630namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fc0f8b5d-7f4c-4612-ce18-08d59a82eceb
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2018 23:22:25.3155 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0182
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/gHb5qy3AiKaI8a6g2dt5D5aq91Q>
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: Wed, 04 Apr 2018 23:22:31 -0000

PNE is one way forward for doing connection migration without linkability. I wouldn’t call it the most pragmatic since it has performance implications.

Any objections to the following?

1. Leave the current draft as is for the common case (no migration no multipath). Make sure we have some provision for greasing the PN to prevent ossification. If PN jumps are needed for this (apart from a random starting PN) we should have a PR modifying current draft.

2. For connection migration the options are:

a. Explore multiple PN spaces for connection migration (and eventually multipath), OR

b. Make PNE (and hence connection migration) an optional negotiated extension in V1 with the caveat that we will  revisit this  for V2 when we do multipath. This is required anyways because servers must be able to tell client that they cannot support migration since they are behind a legacy load balancer.


From: QUIC [mailto:quic-bounces@ietf.org] On Behalf Of Ian Swett
Sent: Wednesday, April 4, 2018 2:44 PM
To: Mark Nottingham <mnot@mnot.net>
Cc: Lars Eggert <lars@eggert.org>; IETF QUIC WG <quic@ietf.org>; Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch>
Subject: Re: Getting to consensus on packet number encryption

As expressed previously, I tend to think PN encryption is the most pragmatic way forward at the moment.

However, is anyone who would prefer a different solution(ie: packet number jumps or separate spaces) willing to send out a PR they think solves the link-ability issue PN encryption solves?

My mental model is there are a fair number of thorny edge cases, but maybe if I saw them in a PR, it wouldn't be as scary as I think?

On Wed, Apr 4, 2018 at 5:28 PM Mark Nottingham <mnot@mnot.net<mailto:mnot@mnot.net>> wrote:
Mirja,

On 4 Apr 2018, at 8:27 pm, Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch<mailto:mirja..kuehlewind@tik.ee.ethz.ch>> wrote:
>
> Hi Mark,
>
> without intending to state a technical opinion, I think I need to disagree with your assessment of the situation. Please see below.
>
>> Am 04.04.2018 um 06:58 schrieb Mark Nottingham <mnot@mnot.net<mailto:mnot@mnot.net>>:
>>
>> Hi everyone,
>>
>> The editors have told your chairs that this issue is starting to block progress on other aspects of QUIC. Coming to consensus on it soon (i.e.., before Stockholm, if possible) would be good.
>>
>> It looks like this thread has come to a natural pause. Reading through it, I think we agree there are some unpleasant tradeoffs here, but so far we have only one concrete proposal -- PR#1079.
>
> The other proposal is to use a random offset that can/should be changed when the connection ID is changed. Which is mostly inline with what the draft currently says.

As I understand it, the status quo has caused a significant amount of pain, complexity and potential bugs. PN encryption was proposed by Kazuho in Melbourne as a way to work around that.

We can, of course, decide that the status quo is the right approach. However, my current reading of the WG is that it isn't acceptable.


>> My AU$.05 - While we're chartered to produce a protocol that's encrypted as much as operational concerns allow,
>
> I don’t think this is what the charter say. The charter says "Providing always-secure transport, using TLS 1.3 by default.“ plus another paragraph that talks about TLS1.3. It does not spell out the desire of some individual to „encrypt as much as possible“.

I think that depends on how you read "always-secure." The charter also says we will provide "confidentiality and integrity protection of both application data and QUIC headers."


>> and that privacy is a natural extension of that (especially in light of RFC7258 and RFC6973), there is no *requirement* that we produce a protocol that is able to be accelerated by hardware.
>
> Not there is no requirement that the protocol need to be accelerated by hardware. However, not all requirement are listed in the charter. We as a group have to define the requirement. However, there is of course an implicit requirement for all work in the IEFT that is must be deployable and serve the needs of those people who want to deploy it.

Yes - a discussion that I'm trying to draw out. Thanks.


>> That being the case, I think we need to ask ourselves if we believe that inclusion of PR#1079 will significantly inhibit deployment of the protocol. Based on the discussion so far, that doesn't seem to be the case, but I'd be interested to hear what others think.
>
> Here my assessment is also different. There are multiple people that have raised concerns that this could hinder deployment.

As you know, we don't assess consensus just by the number of people that have raised concerns, but also the technical merit of the arguments. So far, the arguments have been all over the map, and I want them to converge.

The data that's been provided has been very helpful, but we need to evaluate that in the context of how QUICv1 will actually be deployed and used -- something which a few threads have touched upon.

Overall, I do not think it is a goal of QUIC to be deployable on any system for any purpose; if we try to design it for all purposes, we're going to fail. The question, then, is how much deployment / implementation / adoption we need to make it succeed -- and to design for that.


>> If we can get to consensus to incorporate the PR, and folks come back later with a more hardware-friendly replacement that doesn't change the Invariants or increase linkability, I suspect the WG will be amenable to that.
>
> I don’t think to just go with what we have even though there are concerns, is the right approach and definitely not the approach that was chosen for other proposals. In the sake of getting version v1 out quickly, I would think that not incorporating another change that does not have consensus is the proposer approach.

I wasn't proposing that we incorporate a change without consensus -- please re-read my statement. You may disagree with how the chairs eventually call consensus on this issue, and there are mechanisms for you to appeal (or even DISCUSS) that, but it's premature to start that now.

That said -- One way to prove that PNE hurts deployability is to try it; implementers have a very strong incentive to make sure their code can be deployed, so if those who have concerns are correct, it's probably the easiest way for them to be proven right.

Thanks,


> Mirja
>
>
>
>>
>> What do folks think?
>>
>> Cheers,
>>
>>
>>> On 29 Mar 2018, at 11:39 am, Ian Swett <ianswett=40google.com@dmarc.ietf.org<mailto:40google.com@dmarc.ietf.org>> wrote:
>>>
>>> Thanks for the nice summary Jana.
>>>
>>> As much as I'd love to have easier crypto HW acceleration, I've ended up arriving at the same conclusion.  I don't want to bite off the work to do proper multipath in QUIC v1, which I think is the only other reasonable option of those Christian outlined.
>>>
>>> If someone comes up with a way to transform packet number to make it non-linkable, but doesn't have the downside of making hardware offload difficult, then I'm open to it.  But we've been talking about this for 2 months without any notable improvements over Martin's PR.
>>>
>>> Given we never talk about any issue only once in QUIC, I'm sure this will come up again, but for the time being I think #1079 is the best option we have.
>>>
>>>
>>>
>>> On Wed, Mar 28, 2018 at 8:03 PM Jana Iyengar <jri.ietf@gmail.com<mailto:jri.ietf@gmail.com>> wrote:
>>> A few quick thoughts as I catch up on this thread.
>>>
>>> I spent some time last week working through a design using multiple PN spaces, and it is quite doable. I suspect we'll head towards multiple PN spaces as we consider multipath in the future. That said, there is complexity (as Christian notes). This complexity may be warranted when doing multipath in v2 or later, but I'm not convinced that this is necessary as a design primitive for QUICv1.
>>>
>>> We may want to creatively use the PN bits in v2, say to encode a path ID and a PN, for multipath. We want to retain flexibility in these bits going into v2. We've used encryption to ensure that we don't lose flexibility elsewhere in the header, and it follows that we should use PNE to retain flexibility in these bits as well. (Simplicity of design is the other value in using PNE, since handling migration linkability is non-trivial without it.)
>>>
>>> This leaves the question of HW acceleration being at loggerheads with the design in PR #1079. First, I expect that the primary benefit of acceleration will be in DC environments. Yes, there are some gains to be had in serving the public Internet as well, but I'm unconvinced that this is the driving use case for hardware acceleration. I understand that others may disagree with me here.
>>>
>>> AFAIK, QUIC has not been used in DC environments yet. I expect there are other things in the protocol that we'd want to change as we gain experience deploying QUIC in DCs. Spinning up a new version to try QUIC within DCs is not only appropriate, I would recommend it. This allows for rapid iterations internally, and the experience can drive subsequent changes to QUIC. It's what *I* would do if I was to deploy QUIC inside a DC.
>>>
>>> So, in short, I think we should go ahead with PR# 1079. This ensures that future versions are guaranteed the flexibility to change the PN bits for better support of HW acceleration or multipath or what-have-you.
>>>
>>> - jana
>>>
>>> On Mar 26, 2018 9:41 AM, "Christian Huitema" <huitema@huitema.net<mailto:huitema@huitema.net>> wrote:
>>>
>>> On 3/26/2018 8:20 AM, Swindells, Thomas (Nokia - GB/Cambridge) wrote:
>>>> Looking at https://en.wikipedia.org/wiki/AES_instruction_set#Intel_and_AMD_x86_architecture<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAES_instruction_set%23Intel_and_AMD_x86_architecture&data=02%7C01%7Cpravb%40microsoft.com%7Cad26f52d9d1a4260b69308d59a753285%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584750530033325&sdata=yGqWbBMM98tH5A22kBW4KZFhxxBgbDh44MyCKQORND0%3D&reserved=0> it seems to imply a large range of server, desktop and mobile chips all have a CPU instruction set available to do AES acceleration and other similar operations (other instruction sets are also available).
>>>>
>>>> If we are considering the AES instructions then it looks like it is (or at least will be in the near future) a sizeable proportion of the public internet have it to be used.
>>>>
>>>
>>> Certainly, but that's not the current debate. PR #1079 is fully compatible with use of the AES instructions. The issue of the debate is that the mechanism in PR #1079 required double buffering, first encrypt the payload, then use the result of the encryption to encrypt the PN. This is not an issue in a software implementation that can readily access all bytes of the packet from memory, but it may be an issue in some hardware implementations that are designed to do just one pass over the data.
>>>
>>>
>>> -- Christian Huitema
>>>
>>>
>>>
>>
>> --
>> Mark Nottingham   https://www.mnot.net/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mnot.net%2F&data=02%7C01%7Cpravb%40microsoft.com%7Cad26f52d9d1a4260b69308d59a753285%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584750530033325&sdata=ZdSVUlRGeQe85j2DzWmG8JIMTVu0kCKXV%2BMIZo99h0Q%3D&reserved=0>
>>
>

--
Mark Nottingham   https://www.mnot.net/<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mnot.net%2F&data=02%7C01%7Cpravb%40microsoft.com%7Cad26f52d9d1a4260b69308d59a753285%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584750530033325&sdata=ZdSVUlRGeQe85j2DzWmG8JIMTVu0kCKXV%2BMIZo99h0Q%3D&reserved=0>