Subnetwork Independent Functions
3.1 Exchange of Routing Information
The exchange of routing information between routers makes use of the normal routing packet exchange as defined in the OSI IS-IS routing spec, with additional IP-specific information added to the IS-IS routing packets.
The IS-IS protocol provides for the inclusion of variable length fields in all IS-IS packets. These fields are encoded using a "Code, Length, Value" triplet, where the code and length are encoded in one octet each, and the value has the length specified (from 0 to 254 octets). IS-IS requires that: "Any codes in a received PDU that are not recognised are ignored and passed through unchanged". This requirement applies to all routers implementing IS-IS, including OSI-only, IP-only, and dual routers. This allows IP-specific information to be encoded in a manner which OSI-only routers will ignore, and also allows OSI-specific information to be encoded in a manner which IP-only routers will ignore.
IP-capable (i.e., all IP-only and dual) routers need to know what network layer protocols are supported by other routers in their area. This information is made available by inclusion of a "protocols supported" field in all IS-IS Hello and Link State Packets. This field makes use of the NLPID (Network Layer Protocol Identifier), which is a one-octet value assigned by ISO to identify network level protocols. NLPID values have been assigned to ISO 8473 and to IP.
IP-capable routers need to know the IP address of the adjacent interface of neighboring routers. This is required for sending ICMP redirects (when an IP-capable router sends an ICMP redirect to a host, it must include the IP address of the appropriate interface of the correct next-hop router). This information is made available by inclusion of the IP interface address in the IS-IS Hello packets. Specifically, each IS-IS Hello packet contains the IP address(es) of the interface over which the Hello is transmitted. The IS-IS allows multiple IP addresses to be assigned to each physical interface.
In some cases, it will be useful for IP-capable routers to be able to determine an IP address(es) of all other routers at their level (i.e., for level 1 routers: all other routers in their area; for level 2 routers: all other level 2 routers in the routing domain). This is useful whenever an IP packet is to be sent to a router, such as for encapsulation or for transmission of network management packets. This information is made available by inclusion of IP address in LSPs. Specifically, each IS-IS LSP includes one or more IP addresses of the router which transmits the LSP. An IP-capable router is required to include at least one of its IP addresses in its LSPs, and may optionally include several or all of its IP addresses. Where a single router operates as both a level 1 and a level 2 router, it is required to include the same IP address(es) in its level 1 and level 2 LSPs.
IP-capable routers need to know, for any given IP destination address, the correct route to that destination. Specifically, level 1 routers need to know what IP addresses are reachable from each level 1 router in their area. In addition, level 1 routers need to find level 2 routers (for traffic to IP addresses outside of their area). Level 2 routers need to know what IP addresses are reachable internally (either directly, or via level 1 routing) from other level 2 routers, and what addresses are reachable externally from other level 2 routers. All of this information is made available by inclusion of IP reachable address information in the Link State Packets.
Internal (within the routing domain) and external (outside the domain) reachability information is announced separately in level 2 LSPs. Reachable IP addresses include a default metric, and may include multiple TOS-specific metrics. In general, for external routes, metrics may be of type "internal" (i.e., directly comparable with internal metrics) or of type "external" (i.e., not comparable with the internal metric). A route using internal metrics (i.e., either announced as "IP internal reachability information", or announced as "IP external reachability information" with an internal metric) is always preferred to a route using external metrics (i.e., announced as "IP external reachability information", with an external metric).
The detailed encoding of the IP-specific information included in routing packets is provided in section 5 (Structure and Encoding of PDUs).
3.2 Hierarchical Abbreviation of IP Reachability Information
Level 2 routers include in their level 2 LSPs a list of all [IP address, subnet mask, metric] combinations reachable in their area. In general, this information may be determined from the level 1 LSPs from all routers in the area. If we ignore resource constraints, then it would be permissible for a level 2 router to simply duplicate all [IP address, subnet mask, metric] entries from all level 1 routers in its area (with appropriate metric adjustment), for inclusion in its level 2 LSP. However, in order for hierarchical routing to scale to large routing domain sizes, it is highly desired to abbreviate the reachable address information.
This is accomplished by manual configuration of summary addresses. Each level 2 router may be configured with one or more [IP address, subnet mask, metric] entries for announcement in their level 2 LSPs.
The set of reachable addresses obtained from level 1 LSPs is compared with the configured reachable addresses. Redundant information obtained from level 1 LSPs is not included in level 2 LSPs. Generally it is expected that the level 2 configured information will specify more inclusive addresses (corresponding to a subnet mask with fewer bits set to 1). This will therefore allow one configured address/submask pair (or a small number of such pairs) to hierarchically supercede the information corresponding to multiple entries in level 1 LSPs.
The manually configured addresses are included in level 2 LSPs only if they correspond to at least one address which is reachable in the area. For manually configured level 2 addresses, the associated metric values to announce in level 2 LSPs are also manually configured. The configured addresses will supercede reachable address entries from level 1 LSPs based only on the IP address and subnet mask -- metric values are not considered when determining if a given configured address supercedes an address obtained from a level 1 LSP.
Any address obtained from a level 1 LSP which is not superceded by the manually configured information is included in the level 2 LSPs. In this case, the metric value announced in the level 2 LSPs is calculated from the sum of the metric value announced in the corresponding level 1 LSP, plus the distance from the level 2 router to the appropriate level 1 router. Note: If this sum results in a metric value greater than 63 (the maximum value that can be reported in level 2 LSPs), then the value 63 must be used. Delay, expense, and error metrics (i.e., those TOS metrics other than the default metric) will be included only if (i) the level 2 router supports the specific TOS; (ii) the path from the level 2 router to the appropropriate level 1 router is made up of links which support the specific TOS; and (iii) the level 1 router which can reach the address directly also supports the specific TOS for this route, as indicated in its level 1 LSP.
In general, the same [IP address, subnet mask] pair may be announced in level 1 LSPs sent by multiple level 1 routers in the same area. In this case (assuming the entry is not superceded by a manually configured entry), then only one such entry shall be included in the level 2 LSP. The metric value(s) announced in level 2 LSPs correspond to the minimum of the metric value(s) that would be calculated for each of the level 1 LSP entries.
A level 2 router will have IP addresses which are directly reachable via its own interfaces. For purposes of inclusion of IP reachable address information in level 2 LSPs, these "directly reachable" addresses are treated exactly the same as addresses received in level 1 LSPs.
Manually configured addresses may hierarchically supercede multiple level 1 reachable address entries. However, there may be some IP addresses which match the manually configured addresses, but which are not reachable via level 1 routing. If a level 2 router receives an IP packet whose IP address matches a manually configured address which it is including in its level 2 LSP, but which is not reachable via level 1 routing in the area, then the packet must be discarded. In this case, an error report may be returned (as specified in RFC 1009), with the reason for discard specifying destination unreachable.
Figure 2 - An Example Routing Domain (not shown)
An example is illustrated in figure 2. Suppose that the network number for the entire routing domain is 17 (a class A network). Suppose each area is assigned a subnet number consisting of the next 8 bits. The area may be further subdivided by assigning the next eight bits to each LAN in the area, giving each a 24 bit subnet mask (counting the network and subnet fields). Finally 8 bits are left for the host field. Suppose that for a particular area (given subnet number 17.133) there are a number of IP capable level 1 routers announcing (in the special IP entry in their level 1 LSPs) subnets 17.133.5, 17.133.43, and 17.133.57.
Suppose that in this example, in order to save space in level 2 LSPs, the level 2 routers in this area are configured to announce subnet 17.133. Only this one address needs to be announced in level 2 LSPs. Thus if an IP packet comes along for an address in subnet 17.133.5, 17.133.43 or 17.133.57, then other level 2 routers, in other areas, will know to pass the traffic to this area.
The inclusion of 17.133 in level 2 LSPs means that the three subnet addresses starting with 17.133 do not all have to be listed separately in level 2 LSPs.
If any traffic comes along that is for an unreachable address such as 17.133.124.7, then level 2 routers in other areas in this particular domain will think that this area can handle this traffic, will forward traffic to level 2 routers in this area, which will have to discard this traffic.
Suppose that subnet number 17.133.125 was actually reachable via some other area, such as the lower right hand area. In this case, the level 2 router in the left area would be announcing (in its level 2 LSPs according to manually configured information) reachability to subnet 17.133. However, the level 2 router in the lower right area would be announcing (in its level 2 LSPs according to information taken from its received level 1 LSPs), reachability to subnet 17.133.125. Due to the use of best match routing, this works correctly. All traffic from other areas destined to subnet 17.133.125 would be sent to the level 2 router in the lower right area, and all other traffic to subnet 17.133 (i.e., traffic to any IP address starting with 17.133, but not starting with 17.133.125) would be sent to the level 2 router in the leftmost area.
3.3 Addressing Routers in IS-IS Packets
The IS-IS packet formats explicitly require that OSI-style addresses of routers appear in the IS-IS packets. For example, these addresses are used to determine area membership of routers. It is therefore necessary for all routers making use of the IS-IS protocol to have OSI style addresses assigned. For IP-only routers, these addresses will be used only in the operation of the IS-IS protocol, and are not used for any other purpose (such as the operation of EGP, ICMP, or other TCP/IP protocols).
For OSI-only and dual routers, assignment of NSAP addresses is straight forward, but is outside of the scope of this specification. Address assignment mechanisms are being set up by standards bodies which allow globally unique OSI NSAP addresses to be assigned. All OSI-only and dual routers may therefore make use of normal OSI addresses in the operation of the IS-IS protocol.
For IP-only routers, there are two ways in which NSAP addresses may be obtained for use with the IS-IS protocol.
-
For those environments in which OSI is being used, or in which it is anticipated that OSI will be used in the future, it is permissible to obtain NSAP address assignments in the normal manner, assign normal NSAP addresses to IP-only routers, and use these addresses in the operation of IS-IS. This approach is recommended even for pure IP routing domains, as it will simplify future migration from IP-only to dual operation.
-
In some cases, routers may have only TCP/IP addresses, and it may be undesireable to have to go through the normal mechanisms for assignment of NSAP addresses. Instead, an alternate mechanim is provided below for algorithmically generating a valid OSI style address from existing IP address and autonomous system number assignments.
Where desired, for IP-only routers, for use in IS-IS packet formats only, OSI-style addresses (compatible with the USA GOSIP version 2.0 NSAP address format [9]) may be derived as follows:
AFI 1 octet value "47" (specifies ICD format)
ICD 2 octet value "00 05" (specifies Internet/Gosip)
DFI 1 octet value "xx"
AA 3 octets value "xx xx xx" (specifies special
IP-only use of NSAPs)
Reserved 2 octets must be "00 00"
RD 2 octets contains autonomous system number
Area 2 octets must be assigned as described below
ID 6 octets must be assigned as described below
SEL 1 octet used as described below
The AFI value of "47" and the ICD value of "00 05" specifies the Gosip Version 2.0 addressing format. The DFI number of "xx" and the AA of "xx xx xx" specify that this special NSAP address format is being used, solely for IS-IS packet formats in an IP-only environment. The reserved field must contain "00 00", as specified in GOSIP version 2.0.
The routing domain field contains the Autonomous System number. Strictly speaking, this is not necessary, since the IS-IS packets are exchanged within a single AS only. However, inclusion of the AS number in this address format will ensure correct operation in the event that routers from separate routing domains/ASs are incorrectly placed on the same link. The AS number in this context is used only for definition of unique NSAP addresses, and does not imply any coupling with exterior routing protocols.
The Area field must be assigned by the authority responsible for the routing domain, such that each area in the routing domain must have a unique Area value.
The ID must be assigned by the authority responsible for the routing domain. The ID must be assigned such that every router in the routing domain has a unique value. It is recommended that one of the following methods is used:
-
use a unique IEEE 802 48 bit station ID
-
use the value hex "02 00" prepended to an IP address of the router.
IEEE 802 addresses, if used, must appear in IEEE canonical format.
Since the IEEE 802 station IDs are assigned to be globally unique, use of these values clearly assures uniqueness in the area. Also, all assigned IEEE 802 station IDs have the global/local bit set to zero. Prepending the indicated pattern to the front of the IP address therefore assures that format (2) illustrated above cannot produce addresses which collide with format (1). Finally, to the extent that IP addresses are also globally unique, format (2) will produce unique IDs for routers.
The indicated hex value is specified in IEEE 802 canonical form [10]. In IEEE 802 addresses, the multicast bit is the least significant bit of the first byte. The global/local bit is the next least significant bit of the first byte. The indicated prefix therefore sets the global/local bit to 1, and all other bits in the first two octets to 0.
Note that within an area, whether ISO addresses are configured into the routers through ISO address assignment, or whether the ISO-style address is generated directly from the AS number and IP address, all routers within an area must have the same high order part of address (AFI, ICD, DFI, AA, RD, and Area). This ISO-style address is used in IS-IS Hello messages and is the basis by which routers recognize whether neighbor nodes are in or out of their area.
3.4 External Links
External connectivity (i.e., communications with routers outside of the routing domain) is done only by level 2 routers. The ISO version of IS-IS allows external OSI routes to be reported as "reachable address prefixes" in level 2 LSPs. The integrated IS-IS also allows external IP reachable addresses (i.e., IP addresses reachable via inter-domain routing) to be reported in level 2 LSPs in the "IP external reachability information" field. External OSI and external IP routes are handled independently.
The routes announced in IP external reachability information entries include all routes to outside of the routing domain. This includes routes learned from OSPF, EGP, RIP, or any other external protocol.
External routes may make use of "internal" or "external" metrics. Internal metrics are comparable with the metrics used for internal routes. Thus in choosing between an internal route, and an external route using internal metrics, the metric values may be directly compared. In contrast, external metrics cannot be directly compared with internal metrics. Any route defined solely using internal metrics is always preferred to any route defined using external metrics. When an external route using external metrics must be used, the lowest value of the external metric is preferred regardless of the internal cost to reach the appropriate exit point.
It is useful, in the operation of external routing protocols, to provide a mechanism for border routers (i.e., routers in the same routing domain, which have the ability to route externally to other domains) to determine each other's existence, and to exchange external information (in a form understood only by the border routers themselves). This is made possible by inclusion of "inter-domain routing protocol information" fields in level 2 LSPs. The inter-domain routing protocol information field is not included in pseudonode LSPs.
In general there may be multiple types of external inter-domain routing protocol information exchanged between border routers. The IS-IS therefore specifies that each occurance of the inter-domain routing protocol information field include a "type" field, which indicates the type of inter-domain routing protocol information enclosed. Values to be used in the type field will be specified in future versions of the "Assigned Numbers" RFC. Initial values for this field are specified in Annex A of this specification.
Information contained in the inter-domain routing protocol information field will be carried in level 2 LSPs, and will therefore need to be stored by all level 2 routers in the domain. However, only those level 2 routers which are directly involved in external routing will use this information. In designing the use of this field, it is important to carefully consider the implications that this may have on storage requirements in level 2 routers (including those level 2 routers which are not directly involved in external routing).
The protocols used to exchange routing information directly between border routers, and external routers (in other routing domains / autonomous systems) are outside of the scope of this specification.
3.5 Type of Service Routing
The integrated IS-IS protocol provides IP Type of Service (TOS) routing, through use of the Quality of Service (QOS) feature of IS-IS. This allows for routing on the basis of throughput (the default metric), delay, expense, or residual error probability. Note than any particular packet may be routed on the basis of any one of these four metrics. Routing on the basis of general combinations of metrics is not supported.
The support for TOS/QOS is optional. If a particular packet calls for a specific TOS, and the correct path from the source to destination is made up of routers all of which support that particular TOS, then the packet will be routed on the optimal path. However, if there is no path from the source to destination made up of routers which support that particular type of service, then the packet will be forwarded using the default metric instead. This allows for TOS service in those environments where it is needed, while still providing acceptable service in the case where an unsupported TOS is requested.
NOTE - IP does not have a cost TOS. There is therefore no mapping of IP TOS metrics which corresponds to the minimum cost metric.
The IP TOS field is mapped onto the four available metrics as follows:
Bits 0-2 (Precedence): This field does not affect the route, but rather may affect other aspects of packet forwarding.
Bits 3 (Delay), 4 (Throughput) and 5 (Reliability):
000 (all normal) Use default metric
100 (low delay) Use delay metric
010 (high throughput) Use default metric
001 (high reliabiity) Use reliability metric
other Use default metric
3.6 Multiple LSPs and SNPs
In some cases, IS-IS packets (specifically Link State Packets and Complete Sequence Number Packets) may be too large to fit into one packet. The OSI IS-IS [1] allows for LSPs and CSNPs to be split into multiple packets. This is independent of ISO 8473 segmentation, and is also independent of IP fragmentation. Use of independent multiple packets has the advantages (with respect to segmentation or fragmentation) that: (i) when information in the IS-IS changes, only those packets effected need to be re-issued; (ii) when a single packet is received, it can be processed without the need to receive all other packets of the same type from the same router before beginning processing.
The Integrated IS-IS makes use of the same multiple packet function, as defined in [1]. IP-specific fields in IS-IS packets may be split across multiple packets. As specified in section 5 ("Structure and Encoding of PDUs"), some of the IP-specific fields (those which may be fairly long) may be split into several occurences of the same field, thereby allowing splitting of the fields across different packets.
Multiple LSPs from the same router are distinguished by LSP number. Generally, most variable length fields may occur in an LSP with any LSP number. Some specific variable length fields may be required to occur in LSP number 0. Except where explicitly stated otherwise, when an IS-IS router issues multiple LSPs, the IP-specific fields may occur in an LSP with any LSP number.
Complete Sequence Number Packets may be split into multiple packets, with the range to which each packet applies explicitly reported in the packet. Partial Sequence Number Packets are inherently partial, and so can easily be split into multiple packets if this is necessary. Again, where applicable, IP-specific fields may occur in any SNP.
3.7 IP-Only Operation
For IP-only routers, the format for IS-IS packets remains unchanged. However, there are some variable length fields from the IS-IS packets that can be omitted. Specifically:
IS-IS Hello Packets:
- no change
IS-IS Link State Packets:
-
the "End Systems Neighbours" entries are omitted
-
the "Prefix Neighbours" entries are omitted
IS-IS Sequence Number Packets:
- no change
3.8 Encapsulation
Future versions of the Integated IS-IS may specify optional encapsulation mechanisms for partition repair, and for forwarding packets through incompatible routers (i.e., for forwarding OSI packets through IP-only routers, and forwarding IP packets through OSI-only routers). The details of encapsulation and decapsulation are for further study. Routers complying with the Integrated IS-IS are not required to implement encapsulation nor decapsulation.
3.9 Authentication
The authentication field allows each IS-IS packet to contain information used to authenticate the originator and/or contents of the packet. The authentication information contained in each packet is used to authenticate the entire packet, including OSI and IP parts. If a packet is received which contains invalid authentication information, then the entire packet is discarded. If an LSP or SNP is split into multiple packets (as described in section 3.6), then each is authenticated independently.
Use of the authentication field is optional. Routers are not required to be able to interpret authentication information. As with other fields in the integrated IS-IS, if a router does not implement authentication then it will ignore any authentication field that may be present in an IS-IS packet.
Annex D specifies a proposed use of the authentication field.
3.10 Order of Preference of Routes / Dijkstra Computation
We define the term "IP reachability entry" to mean the combination of the [IP address, subnet mask]. The Dijkstra calculation must calculate routes to each distinct IP reachability entry. For the Dijkstra calculation, each IP reachability entry can be treated in much the same manner as an OSI end system. Naturally, each IP reachability entry is treated as distinct from any OSI end systems which may also be reachable in the same area or routing domain.
For any particular IP reachability entry, this is the same as another entry if and only if: (i) the subnet masks are identical; and (ii) for each bit in the subnet mask which has the value "1", the IP address is identical. This can easily be tested by zeroing those bits in the IP address which correspond to a zero bit in the mask, and then treating the entry as a 64 bit quantity, and testing for equality between different 64 bit quantities. The actual calculation of routes to IP reachability entries is therefore no more complex than calculation of routes to OSI end systems (except for the replacement of a 48-bit test with a 64-bit test).
The Dijkstra computation does not take into consideration whether a router is IP-only, OSI-only, or dual. The topological restrictions specified in section 1.4 ensure that IP packets will only be sent via IP-capable routers, and OSI packets will only be sent via OSI-capable routers.
The Integrated IS-IS prefers routes within the area (via level 1 routing) whenever possible. If level 2 routes must be used, then routes within the routing domain (specifically, those routes using internal metrics) are prefered to routes outside of the routing domain (using external metrics).
The Integrated IS-IS protocol makes use of "best match" routing of IP packets. This implies that a particular destination address may match more than one entry in the forwarding database. If a particular IP packet has a destination address which matches two different IP reachability entries, then the entry who's mask contains the most "1" bits is preferred.
IP packets whose destination is a router are routed the same way as any other IP packet, by forwarding first to the appropriate subnet, and then forwarding on that subnet to the destination host (which just happens to be a router in this case). In particular, the IP forwarding database does not contain explicit routes to the individual "IP interface addresses" listed by each router in its LSP.
However, host routes (routes with a subnet mask of all ones) may of course be included in the IP reachability entries, and will be handled in the same manner as other IP reachability entries.
In order to ensure correct interoperation of different router implementations, it is necessary to specify the order of preference of possible routes. For OSI destinations, this is outside of the scope of this report. For IP destinations, this is specified in section 3.10.1 and 3.10.2 below. Annex C specifies a detailed Dijkstra calculation and forwarding algorithm which is compatible with the order of preference of routes specified here.
With IS-IS, if a route to a given destination is advertised, or a link between routers is advertised, then metric values associated with some or all of the specified TOS metric types may be associated with that destination or link. However, the default metric must always be available. Normally this ensures that if a route using any TOS metric is available, then a route using the default metric will also be available. The only exception to this is where the corresponding route using the default metric has a total cost (within the area, or within the level 2 backbone) greater than MaxPathMetric.
In determining the route to a particular destination for a specified TOS, only routes using either the requested TOS metric, or the default TOS metric, are considered.
3.10.1 Order of Preference of Routes In Level 1 Routing
If a given destination is reachable within an area via a route using either the requested TOS or the default TOS, then the IS-IS will always make use of a path within the area (via level 1 routing), regardless of whether an alternate path exists outside of the area (via level 2 routing). In this case, routes within the area are selected as follows:
-
Amongst routes in the area, if the specified destination address matches more than one [IP address, subnet mask] pair, then the more specific address match (the one with more "1" bits in the mask) is prefered.
-
Amongst routes in the area to equally specific address matches, routes on which the requested TOS (if any) is supported are always prefered to routes on which the requested TOS is not supported.
-
Amongst routes in the area of the same TOS to equally specific address matches, the shortest routes are prefered. For determination of the shortest path, if a route on which the specified TOS is supported is available, then the specified TOS metric is used, otherwise the default metric is used. Amongst routes of equal cost, load splitting may be performed as specified in [1].
For a level 1 only router (i.e., a router which does not take part in level 2 routing, or a level 2 router which is not "attached"), if a given destination is not reachable within an area, level 1 routing will always route to a level 2 router as follows:
-
Amongst routes in the area to attached level 2 routers, routes on which the requested TOS (if any) is supported are always prefered to routes on which the requested TOS is not supported.
-
Amongst routes in the area of the same TOS to attached level 2 routers, the shortest routes are prefered. For determination of the shortest path, if a route on which the specified TOS is supported is available, then the specified TOS metric is used, otherwise the default metric is used. Amongst routes of equal cost, loadsplitting may be performed as specified in [1].
3.10.2 Order of Preference of Routes in Level 2 Routing
For those level 2 routers which also take part in level 1 routing, routes learned via level 1 routing, using either the requested TOS or the default TOS, are always prefered to routes learned through level 2 routing. For destinations which are not reachable via level 1 routing, or for level 2 only routers (routers which do not take part in level 1 routing), then level 2 routes are selected as follows:
-
Routes using internal metrics only are always preferred to routes using external metrics.
-
If a route using internal metrics only is available:
a) If the specified destination address matches more than one [IP address, subnet mask] pair, then the more specific address match (i.e., the largest number of "1"s present in the subnet mask) is prefered.
b) Amongst routes with equally specific address matches (i.e., an equal number of "1"s present in the subnet mask), routes on which the requested TOS (if any) is supported are always preferred to routes on which the requested TOS is not supported.
c) Amongst routes of the same TOS with an equally specific address matches, the shortest path is prefered. For determination of the shortest path, if a route on which the specified TOS is supported is available, then the specified TOS metric is used, otherwise the default metric is used. Amongst routes of equal cost, loadsplitting may be performed as specified in [1].
NOTE: Internal routes (routes to destinations announced in the "IP Internal Reachability Information" field), and external routes using internal metrics (routes to destinations announced in the "IP External Reachability Information" field, with a metric of type "internal") are treated identically for the purpose of the order of preference of routes, and the Dijkstra calculation.
- If a route using internal metrics only is not available, but a route using external metrics is available:
a) If the specified destination address matches more than one [IP address, subnet mask] pair, then the more specific address match is prefered.
NOTE: For external routes, the subnet mask will normally correspond precisely to the network number. This implies that this test will always discover equal length matching strings. However, this test is included to allow future migration to more general handling of external addresses.
b) Amongst routes with equally specific matches, routes on which the requested TOS (if any) is supported are always preferred to routes on which the requested TOS is not supported. NOTE: for external routes, the route is considered to support the requested TOS only if the internal route to the appropriate border router supports the requested TOS, and the external route reported by the border router also supports the requested TOS.
c) Amongst routes of the same TOS with an equal length matching address string, the shortest path is prefered. For determination of the shortest path:
(i) Routes with a smaller announced external metric are always prefered.
(ii) Amongst routes with an equal external metric, routes with a shorter internal metric are prefered. Amongst routes of equal cost, loadsplitting may be performed as specified in [1].
For level 2 routers which are announcing manually configured summary addresses in their level 2 LSPs, in some cases there will exist IP addresses which match the manually configured addresses, but which do not match any addresses which are actually reachable via level 1 routing in the area. Generally, packets to such addresses are handled according to the following rules:
-
If the specified destination is reachable via level 1 routing, then according to the order of preference of routes specified above, the packet will be delivered via level 1 routing.
-
If the specified destination is not reachable via level 1 routing, but is reachable via 2 routing, and there are other level 2 routers which offer more desireable routes according to the rules specified above (for example a route with a more specific match, or a route with an equally specific match which supports the correct TOS), then level 2 routing will forward the packet according to the more desireable route.
-
If the specified destination is not reachable via level 1 routing, and the manually configured summary address advertised by this router (the router which has received the packet and is trying to forward it) represents the most desireable route, then the destination is unreachable and the packet must be discarded.