Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1882579pxa; Sat, 29 Aug 2020 06:39:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgGKz3muByTHxth/AdJ7WiYi06O8cR6TSYYVSHadYfPOESaUxrPCp8a5Tt+jHg97oixvQz X-Received: by 2002:a17:906:40c9:: with SMTP id a9mr3579115ejk.3.1598708353992; Sat, 29 Aug 2020 06:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598708353; cv=none; d=google.com; s=arc-20160816; b=hpez449kzPCD4H59yuEviescDXd6axPkEuYFXhmrH6C0kGJ7P9DVUjufp3+3JWPsqo Mx0bGy5pUGgAOIwbajy2xPo+U450v3B4feNbAu6qc3hq9Ns10wAQUd7TMfLvJZfu0znI MeYFYml5Hdsyp7cFj5IerEGj+K/JdUwCJpZQv12B4z1WginuDViHeYXFTiNs9XKIFa/W DuAz1YnQkGGH/IjdTYNMf8zDU8SR8uutiMEhbNdftSLwFZePEk5x0jcIGZafoEmpw02g GVnkHyDUaNh3Th8pryhUF+/c3haudNw7bsR/dJdx5LUfxNHo7kzWZKP+43mRxpu33fOz 8gwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=vsKDigtU1j7pWpYT2XBxjVqNy+fdOwyYW6/aRebf3Fo=; b=ebmnYa6eLEuYhp6DIQw+oosf8+69WTBXe2fG/uLpceMjLnqsG3PN149/t4bCkhfwUf 7EmRVyChjTkEbjm8BLScxi0w9CVRR0e3unnK/DtWSeFx2gtwgEcX53AsNOKoEf7zGIo7 qvSYuCmJc7FMxZwdfC8n2EbzO2wiYR1FtZbL4Wr2ss9FEicUdTsbvX3Blp6JZNBlzCeD 7DxSpbtAoXbXlnnYeucg+2jmv9riOZzxLtqWwdoAyH8kJV6RBEFFFzz/YYbrJmqojhRj 3G0rRv1/V4T3eebSuOc5tX6ii36t4OMAHWilyAbAGJ4B4OxV2TT5E5BQmt+NR4GP5sH0 phgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si1906608ejy.383.2020.08.29.06.38.50; Sat, 29 Aug 2020 06:39:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728130AbgH2NhP convert rfc822-to-8bit (ORCPT + 99 others); Sat, 29 Aug 2020 09:37:15 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:59429 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbgH2NhG (ORCPT ); Sat, 29 Aug 2020 09:37:06 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-260-sruLeLQHO6G7wRvBN5rGQw-1; Sat, 29 Aug 2020 14:37:02 +0100 X-MC-Unique: sruLeLQHO6G7wRvBN5rGQw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Sat, 29 Aug 2020 14:37:02 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Sat, 29 Aug 2020 14:37:02 +0100 From: David Laight To: 'Bart Groeneveld' , Patches internal CC: "David S . Miller" , Jakub Kicinski , Jonathan Corbet , Alexey Kuznetsov , Hideaki YOSHIFUJI , "netdev@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] net: Use standardized (IANA) local port range Thread-Topic: [PATCH v2] net: Use standardized (IANA) local port range Thread-Index: AQHWfXt8zR3om+J6ikuVkMpiekBWLKlPFWkw Date: Sat, 29 Aug 2020 13:37:01 +0000 Message-ID: <30c8e904e2114204a4381034e7ee06c7@AcuMS.aculab.com> References: <20200821142533.45694-1-avi@bartavi.nl> <20200828203959.32010-1-avi@bartavi.nl> In-Reply-To: <20200828203959.32010-1-avi@bartavi.nl> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Groeneveld > Sent: 28 August 2020 21:40 > > IANA specifies User ports as 1024-49151, > and Private ports (local/ephemeral/dynamic/w/e) as 49152-65535 [1]. > > This means Linux uses 32768-49151 'illegally'. > This is not just a matter of following specifications: > IANA actually assigns numbers in this range [1]. Linux is using the 'historic' values. IANA shouldn't really have 'grabbed' half the port number space. Really the 'problem' of TCP port numbers identifying the service as well as the connection should have been addresses by some other means (eg using port 1023 and a TCP option to select the serivce). Changing the default base from 32k to 48k will break some existing systems if/when a kernel upgrade is installed. You are also changing the numbers for UDP. Anyone doing a lot of RTP (which typically requires 2 adjacent UDP ports) is already constrained by the availability or ports. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)