Re: [Idr] AS Number in TLV 512 (rfc7752bis / draft-ietf-lsvr-bgp-spf)

Ketan Talaulikar <ketant.ietf@gmail.com> Fri, 10 March 2023 17:31 UTC

Return-Path: <ketant.ietf@gmail.com>
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 B2B0CC15155F; Fri, 10 Mar 2023 09:31:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.093
X-Spam-Level:
X-Spam-Status: No, score=-2.093 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, 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=gmail.com
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 6tfRbUsOBhkf; Fri, 10 Mar 2023 09:31:37 -0800 (PST)
Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D18B4C14F693; Fri, 10 Mar 2023 09:31:32 -0800 (PST)
Received: by mail-ed1-x529.google.com with SMTP id cw28so23501895edb.5; Fri, 10 Mar 2023 09:31:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678469490; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9ncA15RxsCg4K9k+0832OUE6GXFwQeXu0RoD5Xbdlhs=; b=RNP2OBNyaoJn+Ypwz7Pl/5BVjiGieI/hEG8InhWdMGoFdellKqm12fZFS737tAreUH lnv4THPFXeXQYLBANSJFnpTfraS2MZwsTN7UvEPZI5g09DJtkuXxhgN/Ocz1ZfmZV6MM OoOh4T1lBoCxIRJmZiIUMMzxgEthP2sBIomemTUSnMNfuA27ZGjXIJ6UczXRJ0kBCOgU Efu1FN4IJJFK/GhwKzHlmYaD+ZaPSNadHGsgyH4x0+p9jJwyDsuByI2WovgfikkjKHiQ vcullC0qHsDTdAKmOneWwKWE7iGz/Ztvfkys1YjbpqfH45dpDLNM5CtWVzJIEa6VTh7Y aVXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678469490; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9ncA15RxsCg4K9k+0832OUE6GXFwQeXu0RoD5Xbdlhs=; b=PQBitsLy5DT3lKEBSudwcdkGF5y9zMdSD5JSebc3kXdv3+cEzwqn83H6kymuIZlYWc UdIACR8xKUK8d8Sd8JCuD+XAd1n/O8i6TDdlXnfqyj0/GG41hSCKLesbSh8+01DFzAf9 2hPfBLH8b7busdpJFQPoutpDBIxIPlmQvIPEUFNygUASQseduF2Ln3+pt9i6OK7iMcgd h1fsndCoBkZWZUK2LhVf5H++QIe8tAJ5ZTD8tIwwOExbuT/QlybRTLqhnqXFbufnL15f vzcZ/Jabv8kCJarK9dJuDJ+bVNEtTmnC64zCkKbHQhLTR6zelrrmsqHgD5aE0jdco+8J RUzw==
X-Gm-Message-State: AO0yUKUvCqAbWd1hKhCQqPZ+vrl22aVSFagfSQEakpdL8xAhCrwTTGOS fKdEZQ/4DrhJRNsozti+5kB/cV7eeQ/34RdXVek=
X-Google-Smtp-Source: AK7set+CvVkPWfRtySjmS7WkH0zFl4bSH3KrhlYu9sy/cXnr6wyhBBvQRUcPePOdaT4Vaf2cluGWADHDvIbe3bn5THw=
X-Received: by 2002:a17:906:308e:b0:879:5db8:8bb2 with SMTP id 14-20020a170906308e00b008795db88bb2mr12550549ejv.7.1678469490477; Fri, 10 Mar 2023 09:31:30 -0800 (PST)
MIME-Version: 1.0
References: <CAMMESswZ3P_zOmsYxWzKHAkifibKqtsv44kza-qs+aoLq=odmw@mail.gmail.com>
In-Reply-To: <CAMMESswZ3P_zOmsYxWzKHAkifibKqtsv44kza-qs+aoLq=odmw@mail.gmail.com>
From: Ketan Talaulikar <ketant.ietf@gmail.com>
Date: Fri, 10 Mar 2023 23:01:18 +0530
Message-ID: <CAH6gdPwX3VC+Rpjp0up5mwkXW8Ta4YHwubc3TBZJS8pVtZgPsg@mail.gmail.com>
To: Alvaro Retana <aretana.ietf@gmail.com>
Cc: idr@ietf.org, "lsvr@ietf.org" <lsvr@ietf.org>, draft-ietf-lsvr-bgp-spf@ietf.org
Content-Type: multipart/alternative; boundary="000000000000bf0be605f68f21cd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/jqnYiAM7z632jZ-5Mxzi2GC-x3I>
Subject: Re: [Idr] AS Number in TLV 512 (rfc7752bis / draft-ietf-lsvr-bgp-spf)
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 10 Mar 2023 17:31:41 -0000

Hi Alvaro,

Please check inline below.

On Fri, Mar 10, 2023 at 8:15 PM Alvaro Retana <aretana.ietf@gmail.com>
wrote:

> Ketan:
>
> Hi!
>
> While reviewing draft-ietf-lsvr-bgp-spf I came across this definition
> of AS for TLV 512:
>
>    Autonomous System:  Opaque value (32-bit AS Number).  This is an
>    optional TLV.  The value SHOULD be set to the AS Number associated
>    with the BGP process originating the link-state information.  An
>    implementation MAY provide a configuration option on the BGP-LS
>    Producer to use a different value; e.g., to avoid collisions when
>    using private AS numbers.
>
>
> The text doesn't require the ASN to be the same as what is on the BGP
> OPEN.  It even let's any ASN be used, which could result in other
> collisions or confusion. :-(
>

KT> It SHOULD be the ASN of the BGP-LS Originator but that is not a MUST.
Consider that an operator does not wish to use their "real" ASN for BGP
sessions that are only being used for BGP-LS reporting. But they may want
to use the "real" one in the NLRI in some scenarios when doing multi-AS
topology consolidation. That is why some implementations allow for the
operator to configure/provide a different ASN to be used within the BGP-LS
NLRI.


> This definition was in rfc7752, and I don't remember what the
> justification was for it, do you?
>
> It seems to me that using the BGP-LS Instance-ID as a differentiator
> of the origin domain would solve any issues related to multiple
> autonomous systems with the same ASN -- in line with the
> recommendation for IGPs.


KT> The draft does in fact suggest that in section 3.2.14:

   The BGP-LS Instance-ID carried in the Identifier field as described
   earlier along with a set of sub-TLVs described in Section 5.2.1.4
<https://datatracker.ietf.org/doc/html/draft-ietf-idr-rfc7752bis#section-5.2.1.4>,
   allows specification of a flexible key for any given node/link
   information such that the global uniqueness of the NLRI is ensured.
   Since the BGP-LS Instance-ID is operator assigned, its allocation
   scheme can ensure that each IGP domain is uniquely identified even
   across a multi-AS network.




> It would also allow the definition above to
> say that the "value SHOULD be set to the AS Number associated with the
> BGP process originating...".
>

KT> However, we have existing deployments and asking for a
renumbering/coordination of BGP-LS Instance ID across a multi-AS
multi-IGP-domain network might be operationally challenging. Therefore, we
still have the ASN so it is possible for the BGP-LS Instance-ID (that is
associated with an IGP domain) to be unique within that AS.

Thanks,
Ketan


>
>
> Thoughts?
>
> Thanks!
>
> Alvaro.
>