Re: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY

"Henderickx, Wim (Nokia - BE/Antwerp)" <wim.henderickx@nokia.com> Fri, 25 September 2020 03:57 UTC

Return-Path: <wim.henderickx@nokia.com>
X-Original-To: srcomp@ietfa.amsl.com
Delivered-To: srcomp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4DE803A0F74 for <srcomp@ietfa.amsl.com>; Thu, 24 Sep 2020 20:57:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.595
X-Spam-Level:
X-Spam-Status: No, score=-3.595 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.695, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 R8CNWnbCdVl1 for <srcomp@ietfa.amsl.com>; Thu, 24 Sep 2020 20:57:32 -0700 (PDT)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40106.outbound.protection.outlook.com [40.107.4.106]) (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 A719C3A0F71 for <srcomp@ietf.org>; Thu, 24 Sep 2020 20:57:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lhL+MaFoOgcL4ihk/Wm2T7Dqh1XQOYlvIBvzUvDyQ8Z35Fv+LaZy7VvmUc+JEJ+YVdzfAfhuZ30Dn7w5JiKzQbPJ6vSCb+Dhk5iUcEJ/IYZwgFYRTOmBswuDLhpgqtN4cxoaCC3V08EJj1QNXiV3Neb/YQF3XCzKby6YYDxFEdWdbIDT1DfPeNvGHYaXvm6ut8BuKlh23/ky7jR2lsqT4KqLifPIoSqGdMxpIs57/iJTV8ynllIgGTv3/cLco59YlvAci1g3fYe1giyvwvC0kDU5SjuwcbSD9+rQoYU29ovTqp+Bq1VljacOwbCbdKeDcJpfwzm2qsLjIkaaOuWlBA==
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-SenderADCheck; bh=T/Tqp4lbIaEH23StrfYj80zoLP6dfTeCksWz3/ZJ1ck=; b=hUvsCwQ6jfhWlspC2FzI0pV6s9WrQja77M3O6gV/KYUGfRqJGfBN+wafSljt5+/k8QVhCVpyOgEbKmqtRilWesJYik307HwsTluNZAtyWohfQcztldXvUdhUPtFPB84spSQybJ+Ri9KCHd7kelLZqjhvK0n2njLoMYG/7MhsiZQDk0M8BDY7J2bazBaHMgymdGVo6Sl2mMdgxcVFy6r1rYaSFq6N5KXXc/6/XBAhiDubvinKM8r707ksPecLW+IVZRXSgYNqqHWp7GcbiXZsepvAKx1FzemELqclS9K2S9vwc6ehli3yo2ZrQtzi2rVuurnbPT9HMnZTFeAcGD5hGg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T/Tqp4lbIaEH23StrfYj80zoLP6dfTeCksWz3/ZJ1ck=; b=Blj0C/Rs7ioKMmOFQOrDJpuiAefiEkZwJWiePUseYPD2bUmcUseIntautKgHDMvkRz1+UCyAXXQj7suhGFxjF27fII2DvJgGZ+gtHaYKNq4QGbrnz4UVROVdOsrJx7N/R4CKQDjiOuPl9uzLwYprU+EqGJEM770EofkiYTPa7Ls=
Received: from AM0PR07MB4497.eurprd07.prod.outlook.com (2603:10a6:208:7a::20) by AM4PR07MB3297.eurprd07.prod.outlook.com (2603:10a6:205:9::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.13; Fri, 25 Sep 2020 03:57:28 +0000
Received: from AM0PR07MB4497.eurprd07.prod.outlook.com ([fe80::f89c:f869:aaff:6fa8]) by AM0PR07MB4497.eurprd07.prod.outlook.com ([fe80::f89c:f869:aaff:6fa8%7]) with mapi id 15.20.3433.014; Fri, 25 Sep 2020 03:57:28 +0000
From: "Henderickx, Wim (Nokia - BE/Antwerp)" <wim.henderickx@nokia.com>
To: Ron Bonica <rbonica@juniper.net>, srcomp <srcomp@ietf.org>
Thread-Topic: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY
Thread-Index: AQHWkipa34+LpUZCOkunbJZsyljZ7al4KoUAgACypIA=
Date: Fri, 25 Sep 2020 03:57:28 +0000
Message-ID: <80FA684D-8CC4-4138-B6CC-6694AA96FE2E@nokia.com>
References: <8F9A1F05-413F-4652-BB37-6D7E7190A750@nokia.com> <DM6PR05MB6348C25B8B6124EF22C296ADAE390@DM6PR05MB6348.namprd05.prod.outlook.com>
In-Reply-To: <DM6PR05MB6348C25B8B6124EF22C296ADAE390@DM6PR05MB6348.namprd05.prod.outlook.com>
Accept-Language: nl-BE, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.41.20090700
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2020-09-23T19:06:01Z; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Name=0633b888-ae0d-4341-a75f-06e04137d755; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ActionId=351f2c95-a04a-41ee-9337-1fef359b1ed3; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=2
authentication-results: juniper.net; dkim=none (message not signed) header.d=none;juniper.net; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [81.82.181.214]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 5fc93fe0-3894-4569-004a-08d861071f10
x-ms-traffictypediagnostic: AM4PR07MB3297:
x-microsoft-antispam-prvs: <AM4PR07MB3297EDBAC1554F2A4B284E5083360@AM4PR07MB3297.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YmVexp5gLIaY4t9ftrpGrGKfjcb/5I/kQ0pvrx/I+VanQDWwmOKy6XGsoQnH4Ztu4eBnTEYGys04DD5sqWoVuGj4bIolGdtnXsh6BR4uDRaypHG6Ca+5TQDFR/2CBJK9VDYpjvcTScAiBd4qiZOg5bexSPqpmb96fmry1/lAW4CbNkn3tspubKYmIaM4sICcOtn52bvA6CbtjwzCaLB5pj3v4XXYvlK2JO4oSHClAkAb7mjZD7tRlBERN7iMHFp/NyYCGRZz9pbfnHibge+8R/1d0fBa9BjkdckP8ODOsPAXNksReD7BZ5hrANLW4/U52iOiD4biZLv9k0JO6S4dYA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR07MB4497.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(39860400002)(346002)(66476007)(6512007)(66446008)(8936002)(2906002)(8676002)(64756008)(66556008)(2616005)(86362001)(6486002)(66946007)(186003)(6506007)(110136005)(478600001)(26005)(5660300002)(55236004)(53546011)(33656002)(36756003)(71200400001)(76116006)(316002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: f9wkHrg2r0rMvimMPF6kyDaP73UhNpJVphJCz2qL4SN7VtixsPa3HcxuzBnsenRmEQrMxkLsbvBYv5gLHpV8X90mgttrfLdnjgoeEQ6sevGDK6HAEnuZ51nN0e3PRKdwNXFlCLC9w65+c+oa2RBnF0ramTAJWhtKoerIDWI5sOX6KC6olu8GX5ZS+a+C/ApIqxlNHGDa3eKSrp66z1EGDtKX4NPbDfyWDRV8134TaDhEdRlZFJrT9Rg1JmrJZxkj3vKPJd+yw/QnSy4OmoMMIRgifA0vpPwuow+TqSkkQmSqp7Y1h/VaXoNUap7rNCpe5u44IM5AFEs5jGnCcTIy9Yn1rJjUjxRr7OJWhAzgEwlt0K1ICWgQ6H4p0dNJNLlAEfIPhGP7lvM4eX0uwxqd8AoVa/f4WT622cnGHQut0cN4sRbphJTAS91uyCeXYVE2ukl35owkSHWVJxyvBlKnkTABBpbfLZ9Znr8Bu0fiGssBjVNP0aK9tVL1Df1zjYb0LkRUzONkBQ6Vr1qJ+b9PbYvtgceQARCAQZCchCQ40HRrCJH8LZJ9lOGIh5OHOlunzqW3fnqxk6FkzpqvuO9653dqfWxeM8ycL4xViuVgrDX9hu5oxiidikMVC9Tz9sPrDiZ5Wl2hxiB/aRadM5TxWQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_80FA684D8CC44138B6CC6694AA96FE2Enokiacom_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM0PR07MB4497.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5fc93fe0-3894-4569-004a-08d861071f10
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2020 03:57:28.5623 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6ljVG7ja37+RgP3iKGOI4hKZgp6T1XK+A8A+Jt7WGu8BWx7HYeeHSTzaycnyAtCaGt6UfJObPb+rOkgS+gBRTnG0gtcv173hwjISiaRNeEM=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR07MB3297
Archived-At: <https://mailarchive.ietf.org/arch/msg/srcomp/U5Yb7jEcC2i64TuBuSkCaU41Dvs>
Subject: Re: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY
X-BeenThere: srcomp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <srcomp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/srcomp>, <mailto:srcomp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/srcomp/>
List-Post: <mailto:srcomp@ietf.org>
List-Help: <mailto:srcomp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/srcomp>, <mailto:srcomp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Sep 2020 03:57:34 -0000

I am not implying the expenses of a lookup, but implementations that have fewer will be able to do more with the same die. I think you bring up a god point and we should also asses the complexity of the lookup and use that in the metric.

It might be worth doing this given some scenario’s/deployments and asses this in such context. At least people get a view of what we are talking about

From: Ron Bonica <rbonica@juniper.net>
Date: Thursday, 24 September 2020 at 23:55
To: "Henderickx, Wim (Nokia - BE/Antwerp)" <wim.henderickx@nokia.com>, "srcomp@ietf.org" <srcomp@ietf.org>
Subject: RE: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY

Wim,

I disagree. The metric is misleading because it assumes that:


  *   All lookup are equally expensive.
  *   You can reliably determine how many lookups a compression mechanism requires.

Neither of these assumptions are safe.

Normally, I would avoid discussing any particular compression mechanism in the requirements stage. But in this case, it is convenient to illustrate my point using the CRH.

All lookups are not equally expensive
==============================
When a node process a packet that contains the CRH, it might execute the following lookups:


  *   A longest-match lookup of the IPv6 Destination Address in an IPv6 FIB
  *   An indexed lookup of the 16-bit SID in the CRH-FIB

The first lookup (i.e., the longest-match lookup) is relatively expensive because:


  *   The longest-match lookup algorithm is relatively complex
  *   The IPv6 FIB can be very large

The second lookup (i.e., the indexed lookup) is relatively inexpensive because:


  *   The indexed lookup algorithm is relatively simple
  *   The CRH-FIB is likely to be small


It is not always possible to determine how many lookups a compression mechanism requires.
============================================================================

For example, the CRH draft describes a simple implementation that maintains the following data structures:


  *   An IPv6 FIB that is indexed by a prefix and contains a pointer to the forwarding next-hop table
  *   A CRH-FIB that is indexed by a 16-bit SID and contains an IPv6 address and a forwarding method
  *   A forwarding next hop table that contains layer 2 details

Reading through the draft, you might assume that CRH processing requires the following lookups:


  1.  A longest-match lookup of the IPv6 Destination Address in an IPv6 FIB
  2.  An indexed lookup of the 16-bit SID in the CRH-FIB
  3.  Another longest-match lookup. This time, we are searching for the IPv6 address that we found in the CRH-FIB. Again, we are searching in the IPv6 FIB.

However, this would be a sub-optimal implementation. An optimized implementation would contain the following data structures:


  *   An IPv6 FIB that is indexed by a prefix and contains a pointer to the forwarding next-hop table
  *   A CRH-FIB that is indexed by a 16-bit SID and contains an IPv6 address and a * pointer to the forwarding next-hop table*
  *   A forwarding next hop table that contains layer 2 details


This implementation requires only the following lookups:


  1.  A longest-match lookup of the IPv6 Destination Address in an IPv6 FIB
  2.  An indexed lookup of the 16-bit SID in the CRH-FIB

A third lookup is not required because the CRH-FIB contains a pointer to the forwarding next hop table. This implementation is relatively efficient, because it requires one longest-match lookup and one indexed lookup, as opposed to many others that require two longest-match lookups.

This was a fairly obvious optimization. For any compression mechanism, there may be many optimizations that are not so obvious.







Juniper Business Use Only
From: Henderickx, Wim (Nokia - BE/Antwerp) <wim.henderickx@nokia.com>
Sent: Thursday, September 24, 2020 12:23 AM
To: Ron Bonica <rbonica@juniper.net>; srcomp <srcomp@ietf.org>
Subject: Re: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY

[External Email. Be cautious of content]

I do believe there is value in showing the lookups needed for a certain proposal for srcomp and compare them. The reason is this technology will be implemented by many asic (hopefully) and less lookups will be better. The more you need the more transistors/memory you burn and the result will be less performance in a given package. As such this is an important factor in the comparison of the options in my view.

In other words a solution that does 2 lookup versus 3 will be more future safe.

From: Srcomp <srcomp-bounces@ietf.org<mailto:srcomp-bounces@ietf.org>> on behalf of Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org<mailto:rbonica=40juniper.net@dmarc.ietf.org>>
Date: Wednesday, 23 September 2020 at 21:06
To: "srcomp@ietf.org<mailto:srcomp@ietf.org>" <srcomp@ietf.org<mailto:srcomp@ietf.org>>
Subject: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY

Folks,

The metrics associate with REQ-8-17-FWD-EFFICIENCY are invalid. Currently, the metrics are:


  *   D.PRS(segment list): worst-case number of headers parsed during processing of the segment list.
  *   D.LKU(segment list): worst-case number of FIB lookups during processing of the segment list.

D.PRS assumes that parsing a second extension header is expensive on all ASICs. While it may be expensive on some ASIC’s it is extremely inexpensive on others. Retaining this metric doesn’t optimize the solution for operators. It merely creates an advantage for the ASIC that can’t parse additional extension headers efficiently.

D.LKU assumes that it is possible to determine how many lookups a particular compression mechanism requires. It ignores the fact that the FIB can be optimized to reduce the number of lookups. Furthermore, it fails to make a distinction between longest match lookups and index lookups.

Finally, this requirement should be stated from the network operators perspective, not the ASIC developer’s. The network operator doesn’t care how many headers were parsed or how many lookups were execute. It cares about:


  *   How many packet per second the ASIC can process
  *   How much power the ASIC consumes
  *   How much heat the ASIC generates
  *   How much the ASIC costs

Unless we can develop better metric for this requirement, we should drop it.

                                                                                           Ron





Juniper Business Use Only