Re: [Lsr] Enhancements on flooding topology encoding

Huaimo Chen <hchen@futurewei.com> Thu, 30 May 2019 03:06 UTC

Return-Path: <hchen@futurewei.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 275AA120020 for <lsr@ietfa.amsl.com>; Wed, 29 May 2019 20:06:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=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 awdpcMxTjfpM for <lsr@ietfa.amsl.com>; Wed, 29 May 2019 20:06:23 -0700 (PDT)
Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700108.outbound.protection.outlook.com [40.107.70.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74DE3120018 for <lsr@ietf.org>; Wed, 29 May 2019 20:06:22 -0700 (PDT)
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=xf/UfpYck86xQB5RvLpnjtadW09w3fPIR6gJE5M/RQE=; b=TuG1d7LmlnutZuWbKjRGBZFLVgUpIhbAESeNyFZtis2OON+r8mDyLQX58FIFqxsYV7Nz4sJEzTy8Dt+xGAjmk92Smj4NeSjj46QqOIretLoHcCsN4NH0rKszmik9JuZXewvEKRYDDV0vt6g7NAWoxzzsHso21QMW+g7bI+meHT8=
Received: from MN2PR13MB3470.namprd13.prod.outlook.com (10.255.237.83) by MN2PR13MB2622.namprd13.prod.outlook.com (20.178.251.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.13; Thu, 30 May 2019 03:06:20 +0000
Received: from MN2PR13MB3470.namprd13.prod.outlook.com ([fe80::b125:6fc1:69df:68b1]) by MN2PR13MB3470.namprd13.prod.outlook.com ([fe80::b125:6fc1:69df:68b1%7]) with mapi id 15.20.1943.015; Thu, 30 May 2019 03:06:20 +0000
From: Huaimo Chen <hchen@futurewei.com>
To: "tony.li@tony.li" <tony.li@tony.li>
CC: "lsr@ietf.org" <lsr@ietf.org>
Thread-Topic: Enhancements on flooding topology encoding
Thread-Index: AQHVFivB4g4Z5BLS3EmftFBvGA6vD6aCN6KAgADDdI0=
Date: Thu, 30 May 2019 03:06:20 +0000
Message-ID: <MN2PR13MB34707CF88E4D40EA8A5E2E93A3180@MN2PR13MB3470.namprd13.prod.outlook.com>
References: <MN2PR13MB3470347425388859402DE2CFA31F0@MN2PR13MB3470.namprd13.prod.outlook.com>, <705BB810-F47C-4BCC-996B-2B28FF239C6C@tony.li>
In-Reply-To: <705BB810-F47C-4BCC-996B-2B28FF239C6C@tony.li>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=hchen@futurewei.com;
x-originating-ip: [73.114.233.24]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 7fba7923-e349-4cba-f283-08d6e4abca24
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR13MB2622;
x-ms-traffictypediagnostic: MN2PR13MB2622:
x-microsoft-antispam-prvs: <MN2PR13MB2622605EF13D1B9F1BA51AAFA3180@MN2PR13MB2622.namprd13.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 00531FAC2C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(366004)(346002)(376002)(39850400004)(136003)(189003)(199004)(54896002)(4001150100001)(9686003)(71190400001)(4326008)(71200400001)(52536014)(6606003)(7736002)(5640700003)(3846002)(26005)(66574012)(25786009)(2501003)(102836004)(66946007)(33656002)(11346002)(19627405001)(186003)(53546011)(14454004)(6916009)(6506007)(66446008)(66476007)(66556008)(64756008)(6436002)(6246003)(6116002)(8676002)(446003)(73956011)(55016002)(486006)(91956017)(81156014)(53936002)(2906002)(508600001)(8936002)(68736007)(2351001)(76116006)(76176011)(5024004)(229853002)(256004)(476003)(86362001)(74316002)(99286004)(7696005)(66066001)(316002)(5660300002)(81166006)(236005); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR13MB2622; H:MN2PR13MB3470.namprd13.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: futurewei.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: btLqCfyAwGiinx2lk7mePLnFTuweR15J6/uSD9qCBJI7jF/1XQ6yOC+yVLMrJULHHTU2FcVQyJON/Q29qDacjnivhM1t6YXN3A5JUDyXUBMUIS+bq7PEiaSj8IXtSz/Y9oUeRuv3YwwiRDN32dAANHySU/n6e5SV+J8L0lB29NKAkhvF9HEUkLk5D+AiHf1rxBtmm1Kk9vZpu2O+MmiGFtzU4mszqt6ia2RVZzAuPgNkYnWG08HNxODrS2eyE6uxsi6VMzB9oMoqHJYZMXSdafLJbgnvcH9OghQ5fSgN+3OAxb/ZlPs1I8gKc8TeCrg58BBk2nNMbZlKeIW0303EADtTpxqXvAq1yMBDzMnT24bJsXIrqVuW4XJ0/UXPcijD5652JCk1ENutwsqnF+o8xxvu+RVoqLsamWoKKDNkzOk=
Content-Type: multipart/alternative; boundary="_000_MN2PR13MB34707CF88E4D40EA8A5E2E93A3180MN2PR13MB3470namp_"
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7fba7923-e349-4cba-f283-08d6e4abca24
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2019 03:06:20.0234 (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: hchen@futurewei.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB2622
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/cZ7EE-NcsnmH5ju_yVPMzzZweA0>
Subject: Re: [Lsr] Enhancements on flooding topology encoding
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 May 2019 03:06:26 -0000

Hi Tony,


    Thank you for your comments!

    My explanations are inline below.


Best Regards,
Huaimo
________________________________
From: Tony Li <tony1athome@gmail.com> on behalf of tony.li@tony.li <tony.li@tony.li>
Sent: Wednesday, May 29, 2019 11:20 AM
To: Huaimo Chen
Cc: lsr@ietf.org
Subject: Re: Enhancements on flooding topology encoding


Hi Huaimo,

Thank you for the interesting numbers, but without some understanding of the experiment that you’re performing, we have no way of understanding the point that you’re trying to make.

If we are to make a change, we need to all understand and agree that there is an improvement and that the improvement is worthwhile in terms of complexity vs. gain.

The block encoding that you have proposed seems to require at least one TLV for every other node in a path and thus seems like an extremely inefficient way of encoding a topology. If you have ways of using this efficiently, please explain.

[HC] There is no such requirement. A block of FT (maybe a whole FT) can be encoded in a Block TLV. A path can be considered as a special block of FT and encoded in a Block TLV.

Compressing the path TLV into a bit stream (similar to encoding B) has been proposed, but to date we have not bit off on that complexity.  As noted, the savings that you get decrease with scale, which is unfortunate because at scale is when we need it.  So far, the consensus seems to be that this is not worth the effort.

[HC] It seems that there is no issue on scale.

Regards,
Tony



On May 29, 2019, at 8:05 AM, Huaimo Chen <hchen@futurewei.com<mailto:hchen@futurewei.com>> wrote:

Hi Tony,


    For the three encodings below,

  *   Encoding A: Plain Path TLVs, where each node index uses 2 bytes,
  *   Encoding B: Compact Path TLVs, where each of node indexes in Path TLVs has the same size given by a field in the Area Node IDs TLV with L set to one, which is the size (in bits) of the maximum node index value,
  *   Encoding C:  Block TLVs,

it seems that C is more efficient than A and B in general, B is more efficient than A.
For example, for representing 63 nodes flooding topology (FT for short) of a binary tree in IS-IS, some comparisons among three encodings are listed in the table below (In case that the formats may be messed up, a .pdf file is attached).

Encoding
Bytes used
Comparisons
A (Plain Path TLVs)
248
179/248 = 0.72 (72%)
B (Compact Path TLVs)
179
121/179 = 0.68 (68%)
C (Block TLVs)
121
121/248 = 0.49 (49%)



    From the table, we can see that 248, 179 and 121 bytes are used for representing the FT by A, B and C respectively. 121/248 = 0.49 (49%) means that C uses about 49% of the flooding resource that A uses. 121/179 = 0.68 (68%) means that C uses about 68% of the flooding resource that B uses. 179/248=0.72 (72%) means that B uses about 72% of the flooding resource that A uses.

    From this example, we can see that C is more efficient than A and B, and B is more efficient than A.


Best Regards,
Huaimo
From: Tony Li [mailto:tony1athome@gmail.com] On Behalf Of tony.li@tony.li<mailto:tony.li@tony.li>
Sent: Wednesday, May 15, 2019 11:55 AM
To: Huaimo Chen <huaimo.chen@huawei.com>
Cc: lsr@ietf.org
Subject: Re: Enhancements on flooding topology encoding





Hi Huaimo,





In one way, a TLV called Node Index Size TLV is defined. Its value field of one octet contains an index size (i.e., a number of bits). When this TLV is included in an LSP/LSA containing Path TLVs, all the node indexes in the Path TLVs are represented using the number of bits given by the index size in the Node Index Size TLV. The index size is the minimum number of bits needed to represent the maximum node index in the Path TLVs.





Yes, Tony P. also made this suggestion quite some time ago in a private communication.  We also observed that no separate signaling of the size is actually needed, as each node can look at the number of indices listed in the Node Id TLV and take ceil(log2(# nodes)) and use that many bits for each index.



In another way, 5 bits of the Reserved field in the IS-IS Area System IDs TLV and OSPF Area Node IDs TLV with L set to one indicates the index size that is used for all the node indexes in all the Path TLVs included in every LSP/LSA. The index size is the minimum number of bits needed to represent the maximum node index in the area.





Yes, you could do that too.  That’s for ‘free’, assuming that you agree that the L bit is required.






In another encoding, Block TLVs are used to encode the flooding topology. A Block TLV represents a block of the flooding topology.  The value field of a Block TLV starts with 5 bits to indicate the index size, which is followed by the index of a local node, the number of adjacent nodes (in 3 bits), and the indexes of the adjacent/remote nodes of the local node. This part is similar to the one in a router LSA to represent the part of the topology from the local node to the adjacent nodes of the local node, which can be considered as a block of the topology in one level. This block can be extended to multiple levels. Each of the adjacent nodes has an extension flag bit E.  An adjacent/remote node with E = 1 is considered as a new local node, and its adjacent nodes are added. This encoding seems more efficient.





A bold claim.  Do you have any proof for this?  It seems counter-intuitive, as for a bi-connected node, it would seem that its index must appear at least twice, once per link.



The advantage of the path encoding is that for almost all nodes, an index can appear a single time.



Example:



IS-IS Instance: Amun VRF: default
  Level 1:
    Path: 3 16 8
    Path: 0 18 9 10 11 17 15 6
    Path: 0 13 1 19 5 4 14 8
    Path: 0 3 6 7 2 8 12 0



Tony





<Enhance2FTEncode-2019-5-29.pdf>