Re: [OSPF] [spring] One question on E-flag of ABR/ASBR in OSPF SR extension

Peter Psenak <ppsenak@cisco.com> Fri, 19 May 2017 07:49 UTC

Return-Path: <ppsenak@cisco.com>
X-Original-To: ospf@ietfa.amsl.com
Delivered-To: ospf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C8E6B129A90 for <ospf@ietfa.amsl.com>; Fri, 19 May 2017 00:49:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.503
X-Spam-Level:
X-Spam-Status: No, score=-14.503 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 nKy_L-igJXYj for <ospf@ietfa.amsl.com>; Fri, 19 May 2017 00:49:56 -0700 (PDT)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 313AD12EC42 for <ospf@ietf.org>; Fri, 19 May 2017 00:43:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3830; q=dns/txt; s=iport; t=1495179834; x=1496389434; h=message-id:date:from:mime-version:to:subject:references: in-reply-to:content-transfer-encoding; bh=C33Jq6nqhGvLD03Et2kCwkyZslCnA8MC9DbOfE91xaE=; b=DhPjkqfektKLJeY/Q1JOyuTeZ8DEbzJW/sNqzOci13eCeUf7Ho2T2DW+ jj9JLWH6BwRl5+/ZKbE/PZb8VCubOyBfyQySmEbYF9ie41BtAS6eRPs0C sgIT+JzagsWhiKPIYlXUFmBaEeDSbtRd5mr2eBnITGucTvztkP65UI2ml M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CMAAAsoR5Z/xbLJq1cGQEBAQEBAQEBAQEBBwEBAQEBhDeBDI4Gc5B8lXaCDyELhS5KAoYyGAECAQEBAQEBAWsohRgBAQEBAgEBATY2Cg0ECxEEAQEBCRYIBwkDAgECARUfCQgGAQwGAgEBihgIDrEOEosdAQEBAQEBAQEBAQEBAQEBAQEBAQEBGAWGX4FegxuKVQEElkUwhyCTHIsEhmqURh84gQovIAgZFUaEdxyBZT42iRwBAQE
X-IronPort-AV: E=Sophos;i="5.38,363,1491264000"; d="scan'208";a="654797821"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 May 2017 07:43:49 +0000
Received: from [10.60.140.51] (ams-ppsenak-nitro2.cisco.com [10.60.140.51]) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id v4J7hnY0001252; Fri, 19 May 2017 07:43:49 GMT
Message-ID: <591EA235.3020909@cisco.com>
Date: Fri, 19 May 2017 09:43:49 +0200
From: Peter Psenak <ppsenak@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: Chao Fu <chao.fu@ericsson.com>, "ospf@ietf.org" <ospf@ietf.org>
References: <VI1PR07MB1071503225586B964C69096191E40@VI1PR07MB1071.eurprd07.prod.outlook.com> <591D6136.2070208@cisco.com> <VI1PR07MB1071C58A7353F89F2A16F3A691E40@VI1PR07MB1071.eurprd07.prod.outlook.com> <591D6DAA.20407@cisco.com> <VI1PR07MB1071C85B5B2FDFC188A2C57F91E50@VI1PR07MB1071.eurprd07.prod.outlook.com>
In-Reply-To: <VI1PR07MB1071C85B5B2FDFC188A2C57F91E50@VI1PR07MB1071.eurprd07.prod.outlook.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ospf/k-zHanEnD3YCbmea_B6XMsr4aug>
Subject: Re: [OSPF] [spring] One question on E-flag of ABR/ASBR in OSPF SR extension
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: The Official IETF OSPG WG Mailing List <ospf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ospf>, <mailto:ospf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ospf/>
List-Post: <mailto:ospf@ietf.org>
List-Help: <mailto:ospf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ospf>, <mailto:ospf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 May 2017 07:49:59 -0000

