home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_j_p / draft-ietf-ospf-nssa-update-00.txt < prev    next >
Text File  |  1997-03-25  |  59KB  |  1,469 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. Network Working Group                                          R. Coltun
  7. Internet Draft                                              FORE Systems  
  8. Expiration Date: July 1997                                     V. Fuller
  9. File name: draft-ietf-ospf-nssa-update-00.txt                 BBN Planet
  10.                                                             January 1997
  11.  
  12.  
  13.                           The OSPF NSSA Option
  14.  
  15. Status of this Memo
  16.  
  17.    This document is an Internet-Draft.  Internet-Drafts are working
  18.    documents of the Internet Engineering Task Force (IETF), its areas,
  19.    and its working groups.  Note that other groups may also distribute
  20.    working documents as Internet-Drafts.
  21.  
  22.    Internet-Drafts are draft documents valid for a maximum of six
  23.    months and may be updated, replaced, or obsoleted by other documents
  24.    at any time.  It is inappropriate to use Internet-Drafts as reference
  25.    material or to cite them other than as "work in progress".
  26.  
  27.    To learn the current status of any Internet-Draft, please check the
  28.    "1id-abstracts.txt" listing contained in the Internet-Drafts Shadow
  29.    Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  30.    munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
  31.    ftp.isi.edu (US West Coast).
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Coltun & Fuller                                                 [Page i]
  56.  
  57. Internet Draft              OSPF NSSA Option                January 1997
  58.  
  59.  
  60. Table Of Contents
  61.  
  62.    1.0 Abstract .................................................  1
  63.    2.0 Overview .................................................  2
  64.    2.1 Motivation - transit networks ............................  2
  65.    2.2 Motivation - corporate netowrks ..........................  3
  66.    2.3 Proposed Solution ........................................  4
  67.    3.0 Implementation Details ...................................  6
  68.    3.1 The N-bit ................................................  6
  69.    3.2 Type-7 Address Ranges ....................................  7
  70.    3.3 Type-7 LSAs ..............................................  7
  71.    3.4 Originating Type-7 LSAs ..................................  8
  72.    3.5 Calculating Type-7 AS External Routes ....................  9
  73.    3.6 Incremental Updates ...................................... 12
  74.    4.0 Originating Type-5 LSAs .................................. 13
  75.    4.1 Translating Type-7 LSAs .................................. 13
  76.    4.2 Flushing Translated Type-7 LSAs .......................... 16
  77.    5.0 Acknowledgments .......................................... 17
  78.    6.0 References ............................................... 17
  79.    7.0 Security Considerations .................................. 17
  80.    8.0 Authors' Addresses ....................................... 18
  81.    Appendix A: Type-7 LSA Packet Format ......................... 19
  82.    Appendix B: The Options Field ................................ 20
  83.    Appendix C: Router-LSAs ...................................... 21
  84.    Appendix D: Configuration Parameters ......................... 23
  85.    Appendix E: Differences from RFC 1587 ........................ 24
  86.  
  87. 1.0  Abstract 
  88.  
  89.    This memo documents of an optional type of OSPF area which is
  90.    somewhat humorously referred to as a "not-so-stubby" area (or NSSA). 
  91.    NSSAs are similar to the existing OSPF stub area configuration option
  92.    but have the additional capability of importing AS external routes in 
  93.    a limited fashion.
  94.  
  95.    The OSPF NSSA Option was originally defined in RFC 1587.  The functional
  96.    differences between this memo and RFC 1587 are explained in Appendix D.
  97.    All differences, while expanding capability, are backward-compatible in
  98.    nature.  Implementations of this memo and of RFC 1587 will interoperate.
  99.  
  100.    Please send comments to ospf@gated.cornell.edu.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Coltun & Fuller                                                 [Page 1]
  114.  
  115. Internet Draft              OSPF NSSA Option                January 1997
  116.  
  117.  
  118. 2.0  Overview
  119.  
  120. 2.1  Motivation - transit networks
  121.  
  122.  
  123.    Wide-area transit networks (such as the NSFNET regionals) often have
  124.    connections to moderately-complex "leaf" sites.  A leaf site may have
  125.    multiple IP network numbers assigned to it.
  126.  
  127.    Typically, one of the leaf site's networks is directly connected to a
  128.    router provided and administered by the transit network while the
  129.    others are distributed throughout and administered by the site.  From
  130.    the transit network's perspective, all of the network numbers
  131.    associated with the site make up a single "stub" entity.  For example,
  132.    BBN Planet has one site composed of a class-B network, 130.57.0.0,
  133.    and a class-C network, 192.31.114.0.  From BBN Planet's perspective,
  134.    this configuration looks something like this:
  135.  
  136.                     192.31.114
  137.                         |
  138.                       (cloud)
  139.                   -------------- 130.57.4
  140.                         |
  141.                         |
  142.                      ------ 131.119.13 ------
  143.                      |BR18|------------|BR10|
  144.                      ------            ------
  145.                                           |
  146.                                           V
  147.                                   to BBN Planet "core" OSPF system
  148.  
  149.  
  150.    where the "cloud" consists of the subnets of 130.57 and network
  151.    192.31.114, all of which are learned by RIP on router BR18.
  152.    Topologically, this cloud looks very much like an OSPF stub area.  The
  153.    advantages of running the cloud as an OSPF stub area are:
  154.  
  155.              1. Type-5 routes (OSPF external link-state advertisements
  156.                 (LSAs)) are not advertised beyond the router labeled
  157.                 "BR10".  This is advantageous because the link between
  158.                 BR10 and BR18 may be a low-speed link or the router BR18
  159.                 may have limited resources.
  160.  
  161.              2. The transit network is abstracted to the "leaf" router
  162.                 BR18 by advertising only a default route across the link
  163.                 between BR10 and BR18.
  164.  
  165.              3. The cloud becomes a single, manageable "leaf" with
  166.                 respect to the transit network.
  167.  
  168.  
  169.  
  170. Coltun & Fuller                                                 [Page 2]
  171.  
  172. Internet Draft              OSPF NSSA Option                January 1997
  173.  
  174.  
  175.              4. The cloud can become, logically, a part of the transit
  176.                 network's OSPF routing system.
  177.  
  178.              5. Translated type-5 LSAs that are sent into the backbone
  179.                 from the cloud (which is a separate stub area) may be
  180.                 considered "leaf" nodes when performing the Dijkstra
  181.                 calculation.
  182.  
  183.    However, the current definition of the OSPF protocol [1] imposes
  184.    topological limitations which restrict simple cloud topologies from
  185.    becoming OSPF stub areas.  In particular, it is illegal for a stub
  186.    area to import routes external to OSPF; it is not possible for
  187.    routers BR18 and BR10 to both be members of the stub area and to
  188.    import the routes learned from RIP or other IP routing protocols as
  189.    type-5 (OSPF external LSAs) into the OSPF system.  In order to run
  190.    OSPF out to BR18, BR18 must be a member of a non-stub area or the
  191.    OSPF backbone before it can import routes other than its
  192.    directly-connected network(s).  Since it is not acceptable for BR18 to
  193.    maintain all of BBN Planet's external (type-5) routes, BBN Planet
  194.    is forced by OSPF's topological limitations to only run OSPF out to
  195.    BR10 and to run RIP between BR18 and BR10.
  196.  
  197.  
  198. 2.2  Motivation - corporate networks
  199.  
  200.    In a corporate network which supports a large corporate infrastructure it
  201.    is not uncommon for OSPF area 0 to have a large area infrastructure
  202.    injecting large routing tables into area 0.  Organizations within the
  203.    corporate infrastructure may routinely multi-home their non-0 OSPF areas
  204.    to strategically located backbone area 0 routers, either to provide
  205.    backbone redundancy or increase backbone connectivity or both.  Because
  206.    of these large routing tables, OSPF aggregation via summarization is
  207.    routinely used and recommended.  Stub areas are also recommended to keep
  208.    the size of the non-zero routing tables small.  Organizations within the
  209.    corporation are administratively autonomous and compete for corporate
  210.    backbone resources.  They also want isolation from each other in order
  211.    protect their own network resources within the organization.
  212.  
  213.    Consider a typical backbone connection, as shown on the next page, where
  214.    routers An, Bn are connected to their respective area n's and routers A0
  215.    and B0 are border routers to both area 1 and area 2.  Serial lines are
  216.    displayed, but several ethernets, not displayed, may also connect from
  217.    the connected areas at each router depicted internal to Areas 1 and 2. 
  218.    Assume the 192.243.192/20 and 192.243.208/22 clouds are subnetted with a
  219.    protocol foreign to the corporate OSPF process.  These processes could be
  220.    RIP, IGRP, or second and third OSPF processes separate from the corporate
  221.    OSPF backbone process.
  222.  
  223.  
  224.  
  225.  
  226.  
  227. Coltun & Fuller                                                 [Page 3]
  228.  
  229. Internet Draft              OSPF NSSA Option                January 1997
  230.  
  231.  
  232.            /---A0-----Area 0(cloud)------B0---\
  233.            |   |                          |   |
  234.       56kbs|   |T1             19.2 dialup|   |T1
  235.            |   |                          |   |
  236.            |   A1-----Area 1(cloud)------B1   |
  237.            |   |   T1                 T1  |   |
  238.            | T1|                          |T1 |
  239.            |   \---192.243.192/20 cloud---/   |
  240.            |                                  |
  241.            \---A2-----Area 2(cloud)------B2---/
  242.                |   T1                 T1  |
  243.                |                          |   
  244.                \---192.243.208/22 cloud---/  
  245.  
  246.    As a matter of policy, the corporate network administrators want
  247.    192.243.192/20 and 192.243.208/22 aggregated to the backbone.  This
  248.    policy conflicts with both Area 1 and Area 2's desire to see the
  249.    aggregate's subnetted infrastructures learned from Area 1's internal
  250.    routers A1 and B1 and Area 2's internal routers A2 and B2 from which it
  251.    can make efficient routing decisions.  The current standard OSPF stub
  252.    area has no mechanism to support the redistribution of routes for
  253.    192.243.192/20 and 192.243.208/22 subnets within their respective areas. 
  254.    If one assumes that both the Area 1 and Area 2 clouds are extremely large
  255.    with internally very large routing tables originating from a complex OSPF
  256.    link state topology and subnetting scheme, neither Area 1 or Area 2 wants
  257.    to be at the mercy of either the other area's summary links
  258.    advertisements or external links advertisements.  Thus standard OSPF
  259.    areas are not an option either.
  260.  
  261.    Any solution to this dilemma must honor Area 1's path of choice through
  262.    A0 with redundancy through B0 while at the same time honoring Area 2's
  263.    path of choice through B0 with redundancy through A0.  Furthermore, such
  264.    a solution must support the aggregation of the externally learned
  265.    subnetted routing subdomain.
  266.  
  267.    2.3 Proposed Solution
  268.  
  269.    This document describes a new optional type of OSPF area, somewhat
  270.    humorously referred to as a "not-so-stubby" area (or NSSA), which has the
  271.    capability of importing external routes in a limited fashion.
  272.  
  273.    The OSPF specification defines two general classes of area configuration. 
  274.    The first allows type-5 LSAs to be flooded throughout the area.  In this
  275.    configuration, type-5 LSAs may be originated by routers internal to the
  276.    area or flooded into the area by area border routers.  These areas,
  277.    referred to herein as type-5 capable areas (or just plain areas in the
  278.    OSPF specification), are distinguished by the fact that they can carry
  279.    transit traffic.  The backbone is always a type-5 capable area.  The
  280.    second type of area configuration, called stub, allows no type-5 LSAs to
  281.  
  282.  
  283.  
  284. Coltun & Fuller                                                 [Page 4]
  285.  
  286. Internet Draft              OSPF NSSA Option                January 1997
  287.  
  288.  
  289.    be propagated into/throughout the area and instead depends on default
  290.    routing to external destinations.
  291.  
  292.    NSSAs are defined in much the same manner as existing stub areas.  To
  293.    support NSSAs, a new option bit (the "N" bit) and a new type of LSA
  294.    (type-7) are defined.  The "N" bit ensures that routers belonging to a
  295.    NSSA agree on its configuration.  Similar to the stub area's use of the
  296.    "E" bit, both NSSA neighbors must agree on the setting of the "N" bit or
  297.    the OSPF neighbor adjacency will not form.
  298.  
  299.    Type-7 LSAs provide for carrying external route information within a
  300.    NSSA.  Type-7 AS External LSAs have virtually the same syntax as the
  301.    Type-5 AS External LSAs with the obvious exception of the link-state type
  302.    (see section 3.2 for more details).  There are two major semantic
  303.    differences between type-5 and type-7 LSAs.
  304.  
  305.           o  Type-7 LSAs may be originated by and advertised throughout
  306.              a NSSA; as with stub areas, type-5 LSAs are not flooded
  307.              into NSSAs and do not originate there, except on NSSA border 
  308.              routers.
  309.  
  310.           o  Type-7 LSAs are advertised only within a single NSSA; they
  311.              are not flooded into the backbone area or any other area by
  312.              border routers, though the information which they contain
  313.              can be propagated into the backbone area (see section 3.6).
  314.  
  315.    In order to allow limited exchange of external information across a NSSA
  316.    border, NSSA border routers will translate selected type-7 LSAs received
  317.    from the NSSA into type-5 LSAs.  These type-5 LSAs will be flooded to all
  318.    type-5 capable areas.  NSSA border routers may be configured with address
  319.    ranges so that several type-7 LSAs may be represented by a single type-5
  320.    LSA. The NSSA border routers which perform translation are configurable
  321.    thus creating efficient forwarding to type-5 LSA originating from
  322.    aggregated type-7s.
  323.  
  324.    In addition, a NSSA border router may originate a default type-7 LSA (IP
  325.    address of 0.0.0.0) into the NSSA, and must if no NSSA internal type-7
  326.    default route exists.  Default routes are necessary because NSSAs do not
  327.    receive full routing information and must have a default route to route
  328.    to AS-external destinations.  Like stub areas, NSSAs may be connected to
  329.    the backbone at more than one area border router, but may not be used as
  330.    a transit area.  Note that the default route originated by a NSSA border
  331.    router is never translated into a type-5 LSA, however, a default route
  332.    originated by a NSSA internal AS boundary router (one that is not also an
  333.    area border router) may be translated into a type-5 LSA.
  334.  
  335.    Like stub areas, the importing of OSPF summary routes (type-3 LSAs) into
  336.    NSSAs is a configuration option.  However particular care should be taken
  337.    to ensure that OSPF internal routes are always chosen over OSPF external
  338.    (type-7) routes.  This may happen when other IGPs, like RIP and ISIS,
  339.  
  340.  
  341. Coltun & Fuller                                                 [Page 5]
  342.  
  343. Internet Draft              OSPF NSSA Option                January 1997
  344.  
  345.  
  346.    leak routing information between an OSPF NSSA and another OSPF area.  In
  347.    these cases, all OSPF summary routes should be imported into the effected
  348.    NSSAs.  The recommended default behavior is to import OSPF summary routes
  349.    into NSSAs.  Note that if a type-7 default originates from an internal
  350.    NSSA router, all summary routes must automatically be imported into the
  351.    NSSA.  This insures that OSPF internal routes are preferred over an
  352.    internal type-7 LSA default path which may cause inter-AS traffic to exit
  353.    the AS.
  354.  
  355.    In our transit example topologies the subnets of 130.57 and network
  356.    192.31.114 will still be learned by RIP on router BR18 but now both
  357.    BR10 and BR18 can be in a NSSA and all of BBN Planet's external routes
  358.    are hidden from BR18; BR10 becomes a NSSA border router and BR18 becomes
  359.    an AS boundary router internal to the NSSA.  BR18 will import the subnets
  360.    of 130.57 and network 192.31.114 as type-7 LSAs into the NSSA.  BR10 then
  361.    translates these routes into type-5 LSAs and floods them into BBN
  362.    Planet's backbone.
  363.  
  364.    In our corporate example, the subnets of 192.243.192/20 and
  365.    192.243.208/22 are learned via their respective routing process,
  366.    redistributed throughout NSSAreas 1 and 2, and then aggregated during the
  367.    translation process into a single Type-5 LSA which is flooded into Area
  368.    0.  Area 1 may configure A0 to perform translation with B0 standing by as
  369.    a backup translator, while Area 2 configures B0 as its translator with A0
  370.    its backup.
  371.  
  372. 3.0  Implementation Details
  373.  
  374. 3.1  The N-bit
  375.  
  376.    The N-bit ensures that all members of a NSSA agree on the area's
  377.    configuration.  Together, the N-bit and E-bit reflect an interface's
  378.    (and consequently the interface's associated area) external LSA
  379.    flooding capability.  As explained in section 10.5 of the OSPF
  380.    specification, if type-5 LSAs are not flooded into/throughout the
  381.    area, the E-bit must be clear in the option field of the received
  382.    Hello packets.  Interfaces associated with a NSSA will not send or
  383.    receive type-5 LSAs on that interface but may send and receive type-7
  384.    LSAs.  Therefore, if the N-bit is set in the options field, the E-bit
  385.    must be cleared.
  386.  
  387.    To support the NSSA option an additional check must be made in the
  388.    function that handles the receiving of the Hello packet to verify that
  389.    both the N-bit and the E-bit found in the Hello packet's option field
  390.    match the value of the options that have been configured in the receiving
  391.    interface.  A mismatch in the options causes processing of the received
  392.    Hello packet to stop and the packet to be dropped.
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Coltun & Fuller                                                 [Page 6]
  399.  
  400. Internet Draft              OSPF NSSA Option                January 1997
  401.  
  402.  
  403. 3.2  Type-7 Address Ranges
  404.  
  405.    NSSA border routers may be configured with type-7 address ranges. 
  406.  
  407.    Each address range is defined as an [address,mask] pair.  Many
  408.    separate type-7 networks may then be represented by a single address
  409.    range, just as a subnetted network is composed of many separate
  410.    subnets.  NSSA border routers may then summarize type-7 routes by
  411.    advertising a single type-5 route for each type-7 address range.  The
  412.    type-5 route, resulting from a type-7 address range match will be
  413.    distributed to all type-5 capable areas.  Section 4.1 gives the
  414.    details of generating type-5 routes from type-7 address ranges.
  415.  
  416.    A type-7 address range includes the following configurable items.
  417.  
  418.                o An [address,mask] pair.
  419.  
  420.                o A status indication of either Advertise or
  421.                  DoNotAdvertise.
  422.  
  423.                o An external route tag.
  424.  
  425. 3.3  Type-7 LSAs: NSSA External Link-State Advertisements
  426.  
  427.    External routes are imported into NSSAs as type-7 LSAs by NSSA AS
  428.    boundary routers.  A NSSA AS boundary routers (ASBR) is a router
  429.    which has an interface associated with the NSSA and is exchanging
  430.    routing information with routers belonging to another AS.  Like ASBRs,
  431.    a NSSA router indicates it is a NSSA ASBR by setting the E-bit in its
  432.    router links advertisement.  As with type-5 LSAs a separate type-7 LSA
  433.    is originated for each destination network.  To support NSSAs, the
  434.    link-state database must therefore be expanded to contain a type-7
  435.    LSA.
  436.  
  437.    Type 7-LSAs are identical to type-5 LSAs except for the following
  438.    (see section 12.4.4 "AS external links" in the OSPF specification).
  439.  
  440.       1. The type field in the LSA header is 7.
  441.  
  442.       2. Type-7 LSAs are only flooded within the originating NSSA.  The
  443.          flooding of type-7 LSAs follows the same rules as the flooding
  444.          of type 1-2 LSAs.
  445.  
  446.       3. Type-7 LSAs, which are kept within the NSSA's LSDB, are area
  447.          specific.  Type-5 LSAs, which are flooded to all type-5 capable
  448.          areas, have global scope and are kept in the router's LSDB.
  449.  
  450.       4. At the NSSA border router, selected type-7 LSAs are translated
  451.          into type 5-LSAs and flooded into the backbone.
  452.  
  453.  
  454.  
  455. Coltun & Fuller                                                 [Page 7]
  456.  
  457. Internet Draft              OSPF NSSA Option                January 1997
  458.  
  459.  
  460.       5. Type 7 LSAs have a propagate (P) bit which is used to flag the
  461.          NSSA border router to translate the type-7 LSA into a type-5
  462.          LSA.  Examples of how the P-bit is used for loop avoidance are
  463.          in the following sections.
  464.  
  465.       6. Those type-7 LSAs that are to be translated into type-5 LSAs
  466.          must have their forwarding address set.  Type-5 LSAs that have
  467.          been translated from type-7 LSAs for the most part must contain
  468.          a forwarding address.  The exception to this is if the
  469.          translation to a type-5 LSA is the result of an address range
  470.          match, in which case the type-5 LSA will not contain a
  471.          forwarding address (see section 4.1 for details).  The
  472.          forwarding address contained in type-5 LSAs will result in more
  473.          efficient routing to the AS external networks when there are
  474.          multiple NSSA border routers.  Having the forwarding address in
  475.          the type-7 LSAs will ease the translation of type-7 into type-5
  476.          LSAs as the NSSA border router will not be required to compute
  477.          the forwarding address.
  478.  
  479.          If the network between the NSSA AS boundary router and the
  480.          adjacent AS is advertised into OSPF as an internal OSPF route,
  481.          the forwarding address should be the next hop address as is
  482.          currently done in type-5 LSAs, but unlike type-5 LSAs if the
  483.          intervening network is not advertised into OSPF as an internal
  484.          OSPF route, the forwarding address should be any one of the
  485.          router's active OSPF interface addresses.
  486.  
  487.    Type-5 and type-7 metrics and path types are directly comparable.
  488.  
  489. 3.4 Originating Type-7 LSAs
  490.  
  491. NSSA AS boundary routers may originate type-7 LSAs.  All NSSA  border
  492. routers must also be AS boundary routers since they all must have the
  493. capability of translating type-7 LSAs into type-5 LSAs (see section
  494. 4.1 for the translation algorithm).  NSSA  border routers must
  495. set the E-bit (external bit) as well as the B-bit (border bit) in
  496. their router (type-1) LSAs (both in the backbone and in the NSSA).
  497.  
  498.    When a NSSA internal AS boundary router originates a type-7 LSA that
  499.    it wants to be translated into a type-5 LSA by NSSA border routers
  500.    (and subsequently flooded into the backbone), it must set the P-bit
  501.    in the LSA header's option field and add a valid forwarding address in
  502.    the type-7 LSA.
  503.  
  504.    If a router is attached to another AS and is also a NSSA border
  505.    router, it may originate both a type-5 and a type-7 LSA for the same
  506.    network.  The type-5 LSA will be flooded to the backbone (and all
  507.    attached type-5 capable areas).  The type-7 LSA will be flooded into
  508.    the NSSA.  If this is the case, the P-bit must be reset in the type-7
  509.  
  510.  
  511. Coltun & Fuller                                                 [Page 8]
  512.  
  513. Internet Draft              OSPF NSSA Option                January 1997
  514.  
  515.  
  516.    NSSA so the type-7 LSA isn't again translated into a type-5 LSA by
  517.    another NSSA border router.  If the border router only originates a
  518.    type-7 LSA, it may set the P-bit, thus allowing the network to be
  519.    aggregated/propagated during the type-7 translation.
  520.  
  521.    A type-7 default route (network 0.0.0.0) may be originated into the NSSA
  522.    by a NSSA border router or by a NSSA ASBR which is internal to the NSSA. 
  523.    The type-7 default route originated by the NSSA border router must have
  524.    the P-bit reset so that the default route originated by the NSSA border
  525.    router will not find its way out of the NSSA into the rest of the AS
  526.    system via another NSSA border router. 
  527.  
  528.    The type-7 default route originated by a NSSA ASBR which is not a NSSA
  529.    border router may have the P-bit set.  Type-7 routes which are originated
  530.    by a NSSA border router will not get added to the routing tables of other
  531.    NSSA border routers.  If no NSSA internal router originates a type-7
  532.    default route in the NSSA, then, like stub areas, a type-7 LSA with
  533.    default destination must be originated by all the NSSA's border routers
  534.    in order to support inter-area AS routing and inter-AS routing. 
  535.  
  536.    Note that a NSSA area border router which originates a type-7
  537.    default route would have to originate a type-5 default route before
  538.    other NSSA area border routers would see that default route.  An
  539.    internal type-7 default route whose P-bit is not set may only be
  540.    installed on a NSSA border router when it is the only non-backbone
  541.    OSPF area connected to it.  This restriction protects the default
  542.    routing of other areas attached to the NSSA border router as well any
  543.    ISP agreements of the NSSArea.
  544.  
  545.    In order for backbone summary internal routes to be preferred over 
  546.    external Type 7 routes, all implementations must support the optional
  547.    import of summary LSAs from the backbone into a NSSA, with the
  548.    exception of a (type-3) summary LSA for the default route.  The
  549.    import of summary LSAs is automatically activated when an type-7
  550.    default route is detected as originating from an internal NSSA ASBR,
  551.    regardless of the no-summary setting.  This protects the NSSA from
  552.    routing intra-AS traffic out the AS via a type-7 default route.
  553.  
  554.    Unlike the stub area case, a default route must not be injected into 
  555.    the NSSA as a summary (type-3) LSA.  The reason for this is that the
  556.    summary default route would be chosen over all more preferred type-7
  557.    default routes.
  558.  
  559. 3.5 Calculating Type-7 AS External Routes
  560.  
  561.    This calculation must be run when type-7 LSAs are processed during the AS
  562.    external route calculation.  This calculation will also process type-5
  563.    LSAs and may replace section 16.4 when processing type-5 LSAs.  If
  564.    section 16.4 is still used to process type-5 LSAs, NSSA ASBR routing
  565.    table entries are not to be used for the ASBR address calculation of
  566.    type-5 LSAs.
  567.  
  568. Coltun & Fuller                                                 [Page 9]
  569.  
  570. Internet Draft              OSPF NSSA Option                January 1997
  571.  
  572.  
  573.    A NSSA border router should examine both type-5 LSAs and type-7 LSAs
  574.    if either type-5 or type-7 routes need to be updated or recalculated.
  575.    This is done as part of the AS external route calculation.  A NSSA
  576.    internal router should examine type-7 LSAs when type-7 routes need to
  577.    be recalculated.  When OSPF Section 16.4.1 path preference is applied
  578.    in step (6.c), NSSA and non-NSSA intra-AS paths have equal
  579.    preference.
  580.  
  581.    What follows is only a modest modification of the OSPF Version 2
  582.    Specification Section 16.4.  Original text is suffixed with <Moy>.  NSSA
  583.    specific text is suffixed with <NSSA>.
  584.  
  585.    AS external routes are calculated by examining AS-external-LSAs, be they
  586.    type-5 or type-7.  Each of the AS-external-LSAs is considered in turn.
  587.    Most AS-external-LSAs describe routes to specific IP destinations.  An
  588.    AS-external-LSA can also describe a default route for the Autonomous
  589.    System (Destination ID = DefaultDestination, network/subnet mask =
  590.    0x00000000).  For each AS-external-LSA <Moy with "or type-7">:
  591.  
  592.     (1) If the metric specified by the LSA is LSInfinity, or if the age
  593.         of the LSA equals MaxAge, then examine the next LSA.  <Moy>
  594.  
  595.     (2) If the LSA was originated by the calculating router itself,
  596.         examine the next LSA.  <Moy>
  597.  
  598.     (3) Call the destination described by the LSA N.  N's address is
  599.         obtained by masking the LSA's Link State ID with the
  600.         network/subnet mask contained in the body of the LSA.  Look up
  601.         the routing table entries (potentially one per attached area)
  602.         for the AS boundary router (ASBR) that originated the LSA.  If
  603.         no entries exist for router ASBR (i.e., ASBR is unreachable), do
  604.         nothing with this LSA and consider the next in the list.  <Moy>
  605.  
  606.         Else if the destination is a type-7 default route (destination =
  607.         DefaultDestination) and one of the following is true, then do
  608.         nothing with this LSA and consider the next in the list:
  609.  
  610.            o  The originator of the type-7 LSA and the calculating
  611.               router are both NSSA border routers.
  612.  
  613.            o  The calculating router is a border router, the LSA has its
  614.               P-bit clear, and at least two non-backbone OSPF areas
  615.               connect to the calculating router.  <NSSA>
  616.  
  617.         Else, this LSA describes an AS external path to destination N.    
  618.         Examine    the forwarding address specified in the    AS-external-LSA. 
  619.  
  620.         This indicates the IP address to which packets for the
  621.         destination should be forwarded.  <Moy>
  622.  
  623.  
  624.  
  625. Coltun & Fuller                                                [Page 10]
  626.  
  627. Internet Draft              OSPF NSSA Option                January 1997
  628.  
  629.    
  630.         If the forwarding address is set to 0.0.0.0, packets should be
  631.         sent to the ASBR itself.  <Moy>
  632.  
  633.         If the current LSA is type-5, among the multiple non-NSSA ASBR
  634.         routing table entries for the ASBR (both NSSA and non-NSSA ASBR
  635.         entries might exists on an NSSA border router), select the
  636.         preferred entry as follows <NSSA>:
  637.  
  638.            If RFC1583Compatibility is set to "disabled", prune the set
  639.            of routing table entries for the ASBR as described in OSPF
  640.            Section 16.4.1.  In any case, among the remaining routing
  641.            table entries, select the routing table entry with the least
  642.            cost; when there are multiple least cost routing table
  643.            entries the entry whose associated area has the largest OSPF
  644.            Area ID (when considered as an unsigned 32-bit integer) is
  645.            chosen.  <Moy>
  646.  
  647.         If the forwarding address is non-zero, look up the forwarding
  648.         address in the routing table.  The matching routing table entry
  649.         must specify an intra-area or inter-area path; if no such path
  650.         exists, do nothing with the LSA and consider the next in the
  651.         list.  <Moy>
  652.  
  653.     (4) Let X be the cost specified by the preferred routing table entry
  654.         for the ASBR/forwarding address, and Y the cost specified in the
  655.         LSA.  X is in terms of the link state metric, and Y is a type 1
  656.         or 2 external metric.  <Moy>
  657.  
  658.     (5) Now, look up the routing table entry for the destination N.  If
  659.         no entry exists for N, install the AS external path to N, with
  660.         the next hop equal to the list of next hops to the
  661.         ASBR/forwarding address, and advertising router equal to ASBR. 
  662.         If the external metric type is 1, then the path-type is set to
  663.         Type-1 external and the cost is equal to X + Y.  If the external
  664.         metric type is 2, the path-type is set to Type-2 external, the
  665.         link-state component of the route's cost is X, and the Type-2
  666.         cost is Y.  <Moy>
  667.  
  668.     (6) Otherwise compare the AS external path described by the LSA with
  669.         the existing paths in N's routing table entry, as follows.  If
  670.         the new path is preferred, it replaces the present paths in N's    
  671.         routing    table entry.  If the new path is of equal preference, it
  672.         is added to N's routing table entry's list of paths.  <Moy> 
  673.  
  674.         Preference is defined as follows:
  675.  
  676.         (a) Intra-area and inter-area paths are always preferred over AS    
  677.             external paths.  <Moy>
  678.  
  679.         (b) Type 1 external paths are always preferred over type 2
  680.  
  681.  
  682. Coltun & Fuller                                                [Page 11]
  683.  
  684. Internet Draft              OSPF NSSA Option                January 1997
  685.  
  686.  
  687.             external paths.  When all paths are type 2 external paths,
  688.             the paths with the smallest advertised type 2 metric are
  689.             always preferred.  <Moy>
  690.  
  691.         (c) If the new AS external path is still indistinguishable from
  692.             the current paths in N's routing table entry, and
  693.             RFC1583Compatibility is set    to "disabled", select the
  694.             preferred paths based on the intra-AS paths to the
  695.             ASBR/forwarding addresses, as specified in Section
  696.             16.4.1.  <Moy>
  697.  
  698.         (d) If the new AS external path is still indistinguishable from
  699.             the current paths in N's routing table entry, select the
  700.             preferred path based on a least cost comparison.  Type 1
  701.             external paths are compared by looking at the sum of the
  702.             distance to the forwarding address and the advertised type 1
  703.             metric (X+Y).  Type 2 external paths advertising equal type
  704.             2 metrics are compared by looking at the distance to the
  705.             forwarding addresses.  <Moy>
  706.  
  707.         (e) If the new paths are still indistinguishable the following
  708.             priorities apply (listed from highest to lowest) for
  709.             breaking the tie.
  710.  
  711.                a. Any type-5 LSA. 
  712.  
  713.                b. A type-7 LSA with the P-bit set and the forwarding
  714.                   address non-zero. 
  715.  
  716.                c. Any other type-7 LSA.  <NSSA>
  717.  
  718. 3.6 Incremental Updates
  719.  
  720.    Incremental updates for type-7 LSAs should be treated the same as
  721.    incremental updates for type-5 LSAs (see section 16.6 of the OSPF
  722.    specification).  That is, if a new instance of a type-7 LSA is
  723.    received it is not necessary to recalculate the entire routing table.
  724.    If there is already an OSPF internal route to the destination
  725.    represented by the type-7 LSA, no recalculation is necessary.
  726.    Otherwise, the procedure in the proceeding section will have to be
  727.    performed but only for the external routes (type-5 and type-7) whose
  728.    networks describe the same networks as the newly received LSA.
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738. Coltun & Fuller                                                [Page 12]
  739.  
  740. Internet Draft              OSPF NSSA Option                January 1997
  741.  
  742.  
  743. 4.0 Originating Type-5 LSAs
  744.  
  745. 4.1 Translating Type-7 LSAs Into Type-5 LSAs
  746.  
  747.    This step is performed as part of the NSSA's Dijkstra calculation after
  748.    type-5 and type-7 routes have been calculated.  If the calculating router
  749.    is not a NSSA border router this translation algorithm should be skipped.
  750.    It is not recommended that multiple NSSA border routers perform the
  751.    translation unless the efficient routing of packets through area 0 to a
  752.    NSSA partitioned by aggregation requires it.  It is normally sufficient
  753.    to have only one NSSA border router perform the translation.  Excessive
  754.    numbers of type-7 translators unnecessarily increase the size of the OSPF
  755.    link state data base.
  756.  
  757.    A new bit called bit Nt is added to the router links advertisement.  All
  758.    NSSA area border routers which are performing the translation set bit Nt in
  759.    their router links advertisement into the NSSA. 
  760.  
  761.    A new parameter called the NSSATranslateState is added to the OSPF area
  762.    data structure.  If a NSSA border router has 
  763.  
  764.         NSSATranslateState = enabled
  765.  
  766.    then this router always translates Type-7 LSAs into Type-5 LSAs for the
  767.    NSSA. 
  768.  
  769.    If a NSSA border router has
  770.  
  771.         NSSATranslateState = disabled
  772.  
  773.    and no NSSA border router for the NSSA has bit Nt set in its router links
  774.    advertisement and this router has the highest router ID among the NSSA
  775.    border router set, then this router performs the translation of type-7
  776.    LSAs into type-5 LSAs for the NSSA and NSSATranslateState should be set
  777.    to elected.
  778.  
  779.    Otherwise the translation algorithm should not be performed and
  780.    NSSATranslateState should remain set to disabled.
  781.  
  782.    Note that during the translation of type-7 LSAs into aggregated type-5
  783.    LSAs, the highest router ID is not necessarily the best choice for an
  784.    advertising router as all packets which are forwarded by a type-5 LSA
  785.    routing table entry originating from an aggregated type-7 LSA translation
  786.    are sent to the translator (As described below, the forwarding address is
  787.    not set in type-5 LSAs which originate from aggregated type-7 LSAs).  The
  788.    NSSATranslateState allows the network designer to configure the most cost
  789.    effective route to the NSSA's type-5 LSAs which originate from the
  790.    aggregation of type-7 LSAs.  Is cases of aggregate partitioning of the
  791.    NSSA, multiple translators may be required to effect efficient routing.
  792.  
  793.  
  794. Coltun & Fuller                                                [Page 13]
  795.  
  796. Internet Draft              OSPF NSSA Option                January 1997
  797.  
  798.  
  799.  
  800.    Indeed, all NSSA border routers could be set to perform translation, if
  801.    required.
  802.  
  803.    All installed type-7 LSA's should be examined including those type-7s
  804.    originated by the router itself (a set which may differ between NSSA
  805.    border routers of the same NSSArea).  This allows NSSA border routers to
  806.    propagate and/or aggregate locally originated type-7s during the
  807.    translation.  Locally originated type-7s are skipped during the external
  808.    route calculation.  Their installation status is external to OSPF.
  809.  
  810.    If the type-7 LSA (associated with the route being examined) has the
  811.    P-bit set and a non-zero forwarding address, the following steps
  812.    should be taken.
  813.  
  814.       The translation procedure must first check for a configured type-7
  815.       address range.  Recall that a type-7 address range consists of an
  816.       [address,mask] pair and a status indication of either Advertise or
  817.       DoNotAdvertise.  At most a single type-5 LSA is made for each
  818.       range.  If the route being examined falls within the type-7
  819.       address range, (i.e., the [address,mask] pair of the route is
  820.       equal to or a more specific instance of the [address,mask] pair of
  821.       the type-7 address range), one of following three actions may take
  822.       place.
  823.  
  824.          1. When the range's status indicates Advertise and the route's
  825.             address and mask are equal to the address and mask of the
  826.             type-7 range, a type-5 LSA should be originated if
  827.  
  828.             o there currently is no type-5 LSA originated from this
  829.               router corresponding to the type-7 LSA, or there is and
  830.  
  831.             o the path type or the metric in the corresponding type-5
  832.               LSA is different from the type-7 LSA or
  833.  
  834.             o the forwarding address in the corresponding type-5 LSA is
  835.               different from the type-7 LSA.
  836.  
  837.             The newly originated type-5 LSA will describe the same
  838.             network and have the same network mask, metrics, forwarding
  839.             address, external route tag and path type as the type-7 LSA,
  840.             however, the advertising router field will be the router ID
  841.             of this area border router.
  842.  
  843.          2. When the range's status indicates Advertise and the route's
  844.             address or mask indicates a more specific route (i.e., the
  845.             route's address is subsumed by the range or the route has a
  846.             longer mask), a type-5 LSA is generated with link-state ID
  847.  
  848.  
  849.  
  850. Coltun & Fuller                                                [Page 14]
  851.  
  852. Internet Draft              OSPF NSSA Option                January 1997
  853.  
  854.  
  855.  
  856.             equal to the range's address (if necessary, the link-state
  857.             ID can also have one or more of the range's "host" bits set;
  858.             see Appendix F of the OSPF specification for details), the
  859.             network mask, external route tag and path type will be set
  860.             to the configured type-7 range values.  The advertising
  861.             router field will be the router ID of this area border
  862.             router.  The forwarding address will not be set.  The path
  863.             type should always be set to the highest path type that is
  864.             subsumed by the net range.  The metric for the type-5 LSA
  865.             will be set as follows:
  866.  
  867.             o if the path type is external type 2, the type-5 metric
  868.               should be set to the largest type-7 metric subsumed by
  869.               this net range + 1.
  870.  
  871.             o if the path type is external type 1, the type-5 metric
  872.               should be set to the largest metric.
  873.  
  874.             For example, given a net range of [10.0.0.0, 255.0.0.0] for
  875.             an area that has type-7 routes of:
  876.  
  877.                     10.1.0.0 path type 1, metric 10
  878.                     10.2.0.0 path type 1, metric 11
  879.                     10.3.0.0 path type 2, metric 5
  880.  
  881.             a type-5 LSA will be generated with a path type of 2 and a
  882.             metric of 6.
  883.  
  884.             As another example, given a net range of [10.0.0.0,
  885.             255.0.0.0] for an area that has type-7 routes of:
  886.  
  887.                     10.1.0.0 path type 1, metric 10
  888.                     10.2.0.0 path type 1, metric 11
  889.                     10.3.0.0 path type 1, metric 5
  890.  
  891.             a type-5 LSA will be generated with a path type of 1 and a
  892.             metric of 11.
  893.  
  894.             These metric and path type rules will avoid routing loops in
  895.             the event that path type 1 and 2 are both used within the
  896.             area.
  897.  
  898.          3. When the range's status indicates DoNotAdvertise, the type-5
  899.             LSA is suppressed and the component networks remain hidden
  900.             from the rest of the AS.
  901.  
  902.       By default (given that the P-bit is set and the LSA has a non-zero
  903.       forwarding address) if a network is not contained in any
  904.  
  905.  
  906. Coltun & Fuller                                                [Page 15]
  907.  
  908. Internet Draft              OSPF NSSA Option                January 1997
  909.  
  910.       explicitly configured address range, a type-7 to type-5 LSA
  911.       translation will occur.
  912.  
  913.       A new instance of a type-5 LSA should be originated and flooded to
  914.       all attached type-5 capable areas if
  915.  
  916.             o  there currently is no type-5 LSA originated from this
  917.                router corresponding to the type-7 LSA, or there is and
  918.  
  919.             o  the path type or the metric in the corresponding type-5
  920.                LSA is different from the type-7 LSA or
  921.  
  922.             o  the forwarding address in the corresponding type-5 LSA is
  923.                different from the type-7 LSA.
  924.       The newly originated type-5 LSAs will describe the same network
  925.       and have the same network mask, metrics, forwarding address,
  926.       external route tag and path type as the type-7 LSA.  The
  927.       advertising router field will be the router ID of this area border
  928.       router.
  929.  
  930.       As with all newly originated type-5 LSAs, a type-5 LSA that is the
  931.       result of a type-7 to type-5 translation (type-7 range or default
  932.       case) is flooded to all attached type-5 capable areas.
  933.  
  934. 4.2 Flushing Translated Type-7 LSAs
  935.  
  936.    If a NSSA border router has translated a type-7 LSA to a type-5 LSA that
  937.    should no longer be translated, the type-5 LSA should be flushed (set to
  938.    MaxAge and flooded).  The translated type-5 LSA should be flushed
  939.    whenever the routing table entry that caused the translation changes so
  940.    that either the routing table entry is unreachable or the entry's
  941.    associated LSA is not a type-7 with the P-bit set and a non-zero
  942.    forwarding address.
  943.  
  944.    If a NSSA border router is translating type-7 LSA's into type-5 LSA's and
  945.    
  946.         NSSATranslateState = elected
  947.  
  948.    and a new router links advertisement arrives in the NSSA with bit Nt set,
  949.    then it should flush any of its type-5 LSAs originating from translated
  950.    type-7 LSAs and readvertise its router links advertisement into the NSSA
  951.    with bit Nt clear.
  952.  
  953.    This flushing keeps the number of type-7 translators at the minimum
  954.    number configured, either explicitly or by default.  Since the default
  955.    translator election process only occurs in the absence of a translator,
  956.    should a router with a higher router ID join the NSSA border router set
  957.    it will not necessarily assume translator duties.  Indeed, a previously
  958.    default elected translator should continue to perform translation duties
  959.    until supplanted by an NSSA border router whose Nt bit is set to true.
  960.    Such an event might happen due to by setting the NSSATranslateState to
  961.  
  962.  
  963. Coltun & Fuller                                                [Page 16]
  964.  
  965. Internet Draft              OSPF NSSA Option                January 1997
  966.  
  967.  
  968.    enabled or a topological rejoining of a partitioned NSSA.  This behavior
  969.    reduces the flushing of translated type-7 LSA's in the AS.
  970.  
  971.    Any change in the membership of the NSSA border router set or the setting
  972.    of their Nt bits resulting from updated router links advertisements
  973.    should force a NSSA border router whose NSSATranslateState is not set to
  974.    recheck and possibly elect or disable its type-7 translation status.
  975.  
  976. 5.0 Acknowledgments
  977.  
  978.    This document was produced by the OSPF Working Group, chaired by John
  979.    Moy.
  980.  
  981.    In addition, the comments of the following individuals are also
  982.    acknowledged:
  983.  
  984.                   Phani Jajjarvarpu  cisco
  985.                   Dino Farinacci     cisco
  986.                   Jeff Honig         Cornell University
  987.                   John Moy           Proteon, Inc.
  988.                   Doug Williams      IBM
  989.  
  990. 6.0 References
  991.  
  992.    [1] Moy, J., "OSPF Version 2", RFC 1583, Proteon, Inc., March 1994.
  993.  
  994.    [2] Moy, J., "Multicast Extensions to OSPF", RFC 1584, Proteon, Inc.,
  995.        Proteon, Inc., March 1994.
  996.  
  997. 7.0 Security Considerations
  998.  
  999.    Security issues are not discussed in this memo.
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019. Coltun & Fuller                                                [Page 17]
  1020.  
  1021. Internet Draft              OSPF NSSA Option                January 1997
  1022.  
  1023.  
  1024. 8.0 Authors' Addresses
  1025.  
  1026.    Rob Coltun
  1027.    Fore Systems
  1028.    6905 Rockledge Drive
  1029.    Suite 800
  1030.    Bethesada, Maryland 20817
  1031.  
  1032.    Phone: (301) 571-2521
  1033.    EMail: rcoltun@fore.com
  1034.  
  1035.  
  1036.    Vince Fuller
  1037.    BBN Planet
  1038.    3801 East Bayshore Road
  1039.    Palo Alto, California 94303
  1040.  
  1041.    Phone: (415) 528-7227
  1042.    EMail: vaf@wr.BBNPlanet.com
  1043.  
  1044.  
  1045.    Edited by and revised to include changes submitted by
  1046.  
  1047.    Pat Murphy
  1048.    US Geological Survey
  1049.    345 Middlefield Road
  1050.    Menlo Park, California 94560
  1051.    
  1052.    Phone: (415) 329-4044
  1053.    EMail: pmurphy@usgs.gov
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075. Coltun & Fuller                                                [Page 18]
  1076.  
  1077. Internet Draft              OSPF NSSA Option                January 1997
  1078.  
  1079.  
  1080. Appendix A: Type-7 Packet Format
  1081.  
  1082.           0                                32
  1083.           -----------------------------------
  1084.           |                | OPTS   |   7   |
  1085.           |                ------------------
  1086.           |        Link-State Header        |
  1087.           |                                 |
  1088.           -----------------------------------
  1089.           | Network Mask                    |
  1090.           -----------------------------------  ______
  1091.           |E| Tos  |        metric          |  .
  1092.           -----------------------------------  .  repeated for each TOS
  1093.           | Forwarding Address              |  .
  1094.           -----------------------------------  .
  1095.           | External Route Tag              |  ______
  1096.           -----------------------------------
  1097.  
  1098.    The definitions of the link-state ID, network mask, metrics and
  1099.    external route tag are the same as the definitions for the type-5
  1100.    LSAs (see A.4.5 in the OSPF specification) except for:
  1101.  
  1102.                The Forwarding Address
  1103.  
  1104.    If the network between the NSSA AS boundary router and the adjacent
  1105.    AS is advertised into OSPF as an internal OSPF route, the forwarding
  1106.    address should be the next hop address but if the intervening network
  1107.    is not advertised into OSPF as an internal OSPF route, the forwarding
  1108.    address should be any one of the router's active OSPF interface
  1109.    addresses.
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131. Coltun & Fuller                                                [Page 19]
  1132.  
  1133. Internet Draft              OSPF NSSA Option                January 1997
  1134.  
  1135.  
  1136. Appendix B: The Options Field
  1137.  
  1138.    The OSPF options field is present in OSPF Hello packets, Database
  1139.    Description packets and all link-state advertisements.  See appendix
  1140.    A.2 in the OSPF specification for a description of option field.  Six
  1141.    bits are assigned but only two (the E-bit and the N/P bit) are
  1142.    described completely in this section.
  1143.  
  1144.                    --------------------------------------
  1145.                    | * | * | DC | EA | N/P | MC | E | T |
  1146.                    --------------------------------------
  1147.  
  1148.                        The Type-7 LSA options field
  1149.  
  1150.  
  1151.              E-bit:  Type-5 AS external link advertisements are not
  1152.                      flooded into/through OSPF stub areas and NSSAs.
  1153.                      The E-bit ensures that all members of a stub area
  1154.                      agree on that area configuration.  The E-bit is
  1155.                      meaningful only in OSPF Hello packets.  When the
  1156.                      E-bit is reset in the Hello packet sent out a
  1157.                      particular interface, it means that the router
  1158.                      will neither send nor receive type-5 AS external
  1159.                      link state advertisements on that interface (in
  1160.                      other words, the interface connects to a stub
  1161.                      area or NSSArea).  Two routers will not become 
  1162.                      neighbors unless they agree on the state of the 
  1163.                      E-bit.
  1164.  
  1165.              N-bit:  The N-bit describes the router's NSSArea
  1166.                      capability.  The N-bit is used only in Hello
  1167.                      packets and ensures that all members of a NSSArea
  1168.                      agree on that area's configuration.  When the
  1169.                      N-bit is set in the Hello packet and sent out a
  1170.                      particular interface, it means that the router
  1171.                      will send and receive type-7 LSAs on that
  1172.                      interface.  Two routers will not form an adjacency
  1173.                      unless they agree on the state of the N-bit.  If
  1174.                      the N-bit is set in the options field, the E-bit
  1175.                      must be reset.
  1176.  
  1177.              P-bit:  The P-bit is used only in the type-7 LSA header.
  1178.                      It flags the NSSA border router to translate
  1179.                      the type-7 LSA into a type-5 LSA.
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187. Coltun & Fuller                                                [Page 20]
  1188.  
  1189. Internet Draft              OSPF NSSA Option                January 1997
  1190.  
  1191. Appendix C: Router-LSAs
  1192.  
  1193.    Router-LSAs are the Type 1 LSAs.  Each router in an area originates a
  1194.    router-LSA. The LSA describes the state and cost of the router's links
  1195.    (i.e., interfaces) to the area. All of the router's links to the area
  1196.    must be described in a single router-LSA. For details concerning the
  1197.    construction    of router-LSAs,    see the OSPF Specification, Section 12.4.1.
  1198.  
  1199.  
  1200.     0            1            2            3
  1201.     0 1 2 3    4 5 6 7    8 9 0 1    2 3 4 5    6 7 8 9    0 1 2 3    4 5 6 7    8 9 0 1
  1202.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1203.        |        LS age           |     Options   |       1       |
  1204.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1205.        |            Link State ID                   |
  1206.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1207.        |             Advertising Router                   |
  1208.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1209.        |             LS    sequence number                   |
  1210.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1211.        |     LS checksum           |         length           |
  1212.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1213.        |    0  Nt|V|E|B|    0      |        # links           |
  1214.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1215.        |              Link ID                   |
  1216.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1217.        |             Link Data                   |
  1218.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1219.        |     Type      |     # TOS     |    TOS 0 metric           |
  1220.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1221.        |      TOS      |    0      |        metric           |
  1222.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1223.        |                  ...                   |
  1224.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1225.        |      TOS      |    0      |        metric           |
  1226.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1227.        |              Link ID                   |
  1228.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1229.        |             Link Data                   |
  1230.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1231.        |                  ...                   |
  1232.  
  1233.  
  1234.     In router-LSAs, the    Link State ID field is set to the router's OSPF
  1235.     Router ID.    The T-bit is set in the    LSA's Option field if and only
  1236.     if the router is able to calculate a separate set of routes    for each
  1237.     IP TOS.  Router-LSAs are flooded throughout    a single area only.
  1238.  
  1239.  
  1240.  
  1241.  
  1242. Coltun & Fuller                                                [Page 21]
  1243.  
  1244. Internet Draft             OSPF Version 2          September 1996
  1245.  
  1246.  
  1247.     bit    V
  1248.     When set, the router is    an endpoint of one or more fully
  1249.     adjacent virtual links having the described area as Transit area
  1250.     (V is for virtual link endpoint).
  1251.  
  1252.     bit    E
  1253.     When set, the router is    an AS boundary router (E is for
  1254.     external).
  1255.  
  1256.     bit    B
  1257.     When set, the router is    an area    border router (B is for    border).
  1258.  
  1259.     bit    Nt
  1260.     When set, the router is    a NSSA border router which translates type-7
  1261.         LSAs into type-5 LSAs (Nt is for NSSA translation).
  1262.  
  1263.    The remainder of the router links specification is as defined in the OSPF
  1264.    Specification, Section A.4.2
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295. Coltun & Fuller                                                [Page 22]
  1296.  
  1297. Internet Draft              OSPF NSSA Option                January 1997
  1298.  
  1299.  
  1300. Appendix D:  Configuration Parameters
  1301.  
  1302.    Appendix C.2 in the OSPF specification lists the area parameters.  The
  1303.    area ID, list of address ranges for type-3 summary routes and
  1304.    authentication type remain unchanged.  Section 3.2 of this document lists
  1305.    the configuration parameters for type-7 address ranges.  The following
  1306.    parameter is added to the NSSArea data structure:
  1307.  
  1308.    NSSATranslateState 
  1309.        This parameter indicates whether or not an NSSA Border router is
  1310.        performing NSSA translation of type-7 LSAs into type-5 LSAs and
  1311.        flooding the translated type-5 LSAs into the AS.  If the parameter is
  1312.        set to "enabled", translation is always performed.  If the parameter
  1313.        is set to "elected", it means translation is being performed because
  1314.        the router was chosen during the default election process. If the
  1315.        parameter is set to "disabled" the NSSA border router is not
  1316.        currently performing type-7 translation.  "disabled" is the default
  1317.        setting.  (See Section 4.1.)
  1318.  
  1319.    For NSSAs the external capabilities of the area must be set to accept
  1320.    type-7 external routes.  Additionally there must be a way of
  1321.    configuring the NSSA border router to send a default route into the
  1322.    NSSArea using a specific metric (type 1 or type 2 and the actual cost).
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354. Coltun & Fuller                                                [Page 23]
  1355.  
  1356. Internet Draft              OSPF NSSA Option                January 1997
  1357.  
  1358.  
  1359. Appendix E: Differences from RFC 1587
  1360.  
  1361.    This section documents the differences between this    memo and RFC
  1362.    1587.  All differences are backward-compatible.  Implementations of
  1363.    this memo and of RFC 1587 will interoperate.
  1364.  
  1365.    E.1 Enhancements to OSPF summary LSAs.                      .
  1366.  
  1367.        The flooding of backbone summary LSAs (type-3 LSAs) into the NSSA
  1368.        is now optional.  In RFC 1587 the flooding of backbone summary
  1369.        LSAs was mandated in order to guarantee inter-area routes are
  1370.        preferred over external routes.  The current recommended default
  1371.        behavior is to flood summary LSAs.
  1372.  
  1373.        See sections 2.2 and 3.4 for details.
  1374.  
  1375.    E.2 Changes to the type-7 AS external routing calculation.
  1376.  
  1377.        The type-7 external route calculation has been revised.  Most
  1378.        notably:
  1379.  
  1380.          o The path preference defined in OSPF Section 16.4.1 has been
  1381.            included.
  1382.  
  1383.          o A type-7 default route with the P-bit clear will not be installed
  1384.            on a NSSA border router which connects multiple non-backbone
  1385.            areas.  This protects the default routing of other OSPF Areas as
  1386.            well as any ISP agreements of the originating NSSArea.
  1387.  
  1388.          o The type-7 AS external route calculation may now compute
  1389.            type-5 external paths.
  1390.  
  1391.        See Section 3.5 for details.
  1392.  
  1393.    E.3 Changes to translating type-7 LSAs into type-5 LSAs
  1394.  
  1395.        NSSA border routers which perform the translation are now optionally
  1396.        configurable, with more than one allowed.  This allows the network
  1397.        designer to choose the most cost effective intra-AS route for NSSA
  1398.        type-7 aggregates propagated into the AS.  Furthermore, since
  1399.        different NSSA border routers may install different sets of type-7
  1400.        LSA routes, the cost effectiveness of non-aggregated type-7
  1401.        propagation may also be maximized.
  1402.  
  1403.        All installed type-7 LSA's including those originated by the NSSA
  1404.        border router are processed for translation.  This allows the
  1405.        NSSA border router to propagate and/or aggregate locally
  1406.        originated type-7s utilizing the type-5 translation process. 
  1407.        NSSA RFC 1587 required locally originated type-7 LSAs be paired
  1408.  
  1409.  
  1410. Coltun & Fuller                                                [Page 24]
  1411.  
  1412. Internet Draft              OSPF NSSA Option                January 1997
  1413.  
  1414.  
  1415.        with locally originated type-5 LSAs for the external path to be
  1416.        seen by the AS (Note that locally originated type-7s are skipped
  1417.        during the external route calculation).
  1418.  
  1419.        The default translator election process occurs only in the absence of
  1420.        a translator amongst the NSSA border router set.
  1421.  
  1422.        See Section 4.1 for details.
  1423.  
  1424.    E.4 Changes to flushing translated type-7 LSAs
  1425.  
  1426.        A NSSA border router which was elected by the default selection
  1427.        process of RFC 1587, terminates its translation duties and flushes
  1428.        its translated type-7 LSAs from the AS when another translator
  1429.        presents itself in the NSSA.  This keeps the number of translators at
  1430.        a minimum.
  1431.  
  1432.        See Section 4.2 for details.
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467. Coltun & Fuller                                                [Page 25]
  1468.  
  1469.