Re: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt

Harold Liu <harold.liu@ericsson.com> Fri, 04 March 2022 01:38 UTC

Return-Path: <harold.liu@ericsson.com>
X-Original-To: ipsec@ietfa.amsl.com
Delivered-To: ipsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 274E13A09EF for <ipsec@ietfa.amsl.com>; Thu, 3 Mar 2022 17:38:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.11
X-Spam-Level:
X-Spam-Status: No, score=-2.11 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 6siPpLkMyMp4 for <ipsec@ietfa.amsl.com>; Thu, 3 Mar 2022 17:37:55 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20616.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::616]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5CDD43A0879 for <ipsec@ietf.org>; Thu, 3 Mar 2022 17:37:55 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q0lZSUWF3KZzEP+xG1VGQ8rLJ7SE1DdOy+9Ueqbin7eqa3uWLV2DoDeY1I8stttG8R+FftBIFCYopn4CMzhCm7JJYPRY5WPb65Xd2ZyMBgWV6in5Gxvi6+poqXtXae3eFcTqlYn4WExQQjuGvFKnla1czSbD27rNm6g102zyYZizHhbkmNabfTE7lWwU1vhzVbYP7X7ce5ssifW0K0TUTVu9qZMK/Nc0xkOTNt4Acf4pp/ix4yhFoTPYi04kJv70xd3YqW973Od1wNyBdjn93s1kU0/usRjO3eLqaY6loMMf/M/6WZky+jMKbdt1xWXU36HdzqWFPh1LMx5CSKOrzg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=K3aafF4v+8lVFr6ko8yiGsusIukLcwSV8/YST7hswqk=; b=DN3Dp+NIWbkIyNZpGmt5qmOQaa65NAuEVlklnQN4PaZpOYaERloxLlxTy9wQ6+9Jlqcfq0BtqGh1GVeDuAss1ZqHSI/WPqJwksEfna4ho+gm3ShZhJtwvyNTP5J0dm61HUfenVSBNr6dbtOIjGwg0Khu7VnG0kW0ZgoGK2l/4y8x5tqzmDaHjbRAUkghxKy9ZoH+TsQg98KnqJmDqVFGzSPzT9QBTfOKwCHMt0L964EJJ/BKxY7XpgmNMqLii2PkghAo4+HmHk35c+vymYVST2GHkV58hzwFYKdpcIBGNDY06tOUGSrhHSAtVJmgr0iuqQYq/t4eUtbQxA1/xd5t6g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K3aafF4v+8lVFr6ko8yiGsusIukLcwSV8/YST7hswqk=; b=JO32YivrIKE++kvlDDfxUaZAdT5tBYekDJzh1hSfqVheseeRnlwQN8aT22JEonFVM9V0wz7qWL5awU0VLhN6BPHr0+5Iq0gh2TzJgoyKScGXZIsF4ZNUNq3OqBnsB1q/jTRmpQ7/FFeoxsRU/VdSljGQEOh6nfVyJNw9VR5/6Lk=
Received: from AM6PR07MB6056.eurprd07.prod.outlook.com (2603:10a6:20b:97::32) by DB6PR0701MB2597.eurprd07.prod.outlook.com (2603:10a6:4:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.9; Fri, 4 Mar 2022 01:37:50 +0000
Received: from AM6PR07MB6056.eurprd07.prod.outlook.com ([fe80::259c:da43:36b:91bc]) by AM6PR07MB6056.eurprd07.prod.outlook.com ([fe80::259c:da43:36b:91bc%6]) with mapi id 15.20.5038.014; Fri, 4 Mar 2022 01:37:50 +0000
From: Harold Liu <harold.liu@ericsson.com>
To: "ipsec@ietf.org" <ipsec@ietf.org>, Paul Wouters <paul.wouters=40aiven.io@dmarc.ietf.org>
Thread-Topic: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt
Thread-Index: AQHYKH5eEEnNBi+UYUO3jYQBHw1g0qygq/lQgAEPDQCAACk1oIAAcJfggAE1p6A=
Date: Fri, 4 Mar 2022 01:37:50 +0000
Message-ID: <AM6PR07MB605633166036282DACE3FCCBEB059@AM6PR07MB6056.eurprd07.prod.outlook.com>
References: <164559761129.12564.15927704794982969278@ietfa.amsl.com> <AM6PR07MB6056BCED2C1621D75C4A7470EB3C9@AM6PR07MB6056.eurprd07.prod.outlook.com> <1599f5ad-5871-e9d-8fd2-965829b22d6@nohats.ca> <AM6PR07MB605677111465AA07DB76C988EB3D9@AM6PR07MB6056.eurprd07.prod.outlook.com> <AM6PR07MB6056269C89B90B3C637989EBEB3D9@AM6PR07MB6056.eurprd07.prod.outlook.com>
In-Reply-To: <AM6PR07MB6056269C89B90B3C637989EBEB3D9@AM6PR07MB6056.eurprd07.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 12280b6b-b7a0-4310-4c40-08d9fd7f97fd
x-ms-traffictypediagnostic: DB6PR0701MB2597:EE_
x-microsoft-antispam-prvs: <DB6PR0701MB2597A135FBE6966A64B970B6EB059@DB6PR0701MB2597.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mX5GaultpayD9+XW2Mj/CYwKj/FjWfe88I4eqaYkXSzRX8uRVe3mYwUpOVA2lKLEcopmMRLQNbxKKJOaulDmEB/28srXiJYGSaZRVmeUNIXwup64eIbC+zBS2OE9U7QAbQIxubYGSc5oNkUTMUcpdpf2HRIhUDXvgfaEHmGp4N2HD34YXVMLzNvMRZJ9dEY9RB2gJwilRH0bNoRR1LdM3B+HrZjKarE9jhzGv3XlN+GnHN5aYBc5alKhCTRcTF31uiGu1UNOkKd9W5MavgpoLK9JnuMgBt8Ewf9MZiwGplxHmxPmP8Rs9ymLTL7OKJrhkd4mCiBCq0OJPtaxFS0GRCyIh9/2xGsAl5RiEEoFy6xOUtBmzgjkvb7lXY2FvLXCcGinERrlNxWTYC593w3vKERCEC4+hbl2wV7D/AdfxXo/uyHTT2sRIBLiWgxSOFotU5+4Xtye99K53G/wcB7/okEmQPcUcTSbNPsEwMRp50C+fpteFyUlF4dBBSDHjk3N5IRSnLMUJniGlxQYGtpSfjsYComYPZTs6kbvgTGN90Tow7UjaL+Ypzb8x8DmJfJ2cminrOTkJzLu8/g1k5wl425A/64pjzmQN4AqMsmc0BDb+nfXXSdk3eINRJeaumOZEwC+KXOoJFIIr4BmkWm2MNU0+F4ceQUh3ZvdgYxXBWFyvqmuQ+h44NsydBabo2YEsLKGqAep1qFh3OInPhq1d9omNOwpVpddjQGWJO+nAaQh4+ZXCTLzs1MmMaOHOSc1iulH8isWApS2deM807IgLJEI0+0yu9axigpXtSPZrRo=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR07MB6056.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8936002)(316002)(5660300002)(7696005)(52536014)(44832011)(9686003)(53546011)(6506007)(2906002)(38070700005)(38100700002)(86362001)(122000001)(82960400001)(71200400001)(66556008)(76116006)(66476007)(66946007)(8676002)(83380400001)(55016003)(64756008)(66574015)(66446008)(110136005)(15650500001)(966005)(186003)(26005)(508600001)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?set7cLrTRcwEi4T4YSLvmYqnjxkBVHUdgk1bwLZ359d5wGcKr7wnwS1Avo/R?= =?us-ascii?Q?l5dUbVIa3VIvmhIemhL/y+IksUbGSFfwxaJ6YFbUMZGFzrzxWXENTN7SzPXm?= =?us-ascii?Q?ok7lXQdy8AhqbN2TWhXs/s0iK/FV6rItR35IdOjfmmQD/+NLF16oSaI551Im?= =?us-ascii?Q?sA+dwjjwbrCQ8VkaL/Bbowo/dxAz2IKCUxLCnnMnQhRCNtqcI3WMMRauMwXR?= =?us-ascii?Q?FyYEanY6lDKzYM1LVpXPZzKFvdBuQxKjUcttJAYgAHmwEEEJ7Hf7xyJW3nJ6?= =?us-ascii?Q?/vk2aDpk+8X44JJsC50Cdh5vRglXYL7gamGonkrmQMNxdCUHnSLxzCYBetXu?= =?us-ascii?Q?wBGV/VAZSO1LKfpkzWhdfVAA0YnPbij0CRJbEPwBDRS+d026faOMCzdQNdcd?= =?us-ascii?Q?bVdH9T81ZstRNNBse6AX2bI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= =?us-ascii?Q?HDTxGM7s694qTXWjBm13wwGJTYOUDXQpHcjEqdT/hvvFPreKF4PeowIERfke?= =?us-ascii?Q?O6gqoLnIB2qzBWnAdQ9A83hfI+k8K4i3Y7bD2uwaKkQQt6AK94EglzL2vNbS?= =?us-ascii?Q?9eeXV81NbVPqs5qCBjpeuq/hrUOzSBVvEaa9qi/OKU2f9KwSpG0Ha/+Ku6Vq?= =?us-ascii?Q?raTj7iCMIUS/pcfRmM2sUuxdEwtnBNyUGXB+uiwQm6dPdjKjYbxtwg59m+1l?= =?us-ascii?Q?z6lxi8G7NVK9/7AeFY/qh5hq+MugncLLgmQJbk7nXn2V/uJtUJvRKQ7n33O5?= =?us-ascii?Q?vQ=3D=3D?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM6PR07MB6056.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 12280b6b-b7a0-4310-4c40-08d9fd7f97fd
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2022 01:37:50.0550 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: m7A/JCCmSprGuxApRFejSrhCxpLNd44dp1v4wMbHe+EGibF9yofW+CT8zDdF+HoICp72s9IOVFEDXGWs1SzXeQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2597
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/uXYvSmMEdZ8AX_lJ0AbAC6K-Go8>
Subject: Re: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipsec/>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Mar 2022 01:38:00 -0000

