RE: Packet number encryption

Praveen Balasubramanian <pravb@microsoft.com> Tue, 06 February 2018 07:10 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 2DC41126D74 for <quic@ietfa.amsl.com>; Mon, 5 Feb 2018 23:10:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 KKEKQmvPFruE for <quic@ietfa.amsl.com>; Mon, 5 Feb 2018 23:10:11 -0800 (PST)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0114.outbound.protection.outlook.com [104.47.42.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5232A126D85 for <quic@ietf.org>; Mon, 5 Feb 2018 23:10:11 -0800 (PST)
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=R+7xsSHkPu0FyzwQAP/IrtFr9UVzGR6S4jXXvO3WHs0=; b=YNoSxmZiih7bCR61yeQw+icPnwJcESWCzg05AR+Gc31M8JZYzLy4euL49SFnESMqPABcHcO9cNIhmcIkKqI11bWxHt8jaP0CRcqt7BRQh2TkCCDotNBqImgsi7QdP9/FJ2Fc7c7lYOh6E7HFl+uA/CHoCP54U57I3tlUAx7Jx1M=
Received: from CY4PR21MB0133.namprd21.prod.outlook.com (10.173.189.15) by CY4PR21MB0744.namprd21.prod.outlook.com (10.173.189.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.506.3; Tue, 6 Feb 2018 07:10:09 +0000
Received: from CY4PR21MB0133.namprd21.prod.outlook.com ([10.173.189.15]) by CY4PR21MB0133.namprd21.prod.outlook.com ([10.173.189.15]) with mapi id 15.20.0485.000; Tue, 6 Feb 2018 07:10:05 +0000
From: Praveen Balasubramanian <pravb@microsoft.com>
To: Praveen Balasubramanian <pravb@microsoft.com>, Jana Iyengar <jri@google.com>
CC: "Salz, Rich" <rsalz@akamai.com>, "Lubashev, Igor" <ilubashe@akamai.com>, Roberto Peon <fenix@fb.com>, QUIC WG <quic@ietf.org>
Subject: RE: Packet number encryption
Thread-Topic: Packet number encryption
Thread-Index: AQHTmW31V+0GAWpR/E2VqOCVLx9SYqOMgUQAgABeoYCAAAgUAIAAd3KAgAA8YgCAACPEAIAAAiYAgAOBloCAALfdgIAACBkAgAEGGACAANx9AIAAn5KAgAB7w4CAADUigIAADBeAgADUsaCAAGk3gIAAEEgAgAArugCAAEL00A==
Date: Tue, 06 Feb 2018 07:10:05 +0000
Message-ID: <CY4PR21MB0133383C5FB993D3F5642A89B6FD0@CY4PR21MB0133.namprd21.prod.outlook.com>
References: <CABkgnnVyo3MmWtVULiV=FJTnR528qfY8-OmKGWAs0bCvri-a_g@mail.gmail.com> <1F7FB3B8-A94C-4354-9944-FB09FB8DB68B@trammell.ch> <CABcZeBMbwdwyC9TxxHBLYaZKfNB-FG2wCGjqUZ_mNR-A1R47FA@mail.gmail.com> <9096e5ec-581e-875a-b1dd-bff0b05206fd@huitema.net> <CABkgnnWRQSAufwPss+qf=xAzCwRYeNNH8XLPm3yFaHxOb+ba4g@mail.gmail.com> <BF80500A-6277-45DC-8525-9C3FE138B76D@tik.ee.ethz.ch> <5A7191E0.6010003@erg.abdn.ac.uk> <5214AD93-8376-4B25-922F-AF5551CC2E95@netapp.com> <F990E064-E6F8-41A3-B791-F776C9955E15@nokia.com> <CAGD1bZab0GaZFsHwC+nw3AxxC4VusxMJ6oDanzk3dSDdWKAXdw@mail.gmail.com> <2C515BE8694C6F4B9B6A578BCAC32E2F83BA1443@MBX021-W3-CA-2.exch021.domain.local> <BY2PR15MB07757473DB9788558B902EB5CDF80@BY2PR15MB0775.namprd15.prod.outlook.com> <6E58094ECC8D8344914996DAD28F1CCD861B7F@DGGEMM506-MBX.china.huawei.com> <e529144067624fcba636fc8c24ee3ff4@usma1ex-dag1mb5.msg.corp.akamai.com> <BY2PR15MB07754D83A1721F2BD742359BCDFE0@BY2PR15MB0775.namprd15.prod.outlook.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> <CY4PR21MB01336FF451F8E4A3CF013E47B6FD0@CY4PR21MB0133.namprd21.prod.outlook.com>
In-Reply-To: <CY4PR21MB01336FF451F8E4A3CF013E47B6FD0@CY4PR21MB0133.namprd21.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:4898:80e8:5::712]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR21MB0744; 7:F5bkcrSUma3vZu1fRR+R8Mo0zelgNZYhg7J+jTsIyMF5EJmX9nPme91OpHU8rTzCbF6rvFrS0I904jDZWD5pFDFp93TbfjH2jsjZkVT62aDcOiv0FuJ2X+JltxDOzL3qyjWPImDYtQWfnVB2Rxw3jzu+QjCHuYTU0O+lKBjiZdLLuPtMygAcBfDnUwonIM78VQ/6EUFoawKjJoc84jMpz+QrOTVntAFOVaq/REOjEse9EYokB2Dxy4ByWFqQxaAp
x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR;
x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10019020)(376002)(396003)(366004)(39860400002)(39380400002)(346002)(199004)(189003)(2950100002)(99286004)(105586002)(86612001)(14454004)(8990500004)(10290500003)(478600001)(7116003)(5660300001)(2940100002)(229853002)(81166006)(81156014)(8676002)(6436002)(19609705001)(86362001)(1511001)(10090500001)(3660700001)(54896002)(8936002)(6306002)(53936002)(102836004)(106356001)(76176011)(77096007)(3480700004)(6346003)(316002)(6246003)(3280700002)(110136005)(54906003)(55016002)(22452003)(236005)(2900100001)(93886005)(9686003)(25786009)(68736007)(2906002)(33656002)(74316002)(7736002)(7696005)(97736004)(6506007)(53546011)(59450400001)(790700001)(6116002)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0744; H:CY4PR21MB0133.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 50ddf77e-0c3b-4fda-b1fc-08d56d30a616
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020); SRVR:CY4PR21MB0744;
x-ms-traffictypediagnostic: CY4PR21MB0744:
x-microsoft-antispam-prvs: <CY4PR21MB07441F1DBB7238493684DAA3B6FD0@CY4PR21MB0744.namprd21.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(158342451672863)(89211679590171)(192374486261705)(67672495146484)(211936372134217)(153496737603132)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231101)(2400082)(944501161)(6055026)(61426038)(61427038)(6041288)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR21MB0744; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0744;
x-forefront-prvs: 0575F81B58
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pravb@microsoft.com;
x-microsoft-antispam-message-info: OzS3f5CEU1/3/ef4kjmDwZ1U4k8n534LrwfDcKlERiMoLQ1kAMYLxMpC+kpsLrMYO7tNYQ5BsFOAbIzm1/NYOw==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR21MB0133383C5FB993D3F5642A89B6FD0CY4PR21MB0133namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 50ddf77e-0c3b-4fda-b1fc-08d56d30a616
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2018 07:10:05.3785 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0744
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/M_LldbxIvGNYPNMYyL8ehRiaKGo>
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: Tue, 06 Feb 2018 07:10:15 -0000

