Zum Hauptinhalt springen

3.5. Berechnung Type-7-AS-externer Routen

Dieser Abschnitt ähnelt sehr Abschnitt 16.4 (Berechnung externer AS-Routen) in der OSPF-Spezifikation. Ein NSSA-Area-Border-Router sollte sowohl Typ-5- als auch Typ-7-LSAs prüfen, wenn entweder Typ-5- oder Typ-7-Routen aktualisiert werden müssen. Typ-7-LSAs sollten nach den Typ-5-LSAs geprüft werden. Ein interner NSSA-Router sollte Typ-7-LSAs prüfen, wenn Typ-7-Routen neu berechnet werden müssen. Im Hinblick auf die in der OSPF-Spezifikation dargestellten Schritte zur Berechnung der Routing-Tabelle (Kapitel 16, "Berechnung der Routing-Tabelle") sollten Typ-7-LSAs nach Schritt 5 geprüft werden, in dem die Routen zu externen Zielen berechnet werden. Typ-7-Routen werden durch Prüfung der Typ-7-LSAs berechnet. Jede dieser LSAs wird nacheinander betrachtet. Die meisten Typ-7-LSAs beschreiben Routen zu bestimmten IP-Zielen. Eine Typ-7-LSA kann auch eine Default-Route für die NSSA beschreiben (Ziel = DefaultDestination). Für jede Typ-7-LSA:

1. If the metric specified by the LSA is LSInfinity, the
   age of the LSA equals MaxAge or the advertising router
   field is equal to this router's router ID, examine the
   next advertisement.

2. Call the destination described by the LSA N. Look up the
   routing table entry for the AS boundary router (ASBR) that
   originated the LSA. If no entry exists for the ASBR
   (i.e., ASBR is unreachable), do nothing with this LSA and
   consider the next in the list.

   If the destination is the default route (destination =
   DefaultDestination) and if the originator of the LSA and
   the calculating router are both NSSA area border routers
   do nothing with this LSA and consider the next in the list.

   Else, this LSA describes an AS external path to destination
   N. If the forwarding address (as specified in the forwarding
   address field of the LSA) is 0.0.0.0, the packets routed
   to the external destination N will be routed to the
   originating ASBR. If the forwarding address is not 0.0.0.0,
   look up the forwarding address in the routing table. Packets
   routed to the external destination N will be routed within
   the NSSA to this forwarding address. An intra-area path
   must therefore exist to the forwarding address. If no such
   path exists, do nothing with the LSA and consider the next
   in the list.

   Call the routing table distance to the forwarding address
   (or the distance to the originating ASBR if the forwarding
   address is 0.0.0.0) X, and the cost specified in the type-7
   LSA Y. X is in terms of the link-state metric, and Y is a
   Type-1 or Type-2 external metric.

3. Now, look up the routing table entry for the destination
   N. If no entries exist for N, install the AS external path
   to N, with the next hop equal to the list of next hops to
   the forwarding address/ASBR, and the advertising router equal
   to ASBR. If the external metric type is 1, then the
   path-type is set to Type-1 external and the cost is equal
   to X + Y. If the external metric type is 2, the path-type
   is set to Type-2 external, the link-state component of the
   route's cost is X, and the Type-2 cost is Y.

4. Else, if the paths present in the table are not Type-1 or
   Type-2 external paths, do nothing (AS external paths have
   the lowest priority).

5. Otherwise, compare the cost of this new AS external path
   to the ones present in the table. Note that type-5 and
   type-7 routes are directly comparable. Type-1 external
   paths are always shorter than Type-2 external paths.
   Type-1 external paths are compared by looking at the sum
   of the distance to the forwarding address/ASBR and the
   advertised Type-1 paths (X+Y). Type-2 external paths are
   compared by looking at the advertised Type-2 metrics,
   and then if necessary, the distance to the forwarding
   address/ASBR.

   When a type-5 LSA and a type-7 LSA are found to have the
   same type and an equal distance, the following priorities
   apply (listed from highest to lowest) for breaking the tie.

           a. Any type 5 LSA.
           b. A type-7 LSA with the P-bit set and the forwarding
              address non-zero.
           c. Any other type-7 LSA.

   If the new path is shorter, it replaces the present paths
   in the routing table entry. If the new path is the same
   cost, it is added to the routing table entry's list of
   paths.