Paul, I think your following concern is meaningful by further consideration. After all, a larger MTU can increase transmission efficiency. I think it would be appropriate to add the following mechanisms to provide the ability to increase MTU, please kindly share your opinion.

- As paths over the internet change, this draft can kick in to reduce
   the size, but I see no method to go back to a larger size once the
   path between the endpoints recovers again.

<Harold>
       1 - After receiving the "ALLOWED_MTU" notify message, the sender device will do some special processing - ICMP or pre-fragmentation - as described in this draft if  the sender finds the MTU of original packet after ESP encapsulation exceeds the "ALLOWED_MTU".
       2- The specific actions on sender device after receiving "ALLOWED_MTU" should have a "time limit". When the "time limit" is exceeded, no special processing - like MTU check before ESP encapsulation - is performed on the original packet and the normal process is returned.
       3 - This "time limit" ensures that the session reverts to its original state - process original packets normally - after a certain amount of time - equivalent to a redetection of the path MTU so that MTU changes can be handled. If the ESP packet's size exceeds path MTU again the ESP receiver device could detect new MTU and send " ALLOWED_MTU ".
       4 - The recommendation at the implementation level is that this "time limit" should be flexible, in other words configurable.  Because in theory, the path MTU does not change frequently, and redetection of the MTU may temporarily introduce packet loss (Or other problems) caused by ESP fragmented packets. Therefore, users should decide the "time limit" value based on actual network conditions.
