home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / rfc / 2 / rfc1583.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  511.4 KB  |  13,271 lines

  1. at no confusion will arise in the flooding of AS
  2.         external advertisements.
  3.  
  4.         There are a couple of restrictions on the use of stub areas.
  5.         Virtual links cannot be configured through stub areas.  In
  6.         addition, AS boundary routers cannot be placed internal to stub
  7.         areas.
  8.  
  9.  
  10.     3.7.  Partitions of areas
  11.  
  12.         OSPF does not actively attempt to repair area partitions.  When
  13.         an area becomes partitioned, each component simply becomes a
  14.         separate area.  The backbone then performs routing between the
  15.         new areas.  Some destinations reachable via intra-area routing
  16.         before the partition will now require inter-area routing.
  17.  
  18.         In the previous section, an area was described as a list of
  19.         address ranges.  Any particular address range must still be
  20.         completely contained in a single component of the area
  21.         partition.  This has to do with the way the area contents are
  22.         summarized to the backbone.  Also, the backbone itself must not
  23.         partition.  If it does, parts of the Autonomous System will
  24.         become unreachable.  Backbone partitions can be repaired by
  25.  
  26.  
  27.  
  28. Moy                                                            [Page 32]
  29.  
  30. RFC 1583                     OSPF Version 2                   March 1994
  31.  
  32.  
  33.         configuring virtual links (see Section 15).
  34.  
  35.         Another way to think about area partitions is to look at the
  36.         Autonomous System graph that was introduced in Section 2.  Area
  37.         IDs can be viewed as colors for the graph's edges.[1] Each edge
  38.         of the graph connects to a network, or is itself a point-to-
  39.         point network.  In either case, the edge is colored with the
  40.         network's Area ID.
  41.  
  42.         A group of edges, all having the same color, and interconnected
  43.         by vertices, represents an area.  If the topology of the
  44.         Autonomous System is intact, the graph will have several regions
  45.         of color, each color being a distinct Area ID.
  46.  
  47.         When the AS topology changes, one of the areas may become
  48.         partitioned.  The graph of the AS will then have multiple
  49.         regions of the same color (Area ID).  The routing in the
  50.         Autonomous System will continue to function as long as these
  51.         regions of same color are connected by the single backbone
  52.         region.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. Moy                                                            [Page 33]
  85.  
  86. RFC 1583                     OSPF Version 2                   March 1994
  87.  
  88.  
  89. 4.  Functional Summary
  90.  
  91.     A separate copy of OSPF's basic routing algorithm runs in each area.
  92.     Routers having interfaces to multiple areas run multiple copies of
  93.     the algorithm.  A brief summary of the routing algorithm follows.
  94.  
  95.     When a router starts, it first initializes the routing protocol data
  96.     structures.  The router then waits for indications from the lower-
  97.     level protocols that its interfaces are functional.
  98.  
  99.     A router then uses the OSPF's Hello Protocol to acquire neighbors.
  100.     The router sends Hello packets to its neighbors, and in turn
  101.     receives their Hello packets.  On broadcast and point-to-point
  102.     networks, the router dynamically detects its neighboring routers by
  103.     sending its Hello packets to the multicast address AllSPFRouters.
  104.     On non-broadcast networks, some configuration information is
  105.     necessary in order to discover neighbors.  On all multi-access
  106.     networks (broadcast or non-broadcast), the Hello Protocol also
  107.     elects a Designated router for the network.
  108.  
  109.     The router will attempt to form adjacencies with some of its newly
  110.     acquired neighbors.  Topological databases are synchronized between
  111.     pairs of adjacent routers.  On multi-access networks, the Designated
  112.     Router determines which routers should become adjacent.
  113.  
  114.     Adjacencies control the distribution of routing protocol packets.
  115.     Routing protocol packets are sent and received only on adjacencies.
  116.     In particular, distribution of topological database updates proceeds
  117.     along adjacencies.
  118.  
  119.     A router periodically advertises its state, which is also called
  120.     link state.  Link state is also advertised when a router's state
  121.     changes.  A router's adjacencies are reflected in the contents of
  122.     its link state advertisements.  This relationship between
  123.     adjacencies and link state allows the protocol to detect dead
  124.     routers in a timely fashion.
  125.  
  126.     Link state advertisements are flooded throughout the area.  The
  127.     flooding algorithm is reliable, ensuring that all routers in an area
  128.     have exactly the same topological database.  This database consists
  129.     of the collection of link state advertisements received from each
  130.     router belonging to the area.  From this database each router
  131.     calculates a shortest-path tree, with itself as root.  This
  132.     shortest-path tree in turn yields a routing table for the protocol.
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. Moy                                                            [Page 34]
  141.  
  142. RFC 1583                     OSPF Version 2                   March 1994
  143.  
  144.  
  145.     4.1.  Inter-area routing
  146.  
  147.         The previous section described the operation of the protocol
  148.         within a single area.  For intra-area routing, no other routing
  149.         information is pertinent.  In order to be able to route to
  150.         destinations outside of the area, the area border routers inject
  151.         additional routing information into the area.  This additional
  152.         information is a distillation of the rest of the Autonomous
  153.         System's topology.
  154.  
  155.         This distillation is accomplished as follows: Each area border
  156.         router is by definition connected to the backbone.  Each area
  157.         border router summarizes the topology of its attached areas for
  158.         transmission on the backbone, and hence to all other area border
  159.         routers.  An area border router then has complete topological
  160.         information concerning the backbone, and the area summaries from
  161.         each of the other area border routers.  From this information,
  162.         the router calculates paths to all destinations not contained in
  163.         its attached areas.  The router then advertises these paths into
  164.         its attached areas.  This enables the area's internal routers to
  165.         pick the best exit router when forwarding traffic to
  166.         destinations in other areas.
  167.  
  168.  
  169.     4.2.  AS external routes
  170.  
  171.         Routers that have information regarding other Autonomous Systems
  172.         can flood this information throughout the AS.  This external
  173.         routing information is distributed verbatim to every
  174.         participating router.  There is one exception: external routing
  175.         information is not flooded into "stub" areas (see Section 3.6).
  176.  
  177.         To utilize external routing information, the path to all routers
  178.         advertising external information must be known throughout the AS
  179.         (excepting the stub areas).  For that reason, the locations of
  180.         these AS boundary routers are summarized by the (non-stub) area
  181.         border routers.
  182.  
  183.  
  184.     4.3.  Routing protocol packets
  185.  
  186.         The OSPF protocol runs directly over IP, using IP protocol 89.
  187.         OSPF does not provide any explicit fragmentation/reassembly
  188.         support.  When fragmentation is necessary, IP
  189.         fragmentation/reassembly is used.  OSPF protocol packets have
  190.         been designed so that large protocol packets can generally be
  191.         split into several smaller protocol packets.  This practice is
  192.         recommended; IP fragmentation should be avoided whenever
  193.  
  194.  
  195.  
  196. Moy                                                            [Page 35]
  197.  
  198. RFC 1583                     OSPF Version 2                   March 1994
  199.  
  200.  
  201.         possible.
  202.  
  203.         Routing protocol packets should always be sent with the IP TOS
  204.         field set to 0.  If at all possible, routing protocol packets
  205.         should be given preference over regular IP data traffic, both
  206.         when being sent and received.  As an aid to accomplishing this,
  207.         OSPF protocol packets should have their IP precedence field set
  208.         to the value Internetwork Control (see [RFC 791]).
  209.  
  210.         All OSPF protocol packets share a common protocol header that is
  211.         described in Appendix A.  The OSPF packet types are listed below
  212.         in Table 8.  Their formats are also described in Appendix A.
  213.  
  214.  
  215.  
  216.              Type   Packet  name           Protocol  function
  217.              __________________________________________________________
  218.              1      Hello                  Discover/maintain  neighbors
  219.              2      Database Description   Summarize database contents
  220.              3      Link State Request     Database download
  221.              4      Link State Update      Database update
  222.              5      Link State Ack         Flooding acknowledgment
  223.  
  224.  
  225.                             Table 8: OSPF packet types.
  226.  
  227.  
  228.         OSPF's Hello protocol uses Hello packets to discover and
  229.         maintain neighbor relationships.  The Database Description and
  230.         Link State Request packets are used in the forming of
  231.         adjacencies.  OSPF's reliable update mechanism is implemented by
  232.         the Link State Update and Link State Acknowledgment packets.
  233.  
  234.         Each Link State Update packet carries a set of new link state
  235.         advertisements one hop further away from their point of
  236.         origination.  A single Link State Update packet may contain the
  237.         link state advertisements of several routers.  Each
  238.         advertisement is tagged with the ID of the originating router
  239.         and a checksum of its link state contents.  The five different
  240.         types of OSPF link state advertisements are listed below in
  241.         Table 9.
  242.  
  243.         As mentioned above, OSPF routing packets (with the exception of
  244.         Hellos) are sent only over adjacencies.  Note that this means
  245.         that all OSPF protocol packets travel a single IP hop, except
  246.         those that are sent over virtual adjacencies.  The IP source
  247.         address of an OSPF protocol packet is one end of a router
  248.         adjacency, and the IP destination address is either the other
  249.  
  250.  
  251.  
  252. Moy                                                            [Page 36]
  253.  
  254. RFC 1583                     OSPF Version 2                   March 1994
  255.  
  256.  
  257.  
  258.  
  259.        LS     Advertisement      Advertisement description
  260.        type   name
  261.        _________________________________________________________
  262.        1      Router links       Originated by all routers.
  263.               advertisements     This advertisement describes
  264.                                  the collected states of the
  265.                                  router's interfaces to an
  266.                                  area. Flooded throughout a
  267.                                  single area only.
  268.        _________________________________________________________
  269.        2      Network links      Originated for multi-access
  270.               advertisements     networks by the Designated
  271.                                  Router. This advertisement
  272.                                  contains the list of routers
  273.                                  connected to the network.
  274.                                  Flooded throughout a single
  275.                                  area only.
  276.        _________________________________________________________
  277.        3,4    Summary link       Originated by area border
  278.               advertisements     routers, and flooded through-
  279.                                  out the advertisement's
  280.                                  associated area. Each summary
  281.                                  link advertisement describes
  282.                                  a route to a destination out-
  283.                                  side the area, yet still inside
  284.                                  the AS (i.e., an inter-area
  285.                                  route). Type 3 advertisements
  286.                                  describe routes to networks.
  287.                                  Type 4 advertisements describe
  288.                                  routes to AS boundary routers.
  289.        _________________________________________________________
  290.        5      AS external link   Originated by AS boundary
  291.               advertisements     routers, and flooded through-
  292.                                  out the AS. Each AS external
  293.                                  link advertisement describes
  294.                                  a route to a destination in
  295.                                  another Autonomous System.
  296.                                  Default routes for the AS can
  297.                                  also be described by AS
  298.                                  external link advertisements.
  299.  
  300.  
  301.                 Table 9: OSPF link state advertisements.
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308. Moy                                                            [Page 37]
  309.  
  310. RFC 1583                     OSPF Version 2                   March 1994
  311.  
  312.  
  313.         end of the adjacency or an IP multicast address.
  314.  
  315.  
  316.     4.4.  Basic implementation requirements
  317.  
  318.         An implementation of OSPF requires the following pieces of
  319.         system support:
  320.  
  321.  
  322.         Timers
  323.             Two different kind of timers are required.  The first kind,
  324.             called single shot timers, fire once and cause a protocol
  325.             event to be processed.  The second kind, called interval
  326.             timers, fire at continuous intervals.  These are used for
  327.             the sending of packets at regular intervals.  A good example
  328.             of this is the regular broadcast of Hello packets (on
  329.             broadcast networks).  The granularity of both kinds of
  330.             timers is one second.
  331.  
  332.             Interval timers should be implemented to avoid drift.  In
  333.             some router implementations, packet processing can affect
  334.             timer execution.  When multiple routers are attached to a
  335.             single network, all doing broadcasts, this can lead to the
  336.             synchronization of routing packets (which should be
  337.             avoided).  If timers cannot be implemented to avoid drift,
  338.             small random amounts should be added to/subtracted from the
  339.             timer interval at each firing.
  340.  
  341.         IP multicast
  342.             Certain OSPF packets take the form of IP multicast
  343.             datagrams.  Support for receiving and sending IP multicast
  344.             datagrams, along with the appropriate lower-level protocol
  345.             support, is required.  The IP multicast datagrams used by
  346.             OSPF never travel more than one hop. For this reason, the
  347.             ability to forward IP multicast datagrams is not required.
  348.             For information on IP multicast, see [RFC 1112].
  349.  
  350.         Variable-length subnet support
  351.             The router's IP protocol support must include the ability to
  352.             divide a single IP class A, B, or C network number into many
  353.             subnets of various sizes.  This is commonly called
  354.             variable-length subnetting; see Section 3.5 for details.
  355.  
  356.         IP supernetting support
  357.             The router's IP protocol support must include the ability to
  358.             aggregate contiguous collections of IP class A, B, and C
  359.             networks into larger quantities called supernets.
  360.             Supernetting has been proposed as one way to improve the
  361.  
  362.  
  363.  
  364. Moy                                                            [Page 38]
  365.  
  366. RFC 1583                     OSPF Version 2                   March 1994
  367.  
  368.  
  369.             scaling of IP routing in the worldwide Internet. For more
  370.             information on IP supernetting, see [RFC 1519].
  371.  
  372.         Lower-level protocol support
  373.             The lower level protocols referred to here are the network
  374.             access protocols, such as the Ethernet data link layer.
  375.             Indications must be passed from these protocols to OSPF as
  376.             the network interface goes up and down.  For example, on an
  377.             ethernet it would be valuable to know when the ethernet
  378.             transceiver cable becomes unplugged.
  379.  
  380.         Non-broadcast lower-level protocol support
  381.             Remember that non-broadcast networks are multi-access
  382.             networks such as a X.25 PDN.  On these networks, the Hello
  383.             Protocol can be aided by providing an indication to OSPF
  384.             when an attempt is made to send a packet to a dead or non-
  385.             existent router.  For example, on an X.25 PDN a dead
  386.             neighboring router may be indicated by the reception of a
  387.             X.25 clear with an appropriate cause and diagnostic, and
  388.             this information would be passed to OSPF.
  389.  
  390.         List manipulation primitives
  391.             Much of the OSPF functionality is described in terms of its
  392.             operation on lists of link state advertisements.  For
  393.             example, the collection of advertisements that will be
  394.             retransmitted to an adjacent router until acknowledged are
  395.             described as a list.  Any particular advertisement may be on
  396.             many such lists.  An OSPF implementation needs to be able to
  397.             manipulate these lists, adding and deleting constituent
  398.             advertisements as necessary.
  399.  
  400.         Tasking support
  401.             Certain procedures described in this specification invoke
  402.             other procedures.  At times, these other procedures should
  403.             be executed in-line, that is, before the current procedure
  404.             is finished.  This is indicated in the text by instructions
  405.             to execute a procedure.  At other times, the other
  406.             procedures are to be executed only when the current
  407.             procedure has finished.  This is indicated by instructions
  408.             to schedule a task.
  409.  
  410.  
  411.     4.5.  Optional OSPF capabilities
  412.  
  413.         The OSPF protocol defines several optional capabilities.  A
  414.         router indicates the optional capabilities that it supports in
  415.         its OSPF Hello packets, Database Description packets and in its
  416.         link state advertisements.  This enables routers supporting a
  417.  
  418.  
  419.  
  420. Moy                                                            [Page 39]
  421.  
  422. RFC 1583                     OSPF Version 2                   March 1994
  423.  
  424.  
  425.         mix of optional capabilities to coexist in a single Autonomous
  426.         System.
  427.  
  428.         Some capabilities must be supported by all routers attached to a
  429.         specific area.  In this case, a router will not accept a
  430.         neighbor's Hello Packet unless there is a match in reported
  431.         capabilities (i.e., a capability mismatch prevents a neighbor
  432.         relationship from forming).  An example of this is the
  433.         ExternalRoutingCapability (see below).
  434.  
  435.         Other capabilities can be negotiated during the Database
  436.         Exchange process.  This is accomplished by specifying the
  437.         optional capabilities in Database Description packets.  A
  438.         capability mismatch with a neighbor in this case will result in
  439.         only a subset of link state advertisements being exchanged
  440.         between the two neighbors.
  441.  
  442.         The routing table build process can also be affected by the
  443.         presence/absence of optional capabilities.  For example, since
  444.         the optional capabilities are reported in link state
  445.         advertisements, routers incapable of certain functions can be
  446.         avoided when building the shortest path tree.  An example of
  447.         this is the TOS routing capability (see below).
  448.  
  449.         The current OSPF optional capabilities are listed below.  See
  450.         Section A.2 for more information.
  451.  
  452.  
  453.         ExternalRoutingCapability
  454.             Entire OSPF areas can be configured as "stubs" (see Section
  455.             3.6).  AS external advertisements will not be flooded into
  456.             stub areas.  This capability is represented by the E-bit in
  457.             the OSPF options field (see Section A.2).  In order to
  458.             ensure consistent configuration of stub areas, all routers
  459.             interfacing to such an area must have the E-bit clear in
  460.             their Hello packets (see Sections 9.5 and 10.5).
  461.  
  462.         TOS capability
  463.             All OSPF implementations must be able to calculate separate
  464.             routes based on IP Type of Service.  However, to save
  465.             routing table space and processing resources, an OSPF router
  466.             can be configured to ignore TOS when forwarding packets.  In
  467.             this case, the router calculates routes for TOS 0 only.
  468.             This capability is represented by the T-bit in the OSPF
  469.             options field (see Section A.2).  TOS-capable routers will
  470.             attempt to avoid non-TOS-capable routers when calculating
  471.             non-zero TOS paths.
  472.  
  473.  
  474.  
  475.  
  476. Moy                                                            [Page 40]
  477.  
  478. RFC 1583                     OSPF Version 2                   March 1994
  479.  
  480.  
  481. 5.  Protocol Data Structures
  482.  
  483.     The OSPF protocol is described in this specification in terms of its
  484.     operation on various protocol data structures.  The following list
  485.     comprises the top-level OSPF data structures.  Any initialization
  486.     that needs to be done is noted.  OSPF areas, interfaces and
  487.     neighbors also have associated data structures that are described
  488.     later in this specification.
  489.  
  490.  
  491.     Router ID
  492.         A 32-bit number that uniquely identifies this router in the AS.
  493.         One possible implementation strategy would be to use the
  494.         smallest IP interface address belonging to the router. If a
  495.         router's OSPF Router ID is changed, the router's OSPF software
  496.         should be restarted before the new Router ID takes effect.
  497.         Before restarting in order to change its Router ID, the router
  498.         should flush its self-originated link state advertisements from
  499.         the routing domain (see Section 14.1), or they will persist for
  500.         up to MaxAge minutes.
  501.  
  502.     Area structures
  503.         Each one of the areas to which the router is connected has its
  504.         own data structure.  This data structure describes the working
  505.         of the basic algorithm.  Remember that each area runs a separate
  506.         copy of the basic algorithm.
  507.  
  508.     Backbone (area) structure
  509.         The basic algorithm operates on the backbone as if it were an
  510.         area.  For this reason the backbone is represented as an area
  511.         structure.
  512.  
  513.     Virtual links configured
  514.         The virtual links configured with this router as one endpoint.
  515.         In order to have configured virtual links, the router itself
  516.         must be an area border router.  Virtual links are identified by
  517.         the Router ID of the other endpoint -- which is another area
  518.         border router.  These two endpoint routers must be attached to a
  519.         common area, called the virtual link's Transit area.  Virtual
  520.         links are part of the backbone, and behave as if they were
  521.         unnumbered point-to-point networks between the two routers.  A
  522.         virtual link uses the intra-area routing of its Transit area to
  523.         forward packets.  Virtual links are brought up and down through
  524.         the building of the shortest-path trees for the Transit area.
  525.  
  526.     List of external routes
  527.         These are routes to destinations external to the Autonomous
  528.         System, that have been gained either through direct experience
  529.  
  530.  
  531.  
  532. Moy                                                            [Page 41]
  533.  
  534. RFC 1583                     OSPF Version 2                   March 1994
  535.  
  536.  
  537.         with another routing protocol (such as EGP), or through
  538.         configuration information, or through a combination of the two
  539.         (e.g., dynamic external information to be advertised by OSPF
  540.         with configured metric). Any router having these external routes
  541.         is called an AS boundary router.  These routes are advertised by
  542.         the router into the OSPF routing domain via AS external link
  543.         advertisements.
  544.  
  545.     List of AS external link advertisements
  546.         Part of the topological database.  These have originated from
  547.         the AS boundary routers.  They comprise routes to destinations
  548.         external to the Autonomous System.  Note that, if the router is
  549.         itself an AS boundary router, some of these AS external link
  550.         advertisements have been self-originated.
  551.  
  552.     The routing table
  553.         Derived from the topological database.  Each destination that
  554.         the router can forward to is represented by a cost and a set of
  555.         paths.  A path is described by its type and next hop.  For more
  556.         information, see Section 11.
  557.  
  558.     TOS capability
  559.         This item indicates whether the router will calculate separate
  560.         routes based on TOS.  This is a configurable parameter.  For
  561.         more information, see Sections 4.5 and 16.9.
  562.  
  563.  
  564.     Figure 9 shows the collection of data structures present in a
  565.     typical router.  The router pictured is RT10, from the map in Figure
  566.     6.  Note that Router RT10 has a virtual link configured to Router
  567.     RT11, with Area 2 as the link's Transit area.  This is indicated by
  568.     the dashed line in Figure 9.  When the virtual link becomes active,
  569.     through the building of the shortest path tree for Area 2, it
  570.     becomes an interface to the backbone (see the two backbone
  571.     interfaces depicted in Figure 9).
  572.  
  573. 6.  The Area Data Structure
  574.  
  575.     The area data structure contains all the information used to run the
  576.     basic routing algorithm. Each area maintains its own topological
  577.     database. A network belongs to a single area, and a router interface
  578.     connects to a single area. Each router adjacency also belongs to a
  579.     single area.
  580.  
  581.     The OSPF backbone has all the properties of an area.  For that
  582.     reason it is also represented by an area data structure.  Note that
  583.     some items in the structure apply differently to the backbone than
  584.     to non-backbone areas.
  585.  
  586.  
  587.  
  588. Moy                                                            [Page 42]
  589.  
  590. RFC 1583                     OSPF Version 2                   March 1994
  591.  
  592.  
  593.  
  594.  
  595.  
  596.                               +----+
  597.                               |RT10|------+
  598.                               +----+       \+-------------+
  599.                              /      \       |Routing Table|
  600.                             /        \      +-------------+
  601.                            /          \
  602.               +------+    /            \    +--------+
  603.               |Area 2|---+              +---|Backbone|
  604.               +------+***********+          +--------+
  605.              /        \           *        /          \
  606.             /          \           *      /            \
  607.        +---------+  +---------+    +------------+       +------------+
  608.        |Interface|  |Interface|    |Virtual Link|       |Interface Ib|
  609.        |  to N6  |  |  to N8  |    |   to RT11  |       +------------+
  610.        +---------+  +---------+    +------------+             |
  611.            /  \           |               |                   |
  612.           /    \          |               |                   |
  613.    +--------+ +--------+  |        +-------------+      +------------+
  614.    |Neighbor| |Neighbor|  |        |Neighbor RT11|      |Neighbor RT6|
  615.    |  RT8   | |  RT7   |  |        +-------------+      +------------+
  616.    +--------+ +--------+  |
  617.                           |
  618.                      +-------------+
  619.                      |Neighbor RT11|
  620.                      +-------------+
  621.  
  622.  
  623.                 Figure 9: Router RT10's Data structures
  624.  
  625.     The area topological (or link state) database consists of the
  626.     collection of router links, network links and summary link
  627.     advertisements that have originated from the area's routers.  This
  628.     information is flooded throughout a single area only.  The list of
  629.     AS external link advertisements (see Section 5) is also considered
  630.     to be part of each area's topological database.
  631.  
  632.  
  633.     Area ID
  634.         A 32-bit number identifying the area.  0.0.0.0 is reserved for
  635.         the Area ID of the backbone.  If assigning subnetted networks as
  636.         separate areas, the IP network number could be used as the Area
  637.         ID.
  638.  
  639.     List of component address ranges
  640.         The address ranges that define the area.  Each address range is
  641.  
  642.  
  643.  
  644. Moy                                                            [Page 43]
  645.  
  646. RFC 1583                     OSPF Version 2                   March 1994
  647.  
  648.  
  649.         specified by an [address,mask] pair and a status indication of
  650.         either Advertise or DoNotAdvertise (see Section 12.4.3). Each
  651.         network is then assigned to an area depending on the address
  652.         range that it falls into (specified address ranges are not
  653.         allowed to overlap).  As an example, if an IP subnetted network
  654.         is to be its own separate OSPF area, the area is defined to
  655.         consist of a single address range - an IP network number with
  656.         its natural (class A, B or C) mask.
  657.  
  658.     Associated router interfaces
  659.         This router's interfaces connecting to the area.  A router
  660.         interface belongs to one and only one area (or the backbone).
  661.         For the backbone structure this list includes all the virtual
  662.         links.  A virtual link is identified by the Router ID of its
  663.         other endpoint; its cost is the cost of the shortest intra-area
  664.         path through the Transit area that exists between the two
  665.         routers.
  666.  
  667.     List of router links advertisements
  668.         A router links advertisement is generated by each router in the
  669.         area.  It describes the state of the router's interfaces to the
  670.         area.
  671.  
  672.     List of network links advertisements
  673.         One network links advertisement is generated for each transit
  674.         multi-access network in the area.  A network links advertisement
  675.         describes the set of routers currently connected to the network.
  676.  
  677.     List of summary link advertisements
  678.         Summary link advertisements originate from the area's area
  679.         border routers.  They describe routes to destinations internal
  680.         to the Autonomous System, yet external to the area.
  681.  
  682.     Shortest-path tree
  683.         The shortest-path tree for the area, with this router itself as
  684.         root.  Derived from the collected router links and network links
  685.         advertisements by the Dijkstra algorithm (see Section 16.1).
  686.  
  687.     AuType
  688.         The type of authentication used for this area.  Authentication
  689.         types are defined in Appendix D.  All OSPF packet exchanges are
  690.         authenticated.  Different authentication schemes may be used in
  691.         different areas.
  692.  
  693.     TransitCapability
  694.         Set to TRUE if and only if there are one or more active virtual
  695.         links using the area as a Transit area. Equivalently, this
  696.         parameter indicates whether the area can carry data traffic that
  697.  
  698.  
  699.  
  700. Moy                                                            [Page 44]
  701.  
  702. RFC 1583                     OSPF Version 2                   March 1994
  703.  
  704.  
  705.         neither originates nor terminates in the area itself. This
  706.         parameter is calculated when the area's shortest-path tree is
  707.         built (see Section 16.1, and is used as an input to a subsequent
  708.         step of the routing table build process (see Section 16.3).
  709.  
  710.     ExternalRoutingCapability
  711.         Whether AS external advertisements will be flooded
  712.         into/throughout the area.  This is a configurable parameter.  If
  713.         AS external advertisements are excluded from the area, the area
  714.         is called a "stub".  Internal to stub areas, routing to AS
  715.         external destinations will be based solely on a default summary
  716.         route.  The backbone cannot be configured as a stub area.  Also,
  717.         virtual links cannot be configured through stub areas.  For more
  718.         information, see Section 3.6.
  719.  
  720.     StubDefaultCost
  721.         If the area has been configured as a stub area, and the router
  722.         itself is an area border router, then the StubDefaultCost
  723.         indicates the cost of the default summary link that the router
  724.         should advertise into the area.  There can be a separate cost
  725.         configured for each IP TOS.  See Section 12.4.3 for more
  726.         information.
  727.  
  728.  
  729.     Unless otherwise specified, the remaining sections of this document
  730.     refer to the operation of the protocol in a single area.
  731.  
  732.  
  733. 7.  Bringing Up Adjacencies
  734.  
  735.     OSPF creates adjacencies between neighboring routers for the purpose
  736.     of exchanging routing information.  Not every two neighboring
  737.     routers will become adjacent.  This section covers the generalities
  738.     involved in creating adjacencies.  For further details consult
  739.     Section 10.
  740.  
  741.  
  742.     7.1.  The Hello Protocol
  743.  
  744.         The Hello Protocol is responsible for establishing and
  745.         maintaining neighbor relationships.  It also ensures that
  746.         communication between neighbors is bidirectional.  Hello packets
  747.         are sent periodically out all router interfaces.  Bidirectional
  748.         communication is indicated when the router sees itself listed in
  749.         the neighbor's Hello Packet.
  750.  
  751.         On multi-access networks, the Hello Protocol elects a Designated
  752.         Router for the network.  Among other things, the Designated
  753.  
  754.  
  755.  
  756. Moy                                                            [Page 45]
  757.  
  758. RFC 1583                     OSPF Version 2                   March 1994
  759.  
  760.  
  761.         Router controls what adjacencies will be formed over the network
  762.         (see below).
  763.  
  764.         The Hello Protocol works differently on broadcast networks, as
  765.         compared to non-broadcast networks.  On broadcast networks, each
  766.         router advertises itself by periodically multicasting Hello
  767.         Packets.  This allows neighbors to be discovered dynamically.
  768.         These Hello Packets contain the router's view of the Designated
  769.         Router's identity, and the list of routers whose Hello Packets
  770.         have been seen recently.
  771.  
  772.         On non-broadcast networks some configuration information is
  773.         necessary for the operation of the Hello Protocol.  Each router
  774.         that may potentially become Designated Router has a list of all
  775.         other routers attached to the network.  A router, having
  776.         Designated Router potential, sends Hello Packets to all other
  777.         potential Designated Routers when its interface to the non-
  778.         broadcast network first becomes operational.  This is an attempt
  779.         to find the Designated Router for the network.  If the router
  780.         itself is elected Designated Router, it begins sending Hello
  781.         Packets to all other routers attached to the network.
  782.  
  783.         After a neighbor has been discovered, bidirectional
  784.         communication ensured, and (if on a multi-access network) a
  785.         Designated Router elected, a decision is made regarding whether
  786.         or not an adjacency should be formed with the neighbor (see
  787.         Section 10.4).  An attempt is always made to establish
  788.         adjacencies over point-to-point networks and virtual links.  The
  789.         first step in bringing up an adjacency is to synchronize the
  790.         neighbors' topological databases.  This is covered in the next
  791.         section.
  792.  
  793.  
  794.     7.2.  The Synchronization of Databases
  795.  
  796.         In a link-state routing algorithm, it is very important for all
  797.         routers' topological databases to stay synchronized.  OSPF
  798.         simplifies this by requiring only adjacent routers to remain
  799.         synchronized.  The synchronization process begins as soon as the
  800.         routers attempt to bring up the adjacency.  Each router
  801.         describes its database by sending a sequence of Database
  802.         Description packets to its neighbor.  Each Database Description
  803.         Packet describes a set of link state advertisements belonging to
  804.         the router's database.  When the neighbor sees a link state
  805.         advertisement that is more recent than its own database copy, it
  806.         makes a note that this newer advertisement should be requested.
  807.  
  808.         This sending and receiving of Database Description packets is
  809.  
  810.  
  811.  
  812. Moy                                                            [Page 46]
  813.  
  814. RFC 1583                     OSPF Version 2                   March 1994
  815.  
  816.  
  817.         called the "Database Exchange Process".  During this process,
  818.         the two routers form a master/slave relationship.  Each Database
  819.         Description Packet has a sequence number.  Database Description
  820.         Packets sent by the master (polls) are acknowledged by the slave
  821.         through echoing of the sequence number.  Both polls and their
  822.         responses contain summaries of link state data.  The master is
  823.         the only one allowed to retransmit Database Description Packets.
  824.         It does so only at fixed intervals, the length of which is the
  825.         configured constant RxmtInterval.
  826.  
  827.         Each Database Description contains an indication that there are
  828.         more packets to follow --- the M-bit.  The Database Exchange
  829.         Process is over when a router has received and sent Database
  830.         Description Packets with the M-bit off.
  831.  
  832.         During and after the Database Exchange Process, each router has
  833.         a list of those link state advertisements for which the neighbor
  834.         has more up-to-date instances.  These advertisements are
  835.         requested in Link State Request Packets.  Link State Request
  836.         packets that are not satisfied are retransmitted at fixed
  837.         intervals of time RxmtInterval.  When the Database Description
  838.         Process has completed and all Link State Requests have been
  839.         satisfied, the databases are deemed synchronized and the routers
  840.         are marked fully adjacent.  At this time the adjacency is fully
  841.         functional and is advertised in the two routers' link state
  842.         advertisements.
  843.  
  844.         The adjacency is used by the flooding procedure as soon as the
  845.         Database Exchange Process begins.  This simplifies database
  846.         synchronization, and guarantees that it finishes in a
  847.         predictable period of time.
  848.  
  849.  
  850.     7.3.  The Designated Router
  851.  
  852.         Every multi-access network has a Designated Router.  The
  853.         Designated Router performs two main functions for the routing
  854.         protocol:
  855.  
  856.         o   The Designated Router originates a network links
  857.             advertisement on behalf of the network.  This advertisement
  858.             lists the set of routers (including the Designated Router
  859.             itself) currently attached to the network.  The Link State
  860.             ID for this advertisement (see Section 12.1.4) is the IP
  861.             interface address of the Designated Router.  The IP network
  862.             number can then be obtained by using the subnet/network
  863.             mask.
  864.  
  865.  
  866.  
  867.  
  868. Moy                                                            [Page 47]
  869.  
  870. RFC 1583                     OSPF Version 2                   March 1994
  871.  
  872.  
  873.         o   The Designated Router becomes adjacent to all other routers
  874.             on the network.  Since the link state databases are
  875.             synchronized across adjacencies (through adjacency bring-up
  876.             and then the flooding procedure), the Designated Router
  877.             plays a central part in the synchronization process.
  878.  
  879.  
  880.         The Designated Router is elected by the Hello Protocol.  A
  881.         router's Hello Packet contains its Router Priority, which is
  882.         configurable on a per-interface basis.  In general, when a
  883.         router's interface to a network first becomes functional, it
  884.         checks to see whether there is currently a Designated Router for
  885.         the network.  If there is, it accepts that Designated Router,
  886.         regardless of its Router Priority.  (This makes it harder to
  887.         predict the identity of the Designated Router, but ensures that
  888.         the Designated Router changes less often.  See below.)
  889.         Otherwise, the router itself becomes Designated Router if it has
  890.         the highest Router Priority on the network.  A more detailed
  891.         (and more accurate) description of Designated Router election is
  892.         presented in Section 9.4.
  893.  
  894.         The Designated Router is the endpoint of many adjacencies.  In
  895.         order to optimize the flooding procedure on broadcast networks,
  896.         the Designated Router multicasts its Link State Update Packets
  897.         to the address AllSPFRouters, rather than sending separate
  898.         packets over each adjacency.
  899.  
  900.         Section 2 of this document discusses the directed graph
  901.         representation of an area.  Router nodes are labelled with their
  902.         Router ID.  Multi-access network nodes are actually labelled
  903.         with the IP address of their Designated Router.  It follows that
  904.         when the Designated Router changes, it appears as if the network
  905.         node on the graph is replaced by an entirely new node.  This
  906.         will cause the network and all its attached routers to originate
  907.         new link state advertisements.  Until the topological databases
  908.         again converge, some temporary loss of connectivity may result.
  909.         This may result in ICMP unreachable messages being sent in
  910.         response to data traffic.  For that reason, the Designated
  911.         Router should change only infrequently.  Router Priorities
  912.         should be configured so that the most dependable router on a
  913.         network eventually becomes Designated Router.
  914.  
  915.  
  916.     7.4.  The Backup Designated Router
  917.  
  918.         In order to make the transition to a new Designated Router
  919.         smoother, there is a Backup Designated Router for each multi-
  920.         access network.  The Backup Designated Router is also adjacent
  921.  
  922.  
  923.  
  924. Moy                                                            [Page 48]
  925.  
  926. RFC 1583                     OSPF Version 2                   March 1994
  927.  
  928.  
  929.         to all routers on the network, and becomes Designated Router
  930.         when the previous Designated Router fails.  If there were no
  931.         Backup Designated Router, when a new Designated Router became
  932.         necessary, new adjacencies would have to be formed between the
  933.         new Designated Router and all other routers attached to the
  934.         network.  Part of the adjacency forming process is the
  935.         synchronizing of topological databases, which can potentially
  936.         take quite a long time.  During this time, the network would not
  937.         be available for transit data traffic.  The Backup Designated
  938.         obviates the need to form these adjacencies, since they already
  939.         exist.  This means the period of disruption in transit traffic
  940.         lasts only as long as it takes to flood the new link state
  941.         advertisements (which announce the new Designated Router).
  942.  
  943.         The Backup Designated Router does not generate a network links
  944.         advertisement for the network.  (If it did, the transition to a
  945.         new Designated Router would be even faster.  However, this is a
  946.         tradeoff between database size and speed of convergence when the
  947.         Designated Router disappears.)
  948.  
  949.         The Backup Designated Router is also elected by the Hello
  950.         Protocol.  Each Hello Packet has a field that specifies the
  951.         Backup Designated Router for the network.
  952.  
  953.         In some steps of the flooding procedure, the Backup Designated
  954.         Router plays a passive role, letting the Designated Router do
  955.         more of the work.  This cuts down on the amount of local routing
  956.         traffic.  See Section 13.3 for more information.
  957.  
  958.  
  959.     7.5.  The graph of adjacencies
  960.  
  961.         An adjacency is bound to the network that the two routers have
  962.         in common.  If two routers have multiple networks in common,
  963.         they may have multiple adjacencies between them.
  964.  
  965.         One can picture the collection of adjacencies on a network as
  966.         forming an undirected graph.  The vertices consist of routers,
  967.         with an edge joining two routers if they are adjacent.  The
  968.         graph of adjacencies describes the flow of routing protocol
  969.         packets, and in particular Link State Update Packets, through
  970.         the Autonomous System.
  971.  
  972.         Two graphs are possible, depending on whether the common network
  973.         is multi-access.  On physical point-to-point networks (and
  974.         virtual links), the two routers joined by the network will be
  975.         adjacent after their databases have been synchronized.  On
  976.         multi-access networks, both the Designated Router and the Backup
  977.  
  978.  
  979.  
  980. Moy                                                            [Page 49]
  981.  
  982. RFC 1583                     OSPF Version 2                   March 1994
  983.  
  984.  
  985.         Designated Router are adjacent to all other routers attached to
  986.         the network, and these account for all adjacencies.
  987.  
  988.         These graphs are shown in Figure 10.  It is assumed that Router
  989.         RT7 has become the Designated Router, and Router RT3 the Backup
  990.         Designated Router, for the Network N2.  The Backup Designated
  991.         Router performs a lesser function during the flooding procedure
  992.         than the Designated Router (see Section 13.3).  This is the
  993.         reason for the dashed lines connecting the Backup Designated
  994.         Router RT3.
  995.  
  996.  
  997. 8.  Protocol Packet Processing
  998.  
  999.     This section discusses the general processing of OSPF routing
  1000.     protocol packets.  It is very important that the router topological
  1001.     databases remain synchronized.  For this reason, routing protocol
  1002.     packets should get preferential treatment over ordinary data
  1003.     packets, both in sending and receiving.
  1004.  
  1005.     Routing protocol packets are sent along adjacencies only (with the
  1006.  
  1007.  
  1008.  
  1009.           +---+            +---+
  1010.           |RT1|------------|RT2|            o---------------o
  1011.           +---+    N1      +---+           RT1             RT2
  1012.  
  1013.  
  1014.  
  1015.                                                  RT7
  1016.                                                   o---------+
  1017.             +---+   +---+   +---+                /|\        |
  1018.             |RT7|   |RT3|   |RT4|               / | \       |
  1019.             +---+   +---+   +---+              /  |  \      |
  1020.               |       |       |               /   |   \     |
  1021.          +-----------------------+        RT5o RT6o    oRT4 |
  1022.                   |       |     N2            *   *   *     |
  1023.                 +---+   +---+                  *  *  *      |
  1024.                 |RT5|   |RT6|                   * * *       |
  1025.                 +---+   +---+                    ***        |
  1026.                                                   o---------+
  1027.                                                  RT3
  1028.  
  1029.  
  1030.                   Figure 10: The graph of adjacencies
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036. Moy                                                            [Page 50]
  1037.  
  1038. RFC 1583                     OSPF Version 2                   March 1994
  1039.  
  1040.  
  1041.     exception of Hello packets, which are used to discover the
  1042.     adjacencies).  This means that all routing protocol packets travel a
  1043.     single IP hop, except those sent over virtual links.
  1044.  
  1045.     All routing protocol packets begin with a standard header.  The
  1046.     sections below give the details on how to fill in and verify this
  1047.     standard header.  Then, for each packet type, the section is listed
  1048.     that gives more details on that particular packet type's processing.
  1049.  
  1050.     8.1.  Sending protocol packets
  1051.  
  1052.         When a router sends a routing protocol packet, it fills in the
  1053.         fields of the standard OSPF packet header as follows.  For more
  1054.         details on the header format consult Section A.3.1:
  1055.  
  1056.  
  1057.         Version #
  1058.             Set to 2, the version number of the protocol as documented
  1059.             in this specification.
  1060.  
  1061.         Packet type
  1062.             The type of OSPF packet, such as Link state Update or Hello
  1063.             Packet.
  1064.  
  1065.         Packet length
  1066.             The length of the entire OSPF packet in bytes, including the
  1067.             standard OSPF packet header.
  1068.  
  1069.         Router ID
  1070.             The identity of the router itself (who is originating the
  1071.             packet).
  1072.  
  1073.         Area ID
  1074.             The OSPF area that the packet is being sent into.
  1075.  
  1076.         Checksum
  1077.             The standard IP 16-bit one's complement checksum of the
  1078.             entire OSPF packet, excluding the 64-bit authentication
  1079.             field.  This checksum should be calculated before handing
  1080.             the packet to the appropriate authentication procedure.
  1081.  
  1082.         AuType and Authentication
  1083.             Each OSPF packet exchange is authenticated.  Authentication
  1084.             types are assigned by the protocol and documented in
  1085.             Appendix D.  A different authentication scheme can be used
  1086.             for each OSPF area.  The 64-bit authentication field is set
  1087.             by the appropriate authentication procedure (determined by
  1088.             AuType).  This procedure should be the last called when
  1089.  
  1090.  
  1091.  
  1092. Moy                                                            [Page 51]
  1093.  
  1094. RFC 1583                     OSPF Version 2                   March 1994
  1095.  
  1096.  
  1097.             forming the packet to be sent.  The setting of the
  1098.             authentication field is determined by the packet contents
  1099.             and the authentication key (which is configurable on a per-
  1100.             interface basis).
  1101.  
  1102.  
  1103.         The IP destination address for the packet is selected as
  1104.         follows.  On physical point-to-point networks, the IP
  1105.         destination is always set to the address AllSPFRouters.  On all
  1106.         other network types (including virtual links), the majority of
  1107.         OSPF packets are sent as unicasts, i.e., sent directly to the
  1108.         other end of the adjacency.  In this case, the IP destination is
  1109.         just the Neighbor IP address associated with the other end of
  1110.         the adjacency (see Section 10).  The only packets not sent as
  1111.         unicasts are on broadcast networks; on these networks Hello
  1112.         packets are sent to the multicast destination AllSPFRouters, the
  1113.         Designated Router and its Backup send both Link State Update
  1114.         Packets and Link State Acknowledgment Packets to the multicast
  1115.         address AllSPFRouters, while all other routers send both their
  1116.         Link State Update and Link State Acknowledgment Packets to the
  1117.         multicast address AllDRouters.
  1118.  
  1119.         Retransmissions of Link State Update packets are ALWAYS sent as
  1120.         unicasts.
  1121.  
  1122.         The IP source address should be set to the IP address of the
  1123.         sending interface.  Interfaces to unnumbered point-to-point
  1124.         networks have no associated IP address.  On these interfaces,
  1125.         the IP source should be set to any of the other IP addresses
  1126.         belonging to the router.  For this reason, there must be at
  1127.         least one IP address assigned to the router.[2] Note that, for
  1128.         most purposes, virtual links act precisely the same as
  1129.         unnumbered point-to-point networks.  However, each virtual link
  1130.         does have an IP interface address (discovered during the routing
  1131.         table build process) which is used as the IP source when sending
  1132.         packets over the virtual link.
  1133.  
  1134.         For more information on the format of specific OSPF packet
  1135.         types, consult the sections listed in Table 10.
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148. Moy                                                            [Page 52]
  1149.  
  1150. RFC 1583                     OSPF Version 2                   March 1994
  1151.  
  1152.  
  1153.  
  1154.              Type   Packet name            detailed section (transmit)
  1155.              _________________________________________________________
  1156.              1      Hello                  Section  9.5
  1157.              2      Database description   Section 10.8
  1158.              3      Link state request     Section 10.9
  1159.              4      Link state update      Section 13.3
  1160.              5      Link state ack         Section 13.5
  1161.  
  1162.  
  1163.             Table 10: Sections describing OSPF protocol packet transmission.
  1164.  
  1165.  
  1166.  
  1167.     8.2.  Receiving protocol packets
  1168.  
  1169.         Whenever a protocol packet is received by the router it is
  1170.         marked with the interface it was received on.  For routers that
  1171.         have virtual links configured, it may not be immediately obvious
  1172.         which interface to associate the packet with.  For example,
  1173.         consider the Router RT11 depicted in Figure 6.  If RT11 receives
  1174.         an OSPF protocol packet on its interface to Network N8, it may
  1175.         want to associate the packet with the interface to Area 2, or
  1176.         with the virtual link to Router RT10 (which is part of the
  1177.         backbone).  In the following, we assume that the packet is
  1178.         initially associated with the non-virtual  link.[3]
  1179.  
  1180.         In order for the packet to be accepted at the IP level, it must
  1181.         pass a number of tests, even before the packet is passed to OSPF
  1182.         for processing:
  1183.  
  1184.  
  1185.         o   The IP checksum must be correct.
  1186.  
  1187.         o   The packet's IP destination address must be the IP address
  1188.             of the receiving interface, or one of the IP multicast
  1189.             addresses AllSPFRouters or AllDRouters.
  1190.  
  1191.         o   The IP protocol specified must be OSPF (89).
  1192.  
  1193.         o   Locally originated packets should not be passed on to OSPF.
  1194.             That is, the source IP address should be examined to make
  1195.             sure this is not a multicast packet that the router itself
  1196.             generated.
  1197.  
  1198.  
  1199.         Next, the OSPF packet header is verified.  The fields specified
  1200.         in the header must match those configured for the receiving
  1201.  
  1202.  
  1203.  
  1204. Moy                                                            [Page 53]
  1205.  
  1206. RFC 1583                     OSPF Version 2                   March 1994
  1207.  
  1208.  
  1209.         interface.  If they do not, the packet should be discarded:
  1210.  
  1211.  
  1212.         o   The version number field must specify protocol version 2.
  1213.  
  1214.         o   The 16-bit one's complement checksum of the OSPF packet's
  1215.             contents must be verified.  Remember that the 64-bit
  1216.             authentication field must be excluded from the checksum
  1217.             calculation.
  1218.  
  1219.         o   The Area ID found in the OSPF header must be verified.  If
  1220.             both of the following cases fail, the packet should be
  1221.             discarded.  The Area ID specified in the header must either:
  1222.  
  1223.             (1) Match the Area ID of the receiving interface.  In this
  1224.                 case, the packet has been sent over a single hop.
  1225.                 Therefore, the packet's IP source address must be on the
  1226.                 same network as the receiving interface.  This can be
  1227.                 determined by comparing the packet's IP source address
  1228.                 to the interface's IP address, after masking both
  1229.                 addresses with the interface mask.  This comparison
  1230.                 should not be performed on point-to-point networks. On
  1231.                 point-to-point networks, the interface addresses of each
  1232.                 end of the link are assigned independently, if they are
  1233.                 assigned at all.
  1234.  
  1235.             (2) Indicate the backbone.  In this case, the packet has
  1236.                 been sent over a virtual link.  The receiving router
  1237.                 must be an area border router, and the Router ID
  1238.                 specified in the packet (the source router) must be the
  1239.                 other end of a configured virtual link.  The receiving
  1240.                 interface must also attach to the virtual link's
  1241.                 configured Transit area.  If all of these checks
  1242.                 succeed, the packet is accepted and is from now on
  1243.                 associated with the virtual link (and the backbone
  1244.                 area).
  1245.  
  1246.         o   Packets whose IP destination is AllDRouters should only be
  1247.             accepted if the state of the receiving interface is DR or
  1248.             Backup (see Section 9.1).
  1249.  
  1250.         o   The AuType specified in the packet must match the AuType
  1251.             specified for the associated area.
  1252.  
  1253.  
  1254.         Next, the packet must be authenticated.  This depends on the
  1255.         AuType specified (see Appendix D).  The authentication procedure
  1256.         may use an Authentication key, which can be configured on a
  1257.  
  1258.  
  1259.  
  1260. Moy                                                            [Page 54]
  1261.  
  1262. RFC 1583                     OSPF Version 2                   March 1994
  1263.  
  1264.  
  1265.         per-interface basis.  If the authentication fails, the packet
  1266.         should be discarded.
  1267.  
  1268.         If the packet type is Hello, it should then be further processed
  1269.         by the Hello Protocol (see Section 10.5).  All other packet
  1270.         types are sent/received only on adjacencies.  This means that
  1271.         the packet must have been sent by one of the router's active
  1272.         neighbors.  If the receiving interface is a multi-access network
  1273.         (either broadcast or non-broadcast) the sender is identified by
  1274.         the IP source address found in the packet's IP header.  If the
  1275.         receiving interface is a point-to-point link or a virtual link,
  1276.         the sender is identified by the Router ID (source router) found
  1277.         in the packet's OSPF header.  The data structure associated with
  1278.         the receiving interface contains the list of active neighbors.
  1279.         Packets not matching any active neighbor are discarded.
  1280.  
  1281.         At this point all received protocol packets are associated with
  1282.         an active neighbor.  For the further input processing of
  1283.         specific packet types, consult the sections listed in Table 11.
  1284.  
  1285.  
  1286.  
  1287.               Type   Packet name            detailed section (receive)
  1288.               ________________________________________________________
  1289.               1      Hello                  Section 10.5
  1290.               2      Database description   Section 10.6
  1291.               3      Link state request     Section 10.7
  1292.               4      Link state update      Section 13
  1293.               5      Link state ack         Section 13.7
  1294.  
  1295.  
  1296.             Table 11: Sections describing OSPF protocol packet reception.
  1297.  
  1298.  
  1299.  
  1300. 9.  The Interface Data Structure
  1301.  
  1302.     An OSPF interface is the connection between a router and a network.
  1303.     There is a single OSPF interface structure for each attached
  1304.     network; each interface structure has at most one IP interface
  1305.     address (see below).  The support for multiple addresses on a single
  1306.     network is a matter for future consideration.
  1307.  
  1308.     An OSPF interface can be considered to belong to the area that
  1309.     contains the attached network.  All routing protocol packets
  1310.     originated by the router over this interface are labelled with the
  1311.     interface's Area ID.  One or more router adjacencies may develop
  1312.     over an interface.  A router's link state advertisements reflect the
  1313.  
  1314.  
  1315.  
  1316. Moy                                                            [Page 55]
  1317.  
  1318. RFC 1583                     OSPF Version 2                   March 1994
  1319.  
  1320.  
  1321.     state of its interfaces and their associated adjacencies.
  1322.  
  1323.     The following data items are associated with an interface.  Note
  1324.     that a number of these items are actually configuration for the
  1325.     attached network; those items must be the same for all routers
  1326.     connected to the network.
  1327.  
  1328.  
  1329.     Type
  1330.         The kind of network to which the interface attaches.  Its value
  1331.         is either broadcast, non-broadcast yet still multi-access,
  1332.         point-to-point or virtual link.
  1333.  
  1334.     State
  1335.         The functional level of an interface.  State determines whether
  1336.         or not full adjacencies are allowed to form over the interface.
  1337.         State is also reflected in the router's link state
  1338.         advertisements.
  1339.  
  1340.     IP interface address
  1341.         The IP address associated with the interface.  This appears as
  1342.         the IP source address in all routing protocol packets originated
  1343.         over this interface.  Interfaces to unnumbered point-to-point
  1344.         networks do not have an associated IP address.
  1345.  
  1346.     IP interface mask
  1347.         Also referred to as the subnet mask, this indicates the portion
  1348.         of the IP interface address that identifies the attached
  1349.         network.  Masking the IP interface address with the IP interface
  1350.         mask yields the IP network number of the attached network.  On
  1351.         point-to-point networks and virtual links, the IP interface mask
  1352.         is not defined. On these networks, the link itself is not
  1353.         assigned an IP network number, and so the addresses of each side
  1354.         of the link are assigned independently, if they are assigned at
  1355.         all.
  1356.  
  1357.     Area ID
  1358.         The Area ID of the area to which the attached network belongs.
  1359.         All routing protocol packets originating from the interface are
  1360.         labelled with this Area ID.
  1361.  
  1362.     HelloInterval
  1363.         The length of time, in seconds, between the Hello packets that
  1364.         the router sends on the interface.  Advertised in Hello packets
  1365.         sent out this interface.
  1366.  
  1367.     RouterDeadInterval
  1368.         The number of seconds before the router's neighbors will declare
  1369.  
  1370.  
  1371.  
  1372. Moy                                                            [Page 56]
  1373.  
  1374. RFC 1583                     OSPF Version 2                   March 1994
  1375.  
  1376.  
  1377.         it down, when they stop hearing the router's Hello Packets.
  1378.         Advertised in Hello packets sent out this interface.
  1379.  
  1380.     InfTransDelay
  1381.         The estimated number of seconds it takes to transmit a Link
  1382.         State Update Packet over this interface.  Link state
  1383.         advertisements contained in the Link State Update packet will
  1384.         have their age incremented by this amount before transmission.
  1385.         This value should take into account transmission and propagation
  1386.         delays; it must be greater than zero.
  1387.  
  1388.     Router Priority
  1389.         An 8-bit unsigned integer.  When two routers attached to a
  1390.         network both attempt to become Designated Router, the one with
  1391.         the highest Router Priority takes precedence.  A router whose
  1392.         Router Priority is set to 0 is ineligible to become Designated
  1393.         Router on the attached network.  Advertised in Hello packets
  1394.         sent out this interface.
  1395.  
  1396.     Hello Timer
  1397.         An interval timer that causes the interface to send a Hello
  1398.         packet.  This timer fires every HelloInterval seconds.  Note
  1399.         that on non-broadcast networks a separate Hello packet is sent
  1400.         to each qualified neighbor.
  1401.  
  1402.     Wait Timer
  1403.         A single shot timer that causes the interface to exit the
  1404.         Waiting state, and as a consequence select a Designated Router
  1405.         on the network.  The length of the timer is RouterDeadInterval
  1406.         seconds.
  1407.  
  1408.     List of neighboring routers
  1409.         The other routers attached to this network.  On multi-access
  1410.         networks, this list is formed by the Hello Protocol.
  1411.         Adjacencies will be formed to some of these neighbors.  The set
  1412.         of adjacent neighbors can be determined by an examination of all
  1413.         of the neighbors' states.
  1414.  
  1415.     Designated Router
  1416.         The Designated Router selected for the attached network.  The
  1417.         Designated Router is selected on all multi-access networks by
  1418.         the Hello Protocol.  Two pieces of identification are kept for
  1419.         the Designated Router: its Router ID and its IP interface
  1420.         address on the network.  The Designated Router advertises link
  1421.         state for the network; this network link state advertisement is
  1422.         labelled with the Designated Router's IP address.  The
  1423.         Designated Router is initialized to 0.0.0.0, which indicates the
  1424.         lack of a Designated Router.
  1425.  
  1426.  
  1427.  
  1428. Moy                                                            [Page 57]
  1429.  
  1430. RFC 1583                     OSPF Version 2                   March 1994
  1431.  
  1432.  
  1433.     Backup Designated Router
  1434.         The Backup Designated Router is also selected on all multi-
  1435.         access networks by the Hello Protocol.  All routers on the
  1436.         attached network become adjacent to both the Designated Router
  1437.         and the Backup Designated Router.  The Backup Designated Router
  1438.         becomes Designated Router when the current Designated Router
  1439.         fails.  The Backup Designated Router is initialized to 0.0.0.0,
  1440.         indicating the lack of a Backup Designated Router.
  1441.  
  1442.     Interface output cost(s)
  1443.         The cost of sending a data packet on the interface, expressed in
  1444.         the link state metric.  This is advertised as the link cost for
  1445.         this interface in the router links advertisement.  There may be
  1446.         a separate cost for each IP Type of Service.  The cost of an
  1447.         interface must be greater than zero.
  1448.  
  1449.     RxmtInterval
  1450.         The number of seconds between link state advertisement
  1451.         retransmissions, for adjacencies belonging to this interface.
  1452.         Also used when retransmitting Database Description and Link
  1453.         State Request Packets.
  1454.  
  1455.     Authentication key
  1456.         This configured data allows the authentication procedure to
  1457.         generate and/or verify the Authentication field in the OSPF
  1458.         header.  The Authentication key can be configured on a per-
  1459.         interface basis.  For example, if the AuType indicates simple
  1460.         password, the Authentication key would be a 64-bit password.
  1461.         This key would be inserted directly into the OSPF header when
  1462.         originating routing protocol packets, and there could be a
  1463.         separate password for each network.
  1464.  
  1465.  
  1466.     9.1.  Interface states
  1467.  
  1468.         The various states that router interfaces may attain is
  1469.         documented in this section.  The states are listed in order of
  1470.         progressing functionality.  For example, the inoperative state
  1471.         is listed first, followed by a list of intermediate states
  1472.         before the final, fully functional state is achieved.  The
  1473.         specification makes use of this ordering by sometimes making
  1474.         references such as "those interfaces in state greater than X".
  1475.         Figure 11 shows the graph of interface state changes.  The arcs
  1476.         of the graph are labelled with the event causing the state
  1477.         change.  These events are documented in Section 9.2.  The
  1478.         interface state machine is described in more detail in Section
  1479.         9.3.
  1480.  
  1481.  
  1482.  
  1483.  
  1484. Moy                                                            [Page 58]
  1485.  
  1486. RFC 1583                     OSPF Version 2                   March 1994
  1487.  
  1488.  
  1489.  
  1490.                                   +----+   UnloopInd   +--------+
  1491.                                   |Down|<--------------|Loopback|
  1492.                                   +----+               +--------+
  1493.                                      |
  1494.                                      |InterfaceUp
  1495.                           +-------+  |               +--------------+
  1496.                           |Waiting|<-+-------------->|Point-to-point|
  1497.                           +-------+                  +--------------+
  1498.                               |
  1499.                      WaitTimer|BackupSeen
  1500.                               |
  1501.                               |
  1502.                               |   NeighborChange
  1503.           +------+           +-+<---------------- +-------+
  1504.           |Backup|<----------|?|----------------->|DROther|
  1505.           +------+---------->+-+<-----+           +-------+
  1506.                     Neighbor  |       |
  1507.                     Change    |       |Neighbor
  1508.                               |       |Change
  1509.                               |     +--+
  1510.                               +---->|DR|
  1511.                                     +--+
  1512.  
  1513.                       Figure 11: Interface State changes
  1514.  
  1515.                  In addition to the state transitions pictured,
  1516.                  Event InterfaceDown always forces Down State, and
  1517.                  Event LoopInd always forces Loopback State
  1518.  
  1519.  
  1520.         Down
  1521.             This is the initial interface state.  In this state, the
  1522.             lower-level protocols have indicated that the interface is
  1523.             unusable.  No protocol traffic at all will be sent or
  1524.             received on such a interface.  In this state, interface
  1525.             parameters should be set to their initial values.  All
  1526.             interface timers should be disabled, and there should be no
  1527.             adjacencies associated with the interface.
  1528.  
  1529.         Loopback
  1530.             In this state, the router's interface to the network is
  1531.             looped back.  The interface may be looped back in hardware
  1532.             or software.  The interface will be unavailable for regular
  1533.             data traffic.  However, it may still be desirable to gain
  1534.             information on the quality of this interface, either through
  1535.             sending ICMP pings to the interface or through something
  1536.             like a bit error test.  For this reason, IP packets may
  1537.  
  1538.  
  1539.  
  1540. Moy                                                            [Page 59]
  1541.  
  1542. RFC 1583                     OSPF Version 2                   March 1994
  1543.  
  1544.  
  1545.             still be addressed to an interface in Loopback state.  To
  1546.             facilitate this, such interfaces are advertised in router
  1547.             links advertisements as single host routes, whose
  1548.             destination is the IP interface address.[4]
  1549.  
  1550.         Waiting
  1551.             In this state, the router is trying to determine the
  1552.             identity of the (Backup) Designated Router for the network.
  1553.             To do this, the router monitors the Hello Packets it
  1554.             receives.  The router is not allowed to elect a Backup
  1555.             Designated Router nor a Designated Router until it
  1556.             transitions out of Waiting state.  This prevents unnecessary
  1557.             changes of (Backup) Designated Router.
  1558.  
  1559.         Point-to-point
  1560.             In this state, the interface is operational, and connects
  1561.             either to a physical point-to-point network or to a virtual
  1562.             link.  Upon entering this state, the router attempts to form
  1563.             an adjacency with the neighboring router.  Hello Packets are
  1564.             sent to the neighbor every HelloInterval seconds.
  1565.  
  1566.         DR Other
  1567.             The interface is to a multi-access network on which another
  1568.             router has been selected to be the Designated Router.  In
  1569.             this state, the router itself has not been selected Backup
  1570.             Designated Router either.  The router forms adjacencies to
  1571.             both the Designated Router and the Backup Designated Router
  1572.             (if they exist).
  1573.  
  1574.         Backup
  1575.             In this state, the router itself is the Backup Designated
  1576.             Router on the attached network.  It will be promoted to
  1577.             Designated Router when the present Designated Router fails.
  1578.             The router establishes adjacencies to all other routers
  1579.             attached to the network.  The Backup Designated Router
  1580.             performs slightly different functions during the Flooding
  1581.             Procedure, as compared to the Designated Router (see Section
  1582.             13.3).  See Section 7.4 for more details on the functions
  1583.             performed by the Backup Designated Router.
  1584.  
  1585.         DR  In this state, this router itself is the Designated Router
  1586.             on the attached network.  Adjacencies are established to all
  1587.             other routers attached to the network.  The router must also
  1588.             originate a network links advertisement for the network
  1589.             node.  The advertisement will contain links to all routers
  1590.             (including the Designated Router itself) attached to the
  1591.             network.  See Section 7.3 for more details on the functions
  1592.             performed by the Designated Router.
  1593.  
  1594.  
  1595.  
  1596. Moy                                                            [Page 60]
  1597.  
  1598. RFC 1583                     OSPF Version 2                   March 1994
  1599.  
  1600.  
  1601.     9.2.  Events causing interface state changes
  1602.  
  1603.         State changes can be effected by a number of events.  These
  1604.         events are pictured as the labelled arcs in Figure 11.  The
  1605.         label definitions are listed below.  For a detailed explanation
  1606.         of the effect of these events on OSPF protocol operation,
  1607.         consult Section 9.3.
  1608.  
  1609.  
  1610.         InterfaceUp
  1611.             Lower-level protocols have indicated that the network
  1612.             interface is operational.  This enables the interface to
  1613.             transition out of Down state.  On virtual links, the
  1614.             interface operational indication is actually a result of the
  1615.             shortest path calculation (see Section 16.7).
  1616.  
  1617.         WaitTimer
  1618.             The Wait Timer has fired, indicating the end of the waiting
  1619.             period that is required before electing a (Backup)
  1620.             Designated Router.
  1621.  
  1622.         BackupSeen
  1623.             The router has detected the existence or non-existence of a
  1624.             Backup Designated Router for the network.  This is done in
  1625.             one of two ways.  First, an Hello Packet may be received
  1626.             from a neighbor claiming to be itself the Backup Designated
  1627.             Router.  Alternatively, an Hello Packet may be received from
  1628.             a neighbor claiming to be itself the Designated Router, and
  1629.             indicating that there is no Backup Designated Router.  In
  1630.             either case there must be bidirectional communication with
  1631.             the neighbor, i.e., the router must also appear in the
  1632.             neighbor's Hello Packet.  This event signals an end to the
  1633.             Waiting state.
  1634.  
  1635.         NeighborChange
  1636.             There has been a change in the set of bidirectional
  1637.             neighbors associated with the interface.  The (Backup)
  1638.             Designated Router needs to be recalculated.  The following
  1639.             neighbor changes lead to the NeighborChange event.  For an
  1640.             explanation of neighbor states, see Section 10.1.
  1641.  
  1642.             o   Bidirectional communication has been established to a
  1643.                 neighbor.  In other words, the state of the neighbor has
  1644.                 transitioned to 2-Way or higher.
  1645.  
  1646.             o   There is no longer bidirectional communication with a
  1647.                 neighbor.  In other words, the state of the neighbor has
  1648.                 transitioned to Init or lower.
  1649.  
  1650.  
  1651.  
  1652. Moy                                                            [Page 61]
  1653.  
  1654. RFC 1583                     OSPF Version 2                   March 1994
  1655.  
  1656.  
  1657.             o   One of the bidirectional neighbors is newly declaring
  1658.                 itself as either Designated Router or Backup Designated
  1659.                 Router.  This is detected through examination of that
  1660.                 neighbor's Hello Packets.
  1661.  
  1662.             o   One of the bidirectional neighbors is no longer
  1663.                 declaring itself as Designated Router, or is no longer
  1664.                 declaring itself as Backup Designated Router.  This is
  1665.                 again detected through examination of that neighbor's
  1666.                 Hello Packets.
  1667.  
  1668.             o   The advertised Router Priority for a bidirectional
  1669.                 neighbor has changed.  This is again detected through
  1670.                 examination of that neighbor's Hello Packets.
  1671.  
  1672.         LoopInd
  1673.             An indication has been received that the interface is now
  1674.             looped back to itself.  This indication can be received
  1675.             either from network management or from the lower level
  1676.             protocols.
  1677.  
  1678.         UnloopInd
  1679.             An indication has been received that the interface is no
  1680.             longer looped back.  As with the LoopInd event, this
  1681.             indication can be received either from network management or
  1682.             from the lower level protocols.
  1683.  
  1684.         InterfaceDown
  1685.             Lower-level protocols indicate that this interface is no
  1686.             longer functional.  No matter what the current interface
  1687.             state is, the new interface state will be Down.
  1688.  
  1689.  
  1690.     9.3.  The Interface state machine
  1691.  
  1692.         A detailed description of the interface state changes follows.
  1693.         Each state change is invoked by an event (Section 9.2).  This
  1694.         event may produce different effects, depending on the current
  1695.         state of the interface.  For this reason, the state machine
  1696.         below is organized by current interface state and received
  1697.         event.  Each entry in the state machine describes the resulting
  1698.         new interface state and the required set of additional actions.
  1699.  
  1700.         When an interface's state changes, it may be necessary to
  1701.         originate a new router links advertisement.  See Section 12.4
  1702.         for more details.
  1703.  
  1704.         Some of the required actions below involve generating events for
  1705.  
  1706.  
  1707.  
  1708. Moy                                                            [Page 62]
  1709.  
  1710. RFC 1583                     OSPF Version 2                   March 1994
  1711.  
  1712.  
  1713.         the neighbor state machine.  For example, when an interface
  1714.         becomes inoperative, all neighbor connections associated with
  1715.         the interface must be destroyed.  For more information on the
  1716.         neighbor state machine, see Section 10.3.
  1717.  
  1718.  
  1719.          State(s):  Down
  1720.  
  1721.             Event:  InterfaceUp
  1722.  
  1723.         New state:  Depends upon action routine
  1724.  
  1725.            Action:  Start the interval Hello Timer, enabling the
  1726.                     periodic sending of Hello packets out the interface.
  1727.                     If the attached network is a physical point-to-point
  1728.                     network or virtual link, the interface state
  1729.                     transitions to Point-to-Point.  Else, if the router
  1730.                     is not eligible to become Designated Router the
  1731.                     interface state transitions to DR Other.
  1732.  
  1733.                     Otherwise, the attached network is multi-access and
  1734.                     the router is eligible to become Designated Router.
  1735.                     In this case, in an attempt to discover the attached
  1736.                     network's Designated Router the interface state is
  1737.                     set to Waiting and the single shot Wait Timer is
  1738.                     started.  If in addition the attached network is
  1739.                     non-broadcast, examine the configured list of
  1740.                     neighbors for this interface and generate the
  1741.                     neighbor event Start for each neighbor that is also
  1742.                     eligible to become Designated Router.
  1743.  
  1744.  
  1745.          State(s):  Waiting
  1746.  
  1747.             Event:  BackupSeen
  1748.  
  1749.         New state:  Depends upon action routine.
  1750.  
  1751.            Action:  Calculate the attached network's Backup Designated
  1752.                     Router and Designated Router, as shown in Section
  1753.                     9.4.  As a result of this calculation, the new state
  1754.                     of the interface will be either DR Other, Backup or
  1755.                     DR.
  1756.  
  1757.  
  1758.          State(s):  Waiting
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764. Moy                                                            [Page 63]
  1765.  
  1766. RFC 1583                     OSPF Version 2                   March 1994
  1767.  
  1768.  
  1769.             Event:  WaitTimer
  1770.  
  1771.         New state:  Depends upon action routine.
  1772.  
  1773.            Action:  Calculate the attached network's Backup Designated
  1774.                     Router and Designated Router, as shown in Section
  1775.                     9.4.  As a result of this calculation, the new state
  1776.                     of the interface will be either DR Other, Backup or
  1777.                     DR.
  1778.  
  1779.  
  1780.          State(s):  DR Other, Backup or DR
  1781.  
  1782.             Event:  NeighborChange
  1783.  
  1784.         New state:  Depends upon action routine.
  1785.  
  1786.            Action:  Recalculate the attached network's Backup Designated
  1787.                     Router and Designated Router, as shown in Section
  1788.                     9.4.  As a result of this calculation, the new state
  1789.                     of the interface will be either DR Other, Backup or
  1790.                     DR.
  1791.  
  1792.  
  1793.          State(s):  Any State
  1794.  
  1795.             Event:  InterfaceDown
  1796.  
  1797.         New state:  Down
  1798.  
  1799.            Action:  All interface variables are reset, and interface
  1800.                     timers disabled.  Also, all neighbor connections
  1801.                     associated with the interface are destroyed.  This
  1802.                     is done by generating the event KillNbr on all
  1803.                     associated neighbors (see Section 10.2).
  1804.  
  1805.  
  1806.          State(s):  Any State
  1807.  
  1808.             Event:  LoopInd
  1809.  
  1810.         New state:  Loopback
  1811.  
  1812.            Action:  Since this interface is no longer connected to the
  1813.                     attached network the actions associated with the
  1814.                     above InterfaceDown event are executed.
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820. Moy                                                            [Page 64]
  1821.  
  1822. RFC 1583                     OSPF Version 2                   March 1994
  1823.  
  1824.  
  1825.          State(s):  Loopback
  1826.  
  1827.             Event:  UnloopInd
  1828.  
  1829.         New state:  Down
  1830.  
  1831.            Action:  No actions are necessary.  For example, the
  1832.                     interface variables have already been reset upon
  1833.                     entering the Loopback state.  Note that reception of
  1834.                     an InterfaceUp event is necessary before the
  1835.                     interface again becomes fully functional.
  1836.  
  1837.  
  1838.     9.4.  Electing the Designated Router
  1839.  
  1840.         This section describes the algorithm used for calculating a
  1841.         network's Designated Router and Backup Designated Router.  This
  1842.         algorithm is invoked by the Interface state machine.  The
  1843.         initial time a router runs the election algorithm for a network,
  1844.         the network's Designated Router and Backup Designated Router are
  1845.         initialized to 0.0.0.0.  This indicates the lack of both a
  1846.         Designated Router and a Backup Designated Router.
  1847.  
  1848.         The Designated Router election algorithm proceeds as follows:
  1849.         Call the router doing the calculation Router X.  The list of
  1850.         neighbors attached to the network and having established
  1851.         bidirectional communication with Router X is examined.  This
  1852.         list is precisely the collection of Router X's neighbors (on
  1853.         this network) whose state is greater than or equal to 2-Way (see
  1854.         Section 10.1).  Router X itself is also considered to be on the
  1855.         list.  Discard all routers from the list that are ineligible to
  1856.         become Designated Router.  (Routers having Router Priority of 0
  1857.         are ineligible to become Designated Router.)  The following
  1858.         steps are then executed, considering only those routers that
  1859.         remain on the list:
  1860.  
  1861.  
  1862.         (1) Note the current values for the network's Designated Router
  1863.             and Backup Designated Router.  This is used later for
  1864.             comparison purposes.
  1865.  
  1866.         (2) Calculate the new Backup Designated Router for the network
  1867.             as follows.  Only those routers on the list that have not
  1868.             declared themselves to be Designated Router are eligible to
  1869.             become Backup Designated Router.  If one or more of these
  1870.             routers have declared themselves Backup Designated Router
  1871.             (i.e., they are currently listing themselves as Backup
  1872.             Designated Router, but not as Designated Router, in their
  1873.  
  1874.  
  1875.  
  1876. Moy                                                            [Page 65]
  1877.  
  1878. RFC 1583                     OSPF Version 2                   March 1994
  1879.  
  1880.  
  1881.             Hello Packets) the one having highest Router Priority is
  1882.             declared to be Backup Designated Router.  In case of a tie,
  1883.             the one having the highest Router ID is chosen.  If no
  1884.             routers have declared themselves Backup Designated Router,
  1885.             choose the router having highest Router Priority, (again
  1886.             excluding those routers who have declared themselves
  1887.             Designated Router), and again use the Router ID to break
  1888.             ties.
  1889.  
  1890.         (3) Calculate the new Designated Router for the network as
  1891.             follows.  If one or more of the routers have declared
  1892.             themselves Designated Router (i.e., they are currently
  1893.             listing themselves as Designated Router in their Hello
  1894.             Packets) the one having highest Router Priority is declared
  1895.             to be Designated Router.  In case of a tie, the one having
  1896.             the highest Router ID is chosen.  If no routers have
  1897.             declared themselves Designated Router, assign the Designated
  1898.             Router to be the same as the newly elected Backup Designated
  1899.             Router.
  1900.  
  1901.         (4) If Router X is now newly the Designated Router or newly the
  1902.             Backup Designated Router, or is now no longer the Designated
  1903.             Router or no longer the Backup Designated Router, repeat
  1904.             steps 2 and 3, and then proceed to step 5.  For example, if
  1905.             Router X is now the Designated Router, when step 2 is
  1906.             repeated X will no longer be eligible for Backup Designated
  1907.             Router election.  Among other things, this will ensure that
  1908.             no router will declare itself both Backup Designated Router
  1909.             and Designated Router.[5]
  1910.  
  1911.         (5) As a result of these calculations, the router itself may now
  1912.             be Designated Router or Backup Designated Router.  See
  1913.             Sections 7.3 and 7.4 for the additional duties this would
  1914.             entail.  The router's interface state should be set
  1915.             accordingly.  If the router itself is now Designated Router,
  1916.             the new interface state is DR.  If the router itself is now
  1917.             Backup Designated Router, the new interface state is Backup.
  1918.             Otherwise, the new interface state is DR Other.
  1919.  
  1920.         (6) If the attached network is non-broadcast, and the router
  1921.             itself has just become either Designated Router or Backup
  1922.             Designated Router, it must start sending Hello Packets to
  1923.             those neighbors that are not eligible to become Designated
  1924.             Router (see Section 9.5.1).  This is done by invoking the
  1925.             neighbor event Start for each neighbor having a Router
  1926.             Priority of 0.
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932. Moy                                                            [Page 66]
  1933.  
  1934. RFC 1583                     OSPF Version 2                   March 1994
  1935.  
  1936.  
  1937.         (7) If the above calculations have caused the identity of either
  1938.             the Designated Router or Backup Designated Router to change,
  1939.             the set of adjacencies associated with this interface will
  1940.             need to be modified.  Some adjacencies may need to be
  1941.             formed, and others may need to be broken.  To accomplish
  1942.             this, invoke the event AdjOK?  on all neighbors whose state
  1943.             is at least 2-Way.  This will cause their eligibility for
  1944.             adjacency to be reexamined (see Sections 10.3 and 10.4).
  1945.  
  1946.  
  1947.         The reason behind the election algorithm's complexity is the
  1948.         desire for an orderly transition from Backup Designated Router
  1949.         to Designated Router, when the current Designated Router fails.
  1950.         This orderly transition is ensured through the introduction of
  1951.         hysteresis: no new Backup Designated Router can be chosen until
  1952.         the old Backup accepts its new Designated Router
  1953.         responsibilities.
  1954.  
  1955.         The above procedure may elect the same router to be both
  1956.         Designated Router and Backup Designated Router, although that
  1957.         router will never be the calculating router (Router X) itself.
  1958.         The elected Designated Router may not be the router having the
  1959.         highest Router Priority, nor will the Backup Designated Router
  1960.         necessarily have the second highest Router Priority.  If Router
  1961.         X is not itself eligible to become Designated Router, it is
  1962.         possible that neither a Backup Designated Router nor a
  1963.         Designated Router will be selected in the above procedure.  Note
  1964.         also that if Router X is the only attached router that is
  1965.         eligible to become Designated Router, it will select itself as
  1966.         Designated Router and there will be no Backup Designated Router
  1967.         for the network.
  1968.  
  1969.  
  1970.     9.5.  Sending Hello packets
  1971.  
  1972.         Hello packets are sent out each functioning router interface.
  1973.         They are used to discover and maintain neighbor
  1974.         relationships.[6] On multi-access networks, Hello Packets are
  1975.         also used to elect the Designated Router and Backup Designated
  1976.         Router, and in that way determine what adjacencies should be
  1977.         formed.
  1978.  
  1979.         The format of an Hello packet is detailed in Section A.3.2.  The
  1980.         Hello Packet contains the router's Router Priority (used in
  1981.         choosing the Designated Router), and the interval between Hello
  1982.         Packets sent out the interface (HelloInterval).  The Hello
  1983.         Packet also indicates how often a neighbor must be heard from to
  1984.         remain active (RouterDeadInterval).  Both HelloInterval and
  1985.  
  1986.  
  1987.  
  1988. Moy                                                            [Page 67]
  1989.  
  1990. RFC 1583                     OSPF Version 2                   March 1994
  1991.  
  1992.  
  1993.         RouterDeadInterval must be the same for all routers attached to
  1994.         a common network.  The Hello packet also contains the IP address
  1995.         mask of the attached network (Network Mask).  On unnumbered
  1996.         point-to-point networks and on virtual links this field should
  1997.         be set to 0.0.0.0.
  1998.  
  1999.         The Hello packet's Options field describes the router's optional
  2000.         OSPF capabilities.  There are currently two optional
  2001.         capabilities defined (see Sections 4.5 and A.2).  The T-bit of
  2002.         the Options field should be set if the router is capable of
  2003.         calculating separate routes for each IP TOS.  The E-bit should
  2004.         be set if and only if the attached area is capable of processing
  2005.         AS external advertisements (i.e., it is not a stub area).  If
  2006.         the E-bit is set incorrectly the neighboring routers will refuse
  2007.         to accept the Hello Packet (see Section 10.5).  The rest of the
  2008.         Hello Packet's Options field should be set to zero.
  2009.  
  2010.         In order to ensure two-way communication between adjacent
  2011.         routers, the Hello packet contains the list of all routers from
  2012.         which Hello Packets have been seen recently.  The Hello packet
  2013.         also contains the router's current choice for Designated Router
  2014.         and Backup Designated Router.  A value of 0.0.0.0 in these
  2015.         fields means that one has not yet been selected.
  2016.  
  2017.         On broadcast networks and physical point-to-point networks,
  2018.         Hello packets are sent every HelloInterval seconds to the IP
  2019.         multicast address AllSPFRouters.  On virtual links, Hello
  2020.         packets are sent as unicasts (addressed directly to the other
  2021.         end of the virtual link) every HelloInterval seconds.  On non-
  2022.         broadcast networks, the sending of Hello packets is more
  2023.         complicated.  This will be covered in the next section.
  2024.  
  2025.  
  2026.         9.5.1.  Sending Hello packets on non-broadcast networks
  2027.  
  2028.             Static configuration information is necessary in order for
  2029.             the Hello Protocol to function on non-broadcast networks
  2030.             (see Section C.5).  Every attached router which is eligible
  2031.             to become Designated Router has a configured list of all of
  2032.             its neighbors on the network.  Each listed neighbor is
  2033.             labelled with its Designated Router eligibility.
  2034.  
  2035.             The interface state must be at least Waiting for any Hello
  2036.             Packets to be sent.  Hello Packets are then sent directly
  2037.             (as unicasts) to some subset of a router's neighbors.
  2038.             Sometimes an Hello Packet is sent periodically on a timer;
  2039.             at other times it is sent as a response to a received Hello
  2040.             Packet.  A router's hello-sending behavior varies depending
  2041.  
  2042.  
  2043.  
  2044. Moy                                                            [Page 68]
  2045.  
  2046. RFC 1583                     OSPF Version 2                   March 1994
  2047.  
  2048.  
  2049.             on whether the router itself is eligible to become
  2050.             Designated Router.
  2051.  
  2052.             If the router is eligible to become Designated Router, it
  2053.             must periodically send Hello Packets to all neighbors that
  2054.             are also eligible.  In addition, if the router is itself the
  2055.             Designated Router or Backup Designated Router, it must also
  2056.             send periodic Hello Packets to all other neighbors.  This
  2057.             means that any two eligible routers are always exchanging
  2058.             Hello Packets, which is necessary for the correct operation
  2059.             of the Designated Router election algorithm.  To minimize
  2060.             the number of Hello Packets sent, the number of eligible
  2061.             routers on a non-broadcast network should be kept small.
  2062.  
  2063.             If the router is not eligible to become Designated Router,
  2064.             it must periodically send Hello Packets to both the
  2065.             Designated Router and the Backup Designated Router (if they
  2066.             exist).  It must also send an Hello Packet in reply to an
  2067.             Hello Packet received from any eligible neighbor (other than
  2068.             the current Designated Router and Backup Designated Router).
  2069.             This is needed to establish an initial bidirectional
  2070.             relationship with any potential Designated Router.
  2071.  
  2072.             When sending Hello packets periodically to any neighbor, the
  2073.             interval between Hello Packets is determined by the
  2074.             neighbor's state.  If the neighbor is in state Down, Hello
  2075.             Packets are sent every PollInterval seconds.  Otherwise,
  2076.             Hello Packets are sent every HelloInterval seconds.
  2077.  
  2078.  
  2079. 10.  The Neighbor Data Structure
  2080.  
  2081.     An OSPF router converses with its neighboring routers.  Each
  2082.     separate conversation is described by a "neighbor data structure".
  2083.     Each conversation is bound to a particular OSPF router interface,
  2084.     and is identified either by the neighboring router's OSPF Router ID
  2085.     or by its Neighbor IP address (see below).  Thus if the OSPF router
  2086.     and another router have multiple attached networks in common,
  2087.     multiple conversations ensue, each described by a unique neighbor
  2088.     data structure.  Each separate conversation is loosely referred to
  2089.     in the text as being a separate "neighbor".
  2090.  
  2091.     The neighbor data structure contains all information pertinent to
  2092.     the forming or formed adjacency between the two neighbors.
  2093.     (However, remember that not all neighbors become adjacent.)  An
  2094.     adjacency can be viewed as a highly developed conversation between
  2095.     two routers.
  2096.  
  2097.  
  2098.  
  2099.  
  2100. Moy                                                            [Page 69]
  2101.  
  2102. RFC 1583                     OSPF Version 2                   March 1994
  2103.  
  2104.  
  2105.     State
  2106.         The functional level of the neighbor conversation.  This is
  2107.         described in more detail in Section 10.1.
  2108.  
  2109.     Inactivity Timer
  2110.         A single shot timer whose firing indicates that no Hello Packet
  2111.         has been seen from this neighbor recently.  The length of the
  2112.         timer is RouterDeadInterval seconds.
  2113.  
  2114.     Master/Slave
  2115.         When the two neighbors are exchanging databases, they form a
  2116.         master/slave relationship.  The master sends the first Database
  2117.         Description Packet, and is the only part that is allowed to
  2118.         retransmit.  The slave can only respond to the master's Database
  2119.         Description Packets.  The master/slave relationship is
  2120.         negotiated in state ExStart.
  2121.  
  2122.     DD Sequence Number
  2123.         A 32-bit number identifying individual Database Description
  2124.         packets.  When the neighbor state ExStart is entered, the DD
  2125.         sequence number should be set to a value not previously seen by
  2126.         the neighboring router.  One possible scheme is to use the
  2127.         machine's time of day counter.  The DD sequence number is then
  2128.         incremented by the master with each new Database Description
  2129.         packet sent.  The slave's DD sequence number indicates the last
  2130.         packet received from the master.  Only one packet is allowed
  2131.         outstanding at a time.
  2132.  
  2133.     Neighbor ID
  2134.         The OSPF Router ID of the neighboring router.  The Neighbor ID
  2135.         is learned when Hello packets are received from the neighbor, or
  2136.         is configured if this is a virtual adjacency (see Section C.4).
  2137.  
  2138.     Neighbor Priority
  2139.         The Router Priority of the neighboring router.  Contained in the
  2140.         neighbor's Hello packets, this item is used when selecting the
  2141.         Designated Router for the attached network.
  2142.  
  2143.     Neighbor IP address
  2144.         The IP address of the neighboring router's interface to the
  2145.         attached network.  Used as the Destination IP address when
  2146.         protocol packets are sent as unicasts along this adjacency.
  2147.         Also used in router links advertisements as the Link ID for the
  2148.         attached network if the neighboring router is selected to be
  2149.         Designated Router (see Section 12.4.1).  The Neighbor IP address
  2150.         is learned when Hello packets are received from the neighbor.
  2151.         For virtual links, the Neighbor IP address is learned during the
  2152.         routing table build process (see Section 15).
  2153.  
  2154.  
  2155.  
  2156. Moy                                                            [Page 70]
  2157.  
  2158. RFC 1583                     OSPF Version 2                   March 1994
  2159.  
  2160.  
  2161.     Neighbor Options
  2162.         The optional OSPF capabilities supported by the neighbor.
  2163.         Learned during the Database Exchange process (see Section 10.6).
  2164.         The neighbor's optional OSPF capabilities are also listed in its
  2165.         Hello packets.  This enables received Hello Packets to be
  2166.         rejected (i.e., neighbor relationships will not even start to
  2167.         form) if there is a mismatch in certain crucial OSPF
  2168.         capabilities (see Section 10.5).  The optional OSPF capabilities
  2169.         are documented in Section 4.5.
  2170.  
  2171.     Neighbor's Designated Router
  2172.         The neighbor's idea of the Designated Router.  If this is the
  2173.         neighbor itself, this is important in the local calculation of
  2174.         the Designated Router.  Defined only on multi-access networks.
  2175.  
  2176.     Neighbor's Backup Designated Router
  2177.         The neighbor's idea of the Backup Designated Router.  If this is
  2178.         the neighbor itself, this is important in the local calculation
  2179.         of the Backup Designated Router.  Defined only on multi-access
  2180.         networks.
  2181.  
  2182.  
  2183.     The next set of variables are lists of link state advertisements.
  2184.     These lists describe subsets of the area topological database.
  2185.     There can be five distinct types of link state advertisements in an
  2186.     area topological database: router links, network links, and Type 3
  2187.     and 4 summary links (all stored in the area data structure), and AS
  2188.     external links (stored in the global data structure).
  2189.  
  2190.  
  2191.     Link state retransmission list
  2192.         The list of link state advertisements that have been flooded but
  2193.         not acknowledged on this adjacency.  These will be retransmitted
  2194.         at intervals until they are acknowledged, or until the adjacency
  2195.         is destroyed.
  2196.  
  2197.     Database summary list
  2198.         The complete list of link state advertisements that make up the
  2199.         area topological database, at the moment the neighbor goes into
  2200.         Database Exchange state.  This list is sent to the neighbor in
  2201.         Database Description packets.
  2202.  
  2203.     Link state request list
  2204.         The list of link state advertisements that need to be received
  2205.         from this neighbor in order to synchronize the two neighbors'
  2206.         topological databases.  This list is created as Database
  2207.         Description packets are received, and is then sent to the
  2208.         neighbor in Link State Request packets.  The list is depleted as
  2209.  
  2210.  
  2211.  
  2212. Moy                                                            [Page 71]
  2213.  
  2214. RFC 1583                     OSPF Version 2                   March 1994
  2215.  
  2216.  
  2217.         appropriate Link State Update packets are received.
  2218.  
  2219.  
  2220.     10.1.  Neighbor states
  2221.  
  2222.         The state of a neighbor (really, the state of a conversation
  2223.         being held with a neighboring router) is documented in the
  2224.         following sections.  The states are listed in order of
  2225.         progressing functionality.  For example, the inoperative state
  2226.         is listed first, followed by a list of intermediate states
  2227.         before the final, fully functional state is achieved.  The
  2228.         specification makes use of this ordering by sometimes making
  2229.         references such as "those neighbors/adjacencies in state greater
  2230.         than X".  Figures 12 and 13 show the graph of neighbor state
  2231.         changes.  The arcs of the graphs are labelled with the event
  2232.         causing the state change.  The neighbor events are documented in
  2233.         Section 10.2.
  2234.  
  2235.         The graph in Figure 12 shows the state changes effected by the
  2236.         Hello Protocol.  The Hello Protocol is responsible for neighbor
  2237.  
  2238.                                    +----+
  2239.                                    |Down|
  2240.                                    +----+
  2241.                                      |                               | Start
  2242.                                      |        +-------+
  2243.                              Hello   |   +---->|Attempt|
  2244.                             Received |         +-------+
  2245.                                      |             |
  2246.                              +----+<-+             |HelloReceived
  2247.                              |Init|<---------------+
  2248.                              +----+<--------+
  2249.                                 |           |
  2250.                                 |2-Way      |1-Way
  2251.                                 |Received   |Received
  2252.                                 |           |
  2253.               +-------+         |        +-----+
  2254.               |ExStart|<--------+------->|2-Way|
  2255.               +-------+                  +-----+
  2256.  
  2257.               Figure 12: Neighbor state changes (Hello Protocol)
  2258.  
  2259.                   In addition to the state transitions pictured,
  2260.                   Event KillNbr always forces Down State,
  2261.                   Event InactivityTimer always forces Down State,
  2262.                   Event LLDown always forces Down State
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268. Moy                                                            [Page 72]
  2269.  
  2270. RFC 1583                     OSPF Version 2                   March 1994
  2271.  
  2272.  
  2273.         acquisition and maintenance, and for ensuring two way
  2274.         communication between neighbors.
  2275.  
  2276.         The graph in Figure 13 shows the forming of an adjacency.  Not
  2277.         every two neighboring routers become adjacent (see Section
  2278.         10.4).  The adjacency starts to form when the neighbor is in
  2279.         state ExStart.  After the two routers discover their
  2280.         master/slave status, the state transitions to Exchange.  At this
  2281.         point the neighbor starts to be used in the flooding procedure,
  2282.         and the two neighboring routers begin synchronizing their
  2283.         databases.  When this synchronization is finished, the neighbor
  2284.         is in state Full and we say that the two routers are fully
  2285.         adjacent.  At this point the adjacency is listed in link state
  2286.         advertisements.
  2287.  
  2288.         For a more detailed description of neighbor state changes,
  2289.         together with the additional actions involved in each change,
  2290.         see Section 10.3.
  2291.  
  2292.                                   +-------+
  2293.                                   |ExStart|
  2294.                                   +-------+
  2295.                                     |
  2296.                      NegotiationDone|
  2297.                                     +->+--------+
  2298.                                        |Exchange|
  2299.                                     +--+--------+
  2300.                                     |
  2301.                             Exchange|
  2302.                               Done  |
  2303.                     +----+          |      +-------+
  2304.                     |Full|<---------+----->|Loading|
  2305.                     +----+<-+              +-------+
  2306.                             |  LoadingDone     |
  2307.                             +------------------+
  2308.  
  2309.             Figure 13: Neighbor state changes (Database Exchange)
  2310.  
  2311.                 In addition to the state transitions pictured,
  2312.                 Event SeqNumberMismatch forces ExStart state,
  2313.                 Event BadLSReq forces ExStart state,
  2314.                 Event 1-Way forces Init state,
  2315.                 Event KillNbr always forces Down State,
  2316.                 Event InactivityTimer always forces Down State,
  2317.                 Event LLDown always forces Down State,
  2318.                 Event AdjOK? leads to adjacency forming/breaking
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324. Moy                                                            [Page 73]
  2325.  
  2326. RFC 1583                     OSPF Version 2                   March 1994
  2327.  
  2328.  
  2329.         Down
  2330.             This is the initial state of a neighbor conversation.  It
  2331.             indicates that there has been no recent information received
  2332.             from the neighbor.  On non-broadcast networks, Hello packets
  2333.             may still be sent to "Down" neighbors, although at a reduced
  2334.             frequency (see Section 9.5.1).
  2335.  
  2336.         Attempt
  2337.             This state is only valid for neighbors attached to non-
  2338.             broadcast networks.  It indicates that no recent information
  2339.             has been received from the neighbor, but that a more
  2340.             concerted effort should be made to contact the neighbor.
  2341.             This is done by sending the neighbor Hello packets at
  2342.             intervals of HelloInterval (see Section 9.5.1).
  2343.  
  2344.         Init
  2345.             In this state, an Hello packet has recently been seen from
  2346.             the neighbor.  However, bidirectional communication has not
  2347.             yet been established with the neighbor (i.e., the router
  2348.             itself did not appear in the neighbor's Hello packet).  All
  2349.             neighbors in this state (or higher) are listed in the Hello
  2350.             packets sent from the associated interface.
  2351.  
  2352.         2-Way
  2353.             In this state, communication between the two routers is
  2354.             bidirectional.  This has been assured by the operation of
  2355.             the Hello Protocol.  This is the most advanced state short
  2356.             of beginning adjacency establishment.  The (Backup)
  2357.             Designated Router is selected from the set of neighbors in
  2358.             state 2-Way or greater.
  2359.  
  2360.         ExStart
  2361.             This is the first step in creating an adjacency between the
  2362.             two neighboring routers.  The goal of this step is to decide
  2363.             which router is the master, and to decide upon the initial
  2364.             DD sequence number.  Neighbor conversations in this state or
  2365.             greater are called adjacencies.
  2366.  
  2367.         Exchange
  2368.             In this state the router is describing its entire link state
  2369.             database by sending Database Description packets to the
  2370.             neighbor.  Each Database Description Packet has a DD
  2371.             sequence number, and is explicitly acknowledged.  Only one
  2372.             Database Description Packet is allowed outstanding at any
  2373.             one time.  In this state, Link State Request Packets may
  2374.             also be sent asking for the neighbor's more recent
  2375.             advertisements.  All adjacencies in Exchange state or
  2376.             greater are used by the flooding procedure.  In fact, these
  2377.  
  2378.  
  2379.  
  2380. Moy                                                            [Page 74]
  2381.  
  2382. RFC 1583                     OSPF Version 2                   March 1994
  2383.  
  2384.  
  2385.             adjacencies are fully capable of transmitting and receiving
  2386.             all types of OSPF routing protocol packets.
  2387.  
  2388.         Loading
  2389.             In this state, Link State Request packets are sent to the
  2390.             neighbor asking for the more recent advertisements that have
  2391.             been discovered (but not yet received) in the Exchange
  2392.             state.
  2393.  
  2394.         Full
  2395.             In this state, the neighboring routers are fully adjacent.
  2396.             These adjacencies will now appear in router links and
  2397.             network links advertisements.
  2398.  
  2399.  
  2400.     10.2.  Events causing neighbor state changes
  2401.  
  2402.         State changes can be effected by a number of events.  These
  2403.         events are shown in the labels of the arcs in Figures 12 and 13.
  2404.         The label definitions are as follows:
  2405.  
  2406.  
  2407.         HelloReceived
  2408.             A Hello packet has been received from a neighbor.
  2409.  
  2410.         Start
  2411.             This is an indication that Hello Packets should now be sent
  2412.             to the neighbor at intervals of HelloInterval seconds.  This
  2413.             event is generated only for neighbors associated with non-
  2414.             broadcast networks.
  2415.  
  2416.         2-WayReceived
  2417.             Bidirectional communication has been realized between the
  2418.             two neighboring routers.  This is indicated by this router
  2419.             seeing itself in the other's Hello packet.
  2420.  
  2421.         NegotiationDone
  2422.             The Master/Slave relationship has been negotiated, and DD
  2423.             sequence numbers have been exchanged.  This signals the
  2424.             start of the sending/receiving of Database Description
  2425.             packets.  For more information on the generation of this
  2426.             event, consult Section 10.8.
  2427.  
  2428.         ExchangeDone
  2429.             Both routers have successfully transmitted a full sequence
  2430.             of Database Description packets.  Each router now knows what
  2431.             parts of its link state database are out of date.  For more
  2432.             information on the generation of this event, consult Section
  2433.  
  2434.  
  2435.  
  2436. Moy                                                            [Page 75]
  2437.  
  2438. RFC 1583                     OSPF Version 2                   March 1994
  2439.  
  2440.  
  2441.             10.8.
  2442.  
  2443.         BadLSReq
  2444.             A Link State Request has been received for a link state
  2445.             advertisement not contained in the database.  This indicates
  2446.             an error in the Database Exchange process.
  2447.  
  2448.         Loading Done
  2449.             Link State Updates have been received for all out-of-date
  2450.             portions of the database.  This is indicated by the Link
  2451.             state request list becoming empty after the Database
  2452.             Exchange process has completed.
  2453.  
  2454.         AdjOK?
  2455.             A decision must be made (again) as to whether an adjacency
  2456.             should be established/maintained with the neighbor.  This
  2457.             event will start some adjacencies forming, and destroy
  2458.             others.
  2459.  
  2460.  
  2461.         The following events cause well developed neighbors to revert to
  2462.         lesser states.  Unlike the above events, these events may occur
  2463.         when the neighbor conversation is in any of a number of states.
  2464.  
  2465.  
  2466.         SeqNumberMismatch
  2467.             A Database Description packet has been received that either
  2468.             a) has an unexpected DD sequence number, b) unexpectedly has
  2469.             the Init bit set or c) has an Options field differing from
  2470.             the last Options field received in a Database Description
  2471.             packet.  Any of these conditions indicate that some error
  2472.             has occurred during adjacency establishment.
  2473.  
  2474.         1-Way
  2475.             An Hello packet has been received from the neighbor, in
  2476.             which this router is not mentioned.  This indicates that
  2477.             communication with the neighbor is not bidirectional.
  2478.  
  2479.         KillNbr
  2480.             This  is  an  indication that  all  communication  with  the
  2481.             neighbor  is now  impossible,  forcing  the  neighbor  to
  2482.             revert  to  Down  state.
  2483.  
  2484.         InactivityTimer
  2485.             The inactivity Timer has fired.  This means that no Hello
  2486.             packets have been seen recently from the neighbor.  The
  2487.             neighbor reverts to Down state.
  2488.  
  2489.  
  2490.  
  2491.  
  2492. Moy                                                            [Page 76]
  2493.  
  2494. RFC 1583                     OSPF Version 2                   March 1994
  2495.  
  2496.  
  2497.         LLDown
  2498.             This is an indication from the lower level protocols that
  2499.             the neighbor is now unreachable.  For example, on an X.25
  2500.             network this could be indicated by an X.25 clear indication
  2501.             with appropriate cause and diagnostic fields.  This event
  2502.             forces the neighbor into Down state.
  2503.  
  2504.  
  2505.     10.3.  The Neighbor state machine
  2506.  
  2507.         A detailed description of the neighbor state changes follows.
  2508.         Each state change is invoked by an event (Section 10.2).  This
  2509.         event may produce different effects, depending on the current
  2510.         state of the neighbor.  For this reason, the state machine below
  2511.         is organized by current neighbor state and received event.  Each
  2512.         entry in the state machine describes the resulting new neighbor
  2513.         state and the required set of additional actions.
  2514.  
  2515.         When a neighbor's state changes, it may be necessary to rerun
  2516.         the Designated Router election algorithm.  This is determined by
  2517.         whether the interface NeighborChange event is generated (see
  2518.         Section 9.2).  Also, if the Interface is in DR state (the router
  2519.         is itself Designated Router), changes in neighbor state may
  2520.         cause a new network links advertisement to be originated (see
  2521.         Section 12.4).
  2522.  
  2523.         When the neighbor state machine needs to invoke the interface
  2524.         state machine, it should be done as a scheduled task (see
  2525.         Section 4.4).  This simplifies things, by ensuring that neither
  2526.         state machine will be executed recursively.
  2527.  
  2528.  
  2529.          State(s):  Down
  2530.  
  2531.             Event:  Start
  2532.  
  2533.         New state:  Attempt
  2534.  
  2535.            Action:  Send an Hello Packet to the neighbor (this neighbor
  2536.                     is always associated with a non-broadcast network)
  2537.                     and start the Inactivity Timer for the neighbor.
  2538.                     The timer's later firing would indicate that
  2539.                     communication with the neighbor was not attained.
  2540.  
  2541.  
  2542.          State(s):  Attempt
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548. Moy                                                            [Page 77]
  2549.  
  2550. RFC 1583                     OSPF Version 2                   March 1994
  2551.  
  2552.  
  2553.             Event:  HelloReceived
  2554.  
  2555.         New state:  Init
  2556.  
  2557.            Action:  Restart the Inactivity Timer for the neighbor, since
  2558.                     the neighbor has now been heard from.
  2559.  
  2560.  
  2561.          State(s):  Down
  2562.  
  2563.             Event:  HelloReceived
  2564.  
  2565.         New state:  Init
  2566.  
  2567.            Action:  Start the Inactivity Timer for the neighbor.  The
  2568.                     timer's later firing would indicate that the
  2569.                     neighbor is dead.
  2570.  
  2571.  
  2572.          State(s):  Init or greater
  2573.  
  2574.             Event:  HelloReceived
  2575.  
  2576.         New state:  No state change.
  2577.  
  2578.            Action:  Restart the Inactivity Timer for the neighbor, since
  2579.                     the neighbor has again been heard from.
  2580.  
  2581.  
  2582.          State(s):  Init
  2583.  
  2584.             Event:  2-WayReceived
  2585.  
  2586.         New state:  Depends upon action routine.
  2587.  
  2588.            Action:  Determine whether an adjacency should be established
  2589.                     with the neighbor (see Section 10.4).  If not, the
  2590.                     new neighbor state is 2-Way.
  2591.  
  2592.                     Otherwise (an adjacency should be established) the
  2593.                     neighbor state transitions to ExStart.  Upon
  2594.                     entering this state, the router increments the DD
  2595.                     sequence number for this neighbor.  If this is the
  2596.                     first time that an adjacency has been attempted, the
  2597.                     DD sequence number should be assigned some unique
  2598.                     value (like the time of day clock).  It then
  2599.                     declares itself master (sets the master/slave bit to
  2600.                     master), and starts sending Database Description
  2601.  
  2602.  
  2603.  
  2604. Moy                                                            [Page 78]
  2605.  
  2606. RFC 1583                     OSPF Version 2                   March 1994
  2607.  
  2608.  
  2609.                     Packets, with the initialize (I), more (M) and
  2610.                     master (MS) bits set.  This Database Description
  2611.                     Packet should be otherwise empty.  This Database
  2612.                     Description Packet should be retransmitted at
  2613.                     intervals of RxmtInterval until the next state is
  2614.                     entered (see Section 10.8).
  2615.  
  2616.  
  2617.          State(s):  ExStart
  2618.  
  2619.             Event:  NegotiationDone
  2620.  
  2621.         New state:  Exchange
  2622.  
  2623.            Action:  The router must list the contents of its entire area
  2624.                     link state database in the neighbor Database summary
  2625.                     list.  The area link state database consists of the
  2626.                     router links, network links and summary links
  2627.                     contained in the area structure, along with the AS
  2628.                     external links contained in the global structure.
  2629.                     AS external link advertisements are omitted from a
  2630.                     virtual neighbor's Database summary list.  AS
  2631.                     external advertisements are omitted from the
  2632.                     Database summary list if the area has been
  2633.                     configured as a stub (see Section 3.6).
  2634.                     Advertisements whose age is equal to MaxAge are
  2635.                     instead added to the neighbor's Link state
  2636.                     retransmission list.  A summary of the Database
  2637.                     summary list will be sent to the neighbor in
  2638.                     Database Description packets.  Each Database
  2639.                     Description Packet has a DD sequence number, and is
  2640.                     explicitly acknowledged.  Only one Database
  2641.                     Description Packet is allowed outstanding at any one
  2642.                     time.  For more detail on the sending and receiving
  2643.                     of Database Description packets, see Sections 10.8
  2644.                     and 10.6.
  2645.  
  2646.  
  2647.          State(s):  Exchange
  2648.  
  2649.             Event:  ExchangeDone
  2650.  
  2651.         New state:  Depends upon action routine.
  2652.  
  2653.            Action:  If the neighbor Link state request list is empty,
  2654.                     the new neighbor state is Full.  No other action is
  2655.                     required.  This is an adjacency's final state.
  2656.  
  2657.  
  2658.  
  2659.  
  2660. Moy                                                            [Page 79]
  2661.  
  2662. RFC 1583                     OSPF Version 2                   March 1994
  2663.  
  2664.  
  2665.                     Otherwise, the new neighbor state is Loading.  Start
  2666.                     (or continue) sending Link State Request packets to
  2667.                     the neighbor (see Section 10.9).  These are requests
  2668.                     for the neighbor's more recent advertisements (which
  2669.                     were discovered but not yet received in the Exchange
  2670.                     state).  These advertisements are listed in the Link
  2671.                     state request list associated with the neighbor.
  2672.  
  2673.  
  2674.          State(s):  Loading
  2675.  
  2676.             Event:  Loading Done
  2677.  
  2678.         New state:  Full
  2679.  
  2680.            Action:  No action required.  This is an adjacency's final
  2681.                     state.
  2682.  
  2683.  
  2684.          State(s):  2-Way
  2685.  
  2686.             Event:  AdjOK?
  2687.  
  2688.         New state:  Depends upon action routine.
  2689.  
  2690.            Action:  Determine whether an adjacency should be formed with
  2691.                     the neighboring router (see Section 10.4).  If not,
  2692.                     the neighbor state remains at 2-Way.  Otherwise,
  2693.                     transition the neighbor state to ExStart and perform
  2694.                     the actions associated with the above state machine
  2695.                     entry for state Init and event 2-WayReceived.
  2696.  
  2697.  
  2698.          State(s):  ExStart or greater
  2699.  
  2700.             Event:  AdjOK?
  2701.  
  2702.         New state:  Depends upon action routine.
  2703.  
  2704.            Action:  Determine whether the neighboring router should
  2705.                     still be adjacent.  If yes, there is no state change
  2706.                     and no further action is necessary.
  2707.  
  2708.                     Otherwise, the (possibly partially formed) adjacency
  2709.                     must be destroyed.  The neighbor state transitions
  2710.                     to 2-Way.  The Link state retransmission list,
  2711.                     Database summary list and Link state request list
  2712.                     are cleared of link state advertisements.
  2713.  
  2714.  
  2715.  
  2716. Moy                                                            [Page 80]
  2717.  
  2718. RFC 1583                     OSPF Version 2                   March 1994
  2719.  
  2720.  
  2721.          State(s):  Exchange or greater
  2722.  
  2723.             Event:  SeqNumberMismatch
  2724.  
  2725.         New state:  ExStart
  2726.  
  2727.            Action:  The (possibly partially formed) adjacency is torn
  2728.                     down, and then an attempt is made at
  2729.                     reestablishment.  The neighbor state first
  2730.                     transitions to ExStart.  The Link state
  2731.                     retransmission list, Database summary list and Link
  2732.                     state request list are cleared of link state
  2733.                     advertisements.  Then the router increments the DD
  2734.                     sequence number for this neighbor, declares itself
  2735.                     master (sets the master/slave bit to master), and
  2736.                     starts sending Database Description Packets, with
  2737.                     the initialize (I), more (M) and master (MS) bits
  2738.                     set.  This Database Description Packet should be
  2739.                     otherwise empty (see Section 10.8).
  2740.  
  2741.  
  2742.          State(s):  Exchange or greater
  2743.  
  2744.             Event:  BadLSReq
  2745.  
  2746.         New state:  ExStart
  2747.  
  2748.            Action:  The action for event BadLSReq is exactly the same as
  2749.                     for the neighbor event SeqNumberMismatch.  The
  2750.                     (possibly partially formed) adjacency is torn down,
  2751.                     and then an attempt is made at reestablishment.  For
  2752.                     more information, see the neighbor state machine
  2753.                     entry that is invoked when event SeqNumberMismatch
  2754.                     is generated in state Exchange or greater.
  2755.  
  2756.  
  2757.          State(s):  Any state
  2758.  
  2759.             Event:  KillNbr
  2760.  
  2761.         New state:  Down
  2762.  
  2763.            Action:  The Link state retransmission list, Database summary
  2764.                     list and Link state request list are cleared of link
  2765.                     state advertisements.  Also, the Inactivity Timer is
  2766.                     disabled.
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772. Moy                                                            [Page 81]
  2773.  
  2774. RFC 1583                     OSPF Version 2                   March 1994
  2775.  
  2776.  
  2777.          State(s):  Any state
  2778.  
  2779.             Event:  LLDown
  2780.  
  2781.         New state:  Down
  2782.  
  2783.            Action:  The Link state retransmission list, Database summary
  2784.                     list and Link state request list are cleared of link
  2785.                     state advertisements.  Also, the Inactivity Timer is
  2786.                     disabled.
  2787.  
  2788.  
  2789.          State(s):  Any state
  2790.  
  2791.             Event:  InactivityTimer
  2792.  
  2793.         New state:  Down
  2794.  
  2795.            Action:  The Link state retransmission list, Database summary
  2796.                     list and Link state request list are cleared of link
  2797.                     state advertisements.
  2798.  
  2799.  
  2800.          State(s):  2-Way or greater
  2801.  
  2802.             Event:  1-WayReceived
  2803.  
  2804.         New state:  Init
  2805.  
  2806.            Action:  The Link state retransmission list, Database summary
  2807.                     list and Link state request list are cleared of link
  2808.                     state advertisements.
  2809.  
  2810.  
  2811.          State(s):  2-Way or greater
  2812.  
  2813.             Event:  2-WayReceived
  2814.  
  2815.         New state:  No state change.
  2816.  
  2817.            Action:  No action required.
  2818.  
  2819.  
  2820.          State(s):  Init
  2821.  
  2822.             Event:  1-WayReceived
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828. Moy                                                            [Page 82]
  2829.  
  2830. RFC 1583                     OSPF Version 2                   March 1994
  2831.  
  2832.  
  2833.         New state:  No state change.
  2834.  
  2835.            Action:  No action required.
  2836.  
  2837.  
  2838.     10.4.  Whether to become adjacent
  2839.  
  2840.         Adjacencies are established with some subset of the router's
  2841.         neighbors.  Routers connected by point-to-point networks and
  2842.         virtual links always become adjacent.  On multi-access networks,
  2843.         all routers become adjacent to both the Designated Router and
  2844.         the Backup Designated Router.
  2845.  
  2846.         The adjacency-forming decision occurs in two places in the
  2847.         neighbor state machine.  First, when bidirectional communication
  2848.         is initially established with the neighbor, and secondly, when
  2849.         the identity of the attached network's (Backup) Designated
  2850.         Router changes.  If the decision is made to not attempt an
  2851.         adjacency, the state of the neighbor communication stops at 2-
  2852.         Way.
  2853.  
  2854.         An adjacency should be established with a bidirectional neighbor
  2855.         when at least one of the following conditions holds:
  2856.  
  2857.  
  2858.         o   The underlying network type is point-to-point
  2859.  
  2860.         o   The underlying network type is virtual link
  2861.  
  2862.         o   The router itself is the Designated Router
  2863.  
  2864.         o   The router itself is the Backup Designated Router
  2865.  
  2866.         o   The neighboring router is the Designated Router
  2867.  
  2868.         o   The neighboring router is the Backup Designated Router
  2869.  
  2870.  
  2871.     10.5.  Receiving Hello Packets
  2872.  
  2873.         This section explains the detailed processing of a received
  2874.         Hello Packet.  (See Section A.3.2 for the format of Hello
  2875.         packets.)  The generic input processing of OSPF packets will
  2876.         have checked the validity of the IP header and the OSPF packet
  2877.         header.  Next, the values of the Network Mask, HelloInterval,
  2878.         and RouterDeadInterval fields in the received Hello packet must
  2879.         be checked against the values configured for the receiving
  2880.         interface.  Any mismatch causes processing to stop and the
  2881.  
  2882.  
  2883.  
  2884. Moy                                                            [Page 83]
  2885.  
  2886. RFC 1583                     OSPF Version 2                   March 1994
  2887.  
  2888.  
  2889.         packet to be dropped.  In other words, the above fields are
  2890.         really describing the attached network's configuration. However,
  2891.         there is one exception to the above rule: on point-to-point
  2892.         networks and on virtual links, the Network Mask in the received
  2893.         Hello Packet should be ignored.
  2894.  
  2895.         The receiving interface attaches to a single OSPF area (this
  2896.         could be the backbone).  The setting of the E-bit found in the
  2897.         Hello Packet's Options field must match this area's
  2898.         ExternalRoutingCapability.  If AS external advertisements are
  2899.         not flooded into/throughout the area (i.e, the area is a "stub")
  2900.         the E-bit must be clear in received Hello Packets, otherwise the
  2901.         E-bit must be set.  A mismatch causes processing to stop and the
  2902.         packet to be dropped.  The setting of the rest of the bits in
  2903.         the Hello Packet's Options field should be ignored.
  2904.  
  2905.         At this point, an attempt is made to match the source of the
  2906.         Hello Packet to one of the receiving interface's neighbors.  If
  2907.         the receiving interface is a multi-access network (either
  2908.         broadcast or non-broadcast) the source is identified by the IP
  2909.         source address found in the Hello's IP header.  If the receiving
  2910.         interface is a point-to-point link or a virtual link, the source
  2911.         is identified by the Router ID found in the Hello's OSPF packet
  2912.         header.  The interface's current list of neighbors is contained
  2913.         in the interface's data structure.  If a matching neighbor
  2914.         structure cannot be found, (i.e., this is the first time the
  2915.         neighbor has been detected), one is created.  The initial state
  2916.         of a newly created neighbor is set to Down.
  2917.  
  2918.         When receiving an Hello Packet from a neighbor on a multi-access
  2919.         network (broadcast or non-broadcast), set the neighbor
  2920.         structure's Neighbor ID equal to the Router ID found in the
  2921.         packet's OSPF header.  When receiving an Hello on a point-to-
  2922.         point network (but not on a virtual link) set the neighbor
  2923.         structure's Neighbor IP address to the packet's IP source
  2924.         address.
  2925.  
  2926.         Now the rest of the Hello Packet is examined, generating events
  2927.         to be given to the neighbor and interface state machines.  These
  2928.         state machines are specified either to be executed or scheduled
  2929.         (see Section 4.4).  For example, by specifying below that the
  2930.         neighbor state machine be executed in line, several neighbor
  2931.         state transitions may be effected by a single received Hello:
  2932.  
  2933.  
  2934.         o   Each Hello Packet causes the neighbor state machine to be
  2935.             executed with the event HelloReceived.
  2936.  
  2937.  
  2938.  
  2939.  
  2940. Moy                                                            [Page 84]
  2941.  
  2942. RFC 1583                     OSPF Version 2                   March 1994
  2943.  
  2944.  
  2945.         o   Then the list of neighbors contained in the Hello Packet is
  2946.             examined.  If the router itself appears in this list, the
  2947.             neighbor state machine should be executed with the event 2-
  2948.             WayReceived.  Otherwise, the neighbor state machine should
  2949.             be executed with the event 1-WayReceived, and the processing
  2950.             of the packet stops.
  2951.  
  2952.         o   Next, the Hello Packet's Router Priority field is examined.
  2953.             If this field is different than the one previously received
  2954.             from the neighbor, the receiving interface's state machine
  2955.             is scheduled with the event NeighborChange.  In any case,
  2956.             the Router Priority field in the neighbor data structure
  2957.             should be updated accordingly.
  2958.  
  2959.         o   Next the Designated Router field in the Hello Packet is
  2960.             examined.  If the neighbor is both declaring itself to be
  2961.             Designated Router (Designated Router field = Neighbor IP
  2962.             address) and the Backup Designated Router field in the
  2963.             packet is equal to 0.0.0.0 and the receiving interface is in
  2964.             state Waiting, the receiving interface's state machine is
  2965.             scheduled with the event BackupSeen.  Otherwise, if the
  2966.             neighbor is declaring itself to be Designated Router and it
  2967.             had not previously, or the neighbor is not declaring itself
  2968.             Designated Router where it had previously, the receiving
  2969.             interface's state machine is scheduled with the event
  2970.             NeighborChange.  In any case, the Neighbors' Designated
  2971.             Router item in the neighbor structure is updated
  2972.             accordingly.
  2973.  
  2974.         o   Finally, the Backup Designated Router field in the Hello
  2975.             Packet is examined.  If the neighbor is declaring itself to
  2976.             be Backup Designated Router (Backup Designated Router field
  2977.             = Neighbor IP address) and the receiving interface is in
  2978.             state Waiting, the receiving interface's state machine is
  2979.             scheduled with the event BackupSeen.  Otherwise, if the
  2980.             neighbor is declaring itself to be Backup Designated Router
  2981.             and it had not previously, or the neighbor is not declaring
  2982.             itself Backup Designated Router where it had previously, the
  2983.             receiving interface's state machine is scheduled with the
  2984.             event NeighborChange.  In any case, the Neighbor's Backup
  2985.             Designated Router item in the neighbor structure is updated
  2986.             accordingly.
  2987.  
  2988.         On non-broadcast multi-access networks, receipt of an Hello
  2989.         Packet may also cause an Hello Packet to be sent back to the
  2990.         neighbor in response. See Section 9.5.1 for more details.
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996. Moy                                                            [Page 85]
  2997.  
  2998. RFC 1583                     OSPF Version 2                   March 1994
  2999.  
  3000.  
  3001.     10.6.  Receiving Database Description Packets
  3002.  
  3003.         This section explains the detailed processing of a received
  3004.         Database Description Packet.  The incoming Database Description
  3005.         Packet has already been associated with a neighbor and receiving
  3006.         interface by the generic input packet processing (Section 8.2).
  3007.         The further processing of the Database Description Packet
  3008.         depends on the neighbor state.  If the neighbor's state is Down
  3009.         or Attempt the packet should be ignored.  Otherwise, if the
  3010.         state is:
  3011.  
  3012.  
  3013.         Init
  3014.             The neighbor state machine should be executed with the event
  3015.             2-WayReceived.  This causes an immediate state change to
  3016.             either state 2-Way or state ExStart. If the new state is
  3017.             ExStart, the processing of the current packet should then
  3018.             continue in this new state by falling through to case
  3019.             ExStart below.
  3020.  
  3021.         2-Way
  3022.             The packet should be ignored.  Database Description Packets
  3023.             are used only for the purpose of bringing up adjacencies.[7]
  3024.  
  3025.         ExStart
  3026.             If the received packet matches one of the following cases,
  3027.             then the neighbor state machine should be executed with the
  3028.             event NegotiationDone (causing the state to transition to
  3029.             Exchange), the packet's Options field should be recorded in
  3030.             the neighbor structure's Neighbor Options field and the
  3031.             packet should be accepted as next in sequence and processed
  3032.             further (see below).  Otherwise, the packet should be
  3033.             ignored.
  3034.  
  3035.             o   The initialize(I), more (M) and master(MS) bits are set,
  3036.                 the contents of the packet are empty, and the neighbor's
  3037.                 Router ID is larger than the router's own.  In this case
  3038.                 the router is now Slave.  Set the master/slave bit to
  3039.                 slave, and set the DD sequence number to that specified
  3040.                 by the master.
  3041.  
  3042.             o   The initialize(I) and master(MS) bits are off, the
  3043.                 packet's DD sequence number equals the router's own DD
  3044.                 sequence number (indicating acknowledgment) and the
  3045.                 neighbor's Router ID is smaller than the router's own.
  3046.                 In this case the router is Master.
  3047.  
  3048.  
  3049.  
  3050.  
  3051.  
  3052. Moy                                                            [Page 86]
  3053.  
  3054. RFC 1583                     OSPF Version 2                   March 1994
  3055.  
  3056.  
  3057.         Exchange
  3058.             If the state of the MS-bit is inconsistent with the
  3059.             master/slave state of the connection, generate the neighbor
  3060.             event SeqNumberMismatch and stop processing the packet.
  3061.             Otherwise:
  3062.  
  3063.             o   If the initialize(I) bit is set, generate the neighbor
  3064.                 event SeqNumberMismatch and stop processing the packet.
  3065.  
  3066.             o   If the packet's Options field indicates a different set
  3067.                 of optional OSPF capabilities than were previously
  3068.                 received from the neighbor (recorded in the Neighbor
  3069.                 Options field of the neighbor structure), generate the
  3070.                 neighbor event SeqNumberMismatch and stop processing the
  3071.                 packet.
  3072.  
  3073.             o   If the router is master, and the packet's DD sequence
  3074.                 number equals the router's own DD sequence number (this
  3075.                 packet is the next in sequence) the packet should be
  3076.                 accepted and its contents processed (below).
  3077.  
  3078.             o   If the router is master, and the packet's DD sequence
  3079.                 number is one less than the router's DD sequence number,
  3080.                 the packet is a duplicate.  Duplicates should be
  3081.                 discarded by the master.
  3082.  
  3083.             o   If the router is slave, and the packet's DD sequence
  3084.                 number is one more than the router's own DD sequence
  3085.                 number (this packet is the next in sequence) the packet
  3086.                 should be accepted and its contents processed (below).
  3087.  
  3088.             o   If the router is slave, and the packet's DD sequence
  3089.                 number is equal to the router's DD sequence number, the
  3090.                 packet is a duplicate.  The slave must respond to
  3091.                 duplicates by repeating the last Database Description
  3092.                 packet that it had sent.
  3093.  
  3094.             o   Else, generate the neighbor event SeqNumberMismatch and
  3095.                 stop processing the packet.
  3096.  
  3097.         Loading or Full
  3098.             In this state, the router has sent and received an entire
  3099.             sequence of Database Description Packets.  The only packets
  3100.             received should be duplicates (see above).  In particular,
  3101.             the packet's Options field should match the set of optional
  3102.             OSPF capabilities previously indicated by the neighbor
  3103.             (stored in the neighbor structure's Neighbor Options field).
  3104.             Any other packets received, including the reception of a
  3105.  
  3106.  
  3107.  
  3108. Moy                                                            [Page 87]
  3109.  
  3110. RFC 1583                     OSPF Version 2                   March 1994
  3111.  
  3112.  
  3113.             packet with the Initialize(I) bit set, should generate the
  3114.             neighbor event SeqNumberMismatch.[8] Duplicates should be
  3115.             discarded by the master.  The slave must respond to
  3116.             duplicates by repeating the last Database Description packet
  3117.             that it had sent.
  3118.  
  3119.  
  3120.         When the router accepts a received Database Description Packet
  3121.         as the next in sequence the packet contents are processed as
  3122.         follows.  For each link state advertisement listed, the
  3123.         advertisement's LS type is checked for validity.  If the LS type
  3124.         is unknown (e.g., not one of the LS types 1-5 defined by this
  3125.         specification), or if this is a AS external advertisement (LS
  3126.         type = 5) and the neighbor is associated with a stub area,
  3127.         generate the neighbor event SeqNumberMismatch and stop
  3128.         processing the packet.  Otherwise, the router looks up the
  3129.         advertisement in its database to see whether it also has an
  3130.         instance of the link state advertisement.  If it does not, or if
  3131.         the database copy is less recent (see Section 13.1), the link
  3132.         state advertisement is put on the Link state request list so
  3133.         that it can be requested (immediately or at some later time) in
  3134.         Link State Request Packets.
  3135.  
  3136.         When the router accepts a received Database Description Packet
  3137.         as the next in sequence, it also performs the following actions,
  3138.         depending on whether it is master or slave:
  3139.  
  3140.  
  3141.         Master
  3142.             Increments the DD sequence number.  If the router has
  3143.             already sent its entire sequence of Database Description
  3144.             Packets, and the just accepted packet has the more bit (M)
  3145.             set to 0, the neighbor event ExchangeDone is generated.
  3146.             Otherwise, it should send a new Database Description to the
  3147.             slave.
  3148.  
  3149.         Slave
  3150.             Sets the DD sequence number to the DD sequence number
  3151.             appearing in the received packet.  The slave must send a
  3152.             Database Description Packet in reply.  If the received
  3153.             packet has the more bit (M) set to 0, and the packet to be
  3154.             sent by the slave will also have the M-bit set to 0, the
  3155.             neighbor event ExchangeDone is generated.  Note that the
  3156.             slave always generates this event before the master.
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164. Moy                                                            [Page 88]
  3165.  
  3166. RFC 1583                     OSPF Version 2                   March 1994
  3167.  
  3168.  
  3169.     10.7.  Receiving Link State Request Packets
  3170.  
  3171.         This section explains the detailed processing of received Link
  3172.         State Request packets.  Received Link State Request Packets
  3173.         specify a list of link state advertisements that the neighbor
  3174.         wishes to receive.  Link State Request Packets should be
  3175.         accepted when the neighbor is in states Exchange, Loading, or
  3176.         Full.  In all other states Link State Request Packets should be
  3177.         ignored.
  3178.  
  3179.         Each link state advertisement specified in the Link State
  3180.         Request packet should be located in the router's database, and
  3181.         copied into Link State Update packets for transmission to the
  3182.         neighbor.  These link state advertisements should NOT be placed
  3183.         on the Link state retransmission list for the neighbor.  If a
  3184.         link state advertisement cannot be found in the database,
  3185.         something has gone wrong with the Database Exchange process, and
  3186.         neighbor event BadLSReq should be generated.
  3187.  
  3188.  
  3189.     10.8.  Sending Database Description Packets
  3190.  
  3191.         This section describes how Database Description Packets are sent
  3192.         to a neighbor.  The router's optional OSPF capabilities (see
  3193.         Section 4.5) are transmitted to the neighbor in the Options
  3194.         field of the Database Description packet.  The router should
  3195.         maintain the same set of optional capabilities throughout the
  3196.         Database Exchange and flooding procedures.  If for some reason
  3197.         the router's optional capabilities change, the Database Exchange
  3198.         procedure should be restarted by reverting to neighbor state
  3199.         ExStart.  There are currently two optional capabilities defined.
  3200.         The T-bit should be set if and only if the router is capable of
  3201.         calculating separate routes for each IP TOS.  The E-bit should
  3202.         be set if and only if the attached network belongs to a non-stub
  3203.         area.  The rest of the Options field should be set to zero.
  3204.  
  3205.         The sending of Database Description packets depends on the
  3206.         neighbor's state.  In state ExStart the router sends empty
  3207.         Database Description packets, with the initialize (I), more (M)
  3208.         and master (MS) bits set.  These packets are retransmitted every
  3209.         RxmtInterval seconds.
  3210.  
  3211.         In state Exchange the Database Description Packets actually
  3212.         contain summaries of the link state information contained in the
  3213.         router's database.  Each link state advertisement in the area's
  3214.         topological database (at the time the neighbor transitions into
  3215.         Exchange state) is listed in the neighbor Database summary list.
  3216.         When a new Database Description Packet is to be sent, the
  3217.  
  3218.  
  3219.  
  3220. Moy                                                            [Page 89]
  3221.  
  3222. RFC 1583                     OSPF Version 2                   March 1994
  3223.  
  3224.  
  3225.         packet's DD sequence number is incremented, and the (new) top of
  3226.         the Database summary list is described by the packet.  Items are
  3227.         removed from the Database summary list when the previous packet
  3228.         is acknowledged.
  3229.  
  3230.         In state Exchange, the determination of when to send a Database
  3231.         Description packet depends on whether the router is master or
  3232.         slave:
  3233.  
  3234.  
  3235.         Master
  3236.             Database Description packets are sent when either a) the
  3237.             slave acknowledges the previous Database Description packet
  3238.             by echoing the DD sequence number or b) RxmtInterval seconds
  3239.             elapse without an acknowledgment, in which case the previous
  3240.             Database Description packet is retransmitted.
  3241.  
  3242.         Slave
  3243.             Database Description packets are sent only in response to
  3244.             Database Description packets received from the master.  If
  3245.             the Database Description packet received from the master is
  3246.             new, a new Database Description packet is sent, otherwise
  3247.             the previous Database Description packet is resent.
  3248.  
  3249.  
  3250.         In states Loading and Full the slave must resend its last
  3251.         Database Description packet in response to duplicate Database
  3252.         Description packets received from the master.  For this reason
  3253.         the slave must wait RouterDeadInterval seconds before freeing
  3254.         the last Database Description packet.  Reception of a Database
  3255.         Description packet from the master after this interval will
  3256.         generate a SeqNumberMismatch neighbor event.
  3257.  
  3258.  
  3259.     10.9.  Sending Link State Request Packets
  3260.  
  3261.         In neighbor states Exchange or Loading, the Link state request
  3262.         list contains a list of those link state advertisements that
  3263.         need to be obtained from the neighbor.  To request these
  3264.         advertisements, a router sends the neighbor the beginning of the
  3265.         Link state request list, packaged in a Link State Request
  3266.         packet.
  3267.  
  3268.         When the neighbor responds to these requests with the proper
  3269.         Link State Update packet(s), the Link state request list is
  3270.         truncated and a new Link State Request packet is sent.  This
  3271.         process continues until the Link state request list becomes
  3272.         empty.  Unsatisfied Link State Request packets are retransmitted
  3273.  
  3274.  
  3275.  
  3276. Moy                                                            [Page 90]
  3277.  
  3278. RFC 1583                     OSPF Version 2                   March 1994
  3279.  
  3280.  
  3281.         at intervals of RxmtInterval.  There should be at most one Link
  3282.         State Request packet outstanding at any one time.
  3283.  
  3284.         When the Link state request list becomes empty, and the neighbor
  3285.         state is Loading (i.e., a complete sequence of Database
  3286.         Description packets has been sent to and received from the
  3287.         neighbor), the Loading Done neighbor event is generated.
  3288.  
  3289.  
  3290.     10.10.  An Example
  3291.  
  3292.         Figure 14 shows an example of an adjacency forming.  Routers RT1
  3293.         and RT2 are both connected to a broadcast network.  It is
  3294.         assumed that RT2 is the Designated Router for the network, and
  3295.         that RT2 has a higher Router ID than Router RT1.
  3296.  
  3297.         The neighbor state changes realized by each router are listed on
  3298.         the sides of the figure.
  3299.  
  3300.         At the beginning of Figure 14, Router RT1's interface to the
  3301.         network becomes operational.  It begins sending Hello Packets,
  3302.         although it doesn't know the identity of the Designated Router
  3303.         or of any other neighboring routers.  Router RT2 hears this
  3304.         hello (moving the neighbor to Init state), and in its next Hello
  3305.         Packet indicates that it is itself the Designated Router and
  3306.         that it has heard Hello Packets from RT1.  This in turn causes
  3307.         RT1 to go to state ExStart, as it starts to bring up the
  3308.         adjacency.
  3309.  
  3310.         RT1 begins by asserting itself as the master.  When it sees that
  3311.         RT2 is indeed the master (because of RT2's higher Router ID),
  3312.         RT1 transitions to slave state and adopts its neighbor's DD
  3313.         sequence number.  Database Description packets are then
  3314.         exchanged, with polls coming from the master (RT2) and responses
  3315.         from the slave (RT1).  This sequence of Database Description
  3316.         Packets ends when both the poll and associated response has the
  3317.         M-bit off.
  3318.  
  3319.         In this example, it is assumed that RT2 has a completely up to
  3320.         date database.  In that case, RT2 goes immediately into Full
  3321.         state.  RT1 will go into Full state after updating the necessary
  3322.         parts of its database.  This is done by sending Link State
  3323.         Request Packets, and receiving Link State Update Packets in
  3324.         response.  Note that, while RT1 has waited until a complete set
  3325.         of Database Description Packets has been received (from RT2)
  3326.         before sending any Link State Request Packets, this need not be
  3327.         the case.  RT1 could have interleaved the sending of Link State
  3328.         Request Packets with the reception of Database Description
  3329.  
  3330.  
  3331.  
  3332. Moy                                                            [Page 91]
  3333.  
  3334. RFC 1583                     OSPF Version 2                   March 1994
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.             +---+                                         +---+
  3343.             |RT1|                                         |RT2|
  3344.             +---+                                         +---+
  3345.  
  3346.             Down                                          Down
  3347.                             Hello(DR=0,seen=0)
  3348.                        ------------------------------>
  3349.                          Hello (DR=RT2,seen=RT1,...)      Init
  3350.                        <------------------------------
  3351.             ExStart        D-D (Seq=x,I,M,Master)
  3352.                        ------------------------------>
  3353.                            D-D (Seq=y,I,M,Master)         ExStart
  3354.                        <------------------------------
  3355.             Exchange       D-D (Seq=y,M,Slave)
  3356.                        ------------------------------>
  3357.                            D-D (Seq=y+1,M,Master)         Exchange
  3358.                        <------------------------------
  3359.                            D-D (Seq=y+1,M,Slave)
  3360.                        ------------------------------>
  3361.                                      ...
  3362.                                      ...
  3363.                                      ...
  3364.                            D-D (Seq=y+n, Master)
  3365.                        <------------------------------
  3366.                            D-D (Seq=y+n, Slave)
  3367.              Loading   ------------------------------>
  3368.                                  LS Request                Full
  3369.                        ------------------------------>
  3370.                                  LS Update
  3371.                        <------------------------------
  3372.                                  LS Request
  3373.                        ------------------------------>
  3374.                                  LS Update
  3375.                        <------------------------------
  3376.              Full
  3377.  
  3378.  
  3379.                    Figure 14: An adjacency bring-up example
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388. Moy                                                            [Page 92]
  3389.  
  3390. RFC 1583                     OSPF Version 2                   March 1994
  3391.  
  3392.  
  3393.         Packets.
  3394.  
  3395.  
  3396. 11.  The Routing Table Structure
  3397.  
  3398.     The routing table data structure contains all the information
  3399.     necessary to forward an IP data packet toward its destination.  Each
  3400.     routing table entry describes the collection of best paths to a
  3401.     particular destination.  When forwarding an IP data packet, the
  3402.     routing table entry providing the best match for the packet's IP
  3403.     destination is located.  The matching routing table entry then
  3404.     provides the next hop towards the packet's destination.  OSPF also
  3405.     provides for the existence of a default route (Destination ID =
  3406.     DefaultDestination, Address Mask =  0x00000000).  When the default
  3407.     route exists, it matches all IP destinations (although any other
  3408.     matching entry is a better match).  Finding the routing table entry
  3409.     that best matches an IP destination is further described in Section
  3410.     11.1.
  3411.  
  3412.     There is a single routing table in each router.  Two sample routing
  3413.     tables are described in Sections 11.2 and 11.3.  The building of the
  3414.     routing table is discussed in Section 16.
  3415.  
  3416.     The rest of this section defines the fields found in a routing table
  3417.     entry.  The first set of fields describes the routing table entry's
  3418.     destination.
  3419.  
  3420.  
  3421.     Destination Type
  3422.         The destination can be one of three types.  Only the first type,
  3423.         Network, is actually used when forwarding IP data traffic.  The
  3424.         other destinations are used solely as intermediate steps in the
  3425.         routing table build process.
  3426.  
  3427.         Network
  3428.             A range of IP addresses, to which IP data traffic may be
  3429.             forwarded.  This includes IP networks (class A, B, or C), IP
  3430.             subnets, IP supernets and single IP hosts.  The default
  3431.             route also falls in this category.
  3432.  
  3433.         Area border router
  3434.             Routers that are connected to multiple OSPF areas.  Such
  3435.             routers originate summary link advertisements.  These
  3436.             routing table entries are used when calculating the inter-
  3437.             area routes (see Section 16.2).  These routing table entries
  3438.             may also be associated with configured virtual links.
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444. Moy                                                            [Page 93]
  3445.  
  3446. RFC 1583                     OSPF Version 2                   March 1994
  3447.  
  3448.  
  3449.         AS boundary router
  3450.             Routers that originate AS external link advertisements.
  3451.             These routing table entries are used when calculating the AS
  3452.             external routes (see Section 16.4).
  3453.  
  3454.     Destination ID
  3455.         The destination's identifier or name.  This depends on the
  3456.         Destination Type.  For networks, the identifier is their
  3457.         associated IP address.  For all other types, the identifier is
  3458.         the OSPF Router ID.[9]
  3459.  
  3460.     Address Mask
  3461.         Only defined for networks.  The network's IP address together
  3462.         with its address mask defines a range of IP addresses.  For IP
  3463.         subnets, the address mask is referred to as the subnet mask.
  3464.         For host routes, the mask is "all ones" (0xffffffff).
  3465.  
  3466.     Optional Capabilities
  3467.         When the destination is a router (either an area border router
  3468.         or an AS boundary router) this field indicates the optional OSPF
  3469.         capabilities supported by the destination router.  The two
  3470.         optional capabilities currently defined by this specification
  3471.         are the ability to route based on IP TOS and the ability to
  3472.         process AS external link advertisements.  For a further
  3473.         discussion of OSPF's optional capabilities, see Section 4.5.
  3474.  
  3475.  
  3476.     The set of paths to use for a destination may vary based on IP Type
  3477.     of Service and the OSPF area to which the paths belong.  This means
  3478.     that there may be multiple routing table entries for the same
  3479.     destination, depending on the values of the next two fields.
  3480.  
  3481.  
  3482.     Type of Service
  3483.         There can be a separate set of routes for each IP Type of
  3484.         Service.  The encoding of TOS in OSPF link state advertisements
  3485.         is described in Section 12.3.
  3486.  
  3487.     Area
  3488.         This field indicates the area whose link state information has
  3489.         led to the routing table entry's collection of paths.  This is
  3490.         called the entry's associated area.  For sets of AS external
  3491.         paths, this field is not defined.  For destinations of type
  3492.         "area border router", there may be separate sets of paths (and
  3493.         therefore separate routing table entries) associated with each
  3494.         of several areas.  This will happen when two area border routers
  3495.         share multiple areas in common.  For all other destination
  3496.         types, only the set of paths associated with the best area (the
  3497.  
  3498.  
  3499.  
  3500. Moy                                                            [Page 94]
  3501.  
  3502. RFC 1583                     OSPF Version 2                   March 1994
  3503.  
  3504.  
  3505.         one providing the shortest route) is kept.
  3506.  
  3507.  
  3508.     The rest of the routing table entry describes the set of paths to
  3509.     the destination.  The following fields pertain to the set of paths
  3510.     as a whole.  In other words, each one of the paths contained in a
  3511.     routing table entry is of the same path-type and cost (see below).
  3512.  
  3513.  
  3514.     Path-type
  3515.         There are four possible types of paths used to route traffic to
  3516.         the destination, listed here in order of preference: intra-area,
  3517.         inter-area, type 1 external or type 2 external.  Intra-area
  3518.         paths indicate destinations belonging to one of the router's
  3519.         attached areas.  Inter-area paths are paths to destinations in
  3520.         other OSPF areas.  These are discovered through the examination
  3521.         of received summary link advertisements.  AS external paths are
  3522.         paths to destinations external to the AS.  These are detected
  3523.         through the examination of received AS external link
  3524.         advertisements.
  3525.  
  3526.     Cost
  3527.         The link state cost of the path to the destination.  For all
  3528.         paths except type 2 external paths this describes the entire
  3529.         path's cost.  For Type 2 external paths, this field describes
  3530.         the cost of the portion of the path internal to the AS.  This
  3531.         cost is calculated as the sum of the costs of the path's
  3532.         constituent links.
  3533.  
  3534.     Type 2 cost
  3535.         Only valid for type 2 external paths.  For these paths, this
  3536.         field indicates the cost of the path's external portion.  This
  3537.         cost has been advertised by an AS boundary router, and is the
  3538.         most significant part of the total path cost.  For example, a
  3539.         type 2 external path with type 2 cost of 5 is always preferred
  3540.         over a path with type 2 cost of 10, regardless of the cost of
  3541.         the two paths' internal components.
  3542.  
  3543.     Link State Origin
  3544.         Valid only for intra-area paths, this field indicates the link
  3545.         state advertisement (router links or network links) that
  3546.         directly references the destination.  For example, if the
  3547.         destination is a transit network, this is the transit network's
  3548.         network links advertisement.  If the destination is a stub
  3549.         network, this is the router links advertisement for the attached
  3550.         router.  The advertisement is discovered during the shortest-
  3551.         path tree calculation (see Section 16.1).  Multiple
  3552.         advertisements may reference the destination, however a tie-
  3553.  
  3554.  
  3555.  
  3556. Moy                                                            [Page 95]
  3557.  
  3558. RFC 1583                     OSPF Version 2                   March 1994
  3559.  
  3560.  
  3561.         breaking scheme always reduces the choice to a single
  3562.         advertisement. The Link State Origin field is not used by the
  3563.         OSPF protocol, but it is used by the routing table calculation
  3564.         in OSPF's Multicast routing extensions (MOSPF).
  3565.  
  3566.     When multiple paths of equal path-type and cost exist to a
  3567.     destination (called elsewhere "equal-cost" paths), they are stored
  3568.     in a single routing table entry.  Each one of the "equal-cost" paths
  3569.     is distinguished by the following fields:
  3570.  
  3571.  
  3572.     Next hop
  3573.         The outgoing router interface to use when forwarding traffic to
  3574.         the destination.  On multi-access networks, the next hop also
  3575.         includes the IP address of the next router (if any) in the path
  3576.         towards the destination.  This next router will always be one of
  3577.         the adjacent neighbors.
  3578.  
  3579.     Advertising router
  3580.         Valid only for inter-area and AS external paths.  This field
  3581.         indicates the Router ID of the router advertising the summary
  3582.         link or AS external link that led to this path.
  3583.  
  3584.  
  3585.     11.1.  Routing table lookup
  3586.  
  3587.         When an IP data packet is received, an OSPF router finds the
  3588.         routing table entry that best matches the packet's destination.
  3589.         This routing table entry then provides the outgoing interface
  3590.         and next hop router to use in forwarding the packet. This
  3591.         section describes the process of finding the best matching
  3592.         routing table entry. The process consists of a number of steps,
  3593.         wherein the collection of routing table entries is progressively
  3594.         pruned. In the end, the single routing table entry remaining is
  3595.         the called best match.
  3596.  
  3597.         Note that the steps described below may fail to produce a best
  3598.         match routing table entry (i.e., all existing routing table
  3599.         entries are pruned for some reason or another). In this case,
  3600.         the packet's IP destination is considered unreachable. Instead
  3601.         of being forwarded, the packet should be dropped and an ICMP
  3602.         destination unreachable message should be returned to the
  3603.         packet's source.
  3604.  
  3605.  
  3606.         (1) Select the complete set of "matching" routing table entries
  3607.             from the routing table.  Each routing table entry describes
  3608.             a (set of) path(s) to a range of IP addresses. If the data
  3609.  
  3610.  
  3611.  
  3612. Moy                                                            [Page 96]
  3613.  
  3614. RFC 1583                     OSPF Version 2                   March 1994
  3615.  
  3616.  
  3617.             packet's IP destination falls into an entry's range of IP
  3618.             addresses, the routing table entry is called a match. (It is
  3619.             quite likely that multiple entries will match the data
  3620.             packet.  For example, a default route will match all
  3621.             packets.)
  3622.  
  3623.         (2) Suppose that the packet's IP destination falls into one of
  3624.             the router's configured area address ranges (see Section
  3625.             3.5), and that the particular area address range is active.
  3626.             This means that there are one or more reachable (by intra-
  3627.             area paths) networks contained in the area address range.
  3628.             The packet's IP destination is then required to belong to
  3629.             one of these constituent networks. For this reason, only
  3630.             matching routing table entries with path-type of intra-area
  3631.             are considered (all others are pruned). If no such matching
  3632.             entries exist, the destination is unreachable (see above).
  3633.             Otherwise, skip to step 4.
  3634.  
  3635.         (3) Reduce the set of matching entries to those having the most
  3636.             preferential path-type (see Section 11). OSPF has a four
  3637.             level hierarchy of paths. Intra-area paths are the most
  3638.             preferred, followed in order by inter-area, type 1 external
  3639.             and type 2 external paths.
  3640.  
  3641.         (4) Select the remaining routing table entry that provides the
  3642.             longest (most specific) match. Another way of saying this is
  3643.             to choose the remaining entry that specifies the narrowest
  3644.             range of IP addresses.[10] For example, the entry for the
  3645.             address/mask pair of (128.185.1.0, 0xffffff00) is more
  3646.             specific than an entry for the pair (128.185.0.0,
  3647.             0xffff0000). The default route is the least specific match,
  3648.             since it matches all destinations.
  3649.  
  3650.         (5) At this point, there may still be multiple routing table
  3651.             entries remaining. Each routing entry will specify the same
  3652.             range of IP addresses, but a different IP Type of Service.
  3653.             Select the routing table entry whose TOS value matches the
  3654.             TOS found in the packet header. If there is no routing table
  3655.             entry for this TOS, select the routing table entry for TOS
  3656.             0. In other words, packets requesting TOS X are routed along
  3657.             the TOS 0 path if a TOS X path does not exist.
  3658.  
  3659.  
  3660.     11.2.  Sample routing table, without areas
  3661.  
  3662.         Consider the Autonomous System pictured in Figure 2.  No OSPF
  3663.         areas have been configured.  A single metric is shown per
  3664.         outbound interface, indicating that routes will not vary based
  3665.  
  3666.  
  3667.  
  3668. Moy                                                            [Page 97]
  3669.  
  3670. RFC 1583                     OSPF Version 2                   March 1994
  3671.  
  3672.  
  3673.         on TOS.  The calculation of Router RT6's routing table proceeds
  3674.         as described in Section 2.1.  The resulting routing table is
  3675.         shown in Table 12.  Destination types are abbreviated: Network
  3676.         as "N", area border router as "BR" and AS boundary router as
  3677.         "ASBR".
  3678.  
  3679.         There are no instances of multiple equal-cost shortest paths in
  3680.         this example.  Also, since there are no areas, there are no
  3681.         inter-area paths.
  3682.  
  3683.         Routers RT5 and RT7 are AS boundary routers.  Intra-area routes
  3684.         have been calculated to Routers RT5 and RT7.  This allows
  3685.         external routes to be calculated to the destinations advertised
  3686.         by RT5 and RT7 (i.e., Networks N12, N13, N14 and N15).  It is
  3687.         assumed all AS external advertisements originated by RT5 and RT7
  3688.         are advertising type 1 external metrics.  This results in type 1
  3689.         external paths being calculated to destinations N12-N15.
  3690.  
  3691.  
  3692.  
  3693.     11.3.  Sample routing table, with areas
  3694.  
  3695.         Consider the previous example, this time split into OSPF areas.
  3696.         An OSPF area configuration is pictured in Figure 6.  Router
  3697.         RT4's routing table will be described for this area
  3698.         configuration.  Router RT4 has a connection to Area 1 and a
  3699.         backbone connection.  This causes Router RT4 to view the AS as
  3700.         the concatenation of the two graphs shown in Figures 7 and 8.
  3701.         The resulting routing table is displayed in Table 13.
  3702.  
  3703.         Again, Routers RT5 and RT7 are AS boundary routers.  Routers
  3704.         RT3, RT4, RT7, RT10 and RT11 are area border routers.  Note that
  3705.         there are two routing table entries (in this case having
  3706.         identical paths) for Router RT7, in its dual capacities as an
  3707.         area border router and an AS boundary router.  Note also that
  3708.         there are two routing entries for the area border router RT3,
  3709.         since it has two areas in common with RT4 (Area 1 and the
  3710.         backbone).
  3711.  
  3712.         Backbone paths have been calculated to all area border routers
  3713.         (BR).  These are used when determining the inter-area routes.
  3714.         Note that all of the inter-area routes are associated with the
  3715.         backbone; this is always the case when the calculating router is
  3716.         itself an area border router.  Routing information is condensed
  3717.         at area boundaries.  In this example, we assume that Area 3 has
  3718.         been defined so that networks N9-N11 and the host route to H1
  3719.         are all condensed to a single route when advertised into the
  3720.         backbone (by Router RT11).  Note that the cost of this route is
  3721.  
  3722.  
  3723.  
  3724. Moy                                                            [Page 98]
  3725.  
  3726. RFC 1583                     OSPF Version 2                   March 1994
  3727.  
  3728.  
  3729.  
  3730.  
  3731.       Type   Dest   Area   Path  Type    Cost   Next     Adv.
  3732.                                                 Hop(s)   Router(s)
  3733.       ____________________________________________________________
  3734.       N      N1     0      intra-area    10     RT3      *
  3735.       N      N2     0      intra-area    10     RT3      *
  3736.       N      N3     0      intra-area    7      RT3      *
  3737.       N      N4     0      intra-area    8      RT3      *
  3738.       N      Ib     0      intra-area    7      *        *
  3739.       N      Ia     0      intra-area    12     RT10     *
  3740.       N      N6     0      intra-area    8      RT10     *
  3741.       N      N7     0      intra-area    12     RT10     *
  3742.       N      N8     0      intra-area    10     RT10     *
  3743.       N      N9     0      intra-area    11     RT10     *
  3744.       N      N10    0      intra-area    13     RT10     *
  3745.       N      N11    0      intra-area    14     RT10     *
  3746.       N      H1     0      intra-area    21     RT10     *
  3747.       ASBR   RT5    0      intra-area    6      RT5      *
  3748.       ASBR   RT7    0      intra-area    8      RT10     *
  3749.       ____________________________________________________________
  3750.       N      N12    *      type 1 ext.   10     RT10     RT7
  3751.       N      N13    *      type 1 ext.   14     RT5      RT5
  3752.       N      N14    *      type 1 ext.   14     RT5      RT5
  3753.       N      N15    *      type 1 ext.   17     RT10     RT7
  3754.  
  3755.  
  3756.                Table 12: The routing table for Router RT6
  3757.                          (no configured areas).
  3758.  
  3759.         the minimum of the set of costs to its individual components.
  3760.  
  3761.         There is a virtual link configured between Routers RT10 and
  3762.         RT11.  Without this configured virtual link, RT11 would be
  3763.         unable to advertise a route for networks N9-N11 and Host H1 into
  3764.         the backbone, and there would not be an entry for these networks
  3765.         in Router RT4's routing table.
  3766.  
  3767.         In this example there are two equal-cost paths to Network N12.
  3768.         However, they both use the same next hop (Router RT5).
  3769.  
  3770.  
  3771.  
  3772.         Router RT4's routing table would improve (i.e., some of the
  3773.         paths in the routing table would become shorter) if an
  3774.         additional virtual link were configured between Router RT4 and
  3775.         Router RT3.  The new virtual link would itself be associated
  3776.         with the first entry for area border router RT3 in Table 13 (an
  3777.  
  3778.  
  3779.  
  3780. Moy                                                            [Page 99]
  3781.  
  3782. RFC 1583                     OSPF Version 2                   March 1994
  3783.  
  3784.  
  3785.  
  3786.  
  3787.    Type   Dest        Area   Path  Type    Cost   Next      Adv.
  3788.                                                   Hops(s)   Router(s)
  3789.    __________________________________________________________________
  3790.    N      N1          1      intra-area    4      RT1       *
  3791.    N      N2          1      intra-area    4      RT2       *
  3792.    N      N3          1      intra-area    1      *         *
  3793.    N      N4          1      intra-area    3      RT3       *
  3794.    BR     RT3         1      intra-area    1      *         *
  3795.    __________________________________________________________________
  3796.    N      Ib          0      intra-area    22     RT5       *
  3797.    N      Ia          0      intra-area    27     RT5       *
  3798.    BR     RT3         0      intra-area    21     RT5       *
  3799.    BR     RT7         0      intra-area    14     RT5       *
  3800.    BR     RT10        0      intra-area    22     RT5       *
  3801.    BR     RT11        0      intra-area    25     RT5       *
  3802.    ASBR   RT5         0      intra-area    8      *         *
  3803.    ASBR   RT7         0      intra-area    14     RT5       *
  3804.    __________________________________________________________________
  3805.    N      N6          0      inter-area    15     RT5       RT7
  3806.    N      N7          0      inter-area    19     RT5       RT7
  3807.    N      N8          0      inter-area    18     RT5       RT7
  3808.    N      N9-N11,H1   0      inter-area    26     RT5       RT11
  3809.    __________________________________________________________________
  3810.    N      N12         *      type 1 ext.   16     RT5       RT5,RT7
  3811.    N      N13         *      type 1 ext.   16     RT5       RT5
  3812.    N      N14         *      type 1 ext.   16     RT5       RT5
  3813.    N      N15         *      type 1 ext.   23     RT5       RT7
  3814.  
  3815.  
  3816.                   Table 13: Router RT4's routing table
  3817.                        in the presence of areas.
  3818.  
  3819.         intra-area path through Area 1).  This would yield a cost of 1
  3820.         for the virtual link.  The routing table entries changes that
  3821.         would be caused by the addition of this virtual link are shown
  3822.         in Table 14.
  3823.  
  3824.  
  3825.  
  3826. 12.  Link State Advertisements
  3827.  
  3828.     Each router in the Autonomous System originates one or more link
  3829.     state advertisements.  There are five distinct types of link state
  3830.     advertisements, which are described in Section 4.3.  The collection
  3831.     of link state advertisements forms the link state or topological
  3832.     database.  Each separate type of advertisement has a separate
  3833.  
  3834.  
  3835.  
  3836. Moy                                                           [Page 100]
  3837.  
  3838. RFC 1583                     OSPF Version 2                   March 1994
  3839.  
  3840.  
  3841.  
  3842.  
  3843.     Type   Dest        Area   Path  Type   Cost   Next     Adv.
  3844.                                                   Hop(s)   Router(s)
  3845.     ________________________________________________________________
  3846.     N      Ib          0      intra-area   16     RT3      *
  3847.     N      Ia          0      intra-area   21     RT3      *
  3848.     BR     RT3         0      intra-area   1      *        *
  3849.     BR     RT10        0      intra-area   16     RT3      *
  3850.     BR     RT11        0      intra-area   19     RT3      *
  3851.     ________________________________________________________________
  3852.     N      N9-N11,H1   0      inter-area   20     RT3      RT11
  3853.  
  3854.  
  3855.                   Table 14: Changes resulting from an
  3856.                         additional virtual link.
  3857.  
  3858.     function.  Router links and network links advertisements describe
  3859.     how an area's routers and networks are interconnected.  Summary link
  3860.     advertisements provide a way of condensing an area's routing
  3861.     information.  AS external advertisements provide a way of
  3862.     transparently advertising externally-derived routing information
  3863.     throughout the Autonomous System.
  3864.  
  3865.     Each link state advertisement begins with a standard 20-byte header.
  3866.     This link state advertisement header is discussed below.
  3867.  
  3868.  
  3869.     12.1.  The Link State Advertisement Header
  3870.  
  3871.         The link state advertisement header contains the LS type, Link
  3872.         State ID and Advertising Router fields.  The combination of
  3873.         these three fields uniquely identifies the link state
  3874.         advertisement.
  3875.  
  3876.         There may be several instances of an advertisement present in
  3877.         the Autonomous System, all at the same time.  It must then be
  3878.         determined which instance is more recent.  This determination is
  3879.         made by examining the LS sequence, LS checksum and LS age
  3880.         fields.  These fields are also contained in the 20-byte link
  3881.         state advertisement header.
  3882.  
  3883.         Several of the OSPF packet types list link state advertisements.
  3884.         When the instance is not important, an advertisement is referred
  3885.         to by its LS type, Link State ID and Advertising Router (see
  3886.         Link State Request Packets).  Otherwise, the LS sequence number,
  3887.         LS age and LS checksum fields must also be referenced.
  3888.  
  3889.  
  3890.  
  3891.  
  3892. Moy                                                           [Page 101]
  3893.  
  3894. RFC 1583                     OSPF Version 2                   March 1994
  3895.  
  3896.  
  3897.         A detailed explanation of the fields contained in the link state
  3898.         advertisement header follows.
  3899.  
  3900.  
  3901.         12.1.1.  LS age
  3902.  
  3903.             This field is the age of the link state advertisement in
  3904.             seconds.  It should be processed as an unsigned 16-bit
  3905.             integer.  It is set to 0 when the link state advertisement
  3906.             is originated.  It must be incremented by InfTransDelay on
  3907.             every hop of the flooding procedure.  Link state
  3908.             advertisements are also aged as they are held in each
  3909.             router's database.
  3910.  
  3911.             The age of a link state advertisement is never incremented
  3912.             past MaxAge.  Advertisements having age MaxAge are not used
  3913.             in the routing table calculation.  When an advertisement's
  3914.             age first reaches MaxAge, it is reflooded.  A link state
  3915.             advertisement of age MaxAge is finally flushed from the
  3916.             database when it is no longer needed to ensure database
  3917.             synchronization.  For more information on the aging of link
  3918.             state advertisements, consult Section 14.
  3919.  
  3920.             The LS age field is examined when a router receives two
  3921.             instances of a link state advertisement, both having
  3922.             identical LS sequence numbers and LS checksums.  An instance
  3923.             of age MaxAge is then always accepted as most recent; this
  3924.             allows old advertisements to be flushed quickly from the
  3925.             routing domain.  Otherwise, if the ages differ by more than
  3926.             MaxAgeDiff, the instance having the smaller age is accepted
  3927.             as most recent.[11] See Section 13.1 for more details.
  3928.  
  3929.  
  3930.         12.1.2.  Options
  3931.  
  3932.             The Options field in the link state advertisement header
  3933.             indicates which optional capabilities are associated with
  3934.             the advertisement.  OSPF's optional capabilities are
  3935.             described in Section 4.5.  There are currently two optional
  3936.             capabilities defined; they are represented by the T-bit and
  3937.             E-bit found in the Options field.  The rest of the Options
  3938.             field should be set to zero.
  3939.  
  3940.             The E-bit represents OSPF's ExternalRoutingCapability.  This
  3941.             bit should be set in all advertisements associated with the
  3942.             backbone, and all advertisements associated with non-stub
  3943.             areas (see Section 3.6).  It should also be set in all AS
  3944.             external link advertisements.  It should be reset in all
  3945.  
  3946.  
  3947.  
  3948. Moy                                                           [Page 102]
  3949.  
  3950. RFC 1583                     OSPF Version 2                   March 1994
  3951.  
  3952.  
  3953.             router links, network links and summary link advertisements
  3954.             associated with a stub area.  For all link state
  3955.             advertisements, the setting of the E-bit is for
  3956.             informational purposes only; it does not affect the routing
  3957.             table calculation.
  3958.  
  3959.             The T-bit represents OSPF's TOS routing capability.  This
  3960.             bit should be set in a router links advertisement if and
  3961.             only if the router is capable of calculating separate routes
  3962.             for each IP TOS (see Section 2.4).  The T-bit should always
  3963.             be set in network links advertisements.  It should be set in
  3964.             summary link and AS external link advertisements if and only
  3965.             if the advertisement describes paths for all TOS values,
  3966.             instead of just the TOS 0 path.  Note that, with the T-bit
  3967.             set, there may still be only a single metric in the
  3968.             advertisement (the TOS 0 metric).  This would mean that
  3969.             paths for non-zero TOS exist, but are equivalent to the TOS
  3970.             0 path.  A link state advertisement's T-bit is examined when
  3971.             calculating the routing table's non-zero TOS paths (see
  3972.             Section 16.9).
  3973.  
  3974.  
  3975.         12.1.3.  LS type
  3976.  
  3977.             The LS type field dictates the format and function of the
  3978.             link state advertisement.  Advertisements of different types
  3979.             have different names (e.g., router links or network links).
  3980.             All advertisement types, except the AS external link
  3981.             advertisements (LS type = 5), are flooded throughout a
  3982.             single area only.  AS external link advertisements are
  3983.             flooded throughout the entire Autonomous System, excepting
  3984.             stub areas (see Section 3.6).  Each separate advertisement
  3985.             type is briefly described below in Table 15.
  3986.  
  3987.         12.1.4.  Link State ID
  3988.  
  3989.             This field identifies the piece of the routing domain that
  3990.             is being described by the advertisement.  Depending on the
  3991.             advertisement's LS type, the Link State ID takes on the
  3992.             values listed in Table 16.
  3993.  
  3994.  
  3995.             Actually, for Type 3 summary link (LS type = 3)
  3996.             advertisements and AS external link (LS type = 5)
  3997.             advertisements, the Link State ID may additionally have one
  3998.             or more of the destination network's "host" bits set. For
  3999.             example, when originating an AS external link for the
  4000.             network 10.0.0.0 with mask of 255.0.0.0, the Link State ID
  4001.  
  4002.  
  4003.  
  4004. Moy                                                           [Page 103]
  4005.  
  4006. RFC 1583                     OSPF Version 2                   March 1994
  4007.  
  4008.  
  4009.  
  4010.  
  4011.            LS Type   Advertisement description
  4012.            __________________________________________________
  4013.            1         These are the router links
  4014.                      advertisements. They describe the
  4015.                      collected states of the router's
  4016.                      interfaces. For more information,
  4017.                      consult Section 12.4.1.
  4018.            __________________________________________________
  4019.            2         These are the network links
  4020.                      advertisements. They describe the set
  4021.                      of routers attached to the network. For
  4022.                      more information, consult
  4023.                      Section 12.4.2.
  4024.            __________________________________________________
  4025.            3 or 4    These are the summary link
  4026.                      advertisements. They describe
  4027.                      inter-area routes, and enable the
  4028.                      condensation of routing information at
  4029.                      area borders. Originated by area border
  4030.                      routers, the Type 3 advertisements
  4031.                      describe routes to networks while the
  4032.                      Type 4 advertisements describe routes to
  4033.                      AS boundary routers.
  4034.            __________________________________________________
  4035.            5         These are the AS external link
  4036.                      advertisements. Originated by AS
  4037.                      boundary routers, they describe routes
  4038.                      to destinations external to the
  4039.                      Autonomous System. A default route for
  4040.                      the Autonomous System can also be
  4041.                      described by an AS external link
  4042.                      advertisement.
  4043.  
  4044.  
  4045.                Table 15: OSPF link state advertisements.
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060. Moy                                                           [Page 104]
  4061.  
  4062. RFC 1583                     OSPF Version 2                   March 1994
  4063.  
  4064.  
  4065.             LS Type   Link State ID
  4066.             _______________________________________________
  4067.             1         The originating router's Router ID.
  4068.             2         The IP interface address of the
  4069.                       network's Designated Router.
  4070.             3         The destination network's IP address.
  4071.             4         The Router ID of the described AS
  4072.                       boundary router.
  4073.             5         The destination network's IP address.
  4074.  
  4075.  
  4076.               Table 16: The advertisement's Link State ID.
  4077.  
  4078.             can be set to anything in the range 10.0.0.0 through
  4079.             10.255.255.255 inclusive (although 10.0.0.0 should be used
  4080.             whenever possible). The freedom to set certain host bits
  4081.             allows a router to originate separate advertisements for two
  4082.             networks having the same address but different masks. See
  4083.             Appendix F for details.
  4084.  
  4085.             When the link state advertisement is describing a network
  4086.             (LS type = 2, 3 or 5), the network's IP address is easily
  4087.             derived by masking the Link State ID with the network/subnet
  4088.             mask contained in the body of the link state advertisement.
  4089.             When the link state advertisement is describing a router (LS
  4090.             type = 1 or 4), the Link State ID is always the described
  4091.             router's OSPF Router ID.
  4092.  
  4093.             When an AS external advertisement (LS Type = 5) is
  4094.             describing a default route, its Link State ID is set to
  4095.             DefaultDestination (0.0.0.0).
  4096.  
  4097.  
  4098.         12.1.5.  Advertising Router
  4099.  
  4100.             This field specifies the OSPF Router ID of the
  4101.             advertisement's originator.  For router links
  4102.             advertisements, this field is identical to the Link State ID
  4103.             field.  Network link advertisements are originated by the
  4104.             network's Designated Router.  Summary link advertisements
  4105.             are originated by area border routers.  AS external link
  4106.             advertisements are originated by AS boundary routers.
  4107.  
  4108.  
  4109.         12.1.6.  LS sequence number
  4110.  
  4111.             The sequence number field is a signed 32-bit integer.  It is
  4112.             used to detect old and duplicate link state advertisements.
  4113.  
  4114.  
  4115.  
  4116. Moy                                                           [Page 105]
  4117.  
  4118. RFC 1583                     OSPF Version 2                   March 1994
  4119.  
  4120.  
  4121.             The space of sequence numbers is linearly ordered.  The
  4122.             larger the sequence number (when compared as signed 32-bit
  4123.             integers) the more recent the advertisement.  To describe to
  4124.             sequence number space more precisely, let N refer in the
  4125.             discussion below to the constant 2**31.
  4126.  
  4127.             The sequence number -N (0x80000000) is reserved (and
  4128.             unused).  This leaves -N + 1 (0x80000001) as the smallest
  4129.             (and therefore oldest) sequence number.  A router uses this
  4130.             sequence number the first time it originates any link state
  4131.             advertisement.  Afterwards, the advertisement's sequence
  4132.             number is incremented each time the router originates a new
  4133.             instance of the advertisement.  When an attempt is made to
  4134.             increment the sequence number past the maximum value of N -
  4135.             1 (0x7fffffff), the current instance of the advertisement
  4136.             must first be flushed from the routing domain.  This is done
  4137.             by prematurely aging the advertisement (see Section 14.1)
  4138.             and reflooding it.  As soon as this flood has been
  4139.             acknowledged by all adjacent neighbors, a new instance can
  4140.             be originated with sequence number of -N + 1 (0x80000001).
  4141.  
  4142.             The router may be forced to promote the sequence number of
  4143.             one of its advertisements when a more recent instance of the
  4144.             advertisement is unexpectedly received during the flooding
  4145.             process.  This should be a rare event.  This may indicate
  4146.             that an out-of-date advertisement, originated by the router
  4147.             itself before its last restart/reload, still exists in the
  4148.             Autonomous System.  For more information see Section 13.4.
  4149.  
  4150.  
  4151.         12.1.7.  LS checksum
  4152.  
  4153.             This field is the checksum of the complete contents of the
  4154.             advertisement, excepting the LS age field.  The LS age field
  4155.             is excepted so that an advertisement's age can be
  4156.             incremented without updating the checksum.  The checksum
  4157.             used is the same that is used for ISO connectionless
  4158.             datagrams; it is commonly referred to as the Fletcher
  4159.             checksum.  It is documented in Annex B of [RFC 905].  The
  4160.             link state advertisement header also contains the length of
  4161.             the advertisement in bytes; subtracting the size of the LS
  4162.             age field (two bytes) yields the amount of data to checksum.
  4163.  
  4164.             The checksum is used to detect data corruption of an
  4165.             advertisement.  This corruption can occur while an
  4166.             advertisement is being flooded, or while it is being held in
  4167.             a router's memory.  The LS checksum field cannot take on the
  4168.             value of zero; the occurrence of such a value should be
  4169.  
  4170.  
  4171.  
  4172. Moy                                                           [Page 106]
  4173.  
  4174. RFC 1583                     OSPF Version 2                   March 1994
  4175.  
  4176.  
  4177.             considered a checksum failure.  In other words, calculation
  4178.             of the checksum is not optional.
  4179.  
  4180.             The checksum of a link state advertisement is verified in
  4181.             two cases: a) when it is received in a Link State Update
  4182.             Packet and b) at times during the aging of the link state
  4183.             database.  The detection of a checksum failure leads to
  4184.             separate actions in each case.  See Sections 13 and 14 for
  4185.             more details.
  4186.  
  4187.             Whenever the LS sequence number field indicates that two
  4188.             instances of an advertisement are the same, the LS checksum
  4189.             field is examined.  If there is a difference, the instance
  4190.             with the larger LS checksum is considered to be most
  4191.             recent.[12] See Section 13.1 for more details.
  4192.  
  4193.  
  4194.     12.2.  The link state database
  4195.  
  4196.         A router has a separate link state database for every area to
  4197.         which it belongs.  The link state database has been referred to
  4198.         elsewhere in the text as the topological database.  All routers
  4199.         belonging to the same area have identical topological databases
  4200.         for the area.
  4201.  
  4202.         The databases for each individual area are always dealt with
  4203.         separately.  The shortest path calculation is performed
  4204.         separately for each area (see Section 16).  Components of the
  4205.         area topological database are flooded throughout the area only.
  4206.         Finally, when an adjacency (belonging to Area A) is being
  4207.         brought up, only the database for Area A is synchronized between
  4208.         the two routers.
  4209.  
  4210.         The area database is composed of router links advertisements,
  4211.         network links advertisements, and summary link advertisements
  4212.         (all listed in the area data structure).  In addition, external
  4213.         routes (AS external advertisements) are included in all non-stub
  4214.         area databases (see Section 3.6).
  4215.  
  4216.         An implementation of OSPF must be able to access individual
  4217.         pieces of an area database.  This lookup function is based on an
  4218.         advertisement's LS type, Link State ID and Advertising
  4219.         Router.[13] There will be a single instance (the most up-to-
  4220.         date) of each link state advertisement in the database.  The
  4221.         database lookup function is invoked during the link state
  4222.         flooding procedure (Section 13) and the routing table
  4223.         calculation (Section 16).  In addition, using this lookup
  4224.         function the router can determine whether it has itself ever
  4225.  
  4226.  
  4227.  
  4228. Moy                                                           [Page 107]
  4229.  
  4230. RFC 1583                     OSPF Version 2                   March 1994
  4231.  
  4232.  
  4233.         originated a particular link state advertisement, and if so,
  4234.         with what LS sequence number.
  4235.  
  4236.         A link state advertisement is added to a router's database when
  4237.         either a) it is received during the flooding process (Section
  4238.         13) or b) it is originated by the router itself (Section 12.4).
  4239.         A link state advertisement is deleted from a router's database
  4240.         when either a) it has been overwritten by a newer instance
  4241.         during the flooding process (Section 13) or b) the router
  4242.         originates a newer instance of one of its self-originated
  4243.         advertisements (Section 12.4) or c) the advertisement ages out
  4244.         and is flushed from the routing domain (Section 14).  Whenever a
  4245.         link state advertisement is deleted from the database it must
  4246.         also be removed from all neighbors' Link state retransmission
  4247.         lists (see Section 10).
  4248.  
  4249.  
  4250.     12.3.  Representation of TOS
  4251.  
  4252.         All OSPF link state advertisements (with the exception of
  4253.         network links advertisements) specify metrics.  In router links
  4254.         advertisements, the metrics indicate the costs of the described
  4255.         interfaces.  In summary link and AS external link
  4256.         advertisements, the metric indicates the cost of the described
  4257.         path.  In all of these advertisements, a separate metric can be
  4258.         specified for each IP TOS.  The encoding of TOS in OSPF link
  4259.         state advertisements is specified in Table 17. That table
  4260.         relates the OSPF encoding to the IP packet header's TOS field
  4261.         (defined in [RFC 1349]).  The OSPF encoding is expressed as a
  4262.         decimal integer, and the IP packet header's TOS field is
  4263.         expressed in the binary TOS values used in [RFC 1349].
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.  
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284. Moy                                                           [Page 108]
  4285.  
  4286. RFC 1583                     OSPF Version 2                   March 1994
  4287.  
  4288.  
  4289.  
  4290.                     OSPF encoding   RFC 1349 TOS values
  4291.                     ___________________________________________
  4292.                     0               0000 normal service
  4293.                     2               0001 minimize monetary cost
  4294.                     4               0010 maximize reliability
  4295.                     6               0011
  4296.                     8               0100 maximize throughput
  4297.                     10              0101
  4298.                     12              0110
  4299.                     14              0111
  4300.                     16              1000 minimize delay
  4301.                     18              1001
  4302.                     20              1010
  4303.                     22              1011
  4304.                     24              1100
  4305.                     26              1101
  4306.                     28              1110
  4307.                     30              1111
  4308.  
  4309.  
  4310.                         Table 17: Representing TOS in OSPF.
  4311.  
  4312.  
  4313.         Each OSPF link state advertisement must specify the TOS 0
  4314.         metric.  Other TOS metrics, if they appear, must appear in order
  4315.         of increasing TOS encoding.  For example, the TOS 8 (maximize
  4316.         throughput) metric must always appear before the TOS 16
  4317.         (minimize delay) metric when both are specified.  If a metric
  4318.         for some non-zero TOS is not specified, its cost defaults to the
  4319.         cost for TOS 0, unless the T-bit is reset in the advertisement's
  4320.         Options field (see Section 12.1.2 for more details).
  4321.  
  4322.  
  4323.     12.4.  Originating link state advertisements
  4324.  
  4325.         Into any given OSPF area, a router will originate several link
  4326.         state advertisements.  Each router originates a router links
  4327.         advertisement.  If the router is also the Designated Router for
  4328.         any of the area's networks, it will originate network links
  4329.         advertisements for those networks.
  4330.  
  4331.         Area border routers originate a single summary link
  4332.         advertisement for each known inter-area destination.  AS
  4333.         boundary routers originate a single AS external link
  4334.         advertisement for each known AS external destination.
  4335.         Destinations are advertised one at a time so that the change in
  4336.         any single route can be flooded without reflooding the entire
  4337.  
  4338.  
  4339.  
  4340. Moy                                                           [Page 109]
  4341.  
  4342. RFC 1583                     OSPF Version 2                   March 1994
  4343.  
  4344.  
  4345.         collection of routes.  During the flooding procedure, many link
  4346.         state advertisements can be carried by a single Link State
  4347.         Update packet.
  4348.  
  4349.         As an example, consider Router RT4 in Figure 6.  It is an area
  4350.         border router, having a connection to Area 1 and the backbone.
  4351.         Router RT4 originates 5 distinct link state advertisements into
  4352.         the backbone (one router links, and one summary link for each of
  4353.         the networks N1-N4).  Router RT4 will also originate 8 distinct
  4354.         link state advertisements into Area 1 (one router links and
  4355.         seven summary link advertisements as pictured in Figure 7).  If
  4356.         RT4 has been selected as Designated Router for Network N3, it
  4357.         will also originate a network links advertisement for N3 into
  4358.         Area 1.
  4359.  
  4360.         In this same figure, Router RT5 will be originating 3 distinct
  4361.         AS external link advertisements (one for each of the networks
  4362.         N12-N14).  These will be flooded throughout the entire AS,
  4363.         assuming that none of the areas have been configured as stubs.
  4364.         However, if area 3 has been configured as a stub area, the
  4365.         external advertisements for networks N12-N14 will not be flooded
  4366.         into area 3 (see Section 3.6).  Instead, Router RT11 would
  4367.         originate a default summary link advertisement that would be
  4368.         flooded throughout area 3 (see Section 12.4.3).  This instructs
  4369.         all of area 3's internal routers to send their AS external
  4370.         traffic to RT11.
  4371.  
  4372.         Whenever a new instance of a link state advertisement is
  4373.         originated, its LS sequence number is incremented, its LS age is
  4374.         set to 0, its LS checksum is calculated, and the advertisement
  4375.         is added to the link state database and flooded out the
  4376.         appropriate interfaces.  See Section 13.2 for details concerning
  4377.         the installation of the advertisement into the link state
  4378.         database.  See Section 13.3 for details concerning the flooding
  4379.         of newly originated advertisements.
  4380.  
  4381.  
  4382.         The ten events that can cause a new instance of a link state
  4383.         advertisement to be originated are:
  4384.  
  4385.  
  4386.         (1) The LS age field of one of the router's self-originated
  4387.             advertisements reaches the value LSRefreshTime. In this
  4388.             case, a new instance of the link state advertisement is
  4389.             originated, even though the contents of the advertisement
  4390.             (apart from the link state advertisement header) will be the
  4391.             same.  This guarantees periodic originations of all link
  4392.             state advertisements. This periodic updating of link state
  4393.  
  4394.  
  4395.  
  4396. Moy                                                           [Page 110]
  4397.  
  4398. RFC 1583                     OSPF Version 2                   March 1994
  4399.  
  4400.  
  4401.             advertisements adds robustness to the link state algorithm.
  4402.             Link state advertisements that solely describe unreachable
  4403.             destinations should not be refreshed, but should instead be
  4404.             flushed from the routing domain (see Section 14.1).
  4405.  
  4406.  
  4407.         When whatever is being described by a link state advertisement
  4408.         changes, a new advertisement is originated.  However, two
  4409.         instances of the same link state advertisement may not be
  4410.         originated within the time period MinLSInterval.  This may
  4411.         require that the generation of the next instance be delayed by
  4412.         up to MinLSInterval.  The following events may cause the
  4413.         contents of a link state advertisement to change.  These events
  4414.         should cause new originations if and only if the contents of the
  4415.         new advertisement would be different:
  4416.  
  4417.  
  4418.         (2) An interface's state changes (see Section 9.1).  This may
  4419.             mean that it is necessary to produce a new instance of the
  4420.             router links advertisement.
  4421.  
  4422.         (3) An attached network's Designated Router changes.  A new
  4423.             router links advertisement should be originated.  Also, if
  4424.             the router itself is now the Designated Router, a new
  4425.             network links advertisement should be produced.  If the
  4426.             router itself is no longer the Designated Router, any
  4427.             network links advertisement that it might have originated
  4428.             for the network should be flushed from the routing domain
  4429.             (see Section 14.1).
  4430.  
  4431.         (4) One of the neighboring routers changes to/from the FULL
  4432.             state.  This may mean that it is necessary to produce a new
  4433.             instance of the router links advertisement.  Also, if the
  4434.             router is itself the Designated Router for the attached
  4435.             network, a new network links advertisement should be
  4436.             produced.
  4437.  
  4438.  
  4439.         The next four events concern area border routers only:
  4440.  
  4441.  
  4442.         (5) An intra-area route has been added/deleted/modified in the
  4443.             routing table.  This may cause a new instance of a summary
  4444.             links advertisement (for this route) to be originated in
  4445.             each attached area (possibly including the backbone).
  4446.  
  4447.         (6) An inter-area route has been added/deleted/modified in the
  4448.             routing table.  This may cause a new instance of a summary
  4449.  
  4450.  
  4451.  
  4452. Moy                                                           [Page 111]
  4453.  
  4454. RFC 1583                     OSPF Version 2                   March 1994
  4455.  
  4456.  
  4457.             links advertisement (for this route) to be originated in
  4458.             each attached area (but NEVER for the backbone).
  4459.  
  4460.         (7) The router becomes newly attached to an area.  The router
  4461.             must then originate summary link advertisements into the
  4462.             newly attached area for all pertinent intra-area and inter-
  4463.             area routes in the router's routing table.  See Section
  4464.             12.4.3 for more details.
  4465.  
  4466.         (8) When the state of one of the router's configured virtual
  4467.             links changes, it may be necessary to originate a new router
  4468.             links advertisement into the virtual link's transit area
  4469.             (see the discussion of the router links advertisement's bit
  4470.             V in Section 12.4.1), as well as originating a new router
  4471.             links advertisement into the backbone.
  4472.  
  4473.  
  4474.         The last two events concern AS boundary routers (and former AS
  4475.         boundary routers) only:
  4476.  
  4477.  
  4478.         (9) An external route gained through direct experience with an
  4479.             external routing protocol (like EGP) changes.  This will
  4480.             cause an AS boundary router to originate a new instance of
  4481.             an AS external link advertisement.
  4482.  
  4483.         (10)
  4484.             A router ceases to be an AS boundary router, perhaps after
  4485.             restarting. In this situation the router should flush all AS
  4486.             external link advertisements that it had previously
  4487.             originated.  These advertisements can be flushed via the
  4488.             premature aging procedure specified in Section 14.1.
  4489.  
  4490.  
  4491.         The construction of each type of link state advertisement is
  4492.         explained in detail below.  In general, these sections describe
  4493.         the contents of the advertisement body (i.e., the part coming
  4494.         after the 20-byte advertisement header).  For information
  4495.         concerning the building of the link state advertisement header,
  4496.         see Section 12.1.
  4497.  
  4498.         12.4.1.  Router links
  4499.  
  4500.             A router originates a router links advertisement for each
  4501.             area that it belongs to.  Such an advertisement describes
  4502.             the collected states of the router's links to the area.  The
  4503.             advertisement is flooded throughout the particular area, and
  4504.             no further.
  4505.  
  4506.  
  4507.  
  4508. Moy                                                           [Page 112]
  4509.  
  4510. RFC 1583                     OSPF Version 2                   March 1994
  4511.  
  4512.  
  4513.  
  4514.                   ....................................
  4515.                   . 192.1.2                   Area 1 .
  4516.                   .     +                            .
  4517.                   .     |                            .
  4518.                   .     | 3+---+1                    .
  4519.                   .  N1 |--|RT1|-----+               .
  4520.                   .     |  +---+                    .
  4521.                   .     |                _______N3  .
  4522.                   .     +               /          .  1+---+
  4523.                   .                     * 192.1.1 *------|RT4|
  4524.                   .     +               /_______/   .   +---+
  4525.                   .     |              /     |       .
  4526.                   .     | 3+---+1     /      |       .
  4527.                   .  N2 |--|RT2|-----+      1|       .
  4528.                   .     |  +---+           +---+8    .         6+---+
  4529.                   .     |                  |RT3|----------------|RT6|
  4530.                   .     +                  +---+     .          +---+
  4531.                   . 192.1.3                  |2      .   18.10.0.6|7
  4532.                   .                          |       .            |
  4533.                   .                   +------------+ .
  4534.                   .                     192.1.4 (N4) .
  4535.                   ....................................
  4536.  
  4537.  
  4538.                     Figure 15: Area 1 with IP addresses shown
  4539.  
  4540.             The format of a router links advertisement is shown in
  4541.             Appendix A (Section A.4.2).  The first 20 bytes of the
  4542.             advertisement consist of the generic link state
  4543.             advertisement header that was discussed in Section 12.1.
  4544.             Router links advertisements have LS type = 1.  The router
  4545.             indicates whether it is willing to calculate separate routes
  4546.             for each IP TOS by setting (or resetting) the T-bit of the
  4547.             link state advertisement's Options field.
  4548.  
  4549.             A router also indicates whether it is an area border router,
  4550.             or an AS boundary router, by setting the appropriate bits
  4551.             (bit B and bit E, respectively) in its router links
  4552.             advertisements. This enables paths to those types of routers
  4553.             to be saved in the routing table, for later processing of
  4554.             summary link advertisements and AS external link
  4555.             advertisements.  Bit B should be set whenever the router is
  4556.             actively attached to two or more areas, even if the router
  4557.             is not currently attached to the OSPF backbone area.  Bit E
  4558.             should never be set in a router links advertisement for a
  4559.             stub area (stub areas cannot contain AS boundary routers).
  4560.             In addition, the router sets bit V in its router links
  4561.  
  4562.  
  4563.  
  4564. Moy                                                           [Page 113]
  4565.  
  4566. RFC 1583                     OSPF Version 2                   March 1994
  4567.  
  4568.  
  4569.             advertisement for Area A if and only if it is the endpoint
  4570.             of an active virtual link using Area A as its Transit area.
  4571.             This enables the other routers attached to Area A to
  4572.             discover whether the area supports any virtual links (i.e.,
  4573.             is a transit area).
  4574.  
  4575.             The router links advertisement then describes the router's
  4576.             working connections (i.e., interfaces or links) to the area.
  4577.             Each link is typed according to the kind of attached
  4578.             network.  Each link is also labelled with its Link ID.  This
  4579.             Link ID gives a name to the entity that is on the other end
  4580.             of the link.  Table 18 summarizes the values used for the
  4581.             Type and Link ID fields.
  4582.  
  4583.  
  4584.  
  4585.                    Link type   Description       Link ID
  4586.                    __________________________________________________
  4587.                    1           Point-to-point    Neighbor Router ID
  4588.                                link
  4589.                    2           Link to transit   Interface address of
  4590.                                network           Designated Router
  4591.                    3           Link to stub      IP network number
  4592.                                network
  4593.                    4           Virtual link      Neighbor Router ID
  4594.  
  4595.  
  4596.                            Table 18: Link descriptions in the
  4597.                               router links advertisement.
  4598.  
  4599.  
  4600.             In addition, the Link Data field is specified for each link.
  4601.             This field gives 32 bits of extra information for the link.
  4602.             For links to transit networks, numbered links to routers and
  4603.             virtual links, this field specifies the IP interface address
  4604.             of the associated router interface (this is needed by the
  4605.             routing table calculation, see Section 16.1.1).  For links
  4606.             to stub networks, this field specifies the network's IP
  4607.             address mask.  For unnumbered point-to-point networks, the
  4608.             Link Data field should be set to the unnumbered interface's
  4609.             MIB-II [RFC 1213] ifIndex value.
  4610.  
  4611.             Finally, the cost of using the link for output (possibly
  4612.             specifying a different cost for each Type of Service) is
  4613.             specified.  The output cost of a link is configurable.  It
  4614.             must always be non-zero.
  4615.  
  4616.             To further describe the process of building the list of link
  4617.  
  4618.  
  4619.  
  4620. Moy                                                           [Page 114]
  4621.  
  4622. RFC 1583                     OSPF Version 2                   March 1994
  4623.  
  4624.  
  4625.             descriptions, suppose a router wishes to build a router
  4626.             links advertisement for Area A.  The router examines its
  4627.             collection of interface data structures.  For each
  4628.             interface, the following steps are taken:
  4629.  
  4630.  
  4631.             o   If the attached network does not belong to Area A, no
  4632.                 links are added to the advertisement, and the next
  4633.                 interface should be examined.
  4634.  
  4635.             o   Else, if the state of the interface is Down, no links
  4636.                 are added.
  4637.  
  4638.             o   Else, if the state of the interface is Point-to-Point,
  4639.                 then add links according to the following:
  4640.  
  4641.                 -   If the neighboring router is fully adjacent, add a
  4642.                     Type 1 link (point-to-point) if this is an interface
  4643.                     to a point-to-point network, or add a Type 4 link
  4644.                     (virtual link) if this is a virtual link.  The Link
  4645.                     ID should be set to the Router ID of the neighboring
  4646.                     router. For virtual links and numbered point-to-
  4647.                     point networks, the Link Data should specify the IP
  4648.                     interface address. For unnumbered point-to-point
  4649.                     networks, the Link Data field should specify the
  4650.                     interface's MIB-II [RFC 1213] ifIndex value.
  4651.  
  4652.                 -   If this is a numbered point-to-point network (i.e,
  4653.                     not a virtual link and not an unnumbered point-to-
  4654.                     point network) and the neighboring router's IP
  4655.                     address is known, add a Type 3 link (stub network)
  4656.                     whose Link ID is the neighbor's IP address, whose
  4657.                     Link Data is the mask 0xffffffff indicating a host
  4658.                     route, and whose cost is the interface's configured
  4659.                     output cost.
  4660.  
  4661.             o   Else if the state of the interface is Loopback, add a
  4662.                 Type 3 link (stub network) as long as this is not an
  4663.                 interface to an unnumbered serial line.  The Link ID
  4664.                 should be set to the IP interface address, the Link Data
  4665.                 set to the mask 0xffffffff (indicating a host route),
  4666.                 and the cost set to 0.
  4667.  
  4668.             o   Else if the state of the interface is Waiting, add a
  4669.                 Type 3 link (stub network) whose Link ID is the IP
  4670.                 network number of the attached network and whose Link
  4671.                 Data is the attached network's address mask.
  4672.  
  4673.  
  4674.  
  4675.  
  4676. Moy                                                           [Page 115]
  4677.  
  4678. RFC 1583                     OSPF Version 2                   March 1994
  4679.  
  4680.  
  4681.             o   Else, there has been a Designated Router selected for
  4682.                 the attached network.  If the router is fully adjacent
  4683.                 to the Designated Router, or if the router itself is
  4684.                 Designated Router and is fully adjacent to at least one
  4685.                 other router, add a single Type 2 link (transit network)
  4686.                 whose Link ID is the IP interface address of the
  4687.                 attached network's Designated Router (which may be the
  4688.                 router itself) and whose Link Data is the router's own
  4689.                 IP interface address.  Otherwise, add a link as if the
  4690.                 interface state were Waiting (see above).
  4691.  
  4692.  
  4693.             Unless otherwise specified, the cost of each link generated
  4694.             by the above procedure is equal to the output cost of the
  4695.             associated interface.  Note that in the case of serial
  4696.             lines, multiple links may be generated by a single
  4697.             interface.
  4698.  
  4699.             After consideration of all the router interfaces, host links
  4700.             are added to the advertisement by examining the list of
  4701.             attached hosts.  A host route is represented as a Type 3
  4702.             link (stub network) whose Link ID is the host's IP address
  4703.             and whose Link Data is the mask of all ones (0xffffffff).
  4704.  
  4705.             As an example, consider the router links advertisements
  4706.             generated by Router RT3, as pictured in Figure 6.  The area
  4707.             containing Router RT3 (Area 1) has been redrawn, with actual
  4708.             network addresses, in Figure 15.  Assume that the last byte
  4709.             of all of RT3's interface addresses is 3, giving it the
  4710.             interface addresses 192.1.1.3 and 192.1.4.3, and that the
  4711.             other routers have similar addressing schemes.  In addition,
  4712.             assume that all links are functional, and that Router IDs
  4713.             are assigned as the smallest IP interface address.
  4714.  
  4715.             RT3 originates two router links advertisements, one for Area
  4716.             1 and one for the backbone.  Assume that Router RT4 has been
  4717.             selected as the Designated router for network 192.1.1.0.
  4718.             RT3's router links advertisement for Area 1 is then shown
  4719.             below.  It indicates that RT3 has two connections to Area 1,
  4720.             the first a link to the transit network 192.1.1.0 and the
  4721.             second a link to the stub network 192.1.4.0.  Note that the
  4722.             transit network is identified by the IP interface of its
  4723.             Designated Router (i.e., the Link ID = 192.1.1.4 which is
  4724.             the Designated Router RT4's IP interface to 192.1.1.0).
  4725.             Note also that RT3 has indicated that it is capable of
  4726.             calculating separate routes based on IP TOS, through setting
  4727.             the T-bit in the Options field.  It has also indicated that
  4728.             it is an area border router.
  4729.  
  4730.  
  4731.  
  4732. Moy                                                           [Page 116]
  4733.  
  4734. RFC 1583                     OSPF Version 2                   March 1994
  4735.  
  4736.  
  4737.               ; RT3's router links advertisement for Area 1
  4738.  
  4739.               LS age = 0                     ;always true on origination
  4740.               Options = (T-bit|E-bit)        ;TOS-capable
  4741.               LS type = 1                    ;indicates router links
  4742.               Link State ID = 192.1.1.3      ;RT3's Router ID
  4743.               Advertising Router = 192.1.1.3 ;RT3's Router ID
  4744.               bit E = 0                      ;not an AS boundary router
  4745.               bit B = 1                      ;area border router
  4746.               #links = 2
  4747.                      Link ID = 192.1.1.4     ;IP address of Desig. Rtr.
  4748.                      Link Data = 192.1.1.3   ;RT3's IP interface to net
  4749.                      Type = 2                ;connects to transit network
  4750.                      # other metrics = 0
  4751.                      TOS 0 metric = 1
  4752.  
  4753.                      Link ID = 192.1.4.0     ;IP Network number
  4754.                      Link Data = 0xffffff00  ;Network mask
  4755.                      Type = 3                ;connects to stub network
  4756.                      # other metrics = 0
  4757.                      TOS 0 metric = 2
  4758.  
  4759.             Next RT3's router links advertisement for the backbone is
  4760.             shown.  It indicates that RT3 has a single attachment to the
  4761.             backbone.  This attachment is via an unnumbered point-to-
  4762.             point link to Router RT6.  RT3 has again indicated that it
  4763.             is TOS-capable, and that it is an area border router.
  4764.  
  4765.               ; RT3's router links advertisement for the backbone
  4766.  
  4767.               LS age = 0                     ;always true on origination
  4768.               Options = (T-bit|E-bit)        ;TOS-capable
  4769.               LS type = 1                    ;indicates router links
  4770.               Link State ID = 192.1.1.3      ;RT3's router ID
  4771.               Advertising Router = 192.1.1.3 ;RT3's router ID
  4772.               bit E = 0                      ;not an AS boundary router
  4773.               bit B = 1                      ;area border router
  4774.               #links = 1
  4775.                      Link ID = 18.10.0.6     ;Neighbor's Router ID
  4776.                      Link Data = 0.0.0.3     ;MIB-II ifIndex of P-P link
  4777.                      Type = 1                ;connects to router
  4778.                      # other metrics = 0
  4779.                      TOS 0 metric = 8
  4780.  
  4781.             Even though Router RT3 has indicated that it is TOS-capable
  4782.             in the above examples, only a single metric (the TOS 0
  4783.             metric) has been specified for each interface.  Different
  4784.             metrics can be specified for each TOS.  The encoding of TOS
  4785.  
  4786.  
  4787.  
  4788. Moy                                                           [Page 117]
  4789.  
  4790. RFC 1583                     OSPF Version 2                   March 1994
  4791.  
  4792.  
  4793.             in OSPF link state advertisements is described in Section
  4794.             12.3.
  4795.  
  4796.             As an example, suppose the point-to-point link between
  4797.             Routers RT3 and RT6 in Figure 15 is a satellite link.  The
  4798.             AS administrator may want to encourage the use of the line
  4799.             for high bandwidth traffic.  This would be done by setting
  4800.             the metric artificially low for the appropriate TOS value.
  4801.             Router RT3 would then originate the following router links
  4802.             advertisement for the backbone (TOS 8 = maximize
  4803.             throughput):
  4804.  
  4805.               ; RT3's router links advertisement for the backbone
  4806.  
  4807.               LS age = 0                  ;always true on origination
  4808.               Options = (T-bit|E-bit)     ;TOS-capable
  4809.               LS type = 1                 ;indicates router links
  4810.               Link State ID = 192.1.1.3   ;RT3's Router ID
  4811.               Advertising Router = 192.1.1.3
  4812.               bit E = 0                   ;not an AS boundary router
  4813.               bit B = 1                   ;area border router
  4814.               #links = 1
  4815.                      Link ID = 18.10.0.6  ;Neighbor's Router ID
  4816.                      Link Data = 0.0.0.3  ;MIB-II ifIndex of P-P link
  4817.                      Type = 1             ;connects to router
  4818.                      # other metrics = 1
  4819.                      TOS 0 metric = 8
  4820.                              TOS = 8      ;maximize throughput
  4821.                              metric = 1   ;traffic preferred
  4822.  
  4823.  
  4824.         12.4.2.  Network links
  4825.  
  4826.             A network links advertisement is generated for every transit
  4827.             multi-access network.  (A transit network is a network
  4828.             having two or more attached routers).  The network links
  4829.             advertisement describes all the routers that are attached to
  4830.             the network.
  4831.  
  4832.             The Designated Router for the network originates the
  4833.             advertisement.  The Designated Router originates the
  4834.             advertisement only if it is fully adjacent to at least one
  4835.             other router on the network.  The network links
  4836.             advertisement is flooded throughout the area that contains
  4837.             the transit network, and no further.  The networks links
  4838.             advertisement lists those routers that are fully adjacent to
  4839.             the Designated Router; each fully adjacent router is
  4840.             identified by its OSPF Router ID.  The Designated Router
  4841.  
  4842.  
  4843.  
  4844. Moy                                                           [Page 118]
  4845.  
  4846. RFC 1583                     OSPF Version 2                   March 1994
  4847.  
  4848.  
  4849.             includes itself in this list.
  4850.  
  4851.             The Link State ID for a network links advertisement is the
  4852.             IP interface address of the Designated Router.  This value,
  4853.             masked by the network's address mask (which is also
  4854.             contained in the network links advertisement) yields the
  4855.             network's IP address.
  4856.  
  4857.             A router that has formerly been the Designated Router for a
  4858.             network, but is no longer, should flush the network links
  4859.             advertisement that it had previously originated.  This
  4860.             advertisement is no longer used in the routing table
  4861.             calculation.  It is flushed by prematurely incrementing the
  4862.             advertisement's age to MaxAge and reflooding (see Section
  4863.             14.1). In addition, in those rare cases where a router's
  4864.             Router ID has changed, any network links advertisements that
  4865.             were originated with the router's previous Router ID must be
  4866.             flushed. Since the router may have no idea what it's
  4867.             previous Router ID might have been, these network links
  4868.             advertisements are indicated by having their Link State ID
  4869.             equal to one of the router's IP interface addresses and
  4870.             their Advertising Router not equal to the router's current
  4871.             Router ID (see Section 13.4 for more details).
  4872.  
  4873.             As an example of a network links advertisement, again
  4874.             consider the area configuration in Figure 6.  Network links
  4875.             advertisements are originated for Network N3 in Area 1,
  4876.             Networks N6 and N8 in Area 2, and Network N9 in Area 3.
  4877.             Assuming that Router RT4 has been selected as the Designated
  4878.             Router for Network N3, the following network links
  4879.             advertisement is generated by RT4 on behalf of Network N3
  4880.             (see Figure 15 for the address assignments):
  4881.  
  4882.               ; network links advertisement for Network N3
  4883.  
  4884.               LS age = 0                     ;always true on origination
  4885.               Options = (T-bit|E-bit)        ;TOS-capable
  4886.               LS type = 2                    ;indicates network links
  4887.               Link State ID = 192.1.1.4      ;IP address of Desig. Rtr.
  4888.               Advertising Router = 192.1.1.4 ;RT4's Router ID
  4889.               Network Mask = 0xffffff00
  4890.                      Attached Router = 192.1.1.4    ;Router ID
  4891.                      Attached Router = 192.1.1.1    ;Router ID
  4892.                      Attached Router = 192.1.1.2    ;Router ID
  4893.                      Attached Router = 192.1.1.3    ;Router ID
  4894.  
  4895.  
  4896.  
  4897.  
  4898.  
  4899.  
  4900. Moy                                                           [Page 119]
  4901.  
  4902. RFC 1583                     OSPF Version 2                   March 1994
  4903.  
  4904.  
  4905.         12.4.3.  Summary links
  4906.  
  4907.             Each summary link advertisement describes a route to a
  4908.             single destination.  Summary link advertisements are flooded
  4909.             throughout a single area only.  The destination described is
  4910.             one that is external to the area, yet still belonging to the
  4911.             Autonomous System.
  4912.  
  4913.             Summary link advertisements are originated by area border
  4914.             routers.  The precise summary routes to advertise into an
  4915.             area are determined by examining the routing table structure
  4916.             (see Section 11) in accordance with the algorithm described
  4917.             below. Note that only intra-area routes are advertised into
  4918.             the backbone, while both intra-area and inter-area routes
  4919.             are advertised into the other areas.
  4920.  
  4921.             To determine which routes to advertise into an attached Area
  4922.             A, each routing table entry is processed as follows.
  4923.             Remember that each routing table entry describes a set of
  4924.             equal-cost best paths to a particular destination:
  4925.  
  4926.  
  4927.             o   Only Destination Types of network and AS boundary router
  4928.                 are advertised in summary link advertisements.  If the
  4929.                 routing table entry's Destination Type is area border
  4930.                 router, examine the next routing table entry.
  4931.  
  4932.             o   AS external routes are never advertised in summary link
  4933.                 advertisements.  If the routing table entry has Path-
  4934.                 type of type 1 external or type 2 external, examine the
  4935.                 next routing table entry.
  4936.  
  4937.             o   Else, if the area associated with this set of paths is
  4938.                 the Area A itself, do not generate a summary link
  4939.                 advertisement for the route.[14]
  4940.  
  4941.             o   Else, if the next hops associated with this set of paths
  4942.                 belong to Area A itself, do not generate a summary link
  4943.                 advertisement for the route.[15] This is the logical
  4944.                 equivalent of a Distance Vector protocol's split horizon
  4945.                 logic.
  4946.  
  4947.             o   Else, if the routing table cost equals or exceeds the
  4948.                 value LSInfinity, a summary link advertisement cannot be
  4949.                 generated for this route.
  4950.  
  4951.             o   Else, if the destination of this route is an AS boundary
  4952.                 router, generate a Type 4 link state advertisement for
  4953.  
  4954.  
  4955.  
  4956. Moy                                                           [Page 120]
  4957.  
  4958. RFC 1583                     OSPF Version 2                   March 1994
  4959.  
  4960.  
  4961.                 the destination, with Link State ID equal to the AS
  4962.                 boundary router's Router ID and metric equal to the
  4963.                 routing table entry's cost.  These advertisements should
  4964.                 not be generated if Area A has been configured as a stub
  4965.                 area.
  4966.  
  4967.             o   Else, the Destination type is network. If this is an
  4968.                 inter-area route, generate a Type 3 advertisement for
  4969.                 the destination, with Link State ID equal to the
  4970.                 network's address (if necessary, the Link State ID can
  4971.                 also have one or more of the network's host bits set;
  4972.                 see Appendix F for details) and metric equal to the
  4973.                 routing table cost.
  4974.  
  4975.             o   The one remaining case is an intra-area route to a
  4976.                 network.  This means that the network is contained in
  4977.                 one of the router's directly attached areas.  In
  4978.                 general, this information must be condensed before
  4979.                 appearing in summary link advertisements.  Remember that
  4980.                 an area has been defined as a list of address ranges,
  4981.                 each range consisting of an [address,mask] pair and a
  4982.                 status indication of either Advertise or DoNotAdvertise.
  4983.                 At most a single Type 3 advertisement is made for each
  4984.                 range. When the range's status indicates Advertise, a
  4985.                 Type 3 advertisement is generated with Link State ID
  4986.                 equal to the range's address (if necessary, the Link
  4987.                 State ID can also have one or more of the range's "host"
  4988.                 bits set; see Appendix F for details) and cost equal to
  4989.                 the smallest cost of any of the component networks. When
  4990.                 the range's status indicates DoNotAdvertise, the Type 3
  4991.                 advertisement is suppressed and the component networks
  4992.                 remain hidden from other areas.
  4993.  
  4994.                 By default, if a network is not contained in any
  4995.                 explicitly configured address range, a Type 3
  4996.                 advertisement is generated with Link State ID equal to
  4997.                 the network's address (if necessary, the Link State ID
  4998.                 can also have one or more of the network's "host" bits
  4999.                 set; see Appendix F for details) and metric equal to the
  5000.                 network's routing table cost.
  5001.  
  5002.                 If virtual links are being used to provide/increase
  5003.                 connectivity of the backbone, routing information
  5004.                 concerning the backbone networks should not be condensed
  5005.                 before being summarized into the virtual links' Transit
  5006.                 areas. Nor should the advertisement of backbone networks
  5007.                 into Transit areas be suppressed.  In other words, the
  5008.                 backbone's configured ranges should be ignored when
  5009.  
  5010.  
  5011.  
  5012. Moy                                                           [Page 121]
  5013.  
  5014. RFC 1583                     OSPF Version 2                   March 1994
  5015.  
  5016.  
  5017.                 originating summary links into Transit areas.  The
  5018.                 existence of virtual links is determined during the
  5019.                 shortest path calculation for the Transit areas (see
  5020.                 Section 16.1).
  5021.  
  5022.             If a router advertises a summary advertisement for a
  5023.             destination which then becomes unreachable, the router must
  5024.             then flush the advertisement from the routing domain by
  5025.             setting its age to MaxAge and reflooding (see Section 14.1).
  5026.             Also, if the destination is still reachable, yet can no
  5027.             longer be advertised according to the above procedure (e.g.,
  5028.             it is now an inter-area route, when it used to be an intra-
  5029.             area route associated with some non-backbone area; it would
  5030.             thus no longer be advertisable to the backbone), the
  5031.             advertisement should also be flushed from the routing
  5032.             domain.
  5033.  
  5034.             For an example of summary link advertisements, consider
  5035.             again the area configuration in Figure 6.  Routers RT3, RT4,
  5036.             RT7, RT10 and RT11 are all area border routers, and
  5037.             therefore are originating summary link advertisements.
  5038.             Consider in particular Router RT4.  Its routing table was
  5039.             calculated as the example in Section 11.3.  RT4 originates
  5040.             summary link advertisements into both the backbone and Area
  5041.             1.  Into the backbone, Router RT4 originates separate
  5042.             advertisements for each of the networks N1-N4.  Into Area 1,
  5043.             Router RT4 originates separate advertisements for networks
  5044.             N6-N8 and the AS boundary routers RT5,RT7.  It also
  5045.             condenses host routes Ia and Ib into a single summary link
  5046.             advertisement.  Finally, the routes to networks N9,N10,N11
  5047.             and Host H1 are advertised by a single summary link
  5048.             advertisement.  This condensation was originally performed
  5049.             by the router RT11.
  5050.  
  5051.             These advertisements are illustrated graphically in Figures
  5052.             7 and 8.  Two of the summary link advertisements originated
  5053.             by Router RT4 follow.  The actual IP addresses for the
  5054.             networks and routers in question have been assigned in
  5055.             Figure 15.
  5056.  
  5057.               ; summary link advertisement for Network N1,
  5058.               ; originated by Router RT4 into the backbone
  5059.  
  5060.               LS age = 0                  ;always true on origination
  5061.               Options = (T-bit|E-bit)     ;TOS-capable
  5062.               LS type = 3                 ;summary link to IP net
  5063.               Link State ID = 192.1.2.0   ;N1's IP network number
  5064.               Advertising Router = 192.1.1.4       ;RT4's ID
  5065.  
  5066.  
  5067.  
  5068. Moy                                                           [Page 122]
  5069.  
  5070. RFC 1583                     OSPF Version 2                   March 1994
  5071.  
  5072.  
  5073.                      TOS = 0
  5074.                      metric = 4
  5075.  
  5076.               ; summary link advertisement for AS boundary router RT7
  5077.               ; originated by Router RT4 into Area 1
  5078.  
  5079.               LS age = 0                  ;always true on origination
  5080.               Options = (T-bit|E-bit)     ;TOS-capable
  5081.               LS type = 4                 ;summary link to ASBR
  5082.               Link State ID = Router RT7's ID
  5083.               Advertising Router = 192.1.1.4       ;RT4's ID
  5084.                      TOS = 0
  5085.                      metric = 14
  5086.  
  5087.             Summary link advertisements pertain to a single destination
  5088.             (IP network or AS boundary router).  However, for a single
  5089.             destination there may be separate sets of paths, and
  5090.             therefore separate routing table entries, for each Type of
  5091.             Service.  All these entries must be considered when building
  5092.             the summary link advertisement for the destination; a single
  5093.             advertisement must specify the separate costs (if they
  5094.             exist) for each TOS.  The encoding of TOS in OSPF link state
  5095.             advertisements is described in Section 12.3.
  5096.  
  5097.             Clearing the T-bit in the Options field of a summary link
  5098.             advertisement indicates that there is a TOS 0 path to the
  5099.             destination, but no paths for non-zero TOS.  This can happen
  5100.             when non-TOS-capable routers exist in the routing domain
  5101.             (see Section 2.4).
  5102.  
  5103.         12.4.4.  Originating summary links into stub areas
  5104.  
  5105.             The algorithm in Section 12.4.3 is optional when Area A is
  5106.             an OSPF stub area. Area border routers connecting to a stub
  5107.             area can originate summary link advertisements into the area
  5108.             according to the above Section's algorithm, or can choose to
  5109.             originate only a subset of the advertisements, possibly
  5110.             under configuration control.  The fewer advertisements
  5111.             originated, the smaller the stub area's link state database,
  5112.             further reducing the demands on its routers' resources.
  5113.             However, omitting advertisements may also lead to sub-
  5114.             optimal inter-area routing, although routing will continue
  5115.             to function.
  5116.  
  5117.             As specified in Section 12.4.3, Type 4 link state
  5118.             advertisements (ASBR summary links) are never originated
  5119.             into stub areas.
  5120.  
  5121.  
  5122.  
  5123.  
  5124. Moy                                                           [Page 123]
  5125.  
  5126. RFC 1583                     OSPF Version 2                   March 1994
  5127.  
  5128.  
  5129.             In a stub area, instead of importing external routes each
  5130.             area border router originates a "default summary link" into
  5131.             the area. The Link State ID for the default summary link is
  5132.             set to DefaultDestination, and the metric set to the (per-
  5133.             area) configurable parameter StubDefaultCost.  Note that
  5134.             StubDefaultCost need not be configured identically in all of
  5135.             the stub area's area border routers.
  5136.  
  5137.         12.4.5.  AS external links
  5138.  
  5139.             AS external link advertisements describe routes to
  5140.             destinations external to the Autonomous System.  Most AS
  5141.             external link advertisements describe routes to specific
  5142.             external destinations; in these cases the advertisement's
  5143.             Link State ID is set to the destination network's IP address
  5144.             (if necessary, the Link State ID can also have one or more
  5145.             of the network's "host" bits set; see Appendix F for
  5146.             details).  However, a default route for the Autonomous
  5147.             System can be described in an AS external link advertisement
  5148.             by setting the advertisement's Link State ID to
  5149.             DefaultDestination (0.0.0.0).  AS external link
  5150.             advertisements are originated by AS boundary routers.  An AS
  5151.             boundary router originates a single AS external link
  5152.             advertisement for each external route that it has learned,
  5153.             either through another routing protocol (such as EGP), or
  5154.             through configuration information.
  5155.  
  5156.             In general, AS external link advertisements are the only
  5157.             type of link state advertisements that are flooded
  5158.             throughout the entire Autonomous System; all other types of
  5159.             link state advertisements are specific to a single area.
  5160.             However, AS external link advertisements are not flooded
  5161.             into/throughout stub areas (see Section 3.6).  This enables
  5162.             a reduction in link state database size for routers internal
  5163.             to stub areas.
  5164.  
  5165.             The metric that is advertised for an external route can be
  5166.             one of two types.  Type 1 metrics are comparable to the link
  5167.             state metric.  Type 2 metrics are assumed to be larger than
  5168.             the cost of any intra-AS path.  As with summary link
  5169.             advertisements, if separate paths exist based on TOS,
  5170.             separate TOS costs can be included in the AS external link
  5171.             advertisement.  The encoding of TOS in OSPF link state
  5172.             advertisements is described in Section 12.3.  If the T-bit
  5173.             of the advertisement's Options field is clear, no non-zero
  5174.             TOS paths to the destination exist.
  5175.  
  5176.             If a router advertises an AS external link advertisement for
  5177.  
  5178.  
  5179.  
  5180. Moy                                                           [Page 124]
  5181.  
  5182. RFC 1583                     OSPF Version 2                   March 1994
  5183.  
  5184.  
  5185.             a destination which then becomes unreachable, the router
  5186.             must then flush the advertisement from the routing domain by
  5187.             setting its age to MaxAge and reflooding (see Section 14.1).
  5188.  
  5189.             For an example of AS external link advertisements, consider
  5190.             once again the AS pictured in Figure 6.  There are two AS
  5191.             boundary routers: RT5 and RT7.  Router RT5 originates three
  5192.             external link advertisements, for networks N12-N14.  Router
  5193.             RT7 originates two external link advertisements, for
  5194.             networks N12 and N15.  Assume that RT7 has learned its route
  5195.             to N12 via EGP, and that it wishes to advertise a Type 2
  5196.             metric to the AS.  RT7 would then originate the following
  5197.             advertisement for N12:
  5198.  
  5199.               ; AS external link advertisement for Network N12,
  5200.               ; originated by Router RT7
  5201.  
  5202.               LS age = 0                  ;always true on origination
  5203.               Options = (T-bit|E-bit)     ;TOS-capable
  5204.               LS type = 5                 ;indicates AS external link
  5205.               Link State ID = N12's IP network number
  5206.               Advertising Router = Router RT7's ID
  5207.                      bit E = 1            ;Type 2 metric
  5208.                      TOS = 0
  5209.                      metric = 2
  5210.                      Forwarding address = 0.0.0.0
  5211.  
  5212.             In the above example, the forwarding address field has been
  5213.             set to 0.0.0.0, indicating that packets for the external
  5214.             destination should be forwarded to the advertising OSPF
  5215.             router (RT7).  This is not always desirable.  Consider the
  5216.             example pictured in Figure 16.  There are three OSPF routers
  5217.             (RTA, RTB and RTC) connected to a common network.  Only one
  5218.             of these routers, RTA, is exchanging EGP information with
  5219.             the non-OSPF router RTX.  RTA must then originate AS
  5220.             external link advertisements for those destinations it has
  5221.             learned from RTX.  By using the AS external link
  5222.             advertisement's forwarding address field, RTA can specify
  5223.             that packets for these destinations be forwarded directly to
  5224.             RTX.  Without this feature, Routers RTB and RTC would take
  5225.             an extra hop to get to these destinations.
  5226.  
  5227.             Note that when the forwarding address field is non-zero, it
  5228.             should point to a router belonging to another Autonomous
  5229.             System.
  5230.  
  5231.             A forwarding address can also be specified for the default
  5232.             route.  For example, in figure 16 RTA may want to specify
  5233.  
  5234.  
  5235.  
  5236. Moy                                                           [Page 125]
  5237.  
  5238. RFC 1583                     OSPF Version 2                   March 1994
  5239.  
  5240.  
  5241.             that all externally-destined packets should by default be
  5242.             forwarded to its EGP peer RTX.  The resulting AS external
  5243.             link advertisement is pictured below.  Note that the Link
  5244.             State ID is set to DefaultDestination.
  5245.  
  5246.               ; Default route, originated by Router RTA
  5247.               ; Packets forwarded through RTX
  5248.  
  5249.               LS age = 0                  ;always true on origination
  5250.               Options = (T-bit|E-bit)          ;TOS-capable
  5251.               LS type = 5                 ;indicates AS external link
  5252.               Link State ID = DefaultDestination  ; default route
  5253.               Advertising Router = Router RTA's ID
  5254.                      bit E = 1            ;Type 2 metric
  5255.                      TOS = 0
  5256.                      metric = 1
  5257.                      Forwarding address = RTX's IP address
  5258.  
  5259.             In figure 16, suppose instead that both RTA and RTB exchange
  5260.             EGP information with RTX.  In this case, RTA and RTB would
  5261.             originate the same set of AS external link advertisements.
  5262.             These advertisements, if they specify the same metric, would
  5263.             be functionally equivalent since they would specify the same
  5264.             destination and forwarding address (RTX).  This leads to a
  5265.             clear duplication of effort.  If only one of RTA or RTB
  5266.             originated the set of external advertisements, the routing
  5267.             would remain the same, and the size of the link state
  5268.             database would decrease.  However, it must be unambiguously
  5269.             defined as to which router originates the advertisements
  5270.             (otherwise neither may, or the identity of the originator
  5271.             may oscillate).  The following rule is thereby established:
  5272.             if two routers, both reachable from one another, originate
  5273.             functionally equivalent AS external advertisements (i.e.,
  5274.             same destination, cost and non-zero forwarding address),
  5275.             then the advertisement originated by the router having the
  5276.             highest OSPF Router ID is used.  The router having the lower
  5277.             OSPF Router ID can then flush its advertisement.  Flushing a
  5278.             link state advertisement is discussed in Section 14.1.
  5279.  
  5280. 13.  The Flooding Procedure
  5281.  
  5282.     Link State Update packets provide the mechanism for flooding link
  5283.     state advertisements.  A Link State Update packet may contain
  5284.     several distinct advertisements, and floods each advertisement one
  5285.     hop further from its point of origination.  To make the flooding
  5286.     procedure reliable, each advertisement must be acknowledged
  5287.     separately.  Acknowledgments are transmitted in Link State
  5288.     Acknowledgment packets.  Many separate acknowledgments can also be
  5289.  
  5290.  
  5291.  
  5292. Moy                                                           [Page 126]
  5293.  
  5294. RFC 1583                     OSPF Version 2                   March 1994
  5295.  
  5296.  
  5297.  
  5298.                                 +
  5299.                                 |
  5300.                       +---+.....|.EGP
  5301.                       |RTA|-----|.....+---+
  5302.                       +---+     |-----|RTX|
  5303.                                 |     +---+
  5304.                       +---+     |
  5305.                       |RTB|-----|
  5306.                       +---+     |
  5307.                                 |
  5308.                       +---+     |
  5309.                       |RTC|-----|
  5310.                       +---+     |
  5311.                                 |
  5312.                                 +
  5313.  
  5314.  
  5315.                Figure 16: Forwarding address example
  5316.  
  5317.     grouped together into a single packet.
  5318.  
  5319.     The flooding procedure starts when a Link State Update packet has
  5320.     been received.  Many consistency checks have been made on the
  5321.     received packet before being handed to the flooding procedure (see
  5322.     Section 8.2).  In particular, the Link State Update packet has been
  5323.     associated with a particular neighbor, and a particular area.  If
  5324.     the neighbor is in a lesser state than Exchange, the packet should
  5325.     be dropped without further processing.
  5326.  
  5327.     All types of link state advertisements, other than AS external link
  5328.     advertisements, are associated with a specific area.  However, link
  5329.     state advertisements do not contain an area field.  A link state
  5330.     advertisement's area must be deduced from the Link State Update
  5331.     packet header.
  5332.  
  5333.     For each link state advertisement contained in the packet, the
  5334.     following steps are taken:
  5335.  
  5336.  
  5337.     (1) Validate the advertisement's LS checksum.  If the checksum turns
  5338.         out to be invalid, discard the advertisement and get the next
  5339.         one from the Link State Update packet.
  5340.  
  5341.     (2) Examine the link state advertisement's LS type.  If the LS type
  5342.         is unknown, discard the advertisement and get the next one from
  5343.         the Link State Update Packet.  This specification defines LS
  5344.         types 1-5 (see Section 4.3).
  5345.  
  5346.  
  5347.  
  5348. Moy                                                           [Page 127]
  5349.  
  5350. RFC 1583                     OSPF Version 2                   March 1994
  5351.  
  5352.  
  5353.     (3) Else if this is a AS external link advertisement (LS type = 5),
  5354.         and the area has been configured as a stub area, discard the
  5355.         advertisement and get the next one from the Link State Update
  5356.         Packet.  AS external link advertisements are not flooded
  5357.         into/throughout stub areas (see Section 3.6).
  5358.  
  5359.     (4) Else if the advertisement's LS age is equal to MaxAge, and there
  5360.         is currently no instance of the advertisement in the router's
  5361.         link state database, then take the following actions:
  5362.  
  5363.         (a) Acknowledge the receipt of the advertisement by sending a
  5364.             Link State Acknowledgment packet back to the sending
  5365.             neighbor (see Section 13.5).
  5366.  
  5367.         (b) Purge all outstanding requests for equal or previous
  5368.             instances of the advertisement from the sending neighbor's
  5369.             Link State Request list (see Section 10).
  5370.  
  5371.         (c) If the sending neighbor is in state Exchange or in state
  5372.             Loading, then install the MaxAge advertisement in the link
  5373.             state database.  Otherwise, simply discard the
  5374.             advertisement.  In either case, examine the next
  5375.             advertisement (if any) listed in the Link State Update
  5376.             packet.
  5377.  
  5378.     (5) Otherwise, find the instance of this advertisement that is
  5379.         currently contained in the router's link state database.  If
  5380.         there is no database copy, or the received advertisement is more
  5381.         recent than the database copy (see Section 13.1 below for the
  5382.         determination of which advertisement is more recent) the
  5383.         following steps must be performed:
  5384.  
  5385.         (a) If there is already a database copy, and if the database
  5386.             copy was installed less than MinLSInterval seconds ago,
  5387.             discard the new advertisement (without acknowledging it) and
  5388.             examine the next advertisement (if any) listed in the Link
  5389.             State Update packet.
  5390.  
  5391.         (b) Otherwise immediately flood the new advertisement out some
  5392.             subset of the router's interfaces (see Section 13.3).  In
  5393.             some cases (e.g., the state of the receiving interface is DR
  5394.             and the advertisement was received from a router other than
  5395.             the Backup DR) the advertisement will be flooded back out
  5396.             the receiving interface.  This occurrence should be noted
  5397.             for later use by the acknowledgment process (Section 13.5).
  5398.  
  5399.         (c) Remove the current database copy from all neighbors' Link
  5400.             state retransmission lists.
  5401.  
  5402.  
  5403.  
  5404. Moy                                                           [Page 128]
  5405.  
  5406. RFC 1583                     OSPF Version 2                   March 1994
  5407.  
  5408.  
  5409.         (d) Install the new advertisement in the link state database
  5410.             (replacing the current database copy).  This may cause the
  5411.             routing table calculation to be scheduled.  In addition,
  5412.             timestamp the new advertisement with the current time (i.e.,
  5413.             the time it was received).  The flooding procedure cannot
  5414.             overwrite the newly installed advertisement until
  5415.             MinLSInterval seconds have elapsed.  The advertisement
  5416.             installation process is discussed further in Section 13.2.
  5417.  
  5418.         (e) Possibly acknowledge the receipt of the advertisement by
  5419.             sending a Link State Acknowledgment packet back out the
  5420.             receiving interface.  This is explained below in Section
  5421.             13.5.
  5422.  
  5423.         (f) If this new link state advertisement indicates that it was
  5424.             originated by the receiving router itself (i.e., is
  5425.             considered a self-originated advertisement), the router must
  5426.             take special action, either updating the advertisement or in
  5427.             some cases flushing it from the routing domain. For a
  5428.             description of how self-originated advertisements are
  5429.             detected and subsequently handled, see Section 13.4.
  5430.  
  5431.     (6) Else, if there is an instance of the advertisement on the
  5432.         sending neighbor's Link state request list, an error has
  5433.         occurred in the Database Exchange process.  In this case,
  5434.         restart the Database Exchange process by generating the neighbor
  5435.         event BadLSReq for the sending neighbor and stop processing the
  5436.         Link State Update packet.
  5437.  
  5438.     (7) Else, if the received advertisement is the same instance as the
  5439.         database copy (i.e., neither one is more recent) the following
  5440.         two steps should be performed:
  5441.  
  5442.         (a) If the advertisement is listed in the Link state
  5443.             retransmission list for the receiving adjacency, the router
  5444.             itself is expecting an acknowledgment for this
  5445.             advertisement.  The router should treat the received
  5446.             advertisement as an acknowledgment, by removing the
  5447.             advertisement from the Link state retransmission list.  This
  5448.             is termed an "implied acknowledgment".  Its occurrence
  5449.             should be noted for later use by the acknowledgment process
  5450.             (Section 13.5).
  5451.  
  5452.         (b) Possibly acknowledge the receipt of the advertisement by
  5453.             sending a Link State Acknowledgment packet back out the
  5454.             receiving interface.  This is explained below in Section
  5455.             13.5.
  5456.  
  5457.  
  5458.  
  5459.  
  5460. Moy                                                           [Page 129]
  5461.  
  5462. RFC 1583                     OSPF Version 2                   March 1994
  5463.  
  5464.  
  5465.     (8) Else, the database copy is more recent.  Note an unusual event
  5466.         to network management, discard the advertisement and process the
  5467.         next link state advertisement contained in the Link State Update
  5468.         packet.
  5469.  
  5470.  
  5471.     13.1.  Determining which link state is newer
  5472.  
  5473.         When a router encounters two instances of a link state
  5474.         advertisement, it must determine which is more recent.  This
  5475.         occurred above when comparing a received advertisement to its
  5476.         database copy.  This comparison must also be done during the
  5477.         Database Exchange procedure which occurs during adjacency
  5478.         bring-up.
  5479.  
  5480.         A link state advertisement is identified by its LS type, Link
  5481.         State ID and Advertising Router.  For two instances of the same
  5482.         advertisement, the LS sequence number, LS age, and LS checksum
  5483.         fields are used to determine which instance is more recent:
  5484.  
  5485.  
  5486.         o   The advertisement having the newer LS sequence number is
  5487.             more recent.  See Section 12.1.6 for an explanation of the
  5488.             LS sequence number space.  If both instances have the same
  5489.             LS sequence number, then:
  5490.  
  5491.         o   If the two instances have different LS checksums, then the
  5492.             instance having the larger LS checksum (when considered as a
  5493.             16-bit unsigned integer) is considered more recent.
  5494.  
  5495.         o   Else, if only one of the instances has its LS age field set
  5496.             to MaxAge, the instance of age MaxAge is considered to be
  5497.             more recent.
  5498.  
  5499.         o   Else, if the LS age fields of the two instances differ by
  5500.             more than MaxAgeDiff, the instance having the smaller
  5501.             (younger) LS age is considered to be more recent.
  5502.  
  5503.         o   Else, the two instances are considered to be identical.
  5504.  
  5505.  
  5506.     13.2.  Installing link state advertisements in the database
  5507.  
  5508.         Installing a new link state advertisement in the database,
  5509.         either as the result of flooding or a newly self-originated
  5510.         advertisement, may cause the OSPF routing table structure to be
  5511.         recalculated.  The contents of the new advertisement should be
  5512.         compared to the old instance, if present.  If there is no
  5513.  
  5514.  
  5515.  
  5516. Moy                                                           [Page 130]
  5517.  
  5518. RFC 1583                     OSPF Version 2                   March 1994
  5519.  
  5520.  
  5521.         difference, there is no need to recalculate the routing table.
  5522.         (Note that even if the contents are the same, the LS checksum
  5523.         will probably be different, since the checksum covers the LS
  5524.         sequence number.)
  5525.  
  5526.         If the contents are different, the following pieces of the
  5527.         routing table must be recalculated, depending on the new
  5528.         advertisement's LS type field:
  5529.  
  5530.  
  5531.         Router links and network links advertisements
  5532.             The entire routing table must be recalculated, starting with
  5533.             the shortest path calculations for each area (not just the
  5534.             area whose topological database has changed).  The reason
  5535.             that the shortest path calculation cannot be restricted to
  5536.             the single changed area has to do with the fact that AS
  5537.             boundary routers may belong to multiple areas.  A change in
  5538.             the area currently providing the best route may force the
  5539.             router to use an intra-area route provided by a different
  5540.             area.[16]
  5541.  
  5542.         Summary link advertisements
  5543.             The best route to the destination described by the summary
  5544.             link advertisement must be recalculated (see Section 16.5).
  5545.             If this destination is an AS boundary router, it may also be
  5546.             necessary to re-examine all the AS external link
  5547.             advertisements.
  5548.  
  5549.         AS external link advertisements
  5550.             The best route to the destination described by the AS
  5551.             external link advertisement must be recalculated (see
  5552.             Section 16.6).
  5553.  
  5554.  
  5555.         Also, any old instance of the advertisement must be removed from
  5556.         the database when the new advertisement is installed.  This old
  5557.         instance must also be removed from all neighbors' Link state
  5558.         retransmission lists (see Section 10).
  5559.  
  5560.  
  5561.     13.3.  Next step in the flooding procedure
  5562.  
  5563.         When a new (and more recent) advertisement has been received, it
  5564.         must be flooded out some set of the router's interfaces.  This
  5565.         section describes the second part of flooding procedure (the
  5566.         first part being the processing that occurred in Section 13),
  5567.         namely, selecting the outgoing interfaces and adding the
  5568.         advertisement to the appropriate neighbors' Link state
  5569.  
  5570.  
  5571.  
  5572. Moy                                                           [Page 131]
  5573.  
  5574. RFC 1583                     OSPF Version 2                   March 1994
  5575.  
  5576.  
  5577.         retransmission lists.  Also included in this part of the
  5578.         flooding procedure is the maintenance of the neighbors' Link
  5579.         state request lists.
  5580.  
  5581.         This section is equally applicable to the flooding of an
  5582.         advertisement that the router itself has just originated (see
  5583.         Section 12.4).  For these advertisements, this section provides
  5584.         the entirety of the flooding procedure (i.e., the processing of
  5585.         Section 13 is not performed, since, for example, the
  5586.         advertisement has not been received from a neighbor and
  5587.         therefore does not need to be acknowledged).
  5588.  
  5589.         Depending upon the advertisement's LS type, the advertisement
  5590.         can be flooded out only certain interfaces.  These interfaces,
  5591.         defined by the following, are called the eligible interfaces:
  5592.  
  5593.  
  5594.         AS external link advertisements (LS Type = 5)
  5595.             AS external link advertisements are flooded throughout the
  5596.             entire AS, with the exception of stub areas (see Section
  5597.             3.6).  The eligible interfaces are all the router's
  5598.             interfaces, excluding virtual links and those interfaces
  5599.             attaching to stub areas.
  5600.  
  5601.         All other LS types
  5602.             All other types are specific to a single area (Area A).  The
  5603.             eligible interfaces are all those interfaces attaching to
  5604.             the Area A.  If Area A is the backbone, this includes all
  5605.             the virtual links.
  5606.  
  5607.  
  5608.         Link state databases must remain synchronized over all
  5609.         adjacencies associated with the above eligible interfaces.  This
  5610.         is accomplished by executing the following steps on each
  5611.         eligible interface.  It should be noted that this procedure may
  5612.         decide not to flood a link state advertisement out a particular
  5613.         interface, if there is a high probability that the attached
  5614.         neighbors have already received the advertisement.  However, in
  5615.         these cases the flooding procedure must be absolutely sure that
  5616.         the neighbors eventually do receive the advertisement, so the
  5617.         advertisement is still added to each adjacency's Link state
  5618.         retransmission list.  For each eligible interface:
  5619.  
  5620.  
  5621.         (1) Each of the neighbors attached to this interface are
  5622.             examined, to determine whether they must receive the new
  5623.             advertisement.  The following steps are executed for each
  5624.             neighbor:
  5625.  
  5626.  
  5627.  
  5628. Moy                                                           [Page 132]
  5629.  
  5630. RFC 1583                     OSPF Version 2                   March 1994
  5631.  
  5632.  
  5633.             (a) If the neighbor is in a lesser state than Exchange, it
  5634.                 does not participate in flooding, and the next neighbor
  5635.                 should be examined.
  5636.  
  5637.             (b) Else, if the adjacency is not yet full (neighbor state
  5638.                 is Exchange or Loading), examine the Link state request
  5639.                 list associated with this adjacency.  If there is an
  5640.                 instance of the new advertisement on the list, it
  5641.                 indicates that the neighboring router has an instance of
  5642.                 the advertisement already.  Compare the new
  5643.                 advertisement to the neighbor's copy:
  5644.  
  5645.                 o   If the new advertisement is less recent, then
  5646.                     examine the next neighbor.
  5647.  
  5648.                 o   If the two copies are the same instance, then delete
  5649.                     the advertisement from the Link state request list,
  5650.                     and examine the next neighbor.[17]
  5651.  
  5652.                 o   Else, the new advertisement is more recent.  Delete
  5653.                     the advertisement from the Link state request list.
  5654.  
  5655.             (c) If the new advertisement was received from this
  5656.                 neighbor, examine the next neighbor.
  5657.  
  5658.             (d) At this point we are not positive that the neighbor has
  5659.                 an up-to-date instance of this new advertisement.  Add
  5660.                 the new advertisement to the Link state retransmission
  5661.                 list for the adjacency.  This ensures that the flooding
  5662.                 procedure is reliable; the advertisement will be
  5663.                 retransmitted at intervals until an acknowledgment is
  5664.                 seen from the neighbor.
  5665.  
  5666.         (2) The router must now decide whether to flood the new link
  5667.             state advertisement out this interface.  If in the previous
  5668.             step, the link state advertisement was NOT added to any of
  5669.             the Link state retransmission lists, there is no need to
  5670.             flood the advertisement out the interface and the next
  5671.             interface should be examined.
  5672.  
  5673.         (3) If the new advertisement was received on this interface, and
  5674.             it was received from either the Designated Router or the
  5675.             Backup Designated Router, chances are that all the neighbors
  5676.             have received the advertisement already.  Therefore, examine
  5677.             the next interface.
  5678.  
  5679.         (4) If the new advertisement was received on this interface, and
  5680.             the interface state is Backup (i.e., the router itself is
  5681.  
  5682.  
  5683.  
  5684. Moy                                                           [Page 133]
  5685.  
  5686. RFC 1583                     OSPF Version 2                   March 1994
  5687.  
  5688.  
  5689.             the Backup Designated Router), examine the next interface.
  5690.             The Designated Router will do the flooding on this
  5691.             interface.  If the Designated Router fails, this router will
  5692.             end up retransmitting the updates.
  5693.  
  5694.         (5) If this step is reached, the advertisement must be flooded
  5695.             out the interface.  Send a Link State Update packet (with
  5696.             the new advertisement as contents) out the interface.  The
  5697.             advertisement's LS age must be incremented by InfTransDelay
  5698.             (which must be > 0) when copied into the outgoing Link State
  5699.             Update packet (until the LS age field reaches its maximum
  5700.             value of MaxAge).
  5701.  
  5702.             On broadcast networks, the Link State Update packets are
  5703.             multicast.  The destination IP address specified for the
  5704.             Link State Update Packet depends on the state of the
  5705.             interface.  If the interface state is DR or Backup, the
  5706.             address AllSPFRouters should be used.  Otherwise, the
  5707.             address AllDRouters should be used.
  5708.  
  5709.             On non-broadcast, multi-access networks, separate Link State
  5710.             Update packets must be sent, as unicasts, to each adjacent
  5711.             neighbor (i.e., those in state Exchange or greater).  The
  5712.             destination IP addresses for these packets are the
  5713.             neighbors' IP addresses.
  5714.  
  5715.  
  5716.     13.4.  Receiving self-originated link state
  5717.  
  5718.         It is a common occurrence for a router to receive self-
  5719.         originated link state advertisements via the flooding procedure.
  5720.         A self-originated advertisement is detected when either 1) the
  5721.         advertisement's Advertising Router is equal to the router's own
  5722.         Router ID or 2) the advertisement is a network links
  5723.         advertisement and its Link State ID is equal to one of the
  5724.         router's own IP interface addresses.
  5725.  
  5726.         However, if the received self-originated advertisement is newer
  5727.         than the last instance that the router actually originated, the
  5728.         router must take special action.  The reception of such an
  5729.         advertisement indicates that there are link state advertisements
  5730.         in the routing domain that were originated before the last time
  5731.         the router was restarted. In most cases, the router must then
  5732.         advance the advertisement's LS sequence number one past the
  5733.         received LS sequence number, and originate a new instance of the
  5734.         advertisement.
  5735.  
  5736.         It may be the case the router no longer wishes to originate the
  5737.  
  5738.  
  5739.  
  5740. Moy                                                           [Page 134]
  5741.  
  5742. RFC 1583                     OSPF Version 2                   March 1994
  5743.  
  5744.  
  5745.         received advertisement. Possible examples include: 1) the
  5746.         advertisement is a summary link or AS external link and the
  5747.         router no longer has an (advertisable) route to the destination,
  5748.         2) the advertisement is a network links advertisement but the
  5749.         router is no longer Designated Router for the network or 3) the
  5750.         advertisement is a network links advertisement whose Link State
  5751.         ID is one of the router's own IP interface addresses but whose
  5752.         Advertising Router is not equal to the router's own Router ID
  5753.         (this latter case should be rare, and it indicates that the
  5754.         router's Router ID has changed since originating the
  5755.         advertisement).  In all these cases, instead of updating the
  5756.         advertisement, the advertisement should be flushed from the
  5757.         routing domain by incrementing the received advertisement's LS
  5758.         age to MaxAge and reflooding (see Section 14.1).
  5759.  
  5760.  
  5761.     13.5.  Sending Link State Acknowledgment packets
  5762.  
  5763.         Each newly received link state advertisement must be
  5764.         acknowledged.  This is usually done by sending Link State
  5765.         Acknowledgment packets.  However, acknowledgments can also be
  5766.         accomplished implicitly by sending Link State Update packets
  5767.         (see step 7a of Section 13).
  5768.  
  5769.         Many acknowledgments may be grouped together into a single Link
  5770.         State Acknowledgment packet.  Such a packet is sent back out the
  5771.         interface that has received the advertisements.  The packet can
  5772.         be sent in one of two ways: delayed and sent on an interval
  5773.         timer, or sent directly (as a unicast) to a particular neighbor.
  5774.         The particular acknowledgment strategy used depends on the
  5775.         circumstances surrounding the receipt of the advertisement.
  5776.  
  5777.         Sending delayed acknowledgments accomplishes several things: it
  5778.         facilitates the packaging of multiple acknowledgments in a
  5779.         single Link State Acknowledgment packet; it enables a single
  5780.         Link State Acknowledgment packet to indicate acknowledgments to
  5781.         several neighbors at once (through multicasting); and it
  5782.         randomizes the Link State Acknowledgment packets sent by the
  5783.         various routers attached to a multi-access network.  The fixed
  5784.         interval between a router's delayed transmissions must be short
  5785.         (less than RxmtInterval) or needless retransmissions will ensue.
  5786.  
  5787.         Direct acknowledgments are sent to a particular neighbor in
  5788.         response to the receipt of duplicate link state advertisements.
  5789.         These acknowledgments are sent as unicasts, and are sent
  5790.         immediately when the duplicate is received.
  5791.  
  5792.         The precise procedure for sending Link State Acknowledgment
  5793.  
  5794.  
  5795.  
  5796. Moy                                                           [Page 135]
  5797.  
  5798. RFC 1583                     OSPF Version 2                   March 1994
  5799.  
  5800.  
  5801.         packets is described in Table 19.  The circumstances surrounding
  5802.         the receipt of the advertisement are listed in the left column.
  5803.         The acknowledgment action then taken is listed in one of the two
  5804.         right columns.  This action depends on the state of the
  5805.         concerned interface; interfaces in state Backup behave
  5806.         differently from interfaces in all other states.  Delayed
  5807.         acknowledgments must be delivered to all adjacent routers
  5808.         associated with the interface.  On broadcast networks, this is
  5809.         accomplished by sending the delayed Link State Acknowledgment
  5810.         packets as multicasts.  The Destination IP address used depends
  5811.         on the state of the interface.  If the state is DR or Backup,
  5812.         the destination AllSPFRouters is used.  In other states, the
  5813.         destination AllDRouters is used.  On non-broadcast networks,
  5814.         delayed Link State Acknowledgment packets must be unicast
  5815.         separately over each adjacency (i.e., neighbor whose state is >=
  5816.         Exchange).
  5817.  
  5818.         The reasoning behind sending the above packets as multicasts is
  5819.         best explained by an example.  Consider the network
  5820.         configuration depicted in Figure 15.  Suppose RT4 has been
  5821.         elected as Designated Router, and RT3 as Backup Designated
  5822.         Router for the network N3.  When Router RT4 floods a new
  5823.         advertisement to Network N3, it is received by routers RT1, RT2,
  5824.         and RT3.  These routers will not flood the advertisement back
  5825.         onto net N3, but they still must ensure that their topological
  5826.         databases remain synchronized with their adjacent neighbors.  So
  5827.         RT1, RT2, and RT4 are waiting to see an acknowledgment from RT3.
  5828.         Likewise, RT4 and RT3 are both waiting to see acknowledgments
  5829.         from RT1 and RT2.  This is best achieved by sending the
  5830.         acknowledgments as multicasts.
  5831.  
  5832.         The reason that the acknowledgment logic for Backup DRs is
  5833.         slightly different is because they perform differently during
  5834.         the flooding of link state advertisements (see Section 13.3,
  5835.         step 4).
  5836.  
  5837.  
  5838.  
  5839.     13.6.  Retransmitting link state advertisements
  5840.  
  5841.         Advertisements flooded out an adjacency are placed on the
  5842.         adjacency's Link state retransmission list.  In order to ensure
  5843.         that flooding is reliable, these advertisements are
  5844.         retransmitted until they are acknowledged.  The length of time
  5845.         between retransmissions is a configurable per-interface value,
  5846.         RxmtInterval.  If this is set too low for an interface, needless
  5847.         retransmissions will ensue.  If the value is set too high, the
  5848.         speed of the flooding, in the face of lost packets, may be
  5849.  
  5850.  
  5851.  
  5852. Moy                                                           [Page 136]
  5853.  
  5854. RFC 1583                     OSPF Version 2                   March 1994
  5855.  
  5856.  
  5857.  
  5858.  
  5859.  
  5860.  
  5861.                                     Action taken in state
  5862.     Circumstances          Backup                All other states
  5863.     _______________________________________________________________
  5864.     Advertisement  has     No  acknowledgment    No  acknowledgment
  5865.     been  flooded back     sent.                 sent.
  5866.     out receiving  in-
  5867.     terface  (see Sec-
  5868.     tion 13, step 5b).
  5869.     _______________________________________________________________
  5870.     Advertisement   is     Delayed acknowledg-   Delayed       ack-
  5871.     more  recent  than     ment sent if adver-   nowledgment sent.
  5872.     database copy, but     tisement   received
  5873.     was   not  flooded     from    Designated
  5874.     back out receiving     Router,  otherwise
  5875.     interface              do nothing
  5876.     _______________________________________________________________
  5877.     Advertisement is a     Delayed acknowledg-   No  acknowledgment
  5878.     duplicate, and was     ment sent if adver-   sent.
  5879.     treated as an  im-     tisement   received
  5880.     plied  acknowledg-     from    Designated
  5881.     ment (see  Section     Router,  otherwise
  5882.     13, step 7a).          do nothing
  5883.     _______________________________________________________________
  5884.     Advertisement is a     Direct acknowledg-    Direct acknowledg-
  5885.     duplicate, and was     ment sent.            ment sent.
  5886.     not treated as  an
  5887.     implied       ack-
  5888.     nowledgment.
  5889.     _______________________________________________________________
  5890.     Advertisement's LS     Direct acknowledg-    Direct acknowledg-
  5891.     age is equal to        ment sent.            ment sent.
  5892.     MaxAge, and there is
  5893.     no current instance
  5894.     of the advertisement
  5895.     in the link state
  5896.     database (see
  5897.     Section 13, step 4).
  5898.  
  5899.  
  5900.              Table 19: Sending link state acknowledgements.
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908. Moy                                                           [Page 137]
  5909.  
  5910. RFC 1583                     OSPF Version 2                   March 1994
  5911.  
  5912.  
  5913.         affected.
  5914.  
  5915.         Several retransmitted advertisements may fit into a single Link
  5916.         State Update packet.  When advertisements are to be
  5917.         retransmitted, only the number fitting in a single Link State
  5918.         Update packet should be transmitted.  Another packet of
  5919.         retransmissions can be sent when some of the advertisements are
  5920.         acknowledged, or on the next firing of the retransmission timer.
  5921.  
  5922.         Link State Update Packets carrying retransmissions are always
  5923.         sent as unicasts (directly to the physical address of the
  5924.         neighbor).  They are never sent as multicasts.  Each
  5925.         advertisement's LS age must be incremented by InfTransDelay
  5926.         (which must be > 0) when copied into the outgoing Link State
  5927.         Update packet (until the LS age field reaches its maximum value
  5928.         of MaxAge).
  5929.  
  5930.         If the adjacent router goes down, retransmissions may occur
  5931.         until the adjacency is destroyed by OSPF's Hello Protocol.  When
  5932.         the adjacency is destroyed, the Link state retransmission list
  5933.         is cleared.
  5934.  
  5935.  
  5936.     13.7.  Receiving link state acknowledgments
  5937.  
  5938.         Many consistency checks have been made on a received Link State
  5939.         Acknowledgment packet before it is handed to the flooding
  5940.         procedure.  In particular, it has been associated with a
  5941.         particular neighbor.  If this neighbor is in a lesser state than
  5942.         Exchange, the Link State Acknowledgment packet is discarded.
  5943.  
  5944.         Otherwise, for each acknowledgment in the Link State
  5945.         Acknowledgment packet, the following steps are performed:
  5946.  
  5947.  
  5948.         o   Does the advertisement acknowledged have an instance on the
  5949.             Link state retransmission list for the neighbor?  If not,
  5950.             examine the next acknowledgment.  Otherwise:
  5951.  
  5952.         o   If the acknowledgment is for the same instance that is
  5953.             contained on the list, remove the item from the list and
  5954.             examine the next acknowledgment.  Otherwise:
  5955.  
  5956.         o   Log the questionable acknowledgment, and examine the next
  5957.             one.
  5958.  
  5959.  
  5960.  
  5961.  
  5962.  
  5963.  
  5964. Moy                                                           [Page 138]
  5965.  
  5966. RFC 1583                     OSPF Version 2                   March 1994
  5967.  
  5968.  
  5969. 14.  Aging The Link State Database
  5970.  
  5971.     Each link state advertisement has an LS age field.  The LS age is
  5972.     expressed in seconds.  An advertisement's LS age field is
  5973.     incremented while it is contained in a router's database.  Also,
  5974.     when copied into a Link State Update Packet for flooding out a
  5975.     particular interface, the advertisement's LS age is incremented by
  5976.     InfTransDelay.
  5977.  
  5978.     An advertisement's LS age is never incremented past the value
  5979.     MaxAge.  Advertisements having age MaxAge are not used in the
  5980.     routing table calculation.  As a router ages its link state
  5981.     database, an advertisement's LS age may reach MaxAge.[18] At this
  5982.     time, the router must attempt to flush the advertisement from the
  5983.     routing domain.  This is done simply by reflooding the MaxAge
  5984.     advertisement just as if it was a newly originated advertisement
  5985.     (see Section 13.3).
  5986.  
  5987.     When creating a Database summary list for a newly forming adjacency,
  5988.     any MaxAge advertisements present in the link state database are
  5989.     added to the neighbor's Link state retransmission list instead of
  5990.     the neighbor's Database summary list.  See Section 10.3 for more
  5991.     details.
  5992.  
  5993.     A MaxAge advertisement must be removed immediately from the router's
  5994.     link state database as soon as both a) it is no longer contained on
  5995.     any neighbor Link state retransmission lists and b) none of the
  5996.     router's neighbors are in states Exchange or Loading.
  5997.  
  5998.     When, in the process of aging the link state database, an
  5999.     advertisement's LS age hits a multiple of CheckAge, its LS checksum
  6000.     should be verified.  If the LS checksum is incorrect, a program or
  6001.     memory error has been detected, and at the very least the router
  6002.     itself should be restarted.
  6003.  
  6004.  
  6005.     14.1.  Premature aging of advertisements
  6006.  
  6007.         A link state advertisement can be flushed from the routing
  6008.         domain by setting its LS age to MaxAge and reflooding the
  6009.         advertisement.  This procedure follows the same course as
  6010.         flushing an advertisement whose LS age has naturally reached the
  6011.         value MaxAge (see Section 14).  In particular, the MaxAge
  6012.         advertisement is removed from the router's link state database
  6013.         as soon as a) it is no longer contained on any neighbor Link
  6014.         state retransmission lists and b) none of the router's neighbors
  6015.         are in states Exchange or Loading.  We call the setting of an
  6016.         advertisement's LS age to MaxAge premature aging.
  6017.  
  6018.  
  6019.  
  6020. Moy                                                           [Page 139]
  6021.  
  6022. RFC 1583                     OSPF Version 2                   March 1994
  6023.  
  6024.  
  6025.         Premature aging is used when it is time for a self-originated
  6026.         advertisement's sequence number field to wrap.  At this point,
  6027.         the current advertisement instance (having LS sequence number of
  6028.         0x7fffffff) must be prematurely aged and flushed from the
  6029.         routing domain before a new instance with sequence number
  6030.         0x80000001 can be originated.  See Section 12.1.6 for more
  6031.         information.
  6032.  
  6033.         Premature aging can also be used when, for example, one of the
  6034.         router's previously advertised external routes is no longer
  6035.         reachable.  In this circumstance, the router can flush its
  6036.         external advertisement from the routing domain via premature
  6037.         aging. This procedure is preferable to the alternative, which is
  6038.         to originate a new advertisement for the destination specifying
  6039.         a metric of LSInfinity.  Premature aging is also be used when
  6040.         unexpectedly receiving self-originated advertisements during the
  6041.         flooding procedure (see Section 13.4).
  6042.  
  6043.         A router may only prematurely age its own self-originated link
  6044.         state advertisements. The router may not prematurely age
  6045.         advertisements that have been originated by other routers. An
  6046.         advertisement is considered self-originated when either 1) the
  6047.         advertisement's Advertising Router is equal to the router's own
  6048.         Router ID or 2) the advertisement is a network links
  6049.         advertisement and its Link State ID is equal to one of the
  6050.         router's own IP interface addresses.
  6051.  
  6052.  
  6053. 15.  Virtual Links
  6054.  
  6055.     The single backbone area (Area ID = 0.0.0.0) cannot be disconnected,
  6056.     or some areas of the Autonomous System will become unreachable.  To
  6057.     establish/maintain connectivity of the backbone, virtual links can
  6058.     be configured through non-backbone areas.  Virtual links serve to
  6059.     connect physically separate components of the backbone.  The two
  6060.     endpoints of a virtual link are area border routers.  The virtual
  6061.     link must be configured in both routers.  The configuration
  6062.     information in each router consists of the other virtual endpoint
  6063.     (the other area border router), and the non-backbone area the two
  6064.     routers have in common (called the transit area).  Virtual links
  6065.     cannot be configured through stub areas (see Section 3.6).
  6066.  
  6067.     The virtual link is treated as if it were an unnumbered point-to-
  6068.     point network (belonging to the backbone) joining the two area
  6069.     border routers.  An attempt is made to establish an adjacency over
  6070.     the virtual link.  When this adjacency is established, the virtual
  6071.     link will be included in backbone router links advertisements, and
  6072.     OSPF packets pertaining to the backbone area will flow over the
  6073.  
  6074.  
  6075.  
  6076. Moy                                                           [Page 140]
  6077.  
  6078. RFC 1583                     OSPF Version 2                   March 1994
  6079.  
  6080.  
  6081.     adjacency.  Such an adjacency has been referred to in this document
  6082.     as a "virtual adjacency".
  6083.  
  6084.     In each endpoint router, the cost and viability of the virtual link
  6085.     is discovered by examining the routing table entry for the other
  6086.     endpoint router.  (The entry's associated area must be the
  6087.     configured transit area).  Actually, there may be a separate routing
  6088.     table entry for each Type of Service.  These are called the virtual
  6089.     link's corresponding routing table entries.  The InterfaceUp event
  6090.     occurs for a virtual link when its corresponding TOS 0 routing table
  6091.     entry becomes reachable.  Conversely, the InterfaceDown event occurs
  6092.     when its TOS 0 routing table entry becomes unreachable.[19] In other
  6093.     words, the virtual link's viability is determined by the existence
  6094.     of an intra-area path, through the transit area, between the two
  6095.     endpoints.  Note that a virtual link whose underlying path has cost
  6096.     greater than hexadecimal 0xffff (the maximum size of an interface
  6097.     cost in a router links advertisement) should be considered
  6098.     inoperational (i.e., treated the same as if the path did not exist).
  6099.  
  6100.     The other details concerning virtual links are as follows:
  6101.  
  6102.     o   AS external links are NEVER flooded over virtual adjacencies.
  6103.         This would be duplication of effort, since the same AS external
  6104.         links are already flooded throughout the virtual link's transit
  6105.         area.  For this same reason, AS external link advertisements are
  6106.         not summarized over virtual adjacencies during the Database
  6107.         Exchange process.
  6108.  
  6109.     o   The cost of a virtual link is NOT configured.  It is defined to
  6110.         be the cost of the intra-area path between the two defining area
  6111.         border routers.  This cost appears in the virtual link's
  6112.         corresponding routing table entry.  When the cost of a virtual
  6113.         link changes, a new router links advertisement should be
  6114.         originated for the backbone area.
  6115.  
  6116.     o   Just as the virtual link's cost and viability are determined by
  6117.         the routing table build process (through construction of the
  6118.         routing table entry for the other endpoint), so are the IP
  6119.         interface address for the virtual interface and the virtual
  6120.         neighbor's IP address.  These are used when sending OSPF
  6121.         protocol packets over the virtual link. Note that when one (or
  6122.         both) of the virtual link endpoints connect to the transit area
  6123.         via an unnumbered point-to-point link, it may be impossible to
  6124.         calculate either the virtual interface's IP address and/or the
  6125.         virtual neighbor's IP address, thereby causing the virtual link
  6126.         to fail.
  6127.  
  6128.  
  6129.  
  6130.  
  6131.  
  6132. Moy                                                           [Page 141]
  6133.  
  6134. RFC 1583                     OSPF Version 2                   March 1994
  6135.  
  6136.  
  6137.     o   In each endpoint's router links advertisement for the backbone,
  6138.         the virtual link is represented as a Type 4 link whose Link ID
  6139.         is set to the virtual neighbor's OSPF Router ID and whose Link
  6140.         Data is set to the virtual interface's IP address.  See Section
  6141.         12.4.1 for more information. Note that it may be the case that
  6142.         there is a TOS 0 path, but no non-zero TOS paths, between the
  6143.         two endpoint routers.  In this case, both routers must revert to
  6144.         being non-TOS-capable, clearing the T-bit in the Options field
  6145.         of their backbone router links advertisements.
  6146.  
  6147.     o   When virtual links are configured for the backbone, information
  6148.         concerning backbone networks should not be condensed before
  6149.         being summarized for the transit areas.  In other words, each
  6150.         backbone network should be advertised into the transit areas in
  6151.         a separate summary link advertisement, regardless of the
  6152.         backbone's configured area address ranges.  See Section 12.4.3
  6153.         for more information.
  6154.  
  6155.     o   The time between link state retransmissions, RxmtInterval, is
  6156.         configured for a virtual link.  This should be well over the
  6157.         expected round-trip delay between the two routers.  This may be
  6158.         hard to estimate for a virtual link; it is better to err on the
  6159.         side of making it too large.
  6160.  
  6161.  
  6162. 16.  Calculation Of The Routing Table
  6163.  
  6164.     This section details the OSPF routing table calculation.  Using its
  6165.     attached areas' link state databases as input, a router runs the
  6166.     following algorithm, building its routing table step by step.  At
  6167.     each step, the router must access individual pieces of the link
  6168.     state databases (e.g., a router links advertisement originated by a
  6169.     certain router).  This access is performed by the lookup function
  6170.     discussed in Section 12.2.  The lookup process may return a link
  6171.     state advertisement whose LS age is equal to MaxAge.  Such an
  6172.     advertisement should not be used in the routing table calculation,
  6173.     and is treated just as if the lookup process had failed.
  6174.  
  6175.     The OSPF routing table's organization is explained in Section 11.
  6176.     Two examples of the routing table build process are presented in
  6177.     Sections 11.2 and 11.3.  This process can be broken into the
  6178.     following steps:
  6179.  
  6180.  
  6181.     (1) The present routing table is invalidated.  The routing table is
  6182.         built again from scratch.  The old routing table is saved so
  6183.         that changes in routing table entries can be identified.
  6184.  
  6185.  
  6186.  
  6187.  
  6188. Moy                                                           [Page 142]
  6189.  
  6190. RFC 1583                     OSPF Version 2                   March 1994
  6191.  
  6192.  
  6193.     (2) The intra-area routes are calculated by building the shortest-
  6194.         path tree for each attached area.  In particular, all routing
  6195.         table entries whose Destination Type is "area border router" are
  6196.         calculated in this step.  This step is described in two parts.
  6197.         At first the tree is constructed by only considering those links
  6198.         between routers and transit networks.  Then the stub networks
  6199.         are incorporated into the tree. During the area's shortest-path
  6200.         tree calculation, the area's TransitCapability is also
  6201.         calculated for later use in Step 4.
  6202.  
  6203.     (3) The inter-area routes are calculated, through examination of
  6204.         summary link advertisements.  If the router is attached to
  6205.         multiple areas (i.e., it is an area border router), only
  6206.         backbone summary link advertisements are examined.
  6207.  
  6208.     (4) In area border routers connecting to one or more transit areas
  6209.         (i.e, non-backbone areas whose TransitCapability is found to be
  6210.         TRUE), the transit areas' summary link advertisements are
  6211.         examined to see whether better paths exist using the transit
  6212.         areas than were found in Steps 2-3 above.
  6213.  
  6214.     (5) Routes to external destinations are calculated, through
  6215.         examination of AS external link advertisements.  The locations
  6216.         of the AS boundary routers (which originate the AS external link
  6217.         advertisements) have been determined in steps 2-4.
  6218.  
  6219.  
  6220.     Steps 2-5 are explained in further detail below.  The explanations
  6221.     describe the calculations for TOS 0 only.  It may also be necessary
  6222.     to perform each step (separately) for each of the non-zero TOS
  6223.     values.[20] For more information concerning the building of non-zero
  6224.     TOS routes see Section 16.9.
  6225.  
  6226.     Changes made to routing table entries as a result of these
  6227.     calculations can cause the OSPF protocol to take further actions.
  6228.     For example, a change to an intra-area route will cause an area
  6229.     border router to originate new summary link advertisements (see
  6230.     Section 12.4).  See Section 16.7 for a complete list of the OSPF
  6231.     protocol actions resulting from routing table changes.
  6232.  
  6233.  
  6234.     16.1.  Calculating the shortest-path tree for an area
  6235.  
  6236.         This calculation yields the set of intra-area routes associated
  6237.         with an area (called hereafter Area A).  A router calculates the
  6238.         shortest-path tree using itself as the root.[21] The formation
  6239.         of the shortest path tree is done here in two stages.  In the
  6240.         first stage, only links between routers and transit networks are
  6241.  
  6242.  
  6243.  
  6244. Moy                                                           [Page 143]
  6245.  
  6246. RFC 1583                     OSPF Version 2                   March 1994
  6247.  
  6248.  
  6249.         considered.  Using the Dijkstra algorithm, a tree is formed from
  6250.         this subset of the link state database.  In the second stage,
  6251.         leaves are added to the tree by considering the links to stub
  6252.         networks.
  6253.  
  6254.         The procedure will be explained using the graph terminology that
  6255.         was introduced in Section 2.  The area's link state database is
  6256.         represented as a directed graph.  The graph's vertices are
  6257.         routers, transit networks and stub networks.  The first stage of
  6258.         the procedure concerns only the transit vertices (routers and
  6259.         transit networks) and their connecting links.  Throughout the
  6260.         shortest path calculation, the following data is also associated
  6261.         with each transit vertex:
  6262.  
  6263.  
  6264.         Vertex (node) ID
  6265.             A 32-bit number uniquely identifying the vertex.  For router
  6266.             vertices this is the router's OSPF Router ID.  For network
  6267.             vertices, this is the IP address of the network's Designated
  6268.             Router.
  6269.  
  6270.         A link state advertisement
  6271.             Each transit vertex has an associated link state
  6272.             advertisement.  For router vertices, this is a router links
  6273.             advertisement.  For transit networks, this is a network
  6274.             links advertisement (which is actually originated by the
  6275.             network's Designated Router).  In any case, the
  6276.             advertisement's Link State ID is always equal to the above
  6277.             Vertex ID.
  6278.  
  6279.         List of next hops
  6280.             The list of next hops for the current set of shortest paths
  6281.             from the root to this vertex.  There can be multiple
  6282.             shortest paths due to the equal-cost multipath capability.
  6283.             Each next hop indicates the outgoing router interface to use
  6284.             when forwarding traffic to the destination.  On multi-access
  6285.             networks, the next hop also includes the IP address of the
  6286.             next router (if any) in the path towards the destination.
  6287.  
  6288.         Distance from root
  6289.             The link state cost of the current set of shortest paths
  6290.             from the root to the vertex.  The link state cost of a path
  6291.             is calculated as the sum of the costs of the path's
  6292.             constituent links (as advertised in router links and network
  6293.             links advertisements).  One path is said to be "shorter"
  6294.             than another if it has a smaller link state cost.
  6295.  
  6296.  
  6297.  
  6298.  
  6299.  
  6300. Moy                                                           [Page 144]
  6301.  
  6302. RFC 1583                     OSPF Version 2                   March 1994
  6303.  
  6304.  
  6305.         The first stage of the procedure (i.e., the Dijkstra algorithm)
  6306.         can now be summarized as follows. At each iteration of the
  6307.         algorithm, there is a list of candidate vertices.  Paths from
  6308.         the root to these vertices have been found, but not necessarily
  6309.         the shortest ones.  However, the paths to the candidate vertex
  6310.         that is closest to the root are guaranteed to be shortest; this
  6311.         vertex is added to the shortest-path tree, removed from the
  6312.         candidate list, and its adjacent vertices are examined for
  6313.         possible addition to/modification of the candidate list.  The
  6314.         algorithm then iterates again.  It terminates when the candidate
  6315.         list becomes empty.
  6316.  
  6317.         The following steps describe the algorithm in detail.  Remember
  6318.         that we are computing the shortest path tree for Area A.  All
  6319.         references to link state database lookup below are from Area A's
  6320.         database.
  6321.  
  6322.  
  6323.         (1) Initialize the algorithm's data structures.  Clear the list
  6324.             of candidate vertices.  Initialize the shortest-path tree to
  6325.             only the root (which is the router doing the calculation).
  6326.             Set Area A's TransitCapability to FALSE.
  6327.  
  6328.         (2) Call the vertex just added to the tree vertex V.  Examine
  6329.             the link state advertisement associated with vertex V.  This
  6330.             is a lookup in the Area A's link state database based on the
  6331.             Vertex ID.  If this is a router links advertisement, and bit
  6332.             V of the router links advertisement (see Section A.4.2) is
  6333.             set, set Area A's TransitCapability to TRUE.  In any case,
  6334.             each link described by the advertisement gives the cost to
  6335.             an adjacent vertex.  For each described link, (say it joins
  6336.             vertex V to vertex W):
  6337.  
  6338.             (a) If this is a link to a stub network, examine the next
  6339.                 link in V's advertisement.  Links to stub networks will
  6340.                 be considered in the second stage of the shortest path
  6341.                 calculation.
  6342.  
  6343.             (b) Otherwise, W is a transit vertex (router or transit
  6344.                 network).  Look up the vertex W's link state
  6345.                 advertisement (router links or network links) in Area
  6346.                 A's link state database.  If the advertisement does not
  6347.                 exist, or its LS age is equal to MaxAge, or it does not
  6348.                 have a link back to vertex V, examine the next link in
  6349.                 V's advertisement.[22]
  6350.  
  6351.             (c) If vertex W is already on the shortest-path tree,
  6352.                 examine the next link in the advertisement.
  6353.  
  6354.  
  6355.  
  6356. Moy                                                           [Page 145]
  6357.  
  6358. RFC 1583                     OSPF Version 2                   March 1994
  6359.  
  6360.  
  6361.             (d) Calculate the link state cost D of the resulting path
  6362.                 from the root to vertex W.  D is equal to the sum of the
  6363.                 link state cost of the (already calculated) shortest
  6364.                 path to vertex V and the advertised cost of the link
  6365.                 between vertices V and W.  If D is:
  6366.  
  6367.                 o   Greater than the value that already appears for
  6368.                     vertex W on the candidate list, then examine the
  6369.                     next link.
  6370.  
  6371.                 o   Equal to the value that appears for vertex W on the
  6372.                     candidate list, calculate the set of next hops that
  6373.                     result from using the advertised link.  Input to
  6374.                     this calculation is the destination (W), and its
  6375.                     parent (V).  This calculation is shown in Section
  6376.                     16.1.1.  This set of hops should be added to the
  6377.                     next hop values that appear for W on the candidate
  6378.                     list.
  6379.  
  6380.                 o   Less than the value that appears for vertex W on the
  6381.                     candidate list, or if W does not yet appear on the
  6382.                     candidate list, then set the entry for W on the
  6383.                     candidate list to indicate a distance of D from the
  6384.                     root.  Also calculate the list of next hops that
  6385.                     result from using the advertised link, setting the
  6386.                     next hop values for W accordingly.  The next hop
  6387.                     calculation is described in Section 16.1.1; it takes
  6388.                     as input the destination (W) and its parent (V).
  6389.  
  6390.         (3) If at this step the candidate list is empty, the shortest-
  6391.             path tree (of transit vertices) has been completely built
  6392.             and this stage of the procedure terminates.  Otherwise,
  6393.             choose the vertex belonging to the candidate list that is
  6394.             closest to the root, and add it to the shortest-path tree
  6395.             (removing it from the candidate list in the process). Note
  6396.             that when there is a choice of vertices closest to the root,
  6397.             network vertices must be chosen before router vertices in
  6398.             order to necessarily find all equal-cost paths. This is
  6399.             consistent with the tie-breakers that were introduced in the
  6400.             modified Dijkstra algorithm used by OSPF's Multicast routing
  6401.             extensions (MOSPF).
  6402.  
  6403.         (4) Possibly modify the routing table.  For those routing table
  6404.             entries modified, the associated area will be set to Area A,
  6405.             the path type will be set to intra-area, and the cost will
  6406.             be set to the newly discovered shortest path's calculated
  6407.             distance.
  6408.  
  6409.  
  6410.  
  6411.  
  6412. Moy                                                           [Page 146]
  6413.  
  6414. RFC 1583                     OSPF Version 2                   March 1994
  6415.  
  6416.  
  6417.             If the newly added vertex is an area border router (call it
  6418.             ABR), a routing table entry is added whose destination type
  6419.             is "area border router". The Options field found in the
  6420.             associated router links advertisement is copied into the
  6421.             routing table entry's Optional capabilities field. If in
  6422.             addition ABR is the endpoint of one of the calculating
  6423.             router's configured virtual links that uses Area A as its
  6424.             Transit area: the virtual link is declared up, the IP
  6425.             address of the virtual interface is set to the IP address of
  6426.             the outgoing interface calculated above for ABR, and the
  6427.             virtual neighbor's IP address is set to the ABR interface
  6428.             address (contained in ABR's router links advertisement) that
  6429.             points back to the root of the shortest-path tree;
  6430.             equivalently, this is the interface that points back to
  6431.             ABR's parent vertex on the shortest-path tree (similar to
  6432.             the calculation in Section 16.1.1).
  6433.  
  6434.             If the newly added vertex is an AS boundary router, the
  6435.             routing table entry of type "AS boundary router" for the
  6436.             destination is located.  Since routers can belong to more
  6437.             than one area, it is possible that several sets of intra-
  6438.             area paths exist to the AS boundary router, each set using a
  6439.             different area.  However, the AS boundary router's routing
  6440.             table entry must indicate a set of paths which utilize a
  6441.             single area.  The area leading to the routing table entry is
  6442.             selected as follows: The area providing the shortest path is
  6443.             always chosen; if more than one area provides paths with the
  6444.             same minimum cost, the area with the largest OSPF Area ID
  6445.             (when considered as an unsigned 32-bit integer) is chosen.
  6446.             Note that whenever an AS boundary router's routing table
  6447.             entry is added/modified, the Options found in the associated
  6448.             router links advertisement is copied into the routing table
  6449.             entry's Optional capabilities field.
  6450.  
  6451.             If the newly added vertex is a transit network, the routing
  6452.             table entry for the network is located.  The entry's
  6453.             Destination ID is the IP network number, which can be
  6454.             obtained by masking the Vertex ID (Link State ID) with its
  6455.             associated subnet mask (found in the body of the associated
  6456.             network links advertisement).  If the routing table entry
  6457.             already exists (i.e., there is already an intra-area route
  6458.             to the destination installed in the routing table), multiple
  6459.             vertices have mapped to the same IP network.  For example,
  6460.             this can occur when a new Designated Router is being
  6461.             established.  In this case, the current routing table entry
  6462.             should be overwritten if and only if the newly found path is
  6463.             just as short and the current routing table entry's Link
  6464.             State Origin has a smaller Link State ID than the newly
  6465.  
  6466.  
  6467.  
  6468. Moy                                                           [Page 147]
  6469.  
  6470. RFC 1583                     OSPF Version 2                   March 1994
  6471.  
  6472.  
  6473.             added vertex' link state advertisement.
  6474.  
  6475.             If there is no routing table entry for the network (the
  6476.             usual case), a routing table entry for the IP network should
  6477.             be added.  The routing table entry's Link State Origin
  6478.             should be set to the newly added vertex' link state
  6479.             advertisement.
  6480.  
  6481.         (5) Iterate the algorithm by returning to Step 2.
  6482.  
  6483.  
  6484.         The stub networks are added to the tree in the procedure's
  6485.         second stage.  In this stage, all router vertices are again
  6486.         examined.  Those that have been determined to be unreachable in
  6487.         the above first phase are discarded.  For each reachable router
  6488.         vertex (call it V), the associated router links advertisement is
  6489.         found in the link state database.  Each stub network link
  6490.         appearing in the advertisement is then examined, and the
  6491.         following steps are executed:
  6492.  
  6493.  
  6494.         (1) Calculate the distance D of stub network from the root.  D
  6495.             is equal to the distance from the root to the router vertex
  6496.             (calculated in stage 1), plus the stub network link's
  6497.             advertised cost.  Compare this distance to the current best
  6498.             cost to the stub network.  This is done by looking up the
  6499.             stub network's current routing table entry.  If the
  6500.             calculated distance D is larger, go on to examine the next
  6501.             stub network link in the advertisement.
  6502.  
  6503.         (2) If this step is reached, the stub network's routing table
  6504.             entry must be updated.  Calculate the set of next hops that
  6505.             would result from using the stub network link.  This
  6506.             calculation is shown in Section 16.1.1; input to this
  6507.             calculation is the destination (the stub network) and the
  6508.             parent vertex (the router vertex).  If the distance D is the
  6509.             same as the current routing table cost, simply add this set
  6510.             of next hops to the routing table entry's list of next hops.
  6511.             In this case, the routing table already has a Link State
  6512.             Origin.  If this Link State Origin is a router links
  6513.             advertisement whose Link State ID is smaller than V's Router
  6514.             ID, reset the Link State Origin to V's router links
  6515.             advertisement.
  6516.  
  6517.             Otherwise D is smaller than the routing table cost.
  6518.             Overwrite the current routing table entry by setting the
  6519.             routing table entry's cost to D, and by setting the entry's
  6520.             list of next hops to the newly calculated set.  Set the
  6521.  
  6522.  
  6523.  
  6524. Moy                                                           [Page 148]
  6525.  
  6526. RFC 1583                     OSPF Version 2                   March 1994
  6527.  
  6528.  
  6529.             routing table entry's Link State Origin to V's router links
  6530.             advertisement.  Then go on to examine the next stub network
  6531.             link.
  6532.  
  6533.  
  6534.         For all routing table entries added/modified in the second
  6535.         stage, the associated area will be set to Area A and the path
  6536.         type will be set to intra-area.  When the list of reachable
  6537.         router links is exhausted, the second stage is completed.  At
  6538.         this time, all intra-area routes associated with Area A have
  6539.         been determined.
  6540.  
  6541.         The specification does not require that the above two stage
  6542.         method be used to calculate the shortest path tree.  However, if
  6543.         another algorithm is used, an identical tree must be produced.
  6544.         For this reason, it is important to note that links between
  6545.         transit vertices must be bidirectional in ordered to be included
  6546.         in the above tree.  It should also be mentioned that more
  6547.         efficient algorithms exist for calculating the tree; for
  6548.         example, the incremental SPF algorithm described in [BBN].
  6549.  
  6550.  
  6551.         16.1.1.  The next hop calculation
  6552.  
  6553.             This section explains how to calculate the current set of
  6554.             next hops to use for a destination.  Each next hop consists
  6555.             of the outgoing interface to use in forwarding packets to
  6556.             the destination together with the next hop router (if any).
  6557.             The next hop calculation is invoked each time a shorter path
  6558.             to the destination is discovered.  This can happen in either
  6559.             stage of the shortest-path tree calculation (see Section
  6560.             16.1).  In stage 1 of the shortest-path tree calculation a
  6561.             shorter path is found as the destination is added to the
  6562.             candidate list, or when the destination's entry on the
  6563.             candidate list is modified (Step 2d of Stage 1).  In stage 2
  6564.             a shorter path is discovered each time the destination's
  6565.             routing table entry is modified (Step 2 of Stage 2).
  6566.  
  6567.             The set of next hops to use for the destination may be
  6568.             recalculated several times during the shortest-path tree
  6569.             calculation, as shorter and shorter paths are discovered.
  6570.             In the end, the destination's routing table entry will
  6571.             always reflect the next hops resulting from the absolute
  6572.             shortest path(s).
  6573.  
  6574.             Input to the next hop calculation is a) the destination and
  6575.             b) its parent in the current shortest path between the root
  6576.             (the calculating router) and the destination.  The parent is
  6577.  
  6578.  
  6579.  
  6580. Moy                                                           [Page 149]
  6581.  
  6582. RFC 1583                     OSPF Version 2                   March 1994
  6583.  
  6584.  
  6585.             always a transit vertex (i.e., always a router or a transit
  6586.             network).
  6587.  
  6588.             If there is at least one intervening router in the current
  6589.             shortest path between the destination and the root, the
  6590.             destination simply inherits the set of next hops from the
  6591.             parent.  Otherwise, there are two cases.  In the first case,
  6592.             the parent vertex is the root (the calculating router
  6593.             itself).  This means that the destination is either a
  6594.             directly connected network or directly connected router.
  6595.             The next hop in this case is simply the OSPF interface
  6596.             connecting to the network/router; no next hop router is
  6597.             required. If the connecting OSPF interface in this case is a
  6598.             virtual link, the setting of the next hop should be deferred
  6599.             until the calculation in Section 16.3.
  6600.  
  6601.             In the second case, the parent vertex is a network that
  6602.             directly connects the calculating router to the destination
  6603.             router.  The list of next hops is then determined by
  6604.             examining the destination's router links advertisement.  For
  6605.             each link in the advertisement that points back to the
  6606.             parent network, the link's Link Data field provides the IP
  6607.             address of a next hop router.  The outgoing interface to use
  6608.             can then be derived from the next hop IP address (or it can
  6609.             be inherited from the parent network).
  6610.  
  6611.  
  6612.     16.2.  Calculating the inter-area routes
  6613.  
  6614.         The inter-area routes are calculated by examining summary link
  6615.         advertisements.  If the router has active attachments to
  6616.         multiple areas, only backbone summary link advertisements are
  6617.         examined.  Routers attached to a single area examine that area's
  6618.         summary links.  In either case, the summary links examined below
  6619.         are all part of a single area's link state database (call it
  6620.         Area A).
  6621.  
  6622.         Summary link advertisements are originated by the area border
  6623.         routers.  Each summary link advertisement in Area A is
  6624.         considered in turn.  Remember that the destination described by
  6625.         a summary link advertisement is either a network (Type 3 summary
  6626.         link advertisements) or an AS boundary router (Type 4 summary
  6627.         link advertisements).  For each summary link advertisement:
  6628.  
  6629.  
  6630.         (1) If the cost specified by the advertisement is LSInfinity, or
  6631.             if the advertisement's LS age is equal to MaxAge, then
  6632.             examine the the next advertisement.
  6633.  
  6634.  
  6635.  
  6636. Moy                                                           [Page 150]
  6637.  
  6638. RFC 1583                     OSPF Version 2                   March 1994
  6639.  
  6640.  
  6641.         (2) If the advertisement was originated by the calculating
  6642.             router itself, examine the next advertisement.
  6643.  
  6644.         (3) If the collection of destinations described by the summary
  6645.             link advertisement falls into one of the router's configured
  6646.             area address ranges (see Section 3.5) and the particular
  6647.             area address range is active, the summary link advertisement
  6648.             should be ignored.  Active means that there are one or more
  6649.             reachable (by intra-area paths) networks contained in the
  6650.             area range.  In this case, all addresses in the area range
  6651.             are assumed to be either reachable via intra-area paths, or
  6652.             else to be unreachable by any other means.
  6653.  
  6654.         (4) Else, call the destination described by the advertisement N
  6655.             (for Type 3 summary links, N's address is obtained by
  6656.             masking the advertisement's Link State ID with the
  6657.             network/subnet mask contained in the body of the
  6658.             advertisement), and the area border originating the
  6659.             advertisement BR.  Look up the routing table entry for BR
  6660.             having Area A as its associated area.  If no such entry
  6661.             exists for router BR (i.e., BR is unreachable in Area A), do
  6662.             nothing with this advertisement and consider the next in the
  6663.             list.  Else, this advertisement describes an inter-area path
  6664.             to destination N, whose cost is the distance to BR plus the
  6665.             cost specified in the advertisement. Call the cost of this
  6666.             inter-area path IAC.
  6667.  
  6668.         (5) Next, look up the routing table entry for the destination N.
  6669.             (The entry's Destination Type is either Network or AS
  6670.             boundary router.)  If no entry exists for N or if the
  6671.             entry's path type is "type 1 external" or "type 2 external",
  6672.             then install the inter-area path to N, with associated area
  6673.             Area A, cost IAC, next hop equal to the list of next hops to
  6674.             router BR, and Advertising router equal to BR.
  6675.  
  6676.         (6) Else, if the paths present in the table are intra-area
  6677.             paths, do nothing with the advertisement (intra-area paths
  6678.             are always preferred).
  6679.  
  6680.         (7) Else, the paths present in the routing table are also
  6681.             inter-area paths.  Install the new path through BR if it is
  6682.             cheaper, overriding the paths in the routing table.
  6683.             Otherwise, if the new path is the same cost, add it to the
  6684.             list of paths that appear in the routing table entry.
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691.  
  6692. Moy                                                           [Page 151]
  6693.  
  6694. RFC 1583                     OSPF Version 2                   March 1994
  6695.  
  6696.  
  6697.     16.3.  Examining transit areas' summary links
  6698.  
  6699.         This step is only performed by area border routers attached to
  6700.         one or more transit areas. Transit areas are those areas
  6701.         supporting one or more virtual links; their TransitCapability
  6702.         parameter has been set to TRUE in Step 2 of the Dijkstra
  6703.         algorithm (see Section 16.1). They are the only non-backbone
  6704.         areas that can carry data traffic that neither originates nor
  6705.         terminates in the area itself.
  6706.  
  6707.         The purpose of the calculation below is to examine the transit
  6708.         areas to see whether they provide any better (shorter) paths
  6709.         than the paths previously calculated in Sections 16.1 and 16.2.
  6710.         Any paths found that are better than or equal to previously
  6711.         discovered paths are installed in the routing table.
  6712.  
  6713.         The calculation proceeds as follows. All the transit areas'
  6714.         summary link advertisements are examined in turn.  Each such
  6715.         summary link advertisement describes a route through a transit
  6716.         area Area A to a Network N (N's address is obtained by masking
  6717.         the advertisement's Link State ID with the network/subnet mask
  6718.         contained in the body of the advertisement) or in the case of a
  6719.         Type 4 summary link advertisement, to an AS boundary router N.
  6720.         Suppose also that the summary link advertisement was originated
  6721.         by an area border router BR.
  6722.  
  6723.         (1) If the cost advertised by the summary link advertisement is
  6724.             LSInfinity, or if the advertisement's LS age is equal to
  6725.             MaxAge, then examine the next advertisement.
  6726.  
  6727.         (2) If the summary link advertisement was originated by the
  6728.             calculating router itself, examine the next advertisement.
  6729.  
  6730.         (3) Look up the routing table entry for N. If it does not exist,
  6731.             or if the route type is other than intra-area or inter-area,
  6732.             or if the area associated with the routing table entry is
  6733.             not the backbone area, then examine the next advertisement.
  6734.             In other words, this calculation only updates backbone
  6735.             intra-area routes found in Section 16.1 and inter-area
  6736.             routes found in Section 16.2.
  6737.  
  6738.         (4) Look up the routing table entry for the advertising router
  6739.             BR associated with the Area A. If it is unreachable, examine
  6740.             the next advertisement. Otherwise, the cost to destination N
  6741.             is the sum of the cost in BR's Area A routing table entry
  6742.             and the cost advertised in the advertisement. Call this cost
  6743.             IAC.
  6744.  
  6745.  
  6746.  
  6747.  
  6748. Moy                                                           [Page 152]
  6749.  
  6750. RFC 1583                     OSPF Version 2                   March 1994
  6751.  
  6752.  
  6753.         (5) If this cost is less than the cost occurring in N's routing
  6754.             table entry, overwrite N's list of next hops with those used
  6755.             for BR, and set N's routing table cost to IAC. Else, if IAC
  6756.             is the same as N's current cost, add BR's list of next hops
  6757.             to N's list of next hops. In any case, the area associated
  6758.             with N's routing table entry must remain the backbone area,
  6759.             and the path type (either intra-area or inter-area) must
  6760.             also remain the same.
  6761.  
  6762.         It is important to note that the above calculation never makes
  6763.         unreachable destinations reachable, but instead just potentially
  6764.         finds better paths to already reachable destinations. Also,
  6765.         unlike Section 16.3 of [RFC 1247], the above calculation
  6766.         installs any better cost found into the routing table entry,
  6767.         from which it may be readvertised in summary link advertisements
  6768.         to other areas.
  6769.  
  6770.         As an example of the calculation, consider the Autonomous System
  6771.         pictured in Figure 17.  There is a single non-backbone area
  6772.         (Area 1) that physically divides the backbone into two separate
  6773.         pieces. To maintain connectivity of the backbone, a virtual link
  6774.         has been configured between routers RT1 and RT4. On the right
  6775.         side of the figure, Network N1 belongs to the backbone. The
  6776.         dotted lines indicate that there is a much shorter intra-area
  6777.  
  6778.                       ........................
  6779.                       . Area 1 (transit)     .            +
  6780.                       .                      .            |
  6781.                       .      +---+1        1+---+100      |
  6782.                       .      |RT2|----------|RT4|=========|
  6783.                       .    1/+---+********* +---+         |
  6784.                       .    /*******          .            |
  6785.                       .  1/*Virtual          .            |
  6786.                    1+---+/*  Link            .         Net|work
  6787.              =======|RT1|*                   .            | N1
  6788.                     +---+\                   .            |
  6789.                       .   \                  .            |
  6790.                       .    \                 .            |
  6791.                       .    1\+---+1        1+---+20       |
  6792.                       .      |RT3|----------|RT5|=========|
  6793.                       .      +---+          +---+         |
  6794.                       .                      .            |
  6795.                       ........................            +
  6796.  
  6797.  
  6798.                     Figure 17: Routing through transit areas
  6799.  
  6800.  
  6801.  
  6802.  
  6803.  
  6804. Moy                                                           [Page 153]
  6805.  
  6806. RFC 1583                     OSPF Version 2                   March 1994
  6807.  
  6808.  
  6809.         backbone path between router RT5 and Network N1 (cost 20) than
  6810.         there is between Router RT4 and Network N1 (cost 100). Both
  6811.         Router RT4 and Router RT5 will inject summary link
  6812.         advertisements for Network N1 into Area 1.
  6813.  
  6814.         After the shortest-path tree has been calculated for the
  6815.         backbone in Section 16.1, Router RT1 (left end of the virtual
  6816.         link) will have calculated a path through Router RT4 for all
  6817.         data traffic destined for Network N1. However, since Router RT5
  6818.         is so much closer to Network N1, all routers internal to Area 1
  6819.         (e.g., Routers RT2 and RT3) will forward their Network N1
  6820.         traffic towards Router RT5, instead of RT4. And indeed, after
  6821.         examining Area 1's summary link advertisements by the above
  6822.         calculation, Router RT1 will also forward Network N1 traffic
  6823.         towards RT5. Note that in this example the virtual link enables
  6824.         Network N1 traffic to be forwarded through the transit area Area
  6825.         1, but the actual path the data traffic takes does not follow
  6826.         the virtual link.  In other words, virtual links allow transit
  6827.         traffic to be forwarded through an area, but do not dictate the
  6828.         precise path that the traffic will take.
  6829.  
  6830.     16.4.  Calculating AS external routes
  6831.  
  6832.         AS external routes are calculated by examining AS external link
  6833.         advertisements.  Each of the AS external link advertisements is
  6834.         considered in turn.  Most AS external link advertisements
  6835.         describe routes to specific IP destinations.  An AS external
  6836.         link advertisement can also describe a default route for the
  6837.         Autonomous System (Destination ID = DefaultDestination,
  6838.         network/subnet mask = 0x00000000).  For each AS external link
  6839.         advertisement:
  6840.  
  6841.  
  6842.         (1) If the cost specified by the advertisement is LSInfinity, or
  6843.             if the advertisement's LS age is equal to MaxAge, then
  6844.             examine the next advertisement.
  6845.  
  6846.         (2) If the advertisement was originated by the calculating
  6847.             router itself, examine the next advertisement.
  6848.  
  6849.         (3) Call the destination described by the advertisement N.  N's
  6850.             address is obtained by masking the advertisement's Link
  6851.             State ID with the network/subnet mask contained in the body
  6852.             of the advertisement.  Look up the routing table entry for
  6853.             the AS boundary router (ASBR) that originated the
  6854.             advertisement. If no entry exists for router ASBR (i.e.,
  6855.             ASBR is unreachable), do nothing with this advertisement and
  6856.             consider the next in the list.
  6857.  
  6858.  
  6859.  
  6860. Moy                                                           [Page 154]
  6861.  
  6862. RFC 1583                     OSPF Version 2                   March 1994
  6863.  
  6864.  
  6865.             Else, this advertisement describes an AS external path to
  6866.             destination N.  Examine the forwarding address specified in
  6867.             the AS external link advertisement.  This indicates the IP
  6868.             address to which packets for the destination should be
  6869.             forwarded.  If the forwarding address is set to 0.0.0.0,
  6870.             packets should be sent to the ASBR itself.  Otherwise, look
  6871.             up the forwarding address in the routing table.[23] An
  6872.             intra-area or inter-area path must exist to the forwarding
  6873.             address.  If no such path exists, do nothing with the
  6874.             advertisement and consider the next in the list.
  6875.  
  6876.             Call the routing table distance to the forwarding address X
  6877.             (when the forwarding address is set to 0.0.0.0, this is the
  6878.             distance to the ASBR itself), and the cost specified in the
  6879.             advertisement Y.  X is in terms of the link state metric,
  6880.             and Y is a type 1 or 2 external metric.
  6881.  
  6882.         (4) Next, look up the routing table entry for the destination N.
  6883.             If no entry exists for N, install the AS external path to N,
  6884.             with next hop equal to the list of next hops to the
  6885.             forwarding address, and advertising router equal to ASBR.
  6886.             If the external metric type is 1, then the path-type is set
  6887.             to type 1 external and the cost is equal to X+Y.  If the
  6888.             external metric type is 2, the path-type is set to type 2
  6889.             external, the link state component of the route's cost is X,
  6890.             and the type 2 cost is Y.
  6891.  
  6892.         (5) Else, if the paths present in the table are not type 1 or
  6893.             type 2 external paths, do nothing (AS external paths have
  6894.             the lowest priority).
  6895.  
  6896.         (6) Otherwise, compare the cost of this new AS external path to
  6897.             the ones present in the table.  Type 1 external paths are
  6898.             always shorter than type 2 external paths.  Type 1 external
  6899.             paths are compared by looking at the sum of the distance to
  6900.             the forwarding address and the advertised type 1 metric
  6901.             (X+Y).  Type 2 external paths are compared by looking at the
  6902.             advertised type 2 metrics, and then if necessary, the
  6903.             distance to the forwarding addresses.
  6904.  
  6905.             If the new path is shorter, it replaces the present paths in
  6906.             the routing table entry.  If the new path is the same cost,
  6907.             it is added to the routing table entry's list of paths.
  6908.  
  6909.  
  6910.  
  6911.  
  6912.  
  6913.  
  6914.  
  6915.  
  6916. Moy                                                           [Page 155]
  6917.  
  6918. RFC 1583                     OSPF Version 2                   March 1994
  6919.  
  6920.  
  6921.     16.5.  Incremental updates -- summary link advertisements
  6922.  
  6923.         When a new summary link advertisement is received, it is not
  6924.         necessary to recalculate the entire routing table.  Call the
  6925.         destination described by the summary link advertisement N (N's
  6926.         address is obtained by masking the advertisement's Link State ID
  6927.         with the network/subnet mask contained in the body of the
  6928.         advertisement), and let Area A be the area to which the
  6929.         advertisement belongs. There are then two separate cases:
  6930.  
  6931.         Case 1: Area A is the backbone and/or the router is not an area
  6932.             border router.
  6933.             In this case, the following calculations must be performed.
  6934.             First, if there is presently an inter-area route to the
  6935.             destination N, N's routing table entry is invalidated,
  6936.             saving the entry's values for later comparisons. Then the
  6937.             calculation in Section 16.2 is run again for the single
  6938.             destination N. In this calculation, all of Area A's summary
  6939.             link advertisements that describe a route to N are examined.
  6940.             In addition, if the router is an area border router attached
  6941.             to one or more transit areas, the calculation in Section
  6942.             16.3 must be run again for the single destination.  If the
  6943.             results of these calculations have changed the cost/path to
  6944.             an AS boundary router (as would be the case for a Type 4
  6945.             summary link advertisement) or to any forwarding addresses,
  6946.             all AS external link advertisements will have to be
  6947.             reexamined by rerunning the calculation in Section 16.4.
  6948.             Otherwise, if N is now newly unreachable, the calculation in
  6949.             Section 16.4 must be rerun for the single destination N, in
  6950.             case an alternate external route to N exists.
  6951.  
  6952.         Case 2: Area A is a transit area and the router is an area
  6953.             border router.
  6954.             In this case, the following calculations must be performed.
  6955.             First, if N's routing table entry presently contains one or
  6956.             more inter-area paths that utilize the transit area Area A,
  6957.             these paths should be removed. If this removes all paths
  6958.             from the routing table entry, the entry should be
  6959.             invalidated.  The entry's old values should be saved for
  6960.             later comparisons. Next the calculation in Section 16.3 must
  6961.             be run again for the single destination N. If the results of
  6962.             this calculation have caused the cost to N to increase, the
  6963.             complete routing table calculation must be rerun starting
  6964.             with the Dijkstra algorithm specified in Section 16.1.
  6965.             Otherwise, if the cost/path to an AS boundary router (as
  6966.             would be the case for a Type 4 summary link advertisement)
  6967.             or to any forwarding addresses has changed, all AS external
  6968.             link advertisements will have to be reexamined by rerunning
  6969.  
  6970.  
  6971.  
  6972. Moy                                                           [Page 156]
  6973.  
  6974. RFC 1583                     OSPF Version 2                   March 1994
  6975.  
  6976.  
  6977.             the calculation in Section 16.4.  Otherwise, if N is now
  6978.             newly unreachable, the calculation in Section 16.4 must be
  6979.             rerun for the single destination N, in case an alternate
  6980.             external route to N exists.
  6981.  
  6982.     16.6.  Incremental updates -- AS external link advertisements
  6983.  
  6984.         When a new AS external link advertisement is received, it is not
  6985.         necessary to recalculate the entire routing table.  Call the
  6986.         destination described by the AS external link advertisement N.
  6987.         N's address is obtained by masking the advertisement's Link
  6988.         State ID with the network/subnet mask contained in the body of
  6989.         the advertisement. If there is already an intra-area or inter-
  6990.         area route to the destination, no recalculation is necessary
  6991.         (internal routes take precedence).
  6992.  
  6993.         Otherwise, the procedure in Section 16.4 will have to be
  6994.         performed, but only for those AS external link advertisements
  6995.         whose destination is N.  Before this procedure is performed, the
  6996.         present routing table entry for N should be invalidated.
  6997.  
  6998.  
  6999.     16.7.  Events generated as a result of routing table changes
  7000.  
  7001.         Changes to routing table entries sometimes cause the OSPF area
  7002.         border routers to take additional actions.  These routers need
  7003.         to act on the following routing table changes:
  7004.  
  7005.  
  7006.         o   The cost or path type of a routing table entry has changed.
  7007.             If the destination described by this entry is a Network or
  7008.             AS boundary router, and this is not simply a change of AS
  7009.             external routes, new summary link advertisements may have to
  7010.             be generated (potentially one for each attached area,
  7011.             including the backbone).  See Section 12.4.3 for more
  7012.             information.  If a previously advertised entry has been
  7013.             deleted, or is no longer advertisable to a particular area,
  7014.             the advertisement must be flushed from the routing domain by
  7015.             setting its LS age to MaxAge and reflooding (see Section
  7016.             14.1).
  7017.  
  7018.         o   A routing table entry associated with a configured virtual
  7019.             link has changed.  The destination of such a routing table
  7020.             entry is an area border router.  The change indicates a
  7021.             modification to the virtual link's cost or viability.
  7022.  
  7023.             If the entry indicates that the area border router is newly
  7024.             reachable (via TOS 0), the corresponding virtual link is now
  7025.  
  7026.  
  7027.  
  7028. Moy                                                           [Page 157]
  7029.  
  7030. RFC 1583                     OSPF Version 2                   March 1994
  7031.  
  7032.  
  7033.             operational.  An InterfaceUp event should be generated for
  7034.             the virtual link, which will cause a virtual adjacency to
  7035.             begin to form (see Section 10.3).  At this time the virtual
  7036.             link's IP interface address and the virtual neighbor's
  7037.             Neighbor IP address are also calculated.
  7038.  
  7039.             If the entry indicates that the area border router is no
  7040.             longer reachable (via TOS 0), the virtual link and its
  7041.             associated adjacency should be destroyed.  This means an
  7042.             InterfaceDown event should be generated for the associated
  7043.             virtual link.
  7044.  
  7045.             If the cost of the entry has changed, and there is a fully
  7046.             established virtual adjacency, a new router links
  7047.             advertisement for the backbone must be originated.  This in
  7048.             turn may cause further routing table changes.
  7049.  
  7050.  
  7051.     16.8.  Equal-cost multipath
  7052.  
  7053.         The OSPF protocol maintains multiple equal-cost routes to all
  7054.         destinations.  This can be seen in the steps used above to
  7055.         calculate the routing table, and in the definition of the
  7056.         routing table structure.
  7057.  
  7058.         Each one of the multiple routes will be of the same type
  7059.         (intra-area, inter-area, type 1 external or type 2 external),
  7060.         cost, and will have the same associated area.  However, each
  7061.         route specifies a separate next hop and Advertising router.
  7062.  
  7063.         There is no requirement that a router running OSPF keep track of
  7064.         all possible equal-cost routes to a destination.  An
  7065.         implementation may choose to keep only a fixed number of routes
  7066.         to any given destination.  This does not affect any of the
  7067.         algorithms presented in this specification.
  7068.  
  7069.  
  7070.     16.9.  Building the non-zero-TOS portion of the routing table
  7071.  
  7072.         The OSPF protocol can calculate a different set of routes for
  7073.         each IP TOS (see Section 2.4).  Support for TOS-based routing is
  7074.         optional.  TOS-capable and non-TOS-capable routers can be mixed
  7075.         in an OSPF routing domain.  Routers not supporting TOS calculate
  7076.         only the TOS 0 route to each destination.  These routes are then
  7077.         used to forward all data traffic, regardless of the TOS
  7078.         indications in the data packet's IP header.  A router that does
  7079.         not support TOS indicates this fact to the other OSPF routers by
  7080.         clearing the T-bit in the Options field of its router links
  7081.  
  7082.  
  7083.  
  7084. Moy                                                           [Page 158]
  7085.  
  7086. RFC 1583                     OSPF Version 2                   March 1994
  7087.  
  7088.  
  7089.         advertisement.
  7090.  
  7091.         The above sections detailing the routing table calculations
  7092.         handle the TOS 0 case only.  In general, for routers supporting
  7093.         TOS-based routing, each piece of the routing table calculation
  7094.         must be rerun separately for the non-zero TOS values.  When
  7095.         calculating routes for TOS X, only TOS X metrics can be used.
  7096.         Any link state advertisement may specify a separate cost for
  7097.         each TOS (a cost for TOS 0 must always be specified).  The
  7098.         encoding of TOS in OSPF link state advertisements is described
  7099.         in Section 12.3.
  7100.  
  7101.         An advertisement can specify that it is restricted to TOS 0
  7102.         (i.e., non-zero TOS is not handled) by clearing the T-bit in the
  7103.         link state advertisement's Option field.  Such advertisements
  7104.         are not used when calculating routes for non-zero TOS.  For this
  7105.         reason, it is possible that a destination is unreachable for
  7106.         some non-zero TOS.  In this case, the TOS 0 path is used when
  7107.         forwarding packets (see Section 11.1).
  7108.  
  7109.         The following lists the modifications needed when running the
  7110.         routing table calculation for a non-zero TOS value (called TOS
  7111.         X).  In general, routers and advertisements that do not support
  7112.         TOS are omitted from the calculation.
  7113.  
  7114.  
  7115.         Calculating the shortest-path tree (Section  16.1).
  7116.             Routers that do not support TOS-based routing should be
  7117.             omitted from the shortest-path tree calculation.  These
  7118.             routers are identified as those having the T-bit reset in
  7119.             the Options field of their router links advertisements.
  7120.             Such routers should never be added to the Dijktra
  7121.             algorithm's candidate list, nor should their router links
  7122.             advertisements be examined when adding the stub networks to
  7123.             the tree.  In particular, if the T-bit is reset in the
  7124.             calculating router's own router links advertisement, it does
  7125.             not run the shortest-path tree calculation for non-zero TOS
  7126.             values.
  7127.  
  7128.         Calculating the inter-area routes (Section  16.2).
  7129.             Inter-area paths are the concatenation of a path to an area
  7130.             border router with a summary link.  When calculating TOS X
  7131.             routes, both path components must also specify TOS X.  In
  7132.             other words, only TOS X paths to the area border router are
  7133.             examined, and the area border router must be advertising a
  7134.             TOS X route to the destination.  Note that this means that
  7135.             summary link advertisements having the T-bit reset in their
  7136.             Options field are not considered.
  7137.  
  7138.  
  7139.  
  7140. Moy                                                           [Page 159]
  7141.  
  7142. RFC 1583                     OSPF Version 2                   March 1994
  7143.  
  7144.  
  7145.         Examining transit areas' summary links (Section 16.3).
  7146.             This calculation again considers the concatenation of a path
  7147.             to an area border router with a summary link.  As with
  7148.             inter-area routes, only TOS X paths to the area border
  7149.             router are examined, and the area border router must be
  7150.             advertising a TOS X route to the destination.
  7151.  
  7152.         Calculating AS external routes (Section 16.4).
  7153.             This calculation considers the concatenation of a path to a
  7154.             forwarding address with an AS external link.  Only TOS X
  7155.             paths to the forwarding address are examined, and the AS
  7156.             boundary router must be advertising a TOS X route to the
  7157.             destination.  Note that this means that AS external link
  7158.             advertisements having the T-bit reset in their Options field
  7159.             are not considered.
  7160.  
  7161.             In addition, the advertising AS boundary router must also be
  7162.             reachable for its advertisements to be considered (see
  7163.             Section 16.4).  However, if the advertising router and the
  7164.             forwarding address are not one in the same, the advertising
  7165.             router need only be reachable via TOS 0.
  7166.  
  7167.  
  7168.  
  7169.  
  7170.  
  7171.  
  7172.  
  7173.  
  7174.  
  7175.  
  7176.  
  7177.  
  7178.  
  7179.  
  7180.  
  7181.  
  7182.  
  7183.  
  7184.  
  7185.  
  7186.  
  7187.  
  7188.  
  7189.  
  7190.  
  7191.  
  7192.  
  7193.  
  7194.  
  7195.  
  7196. Moy                                                           [Page 160]
  7197.  
  7198. RFC 1583                     OSPF Version 2                   March 1994
  7199.  
  7200.  
  7201. Footnotes
  7202.  
  7203.  
  7204.     [1]The graph's vertices represent either routers, transit networks,
  7205.     or stub networks.  Since routers may belong to multiple areas, it is
  7206.     not possible to color the graph's vertices.
  7207.  
  7208.     [2]It is possible for all of a router's interfaces to be unnumbered
  7209.     point-to-point links.  In this case, an IP address must be assigned
  7210.     to the router.  This address will then be advertised in the router's
  7211.     router links advertisement as a host route.
  7212.  
  7213.     [3]Note that in these cases both interfaces, the non-virtual and the
  7214.     virtual, would have the same IP address.
  7215.  
  7216.     [4]Note that no host route is generated for, and no IP packets can
  7217.     be addressed to, interfaces to unnumbered point-to-point networks.
  7218.     This is regardless of such an interface's state.
  7219.  
  7220.     [5]It is instructive to see what happens when the Designated Router
  7221.     for the network crashes.  Call the Designated Router for the network
  7222.     RT1, and the Backup Designated Router RT2.  If Router RT1 crashes
  7223.     (or maybe its interface to the network dies), the other routers on
  7224.     the network will detect RT1's absence within RouterDeadInterval
  7225.     seconds.  All routers may not detect this at precisely the same
  7226.     time; the routers that detect RT1's absence before RT2 does will,
  7227.     for a time, select RT2 to be both Designated Router and Backup
  7228.     Designated Router.  When RT2 detects that RT1 is gone it will move
  7229.     itself to Designated Router.  At this time, the remaining router
  7230.     having highest Router Priority will be selected as Backup Designated
  7231.     Router.
  7232.  
  7233.     [6]On point-to-point networks, the lower level protocols indicate
  7234.     whether the neighbor is up and running.  Likewise, existence of the
  7235.     neighbor on virtual links is indicated by the routing table
  7236.     calculation.  However, in both these cases, the Hello Protocol is
  7237.     still used.  This ensures that communication between the neighbors
  7238.     is bidirectional, and that each of the neighbors has a functioning
  7239.     routing protocol layer.
  7240.  
  7241.     [7]When the identity of the Designated Router is changing, it may be
  7242.     quite common for a neighbor in this state to send the router a
  7243.     Database Description packet; this means that there is some momentary
  7244.     disagreement on the Designated Router's identity.
  7245.  
  7246.     [8]Note that it is possible for a router to resynchronize any of its
  7247.     fully established adjacencies by setting the adjacency's state back
  7248.     to ExStart.  This will cause the other end of the adjacency to
  7249.  
  7250.  
  7251.  
  7252. Moy                                                           [Page 161]
  7253.  
  7254. RFC 1583                     OSPF Version 2                   March 1994
  7255.  
  7256.  
  7257.     process a SeqNumberMismatch event, and therefore to also go back to
  7258.     ExStart state.
  7259.  
  7260.     [9]The address space of IP networks and the address space of OSPF
  7261.     Router IDs may overlap.  That is, a network may have an IP address
  7262.     which is identical (when considered as a 32-bit number) to some
  7263.     router's Router ID.
  7264.  
  7265.     [10]It is assumed that, for two different address ranges matching
  7266.     the destination, one range is more specific than the other. Non-
  7267.     contiguous subnet masks can be configured to violate this
  7268.     assumption. Such subnet mask configurations cannot be handled by the
  7269.     OSPF protocol.
  7270.  
  7271.     [11]MaxAgeDiff is an architectural constant.  It indicates the
  7272.     maximum dispersion of ages, in seconds, that can occur for a single
  7273.     link state instance as it is flooded throughout the routing domain.
  7274.     If two advertisements differ by more than this, they are assumed to
  7275.     be different instances of the same advertisement.  This can occur
  7276.     when a router restarts and loses track of the advertisement's
  7277.     previous LS sequence number.  See Section 13.4 for more details.
  7278.  
  7279.     [12]When two advertisements have different LS checksums, they are
  7280.     assumed to be separate instances.  This can occur when a router
  7281.     restarts, and loses track of the advertisement's previous LS
  7282.     sequence number.  In the case where the two advertisements have the
  7283.     same LS sequence number, it is not possible to determine which link
  7284.     state is actually newer.  If the wrong advertisement is accepted as
  7285.     newer, the originating router will originate another instance.  See
  7286.     Section 13.4 for further details.
  7287.  
  7288.     [13]There is one instance where a lookup must be done based on
  7289.     partial information.  This is during the routing table calculation,
  7290.     when a network links advertisement must be found based solely on its
  7291.     Link State ID.  The lookup in this case is still well defined, since
  7292.     no two network links advertisements can have the same Link State ID.
  7293.  
  7294.     [14]This clause covers the case: Inter-area routes are not
  7295.     summarized to the backbone.  This is because inter-area routes are
  7296.     always associated with the backbone area.
  7297.  
  7298.     [15]This clause is only invoked when Area A is a Transit area
  7299.     supporting one or more virtual links. For example, in the area
  7300.     configuration of Figure 6, Router RT11 need only originate a single
  7301.     summary link having the (collapsed) destination N9-N11,H1 into its
  7302.     connected Transit area Area 2, since all of its other eligible
  7303.     routes have next hops belonging to Area 2 (and as such only need be
  7304.     advertised by other area border routers; in this case, Routers RT10
  7305.  
  7306.  
  7307.  
  7308. Moy                                                           [Page 162]
  7309.  
  7310. RFC 1583                     OSPF Version 2                   March 1994
  7311.  
  7312.  
  7313.     and RT7).
  7314.  
  7315.     [16]By keeping more information in the routing table, it is possible
  7316.     for an implementation to recalculate the shortest path tree only for
  7317.     a single area.  In fact, there are incremental algorithms that allow
  7318.     an implementation to recalculate only a portion of a single area's
  7319.     shortest path tree [BBN].  However, these algorithms are beyond the
  7320.     scope of this specification.
  7321.  
  7322.     [17]This is how the Link state request list is emptied, which
  7323.     eventually causes the neighbor state to transition to Full.  See
  7324.     Section 10.9 for more details.
  7325.  
  7326.     [18]It should be a relatively rare occurrence for an advertisement's
  7327.     LS age to reach MaxAge in this fashion.  Usually, the advertisement
  7328.     will be replaced by a more recent instance before it ages out.
  7329.  
  7330.     [19]Only the TOS 0 routes are important here because all OSPF
  7331.     protocol packets are sent with TOS = 0.  See Appendix A.
  7332.  
  7333.     [20]It may be the case that paths to certain destinations do not
  7334.     vary based on TOS.  For these destinations, the routing calculation
  7335.     need not be repeated for each TOS value.  In addition, there need
  7336.     only be a single routing table entry for these destinations (instead
  7337.     of a separate entry for each TOS value).
  7338.  
  7339.     [21]Strictly speaking, because of equal-cost multipath, the
  7340.     algorithm does not create a tree.  We continue to use the "tree"
  7341.     terminology because that is what occurs most often in the existing
  7342.     literature.
  7343.  
  7344.     [22]Note that the presence of any link back to V is sufficient; it
  7345.     need not be the matching half of the link under consideration from V
  7346.     to W. This is enough to ensure that, before data traffic flows
  7347.     between a pair of neighboring routers, their link state databases
  7348.     will be synchronized.
  7349.  
  7350.     [23]When the forwarding address is non-zero, it should point to a
  7351.     router belonging to another Autonomous System.  See Section 12.4.5
  7352.     for more details.
  7353.  
  7354.  
  7355.  
  7356.  
  7357.  
  7358.  
  7359.  
  7360.  
  7361.  
  7362.  
  7363.  
  7364. Moy                                                           [Page 163]
  7365.  
  7366. RFC 1583                     OSPF Version 2                   March 1994
  7367.  
  7368.  
  7369. References
  7370.  
  7371.     [BBN]           McQuillan, J., I. Richer and E. Rosen, "ARPANET
  7372.                     Routing Algorithm Improvements", BBN Technical
  7373.                     Report 3803, April 1978.
  7374.  
  7375.     [DEC]           Digital Equipment Corporation, "Information
  7376.                     processing systems -- Data communications --
  7377.                     Intermediate System to Intermediate System Intra-
  7378.                     Domain Routing Protocol", October 1987.
  7379.  
  7380.     [McQuillan]     McQuillan, J. et.al., "The New Routing Algorithm for
  7381.                     the Arpanet", IEEE Transactions on Communications,
  7382.                     May 1980.
  7383.  
  7384.     [Perlman]       Perlman, R., "Fault-Tolerant Broadcast of Routing
  7385.                     Information", Computer Networks, December 1983.
  7386.  
  7387.     [RFC 791]       Postel, J., "Internet Protocol", STD 5, RFC 791,
  7388.                     USC/Information Sciences Institute, September 1981.
  7389.  
  7390.     [RFC 905]       McKenzie, A., "ISO Transport Protocol specification
  7391.                     ISO DP 8073", RFC 905, ISO, April 1984.
  7392.  
  7393.     [RFC 1112]      Deering, S., "Host extensions for IP multicasting",
  7394.                     STD 5, RFC 1112, Stanford University, May 1988.
  7395.  
  7396.     [RFC 1213]      McCloghrie, K., and M. Rose, "Management Information
  7397.                     Base for network management of TCP/IP-based
  7398.                     internets: MIB-II", STD 17, RFC 1213, Hughes LAN
  7399.                     Systems, Performance Systems International, March
  7400.                     1991.
  7401.  
  7402.     [RFC 1247]      Moy, J., "OSPF Version 2", RFC 1247, Proteon, Inc.,
  7403.                     July 1991.
  7404.  
  7405.     [RFC 1519]      Fuller, V., T. Li, J. Yu, and K. Varadhan,
  7406.                     "Classless Inter-Domain Routing (CIDR): an Address
  7407.                     Assignment and Aggregation Strategy", RFC1519,
  7408.                     BARRNet, cisco, MERIT, OARnet, September 1993.
  7409.  
  7410.     [RFC 1340]      Reynolds, J., and J. Postel, "Assigned Numbers", STD
  7411.                     2, RFC 1340, USC/Information Sciences Institute,
  7412.                     July 1992.
  7413.  
  7414.     [RFC 1349]      Almquist, P., "Type of Service in the Internet
  7415.                     Protocol Suite", RFC 1349, July 1992.
  7416.  
  7417.  
  7418.  
  7419.  
  7420. Moy                                                           [Page 164]
  7421.  
  7422. RFC 1583                     OSPF Version 2                   March 1994
  7423.  
  7424.  
  7425.     [RS-85-153]     Leiner, B., et.al., "The DARPA Internet Protocol
  7426.                     Suite", DDN Protocol Handbook, April 1985.
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.  
  7433.  
  7434.  
  7435.  
  7436.  
  7437.  
  7438.  
  7439.  
  7440.  
  7441.  
  7442.  
  7443.  
  7444.  
  7445.  
  7446.  
  7447.  
  7448.  
  7449.  
  7450.  
  7451.  
  7452.  
  7453.  
  7454.  
  7455.  
  7456.  
  7457.  
  7458.  
  7459.  
  7460.  
  7461.  
  7462.  
  7463.  
  7464.  
  7465.  
  7466.  
  7467.  
  7468.  
  7469.  
  7470.  
  7471.  
  7472.  
  7473.  
  7474.  
  7475.  
  7476. Moy                                                           [Page 165]
  7477.  
  7478. RFC 1583                     OSPF Version 2                   March 1994
  7479.  
  7480.  
  7481. A. OSPF data formats
  7482.  
  7483.     This appendix describes the format of OSPF protocol packets and OSPF
  7484.     link state advertisements.  The OSPF protocol runs directly over the
  7485.     IP network layer.  Before any data formats are described, the
  7486.     details of the OSPF encapsulation are explained.
  7487.  
  7488.     Next the OSPF Options field is described.  This field describes
  7489.     various capabilities that may or may not be supported by pieces of
  7490.     the OSPF routing domain. The OSPF Options field is contained in OSPF
  7491.     Hello packets, Database Description packets and in OSPF link state
  7492.     advertisements.
  7493.  
  7494.     OSPF packet formats are detailed in Section A.3.  A description of
  7495.     OSPF link state advertisements appears in Section A.4.
  7496.  
  7497. A.1 Encapsulation of OSPF packets
  7498.  
  7499.     OSPF runs directly over the Internet Protocol's network layer.  OSPF
  7500.     packets are therefore encapsulated solely by IP and local data-link
  7501.     headers.
  7502.  
  7503.     OSPF does not define a way to fragment its protocol packets, and
  7504.     depends on IP fragmentation when transmitting packets larger than
  7505.     the network MTU.  The OSPF packet types that are likely to be large
  7506.     (Database Description Packets, Link State Request, Link State
  7507.     Update, and Link State Acknowledgment packets) can usually be split
  7508.     into several separate protocol packets, without loss of
  7509.     functionality.  This is recommended; IP fragmentation should be
  7510.     avoided whenever possible.  Using this reasoning, an attempt should
  7511.     be made to limit the sizes of packets sent over virtual links to 576
  7512.     bytes.  However, if necessary, the length of OSPF packets can be up
  7513.     to 65,535 bytes (including the IP header).
  7514.  
  7515.     The other important features of OSPF's IP encapsulation are:
  7516.  
  7517.     o   Use of IP multicast.  Some OSPF messages are multicast, when
  7518.         sent over multi-access networks.  Two distinct IP multicast
  7519.         addresses are used.  Packets sent to these multicast addresses
  7520.         should never be forwarded; they are meant to travel a single hop
  7521.         only.  To ensure that these packets will not travel multiple
  7522.         hops, their IP TTL must be set to 1.
  7523.  
  7524.         AllSPFRouters
  7525.             This multicast address has been assigned the value
  7526.             224.0.0.5.  All routers running OSPF should be prepared to
  7527.             receive packets sent to this address.  Hello packets are
  7528.             always sent to this destination.  Also, certain OSPF
  7529.  
  7530.  
  7531.  
  7532. Moy                                                           [Page 166]
  7533.  
  7534. RFC 1583                     OSPF Version 2                   March 1994
  7535.  
  7536.  
  7537.             protocol packets are sent to this address during the
  7538.             flooding procedure.
  7539.  
  7540.         AllDRouters
  7541.             This multicast address has been assigned the value
  7542.             224.0.0.6.  Both the Designated Router and Backup Designated
  7543.             Router must be prepared to receive packets destined to this
  7544.             address.  Certain OSPF protocol packets are sent to this
  7545.             address during the flooding procedure.
  7546.  
  7547.     o   OSPF is IP protocol number 89.  This number has been registered
  7548.         with the Network Information Center.  IP protocol number
  7549.         assignments are documented in [RFC 1340].
  7550.  
  7551.     o   Routing protocol packets are sent with IP TOS of 0.  The OSPF
  7552.         protocol supports TOS-based routing.  Routes to any particular
  7553.         destination may vary based on TOS.  However, all OSPF routing
  7554.         protocol packets are sent using the normal service TOS value of
  7555.         binary 0000 defined in [RFC 1349].
  7556.  
  7557.     o   Routing protocol packets are sent with IP precedence set to
  7558.         Internetwork Control.  OSPF protocol packets should be given
  7559.         precedence over regular IP data traffic, in both sending and
  7560.         receiving.  Setting the IP precedence field in the IP header to
  7561.         Internetwork Control [RFC 791] may help implement this
  7562.         objective.
  7563.  
  7564.  
  7565.  
  7566.  
  7567.  
  7568.  
  7569.  
  7570.  
  7571.  
  7572.  
  7573.  
  7574.  
  7575.  
  7576.  
  7577.  
  7578.  
  7579.  
  7580.  
  7581.  
  7582.  
  7583.  
  7584.  
  7585.  
  7586.  
  7587.  
  7588. Moy                                                           [Page 167]
  7589.  
  7590. RFC 1583                     OSPF Version 2                   March 1994
  7591.  
  7592.  
  7593. A.2 The Options field
  7594.  
  7595.     The OSPF Options field is present in OSPF Hello packets, Database
  7596.     Description packets and all link state advertisements.  The Options
  7597.     field enables OSPF routers to support (or not support) optional
  7598.     capabilities, and to communicate their capability level to other
  7599.     OSPF routers.  Through this mechanism routers of differing
  7600.     capabilities can be mixed within an OSPF routing domain.
  7601.  
  7602.     When used in Hello packets, the Options field allows a router to
  7603.     reject a neighbor because of a capability mismatch.  Alternatively,
  7604.     when capabilities are exchanged in Database Description packets a
  7605.     router can choose not to forward certain link state advertisements
  7606.     to a neighbor because of its reduced functionality.  Lastly, listing
  7607.     capabilities in link state advertisements allows routers to route
  7608.     traffic around reduced functionality routers, by excluding them from
  7609.     parts of the routing table calculation.
  7610.  
  7611.     Two capabilities are currently defined.  For each capability, the
  7612.     effect of the capability's appearance (or lack of appearance) in
  7613.     Hello packets, Database Description packets and link state
  7614.     advertisements is specified below.  For example, the
  7615.     ExternalRoutingCapability (below called the E-bit) has meaning only
  7616.     in OSPF Hello Packets.  Routers should reset (i.e.  clear) the
  7617.     unassigned part of the capability field when sending Hello packets
  7618.     or Database Description packets and when originating link state
  7619.     advertisements.
  7620.  
  7621.     Additional capabilities may be assigned in the future.  Routers
  7622.     encountering unrecognized capabilities in received Hello Packets,
  7623.     Database Description packets or link state advertisements should
  7624.     ignore the capability and process the packet/advertisement normally.
  7625.  
  7626.                                +-+-+-+-+-+-+-+-+
  7627.                                | | | | | | |E|T|
  7628.                                +-+-+-+-+-+-+-+-+
  7629.  
  7630.                              The Options field
  7631.  
  7632.  
  7633.     T-bit
  7634.         This describes the router's TOS capability.  If the T-bit is
  7635.         reset, then the router supports only a single TOS (TOS 0).  Such
  7636.         a router is also said to be incapable of TOS-routing, and
  7637.         elsewhere in this document referred to as a TOS-0-only router.
  7638.         The absence of the T-bit in a router links advertisement causes
  7639.         the router to be skipped when building a non-zero TOS shortest-
  7640.         path tree (see Section 16.9).  In other words, routers incapable
  7641.  
  7642.  
  7643.  
  7644. Moy                                                           [Page 168]
  7645.  
  7646. RFC 1583                     OSPF Version 2                   March 1994
  7647.  
  7648.  
  7649.         of TOS routing will be avoided as much as possible when
  7650.         forwarding data traffic requesting a non-zero TOS.  The absence
  7651.         of the T-bit in a summary link advertisement or an AS external
  7652.         link advertisement indicates that the advertisement is
  7653.         describing a TOS 0 route only (and not routes for non-zero TOS).
  7654.  
  7655.     E-bit
  7656.         This bit reflects the associated area's
  7657.         ExternalRoutingCapability.  AS external link advertisements are
  7658.         not flooded into/through OSPF stub areas (see Section 3.6).  The
  7659.         E-bit ensures that all members of a stub area agree on that
  7660.         area's configuration.  The E-bit is meaningful only in OSPF
  7661.         Hello packets.  When the E-bit is reset in the Hello packet sent
  7662.         out a particular interface, it means that the router will
  7663.         neither send nor receive AS external link state advertisements
  7664.         on that interface (in other words, the interface connects to a
  7665.         stub area).  Two routers will not become neighbors unless they
  7666.         agree on the state of the E-bit.
  7667.  
  7668.  
  7669.  
  7670.  
  7671.  
  7672.  
  7673.  
  7674.  
  7675.  
  7676.  
  7677.  
  7678.  
  7679.  
  7680.  
  7681.  
  7682.  
  7683.  
  7684.  
  7685.  
  7686.  
  7687.  
  7688.  
  7689.  
  7690.  
  7691.  
  7692.  
  7693.  
  7694.  
  7695.  
  7696.  
  7697.  
  7698.  
  7699.  
  7700. Moy                                                           [Page 169]
  7701.  
  7702. RFC 1583                     OSPF Version 2                   March 1994
  7703.  
  7704.  
  7705. A.3 OSPF Packet Formats
  7706.  
  7707.     There are five distinct OSPF packet types.  All OSPF packet types
  7708.     begin with a standard 24 byte header.  This header is described
  7709.     first.  Each packet type is then described in a succeeding section.
  7710.     In these sections each packet's division into fields is displayed,
  7711.     and then the field definitions are enumerated.
  7712.  
  7713.     All OSPF packet types (other than the OSPF Hello packets) deal with
  7714.     lists of link state advertisements.  For example, Link State Update
  7715.     packets implement the flooding of advertisements throughout the OSPF
  7716.     routing domain.  Because of this, OSPF protocol packets cannot be
  7717.     parsed unless the format of link state advertisements is also
  7718.     understood.  The format of Link state advertisements is described in
  7719.     Section A.4.
  7720.  
  7721.     The receive processing of OSPF packets is detailed in Section 8.2.
  7722.     The sending of OSPF packets is explained in Section 8.1.
  7723.  
  7724.  
  7725.  
  7726.  
  7727.  
  7728.  
  7729.  
  7730.  
  7731.  
  7732.  
  7733.  
  7734.  
  7735.  
  7736.  
  7737.  
  7738.  
  7739.  
  7740.  
  7741.  
  7742.  
  7743.  
  7744.  
  7745.  
  7746.  
  7747.  
  7748.  
  7749.  
  7750.  
  7751.  
  7752.  
  7753.  
  7754.  
  7755.  
  7756. Moy                                                           [Page 170]
  7757.  
  7758. RFC 1583                     OSPF Version 2                   March 1994
  7759.  
  7760.  
  7761. A.3.1 The OSPF packet header
  7762.  
  7763.     Every OSPF packet starts with a common 24 byte header.  This header
  7764.     contains all the necessary information to determine whether the
  7765.     packet should be accepted for further processing.  This
  7766.     determination is described in Section 8.2 of the specification.
  7767.  
  7768.  
  7769.         0                   1                   2                   3
  7770.         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
  7771.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7772.        |   Version #   |     Type      |         Packet length         |
  7773.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7774.        |                          Router ID                            |
  7775.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7776.        |                           Area ID                             |
  7777.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7778.        |           Checksum            |             AuType            |
  7779.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7780.        |                       Authentication                          |
  7781.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7782.        |                       Authentication                          |
  7783.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7784.  
  7785.  
  7786.  
  7787.     Version #
  7788.         The OSPF version number.  This specification documents version 2
  7789.         of the protocol.
  7790.  
  7791.     Type
  7792.         The OSPF packet types are as follows.  The format of each of
  7793.         these packet types is described in a succeeding section.
  7794.  
  7795.  
  7796.  
  7797.                           Type   Description
  7798.                           ________________________________
  7799.                           1      Hello
  7800.                           2      Database Description
  7801.                           3      Link State Request
  7802.                           4      Link State Update
  7803.                           5      Link State Acknowledgment
  7804.  
  7805.  
  7806.  
  7807.  
  7808.  
  7809.  
  7810.  
  7811.  
  7812. Moy                                                           [Page 171]
  7813.  
  7814. RFC 1583                     OSPF Version 2                   March 1994
  7815.  
  7816.  
  7817.     Packet length
  7818.         The length of the protocol packet in bytes.  This length
  7819.         includes the standard OSPF header.
  7820.  
  7821.     Router ID
  7822.         The Router ID of the packet's source.  In OSPF, the source and
  7823.         destination of a routing protocol packet are the two ends of an
  7824.         (potential) adjacency.
  7825.  
  7826.     Area ID
  7827.         A 32 bit number identifying the area that this packet belongs
  7828.         to.  All OSPF packets are associated with a single area.  Most
  7829.         travel a single hop only.  Packets travelling over a virtual
  7830.         link are labelled with the backbone Area ID of 0.0.0.0.
  7831.  
  7832.     Checksum
  7833.         The standard IP checksum of the entire contents of the packet,
  7834.         starting with the OSPF packet header but excluding the 64-bit
  7835.         authentication field.  This checksum is calculated as the 16-bit
  7836.         one's complement of the one's complement sum of all the 16-bit
  7837.         words in the packet, excepting the authentication field.  If the
  7838.         packet's length is not an integral number of 16-bit words, the
  7839.         packet is padded with a byte of zero before checksumming.
  7840.  
  7841.     AuType
  7842.         Identifies the authentication scheme to be used for the packet.
  7843.         Authentication is discussed in Appendix D of the specification.
  7844.         Consult Appendix D for a list of the currently defined
  7845.         authentication types.
  7846.  
  7847.     Authentication
  7848.         A 64-bit field for use by the authentication scheme.
  7849.  
  7850.  
  7851.  
  7852.  
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858.  
  7859.  
  7860.  
  7861.  
  7862.  
  7863.  
  7864.  
  7865.  
  7866.  
  7867.  
  7868. Moy                                                           [Page 172]
  7869.  
  7870. RFC 1583                     OSPF Version 2                   March 1994
  7871.  
  7872.  
  7873. A.3.2 The Hello packet
  7874.  
  7875.     Hello packets are OSPF packet type 1.  These packets are sent
  7876.     periodically on all interfaces (including virtual links) in order to
  7877.     establish and maintain neighbor relationships.  In addition, Hello
  7878.     Packets are multicast on those physical networks having a multicast
  7879.     or broadcast capability, enabling dynamic discovery of neighboring
  7880.     routers.
  7881.  
  7882.     All routers connected to a common network must agree on certain
  7883.     parameters (Network mask, HelloInterval and RouterDeadInterval).
  7884.     These parameters are included in Hello packets, so that differences
  7885.     can inhibit the forming of neighbor relationships.  A detailed
  7886.     explanation of the receive processing for Hello packets is presented
  7887.     in Section 10.5.  The sending of Hello packets is covered in Section
  7888.     9.5.
  7889.  
  7890.  
  7891.         0                   1                   2                   3
  7892.         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
  7893.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7894.        |   Version #   |       1       |         Packet length         |
  7895.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7896.        |                          Router ID                            |
  7897.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7898.        |                           Area ID                             |
  7899.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7900.        |           Checksum            |             AuType            |
  7901.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7902.        |                       Authentication                          |
  7903.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7904.        |                       Authentication                          |
  7905.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7906.        |                        Network Mask                           |
  7907.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7908.        |         HelloInterval         |    Options    |    Rtr Pri    |
  7909.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7910.        |                     RouterDeadInterval                        |
  7911.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7912.        |                      Designated Router                        |
  7913.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7914.        |                   Backup Designated Router                    |
  7915.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7916.        |                          Neighbor                             |
  7917.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7918.        |                              ...                              |
  7919.  
  7920.  
  7921.  
  7922.  
  7923.  
  7924. Moy                                                           [Page 173]
  7925.  
  7926. RFC 1583                     OSPF Version 2                   March 1994
  7927.  
  7928.  
  7929.     Network mask
  7930.         The network mask associated with this interface.  For example,
  7931.         if the interface is to a class B network whose third byte is
  7932.         used for subnetting, the network mask is 0xffffff00.
  7933.  
  7934.     Options
  7935.         The optional capabilities supported by the router, as documented
  7936.         in Section A.2.
  7937.  
  7938.     HelloInterval
  7939.         The number of seconds between this router's Hello packets.
  7940.  
  7941.     Rtr Pri
  7942.         This router's Router Priority.  Used in (Backup) Designated
  7943.         Router election.  If set to 0, the router will be ineligible to
  7944.         become (Backup) Designated Router.
  7945.  
  7946.     RouterDeadInterval
  7947.         The number of seconds before declaring a silent router down.
  7948.  
  7949.     Designated Router
  7950.         The identity of the Designated Router for this network, in the
  7951.         view of the advertising router.  The Designated Router is
  7952.         identified here by its IP interface address on the network.  Set
  7953.         to 0.0.0.0 if there is no Designated Router.
  7954.  
  7955.     Backup Designated Router
  7956.         The identity of the Backup Designated Router for this network,
  7957.         in the view of the advertising router.  The Backup Designated
  7958.         Router is identified here by its IP interface address on the
  7959.         network.  Set to 0.0.0.0 if there is no Backup Designated
  7960.         Router.
  7961.  
  7962.     Neighbor
  7963.         The Router IDs of each router from whom valid Hello packets have
  7964.         been seen recently on the network.  Recently means in the last
  7965.         RouterDeadInterval seconds.
  7966.  
  7967.  
  7968.  
  7969.  
  7970.  
  7971.  
  7972.  
  7973.  
  7974.  
  7975.  
  7976.  
  7977.  
  7978.  
  7979.  
  7980. Moy                                                           [Page 174]
  7981.  
  7982. RFC 1583                     OSPF Version 2                   March 1994
  7983.  
  7984.  
  7985. A.3.3 The Database Description packet
  7986.  
  7987.     Database Description packets are OSPF packet type 2.  These packets
  7988.     are exchanged when an adjacency is being initialized.  They describe
  7989.     the contents of the topological database.  Multiple packets may be
  7990.     used to describe the database.  For this purpose a poll-response
  7991.     procedure is used.  One of the routers is designated to be master,
  7992.     the other a slave.  The master sends Database Description packets
  7993.     (polls) which are acknowledged by Database Description packets sent
  7994.     by the slave (responses).  The responses are linked to the polls via
  7995.     the packets' DD sequence numbers.
  7996.  
  7997.  
  7998.         0                   1                   2                   3
  7999.         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
  8000.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8001.        |   Version #   |       2       |         Packet length         |
  8002.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8003.        |                          Router ID                            |
  8004.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8005.        |                           Area ID                             |
  8006.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8007.        |           Checksum            |             AuType            |
  8008.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8009.        |                       Authentication                          |
  8010.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8011.        |                       Authentication                          |
  8012.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8013.        |       0       |       0       |    Options    |0|0|0|0|0|I|M|MS
  8014.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8015.        |                     DD sequence number                        |
  8016.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8017.        |                                                               |
  8018.        +-                                                             -+
  8019.        |                             A                                 |
  8020.        +-                 Link State Advertisement                    -+
  8021.        |                           Header                              |
  8022.        +-                                                             -+
  8023.        |                                                               |
  8024.        +-                                                             -+
  8025.        |                                                               |
  8026.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8027.        |                              ...                              |
  8028.  
  8029.  
  8030.     The format of the Database Description packet is very similar to
  8031.     both the Link State Request and Link State Acknowledgment packets.
  8032.     The main part of all three is a list of items, each item describing
  8033.  
  8034.  
  8035.  
  8036. Moy                                                           [Page 175]
  8037.  
  8038. RFC 1583                     OSPF Version 2                   March 1994
  8039.  
  8040.  
  8041.     a piece of the topological database.  The sending of Database
  8042.     Description Packets is documented in Section 10.8.  The reception of
  8043.     Database Description packets is documented in Section 10.6.
  8044.  
  8045.     0   These fields are reserved.  They must be 0.
  8046.  
  8047.     Options
  8048.         The optional capabilities supported by the router, as documented
  8049.         in Section A.2.
  8050.  
  8051.     I-bit
  8052.         The Init bit.  When set to 1, this packet is the first in the
  8053.         sequence of Database Description Packets.
  8054.  
  8055.     M-bit
  8056.         The More bit.  When set to 1, it indicates that more Database
  8057.         Description Packets are to follow.
  8058.  
  8059.     MS-bit
  8060.         The Master/Slave bit.  When set to 1, it indicates that the
  8061.         router is the master during the Database Exchange process.
  8062.         Otherwise, the router is the slave.
  8063.  
  8064.     DD sequence number
  8065.         Used to sequence the collection of Database Description Packets.
  8066.         The initial value (indicated by the Init bit being set) should
  8067.         be unique.  The DD sequence number then increments until the
  8068.         complete database description has been sent.
  8069.  
  8070.  
  8071.     The rest of the packet consists of a (possibly partial) list of the
  8072.     topological database's pieces.  Each link state advertisement in the
  8073.     database is described by its link state advertisement header.  The
  8074.     link state advertisement header is documented in Section A.4.1.  It
  8075.     contains all the information required to uniquely identify both the
  8076.     advertisement and the advertisement's current instance.
  8077.  
  8078.  
  8079.  
  8080.  
  8081.  
  8082.  
  8083.  
  8084.  
  8085.  
  8086.  
  8087.  
  8088.  
  8089.  
  8090.  
  8091.  
  8092. Moy                                                           [Page 176]
  8093.  
  8094. RFC 1583                     OSPF Version 2                   March 1994
  8095.  
  8096.  
  8097. A.3.4 The Link State Request packet
  8098.  
  8099.     Link State Request packets are OSPF packet type 3.  After exchanging
  8100.     Database Description packets with a neighboring router, a router may
  8101.     find that parts of its topological database are out of date.  The
  8102.     Link State Request packet is used to request the pieces of the
  8103.     neighbor's database that are more up to date.  Multiple Link State
  8104.     Request packets may need to be used.  The sending of Link State
  8105.     Request packets is the last step in bringing up an adjacency.
  8106.  
  8107.     A router that sends a Link State Request packet has in mind the
  8108.     precise instance of the database pieces it is requesting, defined by
  8109.     LS sequence number, LS checksum, and LS age, although these fields
  8110.     are not specified in the Link State Request Packet itself.  The
  8111.     router may receive even more recent instances in response.
  8112.  
  8113.     The sending of Link State Request packets is documented in Section
  8114.     10.9.  The reception of Link State Request packets is documented in
  8115.     Section 10.7.
  8116.  
  8117.  
  8118.         0                   1                   2                   3
  8119.         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
  8120.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8121.        |   Version #   |       3       |         Packet length         |
  8122.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8123.        |                          Router ID                            |
  8124.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8125.        |                           Area ID                             |
  8126.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8127.        |           Checksum            |             AuType            |
  8128.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8129.        |                       Authentication                          |
  8130.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8131.        |                       Authentication                          |
  8132.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8133.        |                          LS type                              |
  8134.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8135.        |                       Link State ID                           |
  8136.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8137.        |                     Advertising Router                        |
  8138.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8139.        |                              ...                              |
  8140.  
  8141.  
  8142.     Each advertisement requested is specified by its LS type, Link State
  8143.     ID, and Advertising Router.  This uniquely identifies the
  8144.     advertisement, but not its instance.  Link State Request packets are
  8145.  
  8146.  
  8147.  
  8148. Moy                                                           [Page 177]
  8149.  
  8150. RFC 1583                     OSPF Version 2                   March 1994
  8151.  
  8152.  
  8153.     understood to be requests for the most recent instance (whatever
  8154.     that might be).
  8155.  
  8156.  
  8157.  
  8158.  
  8159.  
  8160.  
  8161.  
  8162.  
  8163.  
  8164.  
  8165.  
  8166.  
  8167.  
  8168.  
  8169.  
  8170.  
  8171.  
  8172.  
  8173.  
  8174.  
  8175.  
  8176.  
  8177.  
  8178.  
  8179.  
  8180.  
  8181.  
  8182.  
  8183.  
  8184.  
  8185.  
  8186.  
  8187.  
  8188.  
  8189.  
  8190.  
  8191.  
  8192.  
  8193.  
  8194.  
  8195.  
  8196.  
  8197.  
  8198.  
  8199.  
  8200.  
  8201.  
  8202.  
  8203.  
  8204. Moy                                                           [Page 178]
  8205.  
  8206. RFC 1583                     OSPF Version 2                   March 1994
  8207.  
  8208.  
  8209. A.3.5 The Link State Update packet
  8210.  
  8211.     Link State Update packets are OSPF packet type 4.  These packets
  8212.     implement the flooding of link state advertisements.  Each Link
  8213.     State Update packet carries a collection of link state
  8214.     advertisements one hop further from its origin.  Several link state
  8215.     advertisements may be included in a single packet.
  8216.  
  8217.     Link State Update packets are multicast on those physical networks
  8218.     that support multicast/broadcast.  In order to make the flooding
  8219.     procedure reliable, flooded advertisements are acknowledged in Link
  8220.     State Acknowledgment packets.  If retransmission of certain
  8221.     advertisements is necessary, the retransmitted advertisements are
  8222.     always carried by unicast Link State Update packets.  For more
  8223.     information on the reliable flooding of link state advertisements,
  8224.     consult Section 13.
  8225.  
  8226.  
  8227.         0                   1                   2                   3
  8228.         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
  8229.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8230.        |   Version #   |       4       |         Packet length         |
  8231.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8232.        |                          Router ID                            |
  8233.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8234.        |                           Area ID                             |
  8235.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8236.        |           Checksum            |             AuType            |
  8237.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8238.        |                       Authentication                          |
  8239.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8240.        |                       Authentication                          |
  8241.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8242.        |                      # advertisements                         |
  8243.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8244.        |                                                               |
  8245.        +-                                                            +-+
  8246.        |                  Link state advertisements                    |
  8247.        +-                                                            +-+
  8248.        |                              ...                              |
  8249.  
  8250.  
  8251.  
  8252.     # advertisements
  8253.         The number of link state advertisements included in this update.
  8254.  
  8255.  
  8256.  
  8257.  
  8258.  
  8259.  
  8260. Moy                                                           [Page 179]
  8261.  
  8262. RFC 1583                     OSPF Version 2                   March 1994
  8263.  
  8264.  
  8265.     The body of the Link State Update packet consists of a list of link
  8266.     state advertisements.  Each advertisement begins with a common 20
  8267.     byte header, the link state advertisement header.  This header is
  8268.     described in Section A.4.1.  Otherwise, the format of each of the
  8269.     five types of link state advertisements is different.  Their formats
  8270.     are described in Section A.4.
  8271.  
  8272.  
  8273.  
  8274.  
  8275.  
  8276.  
  8277.  
  8278.  
  8279.  
  8280.  
  8281.  
  8282.  
  8283.  
  8284.  
  8285.  
  8286.  
  8287.  
  8288.  
  8289.  
  8290.  
  8291.  
  8292.  
  8293.  
  8294.  
  8295.  
  8296.  
  8297.  
  8298.  
  8299.  
  8300.  
  8301.  
  8302.  
  8303.  
  8304.  
  8305.  
  8306.  
  8307.  
  8308.  
  8309.  
  8310.  
  8311.  
  8312.  
  8313.  
  8314.  
  8315.  
  8316. Moy                                                           [Page 180]
  8317.  
  8318. RFC 1583                     OSPF Version 2                   March 1994
  8319.  
  8320.  
  8321. A.3.6 The Link State Acknowledgment packet
  8322.  
  8323.     Link State Acknowledgment Packets are OSPF packet type 5.  To make
  8324.     the flooding of link state advertisements reliable, flooded
  8325.     advertisements are explicitly acknowledged.  This acknowledgment is
  8326.     accomplished through the sending and receiving of Link State
  8327.     Acknowledgment packets.  Multiple link state advertisements can be
  8328.     acknowledged in a single Link State Acknowledgment packet.
  8329.  
  8330.     Depending on the state of the sending interface and the source of
  8331.     the advertisements being acknowledged, a Link State Acknowledgment
  8332.     packet is sent either to the multicast address AllSPFRouters, to the
  8333.     multicast address AllDRouters, or as a unicast.  The sending of Link
  8334.     State Acknowledgement packets is documented in Section 13.5.  The
  8335.     reception of Link State Acknowledgement packets is documented in
  8336.     Section 13.7.
  8337.  
  8338.     The format of this packet is similar to that of the Data Description
  8339.     packet.  The body of both packets is simply a list of link state
  8340.     advertisement headers.
  8341.  
  8342.  
  8343.         0                   1                   2                   3
  8344.         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
  8345.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8346.        |   Version #   |       5       |         Packet length         |
  8347.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8348.        |                          Router ID                            |
  8349.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8350.        |                           Area ID                             |
  8351.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8352.        |           Checksum            |             AuType            |
  8353.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8354.        |                       Authentication                          |
  8355.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8356.        |                       Authentication                          |
  8357.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8358.        |                                                               |
  8359.        +-                                                             -+
  8360.        |                             A                                 |
  8361.        +-                 Link State Advertisement                    -+
  8362.        |                           Header                              |
  8363.        +-                                                             -+
  8364.        |                                                               |
  8365.        +-                                                             -+
  8366.        |                                                               |
  8367.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8368.        |                              ...                              |
  8369.  
  8370.  
  8371.  
  8372. Moy                                                           [Page 181]
  8373.  
  8374. RFC 1583                     OSPF Version 2                   March 1994
  8375.  
  8376.  
  8377.     Each acknowledged link state advertisement is described by its link
  8378.     state advertisement header.  The link state advertisement header is
  8379.     documented in Section A.4.1.  It contains all the information
  8380.     required to uniquely identify both the advertisement and the
  8381.     advertisement's current instance.
  8382.  
  8383.  
  8384.  
  8385.  
  8386.  
  8387.  
  8388.  
  8389.  
  8390.  
  8391.  
  8392.  
  8393.  
  8394.  
  8395.  
  8396.  
  8397.  
  8398.  
  8399.  
  8400.  
  8401.  
  8402.  
  8403.  
  8404.  
  8405.  
  8406.  
  8407.  
  8408.  
  8409.  
  8410.  
  8411.  
  8412.  
  8413.  
  8414.  
  8415.  
  8416.  
  8417.  
  8418.  
  8419.  
  8420.  
  8421.  
  8422.  
  8423.  
  8424.  
  8425.  
  8426.  
  8427.  
  8428. Moy                                                           [Page 182]
  8429.  
  8430. RFC 1583                     OSPF Version 2                   March 1994
  8431.  
  8432.  
  8433. A.4 Link state advertisement formats
  8434.  
  8435.     There are five distinct types of link state advertisements.  Each
  8436.     link state advertisement begins with a standard 20-byte link state
  8437.     advertisement header.  This header is explained in Section A.4.1.
  8438.     Succeeding sections then diagram the separate link state
  8439.     advertisement types.
  8440.  
  8441.     Each link state advertisement describes a piece of the OSPF routing
  8442.     domain.  Every router originates a router links advertisement.  In
  8443.     addition, whenever the router is elected Designated Router, it
  8444.     originates a network links advertisement.  Other types of link state
  8445.     advertisements may also be originated (see Section 12.4).  All link
  8446.     state advertisements are then flooded throughout the OSPF routing
  8447.     domain.  The flooding algorithm is reliable, ensuring that all
  8448.     routers have the same collection of link state advertisements.  (See
  8449.     Section 13 for more information concerning the flooding algorithm).
  8450.     This collection of advertisements is called the link state (or
  8451.     topological) database.
  8452.  
  8453.     From the link state database, each router constructs a shortest path
  8454.     tree with itself as root.  This yields a routing table (see Section
  8455.     11).  For the details of the routing table build process, see
  8456.     Section 16.
  8457.  
  8458.  
  8459.  
  8460.  
  8461.  
  8462.  
  8463.  
  8464.  
  8465.  
  8466.  
  8467.  
  8468.  
  8469.  
  8470.  
  8471.  
  8472.  
  8473.  
  8474.  
  8475.  
  8476.  
  8477.  
  8478.  
  8479.  
  8480.  
  8481.  
  8482.  
  8483.  
  8484. Moy                                                           [Page 183]
  8485.  
  8486. RFC 1583                     OSPF Version 2                   March 1994
  8487.  
  8488.  
  8489. A.4.1 The Link State Advertisement header
  8490.  
  8491.     All link state advertisements begin with a common 20 byte header.
  8492.     This header contains enough information to uniquely identify the
  8493.     advertisement (LS type, Link State ID, and Advertising Router).
  8494.     Multiple instances of the link state advertisement may exist in the
  8495.     routing domain at the same time.  It is then necessary to determine
  8496.     which instance is more recent.  This is accomplished by examining
  8497.     the LS age, LS sequence number and LS checksum fields that are also
  8498.     contained in the link state advertisement header.
  8499.  
  8500.  
  8501.         0                   1                   2                   3
  8502.         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
  8503.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8504.        |            LS age             |    Options    |    LS type    |
  8505.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8506.        |                        Link State ID                          |
  8507.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8508.        |                     Advertising Router                        |
  8509.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8510.        |                     LS sequence number                        |
  8511.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8512.        |         LS checksum           |             length            |
  8513.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8514.  
  8515.  
  8516.  
  8517.     LS age
  8518.         The time in seconds since the link state advertisement was
  8519.         originated.
  8520.  
  8521.     Options
  8522.         The optional capabilities supported by the described portion of
  8523.         the routing domain.  OSPF's optional capabilities are documented
  8524.         in Section A.2.
  8525.  
  8526.     LS type
  8527.         The type of the link state advertisement.  Each link state type
  8528.         has a separate advertisement format.  The link state types are
  8529.         as follows (see Section 12.1.3 for further explanation):
  8530.  
  8531.  
  8532.  
  8533.  
  8534.  
  8535.  
  8536.  
  8537.  
  8538.  
  8539.  
  8540. Moy                                                           [Page 184]
  8541.  
  8542. RFC 1583                     OSPF Version 2                   March 1994
  8543.  
  8544.  
  8545.  
  8546.                         LS Type   Description
  8547.                         ___________________________________
  8548.                         1         Router links
  8549.                         2         Network links
  8550.                         3         Summary link (IP network)
  8551.                         4         Summary link (ASBR)
  8552.                         5         AS external link
  8553.  
  8554.  
  8555.  
  8556.  
  8557.     Link State ID
  8558.         This field identifies the portion of the internet environment
  8559.         that is being described by the advertisement.  The contents of
  8560.         this field depend on the advertisement's LS type.  For example,
  8561.         in network links advertisements the Link State ID is set to the
  8562.         IP interface address of the network's Designated Router (from
  8563.         which the network's IP address can be derived).  The Link State
  8564.         ID is further discussed in Section 12.1.4.
  8565.  
  8566.     Advertising Router
  8567.         The Router ID of the router that originated the link state
  8568.         advertisement.  For example, in network links advertisements
  8569.         this field is set to the Router ID of the network's Designated
  8570.         Router.
  8571.  
  8572.     LS sequence number
  8573.         Detects old or duplicate link state advertisements.  Successive
  8574.         instances of a link state advertisement are given successive LS
  8575.         sequence numbers.  See Section 12.1.6 for more details.
  8576.  
  8577.     LS checksum
  8578.         The Fletcher checksum of the complete contents of the link state
  8579.         advertisement, including the link state advertisement header but
  8580.         excepting the LS age field. See Section 12.1.7 for more details.
  8581.  
  8582.     length
  8583.         The length in bytes of the link state advertisement.  This
  8584.         includes the 20 byte link state advertisement header.
  8585.  
  8586.  
  8587.  
  8588.  
  8589.  
  8590.  
  8591.  
  8592.  
  8593.  
  8594.  
  8595.  
  8596. Moy                                                           [Page 185]
  8597.  
  8598. RFC 1583                     OSPF Version 2                   March 1994
  8599.  
  8600.  
  8601. A.4.2 Router links advertisements
  8602.  
  8603.     Router links advertisements are the Type 1 link state
  8604.     advertisements.  Each router in an area originates a router links
  8605.     advertisement.  The advertisement describes the state and cost of
  8606.     the router's links (i.e., interfaces) to the area.  All of the
  8607.     router's links to the area must be described in a single router
  8608.     links advertisement.  For details concerning the construction of
  8609.     router links advertisements, see Section 12.4.1.
  8610.  
  8611.  
  8612.         0                   1                   2                   3
  8613.         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
  8614.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8615.        |            LS age             |     Options   |       1       |
  8616.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8617.        |                        Link State ID                          |
  8618.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8619.        |                     Advertising Router                        |
  8620.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8621.        |                     LS sequence number                        |
  8622.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8623.        |         LS checksum           |             length            |
  8624.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8625.        |    0    |V|E|B|        0      |            # links            |
  8626.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8627.        |                          Link ID                              |
  8628.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8629.        |                         Link Data                             |
  8630.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8631.        |     Type      |     # TOS     |        TOS 0 metric           |
  8632.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8633.        |      TOS      |        0      |            metric             |
  8634.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8635.        |                              ...                              |
  8636.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8637.        |      TOS      |        0      |            metric             |
  8638.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8639.        |                          Link ID                              |
  8640.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8641.        |                         Link Data                             |
  8642.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8643.        |                              ...                              |
  8644.  
  8645.  
  8646.     In router links advertisements, the Link State ID field is set to
  8647.     the router's OSPF Router ID.  The T-bit is set in the
  8648.     advertisement's Option field if and only if the router is able to
  8649.  
  8650.  
  8651.  
  8652. Moy                                                           [Page 186]
  8653.  
  8654. RFC 1583                     OSPF Version 2                   March 1994
  8655.  
  8656.  
  8657.     calculate a separate set of routes for each IP TOS.  Router links
  8658.     advertisements are flooded throughout a single area only.
  8659.  
  8660.     bit V
  8661.         When set, the router is an endpoint of an active virtual link
  8662.         that is using the described area as a Transit area (V is for
  8663.         virtual link endpoint).
  8664.  
  8665.     bit E
  8666.         When set, the router is an AS boundary router (E is for
  8667.         external)
  8668.  
  8669.     bit B
  8670.         When set, the router is an area border router (B is for border)
  8671.  
  8672.     # links
  8673.         The number of router links described by this advertisement.
  8674.         This must be the total collection of router links (i.e.,
  8675.         interfaces) to the area.
  8676.  
  8677.  
  8678.     The following fields are used to describe each router link (i.e.,
  8679.     interface). Each router link is typed (see the below Type field).
  8680.     The Type field indicates the kind of link being described.  It may
  8681.     be a link to a transit network, to another router or to a stub
  8682.     network.  The values of all the other fields describing a router
  8683.     link depend on the link's Type.  For example, each link has an
  8684.     associated 32-bit data field.  For links to stub networks this field
  8685.     specifies the network's IP address mask.  For other link types the
  8686.     Link Data specifies the router's associated IP interface address.
  8687.  
  8688.  
  8689.     Type
  8690.         A quick description of the router link.  One of the following.
  8691.         Note that host routes are classified as links to stub networks
  8692.         whose network mask is 0xffffffff.
  8693.  
  8694.  
  8695.  
  8696.                  Type   Description
  8697.                  __________________________________________________
  8698.                  1      Point-to-point connection to another router
  8699.                  2      Connection to a transit network
  8700.                  3      Connection to a stub network
  8701.                  4      Virtual link
  8702.  
  8703.  
  8704.  
  8705.  
  8706.  
  8707.  
  8708. Moy                                                           [Page 187]
  8709.  
  8710. RFC 1583                     OSPF Version 2                   March 1994
  8711.  
  8712.  
  8713.     Link ID
  8714.         Identifies the object that this router link connects to.  Value
  8715.         depends on the link's Type.  When connecting to an object that
  8716.         also originates a link state advertisement (i.e., another router
  8717.         or a transit network) the Link ID is equal to the neighboring
  8718.         advertisement's Link State ID.  This provides the key for
  8719.         looking up said advertisement in the link state database.  See
  8720.         Section 12.2 for more details.
  8721.  
  8722.  
  8723.  
  8724.                        Type   Link ID
  8725.                        ______________________________________
  8726.                        1      Neighboring router's Router ID
  8727.                        2      IP address of Designated Router
  8728.                        3      IP network/subnet number
  8729.                        4      Neighboring router's Router ID
  8730.  
  8731.  
  8732.  
  8733.  
  8734.     Link Data
  8735.         Contents again depend on the link's Type field. For connections
  8736.         to stub networks, it specifies the network's IP address mask.
  8737.         For unnumbered point-to-point connections, it specifies the
  8738.         interface's MIB-II [RFC 1213] ifIndex value. For the other link
  8739.         types it specifies the router's associated IP interface address.
  8740.         This latter piece of information is needed during the routing
  8741.         table build process, when calculating the IP address of the next
  8742.         hop. See Section 16.1.1 for more details.
  8743.  
  8744.     # TOS
  8745.         The number of different TOS metrics given for this link, not
  8746.         counting the required metric for TOS 0.  For example, if no
  8747.         additional TOS metrics are given, this field should be set to 0.
  8748.  
  8749.     TOS 0 metric
  8750.         The cost of using this router link for TOS 0.
  8751.  
  8752.  
  8753.     For each link, separate metrics may be specified for each Type of
  8754.     Service (TOS).  The metric for TOS 0 must always be included, and
  8755.     was discussed above.  Metrics for non-zero TOS are described below.
  8756.     The encoding of TOS in OSPF link state advertisements is described
  8757.     in Section 12.3.  Note that the cost for non-zero TOS values that
  8758.     are not specified defaults to the TOS 0 cost.  Metrics must be
  8759.     listed in order of increasing TOS encoding.  For example, the metric
  8760.     for TOS 16 must always follow the metric for TOS 8 when both are
  8761.  
  8762.  
  8763.  
  8764. Moy                                                           [Page 188]
  8765.  
  8766. RFC 1583                     OSPF Version 2                   March 1994
  8767.  
  8768.  
  8769.     specified.
  8770.  
  8771.  
  8772.     TOS IP Type of Service that this metric refers to.  The encoding of
  8773.         TOS in OSPF link state advertisements is described in Section
  8774.         12.3.
  8775.  
  8776.     metric
  8777.         The cost of using this outbound router link, for traffic of the
  8778.         specified TOS.
  8779.  
  8780.  
  8781.  
  8782.  
  8783.  
  8784.  
  8785.  
  8786.  
  8787.  
  8788.  
  8789.  
  8790.  
  8791.  
  8792.  
  8793.  
  8794.  
  8795.  
  8796.  
  8797.  
  8798.  
  8799.  
  8800.  
  8801.  
  8802.  
  8803.  
  8804.  
  8805.  
  8806.  
  8807.  
  8808.  
  8809.  
  8810.  
  8811.  
  8812.  
  8813.  
  8814.  
  8815.  
  8816.  
  8817.  
  8818.  
  8819.  
  8820. Moy                                                           [Page 189]
  8821.  
  8822. RFC 1583                     OSPF Version 2                   March 1994
  8823.  
  8824.  
  8825. A.4.3 Network links advertisements
  8826.  
  8827.     Network links advertisements are the Type 2 link state
  8828.     advertisements.  A network links advertisement is originated for
  8829.     each transit network in the area.  A transit network is a multi-
  8830.     access network that has more than one attached router.  The network
  8831.     links advertisement is originated by the network's Designated
  8832.     Router.  The advertisement describes all routers attached to the
  8833.     network, including the Designated Router itself.  The
  8834.     advertisement's Link State ID field lists the IP interface address
  8835.     of the Designated Router.
  8836.  
  8837.     The distance from the network to all attached routers is zero, for
  8838.     all Types of Service.  This is why the TOS and metric fields need
  8839.     not be specified in the network links advertisement.  For details
  8840.     concerning the construction of network links advertisements, see
  8841.     Section 12.4.2.
  8842.  
  8843.  
  8844.         0                   1                   2                   3
  8845.         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
  8846.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8847.        |            LS age             |      Options  |      2        |
  8848.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8849.        |                        Link State ID                          |
  8850.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8851.        |                     Advertising Router                        |
  8852.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8853.        |                     LS sequence number                        |
  8854.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8855.        |         LS checksum           |             length            |
  8856.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8857.        |                         Network Mask                          |
  8858.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8859.        |                        Attached Router                        |
  8860.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8861.        |                              ...                              |
  8862.  
  8863.  
  8864.  
  8865.     Network Mask
  8866.         The IP address mask for the network.  For example, a class A
  8867.         network would have the mask 0xff000000.
  8868.  
  8869.     Attached Router
  8870.         The Router IDs of each of the routers attached to the network.
  8871.         Actually, only those routers that are fully adjacent to the
  8872.         Designated Router are listed.  The Designated Router includes
  8873.  
  8874.  
  8875.  
  8876. Moy                                                           [Page 190]
  8877.  
  8878. RFC 1583                     OSPF Version 2                   March 1994
  8879.  
  8880.  
  8881.         itself in this list.  The number of routers included can be
  8882.         deduced from the link state advertisement header's length field.
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.  
  8898.  
  8899.  
  8900.  
  8901.  
  8902.  
  8903.  
  8904.  
  8905.  
  8906.  
  8907.  
  8908.  
  8909.  
  8910.  
  8911.  
  8912.  
  8913.  
  8914.  
  8915.  
  8916.  
  8917.  
  8918.  
  8919.  
  8920.  
  8921.  
  8922.  
  8923.  
  8924.  
  8925.  
  8926.  
  8927.  
  8928.  
  8929.  
  8930.  
  8931.  
  8932. Moy                                                           [Page 191]
  8933.  
  8934. RFC 1583                     OSPF Version 2                   March 1994
  8935.  
  8936.  
  8937. A.4.4 Summary link advertisements
  8938.  
  8939.     Summary link advertisements are the Type 3 and 4 link state
  8940.     advertisements.  These advertisements are originated by area border
  8941.     routers.  A separate summary link advertisement is made for each
  8942.     destination (known to the router) which belongs to the AS, yet is
  8943.     outside the area.  For details concerning the construction of
  8944.     summary link advertisements, see Section 12.4.3.
  8945.  
  8946.     Type 3 link state advertisements are used when the destination is an
  8947.     IP network.  In this case the advertisement's Link State ID field is
  8948.     an IP network number (if necessary, the Link State ID can also have
  8949.     one or more of the network's "host" bits set; see Appendix F for
  8950.     details). When the destination is an AS boundary router, a Type 4
  8951.     advertisement is used, and the Link State ID field is the AS
  8952.     boundary router's OSPF Router ID.  (To see why it is necessary to
  8953.     advertise the location of each ASBR, consult Section 16.4.)  Other
  8954.     than the difference in the Link State ID field, the format of Type 3
  8955.     and 4 link state advertisements is identical.
  8956.  
  8957.  
  8958.         0                   1                   2                   3
  8959.         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
  8960.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8961.        |            LS age             |     Options   |    3 or 4     |
  8962.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8963.        |                        Link State ID                          |
  8964.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8965.        |                     Advertising Router                        |
  8966.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8967.        |                     LS sequence number                        |
  8968.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8969.        |         LS checksum           |             length            |
  8970.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8971.        |                         Network Mask                          |
  8972.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8973.        |     TOS       |                  metric                       |
  8974.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8975.        |                              ...                              |
  8976.  
  8977.  
  8978.     For stub areas, Type 3 summary link advertisements can also be used
  8979.     to describe a (per-area) default route.  Default summary routes are
  8980.     used in stub areas instead of flooding a complete set of external
  8981.     routes.  When describing a default summary route, the
  8982.     advertisement's Link State ID is always set to DefaultDestination
  8983.     (0.0.0.0) and the Network Mask is set to 0.0.0.0.
  8984.  
  8985.  
  8986.  
  8987.  
  8988. Moy                                                           [Page 192]
  8989.  
  8990. RFC 1583                     OSPF Version 2                   March 1994
  8991.  
  8992.  
  8993.     Separate costs may be advertised for each IP Type of Service.  The
  8994.     encoding of TOS in OSPF link state advertisements is described in
  8995.     Section 12.3.  Note that the cost for TOS 0 must be included, and is
  8996.     always listed first.  If the T-bit is reset in the advertisement's
  8997.     Option field, only a route for TOS 0 is described by the
  8998.     advertisement.  Otherwise, routes for the other TOS values are also
  8999.     described; if a cost for a certain TOS is not included, its cost
  9000.     defaults to that specified for TOS 0.
  9001.  
  9002.     Network Mask
  9003.         For Type 3 link state advertisements, this indicates the
  9004.         destination network's IP address mask.  For example, when
  9005.         advertising the location of a class A network the value
  9006.         0xff000000 would be used.  This field is not meaningful and must
  9007.         be zero for Type 4 link state advertisements.
  9008.  
  9009.  
  9010.     For each specified Type of Service, the following fields are
  9011.     defined.  The number of TOS routes included can be calculated from
  9012.     the link state advertisement header's length field.  Values for TOS
  9013.     0 must be specified; they are listed first.  Other values must be
  9014.     listed in order of increasing TOS encoding.  For example, the cost
  9015.     for TOS 16 must always follow the cost for TOS 8 when both are
  9016.     specified.
  9017.  
  9018.  
  9019.     TOS The Type of Service that the following cost concerns.  The
  9020.         encoding of TOS in OSPF link state advertisements is described
  9021.         in Section 12.3.
  9022.  
  9023.     metric
  9024.         The cost of this route.  Expressed in the same units as the
  9025.         interface costs in the router links advertisements.
  9026.  
  9027.  
  9028.  
  9029.  
  9030.  
  9031.  
  9032.  
  9033.  
  9034.  
  9035.  
  9036.  
  9037.  
  9038.  
  9039.  
  9040.  
  9041.  
  9042.  
  9043.  
  9044. Moy                                                           [Page 193]
  9045.  
  9046. RFC 1583                     OSPF Version 2                   March 1994
  9047.  
  9048.  
  9049. A.4.5 AS external link advertisements
  9050.  
  9051.     AS external link advertisements are the Type 5 link state
  9052.     advertisements.  These advertisements are originated by AS boundary
  9053.     routers.  A separate advertisement is made for each destination
  9054.     (known to the router) which is external to the AS.  For details
  9055.     concerning the construction of AS external link advertisements, see
  9056.     Section 12.4.3.
  9057.  
  9058.     AS external link advertisements usually describe a particular
  9059.     external destination.  For these advertisements the Link State ID
  9060.     field specifies an IP network number (if necessary, the Link State
  9061.     ID can also have one or more of the network's "host" bits set; see
  9062.     Appendix F for details).  AS external link advertisements are also
  9063.     used to describe a default route.  Default routes are used when no
  9064.     specific route exists to the destination.  When describing a default
  9065.     route, the Link State ID is always set to DefaultDestination
  9066.     (0.0.0.0) and the Network Mask is set to 0.0.0.0.
  9067.  
  9068.  
  9069.         0                   1                   2                   3
  9070.         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
  9071.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9072.        |            LS age             |     Options   |      5        |
  9073.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9074.        |                        Link State ID                          |
  9075.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9076.        |                     Advertising Router                        |
  9077.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9078.        |                     LS sequence number                        |
  9079.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9080.        |         LS checksum           |             length            |
  9081.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9082.        |                         Network Mask                          |
  9083.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9084.        |E|    TOS      |                  metric                       |
  9085.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9086.        |                      Forwarding address                       |
  9087.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9088.        |                      External Route Tag                       |
  9089.        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  9090.        |                              ...                              |
  9091.  
  9092.  
  9093.  
  9094.     Separate costs may be advertised for each IP Type of Service.  The
  9095.     encoding of TOS in OSPF link state advertisements is described in
  9096.     Section 12.3.  Note that the cost for TOS 0 must be included, and is
  9097.  
  9098.  
  9099.  
  9100. Moy                                                           [Page 194]
  9101.  
  9102. RFC 1583                     OSPF Version 2                   March 1994
  9103.  
  9104.  
  9105.     always listed first.  If the T-bit is reset in the advertisement's
  9106.     Option field, only a route for TOS 0 is described by the
  9107.     advertisement.  Otherwise, routes for the other TOS values are also
  9108.     described; if a cost for a certain TOS is not included, its cost
  9109.     defaults to that specified for TOS 0.
  9110.  
  9111.     Network Mask
  9112.         The IP address mask for the advertised destination.  For
  9113.         example, when advertising a class A network the mask 0xff000000
  9114.         would be used.
  9115.  
  9116.  
  9117.     For each specified Type of Service, the following fields are
  9118.     defined.  The number of TOS routes included can be calculated from
  9119.     the link state advertisement header's length field.  Values for TOS
  9120.     0 must be specified; they are listed first.  Other values must be
  9121.     listed in order of increasing TOS encoding.  For example, the cost
  9122.     for TOS 16 must always follow the cost for TOS 8 when both are
  9123.     specified.
  9124.  
  9125.  
  9126.     bit E
  9127.         The type of external metric.  If bit E is set, the metric
  9128.         specified is a Type 2 external metric.  This means the metric is
  9129.         considered larger than any link state path.  If bit E is zero,
  9130.         the specified metric is a Type 1 external metric.  This means
  9131.         that is is comparable directly (without translation) to the link
  9132.         state metric.
  9133.  
  9134.     Forwarding address
  9135.         Data traffic for the advertised destination will be forwarded to
  9136.         this address.  If the Forwarding address is set to 0.0.0.0, data
  9137.         traffic will be forwarded instead to the advertisement's
  9138.         originator (i.e., the responsible AS boundary router).
  9139.  
  9140.     TOS The Type of Service that the following cost concerns.  The
  9141.         encoding of TOS in OSPF link state advertisements is described
  9142.         in Section 12.3.
  9143.  
  9144.     metric
  9145.         The cost of this route.  Interpretation depends on the external
  9146.         type indication (bit E above).
  9147.  
  9148.     External Route Tag
  9149.         A 32-bit field attached to each external route.  This is not
  9150.         used by the OSPF protocol itself.  It may be used to communicate
  9151.         information between AS boundary routers; the precise nature of
  9152.         such information is outside the scope of this specification.
  9153.  
  9154.  
  9155.  
  9156. Moy                                                           [Page 195]
  9157.  
  9158. RFC 1583                     OSPF Version 2                   March 1994
  9159.  
  9160.  
  9161. B. Architectural Constants
  9162.  
  9163.     Several OSPF protocol parameters have fixed architectural values.
  9164.     These parameters have been referred to in the text by names such as
  9165.     LSRefreshTime.  The same naming convention is used for the
  9166.     configurable protocol parameters.  They are defined in Appendix C.
  9167.  
  9168.     The name of each architectural constant follows, together with its
  9169.     value and a short description of its function.
  9170.  
  9171.  
  9172.     LSRefreshTime
  9173.         The maximum time between distinct originations of any particular
  9174.         link state advertisement.  When the LS age field of one of the
  9175.         router's self-originated advertisements reaches the value
  9176.         LSRefreshTime, a new instance of the link state advertisement is
  9177.         originated, even though the contents of the advertisement (apart
  9178.         from the link state header) will be the same.  The value of
  9179.         LSRefreshTime is set to 30 minutes.
  9180.  
  9181.     MinLSInterval
  9182.         The minimum time between distinct originations of any particular
  9183.         link state advertisement.  The value of MinLSInterval is set to
  9184.         5 seconds.
  9185.  
  9186.     MaxAge
  9187.         The maximum age that a link state advertisement can attain. When
  9188.         an advertisement's LS age field reaches MaxAge, it is reflooded
  9189.         in an attempt to flush the advertisement from the routing domain
  9190.         (See Section 14). Advertisements of age MaxAge are not used in
  9191.         the routing table calculation.  The value of MaxAge must be
  9192.         greater than LSRefreshTime.  The value of MaxAge is set to 1
  9193.         hour.
  9194.  
  9195.     CheckAge
  9196.         When the age of a link state advertisement (that is contained in
  9197.         the link state database) hits a multiple of CheckAge, the
  9198.         advertisement's checksum is verified.  An incorrect checksum at
  9199.         this time indicates a serious error.  The value of CheckAge is
  9200.         set to 5 minutes.
  9201.  
  9202.     MaxAgeDiff
  9203.         The maximum time dispersion that can occur, as a link state
  9204.         advertisement is flooded throughout the AS.  Most of this time
  9205.         is accounted for by the link state advertisements sitting on
  9206.         router output queues (and therefore not aging) during the
  9207.         flooding process.  The value of MaxAgeDiff is set to 15 minutes.
  9208.  
  9209.  
  9210.  
  9211.  
  9212. Moy                                                           [Page 196]
  9213.  
  9214. RFC 1583                     OSPF Version 2                   March 1994
  9215.  
  9216.  
  9217.     LSInfinity
  9218.         The metric value indicating that the destination described by a
  9219.         link state advertisement is unreachable. Used in summary link
  9220.         advertisements and AS external link advertisements as an
  9221.         alternative to premature aging (see Section 14.1). It is defined
  9222.         to be the 24-bit binary value of all ones: 0xffffff.
  9223.  
  9224.     DefaultDestination
  9225.         The Destination ID that indicates the default route.  This route
  9226.         is used when no other matching routing table entry can be found.
  9227.         The default destination can only be advertised in AS external
  9228.         link advertisements and in stub areas' type 3 summary link
  9229.         advertisements.  Its value is the IP address 0.0.0.0.
  9230.  
  9231.  
  9232.  
  9233.  
  9234.  
  9235.  
  9236.  
  9237.  
  9238.  
  9239.  
  9240.  
  9241.  
  9242.  
  9243.  
  9244.  
  9245.  
  9246.  
  9247.  
  9248.  
  9249.  
  9250.  
  9251.  
  9252.  
  9253.  
  9254.  
  9255.  
  9256.  
  9257.  
  9258.  
  9259.  
  9260.  
  9261.  
  9262.  
  9263.  
  9264.  
  9265.  
  9266.  
  9267.  
  9268. Moy                                                           [Page 197]
  9269.  
  9270. RFC 1583                     OSPF Version 2                   March 1994
  9271.  
  9272.  
  9273. C. Configurable Constants
  9274.  
  9275.     The OSPF protocol has quite a few configurable parameters.  These
  9276.     parameters are listed below.  They are grouped into general
  9277.     functional categories (area parameters, interface parameters, etc.).
  9278.     Sample values are given for some of the parameters.
  9279.  
  9280.     Some parameter settings need to be consistent among groups of
  9281.     routers.  For example, all routers in an area must agree on that
  9282.     area's parameters, and all routers attached to a network must agree
  9283.     on that network's IP network number and mask.
  9284.  
  9285.     Some parameters may be determined by router algorithms outside of
  9286.     this specification (e.g., the address of a host connected to the
  9287.     router via a SLIP line).  From OSPF's point of view, these items are
  9288.     still configurable.
  9289.  
  9290.     C.1 Global parameters
  9291.  
  9292.         In general, a separate copy of the OSPF protocol is run for each
  9293.         area.  Because of this, most configuration parameters are
  9294.         defined on a per-area basis.  The few global configuration
  9295.         parameters are listed below.
  9296.  
  9297.  
  9298.         Router ID
  9299.             This is a 32-bit number that uniquely identifies the router
  9300.             in the Autonomous System.  One algorithm for Router ID
  9301.             assignment is to choose the largest or smallest IP address
  9302.             assigned to the router.  If a router's OSPF Router ID is
  9303.             changed, the router's OSPF software should be restarted
  9304.             before the new Router ID takes effect. Before restarting in
  9305.             order to change its Router ID, the router should flush its
  9306.             self-originated link state advertisements from the routing
  9307.             domain (see Section 14.1), or they will persist for up to
  9308.             MaxAge minutes.
  9309.  
  9310.         TOS capability
  9311.             This item indicates whether the router will calculate
  9312.             separate routes based on TOS.  For more information, see
  9313.             Sections 4.5 and 16.9.
  9314.  
  9315.     C.2 Area parameters
  9316.  
  9317.         All routers belonging to an area must agree on that area's
  9318.         configuration.  Disagreements between two routers will lead to
  9319.         an inability for adjacencies to form between them, with a
  9320.         resulting hindrance to the flow of routing protocol and data
  9321.  
  9322.  
  9323.  
  9324. Moy                                                           [Page 198]
  9325.  
  9326. RFC 1583                     OSPF Version 2                   March 1994
  9327.  
  9328.  
  9329.         traffic.  The following items must be configured for an area:
  9330.  
  9331.  
  9332.         Area ID
  9333.             This is a 32-bit number that identifies the area.  The Area
  9334.             ID of 0.0.0.0 is reserved for the backbone.  If the area
  9335.             represents a subnetted network, the IP network number of the
  9336.             subnetted network may be used for the Area ID.
  9337.  
  9338.         List of address ranges
  9339.             An OSPF area is defined as a list of address ranges. Each
  9340.             address range consists of the following items:
  9341.  
  9342.             [IP address, mask]
  9343.                     Describes the collection of IP addresses contained
  9344.                     in the address range. Networks and hosts are
  9345.                     assigned to an area depending on whether their
  9346.                     addresses fall into one of the area's defining
  9347.                     address ranges.  Routers are viewed as belonging to
  9348.                     multiple areas, depending on their attached
  9349.                     networks' area membership.
  9350.  
  9351.             Status  Set to either Advertise or DoNotAdvertise.  Routing
  9352.                     information is condensed at area boundaries.
  9353.                     External to the area, at most a single route is
  9354.                     advertised (via a summary link advertisement) for
  9355.                     each address range. The route is advertised if and
  9356.                     only if the address range's Status is set to
  9357.                     Advertise.  Unadvertised ranges allow the existence
  9358.                     of certain networks to be intentionally hidden from
  9359.                     other areas. Status is set to Advertise by default.
  9360.  
  9361.             As an example, suppose an IP subnetted network is to be its
  9362.             own OSPF area.  The area would be configured as a single
  9363.             address range, whose IP address is the address of the
  9364.             subnetted network, and whose mask is the natural class A, B,
  9365.             or C address mask.  A single route would be advertised
  9366.             external to the area, describing the entire subnetted
  9367.             network.
  9368.  
  9369.         AuType
  9370.             Each area can be configured for a separate type of
  9371.             authentication.  See Appendix D for a discussion of the
  9372.             defined authentication types.
  9373.  
  9374.         ExternalRoutingCapability
  9375.             Whether AS external advertisements will be flooded
  9376.             into/throughout the area.  If AS external advertisements are
  9377.  
  9378.  
  9379.  
  9380. Moy                                                           [Page 199]
  9381.  
  9382. RFC 1583                     OSPF Version 2                   March 1994
  9383.  
  9384.  
  9385.             excluded from the area, the area is called a "stub".
  9386.             Internal to stub areas, routing to external destinations
  9387.             will be based solely on a default summary route.  The
  9388.             backbone cannot be configured as a stub area.  Also, virtual
  9389.             links cannot be configured through stub areas.  For more
  9390.             information, see Section 3.6.
  9391.  
  9392.         StubDefaultCost
  9393.             If the area has been configured as a stub area, and the
  9394.             router itself is an area border router, then the
  9395.             StubDefaultCost indicates the cost of the default summary
  9396.             link that the router should advertise into the area.  There
  9397.             can be a separate cost configured for each IP TOS.  See
  9398.             Section 12.4.3 for more information.
  9399.  
  9400.     C.3 Router interface parameters
  9401.  
  9402.         Some of the configurable router interface parameters (such as IP
  9403.         interface address and subnet mask) actually imply properties of
  9404.         the attached networks, and therefore must be consistent across
  9405.         all the routers attached to that network.  The parameters that
  9406.         must be configured for a router interface are:
  9407.  
  9408.  
  9409.         IP interface address
  9410.             The IP protocol address for this interface.  This uniquely
  9411.             identifies the router over the entire internet.  An IP
  9412.             address is not required on serial lines.  Such a serial line
  9413.             is called "unnumbered".
  9414.  
  9415.         IP interface mask
  9416.             Also referred to as the subnet mask, this indicates the
  9417.             portion of the IP interface address that identifies the
  9418.             attached network.  Masking the IP interface address with the
  9419.             IP interface mask yields the IP network number of the
  9420.             attached network.  On point-to-point networks and virtual
  9421.             links, the IP interface mask is not defined. On these
  9422.             networks, the link itself is not assigned an IP network
  9423.             number, and so the addresses of each side of the link are
  9424.             assigned independently, if they are assigned at all.
  9425.  
  9426.         Interface output cost(s)
  9427.             The cost of sending a packet on the interface, expressed in
  9428.             the link state metric.  This is advertised as the link cost
  9429.             for this interface in the router's router links
  9430.             advertisement.  There may be a separate cost for each IP
  9431.             Type of Service.  The interface output cost(s) must always
  9432.             be greater than 0.
  9433.  
  9434.  
  9435.  
  9436. Moy                                                           [Page 200]
  9437.  
  9438. RFC 1583                     OSPF Version 2                   March 1994
  9439.  
  9440.  
  9441.         RxmtInterval
  9442.             The number of seconds between link state advertisement
  9443.             retransmissions, for adjacencies belonging to this
  9444.             interface.  Also used when retransmitting Database
  9445.             Description and Link State Request Packets.  This should be
  9446.             well over the expected round-trip delay between any two
  9447.             routers on the attached network.  The setting of this value
  9448.             should be conservative or needless retransmissions will
  9449.             result.  It will need to be larger on low speed serial lines
  9450.             and virtual links.  Sample value for a local area network: 5
  9451.             seconds.
  9452.  
  9453.         InfTransDelay
  9454.             The estimated number of seconds it takes to transmit a Link
  9455.             State Update Packet over this interface.  Link state
  9456.             advertisements contained in the update packet must have
  9457.             their age incremented by this amount before transmission.
  9458.             This value should take into account the transmission and
  9459.             propagation delays of the interface.  It must be greater
  9460.             than 0.  Sample value for a local area network: 1 second.
  9461.  
  9462.         Router Priority
  9463.             An 8-bit unsigned integer.  When two routers attached to a
  9464.             network both attempt to become Designated Router, the one
  9465.             with the highest Router Priority takes precedence.  If there
  9466.             is still a tie, the router with the highest Router ID takes
  9467.             precedence.  A router whose Router Priority is set to 0 is
  9468.             ineligible to become Designated Router on the attached
  9469.             network.  Router Priority is only configured for interfaces
  9470.             to multi-access networks.
  9471.  
  9472.         HelloInterval
  9473.             The length of time, in seconds, between the Hello Packets
  9474.             that the router sends on the interface.  This value is
  9475.             advertised in the router's Hello Packets.  It must be the
  9476.             same for all routers attached to a common network.  The
  9477.             smaller the HelloInterval, the faster topological changes
  9478.             will be detected, but more OSPF routing protocol traffic
  9479.             will ensue.  Sample value for a X.25 PDN network: 30
  9480.             seconds.  Sample value for a local area network: 10 seconds.
  9481.  
  9482.         RouterDeadInterval
  9483.             After ceasing to hear a router's Hello Packets, the number
  9484.             of seconds before its neighbors declare the router down.
  9485.             This is also advertised in the router's Hello Packets in
  9486.             their RouterDeadInterval field.  This should be some
  9487.             multiple of the HelloInterval (say 4).  This value again
  9488.             must be the same for all routers attached to a common
  9489.  
  9490.  
  9491.  
  9492. Moy                                                           [Page 201]
  9493.  
  9494. RFC 1583                     OSPF Version 2                   March 1994
  9495.  
  9496.  
  9497.             network.
  9498.  
  9499.         Authentication key
  9500.             This configured data allows the authentication procedure to
  9501.             generate and/or verify the authentication field in the OSPF
  9502.             header.  This value again must be the same for all routers
  9503.             attached to a common network.  For example, if the AuType
  9504.             indicates simple password, the Authentication key would be a
  9505.             64-bit password. This key would be inserted directly into
  9506.             the OSPF header when originating routing protocol packets.
  9507.             There could be a separate password for each network.
  9508.  
  9509.     C.4 Virtual link parameters
  9510.  
  9511.         Virtual links are used to restore/increase connectivity of the
  9512.         backbone.  Virtual links may be configured between any pair of
  9513.         area border routers having interfaces to a common (non-backbone)
  9514.         area.  The virtual link appears as an unnumbered point-to-point
  9515.         link in the graph for the backbone.  The virtual link must be
  9516.         configured in both of the area border routers.
  9517.  
  9518.         A virtual link appears in router links advertisements (for the
  9519.         backbone) as if it were a separate router interface to the
  9520.         backbone.  As such, it has all of the parameters associated with
  9521.         a router interface (see Section C.3).  Although a virtual link
  9522.         acts like an unnumbered point-to-point link, it does have an
  9523.         associated IP interface address.  This address is used as the IP
  9524.         source in OSPF protocol packets it sends along the virtual link,
  9525.         and is set dynamically during the routing table build process.
  9526.         Interface output cost is also set dynamically on virtual links
  9527.         to be the cost of the intra-area path between the two routers.
  9528.         The parameter RxmtInterval must be configured, and should be
  9529.         well over the expected round-trip delay between the two routers.
  9530.         This may be hard to estimate for a virtual link; it is better to
  9531.         err on the side of making it too large.  Router Priority is not
  9532.         used on virtual links.
  9533.  
  9534.         A virtual link is defined by the following two configurable
  9535.         parameters: the Router ID of the virtual link's other endpoint,
  9536.         and the (non-backbone) area through which the virtual link runs
  9537.         (referred to as the virtual link's Transit area).  Virtual links
  9538.         cannot be configured through stub areas.
  9539.  
  9540.     C.5 Non-broadcast, multi-access network parameters
  9541.  
  9542.         OSPF treats a non-broadcast, multi-access network much like it
  9543.         treats a broadcast network.  Since there may be many routers
  9544.         attached to the network, a Designated Router is selected for the
  9545.  
  9546.  
  9547.  
  9548. Moy                                                           [Page 202]
  9549.  
  9550. RFC 1583                     OSPF Version 2                   March 1994
  9551.  
  9552.  
  9553.         network.  This Designated Router then originates a networks
  9554.         links advertisement, which lists all routers attached to the
  9555.         non-broadcast network.
  9556.  
  9557.         However, due to the lack of broadcast capabilities, it is
  9558.         necessary to use configuration parameters in the Designated
  9559.         Router selection.  These parameters need only be configured in
  9560.         those routers that are themselves eligible to become Designated
  9561.         Router (i.e., those router's whose Router Priority for the
  9562.         network is non-zero):
  9563.  
  9564.  
  9565.         List of all other attached routers
  9566.             The list of all other routers attached to the non-broadcast
  9567.             network.  Each router is listed by its IP interface address
  9568.             on the network.  Also, for each router listed, that router's
  9569.             eligibility to become Designated Router must be defined.
  9570.             When an interface to a non-broadcast network comes up, the
  9571.             router sends Hello Packets only to those neighbors eligible
  9572.             to become Designated Router, until the identity of the
  9573.             Designated Router is discovered.
  9574.  
  9575.         PollInterval
  9576.             If a neighboring router has become inactive (Hello Packets
  9577.             have not been seen for RouterDeadInterval seconds), it may
  9578.             still be necessary to send Hello Packets to the dead
  9579.             neighbor.  These Hello Packets will be sent at the reduced
  9580.             rate PollInterval, which should be much larger than
  9581.             HelloInterval.  Sample value for a PDN X.25 network: 2
  9582.             minutes.
  9583.  
  9584.     C.6 Host route parameters
  9585.  
  9586.         Host routes are advertised in router links advertisements as
  9587.         stub networks with mask 0xffffffff.  They indicate either router
  9588.         interfaces to point-to-point networks, looped router interfaces,
  9589.         or IP hosts that are directly connected to the router (e.g., via
  9590.         a SLIP line).  For each host directly connected to the router,
  9591.         the following items must be configured:
  9592.  
  9593.  
  9594.         Host IP address
  9595.             The IP address of the host.
  9596.  
  9597.         Cost of link to host
  9598.             The cost of sending a packet to the host, in terms of the
  9599.             link state metric.  There may be multiple costs configured,
  9600.             one for each IP TOS.  However, since the host probably has
  9601.  
  9602.  
  9603.  
  9604. Moy                                                           [Page 203]
  9605.  
  9606. RFC 1583                     OSPF Version 2                   March 1994
  9607.  
  9608.  
  9609.             only a single connection to the internet, the actual
  9610.             configured cost(s) in many cases is unimportant (i.e., will
  9611.             have no effect on routing).
  9612.  
  9613.  
  9614.  
  9615.  
  9616.  
  9617.  
  9618.  
  9619.  
  9620.  
  9621.  
  9622.  
  9623.  
  9624.  
  9625.  
  9626.  
  9627.  
  9628.  
  9629.  
  9630.  
  9631.  
  9632.  
  9633.  
  9634.  
  9635.  
  9636.  
  9637.  
  9638.  
  9639.  
  9640.  
  9641.  
  9642.  
  9643.  
  9644.  
  9645.  
  9646.  
  9647.  
  9648.  
  9649.  
  9650.  
  9651.  
  9652.  
  9653.  
  9654.  
  9655.  
  9656.  
  9657.  
  9658.  
  9659.  
  9660. Moy                                                           [Page 204]
  9661.  
  9662. RFC 1583                     OSPF Version 2                   March 1994
  9663.  
  9664.  
  9665. D. Authentication
  9666.  
  9667.     All OSPF protocol exchanges are authenticated.  The OSPF packet
  9668.     header (see Section A.3.1) includes an authentication type field,
  9669.     and 64-bits of data for use by the appropriate authentication scheme
  9670.     (determined by the type field).
  9671.  
  9672.     The authentication type is configurable on a per-area basis.
  9673.     Additional authentication data is configurable on a per-interface
  9674.     basis.  For example, if an area uses a simple password scheme for
  9675.     authentication, a separate password may be configured for each
  9676.     network contained in the area.
  9677.  
  9678.     Authentication types 0 and 1 are defined by this specification.  All
  9679.     other authentication types are reserved for definition by the IANA
  9680.     (iana@ISI.EDU).  The current list of authentication types is
  9681.     described below in Table 20.
  9682.  
  9683.  
  9684.  
  9685.                   AuType       Description
  9686.                   ___________________________________________
  9687.                   0            No authentication
  9688.                   1            Simple password
  9689.                   All others   Reserved for assignment by the
  9690.                                IANA (iana@ISI.EDU)
  9691.  
  9692.  
  9693.                       Table 20: OSPF authentication types.
  9694.  
  9695.  
  9696.  
  9697.     D.1 AuType 0 -- No authentication
  9698.  
  9699.         Use of this authentication type means that routing exchanges in
  9700.         the area are not authenticated.  The 64-bit field in the OSPF
  9701.         header can contain anything; it is not examined on packet
  9702.         reception.
  9703.  
  9704.     D.2 AuType 1 -- Simple password
  9705.  
  9706.         Using this authentication type, a 64-bit field is configured on
  9707.         a per-network basis.  All packets sent on a particular network
  9708.         must have this configured value in their OSPF header 64-bit
  9709.         authentication field.  This essentially serves as a "clear" 64-
  9710.         bit password.
  9711.  
  9712.  
  9713.  
  9714.  
  9715.  
  9716. Moy                                                           [Page 205]
  9717.  
  9718. RFC 1583                     OSPF Version 2                   March 1994
  9719.  
  9720.  
  9721.         This guards against routers inadvertently joining the area.
  9722.         They must first be configured with their attached networks'
  9723.         passwords before they can participate in the routing domain.
  9724.  
  9725.  
  9726.  
  9727.  
  9728.  
  9729.  
  9730.  
  9731.  
  9732.  
  9733.  
  9734.  
  9735.  
  9736.  
  9737.  
  9738.  
  9739.  
  9740.  
  9741.  
  9742.  
  9743.  
  9744.  
  9745.  
  9746.  
  9747.  
  9748.  
  9749.  
  9750.  
  9751.  
  9752.  
  9753.  
  9754.  
  9755.  
  9756.  
  9757.  
  9758.  
  9759.  
  9760.  
  9761.  
  9762.  
  9763.  
  9764.  
  9765.  
  9766.  
  9767.  
  9768.  
  9769.  
  9770.  
  9771.  
  9772. Moy                                                           [Page 206]
  9773.  
  9774. RFC 1583                     OSPF Version 2                   March 1994
  9775.  
  9776.  
  9777. E. Differences from RFC 1247
  9778.  
  9779.     This section documents the differences between this memo and RFC
  9780.     1247.  These differences include a fix for a problem involving OSPF
  9781.     virtual links, together with minor enhancements and clarifications
  9782.     to the protocol. All differences are backward-compatible.
  9783.     Implementations of this memo and of RFC 1247 will interoperate.
  9784.  
  9785.     E.1 A fix for a problem with OSPF Virtual links
  9786.  
  9787.         In RFC 1247, certain configurations of OSPF virtual links can
  9788.         cause routing loops. The root of the problem is that while there
  9789.         is an information mismatch at the boundary of any virtual link's
  9790.         Transit area, a backbone path can still cross the boundary. RFC
  9791.         1247 attempted to compensate for this information mismatch by
  9792.         adjusting any backbone path as it enters the transit area (see
  9793.         Section 16.3 in RFC 1247). However, this proved not to be
  9794.         enough. This memo fixes the problem by having all area border
  9795.         routers determine, by looking at summary links, whether better
  9796.         backbone paths can be found through the transit areas.
  9797.  
  9798.         This fix simplifies the OSPF virtual link logic, and consists of
  9799.         the following components:
  9800.  
  9801.         o   A new bit has been defined in the router links
  9802.             advertisement, called bit V. Bit V is set in a router's
  9803.             router links advertisement for Area A if and only if the
  9804.             router is an endpoint of an active virtual link that uses
  9805.             Area A as its Transit area (see Sections 12.4.1 and A.4.2).
  9806.             This enables the other routers attached to Area A to
  9807.             discover whether the area supports any virtual links (i.e.,
  9808.             is a transit area). This discovery is done during the
  9809.             calculation of Area A's shortest-path tree (see Section
  9810.             16.1).
  9811.  
  9812.         o   To aid in the description of the algorithm, a new parameter
  9813.             has been added to the OSPF area structure:
  9814.             TransitCapability. This parameter indicates whether the area
  9815.             supports any active virtual links. Equivalently, it
  9816.             indicates whether the area can carry traffic that neither
  9817.             originates nor terminates in the area itself.
  9818.  
  9819.         o   The calculation in Section 16.3 of RFC 1247 has been
  9820.             replaced. The new calculation, performed by area border
  9821.             routers only, examines the summary links belonging to all
  9822.             attached transit areas to see whether the transit areas can
  9823.             provide better paths than those already found in Sections
  9824.             16.1 and 16.2.
  9825.  
  9826.  
  9827.  
  9828. Moy                                                           [Page 207]
  9829.  
  9830. RFC 1583                     OSPF Version 2                   March 1994
  9831.  
  9832.  
  9833.         o   The incremental calculations in Section 16.5 have been
  9834.             updated as a result of the new calculations in Section 16.3.
  9835.  
  9836.     E.2 Supporting supernetting and subnet 0
  9837.  
  9838.         In RFC 1247, an OSPF router cannot originate separate AS
  9839.         external link advertisements (or separate summary link
  9840.         advertisements) for two networks that have the same address but
  9841.         different masks. This situation can arise when subnet 0 of a
  9842.         network has been assigned (a practice that is generally
  9843.         discouraged), or when using supernetting as described in [RFC
  9844.         1519] (a practice that is generally encouraged to reduce the
  9845.         size of routing tables), or even when in transition from one
  9846.         mask to another on a subnet.  Using supernetting as an example,
  9847.         you might want to aggregate the four class C networks
  9848.         192.9.4.0-192.9.7.0, advertising one route for the aggregation
  9849.         and another for the single class C network 192.9.4.0.
  9850.  
  9851.         The reason behind this limitation is that in RFC 1247, the Link
  9852.         State ID of AS external link advertisements and summary link
  9853.         advertisements is set equal to the described network's IP
  9854.         address. In the above example, RFC 1247 would assign both
  9855.         advertisements the Link State ID of 192.9.4.0, making them in
  9856.         essence the same advertisement. This memo fixes the problem by
  9857.         relaxing the setting of the Link State ID so that any of the
  9858.         "host" bits of the network address can also be set. This allows
  9859.         you to disambiguate advertisements for networks having the same
  9860.         address but different masks. Given an AS external link
  9861.         advertisement (or a summary link advertisement), the described
  9862.         network's address can now be obtained by masking the Link State
  9863.         ID with the network mask carried in the body of the
  9864.         advertisement.  Again using the above example, the aggregate can
  9865.         now be advertised using a Link State ID of 192.9.4.0 and the
  9866.         single class C network advertised simultaneously using the Link
  9867.         State ID of 192.9.4.255.
  9868.  
  9869.         Appendix F gives one possible algorithm for setting one or more
  9870.         "host" bits in the Link State ID in order to disambiguate
  9871.         advertisements. It should be noted that this is a local
  9872.         decision. Each router in an OSPF system is free to use its own
  9873.         algorithm, since only those advertisements originated by the
  9874.         router itself are affected.
  9875.  
  9876.         It is believed that this change will be more or less compatible
  9877.         with implementations of RFC 1247. Implementations of RFC 1247
  9878.         will probably either a) install routing table entries that won't
  9879.         be used or b) do the correct processing as outlined in this memo
  9880.         or c) mark the advertisement as unusable when presented with a
  9881.  
  9882.  
  9883.  
  9884. Moy                                                           [Page 208]
  9885.  
  9886. RFC 1583                     OSPF Version 2                   March 1994
  9887.  
  9888.  
  9889.         Link State ID that has one or more of the host bits set.
  9890.         However, in the interest of interoperability, implementations of
  9891.         this memo should only set the host bits in Link State IDs when
  9892.         absolutely necessary.
  9893.  
  9894.         The change affects Sections 12.1.4, 12.4.3, 12.4.5, 16.2, 16.3,
  9895.         16.4, 16.5, 16.6, A.4.4 and A.4.5.
  9896.  
  9897.     E.3 Obsoleting LSInfinity in router links advertisements
  9898.  
  9899.         The metric of LSInfinity can no longer be used in router links
  9900.         advertisements to indicate unusable links. This is being done
  9901.         for several reasons:
  9902.  
  9903.         o   It removes any possible confusion in an OSPF area as to just
  9904.             which routers/networks are reachable in the area. For
  9905.             example, the above virtual link fix relies on detecting the
  9906.             existence of virtual links when running the Dijkstra.
  9907.             However, when one-directional links (i.e., cost of
  9908.             LSInfinity in one direction, but not the other) are
  9909.             possible, some routers may detect the existence of virtual
  9910.             links while others may not. This may defeat the fix for the
  9911.             virtual link problem.
  9912.  
  9913.         o   It also helps OSPF's Multicast routing extensions (MOSPF),
  9914.             because one-way reachability can lead to places that are
  9915.             reachable via unicast but not multicast, or vice versa.
  9916.  
  9917.         The two prior justifications for using LSInfinity in router
  9918.         links advertisements were 1) it was a way to not support TOS
  9919.         before TOS was optional and 2) it went along with strong TOS
  9920.         interpretations. These justifications are no longer valid.
  9921.         However, LSInfinity will continue to mean "unreachable" in
  9922.         summary link advertisements and AS external link advertisements,
  9923.         as some implementations use this as an alternative to the
  9924.         premature aging procedure specified in Section 14.1.
  9925.  
  9926.         This change has one other side effect. When two routers are
  9927.         connected via a virtual link whose underlying path is non-TOS-
  9928.         capable, they must now revert to being non-TOS-capable routers
  9929.         themselves, instead of the previous behavior of advertising the
  9930.         non-zero TOS costs of the virtual link as LSInfinity. See
  9931.         Section 15 for details.
  9932.  
  9933.     E.4 TOS encoding updated
  9934.  
  9935.         The encoding of TOS in OSPF link state advertisements has been
  9936.         updated to reflect the new TOS value (minimize monetary cost)
  9937.  
  9938.  
  9939.  
  9940. Moy                                                           [Page 209]
  9941.  
  9942. RFC 1583                     OSPF Version 2                   March 1994
  9943.  
  9944.  
  9945.         defined by [RFC 1349]. The OSPF encoding is defined in Section
  9946.         12.3, which is identical in content to Section A.5 of [RFC
  9947.         1349].
  9948.  
  9949.     E.5 Summarizing routes into transit areas
  9950.  
  9951.         RFC 1247 mandated that routes associated with Area A are never
  9952.         summarized back into Area A. However, this memo further reduces
  9953.         the number of summary links originated by refusing to summarize
  9954.         into Area A those routes having next hops belonging to Area A.
  9955.         This is an optimization over RFC 1247 behavior when virtual
  9956.         links are present.  For example, in the area configuration of
  9957.         Figure 6, Router RT11 need only originate a single summary link
  9958.         having the (collapsed) destination N9-N11,H1 into its connected
  9959.         transit area Area 2, since all of its other eligible routes have
  9960.         next hops belonging to Area 2 (and as such only need be
  9961.         advertised by other area border routers; in this case, Routers
  9962.         RT10 and RT7). This is the logical equivalent of a Distance
  9963.         Vector protocol's split horizon logic.
  9964.  
  9965.         This change appears in Section 12.4.3.
  9966.  
  9967.     E.6 Summarizing routes into stub areas
  9968.  
  9969.         RFC 1247 mandated that area border routers attached to stub
  9970.         areas must summarize all inter-area routes into the stub areas.
  9971.         However, while area border routers connected to OSPF stub areas
  9972.         must originate default summary links into the stub area, they
  9973.         need not summarize other routes into the stub area. The amount
  9974.         of summarization done into stub areas can instead be put under
  9975.         configuration control. The network administrator can then make
  9976.         the trade-off between optimal routing and database size.
  9977.  
  9978.         This change appears in Sections 12.4.3 and 12.4.4.
  9979.  
  9980.     E.7 Flushing anomalous network links advertisements
  9981.  
  9982.         Text was added indicating that a network links advertisement
  9983.         whose Link State ID is equal to one of the router's own IP
  9984.         interface addresses should be considered to be self-originated,
  9985.         regardless of the setting of the advertisement's Advertising
  9986.         Router. If the Advertising Router of such an advertisement is
  9987.         not equal to the router's own Router ID, the advertisement
  9988.         should be flushed from the routing domain using the premature
  9989.         aging procedure specified in Section 14.1. This case should be
  9990.         rare, and it indicates that the router's Router ID has changed
  9991.         since originating the advertisement.
  9992.  
  9993.  
  9994.  
  9995.  
  9996. Moy                                                           [Page 210]
  9997.  
  9998. RFC 1583                     OSPF Version 2                   March 1994
  9999.  
  10000.  
  10001.         Failure to flush these anomalous advertisements could lead to
  10002.         multiple network links advertisements having the same Link State
  10003.         ID. This in turn could cause the Dijkstra calculation in Section
  10004.         16.1 to fail, since it would be impossible to tell which network
  10005.         links advertisement is valid (i.e., more recent).
  10006.  
  10007.         This change appears in Sections 13.4 and 14.1.
  10008.  
  10009.     E.8 Required Statistics appendix deleted
  10010.  
  10011.         Appendix D of RFC 1247, which specified a list of required
  10012.         statistics for an OSPF implementation, has been deleted. That
  10013.         appendix has been superseded by the two documents: the OSPF
  10014.         Version 2 Management Information Base and the OSPF Version 2
  10015.         Traps.
  10016.  
  10017.     E.9 Other changes
  10018.  
  10019.         The following small changes were also made to RFC 1247:
  10020.  
  10021.         o   When representing unnumbered point-to-point networks in
  10022.             router links advertisements, the corresponding Link Data
  10023.             field should be set to the unnumbered interface's MIB-II
  10024.             [RFC 1213] ifIndex value.
  10025.  
  10026.         o   A comment was added to Step 3 of the Dijkstra algorithm in
  10027.             Section 16.1. When removing vertices from the candidate
  10028.             list, and when there is a choice of vertices closest to the
  10029.             root, network vertices must be chosen before router vertices
  10030.             in order to necessarily find all equal-cost paths.
  10031.  
  10032.         o   A comment was added to Section 12.4.3 noting that a summary
  10033.             link advertisement cannot express a reachable destination
  10034.             whose path cost equals or exceeds LSInfinity.
  10035.  
  10036.         o   A comment was added to Section 15 noting that a virtual link
  10037.             whose underlying path has cost greater than hexadecimal
  10038.             0xffff (the maximum size of an interface cost in a router
  10039.             links advertisement) should be considered inoperational.
  10040.  
  10041.         o   An option was added to the definition of area address
  10042.             ranges, allowing the network administrator to specify that a
  10043.             particular range should not be advertised to other OSPF
  10044.             areas. This enables the existence of certain networks to be
  10045.             hidden from other areas. This change appears in Sections
  10046.             12.4.3 and C.2.
  10047.  
  10048.  
  10049.  
  10050.  
  10051.  
  10052. Moy                                                           [Page 211]
  10053.  
  10054. RFC 1583                     OSPF Version 2                   March 1994
  10055.  
  10056.  
  10057.         o   A note was added reminding implementors that bit E (the AS
  10058.             boundary router indication) should never be set in a router
  10059.             links advertisement for a stub area, since stub areas cannot
  10060.             contain AS boundary routers.  This change appears in Section
  10061.             12.4.1.
  10062.  
  10063.  
  10064.  
  10065.  
  10066.  
  10067.  
  10068.  
  10069.  
  10070.  
  10071.  
  10072.  
  10073.  
  10074.  
  10075.  
  10076.  
  10077.  
  10078.  
  10079.  
  10080.  
  10081.  
  10082.  
  10083.  
  10084.  
  10085.  
  10086.  
  10087.  
  10088.  
  10089.  
  10090.  
  10091.  
  10092.  
  10093.  
  10094.  
  10095.  
  10096.  
  10097.  
  10098.  
  10099.  
  10100.  
  10101.  
  10102.  
  10103.  
  10104.  
  10105.  
  10106.  
  10107.  
  10108. Moy                                                           [Page 212]
  10109.  
  10110. RFC 1583                     OSPF Version 2                   March 1994
  10111.  
  10112.  
  10113. F. An algorithm for assigning Link State IDs
  10114.  
  10115.     In RFC 1247, the Link State ID in AS external link advertisements
  10116.     and summary link advertisements is set to the described network's IP
  10117.     address. This memo relaxes that requirement, allowing one or more of
  10118.     the network's host bits to be set in the Link State ID. This allows
  10119.     the router to originate separate advertisements for networks having
  10120.     the same addresses, yet different masks. Such networks can occur in
  10121.     the presence of supernetting and subnet 0s (see Section E.2 for more
  10122.     information).
  10123.  
  10124.     This appendix gives one possible algorithm for setting the host bits
  10125.     in Link State IDs.  The choice of such an algorithm is a local
  10126.     decision. Separate routers are free to use different algorithms,
  10127.     since the only advertisements affected are the ones that the router
  10128.     itself originates. The only requirement on the algorithms used is
  10129.     that the network's IP address should be used as the Link State ID
  10130.     (the RFC 1247 behavior) whenever possible.
  10131.  
  10132.     The algorithm below is stated for AS external link advertisements.
  10133.     This is only for clarity; the exact same algorithm can be used for
  10134.     summary link advertisements. Suppose that the router wishes to
  10135.     originate an AS external link advertisement for a network having
  10136.     address NA and mask NM1. The following steps are then used to
  10137.     determine the advertisement's Link State ID:
  10138.  
  10139.     (1) Determine whether the router is already originating an AS
  10140.         external link advertisement with Link State ID equal to NA (in
  10141.         such an advertisement the router itself will be listed as the
  10142.         advertisement's Advertising Router).  If not, set the Link State
  10143.         ID equal to NA (the RFC 1247 behavior) and the algorithm
  10144.         terminates. Otherwise,
  10145.  
  10146.     (2) Obtain the network mask from the body of the already existing AS
  10147.         external link advertisement. Call this mask NM2. There are then
  10148.         two cases:
  10149.  
  10150.         o   NM1 is longer (i.e., more specific) than NM2. In this case,
  10151.             set the Link State ID in the new advertisement to be the
  10152.             network [NA,NM1] with all the host bits set (i.e., equal to
  10153.             NA or'ed together with all the bits that are not set in NM1,
  10154.             which is network [NA,NM1]'s broadcast address).
  10155.  
  10156.         o   NM2 is longer than NM1. In this case, change the existing
  10157.             advertisement (having Link State ID of NA) to reference the
  10158.             new network [NA,NM1] by incrementing the sequence number,
  10159.             changing the mask in the body to NM1 and using the cost for
  10160.             the new network. Then originate a new advertisement for the
  10161.  
  10162.  
  10163.  
  10164. Moy                                                           [Page 213]
  10165.  
  10166. RFC 1583                     OSPF Version 2                   March 1994
  10167.  
  10168.  
  10169.             old network [NA,NM2], with Link State ID equal to NA or'ed
  10170.             together with the bits that are not set in NM2 (i.e.,
  10171.             network [NA,NM2]'s broadcast address).
  10172.  
  10173.     The above algorithm assumes that all masks are contiguous; this
  10174.     ensures that when two networks have the same address, one mask is
  10175.     more specific than the other. The algorithm also assumes that no
  10176.     network exists having an address equal to another network's
  10177.     broadcast address. Given these two assumptions, the above algorithm
  10178.     always produces unique Link State IDs. The above algorithm can also
  10179.     be reworded as follows: When originating an AS external link state
  10180.     advertisement, try to use the network number as the Link State ID.
  10181.     If that produces a conflict, examine the two networks in conflict.
  10182.     One will be a subset of the other. For the less specific network,
  10183.     use the network number as the Link State ID and for the more
  10184.     specific use the network's broadcast address instead (i.e., flip all
  10185.     the "host" bits to 1).  If the most specific network was originated
  10186.     first, this will cause you to originate two link state
  10187.     advertisements at once.
  10188.  
  10189.     As an example of the algorithm, consider its operation when the
  10190.     following sequence of events occurs in a single router (Router A).
  10191.  
  10192.  
  10193.     (1) Router A wants to originate an AS external link advertisement
  10194.         for [10.0.0.0,255.255.255.0]:
  10195.  
  10196.         (a) A Link State ID of 10.0.0.0 is used.
  10197.  
  10198.     (2) Router A then wants to originate an AS external link
  10199.         advertisement for [10.0.0.0,255.255.0.0]:
  10200.  
  10201.         (a) The advertisement for [10.0.0,0,255.255.255.0] is
  10202.             reoriginated using a new Link State ID of 10.0.0.255.
  10203.  
  10204.         (b) A Link State ID of 10.0.0.0 is used for
  10205.             [10.0.0.0,255.255.0.0].
  10206.  
  10207.     (3) Router A then wants to originate an AS external link
  10208.         advertisement for [10.0.0.0,255.0.0.0]:
  10209.  
  10210.         (a) The advertisement for [10.0.0.0,255.255.0.0] is reoriginated
  10211.             using a new Link State ID of 10.0.255.255.
  10212.  
  10213.         (b) A Link State ID of 10.0.0.0 is used for
  10214.             [10.0.0.0,255.0.0.0].
  10215.  
  10216.  
  10217.  
  10218.  
  10219.  
  10220. Moy                                                           [Page 214]
  10221.  
  10222. RFC 1583                     OSPF Version 2                   March 1994
  10223.  
  10224.  
  10225.         (c) The network [10.0.0.0,255.255.255.0] keeps its Link State ID
  10226.             of 10.0.0.255.
  10227.  
  10228.  
  10229.  
  10230.  
  10231.  
  10232.  
  10233.  
  10234.  
  10235.  
  10236.  
  10237.  
  10238.  
  10239.  
  10240.  
  10241.  
  10242.  
  10243.  
  10244.  
  10245.  
  10246.  
  10247.  
  10248.  
  10249.  
  10250.  
  10251.  
  10252.  
  10253.  
  10254.  
  10255.  
  10256.  
  10257.  
  10258.  
  10259.  
  10260.  
  10261.  
  10262.  
  10263.  
  10264.  
  10265.  
  10266.  
  10267.  
  10268.  
  10269.  
  10270.  
  10271.  
  10272.  
  10273.  
  10274.  
  10275.  
  10276. Moy                                                           [Page 215]
  10277.  
  10278. RFC 1583                     OSPF Version 2                   March 1994
  10279.  
  10280.  
  10281. Security Considerations
  10282.  
  10283.     All OSPF protocol exchanges are authenticated. This is accomplished
  10284.     through authentication fields contained in the OSPF packet header.
  10285.     For more information, see Sections 8.1, 8.2, and Appendix D.
  10286.  
  10287. Author's Address
  10288.  
  10289.     John Moy
  10290.     Proteon, Inc.
  10291.     9 Technology Drive
  10292.     Westborough, MA 01581
  10293.  
  10294.     Phone: 508-898-2800
  10295.     Fax:   508-898-3176
  10296.     Email: jmoy@proteon.com
  10297.  
  10298.  
  10299.  
  10300.  
  10301.  
  10302.  
  10303.  
  10304.  
  10305.  
  10306.  
  10307.  
  10308.  
  10309.  
  10310.  
  10311.  
  10312.  
  10313.  
  10314.  
  10315.  
  10316.  
  10317.  
  10318.  
  10319.  
  10320.  
  10321.  
  10322.  
  10323.  
  10324.  
  10325.  
  10326.  
  10327.  
  10328.  
  10329.  
  10330.  
  10331.  
  10332. Moy                                                           [Page 216]
  10333.  
  10334. %!PS-Adobe-3.0
  10335. %%BoundingBox: (atend)
  10336. %%Pages: (atend)
  10337. %%PageOrder: (atend)
  10338. %%DocumentFonts: (atend)
  10339. %%Creator: Frame 4.0
  10340. %%DocumentData: Clean7Bit
  10341. %%EndComments
  10342. %%BeginProlog
  10343. %
  10344. % Frame ps_prolog 4.0, for use with Frame 4.0 products
  10345. % This ps_prolog file is Copyright (c) 1986-1993 Frame Technology
  10346. % Corporation.  All rights reserved.  This ps_prolog file may be
  10347. % freely copied and distributed in conjunction with documents created
  10348. % using FrameMaker, FrameBuilder and FrameViewer as long as this 
  10349. % copyright notice is preserved.
  10350. %
  10351. % Frame products normally print colors as their true color on a color printer
  10352. % or as shades of gray, based on luminance, on a black-and white printer. The
  10353. % following flag, if set to True, forces all non-white colors to print as pure
  10354. % black. This has no effect on bitmap images.
  10355. /FMPrintAllColorsAsBlack             false def
  10356. %
  10357. % Frame products can either set their own line screens or use a printer's 
  10358. % default settings. Three flags below control this separately for no 
  10359. % separations, spot separations and process separations. If a flag
  10360. % is true, then the default printer settings will not be changed. If it is
  10361. % false, Frame products will use their own settings from a table based on
  10362. % the printer's resolution.
  10363. /FMUseDefaultNoSeparationScreen      true  def
  10364. /FMUseDefaultSpotSeparationScreen    true  def
  10365. /FMUseDefaultProcessSeparationScreen false def
  10366. %
  10367. % For any given PostScript printer resolution, Frame products have two sets of 
  10368. % screen angles and frequencies for printing process separations, which are 
  10369. % recomended by Adobe. The following variable chooses the higher frequencies
  10370. % when set to true or the lower frequencies when set to false. This is only
  10371. % effective if the appropriate FMUseDefault...SeparationScreen flag is false.
  10372. /FMUseHighFrequencyScreens true def
  10373. %
  10374. % PostScript Level 2 printers contain an "Accurate Screens" feature which can
  10375. % improve process separation rendering at the expense of compute time. This 
  10376. % flag is ignored by PostScript Level 1 printers.
  10377. /FMUseAcccurateScreens true def
  10378. %
  10379. % The following PostScript procedure defines the spot function that Frame
  10380. % products will use for process separations. You may un-comment-out one of
  10381. % the alternative functions below, or use your own.
  10382. %
  10383. % Dot function
  10384. /FMSpotFunction {abs exch abs 2 copy add 1 gt 
  10385.         {1 sub dup mul exch 1 sub dup mul add 1 sub }
  10386.         {dup mul exch dup mul add 1 exch sub }ifelse } def
  10387. %
  10388. % Line function
  10389. % /FMSpotFunction { pop } def
  10390. %
  10391. % Elipse function
  10392. % /FMSpotFunction { dup 5 mul 8 div mul exch dup mul exch add 
  10393. %        sqrt 1 exch sub } def
  10394. %
  10395. %
  10396. /FMversion (4.0) def 
  10397. /FMLevel1 /languagelevel where {pop languagelevel} {1} ifelse 2 lt def
  10398. /FMPColor
  10399.     FMLevel1 {
  10400.         false
  10401.         /colorimage where {pop pop true} if
  10402.     } {
  10403.         true
  10404.     } ifelse
  10405. def
  10406. /FrameDict 400 dict def 
  10407. systemdict /errordict known not {/errordict 10 dict def
  10408.         errordict /rangecheck {stop} put} if
  10409. % The readline in PS 23.0 doesn't recognize cr's as nl's on AppleTalk
  10410. FrameDict /tmprangecheck errordict /rangecheck get put 
  10411. errordict /rangecheck {FrameDict /bug true put} put 
  10412. FrameDict /bug false put 
  10413. mark 
  10414. % Some PS machines read past the CR, so keep the following 3 lines together!
  10415. currentfile 5 string readline
  10416. 00
  10417. 0000000000
  10418. cleartomark 
  10419. errordict /rangecheck FrameDict /tmprangecheck get put 
  10420. FrameDict /bug get { 
  10421.     /readline {
  10422.         /gstring exch def
  10423.         /gfile exch def
  10424.         /gindex 0 def
  10425.         {
  10426.             gfile read pop 
  10427.             dup 10 eq {exit} if 
  10428.             dup 13 eq {exit} if 
  10429.             gstring exch gindex exch put 
  10430.             /gindex gindex 1 add def 
  10431.         } loop
  10432.         pop 
  10433.         gstring 0 gindex getinterval true 
  10434.         } bind def
  10435.     } if
  10436. /FMshowpage /showpage load def
  10437. /FMquit /quit load def
  10438. /FMFAILURE { 
  10439.     dup = flush 
  10440.     FMshowpage 
  10441.     /Helvetica findfont 12 scalefont setfont
  10442.     72 200 moveto
  10443.     show FMshowpage 
  10444.     FMquit 
  10445.     } def 
  10446. /FMVERSION {
  10447.     FMversion ne {
  10448.         (Frame product version does not match ps_prolog!) FMFAILURE
  10449.         } if
  10450.     } def 
  10451. /FMBADEPSF { 
  10452.     (PostScript Lang. Ref. Man., 2nd Ed., H.2.4 says EPS must not call X              )
  10453.     dup dup (X) search pop exch pop exch pop length 
  10454.     4 -1 roll 
  10455.     putinterval 
  10456.     FMFAILURE
  10457.     } def
  10458. /FMLOCAL {
  10459.     FrameDict begin
  10460.     0 def 
  10461.     end 
  10462.     } def 
  10463. /concatprocs
  10464.     {
  10465.     /proc2 exch cvlit def/proc1 exch cvlit def/newproc proc1 length proc2 length add array def
  10466.     newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval newproc cvx
  10467. }def
  10468. FrameDict begin 
  10469. /FMnone 0 def
  10470. /FMcyan 1 def
  10471. /FMmagenta 2 def
  10472. /FMyellow 3 def
  10473. /FMblack 4 def
  10474. /FMcustom 5 def
  10475. /FrameNegative false def 
  10476. /FrameSepIs FMnone def 
  10477. /FrameSepBlack 0 def
  10478. /FrameSepYellow 0 def
  10479. /FrameSepMagenta 0 def
  10480. /FrameSepCyan 0 def
  10481. /FrameSepRed 1 def
  10482. /FrameSepGreen 1 def
  10483. /FrameSepBlue 1 def
  10484. /FrameCurGray 1 def
  10485. /FrameCurPat null def
  10486. /FrameCurColors [ 0 0 0 1 0 0 0 ] def 
  10487. /FrameColorEpsilon .001 def    
  10488. /eqepsilon {        
  10489.     sub dup 0 lt {neg} if
  10490.     FrameColorEpsilon le
  10491. } bind def
  10492. /FrameCmpColorsCMYK { 
  10493.     2 copy 0 get exch 0 get eqepsilon {
  10494.         2 copy 1 get exch 1 get eqepsilon {
  10495.             2 copy 2 get exch 2 get eqepsilon {
  10496.                 3 get exch 3 get eqepsilon
  10497.             } {pop pop false} ifelse
  10498.         }{pop pop false} ifelse
  10499.     } {pop pop false} ifelse
  10500. } bind def
  10501. /FrameCmpColorsRGB { 
  10502.     2 copy 4 get exch 0 get eqepsilon {
  10503.         2 copy 5 get exch 1 get eqepsilon {
  10504.             6 get exch 2 get eqepsilon
  10505.         }{pop pop false} ifelse
  10506.     } {pop pop false} ifelse
  10507. } bind def
  10508. /RGBtoCMYK { 
  10509.     1 exch sub 
  10510.     3 1 roll 
  10511.     1 exch sub 
  10512.     3 1 roll 
  10513.     1 exch sub 
  10514.     3 1 roll 
  10515.     3 copy 
  10516.     2 copy 
  10517.     le { pop } { exch pop } ifelse 
  10518.     2 copy 
  10519.     le { pop } { exch pop } ifelse 
  10520.     dup dup dup 
  10521.     6 1 roll 
  10522.     4 1 roll 
  10523.     7 1 roll 
  10524.     sub 
  10525.     6 1 roll 
  10526.     sub 
  10527.     5 1 roll 
  10528.     sub 
  10529.     4 1 roll 
  10530. } bind def
  10531. /CMYKtoRGB { 
  10532.     dup dup 4 -1 roll add                           
  10533.     5 1 roll 3 -1 roll add                           
  10534.     4 1 roll add                                   
  10535.     1 exch sub dup 0 lt {pop 0} if 3 1 roll       
  10536.     1 exch sub dup 0 lt {pop 0} if exch           
  10537.     1 exch sub dup 0 lt {pop 0} if exch                
  10538. } bind def
  10539. /FrameSepInit {
  10540.     1.0 RealSetgray
  10541. } bind def
  10542. /FrameSetSepColor { 
  10543.     /FrameSepBlue exch def
  10544.     /FrameSepGreen exch def
  10545.     /FrameSepRed exch def
  10546.     /FrameSepBlack exch def
  10547.     /FrameSepYellow exch def
  10548.     /FrameSepMagenta exch def
  10549.     /FrameSepCyan exch def
  10550.     /FrameSepIs FMcustom def
  10551.     setCurrentScreen    
  10552. } bind def
  10553. /FrameSetCyan {
  10554.     /FrameSepBlue 1.0 def
  10555.     /FrameSepGreen 1.0 def
  10556.     /FrameSepRed 0.0 def
  10557.     /FrameSepBlack 0.0 def
  10558.     /FrameSepYellow 0.0 def
  10559.     /FrameSepMagenta 0.0 def
  10560.     /FrameSepCyan 1.0 def
  10561.     /FrameSepIs FMcyan def
  10562.     setCurrentScreen    
  10563. } bind def
  10564.  
  10565. /FrameSetMagenta {
  10566.     /FrameSepBlue 1.0 def
  10567.     /FrameSepGreen 0.0 def
  10568.     /FrameSepRed 1.0 def
  10569.     /FrameSepBlack 0.0 def
  10570.     /FrameSepYellow 0.0 def
  10571.     /FrameSepMagenta 1.0 def
  10572.     /FrameSepCyan 0.0 def
  10573.     /FrameSepIs FMmagenta def
  10574.     setCurrentScreen
  10575. } bind def
  10576.  
  10577. /FrameSetYellow {
  10578.     /FrameSepBlue 0.0 def
  10579.     /FrameSepGreen 1.0 def
  10580.     /FrameSepRed 1.0 def
  10581.     /FrameSepBlack 0.0 def
  10582.     /FrameSepYellow 1.0 def
  10583.     /FrameSepMagenta 0.0 def
  10584.     /FrameSepCyan 0.0 def
  10585.     /FrameSepIs FMyellow def
  10586.     setCurrentScreen
  10587. } bind def
  10588.  
  10589. /FrameSetBlack {
  10590.     /FrameSepBlue 0.0 def
  10591.     /FrameSepGreen 0.0 def
  10592.     /FrameSepRed 0.0 def
  10593.     /FrameSepBlack 1.0 def
  10594.     /FrameSepYellow 0.0 def
  10595.     /FrameSepMagenta 0.0 def
  10596.     /FrameSepCyan 0.0 def
  10597.     /FrameSepIs FMblack def
  10598.     setCurrentScreen
  10599. } bind def
  10600.  
  10601. /FrameNoSep { 
  10602.     /FrameSepIs FMnone def
  10603.     setCurrentScreen
  10604. } bind def
  10605. /FrameSetSepColors { 
  10606.     FrameDict begin
  10607.     [ exch 1 add 1 roll ]
  10608.     /FrameSepColors  
  10609.     exch def end
  10610.     } bind def
  10611. /FrameColorInSepListCMYK { 
  10612.     FrameSepColors {  
  10613.                exch dup 3 -1 roll 
  10614.                FrameCmpColorsCMYK 
  10615.                { pop true exit } if
  10616.         } forall 
  10617.     dup true ne {pop false} if
  10618.     } bind def
  10619. /FrameColorInSepListRGB { 
  10620.     FrameSepColors {  
  10621.                exch dup 3 -1 roll 
  10622.                FrameCmpColorsRGB 
  10623.                { pop true exit } if
  10624.         } forall 
  10625.     dup true ne {pop false} if
  10626.     } bind def
  10627. /RealSetgray /setgray load def
  10628. /RealSetrgbcolor /setrgbcolor load def
  10629. /RealSethsbcolor /sethsbcolor load def
  10630. end 
  10631. /setgray { 
  10632.     FrameDict begin
  10633.     FrameSepIs FMnone eq
  10634.         { RealSetgray } 
  10635.         { 
  10636.         FrameSepIs FMblack eq 
  10637.             { RealSetgray } 
  10638.             { FrameSepIs FMcustom eq 
  10639.               FrameSepRed 0 eq and
  10640.               FrameSepGreen 0 eq and
  10641.               FrameSepBlue 0 eq and {
  10642.                   RealSetgray
  10643.               } {
  10644.                 1 RealSetgray pop 
  10645.               } ifelse
  10646.             } ifelse
  10647.         } ifelse
  10648.     end
  10649. } bind def
  10650. /setrgbcolor { 
  10651.     FrameDict begin
  10652.     FrameSepIs FMnone eq
  10653.     {  RealSetrgbcolor }
  10654.     {
  10655.         3 copy [ 4 1 roll ] 
  10656.         FrameColorInSepListRGB
  10657.         {
  10658.                 FrameSepBlue eq exch 
  10659.                  FrameSepGreen eq and exch 
  10660.                  FrameSepRed eq and
  10661.                  { 0 } { 1 } ifelse
  10662.         }
  10663.         {
  10664.             FMPColor {
  10665.                 RealSetrgbcolor
  10666.                 currentcmykcolor
  10667.             } {
  10668.                 RGBtoCMYK
  10669.             } ifelse
  10670.             FrameSepIs FMblack eq
  10671.             {1.0 exch sub 4 1 roll pop pop pop} {
  10672.             FrameSepIs FMyellow eq
  10673.             {pop 1.0 exch sub 3 1 roll pop pop} {
  10674.             FrameSepIs FMmagenta eq
  10675.             {pop pop 1.0 exch sub exch pop } {
  10676.             FrameSepIs FMcyan eq
  10677.             {pop pop pop 1.0 exch sub } 
  10678.             {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
  10679.         } ifelse
  10680.         RealSetgray
  10681.     } 
  10682.     ifelse
  10683.     end
  10684. } bind def
  10685. /sethsbcolor {
  10686.     FrameDict begin
  10687.     FrameSepIs FMnone eq 
  10688.     { RealSethsbcolor } 
  10689.     {
  10690.         RealSethsbcolor 
  10691.         currentrgbcolor  
  10692.         setrgbcolor 
  10693.     } 
  10694.     ifelse
  10695.     end
  10696. } bind def
  10697. FrameDict begin
  10698. /setcmykcolor where {
  10699.     pop /RealSetcmykcolor /setcmykcolor load def
  10700. } {
  10701.     /RealSetcmykcolor {
  10702.         4 1 roll
  10703.         3 { 3 index add 0 max 1 min 1 exch sub 3 1 roll} repeat 
  10704.         setrgbcolor pop
  10705.     } bind def
  10706. } ifelse
  10707. userdict /setcmykcolor { 
  10708.         FrameDict begin
  10709.         FrameSepIs FMnone eq
  10710.         { RealSetcmykcolor } 
  10711.         {
  10712.             4 copy [ 5 1 roll ]
  10713.             FrameColorInSepListCMYK
  10714.             {
  10715.                 FrameSepBlack eq exch 
  10716.                 FrameSepYellow eq and exch 
  10717.                 FrameSepMagenta eq and exch 
  10718.                 FrameSepCyan eq and 
  10719.                 { 0 } { 1 } ifelse
  10720.             }
  10721.             {
  10722.                 FrameSepIs FMblack eq
  10723.                 {1.0 exch sub 4 1 roll pop pop pop} {
  10724.                 FrameSepIs FMyellow eq
  10725.                 {pop 1.0 exch sub 3 1 roll pop pop} {
  10726.                 FrameSepIs FMmagenta eq
  10727.                 {pop pop 1.0 exch sub exch pop } {
  10728.                 FrameSepIs FMcyan eq
  10729.                 {pop pop pop 1.0 exch sub } 
  10730.                 {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
  10731.             } ifelse
  10732.             RealSetgray
  10733.         }
  10734.         ifelse
  10735.         end
  10736.     } bind put
  10737. FMLevel1 not { 
  10738.     
  10739.     /patProcDict 5 dict dup begin
  10740.         <0f1e3c78f0e1c387> { 3 setlinewidth -1 -1 moveto 9 9 lineto stroke 
  10741.                                             4 -4 moveto 12 4 lineto stroke
  10742.                                             -4 4 moveto 4 12 lineto stroke} bind def
  10743.         <0f87c3e1f0783c1e> { 3 setlinewidth -1 9 moveto 9 -1 lineto stroke 
  10744.                                             -4 4 moveto 4 -4 lineto stroke
  10745.                                             4 12 moveto 12 4 lineto stroke} bind def
  10746.         <8142241818244281> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke
  10747.                                             -1 -1 moveto 9 9 lineto stroke } bind def
  10748.         <03060c183060c081> { 1 setlinewidth -1 -1 moveto 9 9 lineto stroke 
  10749.                                             4 -4 moveto 12 4 lineto stroke
  10750.                                             -4 4 moveto 4 12 lineto stroke} bind def
  10751.         <8040201008040201> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke 
  10752.                                             -4 4 moveto 4 -4 lineto stroke
  10753.                                             4 12 moveto 12 4 lineto stroke} bind def
  10754.     end def
  10755.     /patDict 15 dict dup begin
  10756.         /PatternType 1 def        
  10757.         /PaintType 2 def        
  10758.         /TilingType 3 def        
  10759.         /BBox [ 0 0 8 8 ] def     
  10760.         /XStep 8 def            
  10761.         /YStep 8 def            
  10762.         /PaintProc {
  10763.             begin
  10764.             patProcDict bstring known {
  10765.                 patProcDict bstring get exec
  10766.             } {
  10767.                 8 8 true [1 0 0 -1 0 8] bstring imagemask
  10768.             } ifelse
  10769.             end
  10770.         } bind def
  10771.     end def
  10772. } if
  10773. /combineColor {
  10774.     FrameSepIs FMnone eq
  10775.     {
  10776.         graymode FMLevel1 or not {
  10777.             
  10778.             [/Pattern [/DeviceCMYK]] setcolorspace
  10779.             FrameCurColors 0 4 getinterval aload pop FrameCurPat setcolor
  10780.         } {
  10781.             FrameCurColors 3 get 1.0 ge {
  10782.                 FrameCurGray RealSetgray
  10783.             } {
  10784.                 FMPColor graymode and {
  10785.                     0 1 3 { 
  10786.                         FrameCurColors exch get
  10787.                         1 FrameCurGray sub mul
  10788.                     } for
  10789.                     RealSetcmykcolor
  10790.                 } {
  10791.                     4 1 6 {
  10792.                         FrameCurColors exch get
  10793.                         graymode {
  10794.                             1 exch sub 1 FrameCurGray sub mul 1 exch sub
  10795.                         } {
  10796.                             1.0 lt {FrameCurGray} {1} ifelse
  10797.                         } ifelse
  10798.                     } for
  10799.                     RealSetrgbcolor
  10800.                 } ifelse
  10801.             } ifelse
  10802.         } ifelse
  10803.     } { 
  10804.         FrameCurColors 0 4 getinterval aload
  10805.         FrameColorInSepListCMYK {
  10806.             FrameSepBlack eq exch 
  10807.             FrameSepYellow eq and exch 
  10808.             FrameSepMagenta eq and exch 
  10809.             FrameSepCyan eq and
  10810.             FrameSepIs FMcustom eq and
  10811.             { FrameCurGray } { 1 } ifelse
  10812.         } {
  10813.             FrameSepIs FMblack eq
  10814.             {FrameCurGray 1.0 exch sub mul 1.0 exch sub 4 1 roll pop pop pop} {
  10815.             FrameSepIs FMyellow eq
  10816.             {pop FrameCurGray 1.0 exch sub mul 1.0 exch sub 3 1 roll pop pop} {
  10817.             FrameSepIs FMmagenta eq
  10818.             {pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub exch pop } {
  10819.             FrameSepIs FMcyan eq
  10820.             {pop pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub } 
  10821.             {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
  10822.         } ifelse
  10823.         graymode FMLevel1 or not {
  10824.             
  10825.             [/Pattern [/DeviceGray]] setcolorspace
  10826.             FrameCurPat setcolor
  10827.         } { 
  10828.             graymode not FMLevel1 and {
  10829.                 
  10830.                 dup 1 lt {pop FrameCurGray} if
  10831.             } if
  10832.             RealSetgray
  10833.         } ifelse
  10834.     } ifelse
  10835. } bind def
  10836. /savematrix {
  10837.     orgmatrix currentmatrix pop
  10838.     } bind def
  10839. /restorematrix {
  10840.     orgmatrix setmatrix
  10841.     } bind def
  10842. /dmatrix matrix def
  10843. /dpi    72 0 dmatrix defaultmatrix dtransform
  10844.     dup mul exch   dup mul add   sqrt def
  10845.     
  10846. /freq dpi dup 72 div round dup 0 eq {pop 1} if 8 mul div def
  10847. /sangle 1 0 dmatrix defaultmatrix dtransform exch atan def
  10848. /dpiranges   [  2540    2400    1693     1270    1200     635      600      0      ] def
  10849. /CMLowFreqs  [ 100.402  94.8683 89.2289 100.402  94.8683  66.9349  63.2456 47.4342 ] def
  10850. /YLowFreqs   [  95.25   90.0    84.65    95.25   90.0     70.5556  66.6667 50.0    ] def
  10851. /KLowFreqs   [  89.8026 84.8528 79.8088  89.8026 84.8528  74.8355  70.7107 53.033  ] def
  10852. /CLowAngles  [  71.5651 71.5651 71.5651 71.5651  71.5651  71.5651  71.5651 71.5651 ] def
  10853. /MLowAngles  [  18.4349 18.4349 18.4349 18.4349  18.4349  18.4349  18.4349 18.4349 ] def
  10854. /YLowTDot    [  true    true    false    true    true     false    false   false   ] def
  10855. /CMHighFreqs [ 133.87  126.491 133.843  108.503 102.523  100.402   94.8683 63.2456 ] def
  10856. /YHighFreqs  [ 127.0   120.0   126.975  115.455 109.091   95.25    90.0    60.0    ] def
  10857. /KHighFreqs  [ 119.737 113.137 119.713  128.289 121.218   89.8026  84.8528 63.6395 ] def
  10858. /CHighAngles [  71.5651 71.5651 71.5651  70.0169 70.0169  71.5651  71.5651 71.5651 ] def
  10859. /MHighAngles [  18.4349 18.4349 18.4349  19.9831 19.9831  18.4349  18.4349 18.4349 ] def
  10860. /YHighTDot   [  false   false   true     false   false    true     true    false   ] def
  10861. /PatFreq     [    10.5833 10.0     9.4055  10.5833 10.0      10.5833  10.0       9.375   ] def
  10862. /screenIndex {
  10863.     0 1 dpiranges length 1 sub { dup dpiranges exch get 1 sub dpi le {exit} {pop} ifelse } for
  10864. } bind def
  10865. /getCyanScreen {
  10866.     FMUseHighFrequencyScreens { CHighAngles CMHighFreqs} {CLowAngles CMLowFreqs} ifelse
  10867.         screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load
  10868. } bind def
  10869. /getMagentaScreen {
  10870.     FMUseHighFrequencyScreens { MHighAngles CMHighFreqs } {MLowAngles CMLowFreqs} ifelse
  10871.         screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load
  10872. } bind def
  10873. /getYellowScreen {
  10874.     FMUseHighFrequencyScreens { YHighTDot YHighFreqs} { YLowTDot YLowFreqs } ifelse
  10875.         screenIndex dup 3 1 roll get 3 1 roll get { 3 div
  10876.             {2 { 1 add 2 div 3 mul dup floor sub 2 mul 1 sub exch} repeat
  10877.             FMSpotFunction } } {/FMSpotFunction load } ifelse
  10878.             0.0 exch
  10879. } bind def
  10880. /getBlackScreen  {
  10881.     FMUseHighFrequencyScreens { KHighFreqs } { KLowFreqs } ifelse
  10882.         screenIndex get 45.0 /FMSpotFunction load 
  10883. } bind def
  10884. /getSpotScreen {
  10885.     getBlackScreen
  10886. } bind def
  10887. /getCompositeScreen {
  10888.     getBlackScreen
  10889. } bind def
  10890. /FMSetScreen 
  10891.     FMLevel1 { /setscreen load 
  10892.     }{ {
  10893.         8 dict begin
  10894.         /HalftoneType 1 def
  10895.         /SpotFunction exch def
  10896.         /Angle exch def
  10897.         /Frequency exch def
  10898.         /AccurateScreens FMUseAcccurateScreens def
  10899.         currentdict end sethalftone
  10900.     } bind } ifelse
  10901. def
  10902. /setDefaultScreen {
  10903.     FMPColor {
  10904.         orgrxfer cvx orggxfer cvx orgbxfer cvx orgxfer cvx setcolortransfer
  10905.     }
  10906.     {
  10907.         orgxfer cvx settransfer
  10908.     } ifelse
  10909.     orgfreq organgle orgproc cvx setscreen
  10910. } bind def
  10911. /setCurrentScreen {
  10912.     FrameSepIs FMnone eq {
  10913.         FMUseDefaultNoSeparationScreen {
  10914.             setDefaultScreen
  10915.         } {
  10916.             getCompositeScreen FMSetScreen
  10917.         } ifelse
  10918.     } {
  10919.         FrameSepIs FMcustom eq {
  10920.             FMUseDefaultSpotSeparationScreen {
  10921.                 setDefaultScreen
  10922.             } {
  10923.                 getSpotScreen FMSetScreen
  10924.             } ifelse
  10925.         } {
  10926.             FMUseDefaultProcessSeparationScreen {
  10927.                 setDefaultScreen
  10928.             } {
  10929.                 FrameSepIs FMcyan eq {
  10930.                     getCyanScreen FMSetScreen
  10931.                 } {
  10932.                     FrameSepIs FMmagenta eq {
  10933.                         getMagentaScreen FMSetScreen
  10934.                     } {
  10935.                         FrameSepIs FMyellow eq {
  10936.                             getYellowScreen FMSetScreen
  10937.                         } {
  10938.                             getBlackScreen FMSetScreen
  10939.                         } ifelse
  10940.                     } ifelse
  10941.                 } ifelse
  10942.             } ifelse
  10943.         } ifelse
  10944.     } ifelse 
  10945. } bind def
  10946. end
  10947.     /gstring FMLOCAL
  10948.     /gfile FMLOCAL
  10949.     /gindex FMLOCAL
  10950.     /orgrxfer FMLOCAL
  10951.     /orggxfer FMLOCAL
  10952.     /orgbxfer FMLOCAL
  10953.     /orgxfer FMLOCAL
  10954.     /orgproc FMLOCAL
  10955.     /orgrproc FMLOCAL
  10956.     /orggproc FMLOCAL
  10957.     /orgbproc FMLOCAL
  10958.     /organgle FMLOCAL
  10959.     /orgrangle FMLOCAL
  10960.     /orggangle FMLOCAL
  10961.     /orgbangle FMLOCAL
  10962.     /orgfreq FMLOCAL
  10963.     /orgrfreq FMLOCAL
  10964.     /orggfreq FMLOCAL
  10965.     /orgbfreq FMLOCAL
  10966.     /yscale FMLOCAL
  10967.     /xscale FMLOCAL
  10968.     /edown FMLOCAL
  10969.     /manualfeed FMLOCAL
  10970.     /paperheight FMLOCAL
  10971.     /paperwidth FMLOCAL
  10972. /FMDOCUMENT { 
  10973.     array /FMfonts exch def 
  10974.     /#copies exch def
  10975.     FrameDict begin
  10976.     0 ne /manualfeed exch def
  10977.     /paperheight exch def
  10978.     /paperwidth exch def
  10979.     0 ne /FrameNegative exch def 
  10980.     0 ne /edown exch def 
  10981.     /yscale exch def
  10982.     /xscale exch def
  10983.     FMLevel1 {
  10984.         manualfeed {setmanualfeed} if
  10985.         /FMdicttop countdictstack 1 add def 
  10986.         /FMoptop count def 
  10987.         setpapername 
  10988.         manualfeed {true} {papersize} ifelse 
  10989.         {manualpapersize} {false} ifelse 
  10990.         {desperatepapersize} {false} ifelse 
  10991.         { (Can't select requested paper size for Frame print job!) FMFAILURE } if
  10992.         count -1 FMoptop {pop pop} for
  10993.         countdictstack -1 FMdicttop {pop end} for 
  10994.         }
  10995.         {{1 dict dup /PageSize [paperwidth paperheight]put setpagedevice}stopped
  10996.         { (Can't select requested paper size for Frame print job!) FMFAILURE } if
  10997.          {1 dict dup /ManualFeed manualfeed put setpagedevice } stopped pop }
  10998.     ifelse 
  10999.     
  11000.     FMPColor {
  11001.         currentcolorscreen
  11002.             cvlit /orgproc exch def
  11003.                   /organgle exch def 
  11004.                   /orgfreq exch def
  11005.             cvlit /orgbproc exch def
  11006.                   /orgbangle exch def 
  11007.                   /orgbfreq exch def
  11008.             cvlit /orggproc exch def
  11009.                   /orggangle exch def 
  11010.                   /orggfreq exch def
  11011.             cvlit /orgrproc exch def
  11012.                   /orgrangle exch def 
  11013.                   /orgrfreq exch def
  11014.             currentcolortransfer 
  11015.             FrameNegative {
  11016.                 1 1 4 { 
  11017.                     pop { 1 exch sub } concatprocs 4 1 roll
  11018.                 } for
  11019.                 4 copy
  11020.                 setcolortransfer
  11021.             } if
  11022.             cvlit /orgxfer exch def
  11023.             cvlit /orgbxfer exch def
  11024.             cvlit /orggxfer exch def
  11025.             cvlit /orgrxfer exch def
  11026.     } {
  11027.         currentscreen 
  11028.             cvlit /orgproc exch def
  11029.                   /organgle exch def 
  11030.                   /orgfreq exch def
  11031.                   
  11032.         currenttransfer 
  11033.         FrameNegative {
  11034.             { 1 exch sub } concatprocs
  11035.             dup settransfer
  11036.         } if 
  11037.         cvlit /orgxfer exch def
  11038.     } ifelse
  11039.     end 
  11040. } def 
  11041. /pagesave FMLOCAL
  11042. /orgmatrix FMLOCAL
  11043. /landscape FMLOCAL
  11044. /pwid FMLOCAL
  11045. /FMBEGINPAGE { 
  11046.     FrameDict begin 
  11047.     /pagesave save def
  11048.     3.86 setmiterlimit
  11049.     /landscape exch 0 ne def
  11050.     landscape { 
  11051.         90 rotate 0 exch dup /pwid exch def neg translate pop 
  11052.     }{
  11053.         pop /pwid exch def
  11054.     } ifelse
  11055.     edown { [-1 0 0 1 pwid 0] concat } if
  11056.     0 0 moveto paperwidth 0 lineto paperwidth paperheight lineto 
  11057.     0 paperheight lineto 0 0 lineto 1 setgray fill
  11058.     xscale yscale scale
  11059.     /orgmatrix matrix def
  11060.     gsave 
  11061. } def 
  11062. /FMENDPAGE {
  11063.     grestore 
  11064.     pagesave restore
  11065.     end 
  11066.     showpage
  11067.     } def 
  11068. /FMFONTDEFINE { 
  11069.     FrameDict begin
  11070.     findfont 
  11071.     ReEncode 
  11072.     1 index exch 
  11073.     definefont 
  11074.     FMfonts 3 1 roll 
  11075.     put
  11076.     end 
  11077.     } def 
  11078. /FMFILLS {
  11079.     FrameDict begin dup
  11080.     array /fillvals exch def
  11081.     dict /patCache exch def
  11082.     end 
  11083.     } def 
  11084. /FMFILL {
  11085.     FrameDict begin
  11086.      fillvals 3 1 roll put
  11087.     end 
  11088.     } def 
  11089. /FMNORMALIZEGRAPHICS { 
  11090.     newpath
  11091.     0.0 0.0 moveto
  11092.     1 setlinewidth
  11093.     0 setlinecap
  11094.     0 0 0 sethsbcolor
  11095.     0 setgray 
  11096.     } bind def
  11097.     /fx FMLOCAL
  11098.     /fy FMLOCAL
  11099.     /fh FMLOCAL
  11100.     /fw FMLOCAL
  11101.     /llx FMLOCAL
  11102.     /lly FMLOCAL
  11103.     /urx FMLOCAL
  11104.     /ury FMLOCAL
  11105. /FMBEGINEPSF { 
  11106.     end 
  11107.     /FMEPSF save def 
  11108.     /showpage {} def 
  11109. % See Adobe's "PostScript Language Reference Manual, 2nd Edition", page 714.
  11110. % "...the following operators MUST NOT be used in an EPS file:" (emphasis ours)
  11111.     /banddevice {(banddevice) FMBADEPSF} def
  11112.     /clear {(clear) FMBADEPSF} def
  11113.     /cleardictstack {(cleardictstack) FMBADEPSF} def 
  11114.     /copypage {(copypage) FMBADEPSF} def
  11115.     /erasepage {(erasepage) FMBADEPSF} def
  11116.     /exitserver {(exitserver) FMBADEPSF} def
  11117.     /framedevice {(framedevice) FMBADEPSF} def
  11118.     /grestoreall {(grestoreall) FMBADEPSF} def
  11119.     /initclip {(initclip) FMBADEPSF} def
  11120.     /initgraphics {(initgraphics) FMBADEPSF} def
  11121.     /initmatrix {(initmatrix) FMBADEPSF} def
  11122.     /quit {(quit) FMBADEPSF} def
  11123.     /renderbands {(renderbands) FMBADEPSF} def
  11124.     /setglobal {(setglobal) FMBADEPSF} def
  11125.     /setpagedevice {(setpagedevice) FMBADEPSF} def
  11126.     /setshared {(setshared) FMBADEPSF} def
  11127.     /startjob {(startjob) FMBADEPSF} def
  11128.     /lettertray {(lettertray) FMBADEPSF} def
  11129.     /letter {(letter) FMBADEPSF} def
  11130.     /lettersmall {(lettersmall) FMBADEPSF} def
  11131.     /11x17tray {(11x17tray) FMBADEPSF} def
  11132.     /11x17 {(11x17) FMBADEPSF} def
  11133.     /ledgertray {(ledgertray) FMBADEPSF} def
  11134.     /ledger {(ledger) FMBADEPSF} def
  11135.     /legaltray {(legaltray) FMBADEPSF} def
  11136.     /legal {(legal) FMBADEPSF} def
  11137.     /statementtray {(statementtray) FMBADEPSF} def
  11138.     /statement {(statement) FMBADEPSF} def
  11139.     /executivetray {(executivetray) FMBADEPSF} def
  11140.     /executive {(executive) FMBADEPSF} def
  11141.     /a3tray {(a3tray) FMBADEPSF} def
  11142.     /a3 {(a3) FMBADEPSF} def
  11143.     /a4tray {(a4tray) FMBADEPSF} def
  11144.     /a4 {(a4) FMBADEPSF} def
  11145.     /a4small {(a4small) FMBADEPSF} def
  11146.     /b4tray {(b4tray) FMBADEPSF} def
  11147.     /b4 {(b4) FMBADEPSF} def
  11148.     /b5tray {(b5tray) FMBADEPSF} def
  11149.     /b5 {(b5) FMBADEPSF} def
  11150.     FMNORMALIZEGRAPHICS 
  11151.     [/fy /fx /fh /fw /ury /urx /lly /llx] {exch def} forall 
  11152.     fx fw 2 div add fy fh 2 div add  translate
  11153.     rotate
  11154.     fw 2 div neg fh 2 div neg translate
  11155.     fw urx llx sub div fh ury lly sub div scale 
  11156.     llx neg lly neg translate 
  11157.     /FMdicttop countdictstack 1 add def 
  11158.     /FMoptop count def 
  11159.     } bind def
  11160. /FMENDEPSF {
  11161.     count -1 FMoptop {pop pop} for 
  11162.     countdictstack -1 FMdicttop {pop end} for 
  11163.     FMEPSF restore
  11164.     FrameDict begin 
  11165.     } bind def
  11166. FrameDict begin 
  11167. /setmanualfeed {
  11168. %%BeginFeature *ManualFeed True
  11169.      statusdict /manualfeed true put
  11170. %%EndFeature
  11171.     } bind def
  11172. /max {2 copy lt {exch} if pop} bind def
  11173. /min {2 copy gt {exch} if pop} bind def
  11174. /inch {72 mul} def
  11175. /pagedimen { 
  11176.     paperheight sub abs 16 lt exch 
  11177.     paperwidth sub abs 16 lt and
  11178.     {/papername exch def} {pop} ifelse
  11179.     } bind def
  11180.     /papersizedict FMLOCAL
  11181. /setpapername { 
  11182.     /papersizedict 14 dict def 
  11183.     papersizedict begin
  11184.     /papername /unknown def 
  11185.         /Letter 8.5 inch 11.0 inch pagedimen
  11186.         /LetterSmall 7.68 inch 10.16 inch pagedimen
  11187.         /Tabloid 11.0 inch 17.0 inch pagedimen
  11188.         /Ledger 17.0 inch 11.0 inch pagedimen
  11189.         /Legal 8.5 inch 14.0 inch pagedimen
  11190.         /Statement 5.5 inch 8.5 inch pagedimen
  11191.         /Executive 7.5 inch 10.0 inch pagedimen
  11192.         /A3 11.69 inch 16.5 inch pagedimen
  11193.         /A4 8.26 inch 11.69 inch pagedimen
  11194.         /A4Small 7.47 inch 10.85 inch pagedimen
  11195.         /B4 10.125 inch 14.33 inch pagedimen
  11196.         /B5 7.16 inch 10.125 inch pagedimen
  11197.     end
  11198.     } bind def
  11199. /papersize {
  11200.     papersizedict begin
  11201.         /Letter {lettertray letter} def
  11202.         /LetterSmall {lettertray lettersmall} def
  11203.         /Tabloid {11x17tray 11x17} def
  11204.         /Ledger {ledgertray ledger} def
  11205.         /Legal {legaltray legal} def
  11206.         /Statement {statementtray statement} def
  11207.         /Executive {executivetray executive} def
  11208.         /A3 {a3tray a3} def
  11209.         /A4 {a4tray a4} def
  11210.         /A4Small {a4tray a4small} def
  11211.         /B4 {b4tray b4} def
  11212.         /B5 {b5tray b5} def
  11213.         /unknown {unknown} def
  11214.     papersizedict dup papername known {papername} {/unknown} ifelse get
  11215.     end
  11216.     statusdict begin stopped end 
  11217.     } bind def
  11218. /manualpapersize {
  11219.     papersizedict begin
  11220.         /Letter {letter} def
  11221.         /LetterSmall {lettersmall} def
  11222.         /Tabloid {11x17} def
  11223.         /Ledger {ledger} def
  11224.         /Legal {legal} def
  11225.         /Statement {statement} def
  11226.         /Executive {executive} def
  11227.         /A3 {a3} def
  11228.         /A4 {a4} def
  11229.         /A4Small {a4small} def
  11230.         /B4 {b4} def
  11231.         /B5 {b5} def
  11232.         /unknown {unknown} def
  11233.     papersizedict dup papername known {papername} {/unknown} ifelse get
  11234.     end
  11235.     stopped 
  11236.     } bind def
  11237. /desperatepapersize {
  11238.     statusdict /setpageparams known
  11239.         {
  11240.         paperwidth paperheight 0 1 
  11241.         statusdict begin
  11242.         {setpageparams} stopped 
  11243.         end
  11244.         } {true} ifelse 
  11245.     } bind def
  11246. /DiacriticEncoding [
  11247. /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  11248. /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  11249. /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  11250. /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  11251. /.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl
  11252. /numbersign /dollar /percent /ampersand /quotesingle /parenleft
  11253. /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
  11254. /two /three /four /five /six /seven /eight /nine /colon /semicolon
  11255. /less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K
  11256. /L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash
  11257. /bracketright /asciicircum /underscore /grave /a /b /c /d /e /f /g /h
  11258. /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar
  11259. /braceright /asciitilde /.notdef /Adieresis /Aring /Ccedilla /Eacute
  11260. /Ntilde /Odieresis /Udieresis /aacute /agrave /acircumflex /adieresis
  11261. /atilde /aring /ccedilla /eacute /egrave /ecircumflex /edieresis
  11262. /iacute /igrave /icircumflex /idieresis /ntilde /oacute /ograve
  11263. /ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex
  11264. /udieresis /dagger /.notdef /cent /sterling /section /bullet
  11265. /paragraph /germandbls /registered /copyright /trademark /acute
  11266. /dieresis /.notdef /AE /Oslash /.notdef /.notdef /.notdef /.notdef
  11267. /yen /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  11268. /ordfeminine /ordmasculine /.notdef /ae /oslash /questiondown
  11269. /exclamdown /logicalnot /.notdef /florin /.notdef /.notdef
  11270. /guillemotleft /guillemotright /ellipsis /.notdef /Agrave /Atilde
  11271. /Otilde /OE /oe /endash /emdash /quotedblleft /quotedblright
  11272. /quoteleft /quoteright /.notdef /.notdef /ydieresis /Ydieresis
  11273. /fraction /currency /guilsinglleft /guilsinglright /fi /fl /daggerdbl
  11274. /periodcentered /quotesinglbase /quotedblbase /perthousand
  11275. /Acircumflex /Ecircumflex /Aacute /Edieresis /Egrave /Iacute
  11276. /Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex /.notdef /Ograve
  11277. /Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde /macron
  11278. /breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
  11279. ] def
  11280. /ReEncode { 
  11281.     dup 
  11282.     length 
  11283.     dict begin 
  11284.     {
  11285.     1 index /FID ne 
  11286.         {def} 
  11287.         {pop pop} ifelse 
  11288.     } forall 
  11289.     0 eq {/Encoding DiacriticEncoding def} if 
  11290.     currentdict 
  11291.     end 
  11292.     } bind def
  11293. FMPColor 
  11294.     
  11295.     {
  11296.     /BEGINBITMAPCOLOR { 
  11297.         BITMAPCOLOR} def
  11298.     /BEGINBITMAPCOLORc { 
  11299.         BITMAPCOLORc} def
  11300.     /BEGINBITMAPTRUECOLOR { 
  11301.         BITMAPTRUECOLOR } def
  11302.     /BEGINBITMAPTRUECOLORc { 
  11303.         BITMAPTRUECOLORc } def
  11304.     }
  11305.     
  11306.     {
  11307.     /BEGINBITMAPCOLOR { 
  11308.         BITMAPGRAY} def
  11309.     /BEGINBITMAPCOLORc { 
  11310.         BITMAPGRAYc} def
  11311.     /BEGINBITMAPTRUECOLOR { 
  11312.         BITMAPTRUEGRAY } def
  11313.     /BEGINBITMAPTRUECOLORc { 
  11314.         BITMAPTRUEGRAYc } def
  11315.     }
  11316. ifelse
  11317. /K { 
  11318.     FMPrintAllColorsAsBlack {
  11319.         dup 1 eq 2 index 1 eq and 3 index 1 eq and not
  11320.             {7 {pop} repeat 0 0 0 1 0 0 0} if
  11321.     } if 
  11322.     FrameCurColors astore 
  11323.     pop combineColor
  11324. } bind def
  11325. /graymode true def
  11326.     /bwidth FMLOCAL
  11327.     /bpside FMLOCAL
  11328.     /bstring FMLOCAL
  11329.     /onbits FMLOCAL
  11330.     /offbits FMLOCAL
  11331.     /xindex FMLOCAL
  11332.     /yindex FMLOCAL
  11333.     /x FMLOCAL
  11334.     /y FMLOCAL
  11335. /setPatternMode {
  11336.     FMLevel1 {
  11337.         /bwidth  exch def
  11338.         /bpside  exch def
  11339.         /bstring exch def
  11340.         /onbits 0 def  /offbits 0 def
  11341.         freq sangle landscape {90 add} if 
  11342.             {/y exch def
  11343.              /x exch def
  11344.              /xindex x 1 add 2 div bpside mul cvi def
  11345.              /yindex y 1 add 2 div bpside mul cvi def
  11346.              bstring yindex bwidth mul xindex 8 idiv add get
  11347.              1 7 xindex 8 mod sub bitshift and 0 ne FrameNegative {not} if
  11348.              {/onbits  onbits  1 add def 1}
  11349.              {/offbits offbits 1 add def 0}
  11350.              ifelse
  11351.             }
  11352.             setscreen
  11353.         offbits offbits onbits add div FrameNegative {1.0 exch sub} if
  11354.         /FrameCurGray exch def
  11355.     } { 
  11356.         pop pop
  11357.         dup patCache exch known {
  11358.             patCache exch get
  11359.         } { 
  11360.             dup
  11361.             patDict /bstring 3 -1 roll put
  11362.             patDict 
  11363.             9 PatFreq screenIndex get div dup matrix scale
  11364.             makepattern
  11365.             dup 
  11366.             patCache 4 -1 roll 3 -1 roll put
  11367.         } ifelse
  11368.         /FrameCurGray 0 def
  11369.         /FrameCurPat exch def
  11370.     } ifelse
  11371.     /graymode false def
  11372.     combineColor
  11373. } bind def
  11374. /setGrayScaleMode {
  11375.     graymode not {
  11376.         /graymode true def
  11377.         FMLevel1 {
  11378.             setCurrentScreen
  11379.         } if
  11380.     } if
  11381.     /FrameCurGray exch def
  11382.     combineColor
  11383. } bind def
  11384. /normalize {
  11385.     transform round exch round exch itransform
  11386.     } bind def
  11387. /dnormalize {
  11388.     dtransform round exch round exch idtransform
  11389.     } bind def
  11390. /lnormalize { 
  11391.     0 dtransform exch cvi 2 idiv 2 mul 1 add exch idtransform pop
  11392.     } bind def
  11393. /H { 
  11394.     lnormalize setlinewidth
  11395.     } bind def
  11396. /Z {
  11397.     setlinecap
  11398.     } bind def
  11399.     
  11400. /PFill {
  11401.     graymode FMLevel1 or not {
  11402.         gsave 1 setgray eofill grestore
  11403.     } if
  11404. } bind def
  11405. /PStroke {
  11406.     graymode FMLevel1 or not {
  11407.         gsave 1 setgray stroke grestore
  11408.     } if
  11409.     stroke
  11410. } bind def
  11411.     /fillvals FMLOCAL
  11412. /X { 
  11413.     fillvals exch get
  11414.     dup type /stringtype eq
  11415.     {8 1 setPatternMode} 
  11416.     {setGrayScaleMode}
  11417.     ifelse
  11418.     } bind def
  11419. /V { 
  11420.     PFill gsave eofill grestore
  11421.     } bind def
  11422. /Vclip {
  11423.     clip
  11424.     } bind def
  11425. /Vstrk {
  11426.     currentlinewidth exch setlinewidth PStroke setlinewidth
  11427.     } bind def
  11428. /N { 
  11429.     PStroke
  11430.     } bind def
  11431. /Nclip {
  11432.     strokepath clip newpath
  11433.     } bind def
  11434. /Nstrk {
  11435.     currentlinewidth exch setlinewidth PStroke setlinewidth
  11436.     } bind def
  11437. /M {newpath moveto} bind def
  11438. /E {lineto} bind def
  11439. /D {curveto} bind def
  11440. /O {closepath} bind def
  11441.     /n FMLOCAL
  11442. /L { 
  11443.      /n exch def
  11444.     newpath
  11445.     normalize
  11446.     moveto 
  11447.     2 1 n {pop normalize lineto} for
  11448.     } bind def
  11449. /Y { 
  11450.     L 
  11451.     closepath
  11452.     } bind def
  11453.     /x1 FMLOCAL
  11454.     /x2 FMLOCAL
  11455.     /y1 FMLOCAL
  11456.     /y2 FMLOCAL
  11457. /R { 
  11458.     /y2 exch def
  11459.     /x2 exch def
  11460.     /y1 exch def
  11461.     /x1 exch def
  11462.     x1 y1
  11463.     x2 y1
  11464.     x2 y2
  11465.     x1 y2
  11466.     4 Y 
  11467.     } bind def
  11468.     /rad FMLOCAL
  11469. /rarc 
  11470.     {rad 
  11471.      arcto
  11472.     } bind def
  11473. /RR { 
  11474.     /rad exch def
  11475.     normalize
  11476.     /y2 exch def
  11477.     /x2 exch def
  11478.     normalize
  11479.     /y1 exch def
  11480.     /x1 exch def
  11481.     mark
  11482.     newpath
  11483.     {
  11484.     x1 y1 rad add moveto
  11485.     x1 y2 x2 y2 rarc
  11486.     x2 y2 x2 y1 rarc
  11487.     x2 y1 x1 y1 rarc
  11488.     x1 y1 x1 y2 rarc
  11489.     closepath
  11490.     } stopped {x1 y1 x2 y2 R} if 
  11491.     cleartomark
  11492.     } bind def
  11493. /RRR { 
  11494.     /rad exch def
  11495.     normalize /y4 exch def /x4 exch def
  11496.     normalize /y3 exch def /x3 exch def
  11497.     normalize /y2 exch def /x2 exch def
  11498.     normalize /y1 exch def /x1 exch def
  11499.     newpath
  11500.     normalize moveto 
  11501.     mark
  11502.     {
  11503.     x2 y2 x3 y3 rarc
  11504.     x3 y3 x4 y4 rarc
  11505.     x4 y4 x1 y1 rarc
  11506.     x1 y1 x2 y2 rarc
  11507.     closepath
  11508.     } stopped
  11509.      {x1 y1 x2 y2 x3 y3 x4 y4 newpath moveto lineto lineto lineto closepath} if
  11510.     cleartomark
  11511.     } bind def
  11512. /C { 
  11513.     grestore
  11514.     gsave
  11515.     R 
  11516.     clip
  11517.     setCurrentScreen
  11518. } bind def
  11519. /CP { 
  11520.     grestore
  11521.     gsave
  11522.     Y 
  11523.     clip
  11524.     setCurrentScreen
  11525. } bind def
  11526.     /FMpointsize FMLOCAL
  11527. /F { 
  11528.     FMfonts exch get
  11529.     FMpointsize scalefont
  11530.     setfont
  11531.     } bind def
  11532. /Q { 
  11533.     /FMpointsize exch def
  11534.     F 
  11535.     } bind def
  11536. /T { 
  11537.     moveto show
  11538.     } bind def
  11539. /RF { 
  11540.     rotate
  11541.     0 ne {-1 1 scale} if
  11542.     } bind def
  11543. /TF { 
  11544.     gsave
  11545.     moveto 
  11546.     RF
  11547.     show
  11548.     grestore
  11549.     } bind def
  11550. /P { 
  11551.     moveto
  11552.     0 32 3 2 roll widthshow
  11553.     } bind def
  11554. /PF { 
  11555.     gsave
  11556.     moveto 
  11557.     RF
  11558.     0 32 3 2 roll widthshow
  11559.     grestore
  11560.     } bind def
  11561. /S { 
  11562.     moveto
  11563.     0 exch ashow
  11564.     } bind def
  11565. /SF { 
  11566.     gsave
  11567.     moveto
  11568.     RF
  11569.     0 exch ashow
  11570.     grestore
  11571.     } bind def
  11572. /B { 
  11573.     moveto
  11574.     0 32 4 2 roll 0 exch awidthshow
  11575.     } bind def
  11576. /BF { 
  11577.     gsave
  11578.     moveto
  11579.     RF
  11580.     0 32 4 2 roll 0 exch awidthshow
  11581.     grestore
  11582.     } bind def
  11583. /G { 
  11584.     gsave
  11585.     newpath
  11586.     normalize translate 0.0 0.0 moveto 
  11587.     dnormalize scale 
  11588.     0.0 0.0 1.0 5 3 roll arc 
  11589.     closepath 
  11590.     PFill fill
  11591.     grestore
  11592.     } bind def
  11593. /Gstrk {
  11594.     savematrix
  11595.     newpath
  11596.     2 index 2 div add exch 3 index 2 div sub exch 
  11597.     normalize 2 index 2 div sub exch 3 index 2 div add exch 
  11598.     translate
  11599.     scale 
  11600.     0.0 0.0 1.0 5 3 roll arc 
  11601.     restorematrix
  11602.     currentlinewidth exch setlinewidth PStroke setlinewidth
  11603.     } bind def
  11604. /Gclip { 
  11605.     newpath
  11606.     savematrix
  11607.     normalize translate 0.0 0.0 moveto 
  11608.     dnormalize scale 
  11609.     0.0 0.0 1.0 5 3 roll arc 
  11610.     closepath 
  11611.     clip newpath
  11612.     restorematrix
  11613.     } bind def
  11614. /GG { 
  11615.     gsave
  11616.     newpath
  11617.     normalize translate 0.0 0.0 moveto 
  11618.     rotate 
  11619.     dnormalize scale 
  11620.     0.0 0.0 1.0 5 3 roll arc 
  11621.     closepath
  11622.     PFill
  11623.     fill
  11624.     grestore
  11625.     } bind def
  11626. /GGclip { 
  11627.     savematrix
  11628.     newpath
  11629.     normalize translate 0.0 0.0 moveto 
  11630.     rotate 
  11631.     dnormalize scale 
  11632.     0.0 0.0 1.0 5 3 roll arc 
  11633.     closepath
  11634.     clip newpath
  11635.     restorematrix
  11636.     } bind def
  11637. /GGstrk { 
  11638.     savematrix
  11639.     newpath
  11640.     normalize translate 0.0 0.0 moveto 
  11641.     rotate 
  11642.     dnormalize scale 
  11643.     0.0 0.0 1.0 5 3 roll arc 
  11644.     closepath 
  11645.     restorematrix
  11646.     currentlinewidth exch setlinewidth PStroke setlinewidth
  11647.     } bind def
  11648. /A { 
  11649.     gsave
  11650.     savematrix
  11651.     newpath
  11652.     2 index 2 div add exch 3 index 2 div sub exch 
  11653.     normalize 2 index 2 div sub exch 3 index 2 div add exch 
  11654.     translate 
  11655.     scale 
  11656.     0.0 0.0 1.0 5 3 roll arc 
  11657.     restorematrix
  11658.     PStroke
  11659.     grestore
  11660.     } bind def
  11661. /Aclip {
  11662.     newpath
  11663.     savematrix
  11664.     normalize translate 0.0 0.0 moveto 
  11665.     dnormalize scale 
  11666.     0.0 0.0 1.0 5 3 roll arc 
  11667.     closepath 
  11668.     strokepath clip newpath
  11669.     restorematrix
  11670. } bind def
  11671. /Astrk {
  11672.     Gstrk
  11673. } bind def
  11674. /AA { 
  11675.     gsave
  11676.     savematrix
  11677.     newpath
  11678.     
  11679.     3 index 2 div add exch 4 index 2 div sub exch 
  11680.     
  11681.     normalize 3 index 2 div sub exch 4 index 2 div add exch
  11682.     translate 
  11683.     rotate 
  11684.     scale 
  11685.     0.0 0.0 1.0 5 3 roll arc 
  11686.     restorematrix
  11687.     PStroke
  11688.     grestore
  11689.     } bind def
  11690. /AAclip {
  11691.     savematrix
  11692.     newpath
  11693.     normalize translate 0.0 0.0 moveto 
  11694.     rotate 
  11695.     dnormalize scale 
  11696.     0.0 0.0 1.0 5 3 roll arc 
  11697.     closepath
  11698.     strokepath clip newpath
  11699.     restorematrix
  11700. } bind def
  11701. /AAstrk {
  11702.     GGstrk
  11703. } bind def
  11704.     /x FMLOCAL
  11705.     /y FMLOCAL
  11706.     /w FMLOCAL
  11707.     /h FMLOCAL
  11708.     /xx FMLOCAL
  11709.     /yy FMLOCAL
  11710.     /ww FMLOCAL
  11711.     /hh FMLOCAL
  11712.     /FMsaveobject FMLOCAL
  11713.     /FMoptop FMLOCAL
  11714.     /FMdicttop FMLOCAL
  11715. /BEGINPRINTCODE { 
  11716.     /FMdicttop countdictstack 1 add def 
  11717.     /FMoptop count 7 sub def 
  11718.     /FMsaveobject save def
  11719.     userdict begin 
  11720.     /showpage {} def 
  11721.     FMNORMALIZEGRAPHICS 
  11722.     3 index neg 3 index neg translate
  11723.     } bind def
  11724. /ENDPRINTCODE {
  11725.     count -1 FMoptop {pop pop} for 
  11726.     countdictstack -1 FMdicttop {pop end} for 
  11727.     FMsaveobject restore 
  11728.     } bind def
  11729. /gn { 
  11730.     0 
  11731.     {    46 mul 
  11732.         cf read pop 
  11733.         32 sub 
  11734.         dup 46 lt {exit} if 
  11735.         46 sub add 
  11736.         } loop
  11737.     add 
  11738.     } bind def
  11739.     /str FMLOCAL
  11740. /cfs { 
  11741.     /str sl string def 
  11742.     0 1 sl 1 sub {str exch val put} for 
  11743.     str def 
  11744.     } bind def
  11745. /ic [ 
  11746.     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223
  11747.     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223
  11748.     0
  11749.     {0 hx} {1 hx} {2 hx} {3 hx} {4 hx} {5 hx} {6 hx} {7 hx} {8 hx} {9 hx}
  11750.     {10 hx} {11 hx} {12 hx} {13 hx} {14 hx} {15 hx} {16 hx} {17 hx} {18 hx}
  11751.     {19 hx} {gn hx} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12}
  11752.     {13} {14} {15} {16} {17} {18} {19} {gn} {0 wh} {1 wh} {2 wh} {3 wh}
  11753.     {4 wh} {5 wh} {6 wh} {7 wh} {8 wh} {9 wh} {10 wh} {11 wh} {12 wh}
  11754.     {13 wh} {14 wh} {gn wh} {0 bl} {1 bl} {2 bl} {3 bl} {4 bl} {5 bl} {6 bl}
  11755.     {7 bl} {8 bl} {9 bl} {10 bl} {11 bl} {12 bl} {13 bl} {14 bl} {gn bl}
  11756.     {0 fl} {1 fl} {2 fl} {3 fl} {4 fl} {5 fl} {6 fl} {7 fl} {8 fl} {9 fl}
  11757.     {10 fl} {11 fl} {12 fl} {13 fl} {14 fl} {gn fl}
  11758.     ] def
  11759.     /sl FMLOCAL
  11760.     /val FMLOCAL
  11761.     /ws FMLOCAL
  11762.     /im FMLOCAL
  11763.     /bs FMLOCAL
  11764.     /cs FMLOCAL
  11765.     /len FMLOCAL
  11766.     /pos FMLOCAL
  11767. /ms { 
  11768.     /sl exch def 
  11769.     /val 255 def 
  11770.     /ws cfs 
  11771.     /im cfs 
  11772.     /val 0 def 
  11773.     /bs cfs 
  11774.     /cs cfs 
  11775.     } bind def
  11776. 400 ms 
  11777. /ip { 
  11778.     is 
  11779.     0 
  11780.     cf cs readline pop 
  11781.     {    ic exch get exec 
  11782.         add 
  11783.         } forall 
  11784.     pop 
  11785.     
  11786.     } bind def
  11787. /rip { 
  11788.        
  11789.       
  11790.       bis ris copy pop 
  11791.       is
  11792.       0
  11793.       cf cs readline pop 
  11794.       {       ic exch get exec 
  11795.               add 
  11796.               } forall 
  11797.       pop pop 
  11798.       ris gis copy pop 
  11799.       dup is exch 
  11800.       
  11801.       cf cs readline pop 
  11802.       {       ic exch get exec 
  11803.               add 
  11804.               } forall 
  11805.       pop pop
  11806.       gis bis copy pop 
  11807.       dup add is exch 
  11808.       
  11809.       cf cs readline pop 
  11810.       {       ic exch get exec 
  11811.               add 
  11812.               } forall 
  11813.       pop 
  11814.       
  11815.       } bind def
  11816. /wh { 
  11817.     /len exch def 
  11818.     /pos exch def 
  11819.     ws 0 len getinterval im pos len getinterval copy pop
  11820.     pos len 
  11821.     } bind def
  11822. /bl { 
  11823.     /len exch def 
  11824.     /pos exch def 
  11825.     bs 0 len getinterval im pos len getinterval copy pop
  11826.     pos len 
  11827.     } bind def
  11828. /s1 1 string def
  11829. /fl { 
  11830.     /len exch def 
  11831.     /pos exch def 
  11832.     /val cf s1 readhexstring pop 0 get def
  11833.     pos 1 pos len add 1 sub {im exch val put} for
  11834.     pos len 
  11835.     } bind def
  11836. /hx { 
  11837.     3 copy getinterval 
  11838.     cf exch readhexstring pop pop 
  11839.     } bind def
  11840.     /h FMLOCAL
  11841.     /w FMLOCAL
  11842.     /d FMLOCAL
  11843.     /lb FMLOCAL
  11844.     /bitmapsave FMLOCAL
  11845.     /is FMLOCAL
  11846.     /cf FMLOCAL
  11847. /wbytes { 
  11848.       dup dup
  11849.       24 eq { pop pop 3 mul }
  11850.       { 8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse } ifelse
  11851.     } bind def
  11852. /BEGINBITMAPBWc { 
  11853.     1 {} COMMONBITMAPc
  11854.     } bind def
  11855. /BEGINBITMAPGRAYc { 
  11856.     8 {} COMMONBITMAPc
  11857.     } bind def
  11858. /BEGINBITMAP2BITc { 
  11859.     2 {} COMMONBITMAPc
  11860.     } bind def
  11861. /COMMONBITMAPc { 
  11862.          
  11863.     /r exch def
  11864.     /d exch def
  11865.     gsave
  11866.     
  11867.     3 index 2 div add exch    
  11868.     4 index 2 div add exch    
  11869.     translate        
  11870.     rotate            
  11871.     1 index 2 div neg    
  11872.     1 index 2 div neg    
  11873.     translate        
  11874.     scale            
  11875.     /h exch def /w exch def
  11876.     /lb w d wbytes def 
  11877.     sl lb lt {lb ms} if 
  11878.     /bitmapsave save def 
  11879.     r                    
  11880.     /is im 0 lb getinterval def 
  11881.     ws 0 lb getinterval is copy pop 
  11882.     /cf currentfile def 
  11883.     w h d [w 0 0 h neg 0 h] 
  11884.     {ip} image 
  11885.     bitmapsave restore 
  11886.     grestore
  11887.     } bind def
  11888. /BEGINBITMAPBW { 
  11889.     1 {} COMMONBITMAP
  11890.     } bind def
  11891. /BEGINBITMAPGRAY { 
  11892.     8 {} COMMONBITMAP
  11893.     } bind def
  11894. /BEGINBITMAP2BIT { 
  11895.     2 {} COMMONBITMAP
  11896.     } bind def
  11897. /COMMONBITMAP { 
  11898.     /r exch def
  11899.     /d exch def
  11900.     gsave
  11901.     
  11902.     3 index 2 div add exch    
  11903.     4 index 2 div add exch    
  11904.     translate        
  11905.     rotate            
  11906.     1 index 2 div neg    
  11907.     1 index 2 div neg    
  11908.     translate        
  11909.     scale            
  11910.     /h exch def /w exch def
  11911.     /bitmapsave save def 
  11912.     r                    
  11913.     /is w d wbytes string def
  11914.     /cf currentfile def 
  11915.     w h d [w 0 0 h neg 0 h] 
  11916.     {cf is readhexstring pop} image
  11917.     bitmapsave restore 
  11918.     grestore
  11919.     } bind def
  11920. /ngrayt 256 array def
  11921. /nredt 256 array def
  11922. /nbluet 256 array def
  11923. /ngreent 256 array def
  11924.     /gryt FMLOCAL
  11925.     /blut FMLOCAL
  11926.     /grnt FMLOCAL
  11927.     /redt FMLOCAL
  11928.     /indx FMLOCAL
  11929.     /cynu FMLOCAL
  11930.     /magu FMLOCAL
  11931.     /yelu FMLOCAL
  11932.     /k FMLOCAL
  11933.     /u FMLOCAL
  11934. FMLevel1 {
  11935. /colorsetup {
  11936.     currentcolortransfer
  11937.     /gryt exch def
  11938.     /blut exch def
  11939.     /grnt exch def
  11940.     /redt exch def
  11941.     0 1 255 {
  11942.         /indx exch def
  11943.         /cynu 1 red indx get 255 div sub def
  11944.         /magu 1 green indx get 255 div sub def
  11945.         /yelu 1 blue indx get 255 div sub def
  11946.         /k cynu magu min yelu min def
  11947.         /u k currentundercolorremoval exec def
  11948. %        /u 0 def
  11949.         nredt indx 1 0 cynu u sub max sub redt exec put
  11950.         ngreent indx 1 0 magu u sub max sub grnt exec put
  11951.         nbluet indx 1 0 yelu u sub max sub blut exec put
  11952.         ngrayt indx 1 k currentblackgeneration exec sub gryt exec put
  11953.     } for
  11954.     {255 mul cvi nredt exch get}
  11955.     {255 mul cvi ngreent exch get}
  11956.     {255 mul cvi nbluet exch get}
  11957.     {255 mul cvi ngrayt exch get}
  11958.     setcolortransfer
  11959.     {pop 0} setundercolorremoval
  11960.     {} setblackgeneration
  11961.     } bind def
  11962. }
  11963. {
  11964. /colorSetup2 {
  11965.     [ /Indexed /DeviceRGB 255 
  11966.         {dup red exch get 255 div 
  11967.          exch dup green exch get 255 div 
  11968.          exch blue exch get 255 div}
  11969.     ] setcolorspace
  11970. } bind def
  11971. } ifelse
  11972.     /tran FMLOCAL
  11973. /fakecolorsetup {
  11974.     /tran 256 string def
  11975.     0 1 255 {/indx exch def 
  11976.         tran indx
  11977.         red indx get 77 mul
  11978.         green indx get 151 mul
  11979.         blue indx get 28 mul
  11980.         add add 256 idiv put} for
  11981.     currenttransfer
  11982.     {255 mul cvi tran exch get 255.0 div}
  11983.     exch concatprocs settransfer
  11984. } bind def
  11985. /BITMAPCOLOR { 
  11986.     /d 8 def
  11987.     gsave
  11988.     
  11989.     3 index 2 div add exch    
  11990.     4 index 2 div add exch    
  11991.     translate        
  11992.     rotate            
  11993.     1 index 2 div neg    
  11994.     1 index 2 div neg    
  11995.     translate        
  11996.     scale            
  11997.     /h exch def /w exch def
  11998.     /bitmapsave save def
  11999.     FMLevel1 {    
  12000.         colorsetup
  12001.         /is w d wbytes string def
  12002.         /cf currentfile def 
  12003.         w h d [w 0 0 h neg 0 h] 
  12004.         {cf is readhexstring pop} {is} {is} true 3 colorimage 
  12005.     } {
  12006.         colorSetup2
  12007.         /is w d wbytes string def
  12008.         /cf currentfile def 
  12009.         7 dict dup begin
  12010.             /ImageType 1 def
  12011.             /Width w def
  12012.             /Height h def
  12013.             /ImageMatrix [w 0 0 h neg 0 h] def
  12014.             /DataSource {cf is readhexstring pop} bind def
  12015.             /BitsPerComponent d def
  12016.             /Decode [0 255] def
  12017.         end image    
  12018.     } ifelse
  12019.     bitmapsave restore 
  12020.     grestore
  12021.     } bind def
  12022. /BITMAPCOLORc { 
  12023.     /d 8 def
  12024.     gsave
  12025.     
  12026.     3 index 2 div add exch    
  12027.     4 index 2 div add exch    
  12028.     translate        
  12029.     rotate            
  12030.     1 index 2 div neg    
  12031.     1 index 2 div neg    
  12032.     translate        
  12033.     scale            
  12034.     /h exch def /w exch def
  12035.     /lb w d wbytes def 
  12036.     sl lb lt {lb ms} if 
  12037.     /bitmapsave save def 
  12038.     FMLevel1 {    
  12039.         colorsetup
  12040.         /is im 0 lb getinterval def 
  12041.         ws 0 lb getinterval is copy pop 
  12042.         /cf currentfile def 
  12043.         w h d [w 0 0 h neg 0 h] 
  12044.         {ip} {is} {is} true 3 colorimage
  12045.     } {
  12046.         colorSetup2
  12047.         /is im 0 lb getinterval def 
  12048.         ws 0 lb getinterval is copy pop 
  12049.         /cf currentfile def 
  12050.         7 dict dup begin
  12051.             /ImageType 1 def
  12052.             /Width w def
  12053.             /Height h def
  12054.             /ImageMatrix [w 0 0 h neg 0 h] def
  12055.             /DataSource {ip} bind def
  12056.             /BitsPerComponent d def
  12057.             /Decode [0 255] def
  12058.         end image    
  12059.     } ifelse
  12060.     bitmapsave restore 
  12061.     grestore
  12062.     } bind def
  12063. /BITMAPTRUECOLORc { 
  12064.     /d 24 def
  12065.         gsave
  12066.      
  12067.     3 index 2 div add exch    
  12068.     4 index 2 div add exch    
  12069.     translate        
  12070.     rotate            
  12071.     1 index 2 div neg    
  12072.     1 index 2 div neg    
  12073.     translate        
  12074.     scale            
  12075.     /h exch def /w exch def
  12076.     /lb w d wbytes def 
  12077.     sl lb lt {lb ms} if 
  12078.         /bitmapsave save def 
  12079.         
  12080.     /is im 0 lb getinterval def    
  12081.     /ris im 0 w getinterval def    
  12082.     /gis im w w getinterval def    
  12083.     /bis im w 2 mul w getinterval def 
  12084.         
  12085.         ws 0 lb getinterval is copy pop 
  12086.         /cf currentfile def 
  12087.         w h 8 [w 0 0 h neg 0 h] 
  12088.         {w rip pop ris} {gis} {bis} true 3 colorimage
  12089.         bitmapsave restore 
  12090.         grestore
  12091.         } bind def
  12092. /BITMAPTRUECOLOR { 
  12093.         gsave
  12094.         
  12095.         3 index 2 div add exch    
  12096.         4 index 2 div add exch    
  12097.         translate        
  12098.         rotate            
  12099.         1 index 2 div neg    
  12100.         1 index 2 div neg    
  12101.         translate        
  12102.         scale            
  12103.         /h exch def /w exch def
  12104.         /bitmapsave save def 
  12105.         /is w string def
  12106.         /gis w string def
  12107.         /bis w string def
  12108.         /cf currentfile def 
  12109.         w h 8 [w 0 0 h neg 0 h] 
  12110.         { cf is readhexstring pop } 
  12111.         { cf gis readhexstring pop } 
  12112.         { cf bis readhexstring pop } 
  12113.         true 3 colorimage 
  12114.         bitmapsave restore 
  12115.         grestore
  12116.         } bind def
  12117. /BITMAPTRUEGRAYc { 
  12118.     /d 24 def
  12119.         gsave
  12120.     
  12121.     3 index 2 div add exch    
  12122.     4 index 2 div add exch    
  12123.     translate        
  12124.     rotate            
  12125.     1 index 2 div neg    
  12126.     1 index 2 div neg    
  12127.     translate        
  12128.     scale            
  12129.     /h exch def /w exch def
  12130.     /lb w d wbytes def 
  12131.     sl lb lt {lb ms} if 
  12132.         /bitmapsave save def 
  12133.         
  12134.     /is im 0 lb getinterval def    
  12135.     /ris im 0 w getinterval def    
  12136.     /gis im w w getinterval def    
  12137.     /bis im w 2 mul w getinterval def 
  12138.         ws 0 lb getinterval is copy pop 
  12139.         /cf currentfile def 
  12140.         w h 8 [w 0 0 h neg 0 h] 
  12141.         {w rip pop ris gis bis w gray} image
  12142.         bitmapsave restore 
  12143.         grestore
  12144.         } bind def
  12145. /ww FMLOCAL
  12146. /r FMLOCAL
  12147. /g FMLOCAL
  12148. /b FMLOCAL
  12149. /i FMLOCAL
  12150. /gray { 
  12151.         /ww exch def
  12152.         /b exch def
  12153.         /g exch def
  12154.         /r exch def
  12155.         0 1 ww 1 sub { /i exch def r i get .299 mul g i get .587 mul
  12156.             b i get .114 mul add add r i 3 -1 roll floor cvi put } for
  12157.         r
  12158.         } bind def
  12159. /BITMAPTRUEGRAY { 
  12160.         gsave
  12161.         
  12162.         3 index 2 div add exch    
  12163.         4 index 2 div add exch    
  12164.         translate        
  12165.         rotate            
  12166.         1 index 2 div neg    
  12167.         1 index 2 div neg    
  12168.         translate        
  12169.         scale            
  12170.         /h exch def /w exch def
  12171.         /bitmapsave save def 
  12172.         /is w string def
  12173.         /gis w string def
  12174.         /bis w string def
  12175.         /cf currentfile def 
  12176.         w h 8 [w 0 0 h neg 0 h] 
  12177.         { cf is readhexstring pop 
  12178.           cf gis readhexstring pop 
  12179.           cf bis readhexstring pop w gray}  image
  12180.         bitmapsave restore 
  12181.         grestore
  12182.         } bind def
  12183. /BITMAPGRAY { 
  12184.     8 {fakecolorsetup} COMMONBITMAP
  12185.     } bind def
  12186. /BITMAPGRAYc { 
  12187.     8 {fakecolorsetup} COMMONBITMAPc
  12188.     } bind def
  12189. /ENDBITMAP {
  12190.     } bind def
  12191. end 
  12192.     /ALDsave FMLOCAL
  12193.     /ALDmatrix matrix def ALDmatrix currentmatrix pop
  12194. /StartALD {
  12195.     /ALDsave save def
  12196.      savematrix
  12197.      ALDmatrix setmatrix
  12198.     } bind def
  12199. /InALD {
  12200.      restorematrix
  12201.     } bind def
  12202. /DoneALD {
  12203.      ALDsave restore
  12204.     } bind def
  12205. /I { setdash } bind def
  12206. /J { [] 0 setdash } bind def
  12207. %%EndProlog
  12208. %%BeginSetup
  12209. (4.0) FMVERSION
  12210. 1 1 0 0 612 792 0 1 13 FMDOCUMENT
  12211. 0 0 /Times-Roman FMFONTDEFINE
  12212. 1 0 /Times-Bold FMFONTDEFINE
  12213. 2 0 /Times-Italic FMFONTDEFINE
  12214. 3 0 /Courier FMFONTDEFINE
  12215. 32 FMFILLS
  12216. 0 0 FMFILL
  12217. 1 0.1 FMFILL
  12218. 2 0.3 FMFILL
  12219. 3 0.5 FMFILL
  12220. 4 0.7 FMFILL
  12221. 5 0.9 FMFILL
  12222. 6 0.97 FMFILL
  12223. 7 1 FMFILL
  12224. 8 <0f1e3c78f0e1c387> FMFILL
  12225. 9 <0f87c3e1f0783c1e> FMFILL
  12226. 10 <cccccccccccccccc> FMFILL
  12227. 11 <ffff0000ffff0000> FMFILL
  12228. 12 <8142241818244281> FMFILL
  12229. 13 <03060c183060c081> FMFILL
  12230. 14 <8040201008040201> FMFILL
  12231. 16 1 FMFILL
  12232. 17 0.9 FMFILL
  12233. 18 0.7 FMFILL
  12234. 19 0.5 FMFILL
  12235. 20 0.3 FMFILL
  12236. 21 0.1 FMFILL
  12237. 22 0.03 FMFILL
  12238. 23 0 FMFILL
  12239. 24 <f0e1c3870f1e3c78> FMFILL
  12240. 25 <f0783c1e0f87c3e1> FMFILL
  12241. 26 <3333333333333333> FMFILL
  12242. 27 <0000ffff0000ffff> FMFILL
  12243. 28 <7ebddbe7e7dbbd7e> FMFILL
  12244. 29 <fcf9f3e7cf9f3f7e> FMFILL
  12245. 30 <7fbfdfeff7fbfdfe> FMFILL
  12246. %%EndSetup
  12247. %%Page: "1" 1
  12248. %%BeginPaperSize: Letter
  12249. %%EndPaperSize
  12250. 612 792 0 FMBEGINPAGE
  12251. [0 0 0 1 0 0 0]
  12252. [ 0 1 1 0 1 0 0]
  12253. [ 1 0 1 0 0 1 0]
  12254. [ 1 1 0 0 0 0 1]
  12255. [ 1 0 0 0 0 1 1]
  12256. [ 0 1 0 0 1 0 1]
  12257. [ 0 0 1 0 1 1 0]
  12258.  7 FrameSetSepColors
  12259. FrameNoSep
  12260. 0 0 0 1 0 0 0 K
  12261. J
  12262. 0 0 0 1 0 0 0 K
  12263. 0 0 0 1 0 0 0 K
  12264. 0 0 0 1 0 0 0 K
  12265. 0 0 0 1 0 0 0 K
  12266. 0 0 0 1 0 0 0 K
  12267. 72 684 540 720 R
  12268. 7 X
  12269. 0 0 0 1 0 0 0 K
  12270. V
  12271. 0 10 Q
  12272. 0 X
  12273. (Network Working Group) 72 713.33 T
  12274. (J. Moy) 512.22 713.33 T
  12275. (Request for Comments: 1584) 72 701.33 T
  12276. (Proteon, Inc.) 488.62 701.33 T
  12277. (Category: Standards Track) 72 689.33 T
  12278. (March 1994) 491.4 689.33 T
  12279. 72 72 540 83.95 R
  12280. 7 X
  12281. V
  12282. 0 X
  12283. (Moy) 72 77.28 T
  12284. ([Page 1]) 506.4 77.28 T
  12285. 72 117 540 648 R
  12286. 7 X
  12287. V
  12288. 1 16 Q
  12289. 0 X
  12290. (Multicast Extensions to OSPF) 203.55 637.33 T
  12291. 1 14 Q
  12292. (Status of this Memo) 72 558.67 T
  12293. 0 10 Q
  12294. -0.06 (This document speci\336es an Internet standards track protocol for the Internet community) 72 533.33 P
  12295. -0.06 (, and requests discussion and) 421.99 533.33 P
  12296. (suggestions for improvements. Please refer to the current edition of the \322Internet Of) 72 521.33 T
  12297. (\336cial Protocol Standards\323 \050STD) 407.03 521.33 T
  12298. (1\051 for the standardization state and status of this protocol. Distribution of this memo is unlimited.) 72 509.33 T
  12299. 1 14 Q
  12300. (Abstract) 72 470.67 T
  12301. 0 10 Q
  12302. (This memo documents enhancements to the OSPF protocol enabling the routing of IP multicast datagrams. In this) 72 445.33 T
  12303. (proposal, an IP multicast packet is routed based both on the packet\325) 72 433.33 T
  12304. (s source and its multicast destination \050commonly) 341.41 433.33 T
  12305. -0.35 (referred to as source/destination routing\051. As it is routed, the multicast packet follows a shortest path to each multicast) 72 421.33 P
  12306. -0.26 (destination. During packet forwarding, any commonality of paths is exploited; when multiple hosts belong to a single) 72 409.33 P
  12307. (multicast group, a multicast packet will be replicated only when the paths to the separate hosts diver) 72 397.33 T
  12308. (ge.) 472.6 397.33 T
  12309. -0.26 (OSPF) 72 373.33 P
  12310. -0.26 (, a link-state routing protocol, provides a database describing the Autonomous System\325) 95.1 373.33 P
  12311. -0.26 (s topology) 439.72 373.33 P
  12312. -0.26 (. A new OSPF) 480.76 373.33 P
  12313. (link state advertisement is added describing the location of multicast destinations. A multicast packet\325) 72 361.33 T
  12314. (s path is then) 479.19 361.33 T
  12315. (calculated by building a pruned shortest-path tree rooted at the packet\325) 72 349.33 T
  12316. (s IP source. These trees are built on demand,) 353.61 349.33 T
  12317. (and the results of the calculation are cached for use by subsequent packets.) 72 337.33 T
  12318. (The multicast extensions are built on top of OSPF V) 72 313.33 T
  12319. (ersion 2. The extensions have been implemented so that a) 280.61 313.33 T
  12320. -0.09 (multicast routing capability can be introduced piecemeal into an OSPF V) 72 301.33 P
  12321. -0.09 (ersion 2 routing domain. Some of the OSPF) 362.7 301.33 P
  12322. (V) 72 289.33 T
  12323. (ersion 2 routers may run the multicast extensions, while others may continue to be restricted to the forwarding of) 78.11 289.33 T
  12324. (regular IP traf) 72 277.33 T
  12325. (\336c \050unicasts\051.) 127.91 277.33 T
  12326. (Please send comments to mospf@gated.cornell.edu.) 72 253.33 T
  12327. FMENDPAGE
  12328. %%EndPage: "1" 1
  12329. %%Page: "2" 2
  12330. 612 792 0 FMBEGINPAGE
  12331. [0 0 0 1 0 0 0]
  12332. [ 0 1 1 0 1 0 0]
  12333. [ 1 0 1 0 0 1 0]
  12334. [ 1 1 0 0 0 0 1]
  12335. [ 1 0 0 0 0 1 1]
  12336. [ 0 1 0 0 1 0 1]
  12337. [ 0 0 1 0 1 1 0]
  12338.  7 FrameSetSepColors
  12339. FrameNoSep
  12340. 0 0 0 1 0 0 0 K
  12341. 0 0 0 1 0 0 0 K
  12342. 72 702 540 720 R
  12343. 7 X
  12344. 0 0 0 1 0 0 0 K
  12345. V
  12346. 0 0 0 1 0 0 0 K
  12347. 0 10 Q
  12348. 0 X
  12349. (RFC 1584) 72 713.33 T
  12350. 0 0 0 1 0 0 0 K
  12351. 0 0 0 1 0 0 0 K
  12352. (Multicast Extensions to OSPF) 245.57 713.33 T
  12353. 0 0 0 1 0 0 0 K
  12354. 0 0 0 1 0 0 0 K
  12355. (March 1994) 491.4 713.33 T
  12356. 0 0 0 1 0 0 0 K
  12357. 72 69.05 540 81 R
  12358. 7 X
  12359. V
  12360. 0 0 0 1 0 0 0 K
  12361. 0 X
  12362. (Moy) 72 74.33 T
  12363. 0 0 0 1 0 0 0 K
  12364. 0 0 0 1 0 0 0 K
  12365. 0 0 0 1 0 0 0 K
  12366. 0 0 0 1 0 0 0 K
  12367. ([Page 2]) 506.4 74.33 T
  12368. 0 0 0 1 0 0 0 K
  12369. 0 0 0 1 0 0 0 K
  12370. 0 0 0 1 0 0 0 K
  12371. 72 108 540 684 R
  12372. 7 X
  12373. V
  12374. 0 12 Q
  12375. 0 X
  12376. (1) 72 676 T
  12377. (Introduction) 108 676 T
  12378. (..............................................................................................................) 168 676 T
  12379. (5) 498 676 T
  12380. 0 10 Q
  12381. (1.1) 108 661.33 T
  12382. (T) 144 661.33 T
  12383. (erminology) 149.41 661.33 T
  12384. (........................................................................................................................) 197.5 661.33 T
  12385. (5) 499 661.33 T
  12386. (1.2) 108 647.33 T
  12387. (Acknowledgments) 144 647.33 T
  12388. (...............................................................................................................) 220 647.33 T
  12389. (6) 499 647.33 T
  12390. 0 12 Q
  12391. (2) 72 628 T
  12392. (Multicast routing in MOSPF) 108 628 T
  12393. (....................................................................................) 246 628 T
  12394. (6) 498 628 T
  12395. 0 10 Q
  12396. (2.1) 108 613.33 T
  12397. (Routing characteristics) 144 613.33 T
  12398. (........................................................................................................) 237.5 613.33 T
  12399. (7) 499 613.33 T
  12400. (2.2) 108 599.33 T
  12401. (Sample path of a multicast datagram) 144 599.33 T
  12402. (..................................................................................) 292.5 599.33 T
  12403. (7) 499 599.33 T
  12404. (2.3) 108 585.33 T
  12405. (MOSPF forwarding mechanism) 144 585.33 T
  12406. (..........................................................................................) 272.5 585.33 T
  12407. (9) 499 585.33 T
  12408. 0 0 0 1 0 0 0 K
  12409. (2.3.1) 144 573.33 T
  12410. 0 0 0 1 0 0 0 K
  12411. 0 0 0 1 0 0 0 K
  12412. (IGMP interface: the local group database) 180 573.33 T
  12413. 0 0 0 1 0 0 0 K
  12414. 0 0 0 1 0 0 0 K
  12415. (...........................................................) 345 573.33 T
  12416. 0 0 0 1 0 0 0 K
  12417. 0 0 0 1 0 0 0 K
  12418. (10) 494 573.33 T
  12419. 0 0 0 1 0 0 0 K
  12420. 0 0 0 1 0 0 0 K
  12421. (2.3.2) 144 561.33 T
  12422. 0 0 0 1 0 0 0 K
  12423. 0 0 0 1 0 0 0 K
  12424. (A datagram\325s shortest-path tree) 180 561.33 T
  12425. 0 0 0 1 0 0 0 K
  12426. 0 0 0 1 0 0 0 K
  12427. (..........................................................................) 307.5 561.33 T
  12428. 0 0 0 1 0 0 0 K
  12429. 0 0 0 1 0 0 0 K
  12430. (12) 494 561.33 T
  12431. 0 0 0 1 0 0 0 K
  12432. 0 0 0 1 0 0 0 K
  12433. (2.3.3) 144 549.33 T
  12434. 0 0 0 1 0 0 0 K
  12435. 0 0 0 1 0 0 0 K
  12436. (Support for Non-broadcast networks) 180 549.33 T
  12437. 0 0 0 1 0 0 0 K
  12438. 0 0 0 1 0 0 0 K
  12439. (..................................................................) 327.5 549.33 T
  12440. 0 0 0 1 0 0 0 K
  12441. 0 0 0 1 0 0 0 K
  12442. (13) 494 549.33 T
  12443. 0 0 0 1 0 0 0 K
  12444. 0 0 0 1 0 0 0 K
  12445. (2.3.4) 144 537.33 T
  12446. 0 0 0 1 0 0 0 K
  12447. 0 0 0 1 0 0 0 K
  12448. (Details concerning forwarding cache entries) 180 537.33 T
  12449. 0 0 0 1 0 0 0 K
  12450. 0 0 0 1 0 0 0 K
  12451. (......................................................) 357.5 537.33 T
  12452. 0 0 0 1 0 0 0 K
  12453. 0 0 0 1 0 0 0 K
  12454. (14) 494 537.33 T
  12455. 0 0 0 1 0 0 0 K
  12456. 0 12 Q
  12457. (3) 72 518 T
  12458. (Inter) 108 518 T
  12459. (-area multicasting) 130.42 518 T
  12460. (...........................................................................................) 219 518 T
  12461. (15) 492 518 T
  12462. 0 10 Q
  12463. (3.1) 108 503.33 T
  12464. ( Extent of group-membership-LSAs) 144 503.33 T
  12465. (.................................................................................) 290 503.33 T
  12466. (16) 494 503.33 T
  12467. (3.2) 108 489.33 T
  12468. ( Building inter) 144 489.33 T
  12469. (-area datagram shortest-path trees) 202.14 489.33 T
  12470. (..............................................................) 337.5 489.33 T
  12471. (19) 494 489.33 T
  12472. 0 12 Q
  12473. (4) 72 470 T
  12474. (Inter) 108 470 T
  12475. (-AS multicasting) 130.42 470 T
  12476. (.............................................................................................) 213 470 T
  12477. (21) 492 470 T
  12478. 0 10 Q
  12479. (4.1) 108 455.33 T
  12480. (Building inter) 144 455.33 T
  12481. (-AS datagram shortest-path trees.) 199.64 455.33 T
  12482. (...............................................................) 335 455.33 T
  12483. (22) 494 455.33 T
  12484. (4.2) 108 441.33 T
  12485. (Stub area behavior) 144 441.33 T
  12486. (.............................................................................................................) 220 441.33 T
  12487. (23) 494 441.33 T
  12488. (4.3) 108 427.33 T
  12489. (Inter) 144 427.33 T
  12490. (-AS multicasting in a core Autonomous System) 162.68 427.33 T
  12491. (.......................................................) 355 427.33 T
  12492. (24) 494 427.33 T
  12493. 0 12 Q
  12494. (5) 72 408 T
  12495. (Modelling internal group membership) 108 408 T
  12496. (...................................................................) 291 408 T
  12497. (25) 492 408 T
  12498. (6) 72 388 T
  12499. (Additional capabilities) 108 388 T
  12500. (...........................................................................................) 219 388 T
  12501. (26) 492 388 T
  12502. 0 10 Q
  12503. (6.1) 108 373.33 T
  12504. (Mixing with non-multicast routers) 144 373.33 T
  12505. (....................................................................................) 282.5 373.33 T
  12506. (26) 494 373.33 T
  12507. (6.2) 108 359.33 T
  12508. (T) 144 359.33 T
  12509. (OS-based multicast) 149.93 359.33 T
  12510. (.........................................................................................................) 230 359.33 T
  12511. (27) 494 359.33 T
  12512. (6.3) 108 345.33 T
  12513. (Assigning multiple IP networks to a physical network) 144 345.33 T
  12514. (.....................................................) 360 345.33 T
  12515. (28) 494 345.33 T
  12516. (6.4) 108 331.33 T
  12517. (Networks on Autonomous System boundaries) 144 331.33 T
  12518. (.................................................................) 330 331.33 T
  12519. (28) 494 331.33 T
  12520. (6.5) 108 317.33 T
  12521. (Recommended system con\336guration) 144 317.33 T
  12522. (................................................................................) 292.5 317.33 T
  12523. (29) 494 317.33 T
  12524. 0 12 Q
  12525. (7) 72 298 T
  12526. (Basic implementation requirements) 108 298 T
  12527. (.......................................................................) 279 298 T
  12528. (30) 492 298 T
  12529. (8) 72 278 T
  12530. (Protocol data structures) 108 278 T
  12531. (..........................................................................................) 222 278 T
  12532. (30) 492 278 T
  12533. 0 10 Q
  12534. (8.1) 108 263.33 T
  12535. (Additions to the OSPF area structure) 144 263.33 T
  12536. (................................................................................) 292.5 263.33 T
  12537. (31) 494 263.33 T
  12538. (8.2) 108 249.33 T
  12539. (Additions to the OSPF interface structure) 144 249.33 T
  12540. (.........................................................................) 310 249.33 T
  12541. (31) 494 249.33 T
  12542. (8.3) 108 235.33 T
  12543. (Additions to the OSPF neighbor structure) 144 235.33 T
  12544. (........................................................................) 312.5 235.33 T
  12545. (32) 494 235.33 T
  12546. (8.4) 108 221.33 T
  12547. (The local group database) 144 221.33 T
  12548. (...................................................................................................) 245 221.33 T
  12549. (32) 494 221.33 T
  12550. (8.5) 108 207.33 T
  12551. (The forwarding cache) 144 207.33 T
  12552. (........................................................................................................) 232.5 207.33 T
  12553. (32) 494 207.33 T
  12554. 0 12 Q
  12555. (9) 72 188 T
  12556. (Interaction with the IGMP protocol) 108 188 T
  12557. (.......................................................................) 279 188 T
  12558. (33) 492 188 T
  12559. 0 10 Q
  12560. (9.1) 108 173.33 T
  12561. (Sending IGMP Host Membership Queries) 144 173.33 T
  12562. (........................................................................) 312.5 173.33 T
  12563. (34) 494 173.33 T
  12564. (9.2) 108 159.33 T
  12565. (Receiving IGMP Host Membership Reports) 144 159.33 T
  12566. (....................................................................) 322.5 159.33 T
  12567. (34) 494 159.33 T
  12568. (9.3) 108 145.33 T
  12569. (Aging local group database entries) 144 145.33 T
  12570. (...................................................................................) 285 145.33 T
  12571. (35) 494 145.33 T
  12572. (9.4) 108 131.33 T
  12573. (Receiving IGMP Host Membership Queries) 144 131.33 T
  12574. (....................................................................) 322.5 131.33 T
  12575. (35) 494 131.33 T
  12576. 0 12 Q
  12577. (10) 72 112 T
  12578. (Group-membership-LSAs) 108 112 T
  12579. (......................................................................................) 234 112 T
  12580. (35) 492 112 T
  12581. 0 0 0 1 0 0 0 K
  12582. FMENDPAGE
  12583. %%EndPage: "2" 2
  12584. %%Page: "3" 3
  12585. 612 792 0 FMBEGINPAGE
  12586. [0 0 0 1 0 0 0]
  12587. [ 0 1 1 0 1 0 0]
  12588. [ 1 0 1 0 0 1 0]
  12589. [ 1 1 0 0 0 0 1]
  12590. [ 1 0 0 0 0 1 1]
  12591. [ 0 1 0 0 1 0 1]
  12592. [ 0 0 1 0 1 1 0]
  12593.  7 FrameSetSepColors
  12594. FrameNoSep
  12595. 0 0 0 1 0 0 0 K
  12596. 72 702 540 720 R
  12597. 7 X
  12598. 0 0 0 1 0 0 0 K
  12599. V
  12600. 0 0 0 1 0 0 0 K
  12601. 0 10 Q
  12602. 0 X
  12603. (RFC 1584) 72 713.33 T
  12604. 0 0 0 1 0 0 0 K
  12605. 0 0 0 1 0 0 0 K
  12606. (Multicast Extensions to OSPF) 245.57 713.33 T
  12607. 0 0 0 1 0 0 0 K
  12608. 0 0 0 1 0 0 0 K
  12609. (March 1994) 491.4 713.33 T
  12610. 0 0 0 1 0 0 0 K
  12611. 72 69.05 540 81 R
  12612. 7 X
  12613. V
  12614. 0 0 0 1 0 0 0 K
  12615. 0 X
  12616. (Moy) 72 74.33 T
  12617. 0 0 0 1 0 0 0 K
  12618. 0 0 0 1 0 0 0 K
  12619. 0 0 0 1 0 0 0 K
  12620. 0 0 0 1 0 0 0 K
  12621. ([Page 3]) 506.4 74.33 T
  12622. 0 0 0 1 0 0 0 K
  12623. 0 0 0 1 0 0 0 K
  12624. 0 0 0 1 0 0 0 K
  12625. 72 108 540 684 R
  12626. 7 X
  12627. V
  12628. 0 X
  12629. (10.1) 108 677.33 T
  12630. (Constructing group-membership-LSAs) 144 677.33 T
  12631. (............................................................................) 302.5 677.33 T
  12632. (36) 494 677.33 T
  12633. (10.2) 108 663.33 T
  12634. (Flooding group-membership-LSAs) 144 663.33 T
  12635. (...................................................................................) 285 663.33 T
  12636. (38) 494 663.33 T
  12637. 0 12 Q
  12638. (1) 72 644 T
  12639. (1) 77.56 644 T
  12640. (Detailed description of multicast datagram forwarding) 108 644 T
  12641. (.........................................) 369 644 T
  12642. (38) 492 644 T
  12643. 0 10 Q
  12644. (1) 108 629.33 T
  12645. (1.1) 112.63 629.33 T
  12646. (Associating a MOSPF interface with a received datagram) 144 629.33 T
  12647. (...............................................) 375 629.33 T
  12648. (40) 494 629.33 T
  12649. (1) 108 615.33 T
  12650. (1.2) 112.63 615.33 T
  12651. (Locating the source network) 144 615.33 T
  12652. (.............................................................................................) 260 615.33 T
  12653. (40) 494 615.33 T
  12654. (1) 108 601.33 T
  12655. (1.3) 112.63 601.33 T
  12656. (Forwarding locally originated multicasts) 144 601.33 T
  12657. (..........................................................................) 307.5 601.33 T
  12658. (41) 494 601.33 T
  12659. 0 12 Q
  12660. (12) 72 582 T
  12661. (Construction of forwarding cache entries) 108 582 T
  12662. (..............................................................) 306 582 T
  12663. (42) 492 582 T
  12664. 0 10 Q
  12665. (12.1) 108 567.33 T
  12666. (The V) 144 567.33 T
  12667. (ertex data structure) 168.16 567.33 T
  12668. (...................................................................................................) 245 567.33 T
  12669. (43) 494 567.33 T
  12670. (12.2) 108 553.33 T
  12671. (The SPF calculation) 144 553.33 T
  12672. (..........................................................................................................) 227.5 553.33 T
  12673. (44) 494 553.33 T
  12674. 0 0 0 1 0 0 0 K
  12675. (12.2.1) 144 541.33 T
  12676. 0 0 0 1 0 0 0 K
  12677. 0 0 0 1 0 0 0 K
  12678. (Candidate list Initialization: Case SourceIntraArea) 180 541.33 T
  12679. 0 0 0 1 0 0 0 K
  12680. 0 0 0 1 0 0 0 K
  12681. (............................................) 382.5 541.33 T
  12682. 0 0 0 1 0 0 0 K
  12683. 0 0 0 1 0 0 0 K
  12684. (46) 494 541.33 T
  12685. 0 0 0 1 0 0 0 K
  12686. 0 0 0 1 0 0 0 K
  12687. (12.2.2) 144 529.33 T
  12688. 0 0 0 1 0 0 0 K
  12689. 0 0 0 1 0 0 0 K
  12690. (Candidate list Initialization: Case SourceInterArea1) 180 529.33 T
  12691. 0 0 0 1 0 0 0 K
  12692. 0 0 0 1 0 0 0 K
  12693. (..........................................) 387.5 529.33 T
  12694. 0 0 0 1 0 0 0 K
  12695. 0 0 0 1 0 0 0 K
  12696. (47) 494 529.33 T
  12697. 0 0 0 1 0 0 0 K
  12698. 0 0 0 1 0 0 0 K
  12699. (12.2.3) 144 517.33 T
  12700. 0 0 0 1 0 0 0 K
  12701. 0 0 0 1 0 0 0 K
  12702. (Candidate list Initialization: Case SourceInterArea2) 180 517.33 T
  12703. 0 0 0 1 0 0 0 K
  12704. 0 0 0 1 0 0 0 K
  12705. (..........................................) 387.5 517.33 T
  12706. 0 0 0 1 0 0 0 K
  12707. 0 0 0 1 0 0 0 K
  12708. (47) 494 517.33 T
  12709. 0 0 0 1 0 0 0 K
  12710. 0 0 0 1 0 0 0 K
  12711. (12.2.4) 144 505.33 T
  12712. 0 0 0 1 0 0 0 K
  12713. 0 0 0 1 0 0 0 K
  12714. (Candidate list Initialization: Case SourceExternal) 180 505.33 T
  12715. 0 0 0 1 0 0 0 K
  12716. 0 0 0 1 0 0 0 K
  12717. (.............................................) 380 505.33 T
  12718. 0 0 0 1 0 0 0 K
  12719. 0 0 0 1 0 0 0 K
  12720. (48) 494 505.33 T
  12721. 0 0 0 1 0 0 0 K
  12722. 0 0 0 1 0 0 0 K
  12723. (12.2.5) 144 493.33 T
  12724. 0 0 0 1 0 0 0 K
  12725. 0 0 0 1 0 0 0 K
  12726. (Candidate list Initialization: Case SourceStubExternal) 180 493.33 T
  12727. 0 0 0 1 0 0 0 K
  12728. 0 0 0 1 0 0 0 K
  12729. (......................................) 397.5 493.33 T
  12730. 0 0 0 1 0 0 0 K
  12731. 0 0 0 1 0 0 0 K
  12732. (49) 494 493.33 T
  12733. 0 0 0 1 0 0 0 K
  12734. 0 0 0 1 0 0 0 K
  12735. (12.2.6) 144 481.33 T
  12736. 0 0 0 1 0 0 0 K
  12737. 0 0 0 1 0 0 0 K
  12738. (Processing labelled vertices) 180 481.33 T
  12739. 0 0 0 1 0 0 0 K
  12740. 0 0 0 1 0 0 0 K
  12741. (................................................................................) 292.5 481.33 T
  12742. 0 0 0 1 0 0 0 K
  12743. 0 0 0 1 0 0 0 K
  12744. (49) 494 481.33 T
  12745. 0 0 0 1 0 0 0 K
  12746. 0 0 0 1 0 0 0 K
  12747. (12.2.7) 144 469.33 T
  12748. 0 0 0 1 0 0 0 K
  12749. 0 0 0 1 0 0 0 K
  12750. (Merging datagram shortest-path trees) 180 469.33 T
  12751. 0 0 0 1 0 0 0 K
  12752. 0 0 0 1 0 0 0 K
  12753. (.................................................................) 330 469.33 T
  12754. 0 0 0 1 0 0 0 K
  12755. 0 0 0 1 0 0 0 K
  12756. (50) 494 469.33 T
  12757. 0 0 0 1 0 0 0 K
  12758. 0 0 0 1 0 0 0 K
  12759. (12.2.8) 144 457.33 T
  12760. 0 0 0 1 0 0 0 K
  12761. 0 0 0 1 0 0 0 K
  12762. (TOS considerations) 180 457.33 T
  12763. 0 0 0 1 0 0 0 K
  12764. 0 0 0 1 0 0 0 K
  12765. (.............................................................................................) 260 457.33 T
  12766. 0 0 0 1 0 0 0 K
  12767. 0 0 0 1 0 0 0 K
  12768. (51) 494 457.33 T
  12769. 0 0 0 1 0 0 0 K
  12770. 0 0 0 1 0 0 0 K
  12771. (12.2.9) 144 445.33 T
  12772. 0 0 0 1 0 0 0 K
  12773. 0 0 0 1 0 0 0 K
  12774. (Comparison to the unicast SPF calculation) 180 445.33 T
  12775. 0 0 0 1 0 0 0 K
  12776. 0 0 0 1 0 0 0 K
  12777. (........................................................) 352.5 445.33 T
  12778. 0 0 0 1 0 0 0 K
  12779. 0 0 0 1 0 0 0 K
  12780. (52) 494 445.33 T
  12781. 0 0 0 1 0 0 0 K
  12782. (12.3) 108 431.33 T
  12783. (Adding local database entries to the forwarding cache) 144 431.33 T
  12784. (.....................................................) 360 431.33 T
  12785. (53) 494 431.33 T
  12786. 0 12 Q
  12787. (13) 72 412 T
  12788. (Maintaining the forwarding cache) 108 412 T
  12789. (.........................................................................) 273 412 T
  12790. (53) 492 412 T
  12791. (14) 72 392 T
  12792. (Other additions to the OSPF speci\336cation) 108 392 T
  12793. (.............................................................) 309 392 T
  12794. (54) 492 392 T
  12795. 0 10 Q
  12796. (14.1) 108 377.33 T
  12797. (The Designated Router) 144 377.33 T
  12798. (......................................................................................................) 237.5 377.33 T
  12799. (54) 494 377.33 T
  12800. (14.2) 108 363.33 T
  12801. (Sending Hello packets) 144 363.33 T
  12802. (.......................................................................................................) 235 363.33 T
  12803. (54) 494 363.33 T
  12804. (14.3) 108 349.33 T
  12805. (The Neighbor state machine) 144 349.33 T
  12806. (..............................................................................................) 257.5 349.33 T
  12807. (54) 494 349.33 T
  12808. (14.4) 108 335.33 T
  12809. (Receiving Database Description packets) 144 335.33 T
  12810. (..........................................................................) 307.5 335.33 T
  12811. (55) 494 335.33 T
  12812. (14.5) 108 321.33 T
  12813. (Sending Database Description packets) 144 321.33 T
  12814. (.............................................................................) 300 321.33 T
  12815. (55) 494 321.33 T
  12816. (14.6) 108 307.33 T
  12817. (Originating Router) 144 307.33 T
  12818. (-LSAs) 219.63 307.33 T
  12819. (..................................................................................................) 247.5 307.33 T
  12820. (55) 494 307.33 T
  12821. (14.7) 108 293.33 T
  12822. (Originating Network-LSAs) 144 293.33 T
  12823. (...............................................................................................) 255 293.33 T
  12824. (55) 494 293.33 T
  12825. (14.8) 108 279.33 T
  12826. (Originating Summary-link-LSAs) 144 279.33 T
  12827. (......................................................................................) 277.5 279.33 T
  12828. (56) 494 279.33 T
  12829. (14.9) 108 265.33 T
  12830. (Originating AS external-link-LSAs) 144 265.33 T
  12831. (..................................................................................) 287.5 265.33 T
  12832. (56) 494 265.33 T
  12833. (14.10) 108 251.33 T
  12834. (Next step in the \337ooding procedure) 144 251.33 T
  12835. (..................................................................................) 287.5 251.33 T
  12836. (56) 494 251.33 T
  12837. (14.1) 108 237.33 T
  12838. (1) 125.13 237.33 T
  12839. (V) 144 237.33 T
  12840. (irtual links) 150.62 237.33 T
  12841. (.......................................................................................................................) 195 237.33 T
  12842. (57) 494 237.33 T
  12843. 0 12 Q
  12844. (15) 72 218 T
  12845. (References) 108 218 T
  12846. (..............................................................................................................) 162 218 T
  12847. (58) 492 218 T
  12848. (A) 72 198 T
  12849. (Data Formats) 108 198 T
  12850. (.........................................................................................................) 174 198 T
  12851. ( 59) 489 198 T
  12852. 0 10 Q
  12853. (A.1) 108 183.33 T
  12854. (The Options \336eld) 144 183.33 T
  12855. (..............................................................................................................) 215 183.33 T
  12856. ( 60) 491.5 183.33 T
  12857. (A.2) 108 169.33 T
  12858. (Router) 144 169.33 T
  12859. (-LSA) 171.02 169.33 T
  12860. (......................................................................................................................) 195 169.33 T
  12861. ( 61) 491.5 169.33 T
  12862. (A.3) 108 155.33 T
  12863. (Group-membership-LSA) 144 155.33 T
  12864. (..................................................................................................) 245 155.33 T
  12865. ( 63) 491.5 155.33 T
  12866. 0 12 Q
  12867. (B) 72 136 T
  12868. (Con\336gurable Constants) 108 136 T
  12869. (.........................................................................................) 222 136 T
  12870. ( 64) 489 136 T
  12871. 0 10 Q
  12872. (B.1) 108 121.33 T
  12873. (Global parameters) 144 121.33 T
  12874. (............................................................................................................) 220 121.33 T
  12875. ( 64) 491.5 121.33 T
  12876. 0 0 0 1 0 0 0 K
  12877. FMENDPAGE
  12878. %%EndPage: "3" 3
  12879. %%Page: "4" 4
  12880. 612 792 0 FMBEGINPAGE
  12881. [0 0 0 1 0 0 0]
  12882. [ 0 1 1 0 1 0 0]
  12883. [ 1 0 1 0 0 1 0]
  12884. [ 1 1 0 0 0 0 1]
  12885. [ 1 0 0 0 0 1 1]
  12886. [ 0 1 0 0 1 0 1]
  12887. [ 0 0 1 0 1 1 0]
  12888.  7 FrameSetSepColors
  12889. FrameNoSep
  12890. 0 0 0 1 0 0 0 K
  12891. 72 702 540 720 R
  12892. 7 X
  12893. 0 0 0 1 0 0 0 K
  12894. V
  12895. 0 0 0 1 0 0 0 K
  12896. 0 10 Q
  12897. 0 X
  12898. (RFC 1584) 72 713.33 T
  12899. 0 0 0 1 0 0 0 K
  12900. 0 0 0 1 0 0 0 K
  12901. (Multicast Extensions to OSPF) 245.57 713.33 T
  12902. 0 0 0 1 0 0 0 K
  12903. 0 0 0 1 0 0 0 K
  12904. (March 1994) 491.4 713.33 T
  12905. 0 0 0 1 0 0 0 K
  12906. 72 69.05 540 81 R
  12907. 7 X
  12908. V
  12909. 0 0 0 1 0 0 0 K
  12910. 0 X
  12911. (Moy) 72 74.33 T
  12912. 0 0 0 1 0 0 0 K
  12913. 0 0 0 1 0 0 0 K
  12914. 0 0 0 1 0 0 0 K
  12915. 0 0 0 1 0 0 0 K
  12916. ([Page 4]) 506.4 74.33 T
  12917. 0 0 0 1 0 0 0 K
  12918. 0 0 0 1 0 0 0 K
  12919. 0 0 0 1 0 0 0 K
  12920. 72 108 540 684 R
  12921. 7 X
  12922. V
  12923. 0 X
  12924. (B.2) 108 677.33 T
  12925. (Router interface parameters) 144 677.33 T
  12926. (.............................................................................................) 257.5 677.33 T
  12927. ( 64) 491.5 677.33 T
  12928. 0 12 Q
  12929. (C) 72 658 T
  12930. (Sample datagram shortest-path trees) 108 658 T
  12931. (....................................................................) 285 658 T
  12932. ( 66) 489 658 T
  12933. 0 10 Q
  12934. (C.1) 108 643.33 T
  12935. (An intra-area tree) 144 643.33 T
  12936. (..............................................................................................................) 215 643.33 T
  12937. ( 67) 491.5 643.33 T
  12938. (C.2) 108 629.33 T
  12939. (The ef) 144 629.33 T
  12940. (fect of areas) 169.64 629.33 T
  12941. (............................................................................................................) 220 629.33 T
  12942. ( 68) 491.5 629.33 T
  12943. (C.3) 108 615.33 T
  12944. (The ef) 144 615.33 T
  12945. (fect of virtual links) 169.64 615.33 T
  12946. (.................................................................................................) 247.5 615.33 T
  12947. ( 69) 491.5 615.33 T
  12948. 0 12 Q
  12949. (Security Considerations) 108 596 T
  12950. (........................................................................................) 225 596 T
  12951. ( 70) 489 596 T
  12952. (Author) 108 576 T
  12953. (\325) 142.44 576 T
  12954. (s Address) 145.78 576 T
  12955. (..................................................................................................) 195 576 T
  12956. ( 70) 489 576 T
  12957. 0 0 0 1 0 0 0 K
  12958. FMENDPAGE
  12959. %%EndPage: "4" 4
  12960. %%Page: "5" 5
  12961. 612 792 0 FMBEGINPAGE
  12962. [0 0 0 1 0 0 0]
  12963. [ 0 1 1 0 1 0 0]
  12964. [ 1 0 1 0 0 1 0]
  12965. [ 1 1 0 0 0 0 1]
  12966. [ 1 0 0 0 0 1 1]
  12967. [ 0 1 0 0 1 0 1]
  12968. [ 0 0 1 0 1 1 0]
  12969.  7 FrameSetSepColors
  12970. FrameNoSep
  12971. 0 0 0 1 0 0 0 K
  12972. 0 0 0 1 0 0 0 K
  12973. 0 0 0 1 0 0 0 K
  12974. 0 0 0 1 0 0 0 K
  12975. 0 0 0 1 0 0 0 K
  12976. 72 702 540 720 R
  12977. 7 X
  12978. 0 0 0 1 0 0 0 K
  12979. V
  12980. 0 10 Q
  12981. 0 X
  12982. (RFC 1584) 72 713.33 T
  12983. (Multicast Extensions to OSPF) 245.57 713.33 T
  12984. (March 1994) 491.4 713.33 T
  12985. 72 69.05 540 81 R
  12986. 7 X
  12987. V
  12988. 0 X
  12989. (Moy) 72 74.33 T
  12990. ([Page 5]) 506.4 74.33 T
  12991. 72 108 540 684 R
  12992. 7 X
  12993. V
  12994. 1 14 Q
  12995. 0 X
  12996. (1  Intr) 72 674.67 T
  12997. (oduction) 109.86 674.67 T
  12998. 0 10 Q
  12999. (This memo documents enhancements to OSPF V) 72 649.33 T
  13000. (ersion 2 to support IP multicast routing. The enhancements have) 267.55 649.33 T
  13001. (been added in a backward-compatible fashion; routers running the multicast additions will interoperate with non-) 72 637.33 T
  13002. -0.04 (multicast OSPF routers when forwarding regular \050unicast\051 IP data traf) 72 625.33 P
  13003. -0.04 (\336c. The protocol resulting from the addition of) 351.15 625.33 P
  13004. (the multicast enhancements to OSPF is herein referred to as the MOSPF protocol.) 72 613.33 T
  13005. (IP multicasting is an extension of LAN multicasting to a TCP/IP internet. Multicasting support for TCP/IP hosts has) 72 589.33 T
  13006. -0.08 (been speci\336ed in [RFC 1) 72 577.33 P
  13007. -0.08 (1) 170.74 577.33 P
  13008. -0.08 (12]. In that document, multicast groups are represented by IP class D addresses. Individual) 175.37 577.33 P
  13009. (TCP/IP hosts join \050and leave\051 multicast groups through the Internet Group Management Protocol \050IGMP) 72 565.33 T
  13010. (, also) 490.02 565.33 T
  13011. -0.02 (speci\336ed in [RFC 1) 72 553.33 P
  13012. -0.02 (1) 149.64 553.33 P
  13013. -0.02 (12]\051. A host need not be a member of a multicast group in order to send datagrams to the group.) 154.27 553.33 P
  13014. (Multicast datagrams are to be delivered to each member of the multicast group with the same \322best-ef) 72 541.33 T
  13015. (fort\323 delivery) 478.96 541.33 T
  13016. (accorded regular \050unicast\051 IP data traf) 72 529.33 T
  13017. (\336c.) 223.15 529.33 T
  13018. (MOSPF provides the ability to forward multicast datagrams from one IP network to another \050i.e., through internet) 72 505.33 T
  13019. (routers\051. MOSPF forwards a multicast datagram on the basis of both the datagram\325) 72 493.33 T
  13020. (s source and destination \050this is) 402.79 493.33 T
  13021. (sometimes called source/destination routing\051. The OSPF link state database provides a complete description of the) 72 481.33 T
  13022. -0.3 (Autonomous System\325) 72 469.33 P
  13023. -0.3 (s topology) 158.1 469.33 P
  13024. -0.3 (. By adding a new type of link state advertisement, the) 199.1 469.33 P
  13025. 1 F
  13026. -0.3 (gr) 416.06 469.33 P
  13027. -0.3 (oup-membership-LSA) 425.32 469.33 P
  13028. 0 F
  13029. -0.3 (, the) 520.88 469.33 P
  13030. (location of all multicast group members is pinpointed in the database. The path of a multicast datagram can then be) 72 457.33 T
  13031. (calculated by building a shortest-path tree rooted at the datagram\325) 72 445.33 T
  13032. (s source. All branches not containing multicast) 334.45 445.33 T
  13033. (members are pruned from the tree. These pruned shortest-path trees are initially built when the \336rst datagram is) 72 433.33 T
  13034. (received \050i.e., on demand\051. The results of the shortest path calculation are then cached for use by subsequent) 72 421.33 T
  13035. (datagrams having the same source and destination.) 72 409.33 T
  13036. (OSPF allows an Autonomous System to be split into areas. However) 72 385.33 T
  13037. (, when this is done complete knowledge of the) 346.87 385.33 T
  13038. (Autonomous System\325) 72 373.33 T
  13039. (s topology is lost. When forwarding multicasts between areas, only incomplete shortest-path) 158.4 373.33 T
  13040. -0.23 (trees can be built. This may lead to some inef) 72 361.33 P
  13041. -0.23 (\336ciency in routing. An analogous situation exists when the source of the) 251.39 361.33 P
  13042. (multicast datagram lies in another Autonomous System. In both cases \050i.e., the source of the datagram belongs to a) 72 349.33 T
  13043. (dif) 72 337.33 T
  13044. (ferent OSPF area, or to a dif) 82.93 337.33 T
  13045. (ferent Autonomous system\051 the neighborhood immediately surrounding the source is) 195.78 337.33 T
  13046. (unknown. In these cases the source\325) 72 325.33 T
  13047. (s neighborhood is approximated by OSPF summary link advertisements or by) 215.3 325.33 T
  13048. (OSPF AS external link advertisements respectively) 72 313.33 T
  13049. (.) 276.61 313.33 T
  13050. (Routers running MOSPF can be intermixed with non-multicast OSPF routers. Both types of routers can interoperate) 72 289.33 T
  13051. (when forwarding regular \050unicast\051 IP data traf) 72 277.33 T
  13052. (\336c. Obviously) 255.65 277.33 T
  13053. (, the forwarding extent of IP multicasts is limited by the) 311.67 277.33 T
  13054. (number of MOSPF routers present in the Autonomous System \050and their interconnection, if any\051. An ability to) 72 265.33 T
  13055. (\322tunnel\323 multicast datagrams through non-multicast routers is not provided. In MOSPF) 72 253.33 T
  13056. (, just as in the base OSPF) 420.35 253.33 T
  13057. (protocol, datagrams \050multicast or unicast\051 are routed \322as is\323 -- they are not further encapsulated or decapsulated as) 72 241.33 T
  13058. (they transit the Autonomous System.) 72 229.33 T
  13059. 1 12 Q
  13060. (1.1  T) 72 198 T
  13061. (erminology) 99.9 198 T
  13062. 0 10 Q
  13063. (This memo uses the terminology listed in section 1.2 of [OSPF]. For this reason, terms such as \322Network\323,) 72 173.33 T
  13064. (\322Autonomous System\323 and \322link state advertisement\323 are assumed to be understood. In addition, the abbreviation) 72 161.33 T
  13065. (LSA is used for \322link state advertisement\323. For example, router links advertisements are referred to as router) 72 149.33 T
  13066. (-LSAs) 506.15 149.33 T
  13067. -0.23 (and the new link state advertisement describing the location of members of a multicast group is referred to as a group-) 72 137.33 P
  13068. (membership-LSA.) 72 125.33 T
  13069. FMENDPAGE
  13070. %%EndPage: "5" 5
  13071. %%Page: "6" 6
  13072. 612 792 0 FMBEGINPAGE
  13073. [0 0 0 1 0 0 0]
  13074. [ 0 1 1 0 1 0 0]
  13075. [ 1 0 1 0 0 1 0]
  13076. [ 1 1 0 0 0 0 1]
  13077. [ 1 0 0 0 0 1 1]
  13078. [ 0 1 0 0 1 0 1]
  13079. [ 0 0 1 0 1 1 0]
  13080.  7 FrameSetSepColors
  13081. FrameNoSep
  13082. 0 0 0 1 0 0 0 K
  13083. 0 0 0 1 0 0 0 K
  13084. 0 0 0 1 0 0 0 K
  13085. 0 0 0 1 0 0 0 K
  13086. 72 702 540 720 R
  13087. 7 X
  13088. 0 0 0 1 0 0 0 K
  13089. V
  13090. 0 10 Q
  13091. 0 X
  13092. (RFC 1584) 72 713.33 T
  13093. (Multicast Extensions to OSPF) 245.57 713.33 T
  13094. (March 1994) 491.4 713.33 T
  13095. 72 69.05 540 81 R
  13096. 7 X
  13097. V
  13098. 0 X
  13099. (Moy) 72 74.33 T
  13100. ([Page 6]) 506.4 74.33 T
  13101. 72 108 540 684 R
  13102. 7 X
  13103. V
  13104. 0 X
  13105. ([RFC 1) 72 677.33 T
  13106. (1) 101.36 677.33 T
  13107. (12] discusses the data-link encapsulation of IP multicast datagrams. In contrast to the normal forwarding of) 105.99 677.33 T
  13108. (IP unicast datagrams, on a broadcast network the mapping of an IP multicast destination to a data-link destination) 72 665.33 T
  13109. -0.14 (address is not done with the ARP protocol. Instead, static mappings have been de\336ned from IP multicast destinations) 72 653.33 P
  13110. (to data-link addresses. These mappings are dependent on network type; for some networks IP multicasts are) 72 641.33 T
  13111. (algorithmically mapped to data-link multicast addresses, for other networks all IP multicast destinations are mapped) 72 629.33 T
  13112. (onto the data-link broadcast address. This document loosely describes both of these possible mappings as) 72 617.33 T
  13113. 1 F
  13114. (data-link) 495.84 617.33 T
  13115. (multicast) 72 605.33 T
  13116. 0 F
  13117. (.) 111.44 605.33 T
  13118. (The following terms are also used throughout this document:) 72 581.33 T
  13119. (\245) 72 563.33 T
  13120. 1 F
  13121. (Non-multicast r) 85.54 563.33 T
  13122. (outer) 152.85 563.33 T
  13123. (.) 174.7 563.33 T
  13124. 0 F
  13125. (A router running OSPF V) 180.2 563.33 T
  13126. (ersion 2, but not the multicast extensions. These routers do not) 282.42 563.33 T
  13127. (forward multicast datagrams, but can interoperate with MOSPF routers in the forwarding of unicast packets.) 85.54 551.33 T
  13128. -0.07 (Routers running the MOSPF protocol are referred to herein as either multicast-capable routers or MOSPF routers.) 85.54 539.33 P
  13129. (\245) 72 521.33 T
  13130. 1 F
  13131. -0.26 (Non-br) 85.54 521.33 P
  13132. -0.26 (oadcast networks) 116.47 521.33 P
  13133. 0 F
  13134. -0.26 (. A network supporting the attachment of more than two stations, but not supporting the) 190.36 521.33 P
  13135. (delivery of a single physical datagram to multiple destinations \050i.e., not supporting data-link multicast\051. [OSPF]) 85.54 509.33 T
  13136. (describes these networks as non-broadcast, multi-access networks. An example of a non-broadcast network is an) 85.54 497.33 T
  13137. (X.25 PDN.) 85.54 485.33 T
  13138. (\245) 72 467.33 T
  13139. 1 F
  13140. -0.12 (T) 85.54 467.33 P
  13141. -0.12 (ransit network.) 91.47 467.33 P
  13142. 0 F
  13143. -0.12 ( A network having two or more OSPF routers attached. These networks can forward data traf) 156.9 467.33 P
  13144. -0.12 (\336c) 527.62 467.33 P
  13145. -0.07 (that is neither locally-originated nor locally-destined. In OSPF) 85.54 455.33 P
  13146. -0.07 (, with the exception of point-to-point networks and) 334.21 455.33 P
  13147. (virtual links, the neighborhood of each transit network is described by a network links advertisement \050network-) 85.54 443.33 T
  13148. (LSA\051.) 85.54 431.33 T
  13149. (\245) 72 413.33 T
  13150. 1 F
  13151. -0.19 (Stub network.) 85.54 413.33 P
  13152. 0 F
  13153. -0.19 ( A network having only a single OSPF router attached. A network belonging to an OSPF system is) 145.91 413.33 P
  13154. (either a transit or a stub network, but never both.) 85.54 401.33 T
  13155. 1 12 Q
  13156. (1.2  Acknowledgments) 72 370 T
  13157. 0 10 Q
  13158. (The multicast extensions to OSPF are based on Link-State Multicast Routing algorithm presented in [Deering]. In) 72 345.33 T
  13159. -0.14 (addition, the [Deering] paper contains a section on Hierarchical Multicast Routing \050providing the ideas for MOSPF\325) 72 333.33 P
  13160. -0.14 (s) 533.75 333.33 P
  13161. -0.1 (inter) 72 321.33 P
  13162. -0.1 (-area multicasting scheme\051 and several Distance V) 90.13 321.33 P
  13163. -0.1 (ector \050also called Bellman-Ford\051 multicast algorithms. One of) 291.13 321.33 P
  13164. (these Distance V) 72 309.33 T
  13165. (ector multicast algorithms, T) 138.65 309.33 T
  13166. (runcated Reverse Path Broadcasting, has been implemented in the) 253.85 309.33 T
  13167. (Internet \050see [RFC 1075]\051.) 72 297.33 T
  13168. (The MOSPF protocol has been developed by the MOSPF W) 72 273.33 T
  13169. (orking Group of the Internet Engineering T) 313.13 273.33 T
  13170. (ask Force.) 485.73 273.33 T
  13171. (Portions of this work have been supported by DARP) 72 261.33 T
  13172. (A under NASA contract NAG 2-650.) 281.62 261.33 T
  13173. 1 14 Q
  13174. (2  Multicast r) 72 222.67 T
  13175. (outing in MOSPF) 152.23 222.67 T
  13176. 0 10 Q
  13177. (This section describes MOSPF\325) 72 197.33 T
  13178. (s basic multicast routing algorithm. The basic algorithm, run inside a single OSPF) 198.39 197.33 T
  13179. (area, covers the case where the source of the multicast datagram is inside the area itself. W) 72 185.33 T
  13180. (ithin the area, the path of) 434.83 185.33 T
  13181. (the datagram forms a tree rooted at the datagram source.) 72 173.33 T
  13182. FMENDPAGE
  13183. %%EndPage: "6" 6
  13184. %%Page: "7" 7
  13185. 612 792 0 FMBEGINPAGE
  13186. [0 0 0 1 0 0 0]
  13187. [ 0 1 1 0 1 0 0]
  13188. [ 1 0 1 0 0 1 0]
  13189. [ 1 1 0 0 0 0 1]
  13190. [ 1 0 0 0 0 1 1]
  13191. [ 0 1 0 0 1 0 1]
  13192. [ 0 0 1 0 1 1 0]
  13193.  7 FrameSetSepColors
  13194. FrameNoSep
  13195. 0 0 0 1 0 0 0 K
  13196. 0 0 0 1 0 0 0 K
  13197. 0 0 0 1 0 0 0 K
  13198. 0 0 0 1 0 0 0 K
  13199. 72 702 540 720 R
  13200. 7 X
  13201. 0 0 0 1 0 0 0 K
  13202. V
  13203. 0 10 Q
  13204. 0 X
  13205. (RFC 1584) 72 713.33 T
  13206. (Multicast Extensions to OSPF) 245.57 713.33 T
  13207. (March 1994) 491.4 713.33 T
  13208. 72 69.05 540 81 R
  13209. 7 X
  13210. V
  13211. 0 X
  13212. (Moy) 72 74.33 T
  13213. ([Page 7]) 506.4 74.33 T
  13214. 72 108 540 684 R
  13215. 7 X
  13216. V
  13217. 1 12 Q
  13218. 0 X
  13219. (2.1  Routing characteristics) 72 676 T
  13220. 0 10 Q
  13221. (As a multicast datagram is forwarded along its shortest-path tree, the datagram is delivered to each member of the) 72 651.33 T
  13222. (destination multicast group. In MOSPF) 72 639.33 T
  13223. (, the forwarding of the multicast datagram has the following properties:) 228.71 639.33 T
  13224. (\245) 72 621.33 T
  13225. (The path taken by a multicast datagram depends both on the datagram\325) 85.54 621.33 T
  13226. (s source and its multicast destination.) 368.55 621.33 T
  13227. (Called source/destination routing, this is in contrast to most unicast datagram forwarding algorithms \050like OSPF\051) 85.54 609.33 T
  13228. (that route based solely on destination.) 85.54 597.33 T
  13229. (\245) 72 579.33 T
  13230. (The path taken between the datagram\325) 85.54 579.33 T
  13231. (s source and any particular destination group member is the least cost path) 238 579.33 T
  13232. (available. Cost is expressed in terms of the OSPF link-state metric. For example, if the OSPF metric represents) 85.54 567.33 T
  13233. (delay) 85.54 555.33 T
  13234. (, a minimum delay path is chosen. OSPF metrics are con\336gurable. A metric is assigned to each outbound) 106.55 555.33 T
  13235. (router interface, representing the cost of sending a packet on that interface. The cost of a path is the sum of its) 85.54 543.33 T
  13236. (constituent \050outbound\051 router interfaces) 85.54 531.33 T
  13237. 0 8 Q
  13238. (1) 244.12 535.33 T
  13239. 0 10 Q
  13240. (.) 248.12 531.33 T
  13241. (\245) 72 513.33 T
  13242. (MOSPF takes advantage of any commonality of least cost paths to destination group members. However) 85.54 513.33 T
  13243. (, when) 504.26 513.33 T
  13244. (members of the multicast group are spread out over multiple networks, the multicast datagram must at times be) 85.54 501.33 T
  13245. (replicated. This replication is performed as few times as possible \050at the tree branches\051, taking maximum) 85.54 489.33 T
  13246. (advantage of common path segments.) 85.54 477.33 T
  13247. (\245) 72 459.33 T
  13248. -0.15 (For a given multicast datagram, all routers calculate an identical shortest-path tree. There is a single path between) 85.54 459.33 P
  13249. (the datagram\325) 85.54 447.33 T
  13250. (s source and any particular destination group member) 140.25 447.33 T
  13251. (. This means that, unlike OSPF\325) 354.38 447.33 T
  13252. (s treatment of) 481.89 447.33 T
  13253. (regular \050unicast\051 IP data traf) 85.54 435.33 T
  13254. (\336c, there is no provision for equal-cost multipath.) 198.1 435.33 T
  13255. (\245) 72 417.33 T
  13256. (On each packet hop, MOSPF normally forwards IP multicast datagrams as data-link multicasts. There are two) 85.54 417.33 T
  13257. (exceptions. First, on non-broadcast networks, since there are no data-link multicast/broadcast services the) 85.54 405.33 T
  13258. (datagram must be forwarded to speci\336c MOSPF neighbors \050see Section 2.3.3\051. Second, a MOSPF router can be) 85.54 393.33 T
  13259. (con\336gured to forward IP multicasts on speci\336c networks as data-link unicasts, in order to avoid datagram) 85.54 381.33 T
  13260. (replication in certain anomalous situations \050see Section 6.4\051.) 85.54 369.33 T
  13261. (While MOSPF optimizes the path to any given group member) 72 345.33 T
  13262. (, it does not necessarily optimize the use of the) 320.2 345.33 T
  13263. (internetwork as a whole. T) 72 333.33 T
  13264. (o do so, instead of calculating source-based shortest-path trees, something similar to a) 178.22 333.33 T
  13265. (minimal spanning tree \050containing only the group members\051 would need to be calculated. This type of minimal) 72 321.33 T
  13266. (spanning tree is called a Steiner tree in the literature. For a comparison of shortest-path tree routing to routing using) 72 309.33 T
  13267. (Steiner trees, see [Deering2] and [Bharath-Kumar].) 72 297.33 T
  13268. 1 12 Q
  13269. (2.2  Sample path of a multicast datagram) 72 266 T
  13270. 0 10 Q
  13271. -0.26 (As an example of multicast datagram rou