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

John E Drake <jdrake@juniper.net> Tue, 16 October 2018 12:27 UTC

Return-Path: <jdrake@juniper.net>
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 0BBE7130DDB for <bess@ietfa.amsl.com>; Tue, 16 Oct 2018 05:27:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.766
X-Spam-Level:
X-Spam-Status: No, score=-0.766 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.064, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KHOP_DYNAMIC=1.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net
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 LcXMKlnbTx0g for <bess@ietfa.amsl.com>; Tue, 16 Oct 2018 05:27:50 -0700 (PDT)
Received: from mx0b-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 3E8C4130DC9 for <bess@ietf.org>; Tue, 16 Oct 2018 05:27:50 -0700 (PDT)
Received: from pps.filterd (m0108157.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w9GCPKgm021040; Tue, 16 Oct 2018 05:27:45 -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 : content-transfer-encoding : mime-version; s=PPS1017; bh=QPnVt+IkXg2EHb59+Bo3M4JO8FkD7Jj+zP1Nj1ITl0A=; b=OZQG0HPQFkBes2a1Cw3rzIDHXFK3lDuUGPdYLB9CRsvcfRfjr+uFmsEtK3Nk/cmOkvL7 2htLtxP1HUHaStowTMuhbuVEDj42CjWHnHwwKmM69Y1vA2N/UVZB8+gRstgbJ9WnLMDw u/1vTdXBxHcY3clXBCF1ZRRD/7rMCd8k6tRLWTzh4pAdlfaN2/DDBWZIP+cXloxiw7Vh RUX9jJOo1d7D7kDFzve+WFJPPb78ONYedasZEPTJ1aZSgE/kQXtGcCFn/DEnxdZUlSUJ uOe28K06/D/WJGf2dkxuhaICqSquPx7ckmdal/VvaroX2pIXXXMU20pUw7LO9B8V5Qkg iA==
Received: from nam05-dm3-obe.outbound.protection.outlook.com (mail-dm3nam05lp0114.outbound.protection.outlook.com [216.32.181.114]) by mx0a-00273201.pphosted.com with ESMTP id 2n588m0qa3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Oct 2018 05:27:44 -0700
Received: from BN7PR05MB4354.namprd05.prod.outlook.com (52.133.223.33) by BN7PR05MB4579.namprd05.prod.outlook.com (52.135.249.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.18; Tue, 16 Oct 2018 12:27:42 +0000
Received: from BN7PR05MB4354.namprd05.prod.outlook.com ([fe80::c494:2955:fd6c:4012]) by BN7PR05MB4354.namprd05.prod.outlook.com ([fe80::c494:2955:fd6c:4012%4]) with mapi id 15.20.1250.019; Tue, 16 Oct 2018 12:27:42 +0000
From: John E Drake <jdrake@juniper.net>
To: Zhuangshunwan <zhuangshunwan@huawei.com>, "Jakob Heitz (jheitz)" <jheitz@cisco.com>, BESS <bess@ietf.org>
Thread-Topic: Encoding a 20 bit label in a 24 bit field.
Thread-Index: AdRkxCtHf3jUpftBTCqhT2pNBUyBrwAJXZGwABhx+mA=
Date: Tue, 16 Oct 2018 12:27:42 +0000
Message-ID: <BN7PR05MB435476BABC952681DCE71E95C7FE0@BN7PR05MB4354.namprd05.prod.outlook.com>
References: <3bca2ecfacc3489b92f451e34a99d20f@XCH-ALN-014.cisco.com> <19AB2A007F56DB4E8257F949A2FB9858DC48BE2E@NKGEML515-MBX.china.huawei.com>
In-Reply-To: <19AB2A007F56DB4E8257F949A2FB9858DC48BE2E@NKGEML515-MBX.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.0.400.15
dlp-reaction: no-action
x-originating-ip: [66.129.241.10]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN7PR05MB4579; 6:QE+ZT/y4d4PDJRmhAbJtFmauGgqS9HrglAUBADEiE/WY0Cwd84XW4h/elsftHEb0CJZ+JxtY0pMY3cPS9dkrGGTn0UosUAO0HalIMw9NlfjC92mYNQVpFf4gyphemptJ5xno5N1zuWc0Ik5Nll9ctMcHJYj5K6UA7Lq4jyaUd4aBpK/6DHzPJCXOAG1AiDmIF/2QaudLSAA3fOtk4HVpji83RR2EljwAcpL6fEzCDLAK85dhWr4ETkHzy/GMJ9MOniqYVAsklxN1ApJAC6bjQGCWh9fvS65KkeK3CVREaBJNAeHXXcLrRv26EqHquvoclL4YlcP+YyEvVLN3bmIkF4rdu67ttNkHOPuMuVfR4q7AiBtXQ85Ss/+VR7TyJrTp1iZCkxvyxF1wa2GJw51b/pRkYk1VYw5/O1joHGliXjQ4etZvZvJ1JyKAasBpS7h2AFvM693rzA7m+DNxMFp0jg==; 5:Gk/duO2gTXEIh4mL/I0D8J4gMKAGcs+PUTyD19kGX+7nGIyTWPcxvCNbSjQtTY1sYBeuKiS4Mo0OslJT5GqBUDyWwsE24ANYhOak8RvzJgQTQvoF78WSLMzkiWVh41PeQ2xO5Vc3vwfZED10x9lcCg6nz+YgJtJJuAfFh6vwMgQ=; 7:2e+gw/r5/V2HFrF33nglBWDW7Dfc9gJXJNWVsxwL3QMp2g9s+zlYE5MRdIYjpU2jslZ7sqZX5rqNiH+r2ES8ilqpzffmMC+qDd2oD31eENBwhaIX73HvxDYHWjWgVOr0hDi2sj1yH9APK2QBrRVX3fSdIM+EPJbT4O+uZKFH21E+GzRhwQ/siY0PUQYQal3wBQ8tjnWaPRfLRrzdHd0waukCExG2ul4HleWI40F2FjnKlspyg9FWp80a4NP01AQB
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 679f59e2-5238-4d69-da46-08d63362c4fc
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BN7PR05MB4579;
x-ms-traffictypediagnostic: BN7PR05MB4579:
x-microsoft-antispam-prvs: <BN7PR05MB45794AAB3CA7024F99C84879C7FE0@BN7PR05MB4579.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(201166117486090)(154440410675630)(73676662221046)(97927398514766)(138986009662008)(85827821059158)(195916259791689)(82608151540597)(109105607167333)(10436049006162);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231355)(944501410)(4982022)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:BN7PR05MB4579; BCL:0; PCL:0; RULEID:; SRVR:BN7PR05MB4579;
x-forefront-prvs: 0827D7ACB9
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(136003)(376002)(396003)(366004)(39860400002)(189003)(199004)(13464003)(6436002)(2900100001)(6246003)(110136005)(316002)(11346002)(9686003)(478600001)(486006)(476003)(55016002)(446003)(229853002)(6306002)(53936002)(5660300001)(105586002)(6116002)(305945005)(68736007)(74316002)(106356001)(81156014)(3846002)(33656002)(26005)(8676002)(102836004)(186003)(81166006)(76176011)(86362001)(8936002)(14454004)(5250100002)(66066001)(575784001)(7736002)(99286004)(7696005)(71200400001)(966005)(71190400001)(6506007)(97736004)(25786009)(19627235002)(256004)(53546011)(2906002)(14444005); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR05MB4579; H:BN7PR05MB4354.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
x-microsoft-antispam-message-info: lNuBneKJkE8OG9oNH2M6BX6867DL3eYkACjEvQ8sQls6z67fXczTRCx9lkXA4929hei4cTHn64NqQdPlk4lWe+IVTIfW7j1F4VMu8l1W7NTcYJ9eE49+rEqLqIIUEfKafJIhSsO92dka12OxjWJjJ0fuUy04B97cFZU2gMqF7+aC/8rLytTGLAtdYSWyE8bzIW3qrnXOziMNCN7xeADFZMJKygcVS4bTuv5q1QT+CvKGqN+3xdU+no0cQrm4N1/DB0+V2pYIAgnkVOhY+WMwE1EMro5q9cBrLk+Cu30dK0K6YcrJS6uXqbZTPD3s7aZbexiGAIQUxlYujwDCuI6K68DklofhgdMeGqNtTsQhlMk=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 679f59e2-5238-4d69-da46-08d63362c4fc
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2018 12:27:42.3079 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR05MB4579
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-10-16_07:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810160106
Archived-At: <https://mailarchive.ietf.org/arch/msg/bess/y20QlJUzP3xbqox1eQeVNffCtvY>
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 12:27:53 -0000

I don't think that's a good idea because depending upon their position in the stack, these labels may not be at the bottom of the stack.

Yours Irrespectively,

John

> -----Original Message-----
> From: BESS <bess-bounces@ietf.org> On Behalf Of Zhuangshunwan
> Sent: Monday, October 15, 2018 9:02 PM
> To: Jakob Heitz (jheitz) <jheitz@cisco.com>; BESS <bess@ietf.org>
> Subject: Re: [bess] 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:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rfc-
> 2Deditor.org_errata_eid5523&d=DwICAg&c=HAkYuh63rsuhr6Scbfh0UjBXeM
> K-ndb3voDTXcWzoCI&r=CRB2tJiQePk0cT-h5LGhEWH-
> s_xXXup3HzvBSMRj5VE&m=IvOdDW_zoH5heXCCcs7ke0vmlQ0Hm1yCi17llZn
> BdsY&s=n_iX5KAK2InG-bgMnZHO3o4PH9UZmYKVtes9H7-vA1E&e=
> 
> --------------------------------------
> 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://urldefense.proofpoint.com/v2/url?u=https-
> 3A__www.ietf.org_mailman_listinfo_bess&d=DwICAg&c=HAkYuh63rsuhr6Sc
> bfh0UjBXeMK-ndb3voDTXcWzoCI&r=CRB2tJiQePk0cT-h5LGhEWH-
> s_xXXup3HzvBSMRj5VE&m=IvOdDW_zoH5heXCCcs7ke0vmlQ0Hm1yCi17llZn
> BdsY&s=xbhjuaPYmhE7YZHdrs0qRQmpbqzoxbsm12LoU1YI5O8&e=
> 
> _______________________________________________
> BESS mailing list
> BESS@ietf.org
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__www.ietf.org_mailman_listinfo_bess&d=DwICAg&c=HAkYuh63rsuhr6Sc
> bfh0UjBXeMK-ndb3voDTXcWzoCI&r=CRB2tJiQePk0cT-h5LGhEWH-
> s_xXXup3HzvBSMRj5VE&m=IvOdDW_zoH5heXCCcs7ke0vmlQ0Hm1yCi17llZn
> BdsY&s=xbhjuaPYmhE7YZHdrs0qRQmpbqzoxbsm12LoU1YI5O8&e=