On 19/05/17 05:40 , Chao Fu wrote:
> Hi Peter,
>
> Yes I think it is better to add the text that would say that ABR MUST NOT set the E-bit.
> If not, when ABR receives the intra prefix with SID, it would be thought to inherit the SID value including its flags (NP and E) and then flood the SID to other areas. I guess that's why NP is described expressly on ABR not to do so. Then I think E-flag should be clarified also in case the non-directly attached prefix sets it. It could avoid any misunderstanding.
> Anyway, the E-flag will not be set in this case, right? Thanks.

right.

Peter

>
> Regards,
> Chao Fu
>
> -----Original Message-----
> From: Peter Psenak [mailto:ppsenak@cisco.com]
> Sent: Thursday, May 18, 2017 17:47
> To: Chao Fu <chao.fu@ericsson.com>; spring@ietf.org
> Subject: Re: [spring] One question on E-flag of ABR/ASBR in OSPF SR extension
>
> Hi Chao,
>
> On 18/05/17 11:15 , Chao Fu wrote:
>> Hi Peter,
>>
>> It's right if the NP-flag is not set then the received E-flag is
>> ignored. But, if the NP-flag is SET because the prefix is not directly
>> attached to the ABR, E-flag will not be ignored
>
> why would an E-bit be set in such case? It's up to the originator of the SID to decide when to set the E-bit. If the ABR does not set the E-bit no PHP would be done and advertised SID will be preserved.
>
> Are you trying to add the text that would say that ABR MUST NOT set the E-bit either? I don't think it's necessary.
>
> thanks,
> Peter
>
>> and the upstream neighbor will replace the Prefix-SID with the Explicit-NULL label 0. I guess actually the packet should be forwarded with the original prefix-SID, and no need to pop the 0 label and look up path again.
>>
>> Regards,
>> Chao Fu
>>
>>
>> -----Original Message-----
>> From: Peter Psenak [mailto:ppsenak@cisco.com]
>> Sent: Thursday, May 18, 2017 16:54
>> To: Chao Fu <mailto:chao.fu@ericsson.com>; mailto:spring@ietf.org
>> Subject: Re: [spring] One question on E-flag of ABR/ASBR in OSPF SR
>> extension
>>
>> Hi Chao,
>>
>> On 18/05/17 09:44 , Chao Fu wrote:
>>> Hi,
>>>
>>> Should we clarify how to set E-flag for ABR/ASBR in OSPF SR extension?
>>>
>>> In
>>> https://www.ietf.org/id/draft-ietf-ospf-segment-routing-extensions-14.
>>> txt, the draft describes how to set NP-flag on ABR and ASBR (Section
>>> 5 [Page
>>> 14]):
>>>
>>>       The NP-Flag (No-PHP) MUST be set for Prefix-SIDs allocated to
>>> inter-
>>>
>>>       area prefixes that are originated by the ABR based on intra-area
>>> or
>>>
>>>       inter-area reachability between areas.  When the inter-area
>>> prefix is
>>>
>>>       generated based on a prefix which is directly attached to the
>>> ABR,
>>>
>>>       the NP-Flag SHOULD NOT be set.
>>>
>>>       The NP-Flag (No-PHP) MUST be be set for Prefix-SIDs allocated to
>>>
>>>       redistributed prefixes, unless the redistributed prefix is
>>> directly
>>>
>>>       attached to the ASBR, in which case the NP-flag SHOULD NOT be set.
>>>
>>> However, the E-flag (Explicit-Null Flag) is not described. Should we
>>> clarify it also? I think E-flag SHOULD NOT be set if the prefix is
>>> not directly attached to the ABR or ASBR, and if necessary, it SHOULD
>>> be set if the prefix is directly attached to the ABR or ASBR.
>>
>> The existing draft says:
>>
>> "If the NP-flag is not set then the received E-flag is ignored."
>>
>> Given that the draft clearly states when the NP-flag is set on ABR/ASBR above statement should be sufficient.
>>
>> thanks,
>> Peter
>>
>>
>>>
>>> Regards,
>>>
>>> Chao Fu
>>>
>>>
>>>
>>> _______________________________________________
>>> spring mailing list
>>> mailto:spring@ietf.org
>>> https://www.ietf.org/mailman/listinfo/spring
>>>
>>
>> .
>>
>
> .
>