Re: [Idr] SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01

Simon Zhong <szhong@juniper.net> Tue, 11 April 2017 00:42 UTC

Return-Path: <szhong@juniper.net>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 723CE1293F8 for <idr@ietfa.amsl.com>; Mon, 10 Apr 2017 17:42:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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=junipernetworks.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 ZJxRhcCBJZ1Y for <idr@ietfa.amsl.com>; Mon, 10 Apr 2017 17:42:17 -0700 (PDT)
Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0091.outbound.protection.outlook.com [104.47.32.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 67BD91293EC for <idr@ietf.org>; Mon, 10 Apr 2017 17:42:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2GiOijkN/lJ0w9VxZ0wKe2o3shNwlEWX4sT0HU8hLUQ=; b=OydOsSXWnrtsxRQWWhUw2mdSzHpPZM3ep2agIYMStj8He/LT5lfu3sVxpiXFh6U0q0utJ1QRcTYsqjQze2AWhQ/WFd/c5uZQl648cqchgRQK3dZzLFX/QLqX98epZqkqd/ZtoCC957PfHdVAXvdkw5+gG3aSUZFK9SAigJg1AUY=
Received: from CY4PR05MB2886.namprd05.prod.outlook.com (10.169.183.20) by CY4PR05MB2886.namprd05.prod.outlook.com (10.169.183.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.5; Tue, 11 Apr 2017 00:42:13 +0000
Received: from CY4PR05MB2886.namprd05.prod.outlook.com ([10.169.183.20]) by CY4PR05MB2886.namprd05.prod.outlook.com ([10.169.183.20]) with mapi id 15.01.1034.007; Tue, 11 Apr 2017 00:42:13 +0000
From: Simon Zhong <szhong@juniper.net>
To: "Ketan Talaulikar Talaulikar (ketant)" <ketant@cisco.com>, "idr@ietf.org" <idr@ietf.org>
Thread-Topic: SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01
Thread-Index: AdKxXgD4Cpf4ePb3QmGGH9sXHoVJLwAsG3PwABIaYEA=
Date: Tue, 11 Apr 2017 00:42:13 +0000
Message-ID: <CY4PR05MB288662F7AF9B773667B5E249D3000@CY4PR05MB2886.namprd05.prod.outlook.com>
References: <CY4PR05MB28860927E141274AFB83BB7ED30E0@CY4PR05MB2886.namprd05.prod.outlook.com> <33d6b2c1e8164ae6abd36010fce175bb@XCH-ALN-008.cisco.com>
In-Reply-To: <33d6b2c1e8164ae6abd36010fce175bb@XCH-ALN-008.cisco.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [66.129.241.13]
x-microsoft-exchange-diagnostics: 1; CY4PR05MB2886; 7:KeGVpw7uxscdvOrOduthoifDIo4f7wJmUj/u1XFO8BdZMBHB+FBJV2YXmGcX8nxCyhskSkVhUQ4P8SnZp5ucckeR9s7GMLDeUuQ2MkGil6fTE20WRBcaIDLiZUncXjbfWhgmxBxj4D+0VfF2lkzx8mLHfxUHxQbHEHVmS2FisXAr1YZXi4+Lrfx8jgQWTls0Xx84qaUfAeDt++uNFsGNRH0CJi+U4ujYj5DAJZ1iGJ+Ktxo21x4OX12WQX5s8LsEkW4lG+y/j/xAoEffANcqveHbifQx1soXild0tDVGANZBw8Pa5svMXHYDS3UlTE6Qv6XVfzSX2B8OyAtDk4K1yQ==
x-ms-office365-filtering-correlation-id: 4b403164-5ed9-4b68-73f6-08d4807398a8
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081); SRVR:CY4PR05MB2886;
x-microsoft-antispam-prvs: <CY4PR05MB28863A56589E37220DC73C05D3000@CY4PR05MB2886.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(138986009662008)(95692535739014)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CY4PR05MB2886; BCL:0; PCL:0; RULEID:; SRVR:CY4PR05MB2886;
x-forefront-prvs: 0274272F87
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39850400002)(39860400002)(39410400002)(39840400002)(39400400002)(39450400003)(51914003)(6306002)(53936002)(236005)(53546009)(25786009)(9686003)(81166006)(66066001)(3660700001)(6506006)(8936002)(50986999)(54356999)(230783001)(76176999)(55016002)(99286003)(2501003)(3280700002)(33656002)(54896002)(6436002)(8676002)(102836003)(6116002)(790700001)(3846002)(189998001)(2950100002)(229853002)(86362001)(122556002)(74316002)(7696004)(7736002)(5660300001)(77096006)(38730400002)(6246003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR05MB2886; H:CY4PR05MB2886.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR05MB288662F7AF9B773667B5E249D3000CY4PR05MB2886namp_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2017 00:42:13.6363 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB2886
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/Ez2hk-8QdDDkNBvO3azcjxcwMww>
Subject: Re: [Idr] SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Apr 2017 00:42:19 -0000

Thanks for the clarification Ketan.

/Simon

From: Ketan Talaulikar Talaulikar (ketant) [mailto:ketant@cisco.com]
Sent: Monday, April 10, 2017 11:26
To: Simon Zhong <szhong@juniper.net>; idr@ietf.org
Subject: RE: SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01

Hi Simon,

The pair "Range Size + SID/Label sub-TLV" would be repeated if there are more than one SRGB/SRLB ranges advertised by a node.

Thanks,
Ketan

From: Idr [mailto:idr-bounces@ietf.org] On Behalf Of Simon Zhong
Sent: 09 April 2017 11:21
To: idr@ietf.org<mailto:idr@ietf.org>
Subject: [Idr] SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01

Hi,

I'm working on Wireshark bgp dissector and following description confuses me.

2.1.1.  SR-Capabilities TLV

   The SR Capabilities sub-TLV has following format:
......
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                  Range Size                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   //                SID/Label Sub-TLV (variable)                 //
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

This implies that there's one "Range Size" and one or more "SID/Lable Sub-TLV), however later in this section, it says:

     One or more entries, each of which have the following format:

         Range Size: 3 octet value indicating the number of labels in
         the range.

         SID/Label sub-TLV (as defined in Section 2.3.7.2).

Which sounds like one or more "Range Size" + "SID/Lable sub-TLV" combo are allowed.

The same applies to SR Local Block TLV as well.

So what's the intended behaviour? Thanks.

/Simon