Re: [Lsr] WG Last Call draft-ietf-lsr-isis-srv6-extensions

Chris Bowers <chrisbowers.ietf@gmail.com> Fri, 31 January 2020 20:13 UTC

Return-Path: <chrisbowers.ietf@gmail.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C334D120043; Fri, 31 Jan 2020 12:13:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=gmail.com
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 izS3Kall09Bs; Fri, 31 Jan 2020 12:13:01 -0800 (PST)
Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 56D8E120020; Fri, 31 Jan 2020 12:13:01 -0800 (PST)
Received: by mail-qk1-x735.google.com with SMTP id d10so7871141qke.1; Fri, 31 Jan 2020 12:13:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PVEhv3oE5CeLoSpFqzKuzzq8xH0TS6apGaC83Yyu2v8=; b=MoJnE6uVBTSKAWOFnTLMSuXvQvyb5m4yUUmORCsvw1U8HJkW/EH5EPtcMhsvaa1cbX FyCgazbA2K/nDloM70eVffKglw0gwEbvk0d0R5g0pUp/NP33kShQ0X5MeOQNS9Bt0Y+8 rl1tpS6Y9LGptZiJuKQGipdo9RE+MJjM0KmaCtylQcnnZlP6NRafmFxgCCf6xii8WRjJ bT14bD2AKeF+1hg1fGTqLZY5HA97vh02PTDuyMubHwCH11sVjzJ/0XPEKNyClD1I/drQ VlES7s2X1Ke869VjbvOwiYDvoH2ovy0xKv/cZ8RyXqnSHBp1YxoXv/DZR2p/YZzajNUF L8nQ==
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=PVEhv3oE5CeLoSpFqzKuzzq8xH0TS6apGaC83Yyu2v8=; b=YI58kATadPFtAeN6a7IyUHe9D0dysxLHd8/swCC2MbmkeUwJ7o6dw227+Js7P8/M4/ vECdIZZ79NED9fPaydM7/WeIubpwidfvanIZklYXYZARc425lIj4MLwE9rStJzErZIpc 24p4WtXRMCXRCSH0mC7l21VSOn1hGX7lXz4l/agQsTVfpEGfM/gR4bCercdeYyfEz8Xe LN7t87tD66/sO3vCxBJ1ojJduvSJl05e2XKZBPzGcksKF4yA0mlNS9YUoK2T3DgaUfQT 1NLlkOuvX8yLY4v+EaQOsNvx7TknxFeQzAXngdUY9FValhioe5Am2guuyck5iy73tE4s weWw==
X-Gm-Message-State: APjAAAXZ+j4psTMWpX7oXj6Bc359ahWmbx+Zjw/gyySWIlUQLy/Br2m4 lUC5yxK62yVJq4KGTgcBhyldWxTfslfrGCcMe0I=
X-Google-Smtp-Source: APXvYqzT9Or5Bwt8QqQPLr4VFcMUdG8fI61W1rbgADbJN/U4ntYQKiZGOskAZ3OVODimbNycrQpTzJBygogO6h2Tn5E=
X-Received: by 2002:a37:e211:: with SMTP id g17mr9541650qki.210.1580501580349; Fri, 31 Jan 2020 12:13:00 -0800 (PST)
MIME-Version: 1.0
References: <122B138F-AA4F-4C7C-969C-755DF15F5744@chopps.org> <CAHzoHbtnCjqZjrxpYWhR8RTqbviOBDp1UEecXyAwu0kTZ1nLGA@mail.gmail.com> <fa7c6ef0-e6c7-3d14-41f3-0a64861e25e0@cisco.com>
In-Reply-To: <fa7c6ef0-e6c7-3d14-41f3-0a64861e25e0@cisco.com>
From: Chris Bowers <chrisbowers.ietf@gmail.com>
Date: Fri, 31 Jan 2020 14:10:41 -0600
Message-ID: <CAHzoHbtVNMn1igrab-Q770v22JkdkJZXi86ZL7jfN775he3ZrA@mail.gmail.com>
To: Peter Psenak <ppsenak@cisco.com>, "Les Ginsberg (ginsberg)" <ginsberg@cisco.com>
Cc: lsr@ietf.org, lsr-ads@ietf.org, Christian Hopps <chopps@chopps.org>, "Acee Lindem (acee)" <acee@cisco.com>
Content-Type: multipart/alternative; boundary="00000000000043869d059d753342"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/6BNzd4SWWrRsVyDuyiCcQsH0ByM>
Subject: Re: [Lsr] WG Last Call draft-ietf-lsr-isis-srv6-extensions
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 31 Jan 2020 20:13:05 -0000

Peter and Les,

It seems to me that for the Node Flag in RFC7794 and the proposed Anycast Flag