Oops sorry I think I misread that 1 requires random jumps only around migration and not always, which means its decidedly inferior to 2 w.r.t. ossification. Can we include a 1.1 which incorporates random jumps even in steady state? Or have we ruled that option out?

From: QUIC [mailto:quic-bounces@ietf.org] On Behalf Of Praveen Balasubramanian
Sent: Monday, February 5, 2018 7:13 PM
To: Jana Iyengar <jri@google.com>
Cc: Salz, Rich <rsalz@akamai.com>; Lubashev, Igor <ilubashe@akamai.com>; Roberto Peon <fenix@fb.com>; QUIC WG <quic@ietf.org>
Subject: RE: Packet number encryption

My opinion is for 1 over 2 but I can live with either. The main concern is cost of another encryption / decryption step, so the benefit of 2 over 1 should be demonstrably better on one of ossification, privacy, or manageability.

From: Jana Iyengar [mailto:jri@google.com]
Sent: Monday, February 5, 2018 4:31 PM
To: Praveen Balasubramanian <pravb@microsoft.com<mailto:pravb@microsoft.com>>
Cc: Salz, Rich <rsalz@akamai.com<mailto:rsalz@akamai.com>>; Lubashev, Igor <ilubashe@akamai.com<mailto:ilubashe@akamai.com>>; Roberto Peon <fenix@fb.com<mailto:fenix@fb.com>>; QUIC WG <quic@ietf.org<mailto:quic@ietf.org>>
Subject: Re: Packet number encryption

I don't think we're converging here, so I'd like to try and encourage us to move towards it. I have my opinion, but I care more about forward progress at this point.

There are three designs so far:
1. Packet numbers as is, with random gaps around migration.
2. Packet numbers encrypted, as per Martin's PR.
3. Packet numbers encrypted, plus a small modulo sequence number somewhere.

The concrete ones here are (1) and (2).  I'm listing (3) but am not inclined to consider it seriously, since it's not concrete enough, (and I don't want more bits to be spent in the QUIC packet header if that's where this info goes.)