</Harold>

Paul, thank you very much for all of your suggestions, which are really of great help to improve the completeness and usability of this draft.

Brs

-----Original Message-----
From: Harold Liu 
Sent: Thursday, February 24, 2022 3:51 PM
To: ipsec@ietf.org; Paul Wouters <paul.wouters=40aiven.io@dmarc.ietf.org>
Subject: RE: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt

Paul, I further consider your concern below and I think I did not deep understand it before.
You are right currently there is no mechanism to recover to a larger MTU, I will further think of it and update to you later.
Again, really thank you for your valuable comments.

- As paths over the internet change, this draft can kick in to reduce
   the size, but I see no method to go back to a larger size once the
   path between the endpoints recovers again.

Brs

-----Original Message-----
From: IPsec <ipsec-bounces@ietf.org> On Behalf Of Harold Liu
Sent: Thursday, February 24, 2022 11:21 AM
To: ipsec@ietf.org; Paul Wouters <paul.wouters=40aiven.io@dmarc.ietf.org>
Subject: Re: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt

Paul, thanks for your comments and I am really glad that you are interested in this topic.

Please see my response inline.

-----Original Message-----
From: Paul Wouters <paul.wouters=40aiven.io@dmarc.ietf.org>
Sent: Thursday, February 24, 2022 6:38 AM
To: Harold Liu <harold.liu@ericsson.com>
Cc: ipsec@ietf.org
Subject: Re: [IPsec] New Version Notification for draft-liu-ipsecme-ikev2-mtu-dect-00.txt

