[Idr] Re: draft-ssangli-idr-bgp-generic-metric : Kaliraj's 2nd question follow-up

Kaliraj Vairavakkalai <kaliraj@juniper.net> Sun, 28 July 2024 03:28 UTC

Return-Path: <kaliraj@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 4F521C14F5E9; Sat, 27 Jul 2024 20:28:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.952
X-Spam-Level:
X-Spam-Status: No, score=-2.952 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net header.b="I93vGhsj"; dkim=neutral reason="invalid (public key: not available)" header.d=juniper.net header.b="Gx44febW"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yuH97QmlwVht; Sat, 27 Jul 2024 20:28:08 -0700 (PDT)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) by ietfa.amsl.com (Postfix) with ESMTP id 99E12C14F5E7; Sat, 27 Jul 2024 20:28:08 -0700 (PDT)
Received: from pps.filterd (m0108158.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46RFoC66019874; Sat, 27 Jul 2024 20:28:08 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=PPS1017; bh=8M3lOWURUar8ZJfjL7QeV9xoBA s15iM2PMtxpuRh3kY=; b=I93vGhsjKriMMbO5AHI7YiAkUVmJaMeq3LovNsVwPE EJlU7kzegtLx75SZlDHnvAcMP1lUPdf77gVdBTmMaJz89GSbiynxUyo65zzd2ILQ aqSKn5ZvfxGZlzU0J6Fcg+KQlcbnS3YQZh8Oqcvh63gSr3c944OEnO0ZZDnMGxwB ayCefHZ3dSMsEEFenRs8vWchDsA4tjJvbnhfWbnxn0/e/RLmAVLipqGxvzNF86nO tZy+0cjY02wbqlHjRhMtNX1ExXHFfUQinVl93D5E4tLUCz2HpNmgeSp2aGVle1mP 2xDmD5HcLXB7iF2N7urdUhGd41XtVd5h5Usivc9PPXAw==
Received: from dm1pr04cu001.outbound.protection.outlook.com (mail-centralusazlp17010000.outbound.protection.outlook.com [40.93.13.0]) by mx0a-00273201.pphosted.com (PPS) with ESMTPS id 40mvkkh0rn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 27 Jul 2024 20:28:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ofyj3GcETID5K3/papClIVk9lfPECbh3ovd8czmBOdUWSnq/5vGUoJa+5h1QK2sOvxQJleEx8QGT1krydFCEuuOPnTTOVFUzCY2cqFWkOxpXvN1lG2KIrUkWM6pYQqWENT2EVNiR4KTY7jks/kXwu8mPl6XJCd/trnMD2UfxoH+88IK50PU4MjllHz3Vsjw8tFJo+sUEb2yiCslZiQZpuKmSJ1ZMDiQSY/pHyhZ9pJ3k1q/EJVgu9RFEmnHXPzfzHIs0eUSobAeWNrdY1tFQ2UWU6nZop7MHbfG1EfbqZgu5X3Niu4ii6Ea/eOejslrc3iPxuRNgHElfNcIOkLTobg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8M3lOWURUar8ZJfjL7QeV9xoBAs15iM2PMtxpuRh3kY=; b=E5w/efb8dK1elu8Kf9SM7BEvk2a/ktQWYCUC4qp84pNYd0EtAedd3mdCH/kYgYwSNCvZ6AgtHOiGT/0bAzbfIlGYtkRY23qHRIVB3JEhPFEVsz6OMyXVioLa2cmo4VEjoOqfEd5AVL+UsaV+dSTTzelB8vV6yGAcnAKolAJbc6YASnNBuuGkNV5apT9JO23fZi4vih1eCbAHu/AYj0IhcGYVk+PENF6drEgqtdwA7zvWtJ4YinyF2CdvRsocR/tvxei4+/m4U7Ndq/SqA4jOEQmWtoZPQ79lYYxyXbExG/PUbr7hjMvuR5d+0nIRIPIoP3O8j/fLGAfHkFripVmFZQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8M3lOWURUar8ZJfjL7QeV9xoBAs15iM2PMtxpuRh3kY=; b=Gx44febWc0YXhgmxqEjjGmycORQECmoTHyqk30+5jb/1cuvX0v9Ln0gKAJb9itwNCbtCwX2Qkzhi5y35cKHcP3cXHBR88+Y7ExCFeWPDl24+wMk2kfDHsi7n8v5JkQBbHgfG+0FjuwB1kG+7UHRFta9uVotaeP+Ndz+tJxRjsQI=
Received: from SJ0PR05MB8632.namprd05.prod.outlook.com (2603:10b6:a03:394::12) by MN6PR05MB11020.namprd05.prod.outlook.com (2603:10b6:208:501::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.23; Sun, 28 Jul 2024 03:28:04 +0000
Received: from SJ0PR05MB8632.namprd05.prod.outlook.com ([fe80::bf6:4963:e05b:386e]) by SJ0PR05MB8632.namprd05.prod.outlook.com ([fe80::bf6:4963:e05b:386e%5]) with mapi id 15.20.7807.009; Sun, 28 Jul 2024 03:28:04 +0000
From: Kaliraj Vairavakkalai <kaliraj@juniper.net>
To: Srihari Sangli <ssangli=40juniper.net@dmarc.ietf.org>, "idr@ietf.org" <idr@ietf.org>
Thread-Topic: draft-ssangli-idr-bgp-generic-metric : Kaliraj's 2nd question follow-up
Thread-Index: AQHa3HQ/I0hn4oNufUal58kNPfGUT7IGBBSwgAN+dYCAAdxVKg==
Date: Sun, 28 Jul 2024 03:28:04 +0000
Message-ID: <SJ0PR05MB8632F04068736C42566F3C9BA2B62@SJ0PR05MB8632.namprd05.prod.outlook.com>
References: <PH0PR05MB7749EDD95BF10F30AD05DA33B9A82@PH0PR05MB7749.namprd05.prod.outlook.com> <PH0PR05MB77498CD3BE1BE1E4692A903AB9A82@PH0PR05MB7749.namprd05.prod.outlook.com> <SJ0PR05MB86328AB0652F8F300849C089A2AA2@SJ0PR05MB8632.namprd05.prod.outlook.com> <PH0PR05MB7749895BA5701C8D12CF1D30B9B42@PH0PR05MB7749.namprd05.prod.outlook.com>
In-Reply-To: <PH0PR05MB7749895BA5701C8D12CF1D30B9B42@PH0PR05MB7749.namprd05.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=True;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2024-07-22T19:20:33.8244664Z;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=0;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR05MB8632:EE_|MN6PR05MB11020:EE_
x-ms-office365-filtering-correlation-id: 5c49b040-e440-4fc8-bf20-08dcaeb54a9a
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018;
x-microsoft-antispam-message-info: YEomFQMqk/V9BBzO9iayM5RI7Xjx+ik7VjtYrFwiBynKPxPwCvSBOz3APa9iYDSzChRcc0Uxkzdvh9gPig2PgmjhXypXmUyquCb2Z8Hd47DtuSzh0Y+5pvjI1u/n7idsZa1vP5giI/yVco00MgpbOYcM25Ssj/khIS5InkPhCUZGNt6bVGzIdMIH4Whz7fQgk/99sGvziEEYXZeBUuM5kimnyTp2mlHWxDjmojSXoazDby+08nwNZzlw/txSfWNusIIDl0+0xPspixDelLDrH3Ob+SVr8qjYPLFwX2uqPpb8sIGeJH2L2yk0Qqp5V8Qa4a+kGSUcgLdPsPOsU4wuf/XPICH6NlxLMHRWNksvim/IRp1QcPzBumo3VzdpMFF+EnlkjFAnD36i3uI+LnZXhNUCFTLYS+xGam8jTWI6Y8IeiG9Rt4Af16KQtehHMBDhbhww+VHLAW22KVbQE6A5oP0+frLnMs7cHchphvaP0vDVIRBX7P5unIhy7xSXsaDYhgL29+CnZ3KViQlpUuw7+auuE00hu4H1uaKMFqiWjKej5qSD9z+2ORhKIWDD3uWNL2ZxWKgl0CEJ1s1DoJ3i0NYPMs7sYaP1DI5sI7i3yHOX+yi2/sZFGeZpxoQZS2LWuudOGgolv9e2JMPOFV3zrJosWsRMMl1utvQ5s/AqdCqj0j/GkxX3u/gzE4HQ61rOeODd8NjsproMkbEgWuzGPI6km8iyselWC8Y2GFz4LF4gcOuD1G8Edz2Yvcw0ZlqmxadWOCv0c0T+KUDGeuQ5UNbWZ5vomLq2xkwompzj6hKbKnsM4EhG5EVh1lOal5BZo7RXMMYo5Wa0nKIxTV6f0XtqGP2ULB+wokCWsv5GiYQQ/pVPagavV3TOChuy/2uVd56VSX9wNWYUDM/plhfEqNOO9fvtcqBL3ME1HiwXQh2laOVqPVKEMqazsDIixEo2Xh6kMKrWHPM9FPVXMIG9Gu10P6JCCTxs85y62K/j30O5UNZV8Mbd7i5LchEiRQ84nkhRJlfY+k1mubFB3IFcwkEcqhM4sI6NuwNve5427ogNdLTJTBN2ujGqr0mLq9g2ZBNgn8XnWcIQDij9ZGMwD7kRS+tb5xVcqeCEAk0RjL8XBL/MNO7k9vdf1AHBcto/gDXN9RR1FIIAaKO/kciNEqzmYIcSGCGVcIamXeisSsVQIogdnf9J9Jdl19//BD7kOLhXhFBCPRiW76OFhuTLa3M2rhOfaLquReElb+NVBtGvOZPossgbqbZyAgchm8eT/VSGYq4nNyLvSWhyfcoUol6AARSNkCRns/nMKmEqCFqCFkntQTqQ9xfpnOv2KGjv/U+BVb4XzU6cush/g1iJGac2NlkaTPzLKmgveYwABporeMfEybOmTJTzuzj+dbNm0lmoBSsIsDMBw1kSAv0lfw==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR05MB8632.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Kk0Kj4LA/leVwmRRKMnIjT8EZTr2D3zo+Q5X03zTo40u6rXkJ6rIccD7nck7EtyM5dbY0q0CVEFxOetQw8myObHcpIcqGxAcZtoO5eYbMSKO2YN9zLQSOpX9WTcPnQLY3EG0fGOjNYYo11h0Rd8+rsUJzhlxfWY3mLq84I4nKsIATqt+yqKvxkNwzpUB67lEflKJEXzOgP1fICoEC7r/N2Sq4O64n0X1in+TLiX2bGQD577MtW1FN6gP4ZRdFbFSz6ZlEKHCd5/osS3KPC4NG7tXsVcej6jyvu42E0MRixkvNkIU4AYEWcR4OHRZfZhoFaD2H7W539McqAVE1ELZ9dVvtUKr7/M/Wk9iT1SGNyrsDwoKn/aJiJncBAhp5CV/Ndq+QJ4tzQE6C+1RbHWh3ZmziPAVEvlTPB35PP5jAUFZbYMWe/kybKr/6i5mK4dO0Bl99adJEKzDubyQ61e5UTfYHKirOqupcHP6kgvYTWvCs9Tq6FwsDtKYMJT6ClaZ3x/WTZ8sp8zB7p9fE6PbREIi0fCSsQwm2Sk4ZS1sEotBHEFjQVNjLeUwJTAKASReC+HXvIbMkz95OxoGOZpDaXcEepX6VIg3SpW9CqNYEkfS1GC7roJTGjkb1A8gqjl/WOgBD4lOMPYQaPuaSGN7fG1/+7gAxgwCrVZDjZmKXjXaJTnm3gBLBUqY/0hQzobkmzFsuRy99yxrk+04WyBz3JtxclfspzFyCjQEQNZE2K160/NDs2ytebvtUmnQ1QkTRMlGqHBltNfnTnkUJ+cqiqYZcrFv4cAH7Mi7faOFmDMoJBLqeL2k379G/Zqs/Rjm+DrOhlGgDhK6QDT5JLclkUO/WUxLXgeTWZEw75LGB7kEjW32wbpNePKoH3dyiFwBY/H1FoxL0LwQyyacY2tP8+uzgnN6Lq7iOIbT1QM0lnlGmIGXesM06SH1KS4b9Uo/rFLr/DRTX0lHT74ADLCkgk788Zunx2jmvfSJhnuXk0SR/IROHKobTZ2kJFgZvPw35ZUSnT2ZUhCv2AXU6ulzo/xpKVN6MEAAK1zPw0Ygy5H7njvhvwto5wWVDuhz0L8li9iVNEzO5TLfaZHaM1H8DGdIKJkMkPf7aJf6+diqc4cBjKguPVz9vluzAthRnOJ4VJmMAyJ96IBC+4RVh0hDcxrsishyow8LtHqkck6/kq6dS2im/eiaoKFTYOCvug8hd5hxyPQN2uHxFjkfKYZvqoRMpFj402l7ygMK3KethpgAq22nlcV4mV5ZTkTFaISa0CftLoDm2d08xhdNZ0IUaz1cCSsKJdD408QOr6mxSDIXTIEDRGfEUEiBjLhBnaAPJMf9RYtXggnrUwUPBmbAGdqr2pBJLNDQjomK6yeUcIfsQfZciFLYtrVMRqWatCn1bLRzpPjp3/VaS+I1142cc0X82sXKXpMo9HGr1N5QNwE2GtXs1JH07Ci+Tpo2M/ruwOWLhOwtUXsUX8sBVauChK1Zvr2k4wUJWOvitERaYhGoJIBqBORuCtMlWz7kNiQ6aSEsiqn+QcrhhS4oRdFRYi93YpZ7gE4spFvmWAAesBZ04C4hO8ewN6NwMN/8K9xc0WIk/tmUgHexFqE0F1EXfg==
Content-Type: multipart/alternative; boundary="_000_SJ0PR05MB8632F04068736C42566F3C9BA2B62SJ0PR05MB8632namp_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR05MB8632.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5c49b040-e440-4fc8-bf20-08dcaeb54a9a
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2024 03:28:04.3620 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: BBw72FnvNRtg1pKXFfl5+9ilwRrC92in4KyCA47+SjBKE/FYBln+enxBccf+a3OpEsrN4QD4Grko9xtC6aqb9Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR05MB11020
X-Proofpoint-GUID: i0XdxlBwH0U0IPxewFyYRuiz4NQ0dY22
X-Proofpoint-ORIG-GUID: i0XdxlBwH0U0IPxewFyYRuiz4NQ0dY22
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-27_19,2024-07-26_01,2024-05-17_01
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407280023
Message-ID-Hash: Z3JM7JL7OFSMMQRHAFM3TF4LEDCFUYXR
X-Message-ID-Hash: Z3JM7JL7OFSMMQRHAFM3TF4LEDCFUYXR
X-MailFrom: kaliraj@juniper.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-idr.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Idr] Re: draft-ssangli-idr-bgp-generic-metric : Kaliraj's 2nd question follow-up
List-Id: Inter-Domain Routing <idr.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/pHouI4R-ati41YFyIZlDG9zZ3uQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Owner: <mailto:idr-owner@ietf.org>
List-Post: <mailto:idr@ietf.org>
List-Subscribe: <mailto:idr-join@ietf.org>
List-Unsubscribe: <mailto:idr-leave@ietf.org>

Srihari, thanks for summarising.

However there seems to be a disconnect on the conclusion in our internal thread.

>. I can clarify for the above case that an intermediate router can add AMetric if it can compute the cost to the next hop of the originating BGP router.

In the scenario below, how does C know the originator G? because nexthop-self is in play.


The suggestion I raised was about avoiding bullet 4 from the following rfc7311 text:

The AIGP attribute may be added only to routes that satisfy one of the following conditions:

   -  The route is a static route, not leading outside the AIGPadministrative domain, that is being redistributed into BGP;
   -  The route is an IGP route that is being redistributed into BGP;
   -  The route is an IBGP-learned route whose AS_PATH attribute is empty; or
   -  The route is an EBGP-learned route whose AS_PATH contains only ASes that are in the same AIGP administrative domain as the BGP speaker

If we remove bullet 4, then C will not originate Ametric for the route originated by G in below scenario.

But yes, you need to consider the history of why this bullet was added in rfc7311, and if it is safe to remove.

2cs,

Thanks
Kaliraj


Juniper Business Use Only
From: Srihari Sangli <ssangli=40juniper.net@dmarc.ietf.org>
Date: Friday, July 26, 2024 at 1:52 PM
To: Kaliraj Vairavakkalai <kaliraj@juniper.net>, idr@ietf.org <idr@ietf.org>
Subject: Re: draft-ssangli-idr-bgp-generic-metric : Kaliraj's 2nd question follow-up
[External Email. Be cautious of content]

Hi, Folks:

Kaliraj and I had a separate chat and I’m summarizing it along with answering his question. Please see below.




Juniper Business Use Only


Juniper Business Use Only
From: Kaliraj Vairavakkalai <kaliraj=40juniper.net@dmarc.ietf.org>
Date: Wednesday, 24 July 2024 at 9:29 PM
To: Srihari Sangli <ssangli@juniper.net>, idr@ietf.org <idr@ietf.org>
Subject: Re: draft-ssangli-idr-bgp-generic-metric : Kaliraj's 2nd question follow-up
[External Email. Be cautious of content]

> The RFC7311 and the generic-metric drafts states that Originating router (router that originates the route into BGP) should add the AMetric.

Srihari, in practice the ASBR can also add it. as far as I remember the current implementation.

Srihari> Let me take the snippet from the RFC7311 and respond based on that.

RFC7311 states these rules for Originating the AIGP attribute:
“The AIGP attribute may be added only to routes that satisfy one of the following conditions:

   -  The route is a static route, not leading outside the AIGP administrative domain, that is being redistributed into BGP;
   -  The route is an IGP route that is being redistributed into BGP;
   -  The route is an IBGP-learned route whose AS_PATH attribute is empty; or
   -  The route is an EBGP-learned route whose AS_PATH contains only ASes that are in the same AIGP administrative domain as the BGP speaker.
                            A BGP speaker R MUST NOT add the AIGP attribute to any route for which R does not set itself as the next hop.”


The first 3 (static, IGP and iBGP-learned route) are pertaining to the originating domain. Your question is related to the fourth item. Please look at the following topology.


                                           ------ B ------ D ------ F
                                          |
                                A ----
                                          |
                                          ------- C ------- E ----- G

Legend:

·         A-G are routers

·         F,G in same AS, they originate the prefix

·         A, B, C, D, E are in different ASes

·         All ASes are part of AIGP common administration domain
In this scenario, let’s assume the following happens:

·         F advertises the prefix with AIGP. The AIGP gets accumulated via D, B and reaches A.

·         G advertises the prefix w/o AIGP,  E propagates w/o AIGP.

·         If C adds AIGP before advertising the route to A.
If C can find the cost to reach the next hop (distance to G), then it can add AIGP encoding the cost to G. However, if E sets itself as next hop (which is typical at ASBR boundary), and C while adding AIGP, if it adds cost to E as the AIGP cost, then e2e accumulated cost is incorrect. Assuming costs are equal across ASes, A will end up always preferring path CEG over path BDF, which is not correct.

IMO, the RFC7311 had this clause to help deployment and also is not explicit about the encoding the cost to originating router’s next hop.

The draft-ssangli-idr-bgp-generic-metric follows base guidelines of RFC7311 and adds specific procedures for AMetric. I can clarify for the above case that an intermediate router can add AMetric if it can compute the cost to the next hop of the originating BGP router.

Please let me know if this addresses your question.

Thanks.

srihari…


Juniper Business Use Only