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

Simon Zhong <szhong@juniper.net> Sun, 09 April 2017 18:20 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 10337127599 for <idr@ietfa.amsl.com>; Sun, 9 Apr 2017 11:20:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level:
X-Spam-Status: No, score=-1.921 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] 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 sZFgrLDfrLqp for <idr@ietfa.amsl.com>; Sun, 9 Apr 2017 11:20:47 -0700 (PDT)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0103.outbound.protection.outlook.com [104.47.37.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 768061243F6 for <idr@ietf.org>; Sun, 9 Apr 2017 11:20:47 -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=FIbMy3vothtuvlnj4IQbYyj/IiGp7TpCQJAA1Vcp2S4=; b=UTiwOqJwr85EOiea2Xu0k4Iuzm+Z3l89PM6UtB03hNC4kO5OmseRO5buFZTMu9TsK8udCLQ/JTpL68O8XNP9sjz4+BvP3O/ARGLZhx2Izb9dzBIOmclxF3876q3XGgNw02vf0XrrDAMKam1H5bu7jWcSN4SnYmkOPqeKhZj+MnM=
Received: from CY4PR05MB2886.namprd05.prod.outlook.com (10.169.183.20) by CY4PR05MB2887.namprd05.prod.outlook.com (10.169.183.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.5; Sun, 9 Apr 2017 18:20:46 +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; Sun, 9 Apr 2017 18:20:46 +0000
From: Simon Zhong <szhong@juniper.net>
To: "idr@ietf.org" <idr@ietf.org>
Thread-Topic: SR-Capabilities TLV in draft-ietf-idr-bgp-ls-segment-routing-ext-01
Thread-Index: AdKxXgD4Cpf4ePb3QmGGH9sXHoVJLw==
Date: Sun, 09 Apr 2017 18:20:46 +0000
Message-ID: <CY4PR05MB28860927E141274AFB83BB7ED30E0@CY4PR05MB2886.namprd05.prod.outlook.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [66.129.241.11]
x-microsoft-exchange-diagnostics: 1; CY4PR05MB2887; 7:P/CmJaXokB/wqRqb1fMQkOhqE44WfCPUDipC+gdSeCgxupemjhN1Rj8dJKQI4mHoO7yeA6a4OAOtCSaLGI0V1Nu1dNKN/RfKukqjufpfzqySlR5gUog04Nj7Dm5w3wL3u4OsyrR7tbwD1Y8hZ7573T9CtBmVrVF2unaA+Tokmo01oiaGmaFX88dFjsd8anCjFWIdo4xqJB2f0EwWx9YoBzRs3lG6MhPZlp4zsvfZ8p9ervOMe28NyAV6b71vTkPBy/H3KIgizNh9/afKZrD2r7nbCVP3AaASvc0yj2M0Irx1KXjlFKyRfB2yOlM0tTEaoMa0NxIk/cERUEqaQ8yFPg==
x-ms-office365-filtering-correlation-id: ad39ea5f-201a-46e0-84d9-08d47f752434
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR05MB2887;
x-microsoft-antispam-prvs: <CY4PR05MB28878E50C6F8CE74FAE5C326D30E0@CY4PR05MB2887.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:CY4PR05MB2887; BCL:0; PCL:0; RULEID:; SRVR:CY4PR05MB2887;
x-forefront-prvs: 02723F29C4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39400400002)(39450400003)(39840400002)(39850400002)(39860400002)(5640700003)(74316002)(102836003)(6116002)(3280700002)(3846002)(3660700001)(2501003)(38730400002)(305945005)(110136004)(230783001)(7736002)(6436002)(8676002)(25786009)(2906002)(33656002)(86362001)(1730700003)(81166006)(77096006)(6506006)(66066001)(6306002)(8936002)(9686003)(966004)(53936002)(2351001)(99286003)(122556002)(7696004)(54356999)(189998001)(2900100001)(55016002)(6916009)(5660300001)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR05MB2887; H:CY4PR05MB2886.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR05MB28860927E141274AFB83BB7ED30E0CY4PR05MB2886namp_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2017 18:20:46.0784 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB2887
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/FKtWFjKd8PQ3y5z3y8L6Tjqe5ZE>
Subject: [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: Sun, 09 Apr 2017 18:20:49 -0000

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