Re: [Idr] Few questions about Segment Routing extensions for BGP LS (draft-ietf-idr-bgp-ls-segment-routing-ext)

Robert Raszuk <robert@raszuk.net> Wed, 21 July 2021 11:20 UTC

Return-Path: <robert@raszuk.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 F1C1B3A11B5 for <idr@ietfa.amsl.com>; Wed, 21 Jul 2021 04:20:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=raszuk.net
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 P6wyXiZFBSDV for <idr@ietfa.amsl.com>; Wed, 21 Jul 2021 04:19:56 -0700 (PDT)
Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D2CE3A118B for <idr@ietf.org>; Wed, 21 Jul 2021 04:19:56 -0700 (PDT)
Received: by mail-lf1-x12e.google.com with SMTP id i5so2636209lfe.2 for <idr@ietf.org>; Wed, 21 Jul 2021 04:19:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raszuk.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=czaK2xOte8YZaCAvnnjxAl8x+eLHpSncX++pEe5xMoc=; b=LoANjL9hBmhf8iwKH70HSOMWPJ4o7BfJ8tuwSv3dHSO4Ha89LigtvzYR/+dqgiN5+N LLVnGcfMPqz2LgwOwkmWMJrIIC7U/WDYPid+6QQ1oBOe46438gA4Ex8KH78UQhrVf1Qa dOlgRuiF4F3qv6yYajKyg98yEobWNPe7MKjACl4xlZi3fn7vp1OSFraFxGBVWRMGQvK6 tE3AdaSce8NNDsZxvA79XAoTTLG2Citl7qI5SpLV5oQV+0b2gFylklSMAhAQ85Z6bP+r /YSfzEQNTLDjzTm6ShMPEZ50uQ7Wm8hHusleUx3KrSl1r+AhGbHip8P26lUYa4Z4oJJm 4MSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=czaK2xOte8YZaCAvnnjxAl8x+eLHpSncX++pEe5xMoc=; b=uktYr6gMqj9rVHAWdGPr3ltrguh5ZDZfIK+4U0cor8aPDDohw2aTbUsvK5CXzpF9/3 BOnJ0MNxza0cSFbVUTVCLhteAQEPb9yNmqsmYooDI6ORDJR6+fmbJG93x5SNn1TJplsn jrF5pVXhqwAS9aUnSmXk31igbR3PQfFdS2wu1MDQX/aEcPImBsRaBEu5E30wHZJScw7G qFvZuiaZCLumdlKe7hPtdHMxDsSYaIADgmrZhC9HzmIm9TARFPP0kl7KBCUPkIyNpyt3 w5brJE8+4ds5X4GokfR18+BRILIHVHFqvmJktjWzrxW4/vIiz40V3AXAFBO2yvLjpz19 7bhA==
X-Gm-Message-State: AOAM531Ix4Et9xeiM1kEMJcteVOKmBtO1ZesonvzEuafBDeiPBuSSyJr 09nOsee8kpWV0UWIiVZSIy+ar15qQdu4BPVjDrXBweNbwNY9zg==
X-Google-Smtp-Source: ABdhPJzAN/0TkPDYKF6Jf1AUVMCeJwwQsOJ2DfRah9BrItuEy7f0zfQCvNP0STemmsF5zVPD/V777GVP1nrlfTrT2dM=
X-Received: by 2002:a05:6512:39d3:: with SMTP id k19mr9077245lfu.591.1626866393650; Wed, 21 Jul 2021 04:19:53 -0700 (PDT)
MIME-Version: 1.0
References: <1162423632.764584.1626861282633.ref@mail.yahoo.com> <1162423632.764584.1626861282633@mail.yahoo.com>
In-Reply-To: <1162423632.764584.1626861282633@mail.yahoo.com>
From: Robert Raszuk <robert@raszuk.net>
Date: Wed, 21 Jul 2021 13:19:43 +0200
Message-ID: <CAOj+MMGwgE7NDijTiuFRKCi2ifw-8j9BBjkTELYJUCReADF0Zw@mail.gmail.com>
To: Boris Hassanov <bhassanov=40yahoo.com@dmarc.ietf.org>
Cc: IDR List <idr@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007dafd005c7a0590e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/trktwbUpUW4v5ybgzSZx9l4fOLY>
Subject: Re: [Idr] Few questions about Segment Routing extensions for BGP LS (draft-ietf-idr-bgp-ls-segment-routing-ext)
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 21 Jul 2021 11:20:06 -0000

Boris,

IMO Anycast SID is a Prefix SID. Just like anycast address is an IPv4 or
IPv6 address. What makes it an anycast is the fact that it is advertised
from more then one node. So anycast in IP or SR is a deployment construct.

In other words node advertising it may have no clue that it is anycast. And
the moment other nodes from the anycast group stop advertising it - is it
no longer anycast.

To your other question it is my understanding that you use SID/Label TLV
when you have SR-MPLS, and for SRv6 you use Prefix SID TLV.

Best,
R.

On Wed, Jul 21, 2021 at 11:57 AM Boris Hassanov <bhassanov=
40yahoo.com@dmarc.ietf.org> wrote:

> Hi all,
>
> 1) Need an advice, I might be missing something but I see that Anycasi SID
> (3333 in the example below)  is in BGP-LS update as regular Prefix SID TLV:
>
>  Path Attribute - BGP-LS Attribute
>             Flags: 0x80, Optional, Non-transitive, Complete
>                 1... .... = Optional: Set
>                 .0.. .... = Transitive: Not set
>                 ..0. .... = Partial: Not set
>                 ...0 .... = Extended-Length: Not set
>                 .... 0000 = Unused: 0x0
>             Type Code: BGP-LS Attribute (29)
>             Length: 12
>             Link State
>                 Prefix SID TLV
>                     Type: 1158
>                     Length: 8
>                     Flags: 0x40, Node-SID (N)
>                         0... .... = Re-advertisement (R): Not set
>                         .1.. .... = Node-SID (N): Set
>                         ..0. .... = No-PHP (P): Not set
>                         ...0 .... = Explicit-Null (E): Not set
>                         .... 0... = Value (V): Not set
>                         .... .0.. = Local (L): Not set
>                     Algorithm: 0
>                     SID/Index: 3333
>
>
> Here is confusion, how, let's say, a controller, which receives such
> BGP-LS update, could  distinguish it from regular Prefix/Node SID?
>
> Unfortunately draft-ietf-idr-bgp-ls-segment-routing-ext-18 does not
> clarify this issue because it only describes Prefix SID TLV type 1158. Any
> suggestions?
>
> 2)  draft-ietf-idr-bgp-ls-segment-routing-ext-18 has two types of labels
> TLV: SID/Label TLV type 1161 and Prefix SID  TLV type 1158.  I checked
> several vendors implementations of BGP-LS, all of them use only Prefix SID
> TLV.
> Why the draft does not have some conditions or clarifications when to use
> SID/Label TLV and when Prefix SID TLV?
>
> Thank you.
>
> SY,
> Boris
>
>
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr
>