Re: UDP source ports for HTTP/3 and QUIC
Toerless Eckert <tte@cs.fau.de> Fri, 16 July 2021 01:40 UTC
Return-Path: <eckert@i4.informatik.uni-erlangen.de>
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 5A0013A1EC7 for <quic@ietfa.amsl.com>; Thu, 15 Jul 2021 18:40:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.118
X-Spam-Level:
X-Spam-Status: No, score=-1.118 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779] autolearn=no 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 9lPnVcVHK6lW for <quic@ietfa.amsl.com>; Thu, 15 Jul 2021 18:40:22 -0700 (PDT)
Received: from faui40.informatik.uni-erlangen.de (faui40.informatik.uni-erlangen.de [IPv6:2001:638:a000:4134::ffff:40]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 862A23A1EC6 for <quic@ietf.org>; Thu, 15 Jul 2021 18:40:21 -0700 (PDT)
Received: from faui48e.informatik.uni-erlangen.de (faui48e.informatik.uni-erlangen.de [131.188.34.51]) by faui40.informatik.uni-erlangen.de (Postfix) with ESMTP id 7389D548056; Fri, 16 Jul 2021 03:40:10 +0200 (CEST)
Received: by faui48e.informatik.uni-erlangen.de (Postfix, from userid 10463) id 680774E7A5E; Fri, 16 Jul 2021 03:40:10 +0200 (CEST)
Date: Fri, 16 Jul 2021 03:40:10 +0200
From: Toerless Eckert <tte@cs.fau.de>
To: Willy Tarreau <w@1wt.eu>
Cc: 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
Message-ID: <20210716014010.GL24216@faui48e.informatik.uni-erlangen.de>
References: <3985895D-D420-4995-831E-332E33693B79@mnot.net> <6F79A78A-1DF8-4A48-9B7F-334B309C9C26@gmail.com> <20210715092937.GC27830@1wt.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20210715092937.GC27830@1wt.eu>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/0CSIbxZuZJzWNuALWS2O7MgsbXc>
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 01:40:24 -0000
Inline On Thu, Jul 15, 2021 at 11:29:37AM +0200, Willy Tarreau wrote: > On Thu, Jul 15, 2021 at 10:56:28AM +0200, Mikkel Fahnøe Jørgensen wrote: > > It is perhaps worth noting that due to QUIC (optionally) having unique > > connection identifiers, it is feasible to have many connections on the same > > source port. Therefore that could be a recommendation in cases where some > > source ports might be blocked. > > I think that this is an excellent idea! The simple fact that this is > being discussed precisely is because the source port serves no purpose > here other than being compatible with UDP. Huh ?? The UDP source port serves as the UDP destination port for return packets. Otherwise how do you redirect the packet to he right socket ? > So basically we could have > a recommendation that each application preferably uses a single socket > and source port for outgoing communication. Sure, but different UDP source port (socket) for different applications. > This will also lower the > stress on source port allocation (and recycling) as well as the need > for file descriptors. Yes, especially for systems with many simultaneous connections, likely servers/responders. Unless scale is a problem its somewhat hard to say whats better or worse. Using separate sockets/port-numbers even within a sinle app allows to distinguish the connections easier with the usual suspsects such as per-socket kernel diagnostics, network tools such a IPfix or the like. If i where to implement a stack for clients i'd certainly wanted to offer the option of whether to allocate separate sockets (source ports) per connection or not - and see what users do with it. Toerless > Willy
- 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