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

Ron Bonica <rbonica@juniper.net> Thu, 24 September 2020 21:55 UTC

Return-Path: <rbonica@juniper.net>
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 ABBBD3A03FB for <srcomp@ietfa.amsl.com>; Thu, 24 Sep 2020 14:55:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.813
X-Spam-Level:
X-Spam-Status: No, score=-3.813 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.695, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net header.b=Vt7Hphgu; dkim=pass (1024-bit key) header.d=juniper.net header.b=R07Pk68E
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 67BE-MWTLFjv for <srcomp@ietfa.amsl.com>; Thu, 24 Sep 2020 14:55:01 -0700 (PDT)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 782583A03F8 for <srcomp@ietf.org>; Thu, 24 Sep 2020 14:55:01 -0700 (PDT)
Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08OLr8d7021999; Thu, 24 Sep 2020 14:55:01 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=PPS1017; bh=PlLH8s4Fp0v4c31gahdyIIe9bKdGT0VTaLqBt8mxOhg=; b=Vt7HphguHyO7XqFNNkgLxVXTt0GAnSfetd88eeOn64Nvo+axwu9ieICeBwdCaBO4/3DL yPmQLzegs2faSwG1zxEM0PUjHJfD7tmpnAZOzKMMxaKsWR+3oNUU3UR5zOrP8WXZTyv/ 3Cbm9KrLSxv3C5J2MaAYwrTIB4fSdaKfyb28ubR4ANCPDD6A6VS88BP1PBiX30KUGiqx D+sxzBdYA4HdSEzlsZFm556HNgDoJJRDrMLkHmxOnLsSGNfvlCaDrA/rUD86yf2QJHyU zdhBzglwCHfkFJg2T4D0OgRSo3XEWOfEVM3jHLDGAoNywb8jGPvmV5TaqBntdlM3pAUn +g==
Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2173.outbound.protection.outlook.com [104.47.56.173]) by mx0a-00273201.pphosted.com with ESMTP id 33r6sau5kp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Sep 2020 14:55:00 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=huZLxxZsNDw97HhPXUfL/UO6+DTFs+qmBXyaHsK1gPGxWxKBcCBW6Sc0k7jMO9yP1RFjEXRvh6hIWd8WR4Ts6ZXuq26KNHkA35CnhK//46YWfQbwUXf3Aaw8qV1vLCc8pZxA+uJDBQhDZe8AsyH3H4PPWpYtq1hoYuK/4kDnweODPXZzbyMOsC4Zt3jfsnSqPmdR27f+aGCjNw3NuNAac0Tf4/2bg5R4pUbn6P7Q5eLEezCsa5HYMBRR/xfGY8VK2X2kEprSJ36AE54FScDEs/j+H9Q0ORvTq9iZ82MNHzMfKPahYoaJqExd19mU3fW/InNCYCTmBrUggOMEMLNuOg==
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=PlLH8s4Fp0v4c31gahdyIIe9bKdGT0VTaLqBt8mxOhg=; b=RBVVnYYUH0dEkaCxBvg3kkykZE4OVQEihvES8sPynJTjZMNmJ9tIZ0qLuXiFVySnvk/k458Dg4GQuabqhDUWfN26+9pmfKntVCXvHwO641pI1ve8IypaF92nm6gu12cOi9Cbs5ntGbPsJUhnO63Zi9OzdiVDXIF7dt1aigeKUJNo7yo9A60up55SIDlO4a0eyOienHdG62p+gFK3iAiK4AIKg0X83XwpAVjZSVSK20+QoJdN7adA8jCBRGOoy8A1NGWDzknBLLYZ78m6jdhuCWt8hPnIAfkaAMD8i8FKlY0UeoWConQ7P8CyEcLX7mdezwFRB6mdGAQuCYm1Fhq/Qg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PlLH8s4Fp0v4c31gahdyIIe9bKdGT0VTaLqBt8mxOhg=; b=R07Pk68ET9EwUzfCW6Zam3YYMukjYuDMLAmXHJq5HZFmu8PYnj2/EqS4WNJYJY3iDEj++P7feXp6DE+Fby7zy9OKccYY16j8C95DeTqg4yP7AUOTIaduA/sxoS67Uaqey3xVdTHd0YPDqPel7JkKrW99Ef+EXzdDQ9C38mPDP9c=
Received: from DM6PR05MB6348.namprd05.prod.outlook.com (2603:10b6:5:122::15) by DM6PR05MB6651.namprd05.prod.outlook.com (2603:10b6:5:124::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.4; Thu, 24 Sep 2020 21:54:58 +0000
Received: from DM6PR05MB6348.namprd05.prod.outlook.com ([fe80::1113:203d:92a0:923]) by DM6PR05MB6348.namprd05.prod.outlook.com ([fe80::1113:203d:92a0:923%6]) with mapi id 15.20.3412.020; Thu, 24 Sep 2020 21:54:58 +0000
From: Ron Bonica <rbonica@juniper.net>
To: "Henderickx, Wim (Nokia - BE/Antwerp)" <wim.henderickx@nokia.com>, srcomp <srcomp@ietf.org>
Thread-Topic: [Srcomp] Comments on REQ-8-17-FWD-EFFICIENCY
Thread-Index: AQHWkipa34+LpUZCOkunbJZsyljZ7al4KoUA
Date: Thu, 24 Sep 2020 21:54:58 +0000
Message-ID: <DM6PR05MB6348C25B8B6124EF22C296ADAE390@DM6PR05MB6348.namprd05.prod.outlook.com>
References: <8F9A1F05-413F-4652-BB37-6D7E7190A750@nokia.com>
In-Reply-To: <8F9A1F05-413F-4652-BB37-6D7E7190A750@nokia.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.5.0.60
dlp-reaction: no-action
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: nokia.com; dkim=none (message not signed) header.d=none;nokia.com; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [173.79.132.205]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: a0da072c-eae4-457e-43c8-08d860d47b23
x-ms-traffictypediagnostic: DM6PR05MB6651:
x-microsoft-antispam-prvs: <DM6PR05MB6651EB4A528FB806EFCF7012AE390@DM6PR05MB6651.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:6430;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 7Iu1lMlT7uSxl7tbLKycnShUJVlrPrRcRLTDrAGh4r7q1N8SQIWCduo6MgoDsLLpzQ1AH4BVs1pem44uHWJZpF0CU9jGBQmfIPiXTkviuXA4wZ/LCNHyef9xtvHOvgJ7iEzH/tdmq6IyHr7sJ4MhLl+kMiNwS7Sy5GxKY341OnZSZo99gVhwdsRCCTtCMNhIAIY91zRyCbv165H8e7J/gzLO19fj3zdsM2b1QzjTWSWa/Zug46wbtaY6Y6zbs3YIyeQLjc4OuFG9Mtveh0yEpbSGGzVFbost+mxYisKNvNMYy0rZYOxs/Y7zSJrfcNH1C8GLxkVaQVhvD6bJguw/UA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR05MB6348.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(136003)(346002)(366004)(8936002)(33656002)(66476007)(53546011)(52536014)(110136005)(478600001)(6506007)(296002)(5660300002)(76116006)(64756008)(66556008)(9686003)(316002)(66946007)(26005)(66446008)(71200400001)(8676002)(86362001)(7696005)(186003)(2906002)(55016002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: w5pLfBMt/dZxK/TQ5fuCzVawAzgUTAXzNmFtxPrgla1mB5ieR8KKFFrtDjAhMui4/3hMH2TepfQsbEm9n9hsaGKSSpEwpg6apz08J/YUjQQaYc5KdsQxzsSQ5pH6ZrLXpSTtjlKGcGwuRV/UAvmL5C+qUHi4NIUibmIbVDveIKUEWFTfEyw8LW4BRv9yXfXOZBElwjznqyn6YLNwKRxeC7EV/vLHYtuR/BMIUZB6PdYC5R9K/J6TD4QkxhqCWrSGaZX0+jXEG6BbJsL5giUnMcx+JyGuGtGkjqKipN1dxEIfWdwk4RRM4p7ZRfjGiK4HbGOfTTNGp2DSiLI30175wvzvPvXhv/sQMtrbqNndB9jKwP49PH6AOQCV+JOmWPpwu1aO3X2f9Y9HIYQ8o4esHetamEinLn3I2QkHxzcWkOoaFf1sEGCON+GyH9tKNCMqrQjPbtQhdgEeSiIP5aXUezY5KULDFW1jo7TCYcngz7awvimuYhgN0TbxKwEFa8NnaGeefOoMNb8lxfZcRmexIXcavezdTrfSybAn9B86l0XCkTJ1vxyeezDl3vPDd0Hxlseq8g9xI6VkUDjKa6mY31R6LflhN3bKrXT+BPbgFofylTlGTdLaxr2FA/o9jG26oNWr5kE/IsN/XT9/dOPeVQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_DM6PR05MB6348C25B8B6124EF22C296ADAE390DM6PR05MB6348namp_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR05MB6348.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a0da072c-eae4-457e-43c8-08d860d47b23
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2020 21:54:58.7417 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: So4kqMPvtjZePuoX3K5+zJsb52HX8PuBTbIazWWTF9R/0LZSffIK1ubMaifoh1Dyg+ZjqupSPxkTua83FBm+0w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB6651
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-24_18:2020-09-24, 2020-09-24 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 mlxlogscore=999 lowpriorityscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 impostorscore=0 adultscore=0 mlxscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240156
Archived-At: <https://mailarchive.ietf.org/arch/msg/srcomp/rh9y8YdYOSik7cQ2GoNoh8eFHCY>
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: Thu, 24 Sep 2020 21:55:04 -0000

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