Re: [GROW] Measurements on Regular, Extended, and Large Communities

"Hannachi, Lilia (IntlAssoc)" <lilia.hannachi@nist.gov> Tue, 05 May 2020 16:01 UTC

Return-Path: <lilia.hannachi@nist.gov>
X-Original-To: grow@ietfa.amsl.com
Delivered-To: grow@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 71F0F3A0866; Tue, 5 May 2020 09:01:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level:
X-Spam-Status: No, score=-2.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_GOV_DKIM_AU=-0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-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=nist.gov
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 waKLv1jmn4o7; Tue, 5 May 2020 09:01:55 -0700 (PDT)
Received: from GCC02-BL0-obe.outbound.protection.outlook.com (mail-bl2gcc02on2137.outbound.protection.outlook.com [40.107.89.137]) (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 61C5C3A0872; Tue, 5 May 2020 09:01:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jvInEXPOjrvTNaL+yUPLnO5NjyTc0AeZQo8uCT0YrC4WIPWN97KOJLoz7IiNlBpEz3WSXFpo4qHsaPMJnVszD3ZhpjpGI7XkGxpw5KWD3HZGBBLTk3gPEtSqFM25PepWLlqwh6r9WA/pPKhz3FSmL1WQgA2M7jW7FSxN2odNgZxrmPkadEOn3OwojDxqeqNwnc1pETTsEh7r9F3zlnqsR9wZ25xH3QQ9uMK6FLIlB0SP5jPuZxq6682hT+VX7SFHouRxDd/MI2KUrHr1+VIGEWTz7pW1RVV4XuUXWMDsZo2cXbaaA8egyvLAk1/uBBZMUZKfnAX5tlv8wqABu2ciRQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xLQEa7Iqcc9PWIs6Wtyc8mVXqesL/lG+JHRNe+DhiPE=; b=BtjyL+I5Y/X3mMLXO6r89JwNoaF8vL+PysSOwKH02xOuLUIl2MaPq9GQTF4q/hdbxL4cgvcPO/d2RsZzL+0jdWDk1muLaehxvhSN5zWmcdVQqQ1YviQrjiT+Cwnsgy9fX4LdeX4FKkgj+Mk9CSDzzvFAca8MncxsQ0gUXXPQ4LqHqBWPJMgmUFmPyQR+UOo80wCnu0ksIj9LkQoC/3eKN2CVZXFY3omnj5xa7eZdSsTIrnYwOTc6FyyoFvahadVovPAWNRu+vDveh06+0qSOpJnX0TMTDqhB8R2uuW53e9Tu0rDF5TaxM27fxsB2QEczjRUFch0rYpR+f6mDv2CMmQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nist.gov; dmarc=pass action=none header.from=nist.gov; dkim=pass header.d=nist.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nist.gov; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xLQEa7Iqcc9PWIs6Wtyc8mVXqesL/lG+JHRNe+DhiPE=; b=p6j4r9LzDX3toZ23dGQGoCWrDlMCrgbaJo18BTZwiSVyw43NyWp/8Qvk/mhGOM9uyNzFDElu5Fz1Pv8s9VjHUb9gl9fFSdkew0v1XI1gRwnuNEJWER+gwCTrBaxBa74bIkFMHeP7lf/yysAxBxTP4/epwiWOChu99FR4IcqtTqM=
Received: from MN2PR09MB3423.namprd09.prod.outlook.com (2603:10b6:208:3b::20) by MN2PR09MB5612.namprd09.prod.outlook.com (2603:10b6:208:210::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Tue, 5 May 2020 16:01:42 +0000
Received: from MN2PR09MB3423.namprd09.prod.outlook.com ([fe80::e1b9:183c:ebd1:7cf9]) by MN2PR09MB3423.namprd09.prod.outlook.com ([fe80::e1b9:183c:ebd1:7cf9%6]) with mapi id 15.20.2979.025; Tue, 5 May 2020 16:01:42 +0000
From: "Hannachi, Lilia (IntlAssoc)" <lilia.hannachi@nist.gov>
To: Colin Petrie <colin@spakka.net>, "Sriram, Kotikalapudi (Fed)" <kotikalapudi.sriram@nist.gov>
CC: "grow@ietf.org" <grow@ietf.org>, "draft-heitz-idr-wklc@ietf.org" <draft-heitz-idr-wklc@ietf.org>
Thread-Topic: [GROW] Measurements on Regular, Extended, and Large Communities
Thread-Index: AQHWGe3MXOXky3BBr0yxtCqjBaxXEqiIN71NgAATA4CABQilgIADEpE9gAEagoCAADSGsYAAJ8ZrgAAPagCAAADjqIAAa5YAgAdecDg=
Date: Tue, 05 May 2020 16:01:42 +0000
Message-ID: <MN2PR09MB34234E9475C89596BC8C9402EFA70@MN2PR09MB3423.namprd09.prod.outlook.com>
References: <BL0PR0901MB36846BDD28B524EFE086F3C884D00@BL0PR0901MB3684.namprd09.prod.outlook.com> <BL0PR0901MB3684AAB7355DC31D94C5192584D00@BL0PR0901MB3684.namprd09.prod.outlook.com> <ded390a3-568f-49d4-706b-54a224358118@foobar.org> <60e115b3-607d-f3c6-8ced-8db5fafea39e@spakka.net> <BY5PR09MB5665AB67FA41AC1102E35C1184AD0@BY5PR09MB5665.namprd09.prod.outlook.com> <e0c83f7d-200e-6c7a-95ee-537cdc63972f@spakka.net> <MN2PR09MB3423BAD6E1F7545A38CE39D4EFAA0@MN2PR09MB3423.namprd09.prod.outlook.com> <MN2PR09MB342369CF9785A1DA8B19C04DEFAA0@MN2PR09MB3423.namprd09.prod.outlook.com> <65d37ac8-faa3-f22e-b21b-400b8b194de4@spakka.net> <MN2PR09MB3423E4A6F8E31C2B6D66A115EFAA0@MN2PR09MB3423.namprd09.prod.outlook.com>, <4afc015e-3972-c5d4-9ac6-4fc14dc9456a@spakka.net>
In-Reply-To: <4afc015e-3972-c5d4-9ac6-4fc14dc9456a@spakka.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spakka.net; dkim=none (message not signed) header.d=none;spakka.net; dmarc=none action=none header.from=nist.gov;
x-originating-ip: [129.6.165.205]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 178cec55-d4fe-40e4-b7fb-08d7f10d9a8f
x-ms-traffictypediagnostic: MN2PR09MB5612:|MN2PR09MB5612:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR09MB56124C4D2781B3F6769BEBF3EFA70@MN2PR09MB5612.namprd09.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0394259C80
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 9Jnv/Ap/VYCxWf4U8WK3ui7ynDZiCRDFSL8uYHTTiUeE7eFkYlPPv0W2Ui+sy/RyGNrnm8e+PrYt8ZEkPrY1wXFtfQIlnJjJpwrItD/wSDMQGm8OTBpQkYs4bYzAjBPnrBVJoOJu+KlySDmDMWjVJaSfAhD4CAyE7pZTOKCcirkVU3SqjoiaSc1N6soXEUjMz+tdXrHAFr/DEMJKoy+ZcUCNCpTsZVCy9ki8ceNszWgLBrBO0DfOdsr9FjrT5DICxMofowEeK6eyrgspQAFLmdVqoxgeY51FqbNTXDqRg/sfhX4jzmm6nqspA8N0w+i2YUrTbrfZjayW1lpbsxU0zpNxw+59PuIdlx0hwEgj2Nk1GSBhDNkxHca+m3w5F8vCwve59ByH8HKs7+S5uz0zx0k2L5V9ExR81P6qGjSmO6cxelWthwTtDMyOhV8fTUTp2bmsFFAKtwVp7zf0APQBYwoWQ9yVAIPeyxjV/SZe4oUZOTL97LGw/k/L8M9fni+GzIUHDEdskKgP8dVdMdFaB6DViOEIDTeb+YBBEX6tspOMHbmYvd01RRzhe2fPJZiXSJU1c+gORAyCd1hyOz+W9XG8NOUA4Y8QZ17e0tnDNqQ=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR09MB3423.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(366004)(39860400002)(136003)(376002)(396003)(346002)(33430700001)(76116006)(33656002)(4326008)(8936002)(7696005)(8676002)(86362001)(66476007)(966005)(52536014)(55016002)(66556008)(64756008)(66446008)(478600001)(45080400002)(9686003)(66946007)(110136005)(19627405001)(30864003)(5660300002)(26005)(53546011)(6506007)(71200400001)(186003)(2906002)(54906003)(316002)(33440700001)(6636002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: zjnslG3vgv/34hP7yFAeJyy3fiQW8uf3PZw0uB2DKHwig3ctYU+ByUacs3miYu04HLcwLC78Lhol9FrGHHKWZBsP49b1pPeftXwIP6vF8hvzEeqifw9ZuUP50fqXFk3WPK2AcpD31W6zo1nr02152TT3EbQ09QiJ+SsvekTQpyJ2SgRE52s6S+CQAskoP/W0UAYaJeHaOOkXQZ2G/SQqaEhq8ZerkWbuEu7BbKWITRF5RaWAYsfGZYYRhly//qDOV1g499hR4jxruaf5f6kZQUu3U8IKVWiHcJq+wIgyVgdTJDxZBtAr8lPhGmAw3JgjTWEtSTKh8dW5uMHA9H5LjtEoCvwrpZUi3b58kAo+eNEfEwbAk6gSIlZeUw0w3Ke4FJYKTjI+AaIFcMW//2+Il68iO0gNvU7cgScy+xwE2r/6ui3f2fC3cve0A7PVC+wntJ5GOolLJex4lLTFNibjOtFUBwO+HRLEbAbEHI5u5wS1owJ/e1NYD0GAdououMYg/yME9kMABFdP6wde/XR8CDZ3HVj0MMjE6hEkM88Lj06f8NAnOk86Drvx6d7LbUX8kdvvTJ6VxIhLynwrmT5ywllynHPZuixy2UU7/TINX36vngPN3jaz30aN3Wx2gr4KuzPLqmXOCkufH23xlkMLzTCHXzgFaYMq/7Epzx2qHVTiaucg7YKnk2tJslhg/TOTBORd/iWvU5yXJeiBoqXxXWTRcX5vcboo2/0B+GfJkPjZTcXVvkvJDdzfhWBFPQaubZHNoCA14kWi19jyiVOZZKPHeyT6G3mKoA3ERHfOl/o=
Content-Type: multipart/alternative; boundary="_000_MN2PR09MB34234E9475C89596BC8C9402EFA70MN2PR09MB3423namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-Network-Message-Id: 178cec55-d4fe-40e4-b7fb-08d7f10d9a8f
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2020 16:01:42.5583 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: /HlLqYl0Uw/7Gr42gB4vKfC4+WBrX0vHKBHvcPGyGplFw3gS4OARVTUHU9LWBkMS
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR09MB5612
Archived-At: <https://mailarchive.ietf.org/arch/msg/grow/OtusWRvCBquos5zsU4yKBECL6gg>
Subject: Re: [GROW] Measurements on Regular, Extended, and Large Communities
X-BeenThere: grow@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Grow Working Group Mailing List <grow.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/grow>, <mailto:grow-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/grow/>
List-Post: <mailto:grow@ietf.org>
List-Help: <mailto:grow-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/grow>, <mailto:grow-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2020 16:02:00 -0000

Colin,

Thank you for clarifying (offlist) that EXTENDED COMMUNITY
is encoded in bgpdump as UNKNOWN_ATTR(A, B, C) where
A = attribute Flags octet
B = attribute Type Code octet (B = 16 for EC)
C = attribute length

So, yes, now we see and measure ECs in RIPE-RIS data (RIBs and Updates),
and in Routeviews in the Updates data but not in RIBs (as you expected).
Examples:

*********************************************************************
RIPE-RIS: Community ANALYSIS (Collector : rrc03 From 2020-04-30 00:00 To 2020-04-30 00:55)
*********************************************************************
# Updates = 1075583 (Total)
# COMMUNITY = 859239 (79.89%)
AS path length distribution =    1: 170 (0.02%)    2: 44803 (5.21%)    3: 141072 (16.42%)    4: 276271 (32.15%)    5: 238325 (27.74%)    6: 114158 (13.29%)    7: 31365 (3.65%)    8: 9018 (1.05%)    9: 2690 (0.31%)    10: 811 (0.09%)    11: 358 (0.04%)    12: 169 (0.02%)    13: 22 (0%)    14: 7 (0%)
# LARGE_COMMUNITY = 152818 (14.21%)
AS path length distribution =    2: 5655 (3.7%)    3: 17205 (11.26%)    4: 54372 (35.58%)    5: 45492 (29.77%)    6: 22065 (14.44%)    7: 6422 (4.2%)    8: 1068 (0.7%)    9: 397 (0.26%)    10: 71 (0.05%)    11: 35 (0.02%)    12: 26 (0.02%)    13: 6 (0%)    14: 4 (0%)
# EXTENDED COMMUNITIES = 44606 (4.15%)
AS path length distribution =    2: 2269 (5.09%)    3: 7435 (16.67%)    4: 17657 (39.58%)    5: 11600 (26.01%)    6: 3967 (8.89%)    7: 1221 (2.74%)    8: 371 (0.83%)    9: 57 (0.13%)    10: 19 (0.04%)    11: 8 (0.02%)    12: 1 (0%)    13: 1 (0%)

*********************************************************************
Routeviews: Community ANALYSIS (Collector : saopaulo2 From 2020-04-30 00:00 To 2020-04-30 00:45)
*********************************************************************
# Updates = 480962 (Total)
# COMMUNITY = 332896 (69.21%)
AS path length distribution =    1: 752 (0.23%)    2: 27870 (8.37%)    3: 93971 (28.23%)    4: 95553 (28.7%)    5: 64710 (19.44%)    6: 33943 (10.2%)    7: 11933 (3.58%)    8: 3157 (0.95%)    9: 686 (0.21%)    10: 165 (0.05%)    11: 82 (0.02%)    12: 45 (0.01%)    13: 21 (0.01%)    14: 8 (0%)
# LARGE_COMMUNITY = 22910 (4.76%)
AS path length distribution =    2: 3741 (16.33%)    3: 9986 (43.59%)    4: 5453 (23.8%)    5: 3190 (13.92%)    6: 411 (1.79%)    7: 122 (0.53%)    8: 6 (0.03%)    9: 1 (0%)
# EXTENDED COMMUNITIES = 123035 (25.58%)
AS path length distribution =    2: 8648 (7.03%)    3: 24466 (19.89%)    4: 30661 (24.92%)    5: 29805 (24.22%)    6: 18028 (14.65%)    7: 8345 (6.78%)    8: 2361 (1.92%)    9: 509 (0.41%)    10: 124 (0.1%)    11: 35 (0.03%)    12: 25 (0.02%)    13: 20 (0.02%)    14: 8 (0.01%)


Thanks

Lilia

________________________________
From: Colin Petrie <colin@spakka.net>
Sent: Thursday, April 30, 2020 7:22 PM
To: Hannachi, Lilia (IntlAssoc) <lilia.hannachi@nist.gov>; Sriram, Kotikalapudi (Fed) <kotikalapudi.sriram@nist.gov>
Subject: Re: [GROW] Measurements on Regular, Extended, and Large Communities

Sorry, I missed this part:

> A = attribute Flags octet
> B = attribute Type Code octet
> C = attribute raw data blob

'C' is the attribute length. Apologies for the inaccurate response. The
'attribute raw data' is the bit after the '):'

Compare:

UNKNOWN_ATTR(192, 16, 8): 02 02 00 02 01 95 00 c9
UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95 2a f9

'C' is how many octets to consume afterwards. The rest of the string is
the attribute raw data blob.

Thanks,
Colin


On 30-04-2020 19:00, Hannachi, Lilia (IntlAssoc) wrote:
> Thanks Colin for the clarification
>
> Regards
>
> Lilia
> ------------------------------------------------------------------------
> *From:* Colin Petrie <colin@spakka.net>
> *Sent:* Thursday, April 30, 2020 12:54 PM
> *To:* Hannachi, Lilia (IntlAssoc) <lilia.hannachi@nist.gov>; Sriram,
> Kotikalapudi (Fed) <kotikalapudi.sriram@nist.gov>
> *Subject:* Re: [GROW] Measurements on Regular, Extended, and Large
> Communities
> Hi Lilia,
>
>>  In the shared results, we used updates generated on 2020-04-25 at 02:45. That's why the number of updates is kind of low. After correcting the time and including the Extended communities we generated the following results:
>
> Ah, that makes more sense now. I see 365180 updates in RRC00
> 2020-04-25:02:45
> Thanks for clarifying.
>
>>  We noticed that  UNKNOWN_ATTR is associated with three different numbers "UNKNOWN_ATTR(A, B, C)". According to the generated results B is always 16 but A and C vary.
>> I just would like to ask you if you have an idea about what does each number represent.
>
> Yes:
>
> A = attribute Flags octet
> B = attribute Type Code octet
> C = attribute raw data blob
>
> See:
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc4271%23page-16&amp;data=02%7C01%7Clilia.hannachi%40nist.gov%7Cebe14236d4d14c671abe08d7ed5d67d5%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637238857741963449&amp;sdata=sL9Ej53Gw1bqktXKNwqHWsE1oVv4ohFZYNIiMz6oApk%3D&amp;reserved=0
> "Each path attribute is a triple <attribute type, attribute length,
> attribute value> of variable length. Attribute Type is a two-octet field
> that consists of the Attribute Flags octet, followed by the Attribute
> Type Code octet". The document also describes the Flags available.
>
> Thanks,
> Colin
>
>
>
> On 30/04/2020 18:32, Hannachi, Lilia (IntlAssoc) wrote:
>> Colin,
>>
>> Thanks again for all the information.
>> In the shared results, we used updates generated on 2020-04-25 at 02:45.
>> That's why the number of updates is kind of low. After correcting the
>> time and including the Extended communities we generated the following
>> results:
>>
>> *********************************************************************
>> Community ANALYSIS (Collector : rrc00 2020-04-25:02:45)
>> *********************************************************************
>> # Updates = 366516 (Total)
>> # COMMUNITY = 293050 (79%)
>> AS path length distribution =    2: 1480 (0%)    3: 7177 (2%)    4:
>> 20212 (6%)    5: 23894 (8%)    6: 17841 (6%)    7: 8023 (2%)    8: 2317
>> (0%)    9: 539 (0%)    10: 197 (0%)    11: 150 (0%)    12: 102 (0%)
>>   13: 32 (0%)    14: 12 (0%)
>> # LARGE_COMMUNITY = 222778 (60%)
>> AS path length distribution =    2: 534 (0%)    3: 5066 (2%)    4: 18288
>> (8%)    5: 75891 (34%)    6: 76389 (34%)    7: 33773 (15%)    8: 9108
>> (4%)    9: 2151 (0%)    10: 833 (0%)    11: 247 (0%)    12: 232 (0%)
>>   13: 54 (0%)    14: 6 (0%)    16: 1 (0%)
>> # EXTENDED COMMUNITIES = 15883 (4%)
>>
>> *********************************************************************
>> Community ANALYSIS (Collector : rrc15 2020-04-25:02:45)
>> *********************************************************************
>> # Updates = 115386 (Total)
>> # COMMUNITY = 92189 (79%)
>> AS path length distribution =    1: 67 (0%)    2: 5996 (6%)    3: 23925
>> (25%)    4: 26179 (28%)    5: 16973 (18%)    6: 10503 (11%)    7: 4418
>> (4%)    8: 1153 (1%)    9: 305 (0%)    10: 79 (0%)    11: 55 (0%)    12:
>> 38 (0%)    13: 19 (0%)    14: 6 (0%)
>> # LARGE_COMMUNITY = 2555 (2%)
>> AS path length distribution =    2: 89 (3%)    3: 1312 (51%)    4: 609
>> (23%)    5: 429 (16%)    6: 104 (4%)    7: 9 (0%)    8: 3 (0%)
>> # EXTENDED COMMUNITIES = 11038 (9%)
>>
>>
>> We noticed that  UNKNOWN_ATTR is associated with three different numbers
>> "UNKNOWN_ATTR(A, B, C)". According to the generated results B is always
>> 16 but A and C vary.
>> I just would like to ask you if you have an idea about what does each
>> number represent.
>>
>> Regards
>>
>> Lilia
>>
>> ------------------------------------------------------------------------
>> *From:* Hannachi, Lilia (IntlAssoc) <lilia.hannachi@nist.gov>
>> *Sent:* Thursday, April 30, 2020 9:45 AM
>> *To:* Colin Petrie <colin@spakka.net>; Sriram, Kotikalapudi (Fed)
>> <kotikalapudi.sriram@nist.gov>
>> *Subject:* Re: [GROW] Measurements on Regular, Extended, and Large
>> Communities
>> Hi Colin,
>>
>> Thank you very much. You are right, currently we are using bgpdump. I
>> noticed this UNKNOWN_ATTR in the results but I missed to link that with
>> Extended Communities.
>>
>> We will work on that.
>>
>> Regards
>>
>> Lilia
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Colin Petrie <colin@spakka.net>
>> *Sent:* Thursday, April 30, 2020 6:29 AM
>> *To:* Sriram, Kotikalapudi (Fed) <kotikalapudi.sriram@nist.gov>
>> *Cc:* Hannachi, Lilia (IntlAssoc) <lilia.hannachi@nist.gov>
>> *Subject:* Re: [GROW] Measurements on Regular, Extended, and Large
>> Communities
>> Hi Sriram,
>>
>> (dropping the lists from this thread for the moment)
>>
>> Thank you for the clarification regarding your input sources.
>>
>> Please understand that the reason I am querying this, is because I know
>> for a fact that there are lots of Extended Communities  present in all
>> of these sources!
>>
>> I used to work for RIPE RIS and we spent a lot of effort moving away
>> from Quagga, partly to produce a new implementation that would preserve
>> all attributes, to enable studying of new/unassigned/unknown attributes etc.
>>
>> Additionally, as I am the current maintainer of the 'bgpdump' MRT
>> parsing software, I am aware of its attribute decode capabilities and
>> have seen Extended Communities regularly while decoding MRT data (both
>> in updates from RIS+route-view, and dumps from RIS).
>>
>> As you have clarified your input sources, I suggest your tooling does
>> not handle Extended Communities correctly. What MRT parser are you using?
>>
>> bgpdump, for example, doesn't natively handle Extended Communities
>> (although I have a feature request open to write a parser for ECs), but
>> they are visible when enabling its 'dump unknown attributes' mode.
>>
>> bgpdump in 'long' output mode:
>> ~/tmp/mrt/rrc00/2020.04$ bgpdump -q updates.20200401.0200.gz | grep
>> UNKNOWN | grep 16, | head
>>      UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95
>> 2a fa
>>      UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95
>> 2a f9
>>      UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95
>> 2a f8
>>      UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95
>> 2a fa
>>      UNKNOWN_ATTR(192, 16, 8): 00 03 00 5a 00 00 00 5a
>>      UNKNOWN_ATTR(192, 16, 8): 00 03 00 62 00 00 00 62
>>      UNKNOWN_ATTR(192, 16, 8): 02 02 00 02 01 95 00 c9
>>      UNKNOWN_ATTR(192, 16, 16): 02 02 00 02 01 95 00 c8 02 02 00 02 01 95
>> 2a f9
>>      UNKNOWN_ATTR(192, 16, 8): 00 03 00 5a 00 00 00 5a
>>      UNKNOWN_ATTR(192, 16, 8): 00 03 00 5a 00 00 00 5a
>> (attribute 16 = Extended Communities)
>>
>> bgpdump in 'short' output mode, with the '-u' option:
>> ~/tmp/mrt/rrc00/2020.04$ bgpdump -vmlpu updates.20200401.0200.gz  | awk
>> -F\| '{print $17}' | grep 10: | head
>> 10:c0:02020002019500c80202000201952afa
>> 10:c0:02020002019500c80202000201952af9
>> 10:c0:02020002019500c80202000201952af8
>> 10:c0:02020002019500c80202000201952afa
>> 10:c0:0003005a0000005a
>> 10:c0:0003006200000062
>> 10:c0:02020002019500c9
>> 10:c0:02020002019500c80202000201952af9
>> 10:c0:0003005a0000005a
>> 10:c0:0003005a0000005a
>> (attribute 10 hex = 16 dec = Extended Communities)
>>
>> So, to repeat a count on the same data window as your numbers:
>>
>> RIS rrc00, 2020-04-25.02*:
>> ~/tmp/mrt/rrc00/2020.04$ for file in `ls updates*`; do echo -n ${file}:;
>> bgpdump -q $file  | grep "UNKNOWN_ATTR(" | grep ", 16," |wc -l ; done
>> updates.20200425.0200.gz:    7716
>> updates.20200425.0205.gz:    6085
>> updates.20200425.0210.gz:    7719
>> updates.20200425.0215.gz:    7784
>> updates.20200425.0220.gz:    7989
>> updates.20200425.0225.gz:    7240
>> updates.20200425.0230.gz:    8154
>> updates.20200425.0235.gz:   16154
>> updates.20200425.0240.gz:   20336
>> updates.20200425.0245.gz:   15883
>> updates.20200425.0250.gz:    7366
>> updates.20200425.0255.gz:    8208
>>
>>
>> Anyway I hope I have demonstrated that there are many Extended
>> Communities present in the MRT data from these collector projects, and
>> hope that you can review your analysis method to see what is being
>> missed here!
>>
>> Please let me know if I can help!
>>
>> Thanks,
>> Colin
>>
>> P.S. Your update count seems unusually low. In the window of
>> rrc00:2020-04-25.02.*, I count a total of 3,127,174 update messages.
>>
>>
>> On 30/04/2020 01:04, Sriram, Kotikalapudi (Fed) wrote:
>>> Thanks Nick and Colin. Insights you shared are helpful.
>>>
>>> Colin:
>>>
>>>> If you are analysing Route-Views table dumps (and not updates) then you
>>>> won't see ECs because Quagga/FRR only dumps selected attributes into the
>>>> MRT files [0]. ECs are not on the list of dumped attributes. LCs were
>>>> added to the list as part of the LC implementation patch.
>>>
>>> Our analysis sees LCs in both Quagga and FRR RouteViews collectors in RIBs and Updates.
>>> We don't see ECs at all in any of these cases.
>>> Some Quagga collectors show LCs in RIB (e.g., route-views3) and others don't (e.g., route-views2).
>>>
>>>> RIPE's RIS implementation records all the received attributes opaquely
>>>> so you will see ECs in there. They are also present within the
>>>> route-views updates files (as these are dumped raw by Quagga).
>>>
>>> Our measurements show LCs in RIPE-RIS but no ECs.
>>> Yep, we don't see ECs (in RIBs or Updates) in RIPE-RIS or Routeviews.
>>> May be Nick is right about lack of compelling reason to use EC.
>>> Examples (RIPE-RIS):
>>> *********************************************************************
>>> Community ANALYSIS (Collector : rrc00 2020-04-25:02)
>>> *********************************************************************
>>> # Updates = 366516 (Total)
>>> # COMMUNITY = 293050 (79%)
>>> AS path length distribution =    2: 1480 (0%)    3: 7177 (2%)    4: 20212 (6%)    5: 23894 (8%)    6: 17841 (6%)    7: 8023 (2%)    8: 2317 (0%)    9: 539 (0%)    10: 197 (0%)    11: 150 (0%)    12: 102 (0%)    13: 32 (0%)    14: 12 (0%)
>>> # LARGE_COMMUNITY = 222778 (60%)
>>> AS path length distribution =    2: 534 (0%)    3: 5066 (2%)    4: 18288 (8%)    5: 75891 (34%)    6: 76389 (34%)    7: 33773 (15%)    8: 9108 (4%)    9: 2151 (0%)    10: 833 (0%)    11: 247 (0%)    12: 232 (0%)    13: 54 (0%)    14: 6 (0%)    16: 1 (0%)
>>> # EXTENDED COMMUNITIES = 0 (0%)
>>>
>>> *********************************************************************
>>> Community ANALYSIS (Collector : rrc15 2020-04-25:02)
>>> *********************************************************************
>>> # Updates = 115386 (Total)
>>> # COMMUNITY = 92189 (79%)
>>> AS path length distribution =    1: 67 (0%)    2: 5996 (6%)    3: 23925 (25%)    4: 26179 (28%)    5: 16973 (18%)    6: 10503 (11%)    7: 4418 (4%)    8: 1153 (1%)    9: 305 (0%)    10: 79 (0%)    11: 55 (0%)    12: 38 (0%)    13: 19 (0%)    14: 6 (0%)
>>> # LARGE_COMMUNITY = 2555 (2%)
>>> AS path length distribution =    2: 89 (3%)    3: 1312 (51%)    4: 609 (23%)    5: 429 (16%)    6: 104 (4%)    7: 9 (0%)    8: 3 (0%)
>>> # EXTENDED COMMUNITIES = 0 (0%)
>>>
>>> Sriram
>>>
>>
>