Re: Towards a Scalable Modular QUIC Server

Eric Rescorla <ekr@rtfm.com> Tue, 22 August 2017 23:12 UTC

Return-Path: <ekr@rtfm.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 68BD1132AA8 for <quic@ietfa.amsl.com>; Tue, 22 Aug 2017 16:12:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 9T_M2Ia2JjGX for <quic@ietfa.amsl.com>; Tue, 22 Aug 2017 16:12:23 -0700 (PDT)
Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) (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 C6A7E132AA5 for <quic@ietf.org>; Tue, 22 Aug 2017 16:12:23 -0700 (PDT)
Received: by mail-yw0-x230.google.com with SMTP id h127so916025ywf.0 for <quic@ietf.org>; Tue, 22 Aug 2017 16:12:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=t6DY1yVM1o2XEDbjeV/oooeUBsNOeERMCi/j4nDOfJM=; b=ImcP1Sn9qWNcX6fPE9WNuNOb1HKmBQesIiPTN4uxY8VcQcYYBN8e3/dqLI7hicALdZ c/asYR97eQduoSRs4fYUz5ZMILJpZLJunQDeqTBhWfVFrKvUQU/ZRi2KWy2JhMkdc6SS PWflUV9gIJraDgMfnrs4YIWedMv4oGOrq91pgcGrHg6sT3g/HhnLLK0uBM9WP+TXtCKM jHZCZ2GGj2JRhQumcaatlO74C4QxF4c8k8Ir2ubCjmoY2ps++Q4/WAGeaGPHpfOswV9A xiAtg36ib1WBploDLsvAE5zOkv2aaCRnY8mFRMfDcXBZIDeLhg6CMsRudLVn3okRp5of E+Cg==
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=t6DY1yVM1o2XEDbjeV/oooeUBsNOeERMCi/j4nDOfJM=; b=IU0BvxrupYhy+/rJxKOFnEA78FJlwOJe6TvDLsogPe/zcGTQVWs8rIxGME/cqxRnmi mSMg082SRIVA1kZHcB2aq770f05lDYj4mJTstFlxhd4MqnEv1n2/EJdwgCBjYWBscQFk gtssS11XZ3/HHA2wzV+n9/EQmSU3IExYOZm8gfLADG1X6nW1s62NTq2q6946vhQbNPPg Bt/hmbW4cvRKCDK1N1vhq99HGGOg8b1nCXVFMdkgHjSea7epZYKkkYgwd4u+oMGtiRHX jUof/9tySHu4xKI8Vu+c3LmV3ok50q0j143BbIbdNMgX/+QHnEsU9VrKKpIrke5BIUGT 9VIA==
X-Gm-Message-State: AHYfb5hnzNf98HEe8KkyYxE+KGjezepYh3OfoulbvqqYhq4xQXf0CcbV sqHux4Pme0MgLGchNra+xeahO0xkmC5L1zc=
X-Received: by 10.37.56.12 with SMTP id f12mr629559yba.289.1503443543041; Tue, 22 Aug 2017 16:12:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.13.218.130 with HTTP; Tue, 22 Aug 2017 16:11:42 -0700 (PDT)
In-Reply-To: <CABkgnnVOftiSiDNOgcZmwhi1XaWR1unHayW0BCWJBugrDtauWA@mail.gmail.com>
References: <8BDD717E-76DE-4C58-A242-C24DFFADEA8E@netapp.com> <CABkgnnXgENPEYwJHS8KAvquC98jhzx6goDOqbDjh5vsvG6_u7g@mail.gmail.com> <B66C97F6-B311-4D0C-A746-0F6D75DDA1A8@netapp.com> <CABkgnnVOftiSiDNOgcZmwhi1XaWR1unHayW0BCWJBugrDtauWA@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Tue, 22 Aug 2017 16:11:42 -0700
Message-ID: <CABcZeBNPFCWdkabD=YnjhABrYm_vRoFEZPoPa7OT9rf1HQ0tLw@mail.gmail.com>
Subject: Re: Towards a Scalable Modular QUIC Server
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "Eggert, Lars" <lars@netapp.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c03e4c252bff605575fba47"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/SwRG7zsj0QkNafelJu_GRm8ItfM>
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, 22 Aug 2017 23:12:25 -0000

I'm not sure what to make of this paper:

"A single thread in cQUIC based on DPDK achieves 600 and 1000
connections/s for 2-RTT and 0-RTT, respectively.

...

Interestingly, the performance gap between the 2-RTT and 0-RTT
handshakes is around 75%, but cQUIC scarcely overcomes the threshold
of 1000 connections/s for the 0-RTT. "



1. 1000/600 = 1.667, which isn't really 75% (this is a nit).
2. As MT says, you would expect a far larger gap between any handshake
involving RSA and one which does not, so that's surprising. As MT says,
ECDSA should make this is a lot faster.


Without knowing more about their methodology, and about their profiles,
etc., I don't think we can draw that many conclusions from this beyond
what we already know from the standard microbenchmarks.

-Ekr


On Mon, Aug 21, 2017 at 5:21 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 22 August 2017 at 10:13, Eggert, Lars <lars@netapp.com> wrote:
> > On 2017-8-21, at 17:06, Martin Thomson <martin.thomson@gmail.com> wrote:
> >> Clearly the authors didn't understand why RSA was chosen by Google.
> >
> > I asked whether they had thoughts on whether their results might be
> influenced by QUIC-Crypto and if IETF-QUIC might perform differently...
>
> ECDSA might produce entirely different results here.  The computation
> effort is largely dominated by the cost of the signature.  That is
> assuming that they used x25519 for key exchange, which is pretty close
> to zero cost in comparison to RSA.
>
>