Re: [OSPF] OSPF NSSA ABR behaviors

"Pat Murphy - (650)329-4044" <pmurphy@noc.usgs.net> Fri, 05 February 2010 23:19 UTC

Return-Path: <pmurphy@noc.usgs.net>
X-Original-To: ospf@core3.amsl.com
Delivered-To: ospf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CA2BD28C173 for <ospf@core3.amsl.com>; Fri, 5 Feb 2010 15:19:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.101
X-Spam-Level:
X-Spam-Status: No, score=0.101 tagged_above=-999 required=5 tests=[AWL=-2.700, BAYES_00=-2.599, J_CHICKENPOX_110=0.6, J_CHICKENPOX_111=0.6, J_CHICKENPOX_12=0.6, J_CHICKENPOX_13=0.6, J_CHICKENPOX_14=0.6, J_CHICKENPOX_15=0.6, J_CHICKENPOX_16=0.6, J_CHICKENPOX_17=0.6, J_CHICKENPOX_18=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6rac9TQFykbu for <ospf@core3.amsl.com>; Fri, 5 Feb 2010 15:19:09 -0800 (PST)
Received: from ns0.wr.usgs.gov (omega7.wr.usgs.gov [130.118.4.3]) by core3.amsl.com (Postfix) with ESMTP id B012328C167 for <OSPF@IETF.ORG>; Fri, 5 Feb 2010 15:19:06 -0800 (PST)
Received: from omega7.wr.usgs.gov by omega7.wr.usgs.gov (PMDF V6.0-23 #41392) id <01NJB3RECGOW000DP4@omega7.wr.usgs.gov> for OSPF@IETF.ORG; Fri, 05 Feb 2010 15:19:57 -0700 (PDT)
Date: Fri, 05 Feb 2010 15:19:57 -0700
From: "Pat Murphy - (650)329-4044" <pmurphy@noc.usgs.net>
To: OSPF@IETF.ORG
Message-id: <01NJB3RECHMQ000DP4@omega7.wr.usgs.gov>
X-VMS-To: ospf@ietf.org
X-VMS-Cc: PMURPHY,James.Huang@watchguard.com
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET="us-ascii"
Cc: JAMES.HUANG@WATCHGUARD.COM
Subject: Re: [OSPF] OSPF NSSA ABR behaviors
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: The Official IETF OSPG WG Mailing List <ospf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ospf>, <mailto:ospf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 05 Feb 2010 23:19:11 -0000

James,

See comments inline.

P>Thus if one desires to aggregate the external route during Type-7
P>translation using a Type-7 address range then a Type-7 LSA with the P-bit
P>set must be originated.

P>Note the latter statement from RFC 3101 simply ensures that non-NSSA
P>traffic forwarded by a Type-5 LSA installation toward a forwarding address
P>inside an NSSA won't loop. I prefer originating the Type-7 LSA with the
P>P-bit set and simply letting the Type-7 translation process originate the
P>Type-5 LSA. Thus Type-5 LSAs would then never need to set a forwarding
P>address that belongs in a stub area or an NSSA, except during the Type-7
P>LSA translation process. Hence if the best forwarding address is in the
P>transit topology, it is better to originate both a Type-5 LSA and a Type-7
P>LSA with the P-bit clear. If the best forwarding address belongs to the
P>NSSA, it is better to simply originate a Type-7 LSA with the P-bit set and
P>let the Type-7 translation process originate the Type-5 LSA.

J>When you say a router originates a type-7 LSA, does it mean
J>that the type-7 LSA will be advertised?

Of course, all LSAs are advertised by an originating router.
See RFC 2328 Appendix A.4.1, "The LSA header".

J>Or it simply means that the type-7 LSA is generated internally
J>and it depends on the translation process to determine whether
J>it should be aggregated with some other external LSA(s) or be
J>advertised individually? 

Like all LSAs, Type-7 LSAs are only generated to be originated
by an advertising router. But once originated with the P-bit set
the Type-7 LSA may generate a Type-5 translation as described in
RFC 3101 Section 3.2, Translating Type-7 LSAs into Type-5 LSAs.

P>Let's assume that the redistribute is intended to feed the route
P>into all NSSAs and the non-NSSA topology. If (G) belongs to the non-NSSA
P>topology, originate a Type-5 LSA with forwarding address (G) into the
P>non-NSSA topology and also originate a Type-7 LSA with the P-bit clear
P>into each NSSA. Here the Type-7 LSAs can simply use a 0.0.0.0 forwarding
P>address. If (G) belongs to one of the NSSAs, then originate a Type-7 LSA
P>with the P-bit set into that NSSA with the forwarding address set to (G).
P>Finally originate a Type-7 LSA with the P-bit clear into the remaining
P>NSSAs. Note again that Type-7 translation will cause the appropriate
P>Type-5 LSA to be originated into the non-NSSA topology.

J>Agree - assuming address aggregation is not performed.

Type-7 ranges that subsume only a single prefix with the same
[address,mask] pair result in a normal translation. Hence, since
type-7 ranges can even subsume other type-7 ranges, one can negate
the effects of aggregation under configuration control. This is a
subtle point from RFC 3101 Section 3.2.

J>On a related question: When a MSSA ABR originates a aggregated
J>type-5 LSA, does it has to advertise a corresponding type-7 (p=0)
J>LSA into the NSSA area?  I cannot find any rule in RFC 3101 about this. 

The origination of a type-5 LSA generated by the translation of a
type-7 LSA NEVER forces the origination of another type-7 LSA.

J>I think the answer is no unless more than one locally sourced
J>external LSAs with the best forwarding addresses NOT in the NSSA are
J>aggregated into the type-5 LSA (otherwise, individual type-7 LSA
J>(p=0) should be advertised).   Is this correct?

The non-zero forwarding addresses of Type-7 LSAs are always
chosen from interfaces that belong to the NSSA. See Section 2.3.
A type-5 translation that aggregates a set of installed type-7
LSAs also NEVER forces the origination of another type-7 LSA.

J>One more question, RFC3101, sec 3.2 step (3):

          The path type and metric of the Type-7 address range is
          determined from the path types and metrics of those
          translatable Type-7 LSAs that best match the range plus any
          locally sourced Type-5 LSAs whose network has the same
          [address,mask] pair.

J>What is the reason aggregation can only aggregate those locally sourced
J>type-5 LSAs with the same [address, mask] as the configured address range?

Since this is an aggregation its metric must reflect the highest cost 
amongst the type-7 LSAs being aggregated. A locally source type-5 LSA
that has the same [address,mask] pair coupled with a lower cost could
negate the translation metrics. Similarly a lower cost in the Type-5
translation of a type-7 range would negate the high cost of a
locally sourced type-5 LSA with the same [address,mask] pair. Hence
a single advertisement is required.

J>If a locally sourced type-5 LSA is subsumed within the range, can it
J>be aggregated too?

No. The above excerpt is the only exception.

Pat