On Wed, 23 Feb 2022, Harold Liu wrote:

> Recently we ran into a real problem in some IPsec use case - In customer application scenarios, ESP packets are fragmented, which causes many problems - Including performance problems, device resource problems, and even traffic loss (In customer use case, it is IPsec over NAT scenarios so ESP packets are encapsulated by UDP.  Therefore, except for the initial fragment that contains complete UDP header, other fragments can only indicate UDP protocol in the IP address, but do not have UDP header. Therefore, they may be incorrectly identified by other applications and captured - The fragmented IP payload is regarded as a UDP header.  ESP cannot be reassembled and the package is lost).

When this happens, the application should be missing its packets, eg TCP or UDP and could reduce its MTU based on that as well. In other words, why would we want a second mechanism to do this, where these two mechanisms could end up fighting.
<Harold>
       The application cannot reduce its MTU when this happens because the packet lost, the application does not know the packet loss reason so as to cannot reduce the MTU and even cannot know what is appropriate to reduce to.
       For the TCP the standard action is retransmission according to sequence number received last time, but this could make trouble including but not limited to (I believe there are lots of description about TCP packets retransmission  disadvantages) performance is significantly affected from an application level, and this continues to happen because the MTU of retransmitted TCP does not change.
       UDP is an unsolid transmission mechanism, UDP itself does not have any mechanism to detect packet loss. Some application/protocols over UDP (eg NTP/SNMP/IKEv2) may check whether the expected packet is received and take corresponding actions - such as request retransmission or timeout detection - but cannot detect that the packet loss is caused by the MTU, and therefore cannot reduce the MTU.
       So there is no conflict between the two mechanisms.
</Harold>

> The below announcement is that draft. We would like to work with the community to improve and clarify tech draft.

Some concerns:

- What if a malicious entity able to filter on path would "fragment" the
   packet into tiny bits. It would reduce the MTU of the IPsec link to
   unhealthy size. There should be a minimum defined <Harold>
       You are absolutely right that malicious attacks are really an issue
       that must be considered and we should have a reasonable
       minimum MTU to filter such cases; I will update this to the draft.
</Harold>

- As paths over the internet change, this draft can kick in to reduce
   the size, but I see no method to go back to a larger size once the
   path between the endpoints recovers again.
<Harold>
       What you mentioned is a problem indeed.
       In fact, this is an oversight I made when writing the draft.
       The scheme itself can cover scenarios in which the MTU
       changes - mainly increases in size - this mechanism should
       continuously checks whether the incoming ESP packets are
       fragmented, if the incoming ESP packets are fragmented
       calculate the MTU and notify the peer end again.
       I will describe this explicitly in the next draft update.
</Harold>

- How does this interact with ESP padding ?
<Harold>
       I don't see any obvious problems working with ESP padding
       especially combined with your first concern - minimum-limiting
       MTU to prevent attacks, the ESP padding is less risky;
       Perhaps I should have added some description in section 5,
       stating that ESP tailer (Include padding) should be considered
       in addition to tunnel header length and ESP header length
       when calculating MTU;
</Harold>

- I can see applications just sending a 1200 MTU request "just to make
   it always work", which basically means a few years down the line,
   everyone ends up with reduced MTU. This is what happened with IPsec/L2TP
   where the ppp interface is basically 1200 everywhere.
<Harold>
       IMHO, PPP/L2TP is a bit outdated. At present 4G/5G IP RAN networks are
       basically over Ethernet, with typical topologies as follows:
       UE <-> Radio <-> (Baseband, optional) <-> FrontHaul <-> BackHual <-> Internet <-> Core
       The "Internet" is what we cannot fully control offten, so ESP MTU issues happen from time to time.
</Harold>

Paul

_______________________________________________
IPsec mailing list
IPsec@ietf.org
https://www.ietf.org/mailman/listinfo/ipsec