in draft-ietf-lsr-isis-srv6-extensions-04, we are ultimately concerned with

how to identify IGP-Node Segments and IGP-Anycast Segments, as defined
in RFC8402,

the Segment Routing Architecture document.



If this is the case, then the following text from RFC8402 is very relevant.

============

3.2.  IGP-Node Segment (Node-SID)



   An IGP Node-SID MUST NOT be associated with a prefix that is owned by

   more than one router within the same routing domain.



3.3.  IGP-Anycast Segment (Anycast-SID)

   ....

   An IGP-Anycast segment MUST NOT reference a particular node.

   ....

============

This text can be interpreted in two different ways.



Interpretation I)

A prefix-SID can have the following three possible states.

Ia) Node-SID

Ib) Anycast-SID

Ic) neither Node-SID nor Anycast-SID



Interpretation II)

A prefix-SID can have the following two possible states.

IIa) Node-SID

IIb) Anycast-SID



If Interpretation I) is correct, then I think that the current encodings in

draft-ietf-lsr-isis-srv6-extensions-04 do not allow us

to unambiguously identify a Node-SID for a non-/128

prefix/locator.  For example, the End-SIDs within a /64 locator with the
A-flag set could

either be Ia) a Node-SID  or Ic) neither Node-SID nor Anycast-SID.

I think a reasonable solution would be to remove the restriction

on the N-flag to allow it to be used for non-/128 prefixes/locators.  This

would allow the three possible prefix-SIDs states to be easily represented.



If Interpretation II) is correct, then I think that the current encodings
in

draft-ietf-lsr-isis-srv6-extensions-04 need clarification with respect to

how to interpret a /128 prefix/locator advertisement with N=0, A=0. We

have to decide between interpreting the End-SIDs within the locator

as either Node-SIDs or Anycast-SIDs, since there is no third option.

I think that interpreting the End-SIDs as Anycast-SIDs in the N=0, A=0

case is preferable because it preserves backwards compatibility.


Thanks,

Chris




On Thu, Jan 30, 2020 at 4:02 AM Peter Psenak <ppsenak@cisco.com> wrote:

