Re: [tsvwg] UDP source ports for HTTP/3 and QUIC

Mark Nottingham <mnot@mnot.net> Thu, 22 July 2021 23:21 UTC

Return-Path: <mnot@mnot.net>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F2A243A11C7 for <tsvwg@ietfa.amsl.com>; Thu, 22 Jul 2021 16:21:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level:
X-Spam-Status: No, score=-2.087 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=m85GJRez; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=GbpkzNmF
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 WaC0p-tZyCYY for <tsvwg@ietfa.amsl.com>; Thu, 22 Jul 2021 16:21:13 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81B043A11C4 for <tsvwg@ietf.org>; Thu, 22 Jul 2021 16:21:13 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 371745C00CB; Thu, 22 Jul 2021 19:21:12 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 22 Jul 2021 19:21:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm3; bh=k XGw3sFWp/EiOMViebCpPFKjsfH4hBIf20wQeS5pKCQ=; b=m85GJRezPuUjLdYLo cduaEwxtEpDU0BwgGGI+mXBadVQvbTO5DSi1YHEX4SLkw+TXGz0Z0ypIg4LwuVgA GwvvVVISZFinGbx6RgvAmi9V+WhSAWj+7Ebx3gEPbufak1JzyO0dUa2ob83sKCWb 0+kc8gjxsY9TMXPr153Uk3viLrJnG/Sb8Tfswx64Bcb61JZ1OB/ookSGIVK+g+0O zxAEj+BDQwtOTOUnI+Q+ciR0Z7O3gaS3O6HSahbGDTPGifwGz8dUTb3wZL+xK83Z DfF27WJVvKFN4784fwabpSuwPLak3KRaYn7aoLYTKFs9uUPWdL293pJmY1IK4yX1 IiftA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=kXGw3sFWp/EiOMViebCpPFKjsfH4hBIf20wQeS5pK CQ=; b=GbpkzNmFHPriARxZEkKZU/AkbPBf5vpKzBGpINtIHGrJyW84AejYfSaKG YT9ULJYjNsVSbzeMZAZr7kn79CILhkqRj+AF8Xp4SceBBnv4zDbcp+UbOdqqBO34 ThUQGL+DYar1blvlV+9J482966f/c1kte7a/jPbU94y4E1XRa4sYHoJ1sBIe2aXK RuRSClPt+nrf2CeLky4q4CVWUieSvqg00rJP3XVw+OSi0yV8wje/Fb2bskW/iS31 xhvOILb8ihelTrXbGGsOZt5m3KS8pY0oQ3ekVMzgQzzjiONdKXN0M7qEL4Zqd/wl Zuk2cwPy2U5ax7sn/9d6Lsfuif90g==
X-ME-Sender: <xms:Zv35YOubQcBIsM74fAvrYQQC1y301ODhO3xj_ERoOftwYXBd4saSnA> <xme:Zv35YDehnpxuNi6IAgRdYF4kThioDmNyegy_Tg4ku4dnPCSLyMyxHxeAaqg98p_qs vekMu2ZlWnu2G2yug>
X-ME-Received: <xmr:Zv35YJxmdnzrH3rZjH9_JFbzgqfCRpMlP0Z9mbY15m31fJq1F6YNp9hGwjAxbGdksUir6Kx0S-h2XEp1pC8kQeJZmqbO8gYvVsBkxI3YrHXYVofWujEdaMGh>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeejgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpeforghrkhcu pfhothhtihhnghhhrghmuceomhhnohhtsehmnhhothdrnhgvtheqnecuggftrfgrthhtvg hrnhepvefffffhudetveevhfeuffeigedtuedtheffleetffeftddtgeegjeehieeuteet necuffhomhgrihhnpehmnhhothdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmnhhothesmhhnohhtrdhnvght
X-ME-Proxy: <xmx:Zv35YJNETYOcAdRAk_T1ElErF-TuyMjlwngqt2OxCu3mc2fKmHVJVA> <xmx:Zv35YO8ISkEl48ba2iaZk2PTpb13bB7acGXVQjvOqgNWwuOMIpPoxQ> <xmx:Zv35YBUkx08Q5Fm681MA8EqVQHGuJHSCPpteNUZzSdPNFEarSbQxrQ> <xmx:aP35YFkBQQsqEJCStdB68UqBru9x6QJ3LwW6QgSD9Jz_dbf4ISgpBA>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Jul 2021 19:21:08 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <79d01f33-bc20-fce6-b49d-7c7cd67bea70@erg.abdn.ac.uk>
Date: Fri, 23 Jul 2021 09:21:06 +1000
Cc: "Black, David" <David.Black@dell.com>, Joseph Touch <touch@strayalpha.com>, "tsvwg@ietf.org" <tsvwg@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <61DC2F78-5075-4BD9-A54D-D13BCB826539@mnot.net>
References: <3985895D-D420-4995-831E-332E33693B79@mnot.net> <CF409524-96F3-412A-A8DB-E4EFFDD9F4E7@mnot.net> <E62515E7-38FD-4197-8CF0-2D196FB6D6C4@strayalpha.com> <16CD883B-9561-41A5-97E0-43EF3618333C@mnot.net> <8235BE77-7849-49A3-A709-EB32EB039982@strayalpha.com> <AA5B1FC1-E0E8-488F-AE2E-F21696AD0A06@akamai.com> <MN2PR19MB4045E5063CE13DDE39D5BE8683E29@MN2PR19MB4045.namprd19.prod.outlook.com> <9263482C-2E0A-46F0-9351-B63C0E3B53E0@strayalpha.com> <MN2PR19MB40450ACCE13E4A335FF929A483E49@MN2PR19MB4045.namprd19.prod.outlook.com> <694559d2-c0ac-80f2-7336-950bf6384a9d@erg.abdn.ac.uk> <MN2PR19MB40454F6D65F78FD618C691E283E49@MN2PR19MB4045.namprd19.prod.outlook.com> <79d01f33-bc20-fce6-b49d-7c7cd67bea70@erg.abdn.ac.uk>
To: Gorry Fairhurst <gorry@erg.abdn.ac.uk>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/fbekscBrfayXMhSwEOPx6NSYjrc>
Subject: Re: [tsvwg] UDP source ports for HTTP/3 and QUIC
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Jul 2021 23:21:19 -0000

Hi Gorry,

> On 23 Jul 2021, at 7:14 am, Gorry Fairhurst <gorry@erg.abdn.ac.uk> wrote:
> 
> Am I understanding this about a client choosing source ports, and this client runs out of ephemeral ports (at least within the time it can reuse closed ports). I can see that servers can have lots of clients, but what is the use-case for a QUIC client to have that many open UDP ports? 

Please see my original mail in its entirety. There are two scenarios of note:

1) A client implementation asks the OS for a port and uses whatever it's given. Because of the port allocation practices of some implementations, the chosen port can be one of those we're talking about (although that's mostly for those > 1024). While AFAIK some implementations will try to allocate an ephemeral port number first (in the IETF definition), some will not, AIUI.

2) A client is behind a NAT/CGNAT that chooses a different source port, again within one of these ranges.

Cheers,

--
Mark Nottingham   https://www.mnot.net/