Re: [bess] Encoding a 20 bit label in a 24 bit field.

Zhuangshunwan <zhuangshunwan@huawei.com> Tue, 16 October 2018 01:37 UTC

Return-Path: <zhuangshunwan@huawei.com>
X-Original-To: bess@ietfa.amsl.com
Delivered-To: bess@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 10A99127AC2 for <bess@ietfa.amsl.com>; Mon, 15 Oct 2018 18:37:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 XyMahwkebzf8 for <bess@ietfa.amsl.com>; Mon, 15 Oct 2018 18:37:03 -0700 (PDT)
Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 026F012785F for <bess@ietf.org>; Mon, 15 Oct 2018 18:37:03 -0700 (PDT)
Received: from nkgeml414-hub.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 5A5F7394D5E2F; Tue, 16 Oct 2018 09:36:58 +0800 (CST)
Received: from NKGEML515-MBX.china.huawei.com ([fe80::a54a:89d2:c471:ff]) by nkgeml414-hub.china.huawei.com ([10.98.56.75]) with mapi id 14.03.0399.000; Tue, 16 Oct 2018 09:36:54 +0800
From: Zhuangshunwan <zhuangshunwan@huawei.com>
To: "Jakob Heitz (jheitz)" <jheitz@cisco.com>, BESS <bess@ietf.org>
Thread-Topic: Encoding a 20 bit label in a 24 bit field.
Thread-Index: AdRkxCtHf3jUpftBTCqhT2pNBUyBrwAJXZGwAAEes/AAAEi+QA==
Date: Tue, 16 Oct 2018 01:36:54 +0000
Message-ID: <19AB2A007F56DB4E8257F949A2FB9858DC48BECC@NKGEML515-MBX.china.huawei.com>
References: <3bca2ecfacc3489b92f451e34a99d20f@XCH-ALN-014.cisco.com> <19AB2A007F56DB4E8257F949A2FB9858DC48BE2E@NKGEML515-MBX.china.huawei.com> <0c81ce2fc9004d78ae3e657e9acaeef4@XCH-ALN-014.cisco.com>
In-Reply-To: <0c81ce2fc9004d78ae3e657e9acaeef4@XCH-ALN-014.cisco.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.130.202.166]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/bess/mczfPBZ5YHyO5xCi12UbYhBITnU>
Subject: Re: [bess] Encoding a 20 bit label in a 24 bit field.
X-BeenThere: bess@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: BGP-Enabled ServiceS working group discussion list <bess.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bess>, <mailto:bess-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bess/>
List-Post: <mailto:bess@ietf.org>
List-Help: <mailto:bess-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bess>, <mailto:bess-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Oct 2018 01:37:06 -0000

It looks good to me. I have not found any specific purposes of these bits in RFC7432. Maybe I missed something.

Thanks, 
Shunwan

-----Original Message-----
From: Jakob Heitz (jheitz) [mailto:jheitz@cisco.com] 
Sent: Tuesday, October 16, 2018 9:24 AM
To: Zhuangshunwan <zhuangshunwan@huawei.com>; BESS <bess@ietf.org>
Subject: RE: Encoding a 20 bit label in a 24 bit field.

How about:
The lower order 4 bits SHOULD be sent as 0 and ignored on receipt.

Regards,
Jakob.


-----Original Message-----
From: Zhuangshunwan <zhuangshunwan@huawei.com>
Sent: Monday, October 15, 2018 6:02 PM
To: Jakob Heitz (jheitz) <jheitz@cisco.com>; BESS <bess@ietf.org>
Subject: RE: Encoding a 20 bit label in a 24 bit field.

It is good to make this explicit. This ambiguity has led to some unnecessary interworking problems.

Should we also need to explicitly define the "bottom of stack" bit in the low-order bit of the 3-octet label field?

Thanks,
Shunwan

-----Original Message-----
From: BESS [mailto:bess-bounces@ietf.org] On Behalf Of Jakob Heitz (jheitz)
Sent: Tuesday, October 16, 2018 4:21 AM
To: BESS <bess@ietf.org>
Subject: [bess] Encoding a 20 bit label in a 24 bit field.

We have proposed the following erratum for RFC 7432.

Opinions?

Regards,
Jakob.


-----Original Message-----
From: RFC Errata System <rfc-editor@rfc-editor.org>
Sent: Friday, October 12, 2018 12:37 PM
To: Ali Sajassi (sajassi) <sajassi@cisco.com>; raggarwa_1@yahoo.com; nabil.n.bitar@verizon.com; aisaac71@bloomberg.net; uttaro@att.com; jdrake@juniper.net; wim.henderickx@alcatel-lucent.com; db3546@att.com; aretana.ietf@gmail.com; martin.vigoureux@nokia.com; Giles Heron (giheron) <giheron@cisco.com>; nabil.n.bitar@verizon.com
Cc: Krishnamoorthy Arumugham (karumugh) <karumugh@cisco.com>; l2vpn@ietf.org; rfc-editor@rfc-editor.org
Subject: [Technical Errata Reported] RFC7432 (5523)

The following errata report has been submitted for RFC7432, "BGP MPLS-Based Ethernet VPN".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata/eid5523

--------------------------------------
Type: Technical
Reported by: Krishnamoorthy Arumugham <karumugh@cisco.com>

Section: 7

Original Text
-------------
Clarifications to following sub-sections:
Section 7.1
Section 7.2
Section 7.5


Corrected Text
--------------
Section 7.1:
Add below text to the section 7.1 regarding the encoding of MPLS label:

"The value of the 20-bit MPLS label is encoded in the high-order 20 bits of the 3 bytes MPLS Label field."

Section 7.2:
Add below text to the section 7.2 regarding the encoding of both the MPLS label fields:

"The value of the 20-bit MPLS label is encoded in the high-order 20 bits of the 3 bytes MPLS Label field for both MPLS Label1 and MPLS Label2."

Section 7.5:
Add below text to the section 7.5 regarding the encoding of ESI Label fields:

"The value of the 20-bit MPLS label is encoded in the high-order 20 bits of the ESI Label field."


Notes
-----
MPLS label is a 20-bit value and is stored in a 3 bytes field in a packet. The 20-bit MPLS label value is generally stored in higher order 20 bits of the 3 byte label field. The exact encoding to be followed for storing MPLS label values are not explicitly mentioned in the RFC 7432 under section 7.1, 7.2 and 7.5 for different types of EVPN routes. This lead to ambiguity in different implementations. Hence a clarification is required.

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please use "Reply All" to discuss whether it should be verified or rejected. When a decision is reached, the verifying party can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC7432 (draft-ietf-l2vpn-evpn-11)
--------------------------------------
Title               : BGP MPLS-Based Ethernet VPN
Publication Date    : February 2015
Author(s)           : A. Sajassi, Ed., R. Aggarwal, N. Bitar, A. Isaac, J. Uttaro, J. Drake, W. Henderickx
Category            : PROPOSED STANDARD
Source              : Layer 2 Virtual Private Networks
Area                : Routing
Stream              : IETF
Verifying Party     : IESG

_______________________________________________
BESS mailing list
BESS@ietf.org
https://www.ietf.org/mailman/listinfo/bess