Re: [Sidrops] Which 8210-bis error code should be used?

"Borchert, Oliver (Fed)" <oliver.borchert@nist.gov> Thu, 08 June 2023 21:02 UTC

Return-Path: <oliver.borchert@nist.gov>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 64B06C14F73E for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 14:02:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.098
X-Spam-Level:
X-Spam-Status: No, score=-7.098 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_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nist.gov
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 v1JsAG0k7VcC for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 14:02:51 -0700 (PDT)
Received: from GCC02-BL0-obe.outbound.protection.outlook.com (mail-bl0gcc02on20709.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d05::709]) (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 3C119C151093 for <sidrops@ietf.org>; Thu, 8 Jun 2023 14:02:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBC4d5WrXPlhTW0tW4aJ6CzuPSgkJtR3h2DJWHQxLCdW20O9HkhUFhskc1SYfC6f7bkByCzDClc24SQkHSwgcsYxHo9ifgutaGrpkT/RNmYMT7piewUjA+WKtKC0e9MgN+zhINuVPv60SzYqtVxOkWvmH71XqORUS3RASUQyHiHGJOHO3GR5cSXpTfM6YLIaCiA+yZOdyvXrWPhIqCoDncSP6G724KsQcWt90kWmrixM33hGJYFptSwRYr7wesG23T6ajzP/pT7PjRA/29hOpRyiv/4fIkU3kgHYc0GsPOzhazEvTN+6Z8jsQbDeOaKV1mBZZEX6Hk1yuuSKXh1uRg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Vtr5OILYgXVv3wUOdnongbEty0Y6STEH219jRqRN2fQ=; b=AlMantvL0HI9Y26p+G9etwjc0XG4kp5+UAaubcQJR5c2Wq33eU8Th4b8P3lAa7i9fZ+CcQ2/EWCHtyI7wLFJHe/2T7j4SKhJkJRY7b7jRCB/wG0O7/14tp7B4c4kTd6SCNXXY8sPQB5+xNQihEAQDeq+T7RGOQCpQhWo7GxFBW1p2wyj7430pPgbdcDc2Xp4KErzLCaddzbTYjzuLq+XrIOvMM7h87NinnNenlX+hlDAW+e4igfO9ubd+BE/XPX9oXDEzQrV4fwQ3/zoS6eVJlSU8QdaqY2kULQEF2PcarC8lWqzenn8TOFiK/l6AEE9WJlUNJQUH3/slDtaxAE6/w==
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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vtr5OILYgXVv3wUOdnongbEty0Y6STEH219jRqRN2fQ=; b=hrUY+RjDNTRUWHPcVVmGR8F8gijvGrBt3kv74LtllLJxKV3PN16UIEQexeWc2gi34TxNZldgvSrr1ze6ifZ21pbMIuWaLsp2qlCGX9wdnZfL+XQqxaTb7u/T8U/Uss9qDFLFSZUNf/r1zKSxnUcjT30yzMECouK6c/h+ZrAQOnPbxS8H4taBh0LUDUp/lMzZep09aNj1ggRtlx2yQJJUGJ7oJ/XMfZQt0WGsCpi9EYPsSQAVZBXZR32kswPsE5X99ZZYe1X10CLns/JA8f4DK+rS6KPCF3xLgqlXvL62qKyxeHFnH+n2WQGKDYDjoraKHvzxr6E8bSYxziiW1+6yMg==
Received: from BLAPR09MB6322.namprd09.prod.outlook.com (2603:10b6:208:2af::22) by PH0PR09MB11741.namprd09.prod.outlook.com (2603:10b6:510:2cb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.40; Thu, 8 Jun 2023 21:02:47 +0000
Received: from BLAPR09MB6322.namprd09.prod.outlook.com ([fe80::4120:991a:2825:1812]) by BLAPR09MB6322.namprd09.prod.outlook.com ([fe80::4120:991a:2825:1812%4]) with mapi id 15.20.6477.016; Thu, 8 Jun 2023 21:02:47 +0000
From: "Borchert, Oliver (Fed)" <oliver.borchert@nist.gov>
To: Claudio Jeker <cjeker@diehard.n-r-g.com>, gengnan <gengnan=40huawei.com@dmarc.ietf.org>
CC: SIDR Operations WG <sidrops@ietf.org>, "Borchert, Oliver (Fed)" <oliver.borchert@nist.gov>
Thread-Topic: [Sidrops] Which 8210-bis error code should be used?
Thread-Index: AQHZlLH7syb/BcM9AE+wusevk3DUT69/UXAAgAAFyICAAAuIAIABH8eAgAA2kgCAAK7Xaw==
Date: Thu, 08 Jun 2023 21:02:32 +0000
Message-ID: <BLAPR09MB63226208E6ED3F9A97D479789850A@BLAPR09MB6322.namprd09.prod.outlook.com>
References: <F338C878-E41A-4DB7-A4C6-1CEE0A6F6502@verisign.com> <003401d9993d$6b03db90$410b92b0$@cernet.edu.cn> <C1A9142F-F938-42F2-970E-3C2B85044019@nlnetlabs.nl> <ZICJjsmMcuQr55Sn@diehard.n-r-g.com> <7462895378ab4903b692264e67700ee5@huawei.com> <ZIGovP2SaF0UgkNT@diehard.n-r-g.com>
In-Reply-To: <ZIGovP2SaF0UgkNT@diehard.n-r-g.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nist.gov;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: BLAPR09MB6322:EE_|PH0PR09MB11741:EE_
x-ms-office365-filtering-correlation-id: 0a71e1bf-8e59-453d-4013-08db6863b651
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: tbjQBFdrVmZWbE5GSaq6DmJCmZOdF4BdeYMxBlly4aAb28K/bs5Ydib5rutAujSkeEosW1fCJ85dDwckscHGfl/ehyvso4G6KMj+XLSqZLDd30pUVNHvaRPkLVbuavWmJbbQ23n8YMRsoYCuXsgbgHNpVXawhXMdgUjxK7eDL+IYIgOuj3SsvRQTWuSLLRlRtRLKCEs2VrAn6VVjHvfAqDl7oFpl7vUYMJbRJhKGZ2Z9KfPWhrKXbsFRKbMdWOOu4G/DeN94/oMZsP8j9XDSVtwrKwP6NFx63/+aE8sapB82LpJta4THeNKWgkN74XsHH86XbfKfqQvSAE+J6mCPGi3Izmr46m47D/5fBX+ribPUK/a6Lqg8IbcJJ5CJCKbLPRxML2OBmnyYayGR5tJNvm5SgcUV6rf2qZE9SGtsXj/9CsXSpNxGKG8378wuvk8LdzOOB+bveUkqpEHTldT2xqH5PDGteTdAgaymh0DPH7aMn/CNhlUVxv9U3lNA1n3H+OebcAZSC5jkR4ZnTHsH0mvH5geIWUduKj6Eqo68mYXoZTVW4gI/0tpzgn3dLK1LR7vHsKSwIVTab3Jv4V+lnLvLGzMlX9byjXpMWUI1TFk=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BLAPR09MB6322.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(451199021)(2906002)(38070700005)(86362001)(33656002)(166002)(5660300002)(52536014)(55016003)(966005)(83380400001)(66574015)(71200400001)(7696005)(6666004)(186003)(107886003)(26005)(9686003)(53546011)(6506007)(122000001)(498600001)(82960400001)(110136005)(54906003)(76116006)(66446008)(64756008)(66476007)(66946007)(4326008)(38100700002)(66556008)(91956017)(8676002)(8936002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Iv+kog+/Tn8lfI2E8GHMjK3X33AQit5wrudN6LcdFjxL739f2ZUvHCW2p7makyLqqgDdJ+A0d488aLCeoJFO6oWkbu90tJXbMvfv3+3SjejCjE7KG29uluHo9N3YfFq93d6aS57PHHkDG0KhZ00CE62SEH0ZXb3lm8uCAWrmWxjirVk4f7F4mz1sc8AnYBsW5oWEB72ycsxQ+rVNrxwVS+5ieDLRJRBas8G5j7UoppU1yGimbwi9QtHu7pHOPr1NQJP1Ybsfivoh82wifr0JXeemPWFYDPtPPfRB1jBjOPNGbYz9oeUdWwKjFcuje+NUsEpz7tQm7BcKVGNBuX9505N949O7zKvDgdt4B9WCfIBBQPo0igv+Gfj9V+0eqRe70xoSye7Hj0RmNuAFeQ72RYmIzmvJJ0EvcPtaXVZX3xlYAYJ6GE4AweRAUOTGpLLc4tI2NghMBL+A2nw/PAGJ2d25s1ny8tJctv4LxNOG+k4qB/nAsu21ZA+xE/JxNE1AG3Fl+w4YFC1M5UEOiSDUHF5cUSzg9XrwkKaueIK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ABLAPR09MB6322namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BLAPR09MB6322.namprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0a71e1bf-8e59-453d-4013-08db6863b651
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2023 21:02:47.2587 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR09MB11741
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/gWn00OVjWMGj-F9HBDkmIWdHov0>
Subject: Re: [Sidrops] Which 8210-bis error code should be used?
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jun 2023 21:02:55 -0000

On 6/8/23, 6:09 AM, "Sidrops" <sidrops-bounces@ietf.org> wrote:

>On Thu, Jun 08, 2023 at 06:53:41AM +0000, gengnan wrote:
>> Hi,
>>
>> (Want to confirm another 8210bis error code usage in this thread..)
>>
>> The two descriptions in the 8210bis draft below look like inconsistent.
>> (Through reading the codes) Openbgpd seems to follow the first
>> description, i.e., "replacing".
>> If "replacing" is the correct understanding, why not IPvX PDU and Router
>> Key PDU take the "replacing" action?

The replacing action was introduced with the ASPA PDU. Up until then
the add and withdrawal was used and still is for all PDU’s other than ASPA.

>
>I followed 5.12 that is very clear that an announce will replace the ASPA
>record. The section is also emphasing that the ASPA PDU lookup is not
>using the Provider Autonomous System Numbers or Provider AS Count as
>information to lookup the record:
>    The router MUST see at most one ASPA for a given AFI from a cache for a
>    particular Customer Autonomous System Number active at any time.
>
>So there is a difference in behaviour here regarding the other PDUs.
>For IPvX PDU and Router Key PDU track one element and the full element is
>used as key in the lookup (there is no extra data).
>
>The ASPA PDU did not do that. It aggreagtes all the Provider Autonomous
>System Numbers into a single object (extra data). To simplify update
>operation the replace method was added. The alternative would be to update
>an ASPA record by issuing a withdraw of the old record and announce of the
>new record. This can result in Break Before Make issues.

Randy and I had some long discussion about that back in Nov. 2011.
https://mailarchive.ietf.org/arch/browse/sidrops/?q=2021-11

look for “[Sidrops] [WGLC] draft-ietf-sidrops-8210bis-03 - Ends 7/December/2021”

>
>For IPvX PDUs this problem is delegated to the RTR cache to order the
>updates properly. For Router Key there is nothing in place right now
>mainly because there is no experience with it. My assumption is that
>Section 11 will need to be extended for Router Key consideration at some
>point. In the case for Router Keys this may be delegated all the way up to
>the CA to perform proper key roll over procedures (so it may not be needed
>inside RTR itself).
>
>RTR is lacking all the transactional awareness that databases normally
>need to be ACID compliant. This lack of basic isolation is a big problem
>of RTR and the reason for special workarounds (Section 11).
>
>In OpenBGPD we try to make all Payload PDU updates between Cache Response
>and End of Data PDU to appear atomic but if the End of Data PDU is not
>received in reasonable time (60 sec) this atomicity is not guaranteed.
>This works as long as the RTR cache is not spreading connected PDUs
>over multiple incremental updates.
>
>> Description 1:
>> "
>> Receipt of an ASPA PDU announcement (announce/withdraw flag == 1) when the router already has an ASPA PDU with the same Customer Autonomous System Number and the same Address Family (see AFI Flags field), replaces the previous one.
>> "
>> Description 2:
>> "
>> Duplicate Announcement Received (fatal):
>> The received PDU has Flag=1, but a matching record ({Prefix, Len, Max-Len, ASN} tuple for an IPvX PDU or {SKI, ASN, Subject Public Key} tuple for a Router Key PDU), or Customer Autonomous System for an ASPA PDU is already active in the router.
>> "
>
>The additon of ASPA PDU text in Description 2 (Section 13. Error Codes)
>needs to be removed since there is no way to have a duplicate announcement
>based on the text in Section 5.12

Not for ASPA PDU but it is still an error for 5.6, 5.7, and 5.10

>Now one could argue that sending an ASPA PDU to replace the current PDU
>that is exactly the same should trigger this error but what do we gain
>from that?
>
>--
>:wq Claudio

Oliver