There are opinions about ossification, privacy, and manageability. I'm not hearing bloody murder, so for what it's worth, I'd like to stipulate first that we can all live with the final design, whichever one it is.  If anyone disagrees, please say so -- I think it'd be useful to hear if there are folks who think a particular design is fundamentally problematic.

My opinion is still for (2) over (1), but I can live with either.

On Mon, Feb 5, 2018 at 3:32 PM, Jana Iyengar <jri@google.com<mailto:jri@google.com>> wrote:
Praveen,

That was precisely my point about the ecosystem evolving. Now that we have the ability to classify flows, various things have been built around being able to tell TCP flows. This obviously has benefits as you point out, but the downside is that that I can't get good network utilization with a single flow. I understand the scaling point, but speaking of common cases, any server in the wild is usually serving a large number of connections at moderate speeds, not a single one at 25-35 Gbps... which makes that sort of scaling less exciting than in a microbenchmark.

FWIW, the other downside of ECMP is that multipath transport doesn't work -- you need to hash on something else besides the 4-tuple. (We had to work around this in Google's deployment of connection migration.)

I'll disagree with your point about reordering being the uncommon case. While that's true today, this is again an expectation that the network works hard to maintain, though the ecosystem and what we expect as "usual" would be quite different had we not built TCP's requirements into the network. There's nothing wrong with having n-modal latencies... we can engineer around that. Any sensible load distribution scheme within the network will give you increased variance but it should limit the worst-case latency. You'd perhaps agree that that's a net win.

This was an example of how exposing packet number or not can have long term ecosystem effects. My point was about the fact that exposing can cause ossification.

- jana

On Mon, Feb 5, 2018 at 9:24 AM, Praveen Balasubramanian <pravb@microsoft.com<mailto:pravb@microsoft.com>> wrote:
>> This was definitely true for implementations of TCP, but that is TCP's problem, not the network's
Flow classification happens through the network and also on the end host with RSS where a flow is mapped to a core. This allows for building high performance receive processing that could be lock free for the most part. The only downside of ECMP on the network and RSS on the CPU is that a single flow will not take multiple paths or get processed on more than one core. Windows on server machines today can saturate 25-35 Gbps for a single TCP connection before being CPU limited. This is a  reasonable trade off because I don’t know of cases where a single flow is driving more than that amount of traffic. Assumptions about how flows get classified help make for more efficient processing. They also lead to consistent latency. You do not want the traffic to take a bi-modal or N-modal paths (on the network or the host) to being processed because the fluctuations in latency will hurt the workload. I am not arguing for TCP not being resilient to reordering but IMO that should be the uncommon case not the common case. With QUIC if streams were exposed on the network you could take advantage of stream level ECMP and RSS to scale better than TCP but we have chosen to keep the 4-tuple (or the 5-tuple) as the flow classifier on the network which is ok by me since it leads to TCP parity.

Thanks

From: QUIC [mailto:quic-bounces@ietf.org<mailto:quic-bounces@ietf.org>] On Behalf Of Jana Iyengar
Sent: Sunday, February 4, 2018 8:35 PM
To: Salz, Rich <rsalz@akamai.com<mailto:rsalz@akamai.com>>
Cc: Lubashev, Igor <ilubashe@akamai.com<mailto:ilubashe@akamai.com>>; Roberto Peon <fenix@fb.com<mailto:fenix@fb.com>>; QUIC WG <quic@ietf.org<mailto:quic@ietf.org>>
Subject: Re: Packet number encryption

Privacy-protection can't be a user choice, for the reasons others have noted on this thread.

That said, my primary argument is for encryption to avoid ossification. Not that it matters now, but I'll note that much of GQUIC's original motivation for encrypting headers was to avoid ossification.

I'll reiterate that fields we expose will get ossified and there are long-term ecosystem effects to this. Let me illustrate this with precisely the packet number field. Middleboxes commonly assume that a TCP flow can only handle packets in-order. This assumption comes from the fact that TCP implementations get poor performance when packets are reordered. This was definitely true for implementations of TCP, but that is TCP's problem, not the network's. However, almost all load-balancers I know of now will pin all packets within a TCP flow to one path, leading to sub-optimal performance in the network, and destroying incentives for the endpoints to deploy reordering-resilient TCP implementations (even though there are plenty of ways of doing this.)

Exposing QUIC's packet number field (as any field) is likely to have similar consequences and a similar ecosystem arc.


On Sun, Feb 4, 2018 at 7:51 PM, Salz, Rich <rsalz@akamai.com<mailto:rsalz@akamai.com>> wrote:

> Optional security tends to devolve to non-secure.



That’s a great aphorism.  And sadly all too true.