Re: [mpls] Concerns about ISD

Haoyu Song <haoyu.song@futurewei.com> Mon, 18 April 2022 23:51 UTC

Return-Path: <haoyu.song@futurewei.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 38BF23A16BE for <mpls@ietfa.amsl.com>; Mon, 18 Apr 2022 16:51:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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, HTML_MESSAGE=0.001, 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=futurewei.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 334yxt-H8Sc4 for <mpls@ietfa.amsl.com>; Mon, 18 Apr 2022 16:51:17 -0700 (PDT)
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2072f.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8a::72f]) (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 1C3AF3A16A9 for <mpls@ietf.org>; Mon, 18 Apr 2022 16:51:16 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+PQDtR9w29qSXnDXw2k9UBrE8QWco9gA0oqxWocO608GLnssu9mDinGgfmz+j5hWcJzvq/p/2Sx9VLHlUMobU5dz0vmPwwkJwpWBnhRMx5H7iXBmmQqTE2xZlEwwDzXdTSFv8gEurIoU6COzCxYloF4fLTAFijeOoY+z+BDFvloFK5Ljw6YAB8Cc9Xs8cB+hicl9g6LQ0VCJ9WJgPWupL8xj2NC2ank82vyh6PWsNhv5nuiYA3OxYXyW+5vFkOS+JbyQhl0yyDU5fx2Ers5533aYxIJOr5wJuKQahLpqQNuKCJaujTo0QUexQcGyQQh8WvDZ97QFIQzzznZnhxRzg==
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=R/aNR3K9XW+zgJQP8fkPBVtJpJ2S/z/w2fPEObr4Vq8=; b=LidpQVoiuy4oInHLdh92oFUydkSrsatGjCxosB5m8X6Idq4SNTxVl9GOFS489GJHA2XX2acATeGxXUZkE2gQf/2Jho96vhNhBcQA6022KctIf8etUSI/XT2rLdsU03g/ttCzpQCOnnHTtHYXf5mWLbfSoMVtLbjh/zFvlZZwICZkrE+X1BhjHv/0KHj05uOMTGyzotK3fADl0C1HfEqWc4xvkAHsAuQPtEAgrmhmgWJqzGAiCr2K+XpZbb2wy1nyj/249eRDPalYrCt23wJAz0R0/WjKQlHPL/uB6LdDoCYC1PJOlmK3wiqS5zzHcbJdDME/GBZS3qtJIEGatSyuSQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=futurewei.com; dmarc=pass action=none header.from=futurewei.com; dkim=pass header.d=futurewei.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Futurewei.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/aNR3K9XW+zgJQP8fkPBVtJpJ2S/z/w2fPEObr4Vq8=; b=Vt9CvmEIhbg2f6LuCNqMOsZ6SJoFdbKC+E3yaJbD0eluktuVObNNoxXUnhRO1ES9hwqwr7lzujIvBABJnOdp+psW1dkOjvdDTSDer57l2fYxjDKfJaEXRnZLv2jEvcRJAsQ9Avm9VJ5qLLJJBuWU2vFkfVCzcw/jMpJGnXkN7JY=
Received: from BY3PR13MB4787.namprd13.prod.outlook.com (2603:10b6:a03:357::13) by PH7PR13MB5958.namprd13.prod.outlook.com (2603:10b6:510:15c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.12; Mon, 18 Apr 2022 23:51:07 +0000
Received: from BY3PR13MB4787.namprd13.prod.outlook.com ([fe80::e8d4:7243:fc90:1ccb]) by BY3PR13MB4787.namprd13.prod.outlook.com ([fe80::e8d4:7243:fc90:1ccb%6]) with mapi id 15.20.5186.013; Mon, 18 Apr 2022 23:51:07 +0000
From: Haoyu Song <haoyu.song@futurewei.com>
To: Tony Li <tony.li@tony.li>
CC: John E Drake <jdrake=40juniper.net@dmarc.ietf.org>, Tianran Zhou <zhoutianran=40huawei.com@dmarc.ietf.org>, "mpls@ietf.org" <mpls@ietf.org>
Thread-Topic: [mpls] Concerns about ISD
Thread-Index: AdhKc4fdvDv9lzMNTfy5c++8iNI9iwAFlCaAACI+zQAAElacgACACe8AAAMwSQAAA2mogAAQuiYAABYeS4AACDOSgAABJpkAAAwjTIAAGwXoAAAX3NOgAE5MNAAAFZNHwAAI4aFAAAJwyYAAADi+cAAAowwAAAAxoxAAAXaagAAAGigAAAJG2gAABnV2AAAEn7kAAIOJKRAAAxCVAAACz7wgAANdboAABojbwA==
Date: Mon, 18 Apr 2022 23:51:07 +0000
Message-ID: <BY3PR13MB47870541CD630290759A43D49AF39@BY3PR13MB4787.namprd13.prod.outlook.com>
References: <6cc272447d2f4c779e85d5c42d3b3c6c@huawei.com> <8623637D-A32E-47A4-B5FC-4D2CF40BEDD1@tony.li> <6199e0e886f9437c95ef9b70719b00ec@huawei.com> <BCFD3F4A-36D6-47C2-B907-FC40B402F97C@tony.li> <3fb1f261ddff48deb0c2ea083cdbd16f@huawei.com> <6B96F21B-9331-4FA8-AD7B-84A4CA8B6FAB@tony.li> <903c57a48280454091495673ec2fe275@huawei.com> <BD5C1BE7-4633-4B51-BAC1-B2AE1C537F36@tony.li> <ad6b8c42b0aa4880b9dee02516f5e46f@huawei.com> <F5BB2CEB-CC8C-4E71-A2E7-B4212878C3B1@tony.li> <aa9c4b913d844410b2af90c8db78c194@huawei.com> <BY3PR05MB8081937B52E657713E8293BFC7ED9@BY3PR05MB8081.namprd05.prod.outlook.com> <a29c96be774845e582a66700d2264f7b@huawei.com> <BY3PR05MB8081870EF67C551727BBE2CFC7EC9@BY3PR05MB8081.namprd05.prod.outlook.com> <d5521b3972dd43e38276afbbdc7c2bda@huawei.com> <BY3PR05MB80813C7CAD7F2C12C36FB513C7EE9@BY3PR05MB8081.namprd05.prod.outlook.com> <BY3PR13MB47879EB8A582437DE936688C9AEE9@BY3PR13MB4787.namprd13.prod.outlook.com> <C493D0B8-4B57-4D19-BC27-70ABD7F50356@tony.li> <BY3PR13MB47878B227A37AAA06625194B9AEE9@BY3PR13MB4787.namprd13.prod.outlook.com> <0318B3A3-2884-4FD6-B5EF-377481D2657B@tony.li> <BY3PR13MB4787752FB6D147281A7150789AEE9@BY3PR13MB4787.namprd13.prod.outlook.com> <602D6128-3BE3-4A2D-B5C2-019AE0FADF09@tony.li> <BY3PR13MB47876188B5927A51BD4F4E739AEE9@BY3PR13MB4787.namprd13.prod.outlook.com> <BCB99042-ECA3-40C6-8581-FA1656DDF987@tony.li> <BY3PR13MB4787468DAA96610B9933E1659AF19@BY3PR13MB4787.namprd13.prod.outlook.com> <EB04096F-70B7-4FF0-973F-6C7C1FDDE837@tony.li> <BY3PR13MB47874EBD4E397AB18CD8AF819AF39@BY3PR13MB4787.namprd13.prod.outlook.com> <7451CC1D-88A7-4D13-9BE5-44BCBE95337A@tony.li> <BY3PR13MB478725F22B60E681ABF94BC79AF39@BY3PR13MB4787.namprd13.prod.outlook.com> <90F25F5A-E953-45F4-A594-CC56DA796309@tony.li>
In-Reply-To: <90F25F5A-E953-45F4-A594-CC56DA796309@tony.li>
Accept-Language: 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=futurewei.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1198df94-bb09-4724-7b48-08da21964e92
x-ms-traffictypediagnostic: PH7PR13MB5958:EE_
x-ms-exchange-atpmessageproperties: SA|SL
x-microsoft-antispam-prvs: <PH7PR13MB5958B989A00D60A5275F71529AF39@PH7PR13MB5958.namprd13.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 5nuNCBDuzvPUbfknYLIfQZPMKIMoOSX8O0AeeNVEE4u/RIz9UnK7S79ds+ZpDWWtpkyRKKir7K8fcr5jELp1lfNtggPAXiRK2q7YYUfyXfyh/nHOyt5quGGsTZHMcwUDhmFdDDPr6IjLHQcBOVhEq/h6PByZ8hDunE+gBUGx8z2htGm7ACxRkNDz0Obp1LKpwXBBlHSDpJDGvU1f1jyde7sg4OSPg3Ca3EAuySlz7Ll8yaMDXMGqvvT+QtimFSrj6I5mMyR4/73ju7Doc0auB3CnDefVjpa8HXTpd5Ys6HOIv6mfn9oWDd5BdbtY2LF/w1Yz8zoCrjEGtBT10hxe7A2LSyi/Asg91MaievpBqdePcGmgm7f1G+Ql1ltdm5h2Kagmc6W6srGZKB9xB9TuFXkc59t3JthltMwE8TzzXZ65P5b0PRt7hoBRg9Lfdsjz4Aq9TVSPeL4JLeJNoLM+LdjwsWB/nxLDbrNC7XteM9H1tMrEgdNgFAG9RYEdGvLI+a0RDl6XQP7fRF0578ANEMd/7+iiBgYXw7MOA1r8n65qPHmqLOqMmY/O8AO/308lZoFJRQpzglZ66HUjNfhP0m5lCap5AXWByLzIl+ocoQbzg570cHiE2ggh85af1diEnBv4Y9g12+8glHCeokZQjxbiPVa08hoNLJwh+qtoVRUGZloRi55YRNme0BZEQ12dIfvqVuK9VMRean6isqCgCEjAtNFEiRvvMVJoU4K/LE2wHvs5kyRCc3dZHnM9pR9K
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR13MB4787.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(33656002)(44832011)(71200400001)(508600001)(83380400001)(316002)(6916009)(38070700005)(7696005)(122000001)(38100700002)(53546011)(6506007)(54906003)(186003)(9686003)(55016003)(86362001)(8676002)(8936002)(4326008)(66476007)(52536014)(66556008)(66946007)(66446008)(5660300002)(64756008)(76116006); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 2
x-ms-exchange-antispam-messagedata-0: ClKbMqZ/h9bur0ILxnYldaVJWuS1FAqWZfG9FBuwy9LpQhOIhXx42rELTx6tu5AXM7csfUcSOhtYpDa2flPM/PFbkFd7rsOD3XYP3zNwv0V7TXfH+AQSUt89bw9oNzXwL4ylnbDG5mn2j6rpnIyapQbU3aM8Z5orD3d/iiFbrPicP45ku1tvQEvHVZ94W1mMDdzN3ccmuP+Q6n6DyfywryOHU42nETNw2aRcoSpQxqvNBSFslpaAo34x1vg4U48d3iABbDynUSsyuh9uUNd/36k84kf7e23lxAVZhgG63Jz2WfXCtShnO3UMqMPHTybHSGFBuwvToEzIN253vsL+SEus3nfhhHECpkf2+28qBgcXNQZSJP77mxLz2hO5fQimBuFrmwI/s2FrAfvRbvw3PCz8CAZvuB6Jfa2Neulqgd2mIgNfEIwM8+mlQYm1AzIZZtLbWi/4wj0bUwbT+r6FWynBj5j+OyOh69VgV03zm4dvupY2zf9W6WSULYq3/AN7LWGl4zeq/9XCvkjm8cazL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jUHb+OoxqXW6dHhlrXJgPLcdZ8icoUTHyf9XQ87boyO7kQZ3aIuP3/Uw0GXVEX8yjWoVPsktmZbIJrHpQ2Vj+zkik6E5tZ3+iNheMaTF0U/ZTeKVdNwKdUJV20UzuiROm8zZD+xxIt4f1m5aIcwTbXqyvwWHfFq/T4PcYZXTg1aTQVPdhD/sZpCHH
x-ms-exchange-antispam-messagedata-1: Eg9M5sL+tA4CcA==
Content-Type: multipart/alternative; boundary="_000_BY3PR13MB47870541CD630290759A43D49AF39BY3PR13MB4787namp_"
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY3PR13MB4787.namprd13.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1198df94-bb09-4724-7b48-08da21964e92
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2022 23:51:07.3223 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 0fee8ff2-a3b2-4018-9c75-3a1d5591fedc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: PjtM+h8IEhwzYbzMunwVOuOheDTQdNreE+SVLX1xKgnTDJtBhAte9lbXqleWHhdXu+l5sM4DqR1CfG9Cxdjhjg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5958
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/UsNq5htz4wMOd8oP_m6VtRiTBqQ>
Subject: Re: [mpls] Concerns about ISD
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Apr 2022 23:51:23 -0000

Please see inline [HS2]

-Haoyu

From: Tony Li <tony1athome@gmail.com> On Behalf Of Tony Li
Sent: Monday, April 18, 2022 1:32 PM
To: Haoyu Song <haoyu.song@futurewei.com>
Cc: John E Drake <jdrake=40juniper.net@dmarc.ietf.org>; Tianran Zhou <zhoutianran=40huawei.com@dmarc.ietf.org>; mpls@ietf.org
Subject: Re: [mpls] Concerns about ISD


Hi Haoyu,


[HS] Here “expensive” means the performance impact. NP is struggling to squeeze every cycle out of the processing, since the throughput is reversely proportional to the number of cycles a packet can finish its processing, and NP’s throughput already falls behind ASIC. Engineers need to handcraft the code to save a bit here and there. There’s never enough. The cycle is really a precious resource which can’t afford to squander.


First off, network processors and switches are ASICs.  It’s all just silicon. How you get there may vary, but at the end of the day, the performance that you get out given a specific process technology corresponds directly to the effort that you put into optimizing it.

Yes, you’re correct, every cycle is precious.  Memory reads are also precious. And in most every modern architecture, a memory read is far more expensive than an ALU operation. For example, in my history, memory reads took around 12ns and operations took 1ns.  Thus, spending a memory read to save a compute operation was a bad trade-off.

As a result, memorizing the memory reads is far more important that worrying about operations.

[HS2] You are talking about accessing DRAM perhaps. The embedded SRAM today can be read in 1ns, and such header processing operations would use SRAM exclusively if memory is needed.

Yes, I have.  The memory reads for parsing a header chain are extremely high.  No thank you.  The bandwidth requirements for the header chain are extremely high.  No thank you.

[HS] Not sure what you mean here. In ASIC, memory access is really fast. In software, every instruction and data need to be read from memory/cache. The more “if” in the code, the more memory accesses. And why header chain parsing requires higher bandwidth?


I’m sorry, but that’s simply not true. Memory accesses are limited by SRAM cycle times. If it’s in DRAM, it’s far worse than that. That is an order of magnitude higher than ALU operation times. Yes, instructions do need to be fetched. This is why, in some architectures, there are multiple operations per instruction.

Header chain parsing requires more bandwidth because you’ve distributed all of the information over memory.  Let’s look at the example again:

EHI: 4 octets
HEH: 4 octets
Entropy: 8 octets
GISS: 8 octets

Total: 24 octets

This requires that we perform at least 4 reads just for parsing. There’s two more reads to get the EL and GISS values into registers.  And this is again assuming that all PSD is readable. If your architecture doesn’t keep that much of the packet in its context, you’re in tough shape.

If we look at FAI:

AI: 4 octets
NFFRR: included in the above, so 0 octets
Entropy: 4 octets (30 bits, plus overhead)
GISS: 4 octets (30 bits, plus overhead)

Parsing requires 1 read. Again, there’s two more reads to get the EL and GISS values into registers, so that’s equal.

[HS2] The chip keeps the header buffer in SRAM/register, so the access to it is at the same speed of the system clock.

Well, I prefer proposals where there is more flexibility.

[HS] Header chain is more flexible and extensible. It’s used for all the headers AFAIK.


Except that now you’ve decided that SOME operations get taken out of a fixed number of bits, not out of the header chain.  And once we’ve used that number of bits, we’re stuck, back having this same argument again in 10 years.  No thank you.

[HS2] An 8-bit field can support up to 256 extension headers. I think it’s more than enough for data plane functions.

Tony