Re: UDP source ports for HTTP/3 and QUIC
Poul-Henning Kamp <phk@phk.freebsd.dk> Fri, 16 July 2021 06:34 UTC
Return-Path: <phk@critter.freebsd.dk>
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 A04CF3A27DE for <quic@ietfa.amsl.com>; Thu, 15 Jul 2021 23:34:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 nI2udJjJL02N for <quic@ietfa.amsl.com>; Thu, 15 Jul 2021 23:34:37 -0700 (PDT)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BD953A27E1 for <quic@ietf.org>; Thu, 15 Jul 2021 23:34:36 -0700 (PDT)
Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id EEE9E8928D; Fri, 16 Jul 2021 06:34:33 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.16.1/8.16.1) with ESMTPS id 16G6YX7p014025 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 16 Jul 2021 06:34:33 GMT (envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost) by critter.freebsd.dk (8.16.1/8.16.1/Submit) id 16G6YWat014024; Fri, 16 Jul 2021 06:34:32 GMT (envelope-from phk)
Message-Id: <202107160634.16G6YWat014024@critter.freebsd.dk>
To: Willy Tarreau <w@1wt.eu>
cc: Toerless Eckert <tte@cs.fau.de>, Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, Mark Nottingham <mnot@mnot.net>, IETF QUIC WG <quic@ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>
Subject: Re: UDP source ports for HTTP/3 and QUIC
In-reply-to: <20210716060644.GA3469@1wt.eu>
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <3985895D-D420-4995-831E-332E33693B79@mnot.net> <6F79A78A-1DF8-4A48-9B7F-334B309C9C26@gmail.com> <20210715092937.GC27830@1wt.eu> <20210716014010.GL24216@faui48e.informatik.uni-erlangen.de> <20210716060644.GA3469@1wt.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <14022.1626417272.1@critter.freebsd.dk>
Date: Fri, 16 Jul 2021 06:34:32 +0000
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/D2dKNNP-PAMkg2nQLoADvbLPeNw>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 16 Jul 2021 06:34:40 -0000
-------- Willy Tarreau writes: > Stefan made a good point about the problem that might result, with > inbound load balancing between multiple listeners (typically what's > achieved by L3 switches doing L3+L4 hash between multiple servers, > and operating systems hashing the source+destination port to pick a > different listening socket). Thus a suggestion might be to possibly > save resources by using a small amount of sockets, with "small" left > to the appreciation of the implementation. We should run the question "few or many UDP ports?" past some some friendly 100G and 400G device driver maintainers. The NICs I have been working with for the ESO ELT project all included UDP ports in the hash they used to decide which CPU core to deliver packets/interrupts to and we had to spread across UDP ports to or all the traffic would hit one single core. I dont know if QUIC has registered with the NIC designers and device drivers writers yet, but given the opacity of QUIC packets, it is very hard to see what else than the UDP port they can feed into their hash, so I expect the answer to be "many". But it would best to ask, and find out how important they think it will be, and what "many" means for them. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
- UDP source ports for HTTP/3 and QUIC Mark Nottingham
- Re: UDP source ports for HTTP/3 and QUIC Martin Thomson
- Re: UDP source ports for HTTP/3 and QUIC Willy Tarreau
- Re: UDP source ports for HTTP/3 and QUIC Mikkel Fahnøe Jørgensen
- Re: UDP source ports for HTTP/3 and QUIC Willy Tarreau
- Re: UDP source ports for HTTP/3 and QUIC Stefan Eissing
- Re: UDP source ports for HTTP/3 and QUIC Willy Tarreau
- Re: UDP source ports for HTTP/3 and QUIC Töma Gavrichenkov
- Re: UDP source ports for HTTP/3 and QUIC Töma Gavrichenkov
- Re: UDP source ports for HTTP/3 and QUIC Nick Banks
- Re: UDP source ports for HTTP/3 and QUIC David Schinazi
- Re: UDP source ports for HTTP/3 and QUIC Töma Gavrichenkov
- Re: UDP source ports for HTTP/3 and QUIC Erik Nygren
- Re: UDP source ports for HTTP/3 and QUIC Mark Nottingham
- Re: UDP source ports for HTTP/3 and QUIC Toerless Eckert
- Re: UDP source ports for HTTP/3 and QUIC Willy Tarreau
- Re: UDP source ports for HTTP/3 and QUIC Poul-Henning Kamp
- Re: UDP source ports for HTTP/3 and QUIC Willy Tarreau
- Re: UDP source ports for HTTP/3 and QUIC Stefan Eissing
- Re: UDP source ports for HTTP/3 and QUIC Toerless Eckert
- Re: UDP source ports for HTTP/3 and QUIC Mark Nottingham
- Re: UDP source ports for HTTP/3 and QUIC Töma Gavrichenkov