> Hi Chris,
>
> please see inline (##PP)
>
> On 29/01/2020 17:25, Chris Bowers wrote:
> > I would like to proposed the following text to make section 6 more clear.
> >
> > Thanks,
> > Chris
> >
> > ====================
> >
> >   (existing text)
> >
> >
> > 6.  Advertising Anycast Property
> >
> >     Both prefixes and SRv6 Locators may be configured as anycast and as
> >
> >     such the same value can be advertised by multiple routers.  It is
> >
> >     useful for other routers to know that the advertisement is for an
> >
> >     anycast identifier.
> >
> >     A new flag in "Bit Values for Prefix Attribute Flags Sub-TLV"
> >
> >     registry [RFC7794] is defined to advertise the anycast property:
> >
> >         Bit #: 4 (Suggested - to be assigned by IANA)
> >
> >         Name: Anycast Flag (A-flag)
> >
> >         When the prefix/SRv6 locator is configured as anycast, the A-flag
> >
> >         SHOULD be set. Otherwise, this flag MUST be clear.
> >
> >     The A-flag MUST be preserved when leaked between levels.
> >
> >     The A-flag and the N-flag MUST NOT both be set.
> >
> > ==== start insert new text =======
> >
> >
> > Certain use cases require prefixes/locators that uniquely belong to a
> node.
> >
> > Since prefixes/locators which are not /128 should not have the N bit set,
> >
> > this node local uniqueness is decided based on A bit for non-/128
> prefixes.
>
> ##PP
> above does not seem correct. Above seems to imply that for non-/128
> prefix, A-bit is replacement of N-bit.
>
> A-bit applies to both /128 and non-/128 prefixes equally.
>
> Current draft clearly states what to do when both N a A bits are set.
>
>
>
> >
> >     When a prefix/locator iscategorized as anycast, it does not uniquely
> > belong
> >
> >     to a node and cannot be used for such use cases.  The rules below
> > specify
> >
> >     how to determine whether or not a prefix/locator should be treated
> > as anycast
> >
> >     in various situations.
> >
> >
> >     [RFC7794] contains the following restriction on the interpretation
> of the N-flag.
> >
> >     "If the flag is set and the prefix length is NOT a host prefix
> >
> >      (/32 for IPV4, /128 forIPv6), then the flag MUST be ignored."
> >
> >     The current document does NOT modify this restriction on the
> interpretation of
> >
> >     the N-flag imposed by [RFC7794].
>
> ##PP
> I don't think above text is needed. And I don't think above is
> completely correct, as we define a new case in which the N-bit should be
> ignored (when A-bit is set).
>
>
> >
> >     For a prefix/SRv6 Locator advertisement with a /128 prefix/locator,
> >
> >     if both N-flag and A-flag are set, the receiving router MUST treat
> the
> >
> >     prefix advertisement as anycast.
>
> ##PP
> we have following text in the draft already:
>
> "If both N-flag and A-flag are set in the prefix/SRv6 Locator
>     advertisement, the receiving routers MUST ignore the N-flag."
>
>
>
> >
> >     For a prefix/SRv6 Locator advertisement with a /128 prefix/locator,
> >
> >     if the N-flag and A-flag are NOT set, the receiving routers
> >
> >     MUST treat the prefix advertisement as anycast.
>
> ##PP
> I don't think above statement is correct. Why a node cannot advertise a
> /128 prefix which is not an anycast one and does not have a N-bit set?
>
>
>
> > This rule ensures the
> >
> >     correct interpretation of a prefix advertisement originated by
> >
> >     a router that is not SRv6 capable and originates a legacy
> >
> >     Prefix Attribute Flags Sub-TLV based on [RFC7794] alone.
> >
> >     For a prefix/SRv6 Locator advertisement with a prefix/locator that
> >
> >     is NOT /128, the N-flag must be ignored, so the setting of the
> >
> >     A-flag determines the anycast treatment of the prefix advertisement.
>
> ##PP
> A-flag does that regardless of the length of the prefix.
>
>
> >
> >     The Prefix Attribute Flags Sub-TLV can be carried in the SRv6
> > Locator TLV
> >
> >     as well as the Prefix Reachability TLVs.  When a router originates
> >
> >     both the Prefix Reachability TLV and the SRv6 Locator TLV for a given
> >
> >     prefix, and the router is originating the Prefix Attribute Flags
> Sub-TLV
> >
> >     in one of the TLVs, the router SHOULD advertise identical versions
> of the
> >
> >     Prefix Attribute Flags Sub-TLV in both TLVs.
>
> ##PP
> Above seems a good suggestion. Will add it.
>
> >
> >
> >
> >     If a router receives one Prefix Attribute Flags Sub-TLV in the
> >
> >     Prefix Reachability TLV and another in the SRv6 Locator TLV, the
> router should
> >
> >     use the prefix attribute flags received in the Prefix Reachability
> TLV.
>
> ##PP
> above contradicts what you suggest in the previous paragraph, where you
> suggest we need to advertise with both prefix and locator, and here you
> suggest we ignore what we received in the locator.
>
> Are you talking about the case where the content of the Prefix Attribute
> Flags Sub-TLV is different in prefix vs locator?
> >
> >
> >
> >     If a router receives a Prefix Attribute Flags Sub-TLV in the
> >
> >     Prefix Reachability TLV but not in the SRv6 Locator TLV, the router
> should
> >
> >     use the prefix attribute flags received in the Prefix Reachability
> TLV.
>
> ##PP
> do we really need this? If the originator does the right thing, then we
> don't have the problem. Cross referencing data between different TLVs
> complicates the implementations.
>
>
> >
> >
> >
> >     If a router receives a Prefix Attribute Flags Sub-TLV in the
> >
> >     SRv6 Locator TLV but not in the Prefix Reachability TLV,
> >
> >     the router should use the prefix attribute flags received in the
> SRv6 Locator TLV.
>
> ##PP
> same as above.
>
> thanks,
> Peter
>
> >
> > ==== end insert new text =========
> >
> >     The same prefix/SRv6 Locator can be advertised by multiple routers.
> >
> >     If at least one of them sets the A-Flag in its advertisement, the
> >
> >     prefix/SRv6 Locator SHOULD be considered as anycast.
> >
> >
> >
> > ===================
> >
> >
> > On Tue, Jan 21, 2020 at 6:15 PM Christian Hopps <chopps@chopps.org
> > <mailto:chopps@chopps.org>> wrote:
> >
> >     This begins a 2 week WG Last Call, ending after Feb 4, 2020, for
> >     draft-ietf-lsr-isis-srv6-extensions
> >
> >     https://datatracker.ietf.
> .org/doc/draft-ietf-lsr-isis-srv6-extensions/
> >     <
> https://datatracker.ietf.org/doc/draft-ietf-lsr-isis-srv6-extensions/>
> >
> >     Authors please indicate if you aware of any other IPR beyond what is
> >     posted:
> >
> >     https://datatracker.ietf.org/ipr/3796/
> >
> >     Thanks,
> >     Chris & Acee.
> >     _______________________________________________
> >     Lsr mailing list
> >     Lsr@ietf.org <mailto:Lsr@ietf.org>
> >     https://www.ietf.org/mailman/listinfo/lsr
> >
>
>