7. Subnetwork Independent Functions
This clause describes the algorithms and associated data bases used by the routeing functions. The managed objects and attributes defined for System Management purposes are described in clause 11. The following processes and data bases are used internally by the subnetwork independent functions. Following each process or data base title, in parentheses, is the type of systems which must keep the database. The system types are L2 (level 2 Intermediate system), and L1 (level 1 Intermediate system). Note that a level 2 Intermediate system is also a level 1 Intermediate system in its home area, so it must keep level 1 databases as well as level 2 databases.
Processes:
- Decision Process (L2, L1)
- Update Process (L2, L1)
- Forwarding Process (L2, L1)
- Receive Process (L2, L1) Databases:
- Level 1 Link State data base (L2, L1)
- Level 2 Link State data base (L2)
- Adjacency Database (L2, L1)
- Circuit Database (L2, L1)
- Level 1 Shortest Paths Database (L2, L1)
- Level 2 Shortest Paths Database (L2)
- Level 1 Forwarding Databases one per routeing metric (L2, L1)
- Level 2 Forwarding Database one per routeing metric (L2)
7.1. Addresses
The NSAP addresses and NETs of systems are variable length quantities that conform to the requirements of ISO 8348/Add.2. The corresponding NPAI contained in ISO 8473 PDUs and in this protocol's PDUs (such as LSPs and IIHs) must use the preferred binary encoding; the underlying syntax for this information may be either abstract binary syntax or abstract decimal syntax. Any of the AFIs and their corresponding DSP syntax may be used with this protocol.
7.1.1. NPAI Of Systems Within A Routeing Domain
Figure 3 illustrates the structure of an encoded NSAP address or NET.
The structure of the NPAI will be interpreted in the following way by the protocol described in this international standard:
- Area Address: address of one area within a routeing domain a variable length quantity consisting of the entire high-order part of the NPAI, excluding the ID and SEL fields, defined below.
- ID: System identifier a variable length field from 1 to 8 octets (inclusive). Each routeing domain employing this protocol shall select a single size for the ID field and all Intermediate systems in the routeing domain shall use this length for the system IDs of all systems in the routeing domain. The set of ID lengths supported by an implementation is an implementation choice, provided that at least one value in the permitted range can be accepted. The routeing domain administrator must ensure that all ISs included in a routeing domain are able to use the ID length chosen for that domain.
- SEL: NSAP Selector a 1-octet field which acts as a selector for the entity which is to receive the PDU(this may be a Transport entity or the Intermediate system Network entity itself). It is the least significant (last) octet of the NPAI.
7.1.2. Deployment of Systems
For correct operation of the routeing protocol defined in this international standard, systems deployed in a routeing domain must meet the following requirements:
-
For all systems:
-
Each system in an area must have a unique systemID: that is, no two systems (IS or ES) in an area can use the same ID value.
-
Each area address must be unique within the global OSIE: that is, a given area address can be associated with only one area.
-
All systems having a given value of area address must be located in the same area.
-
Additional Requirements for Intermediate systems:
-
Each Level 2 Intermediate system within a routeing domain must have a unique value for its ID field: that is, no two level 2 ISs in a routeing domain can have the same value in their ID fields.
-
Additional Requirements for End systems:
-
No two End systems in an area may have addresses that match in all but the SEL fields.
-
An End system can be attached to a level 1 IS only if its area address matches one of the entries in the adjacent IS's manual
Area
Addresses parameter. It is the responsibility of the routeing domain's administrative authority to enforce the requirements of 7.1.2. The protocol defined in this international standard assumes that these requirements are met, but has no means to verify compliance with them.
7.1.3. Manual area addresses
The use of several synonymous area addresses by an IS is accommodated through the use of the management parameter manual
Area
Addresses. This parameter is set locally for each level 1 IS by system management; it contains a list of all synonymous area addresses associated with the IS, including the IS's area address as contained in its own NET. Each level 1 IS distributes its manual
Area
Addresses in its Level 1 LSP's Area Addresses field, thus allowing level 2 ISs to create a composite list of all area addresses supported within a given area. Level 2 ISs in turn advertise the composite list throughout the level 2 subdomain by including it in their Level 2 LSP's Area Addresses field, thus distributing information on all the area addresses associated with the entire routeing domain. The procedures for establishing an adjacency between two level 1 ISs require that there be at least one area address in common between their two manual
Area
Addresses lists, and the procedures for establishing an adjacency between a level 1 Is and an End system require that the End system's area address must match an entry in the IS's manual
Area
Addresses list. Therefore, it is the responsibility of System Management to ensure that each area address associated with an IS is included: in particular, system management must ensure that the area addresses of all ESs and Level 1 ISs adjacent to a given level 1 IS are included in that IS's manual
Area
Addresses list. If the area address field for the destination address of an 8473 PDU or for the next entry in its source routeing field, when present is not listed in the parameter area
Addresses of a level 1 IS receiving the PDU, then the destination system does not reside in the IS's area. Such PDUs will be routed by level-2 routeing.
7.1.4. Encoding of Level 2 Addresses
When a full NSAP address is encoded according to the preferred binary encoding specified in ISO 8348/Add.2, the
IDI is padded with leading digits (if necessary) to obtain the maximum IDP length specified for that AFI. A Level 2 address prefix consists of a leading sub-string of a full NSAP address, such that it matches a set of full NSAP addresses that have the same leading sub-string. However this truncation and matching is performed on the NSAP represented by the abstract syntax of the NSAP address, not on the encoded (and hence padded) form.11An example of prefix matching may be found in annex B, clause B.1.
Level 2 address prefixes are encoded in LSPs in the same way as full NSAP addresses, except when the end of the prefix falls within the IDP. In this case the prefix is directly encoded as the string of semi-octets with no padding.
7.1.5. Comparison of Addresses
Unless otherwise stated, numerical comparison of addresses shall be performed on the encoded form of the address, by padding the shorter address with trailing zeros to the length of the longer address, and then performing a numerical comparison. The addresses to which this precedure applies include NSAP addresses, Network Entity Titles, and SNPA addresses.
7.2. The Decision Process
This process uses the database of Link State information to calculate the forwarding database(s), from which the forwarding process can know the proper next hop for each NPDU. The Level 1 Link State Database is used for calculating the Level 1 Forwarding Database(s), and the Level 2 Link State Database is used for calculating the Level 2 Forwarding Database(s).
7.2.1. Input and output
INPUT
- Link State Database This database is a set of information from the latest Link State PDUs from all known Intermediate systems (within this area, for Level 1, or within the level 2 subdomain, for Level 2). This database is received from the Update Process.
- Notification of an Event This is a signal from the Update Process that a change to a link has occurred somewhere in the domain. OUTPUT
- Level 1 Forwarding Databases one per routeing metric
- (Level 2 Intermediate systems only) Level 2 Forwarding Databases one per routeing metric
- (Level 2 Intermediate systems only) The Level 1 Decision Process informs the Level 2 Update Process of the ID of the Level 2 Intermediate system within the area with lowest ID reachable with real level 1 links (as opposed to a virtual link consisting of a path through the level 2 subdomain)
- (Level 2 Intermediate systems only) If this Intermediate system is the Partition Designated Level 2 Intermediate system in this partition, the Level 2 Decision Process informs the Level 1 Update Process of the values of the default routeing metric to and ID of the partition designated level 2 Intermediate system in each other partition of this area.
7.2.2. Routeing metrics
There are four routeing metrics defined, corresponding to the four possible orthogonal qualities of service defined by the QoS Maintenance field of ISO 8473. Each circuit emanating from an Intermediate system shall be assigned a value for one or more of these metrics by System management. The four metrics are as follows:
- Default metric: This is a metric understood by every Intermediate system in the domain. Each circuit shall have a positive integral value assigned for this metric. The value may be associated with any objective function of the circuit, but by convention is intended to measure the capacity of the circuit for handling traffic, for example, its throughput in bits-per-second. Higher values indicate a lower capacity.
- Delay metric: This metric measures the transit delay of the associated circuit. It is an optional metric, which if assigned to a circuit shall have a positive integral value. Higher values indicate a longer transit delay.
- Expense metric: This metric measures the monetary cost of utilising the associated circuit. It is an optional metric, which if assigned to a circuit shall have a positive integral value22The path computation algorithm utilised in this International Standard requires that all circuits be assigned a positive value for a metric. Therefore, it is not possible to represent a free circuit by a zero value of the expense metric. By convention, the value 1 is used to indicate a free circuit. . Higher values indicate a larger monetary expense.
- Error metric: This metric measures the residual error probability of the associated circuit. It is an optional metric, which if assigned to a circuit shall have a non-zero value. Higher values indicate a larger probability of undetected errors on the circuit. NOTE - The decision process combines metric values by simple addition. It is important, therefore, that the values of the metrics be chosen accordingly. Every Intermediate system shall be capable of calculating routes based on the default metric. Support of any or all of the other metrics is optional. If an Intermediate system supports the calculation of routes based on a metric, its update process may report the metric value in the LSPs for the associated circuit; otherwise, the IS shall not report the metric. When calculating paths for one of the optional routeing metrics, the decision process only utilises LSPs with a value reported for the corresponding metric. If no value is associated with a metric for any of the IS's circuits the system shall not calculate routes based on that metric. NOTE - A consequence of the above is that a system reachable via the default metric may not be reachable by another metric. See 7.4.2 for a description of how the forwarding process selects one of these metrics based on the contents of the ISO 8473 QoS Maintenance option. Each of the four metrics described above may be of two types: an Internal metric or an External metric. Internal metrics are used to describe links/routes to destinations internal to the routeing domain. External metrics are used to describe links/routes to destinations outside of the routeing domain. These two types of metrics are not directly comparable, except the internal routes are always preferred over external routes. In other words an internal route will always be selected even if an external route with lower total cost exists.
7.2.3. Broadcast Subnetworks
Instead of treating a broadcast subnetwork as a fully connected topology, the broadcast subnetwork is treated as a pseudonode, with links to each attached system. Attached systems shall only report their link to the pseudonode. The designated Intermediate system, on behalf of the pseudonode, shall construct Link State PDUs reporting the links to all the systems on the broadcast subnetwork with a zero value for each supported routeing metric33They are set to zero metric values since they have already been assigned metrics by the link to the pseudonode. Assigning a non-zero value in the pseudonode LSP would have the effect of doubling the actual value. . The pseudonode shall be identified by the sourceID of the Designated Intermediate system, followed by a non-zero pseudonodeID assigned by the Designated Intermediate system. The pseudonodeID is locally unique to the Designated Intermediate system. Designated Intermediate systems are determined separately for level 1 and level 2. They are known as the LAN Level 1 Designated IS and the LAN Level 2 Designated IS respectively. See 8.4.4. An Intermediate system may resign as Designated Intermediate System on a broadcast circuit either because it (or it's SNPA on the broadcast subnetwork) is being shut down or because some other Intermediate system of higher priority has taken over that function. When an Intermediate system resigns as Designated Intermediate System, it shall initiate a network wide purge of its pseudonode Link State PDU(s) by setting their Remaining Lifetime to zero and performing the actions described in 7.3.16.4. A LAN Level 1 Designated Intermediate System purges Level 1 Link State PDUs and a LAN Level 2 Designated Intermediate System purges Level 2 Link State PDUs. An Intermediate system which has resigned as both Level 1 and Level 2 Designated Intermediate System shall purge both sets of LSPs.
When an Intermediate system declares itself as designated Intermediate system and it is in possession of a Link State PDU of the same level issued by the previous Designated Intermediate System for that circuit (if any), it shall initiate a network wide purge of that (or those) Link State PDU(s) as above.
7.2.4. Links
Two Intermediate systems are not considered neighbours unless each reports the other as directly reachable over one of their SNPAs. On a Connection-oriented subnetwork (either point-to-point or general topology), the two Intermediate systems in question shall ascertain their neighbour relationship when a connection is established and hello PDUs exchanged. A malfunctioning IS might, however, report another IS to be a neighbour when in fact it is not. To detect this class of failure the decision process checks that each link reported as up in a LSP is so reported by both Intermediate systems. If an Intermediate system considers a link down it shall not mention the link in its Link State PDUs. On broadcast subnetworks, this class of failure shall be detected by the designated IS, which has the responsibility to ascertain the set of Intermediate systems that can all communicate on the subnetwork. The designated IS shall include these Intermediate systems (and no others) in the Link State PDU it generates for the pseudonode representing the broadcast subnetwork.
7.2.5. Multiple LSPs for the same system
The Update process is capable of dividing a single logical LSP into a number of separate PDUs for the purpose of conserving link bandwidth and processing (see 7.3.4). The Decision Process, on the other hand, shall regard the LSP with LSP Number zero in a special way. If the LSP with LSP Number zero and remaining lifetime > 0, is not present for a particular system then the Decision Process shall not process any LSPs with non-zero LSP Number which may be stored for that system. The following information shall be taken only from the LSP with LSP Number zero. Any values which may be present in other LSPs for that system shall be disregarded by the Decision Process.
- The setting of the LSP Database Overload bit.
- The value of the IS Type field.
- The Area Addresses option.
7.2.6. Routeing Algorithm Overview
The routeing algorithm used by the Decision Process is a shortest path first (SPF) algorithm. Instances of the algorithm are run independently and concurrently by all Intermediate systems in a routeing domain. Intra-Domain routeing of a PDU occurs on a hop-by-hop basis: that is, the algorithm determines only the next hop, not the complete path, that a data PDU will take to reach its destination. To guarantee correct and consistent route computation by every Intermediate system in a routeing domain, this International Standard depends on the following properties:
- All Intermediate systems in the routeing domain converge to using identical topology information; and
- Each Intermediate system in the routeing domain generates the same set of routes from the same input topology and set of metrics.
The first property is necessary in order to prevent inconsistent, potentially looping paths. The second property is necessary to meet the goal of determinism stated in 6.6. A system executes the SPF algorithm to find a set of legal paths to a destination system in the routeing domain. The set may consist of:
- a single path of minimum metric sum: these are termed minimum cost paths;
- a set of paths of equal minimum metric sum: these are termed equal minimum cost paths; or
- a set of paths which will get a PDU closer to its destination than the local system: these are called downstream paths.
Paths which do not meet the above conditions are illegal and shall not be used. The Decision Process, in determining its paths, also ascertains the identity of the adjacency which lies on the first hop to the destination on each path. These adjacencies are used to form the Forwarding Database, which the forwarding process uses for relaying PDUs. Separate route calculations are made for each pairing of a level in the routeing hierarchy (i.e. L1 and L2) with a supported routeing metric. Since there are four routeing metrics and two levels some systems may execute multiple instances of the SPF algorithm. For example,
- if an IS is a L2 Intermediate system which supports all four metrics and computes minimum cost paths for all metrics, it would execute the SPF calculation eight times.
- if an IS is a L1 Intermediate system which supports all four metrics, and additionally computes downstream paths, it would execute the algorithm 4 W (number of neighbours + 1) times.
Any implementation of an SPF algorithm meeting both the static and dynamic conformance requirements of clause 12 of this International Standard may be used. Recommended implementations are described in detail in Annex C.
7.2.7. Removal of Excess Paths
When there are more than max
i
mum
Path
Splits legal paths to a destination, this set shall be pruned until only max
i
mum
Path
Splits remain. The Intermediate system shall discriminate based upon: NOTE - The precise precedence among the paths is specified in order to meet the goal of determinism defined in 6.6.
- adjacency type: Paths associated with End system or level 2 reachable address prefix adjacencies are retained in preference to other adjacencies
- metric sum: Paths having a lesser metric sum are retained in preference to paths having a greater metric sum. By metric sum is understood the sum of the metrics along the path to the destination.
- neighbour ID: where two or more paths are associated with adjacencies of the same type, an adjacency with a lower neighbour ID is retained in preference to an adjacency with a higher neighbour id.
- circuit ID: where two or more paths are associated with adjacencies of the same type, and same neighbour ID, an adjacency with a lower circuit ID is retained in preference to an adjacency with a higher circuit ID, where circuit ID is the value of:
7ptPtCircuitID for non-broadcast circuits,
7l1CircuitID for broadcast circuits when running
the Level 1 Decision Process, and
7l2CircuitID for broadcast circuits when running
the Level 2 Decision Process.
- lANAddress: where two or more adjacencies are of the same type, same neighbour ID, and same circuit ID (e.g. a system with multiple LAN adapters on the same circuit) an adjacency with a lower lANAddress is retained in preference to an adjacency with a higher lANAddress.
7.2.8. Robustness Checks
7.2.8.1. Computing Routes through Overloaded Intermediate systems
The Decision Process shall not utilise a link to an Intermediate system neighbour from an IS whose LSPs have the LSP Database Overload indication set. Such paths may introduce loops since the overloaded IS does not have a complete routeing information base. The Decision Process shall, however utilise the link to reach End system neighbours since these paths are guaranteed to be non-looping.
7.2.8.2. Two-way connectivity check
The Decision Process shall not utilise a link between two Intermediate Systems unless both ISs report the link. NOTE - the check is not applicable to links to an End System. Reporting the link indicates that it has a defined value for at least the default routeing metric. It is permissible for two endpoints to report different defined values of the same metric for the same link. In this case, routes may be asymmetric.
7.2.9. Construction of a Forwarding Database
The information that is needed in the forwarding database for routeing metric k is the set of adjacencies for each system N.
7.2.9.1. Identification of Nearest Level 2 IS by a Level 1 IS
Level 1 Intermediate systems need one additional piece of information per routeing metric: the next hop to the nearest level 2 Intermediate system according to that routeing metric. A level 1 IS shall ascertain the set, R, of attached level 2 Intermediate system(s) for metric k such that the total cost to R for metric k is minimal. If there are more adjacencies in this set than max
i
mum
Path
Splits, then the IS shall remove excess adjacencies as described in 7.2.7.
7.2.9.2. Setting the Attached Flag in Level 2 Intermediate Systems
If a level 2 Intermediate system discovers, after computing the level 2 routes for metric k, that it cannot reach any other areas using that metric, it shall:
- set AttachedFlag for metric k to False;
- regenerate its Level 1 LSP with LSP number zero; and
- compute the nearest level 2 Intermediate system for metric k for insertion in the appropriate forwarding database, according to the algorithm described in 7.2.9.1 for level 1 Intermediate systems.
NOTE - AttachedFlag for each metric k is examined by the Update Process, so that it will report the value in the ATT field of its Link State PDUs. If a level 2 Intermediate system discovers, after computing the level 2 routes for metric k, that it can reach at least one other area using that metric, it shall
- set AttachedFlag for metric k to True;
- regenerate its Level 1 LSP with LSP number zero; and
- set the level 1 forwarding database entry for metric k which corresponds to nearest level 2 Intermediate system to Self.
7.2.10. Information for Repairing Partitioned Areas
An area may become partitioned as a result of failure of one or more links in the area. However, if each of the partitions has a connection to the level 2 subdomain, it is possible to repair the partition via the level 2 subdomain, provided that the level 2 subdomain itself is not partitioned. This is illustrated in Figure 4. All the systems A I, R and P are in the same area n. When the link between D and E is broken, the area be comes partitioned. Within each of the partitions the Partition Designated Level 2 Intermediate system is selected from among the level 2 Intermediate systems in that partition. In the case of partition 1 this is P, and in the case of partition 2 this is R. The level 1 repair path is then established between between these two level 2 Intermediate systems. Note that the repaired link is now between P and R, not between D and E.
The Partition Designated Level 2 Intermediate Systems repair the partition by forwarding NPDUs destined for other partitions of the area through the level 2 subdomain. They do this by acting in their capacity as Level 1 Intermediate Systems and advertising in their Level 1 LSPs adjacencies to each Partition Designated Level 2 Intermediate System in the area. This adjacency is known as a Virtual Adjacency or Virtual Link. Thus other Level 1 Intermediate Systems in a partition calculate paths to the other partitions through the Partition Designated Level 2 Intermediate System. A Partition Designated Level 2 Intermediate System forwards the Level 1 NPDUs through the level 2 subdomain by encapsulating them in 8473 Data NPDUs with its Virtual Network Entity Title as the source NSAP and the adjacent Partition Designated Level 2 Intermediate System's Virtual Network Entity Title as the destination NSAP. The following sub-clauses describe this in more detail.
7.2.10.1. Partition Detection and Virtual Level 1 Link Creation
Partitions of a Level 1 area are detected by the Level 2 Intermediate System(s) operating within the area. In order to participate in the partition repair process, these Level 2 Intermediate systems must also act as Level 1 Intermediate systems in the area. A partition of a given area exists whenever two or more Level 2 ISs located in that area are reported in the L2 LSPs as being a Partition Designated Level 2 IS. Conversely, when only one Level 2 IS in an area is reported as being the Partition Designated Level 2 IS, then that area is not partitioned. Partition repair is accomplished by the Partition Designated Level 2 IS. The election of the Partition Designated Level 2 IS as described in the next subsection must be done before the detection and repair process can begin.
In order to repair a partition of a Level 1 area, the Partition designated Level 2 IS creates a Virtual Network Entity to represent the partition. The Network Entity Title for this virtual network entity shall be constructed from the first listed area address from its Level 2 Link State PDU, and the ID of the Partition Designated Level 2 IS. The IS shall also construct a virtual link (represented by a new Virtual Adjacency managed object) to each Partition Designated Level 2 IS in the area, with the NET of the partition recorded in the Identifier attribute. The virtual links are the repair paths for the partition. They are reported by the Partition Designated Level 2 IS into the entire Level 1 area by adding the ID of each adjacent Partition Designated Level 2 IS to the Intermediate System Neighbours field of its Level 1 Link State PDU. The Virtual Flag shall be set True for these Intermediate System neighbours. The metric value for this virtual link shall be the default metric value d(N) obtained from this system's Level 2 PATHS database, where N is the adjacent Partition Designated Level 2 IS via the Level 2 subdomain.
An Intermediate System which operates as the Partition Designated Level 2 Intermediate System shall perform the following steps after completing the Level 2 shortest path computation in order to detect partitions in the Level 1 area and create repair paths:
- Examine Level 2 Link State PDUs of all Level 2 Intermediate systems. Search area Addresses for any address that matches any of the addresses in partition Area Addresses. If a match is found, and the Partition Designated Level 2 Intermediate system's ID does not equal this system's ID, then inform the level 1 update process at this system of the identity of the Partition Designated Level 2 Intermediate system, together with the path cost for the default routeing metric to that Intermediate system.
- Continue examining Level 2 LSPs until all Partition Designated Level 2 Intermediate systems in other partitions of this area are found, and inform the Level 1 Update Process of all of the other Partition Designated Level 2 Intermediate systems in other partitions of this area, so that
- Level 1 Link State PDUs can be propagated to all other Partition designated level 2 Intermediate systems for this area (via the level 2 subdomain).
- All the Partition Designated Level 2 Intermediate systems for other partitions of this area can be reported as adjacencies in this system's Level 1 Link State PDUs.
If a partition has healed, the IS shall destroy the associated virtual network entity and virtual link by deleting the Virtual Adjacency. The Partition Designated Level 2 IS detects a healed partition when another Partition Designated Level 2 IS listed as a virtual link in its Level 1 Link State PDU was not found after running the partition detection and virtual link creation algorithm described above.
If such a Virtual Adjacency is created or destroyed, the IS shall generate a partitionVirtualLinkChange notification.
7.2.10.2. Election of Partition Designated Level 2 Intermediate System
The Partition Designated Level 2 IS is a Level 2 IS which:
- reports itself as attached by the default metric in its LSPs;
- reports itself as implementing the partition repair option;
- operates as a Level 1 IS in the area;
- is reachable via Level 1 routeing without traversing any virtual links; and
- has the lowest ID
The election of the Partition Designated Level 2 IS is performed by running the decision process algorithm after the Level 1 decision process has finished, and before the Level 2 decision process to determine Level 2 paths is executed.
In order to guarantee that the correct Partition Designated Level 2 IS is elected, the decision process is run using only the Level 1 LSPs for the area, and by examining only the Intermediate System Neighbours whose Virtual Flag is FALSE. The results of this decision process is a set of all the Level 1 Intermediate Systems in the area that can be reached via Level 1, non-virtual link routeing. From this set, the Partition Designated Level 2 IS is selected by choosing the IS for which
- IS Type (as reported in the Level 1 LSP) is Level 2 Intermediate System;
- ATT indicates attached by the default metric;
- P indicates support for the partition repair option; and
- ID is the lowest among the subset of attached Level 2 Intermediate Systems.
7.2.10.3. Computation of Partition area addresses
A Level 2 Intermediate System shall compute the set of partition Area Addresses, which is the union of all manual area Addresses as reported in the Level 1 Link State PDUs of all Level 2 Intermediate systems reachable in the partition by the traversal of non-virtual links. If more than maximum Area Addresses are present, the Intermediate system shall retain only those areas with numerically lowest area address (as described in 7.1.5). If one of the local system's manual Area Addresses is so rejected the notification manualAddressDroppedFromArea shall be generated.
7.2.10.4. Encapsulation of NPDUs Across the Virtual Link
All NPDUs sent over virtual links shall be encapsulated as ISO 8473 Data NPDUs. The encapsulating Data NPDU shall contain the Virtual Network Entity Title of the Partition Designated Level 2 IS that is forwarding the NPDU over the virtual link in the Source Address field, and the Virtual NET of the adjacent Partition Designated Level 2 IS in the Destination Address field. The SEL field in both NSAPs shall contain the IS-IS routeing selector value. The QoS Maintenance field of the outer PDU shall be set to indicate forwarding via the default routeing metric (see table 1 on page 32).
For Data and Error Report NPDUs the Segmentation Permitted and Error Report flags and the Lifetime field of the outer NPDU shall be copied from the inner NPDU. When the inner NPDU is decapsulated, its Lifetime field shall be set to the value of the Lifetime field in the outer NPDU.
For LSPs and SNPs the Segmentation Permitted flag shall be set to True and the Error Report flag shall be set to False. The Lifetime field shall be set to 255. When an inner LSP is decapsulated, its remaining lifetime shall be decremented by half the difference between 255 and the value of the Lifetime field in the outer NPDU.
Data NPDUs shall not be fragmented before encapsulation, unless the total length of the Data NPDU (including header) exceeds 65535 octets. In that case, the original Data NPDU shall first be fragmented, then encapsulated. In all cases, the encapsulated Data NPDU may need to be fragmented by ISO 8473 before transmission in which case it must be reassembled and decapsulated by the destination Partition Designated Level 2 IS. The encapsulation is further described as part of the forwarding process in 7.4.3.2. The decapsulation is described as part of the Receive process in 7.4.4.
7.2.11. Computation of area addresses
A Level 1 or Level 2 Intermediate System shall compute the values of area Addresses (the set of area addresses for this Level 1 area), by forming the union of the sets of manual area Addresses reported in the Area Addresses field of all Level 1 LSPs with LSP number zero in the local Intermediate system's link state database.
NOTE - This includes all source systems, whether currently reachable or not. It also includes the local Intermediate system's own Level 1 LSP with LSP number zero.
NOTE - There is no requirement for this set to be updated immediately on each change to the database contents. It is permitted to defer the computation until the next running of the Decision Process.
If more than maximum Area Addresses are present, the Intermediate system shall retain only those areas with numerically lowest area address (as described in 7.1.5). If one of the local system's manual area Addresses is rejected the notification manual Address Dropped From Area shall be generated.
7.2.12. Order of Preference of Routes
If an Intermediate system takes part in level 1 routeing, and determines (by looking at the area address) that a given destination is reachable within its area, then that destination will be reached exclusively by use of level 1 routeing. In particular:
- Level 1 routeing is always based on internal metrics.
- Amongst routes in the area, routes on which the requested QoS (if any) is supported are always preferred to routes on which the requested QoS is not supported.
- Amongst routes in the area of the same QoS, the shortest routes are preferred. For determination of the shortest path, if a route with specific QoS support is available, then the specified QoS metric is used, otherwise the default metric is used.
- Amongst routes of equal cost, load splitting may be performed.
If an Intermediate system takes part in level 1 routeing, does not take part in level 2 routeing, and determines (by looking at the area address) that a given destination is not reachable within its area, and at least one attached level 2 IS is reachable in the area, then that destination will be reached by routeing to a level 2 Intermediate system as follows:
-
Level 1 routeing is always based on internal metrics.
-
Amongst routes in the area to attached level 2 ISs, routes on which the requested QoS (if any) is supported are always preferred to routes on which the requested QoS is not supported.
-
Amongst routes in the area of the same QoS to attached level 2 ISs, the shortest route is preferred. For determination of the shortest path, if a route on which the specified QoS is available, then the specified QoS metric is used, otherwise the default metric is used. d) Amongst routes of equal cost, load splitting may be performed. If an Intermediate system takes part in level 2 routeing and is attached, and the IS determines (by looking at the area address) that a given destination is not reachable within its area, then that destination will be reached as follows:
-
Routes on which the requested QoS (if any) is supported are always preferred to routes on which the requested QoS is not supported.
-
Amongst routes of the same QoS, routes are prioritised as follows:
- Highest precedence: routes matching the area address of any area in the routeing domain
- Medium precedence: Routes matching a reachable address prefix with an internal metric. For destinations matching multiple reachable address prefix entries all with internal metrics, the longest prefix shall be preferred.
- Lowest precedence: Routes matching a reachable address prefix with an external metric. For destinations matching multiple reachable address prefix entries all with external metrics, the longest prefix shall be preferred.
-
For routes with equal precedence as specified above, the shortest path shall be preferred. For determination of the shortest path, a route supporting the specified QoS is used if available; otherwise a route using the default metric shall be used. Amongst routes of equal cost, load splitting may be performed.
7.3. The Update Process
The Update Process is responsible for generating and propagating Link State information reliably throughout the routeing domain.
The Link State information is used by the Decision Process to calculate routes.
7.3.1. Input and Output
INPUT
- Adjacency Database: maintained by the Subnetwork Dependent Functions
- Reachable Address managed objects: maintained by System Management
- Notification of Adjacency Database Change: notification by the Subnetwork Dependent Functions that an adjacency has come up, gone down, or changed cost. (Circuit up, Circuit down, Adjacency Up, Adjacency Down, and Cost change events)
- AttachedFlag: (level 2 Intermediate systems only), a flag computed by the Level 2 Decision Process indicating whether this system can reach (via level 2 routeing) other areas
- Link State PDUs: The Receive Process passes Link State PDUs to the Update Process, along with an indication of which adjacency it was received on.
- Sequence Numbers PDUs: The Receive Process passes Sequence Numbers PDUs to the Update Process, along with an indication of which adjacency it was received on.
- Other Partitions: The Level 2 Decision Process makes available (to the Level 1 Update Process on a Level 2 Intermediate system) a list of aPartition Designated Level 2 Intermediate system, Level 2 default metric valueq pairs, for other partitions of this area.
OUTPUT
- Link State Database
- Signal to the Decision Process of an event, which is either the receipt of a Link State PDU with different information from the stored one, or the purging of a Link State PDU from the database. The reception of a Link State PDU which has a different sequence number or Remaining Lifetime from one already stored in the database, but has an identical variable length portion, shall not cause such an event.
NOTE - An implementation may compare the checksum of the stored Link State PDU, modified according to the change in sequence number, with the checksum of the received Link State PDU. If they differ, it may assume that the variable length portions are different and an event signalled to the Decision Process. However, if the checksums are the same, an octet for octet comparison must be made in order to determine whether or not to signal the event.
7.3.2. Generation of Local Link State Information
The Update Process is responsible for constructing a set of Link State PDUs. The purpose of these Link State PDUs is to inform all the other Intermediate systems (in the area, in the case of Level 1, or in the Level 2 subdomain, in the case of Level 2), of the state of the links between the Intermediate system that generated the PDUs and its neighbours.
The Update Process in an Intermediate system shall generate one or more new Link State PDUs under the following circumstances:
- upon timer expiration;
- when notified by the Subnetwork Dependent Functions of an Adjacency Database Change;
- when a change to some Network Management characteristic would cause the information in the LSP to change (for example, a change in manual
area
Addresses).
7.3.3. Use of Manual Routeing Information
Manual routeing information is routeing information entered by system management. It may be specified in two forms.
- Manual Adjacencies
- Reachable Addresses
These are described in the following sub-clauses.
7.3.3.1. Manual Adjacencies
An End system adjacency may be created by System Management. Such an adjacency is termed a manual End system adjacency. In order to create a manual End system adjacency, system managements shall specify:
- the (set of) system IDs reachable over that adjacency; and
- the corresponding SNPA Address.
These adjacencies shall appear as adjacencies with type Manual, neighbourSystemType End system and state Up. Such adjacencies provide input to the Update Process in a similar way to adjacencies created through the operation of ISO 9542. When the state changes to Up the adjacency information is included in the Intermediate System's own Level 1 LSPs.
NOTE - Manual End system adjacencies shall not be included in a Level 1 LSPs issued on behalf of a pseudonode, since that would presuppose that all Intermediate systems on a broadcast subnetwork had the same set of manual adjacencies as defined for this circuit.
Metrics assigned to Manual adjacencies must be Internal metrics.
7.3.3.2. Reachable Addresses
A Level 2 Intermediate system may have a number of Reachable Address managed objects created by System management. When a Reachable Address is in state On and its parent Circuit is also in state On, the name and each of its defined routeing metrics shall be included in Level 2 LSPs generated by this system.
Metrics assigned to Reachable Address managed objects may be either Internal or External.
A reachable address is considered to be active when all the following conditions are true:
- The parent circuit is in state On;
- the Reachable Address is in state On; and
- the parent circuit is of type broadcast or is in data link state Running.
Whenever a reachable address changes from being inactive to active a signal shall be generated to the Update process to cause it to include the Address Prefix of the reachable address in the Level 2 LSPs generated by that system as described in 7.3.9.
Whenever a reachable address changes from being active to inactive, a signal shall be generated to the Update process to cause it to cease including the Address Prefix of the reachable address in the Level 2 LSPs.
7.3.4. Multiple LSPs
Because a Link State PDU is limited in size to Receive
LSP
Buffer
Size, it may not be possible to include information about all of a system's neighbours in a single LSP. In such cases, a system may use multiple LSPs to convey this information. Each LSP in the set carries the same sourceID field (see clause 9), but sets its own LSP Number field individually. Each of the several LSPs is handled independently by the Update Process, thus allowing distribution of topology updates to be pipelined. However, the Decision Process recognises that they all pertain to a common originating system because they all use the same sourceID.
NOTE - Even if the amount of information is small enough to fit in a single LSP, a system may optionally choose to use several LSPs to convey it; use of a single LSP in this situation is not mandatory.
NOTE - In order to minimise the transmission of redundant information, it is advisable for an IS to group Reachable Address Prefix information by the circuit with which it is associated. Doing so will ensure that the minimum number of LSP fragments need be transmitted if a circuit to another routeing domain changes state.
The maximum sized Level 1 or Level 2 LSP which may be generated by a system is controlled by the values of the management parameters originating
L1
LSP
Buffer
Size or ori
ginat
ing
L2
LSP
Buffer
Size respectively.
NOTE - These parameters should be set consistently by system management. If this is not done, some adjacencies will fail to initialise.
The IS shall treat the LSP with LSP Number zero in a special way, as follows:
- The following fields are meaningful to the decision process only when they are present in the LSP with LSP Number zero:
- The setting of the LSP Database Overload bit.
- The value of the IS Type field.
- The Area Addresses option. (This is only present in the LSP with LSP Number zero, see below).
- When the values of any of the above items are changed, an Intermediate System shall re-issue the LSP with LSP Number zero, to inform other Intermediate Systems of the change. Other LSPs need not be reissued.
Once a particular adjacency has been assigned to a particular LSP Number, it is desirable that it not be moved to another LSP Number. This is because moving an adjacency from one LSP to another can cause temporary loss of connectivity to that system. This can occur if the new version of the LSP which originally contained information about the adjacency (which now does not contain that information) is propagated before the new version of the other LSP (which now contains the information about the adjacency). In order to minimise the impact of this, the following restrictions are placed on the assignment of information to LSPs.
- The Area Addresses option field shall occur only in the LSP with LSP Number zero.
- Intermediate System Neighbours options shall occur after the Area Addresses option and before any End System (or in the case of Level 2, Prefix) Neighbours options.
- End System (or Prefix) Neighbour options (if any) shall occur after any Area Address or Intermediate System Neighbour options.
NOTE In this context, after means at a higher octet number from the start of the same LSP or in an LSP with a higher LSP Number.
NOTE An implementation is recommended to ensure that the number of LSPs generated for a particular system is within approximately 10% of the optimal number which would be required if all LSPs were densely packed with neighbour options. Where possible this should be accomplished by re-using space in LSPs with a lower LSP Number for new adjacencies. If it is necessary to move an adjacency from one LSP to another, the SRMflags (see 7.3.15) for the two new LSPs shall be set as an atomic action.44If the two SRMflags are not set atomically, a race condition will exist in which one of the two LSPs may be propagated quickly, while the other waits for an entire propagation cycle. If this occurs, adjacencies will be falsely eliminated from the topology and routes may become unstable for period of time potentially as large as maximumLSPGeneratonInterval.
When some event requires changing the LSP information for a system, the system shall reissue that (or those) LSPs which would have different contents. It is not required to reissue the unchanged LSPs. Thus a single End system adjacency change only requires the reissuing of the LSP containing the End System Neighbours option referring to that adjacency. The parameters max
imum
LSP
Gen
er
a
tion
Int
er val and minimumLSPGenerationInterval shall apply to each LSP individually.
7.3.5. Periodic LSP Generation
The Update Process shall periodically re-generate and propagate on every circuit with an IS adjacency of the appropriate level (by setting SRMflag on each circuit), all the LSPs (Level 1 and/or Level 2) for the local system and any pseudonodes for which it is responsible. The Intermediate system shall re-generate each LSP at intervals of at most maximumLSPGenerationInterval seconds, with jitter applied as described in 10.1.
These LSPs may all be generated on expiration of a single timer or alternatively separate timers may be kept for each LSP Number and the individual LSP generated on expiration of this timer.
7.3.6. Event Driven LSP Generation
In addition to the periodic generation of LSPs, an Intermediate system shall generate an LSP when an event occurs which would cause the information content to change. The following events may cause such a change.
- an Adjacency or Circuit Up/Down event
- a change in Circuit metric
- a change in Reachable Address metric
- a change in manual Area Addresses
- a change in systemID
- a change in Designated Intermediate System status
- a change in the waiting status
When such an event occurs the IS shall re-generate changed LSP(s) with a new sequence number. If the event necessitated the generation of an LSP which had not previously been generated (for example, an adjacency Up event for an adjacency which could not be accommodated in an existing LSP), the sequence number shall be set to one. The IS shall then propagate the LSP(s) on every circuit by setting SRMflag for each circuit. The timer maximumLSPGenerationInterval shall not be reset.
There is a hold-down timer (minimumLSPGenerationInterval) on the generation of each individual LSP.
7.3.7. Generation of Level 1 LSPs (non-pseudonode)
The Level 1 Link State PDU not generated on behalf of a pseudonode contains the following information in its variable length fields.
- In the Area Addresses option the set of manual Area Addresses for this Intermediate System.
- In the Intermediate System Neighbours option the set of Intermediate system IDs of neighbouring Intermediate systems formed from:
- The set of neighbourSystemIDs with an appended zero octet (indicating non-pseudonode) from adjacencies in the state Up, on circuits of type Point-Point, In or Out, with
- neighbourSystemType L1 Intermediate System
- neighbourSystemType L2 Intermediate System and adjacencyUsage Level 2 or Level1 and 2.
- The metrics shall be set to the values of Level 1 metrick of the circuit for each supported routeing metric.
- The set of l1CircuitIDs for all circuits of type Broadcast (i.e. the neighbouring pseudonode IDs) .
- The set of neighbourSystemIDs with an appended zero octet (indicating non-pseudonode) from adjacencies in the state Up, on circuits of type Point-Point, In or Out, with
The metrics shall be set to the values of Level 1 metrick of the circuit for each supported routeing metric.
- The set of IDs with an appended zero octet derived from the Network Entity Titles of all Virtual Adjacencies of this IS. (Note that the Virtual Flag is set when encoding these entries in the LSP see 7.2.10.)
The default metric shall be set to the total cost to the virtual NET for the default routeing metric. The remaining metrics shall be set to the value indicating unsupported.
- In the End System Neighbours option the set of IDs of neighbouring End systems formed from:
- The systemID of the Intermediate System itself, with a value of zero for all supported metrics.
- The set of endSystemIDs from all adjacencies with type Auto-configured, in state Up, on circuits of type Point-to-Point, In or Out, with neighbourSystemType End system.
The metrics shall be set to the values of Level 1 metrick of the circuit for each supported routeing metric.
- The set of endSystemIDs from all adjacencies with type Manual in state Up, on all circuits.
The metrics shall be set to the values of Level 1 metrick of the circuit for each supported routeing metric.
- In the Authentication Information field if the system's areaTransmitPassword is non-null, include the Authentication Information field containing an Authentication Type of Password, and the value of the areaTransmitPassword.
7.3.8. Generation of Level 1 Pseudonode LSPs
An IS shall generate a Level 1 pseudonode Link State PDU for each circuit for which this Intermediate System is the Level 1 LAN Designated Intermediate System. The LSP shall specify the following information in its variable length fields. In all cases a value of zero shall be used for all supported routeing metrics
- The Area Addresses option is not present.
Note - This information is not required since the set of area addresses for the node issuing the pseudonode LSP will already have been made available via its own non-pseudonode LSP.
- In the Intermediate System Neighbours option the set of Intermediate System IDs of neighbouring Intermediate Systems on the circuit for which this pseudonode LSP is being generated formed from:
-
The Designated Intermediate System's own systemID with an appended zero octet (indicating non-pseudonode).
-
The set of neighbourSystemIDs with an appended zero octet (indicating non-pseudonode) from adjacencies on this circuit in the state Up, with
- neighbourSystemType L1 Intermediate System
- L2 Intermediate System and adjacency Usage Level 1.
-
- In the End System Neighbours option the set of IDs of neighbouring End systems formed from:
- The set of endSystemIDs from all adjacencies with type Auto-configured, in state Up, on the circuit for which this pseudonode is being generated, with neighbourSystemType End system.
- In the Authentication Information field if the system's areaTransmitPassword is non-null, include the Authentication Information field containing an Authentication Type of Password, and the value of the areaTransmitPassword.
7.3.9. Generation of Level 2 LSPs (non-pseudonode)
The Level 2 Link State PDU not generated on behalf of a pseudonode contains the following information in its variable length fields:
- In the Area Addresses option the set of area Addresses for this Intermediate system computed as described in 7.2.11.
- In the Partition Designated Level 2 IS option the ID of the Partition Designated Level 2 Intermediate System for the partition.
- In the Intermediate System Neighbours option the set of Intermediate system IDs of neighbouring Intermediate systems formed from:
- The set of neighbourSystemIDs with an appended zero octet (indicating non-pseudonode) from adjacencies in the state Up, on circuits of type Point-to-Point, In or Out, with neighbourSystemType L2 Intermediate System.
- The set of l2CircuitIDs for all circuits of type Broadcast. (i.e. the neighbouring pseudonode IDs)
The metric and metric type shall be set to the values of Level 2 metrick of the circuit for each supported routeing metric.
- In the Prefix Neighbours option the set of variable length prefixes formed from:
- The set of names of all Reachable Address managed objects in state On, on all circuits in state On.
The metrics shall be set to the values of Level 2 metrick for the reachable address.
- In the Authentication Information field if the system's domainTransmitPassword is non-null, include the Authentication Information field containing an Authentication Type of Password, and the value of the domainTransmitPassword.
7.3.10. Generation of Level 2 Pseudonode LSPs
A Level 2 pseudonode Link State PDU is generated for each circuit for which this Intermediate System is the Level 2 LAN Designated Intermediate System and contains the following information in its variable length fields. In all cases a value of zero shall be used for all supported routeing metrics.
- The Area Addresses option is not present.
Note - This information is not required since the set of area addresses for the node issuing the pseudonode LSP will already have been made available via its own non-pseudonode LSP.
- In the Intermediate System Neighbours option the set of Intermediate System IDs of neighbouring Intermediate Systems on the circuit for which this pseudonode LSP is being generated formed from:
- The Designated Intermediate System's own systemID with an appended zero octet (indicating non-pseudonode).
- The set of neighbourSystemIDs with an appended zero octet (indicating non-pseudonode) from adjacencies on this circuit in the state Up with neighbourSystemType L2 Intermediate System.
- The Prefix Neighbours option is not present.
- In the Authentication Information field if the system's domainTransmitPassword is non-null, include the Authentication Information field containing an Authentication Type of Password, and the value of the domainTransmitPassword.
7.3.11. Generation of the Checksum
This International Standard makes use of the checksum function defined in ISO 8473.
The source IS shall compute the LSP Checksum when the LSP is generated. The checksum shall never be modified by any other system. The checksum allows the detection of memory corruptions and thus prevents both the use of incorrect routeing information and its further propagation by the Update Process.
The checksum shall be computed over all fields in the LSP which appear after the Remaining Lifetime field. This field (and those appearing before it) are excluded so that the LSP may be aged by systems without requiring re-computation. As an additional precaution against hardware failure, when the source computes the Checksum, it shall start with the two checksum variables (C0 and C1) initialised to what they would be after computing for the systemID portion (i.e. the first 6 octets) of its Source ID. (This value is computed and stored when the Network entity is enabled and whenever systemID changes.) The IS shall then resume Checksum computation on the contents of the PDU after the first ID Length octets of the Source ID field.
NOTE - All Checksum calculations on the LSP are performed treating the Source ID field as the first octet. This procedure prevents the source from accidentally sending out Link State PDUs with some other system's ID as source.
7.3.12. Initiating Transmission
The IS shall store the generated Link State PDU in the Link State Database, overwriting any previous Link State PDU with the same LSP Number generated by this system. The IS shall then set all SRMflags for that Link State PDU, indicating it is to be propagated on all circuits with Intermediate System adjacencies.
An Intermediate system shall ensure (by reserving resources, or otherwise) that it will always be able to store and internalise its own non-pseudonode zeroth LSP. In the event that it is not capable of storing and internalising one of its own LSPs it shall enter the overloaded state as described in 7.3.19.1.
NOTE - It is recommended that an Intermediate system ensure (by reserving resources, or otherwise) that it will always be able to store and internalise all its own (zero and non-zero, pseudonode and non-pseudonode) LSPs.
7.3.13. Preservation of order
When an existing Link State PDU is re-transmitted (with the same or a different sequence number), but with the same information content (i.e. the variable length part) as a result of there having been no changes in the local topology databases, the order of the information in the variable length part shall be the same as that in the previously transmitted LSP.
NOTE - If a sequence of changes result in the state of the database returning to some previous value, there is no requirement to preserve the ordering. It is only required when there have been no changes whatever. This allows the receiver to detect that there has been no change in the information content by performing an octet for octet comparison of the variable length part, and hence not re-run the decision process.
7.3.14. Propagation of LSPs
The update process is responsible for propagating Link State PDUs throughout the domain (or in the case of Level 1, throughout the area).
The basic mechanism is flooding, in which each Intermediate system propagates to all its neighbour Intermediate systems except that neighbour from which it received the PDU. Duplicates are detected and dropped.
Link state PDUs are received from the Receive Process.
The maximum size control PDU (Link State PDU or Sequence Numbers PDU) which a system expects to receive shall be Receive LSP Buffer Size octets. (i.e. the Update process must provide buffers of at least this size for the reception, storage and forwarding of received Link State PDUs and Sequence Numbers PDUs.) If a control PDU larger than this size is received, it shall be treated as if it had an invalid checksum (i.e. ignored by the Update Process and a corruptedLSPReceived notification generated).
Upon receipt of a Link State PDU the Update Process shall perform the following functions:
- Level 2 Link State PDUs shall be propagated on circuits which have at least one Level 2 adjacency.
- Level 1 Link State PDUs shall be propagated on circuits which have at least one Level 1 adjacency or at least one Level 2 adjacency not marked Level 2 only.
- When propagating a Level 1 Link State PDU on a broadcast subnetwork, the IS shall transmit to the multi-destination subnetwork address AllL1IS.
- When propagating a Level 2 Link State PDU on a broadcast subnetwork, the IS shall transmit to the multi-destination subnetwork address AllL2IS.
NOTE When propagating a Link State PDU on a general topology subnetwork the Data Link Address is unambiguous (because Link State PDUs are not propagated across Dynamically Assigned circuits).
- An Intermediate system receiving a Link State PDU with an incorrect LSP Checksum or with an invalid PDU syntax shall
- log a circuit notification, corruptedLSPReceived,
- overwrite the Checksum and Remaining Lifetime with 0, and
- treat the Link State PDU as though its Remaining Lifetime had expired (see 7.3.16.4.)
- A Intermediate system receiving a Link State PDU which is new (as identified in 7.3.16) shall
- store the Link State PDU into Link State database, and
- mark it as needing to be propagated upon all circuits except that upon which it was received.
- When a Intermediate system receives a Link State PDU from source S, which it considers older than the one stored in the database for S, it shall set the SRMflag for S's Link State PDU associated with the circuit from which the older Link State PDU was received. This indicates that the stored Link State PDU needs to be sent on the link from which the older one was received.
- When a system receives a Link State PDU which is the same (not newer or older) as the one stored, the Intermediate system shall
- acknowledge it if necessary, as described in 7.3.17, and
- clear the SRMflag for that circuit for that Link State PDU.
- A Link State PDU received with a zero checksum shall be treated as if the Remaining Lifetime were 0. The age, if not 0, shall be overwritten with 0.
The Update Process scans the Link State Database for Link State PDUs with SRMflags set. When one is found, provided the timestamp lastSent indicates that it was propagated no more recently than minimum LSP Transmission Interval, the IS shall
- transmit it on all circuits with SRMflags set, and
- update lastSent.
7.3.15. Manipulation of SRM and SSN Flags
For each Link State PDU, and for each circuit over which routeing messages are to be exchanged (i.e. not on DA circuits), there are two flags:
- Send Routeing Message (SRMflag): if set, indicates that Link State PDU should be transmitted on that circuit. On broadcast circuits SRMflag is cleared as soon as the LSP has been transmitted, but on non-broadcast circuits SRMflag is only cleared on reception of a Link State PDU or Sequence Numbers PDU as described below.
- SRMflag shall never be set for an LSP with sequence number zero, nor on a circuit whose externalDomain attribute is True (See 7.3.15.2).
- Send Sequence Numbers (SSNflag): if set, indicates that information about that Link State PDU should be included in a Partial Sequence Numbers PDU transmitted on that circuit. When the Sequence Numbers PDU has been transmitted SSNflag is cleared. Note that the Partial Sequence Numbers PDU serves as an acknowledgement that a Link State PDU was received.
- SSNflag shall never be set on a circuit whose externalDomain attribute is True.
7.3.15.1. Action on Receipt of a Link State PDU
When a Link State PDU is received on a circuit C, the IS shall perform the following functions
- Perform the following PDU acceptance tests:
- If the LSP was received over a circuit whose externalDomain attribute is True, the IS shall discard the PDU.
- If the ID Length field of the PDU is not equal to the value of the IS's routeingDomainIDLength, the PDU shall be discarded and an iDFieldLengthMismatch notification generated.
- If this is a level 1 LSP, and the set of areaReceivePasswords is non-null, then perform the following tests:
- If the PDU does not contain the Authentication Information field then the PDU shall be discarded and an authenticationFailure notification generated.
- If the PDU contains the Authentication Information field, but the Authentication Type is not equal to Password, then the PDU shall be accepted unless the IS implements the authenticatiion procedure indicated by the Authentication Type. In this case whether the IS accepts or ignores the PDU is outside the scope of this International Standard.
- Otherwise, the IS shall compare the password in the received PDU with the passwords in the set of areaReceivePasswords, augmented by the value of the areaTransmitPassword. If the value in the PDU matches any of these passwords, the IS shall accept the PDU for further processing. If the value in the PDU does not match any of the above values, then the IS shall ignore the PDU and generate an authenticationFailure notification.
- If this is a level 2 LSP, and the set of domainReceivePasswords is non-null, then perform the following tests:
- If the PDU does not contain the Authentication Information field then the PDU shall be discarded and an authenticationFailure notification generated.
- If the PDU contains the Authentication Information field, but the Authentication Type is not equal to Password, then the PDU shall be accepted unless the IS implements the authenticatiion procedure indicated by the Authentication Type. In this case whether the IS accepts or ignores the PDU is outside the scope of this International Standard.
- Otherwise, the IS shall compare the password in the received PDU with the passwords in the set of domainReceivePasswords, augmented by the value of the domainTransmitPassword. If the value in the PDU matches any of these passwords, the IS shall accept the PDU for further processing. If the value in the PDU does not match any of the above values, then the IS shall ignore the PDU and generate an authenticationFailure notification.
- If the LSP has zero Remaining Lifetime, perform the actions described in 7.3.16.4.
- If the source S of the LSP is an IS or pseudonode for which all but the last octet are equal to the systemID of the receiving Intermediate System, and the receiving Intermediate System does not have that LSP in its database, or has that LSP, but no longer considers it to be in the set of LSPs generated by this system (e.g. it was generated by a previous incarnation of the system), then initiate a network wide purge of that LSP as described in 7.3.16.4.
- If the source S of the LSP is a system (pseudonode or otherwise) for which the first ID Length octets are equal to the systemID of the receiving Intermediate system, and the receiving Intermediate system has an LSP in the set of currently generated LSPs from that source in its database (i.e. it is an LSP generated by this Intermediate system), perform the actions described in 7.3.16.1.
- Otherwise, (the source S is some other system),
- If the LSP is newer than the one in the database, or if an LSP from that source does not yet exist in the database:
- Store the new LSP in the database, overwriting the existing database LSP for that source (if any) with the received LSP.
- Set SRMflag for that LSP for all circuits other than C.
- Clear SRMflag for C.
- If C is a non-broadcast circuit, set SSNflag for that LSP for C.
- Clear SSNflag for that LSP for the circuits other than C.
- If the LSP is equal to the one in the database (same Sequence Number, Remaining Lifetimes both zero or both non-zero, same checksums):
- Clear SRMflag for C.
- If C is a non-broadcast circuit, set SSNflag for that LSP for C.
- If the LSP is older than the one in the database:
- Set SRMflag for C.
- Clear SSNflag for C.
When storing a new LSP, the Intermediate system shall first ensure that it has sufficient memory resources to both store the LSP and generate whatever internal data structures will be required to process the LSP by the Update Process. If these resources are not available the LSP shall be ignored. It shall neither be stored nor acknowledged. When an LSP is ignored for this reason the IS shall enter the Waiting State. (See 7.3.19).
When attempting to store a new version of an existing LSP (with the same LSPID), which has a length less than or equal to that of the existing LSP, the existing LSP shall be removed from the routeing information base and the new LSP stored as a single atomic action. This ensures that such an LSP (which may be carrying the LSP Database Overload indication from an overloaded IS) will never be ignored as a result of a lack of memory resources.
7.3.15.2. Action on Receipt of a Sequence Numbers PDU
When a Sequence Numbers PDU (Complete or Partial, see 7.3.17) is received on circuit C the IS shall perform the following functions:
- Perform the following PDU acceptance tests:
- If the SNP was received over a circuit whose externalDomain attribute is True, the IS shall discard the PDU.
- If the ID Length field of the PDU is not equal to the value of the IS's routeingDomainIDLength, the PDU shall be discarded and an iDFieldLengthMismatch notification generated.
- If this is a level 1 SNP and the set of areaReceivePasswords is non-null, then perform the following tests:
- If the PDU does not contain the Authentication Information field then the PDU shall be discarded and an authenticationFailure notification generated.
- If the PDU contains the Authentication Information field, but the Authentication Type is not equal to Password, then the PDU shall be accepted unless the IS implements the authenticatiion procedure indicated by the Authentication Type. In this case whether the IS accepts or ignores the PDU is outside the scope of this International Standard.
- Otherwise, the IS shall compare the password in the received PDU with the passwords in the set of areaReceivePasswords, augmented by the value of the areaTransmitPassword. If the value in the PDU matches any of these passwords, the IS shall accept the PDU for further processing. If the value in the PDU does not match any of the above values, then the IS shall ignore the PDU and generate an authenticationFailure notification.
- If this is a level 2 SNP, and the set of domainReceivePasswords is non-null, then perform the following tests:
- If the PDU does not contain the Authentication Information field then the PDU shall be discarded and an authenticationFailure notification generated.
- If the PDU contains the Authentication Information field, but the Authentication Type is not equal to Password, then the PDU shall be accepted unless the IS implements the authenticatiion procedure indicated by the Authentication Type. In this case whether the IS accepts or ignores the PDU is outside the scope of this International Standard.
- Otherwise, the IS shall compare the password in the received PDU with the passwords in the set of domainReceivePasswords, augmented by the value of the domainTransmitPassword. If the value in the PDU matches any of these passwords, the IS shall accept the PDU for further processing. If the value in the PDU does not match any of the above values, then the IS shall ignore the PDU and generate an authenticationFailure notification.
- For each LSP reported in the Sequence Numbers PDU:
- If the reported value equals the database value and C is a non-broadcast circuit, Clear SRMflag for C for that LSP.
- If the reported value is older than the database value, Clear SSNflag, and Set SRMflag.
- If the reported value is newer than the database value, Set SSNflag, and if C is a non-broadcast circuit Clear SRMflag.
- If no database entry exists for the LSP, and the reported Remaining Lifetime, Checksum and Sequence Number fields of the LSP are all non-zero, create an entry with sequence number 0 (see 7.3.16.1), and set SSNflag for that entry and circuit C. Under no circumstances shall SRMflag be set for such an LSP with zero sequence number. NOTE - This is because possessing a zero sequence number LSP is semantically equivalent to having no information about that LSP. If such LSPs were propagated by setting SRMflag it would result in an unnecessary consumption of both bandwidth and memory resources.
- If the Sequence Numbers PDU is a Complete Sequence Numbers PDU, Set SRMflags for C for all LSPs in the database (except those with zero sequence number or zero remaining lifetime) with LSPIDs within the range specified for the CSNP by the Start LSPID and End LSPID fields, which were not mentioned in the Complete Sequence Numbers PDU (i.e. LSPs this system has, which the neighbour does not claim to have).
7.3.15.3. Action on expiration of Complete SNP Interval
The IS shall perform the following actions every CompleteSNPInterval seconds for circuit C:
- If C is a broadcast circuit, then
- If this Intermediate system is a Level 1 Designated Intermediate System on circuit C, transmit a complete set of Level 1 Complete Sequence Numbers PDUs on circuit C. Ignore the setting of SSNflag on Level 1 Link State PDUs. If the value of the IS's areaTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted CSNP, indicating an Authentication Type of Password and containing the areaTransmitPassword as the authentication value.
- If this Intermediate system is a Level 2 Designated Intermediate System on circuit C, transmit a complete set of Level 2 Complete Sequence Numbers PDUs on circuit C. Ignore the setting of SSNflag on Level 2 Link State PDUs. If the value of the IS's domainTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted CSNP, indicating an Authentication Type of Password and containing the domainTransmitPassword as the authentication value.
A complete set of CSNPs is a set whose startLSPID and endLSPID ranges cover the complete possible range of LSPIDs. (i.e. there is no possible LSPID value which does not appear within the range of one of the CSNPs in the set). Where more than one CSNP is transmitted on a broadcast circuit, they shall be separated by an interval of at least minimumBroadcastLSPTransmissionInterval seconds. NOTE An IS is permitted to transmit a small number of CSNPs (no more than 10) with a shorter separation interval, (or even back to back), provided that no more than 1000/minimumBroadcastLSPTransmissionInterval CSNPs are transmitted in any one second period.
- Otherwise (C is a point to point circuit, including non-DA DED circuits and virtual links), do nothing. CSNPs are only transmitted on point to point circuits at initialisation.
7.3.15.4. Action on expiration of Partial SNP Interval
The maximum sized Level 1 or Level 2 PSNP which may be generated by a system is controlled by the values of originatingL1LSPBufferSize or originatingL2LSPBufferSize respectively. An Intermediate system shall perform the following actions every partialSNPInterval seconds for circuit C with jitter applied as described in 10.1:
- If C is a broadcast circuit, then
- If this Intermediate system is a Level 1 Intermediate System or a Level 2 Intermediate System with manualL2OnlyMode False, but is not a Level 1 Designated Intermediate System on circuit C, transmit a Level 1 Partial Sequence Numbers PDU on circuit C, containing entries for as many Level 1 Link State PDUs with SSNflag set as will fit in the PDU, and then clear SSNflag for these entries. To avoid the possibility of starvation, the scan of the LSP database for those with SSNflag set shall commence with the next LSP which was not included in the previous scan. If there were no Level 1 Link State PDUs with SSNflag set, do not transmit a Level 1 Partial Sequence Numbers PDU. If the value of the IS's areaTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted PSNP, indicating an Authentication Type of Password and containing the areaTransmitPassword as the authentication value.
- If this Intermediate system is a Level 2 Intermediate System, but is not a Level 2 Designated Intermediate System on circuit C, transmit a Level 2 Partial Sequence Numbers PDU on circuit C, containing entries for as many Level 2 Link State PDUs with SSNflag set as will fit in the PDU, and then clear SSNflag for these entries. To avoid the possibility of starvation, the scan of the LSP database for those with SSNflag set shall commence with the next LSP which was not included in the previous scan. If there were no Level 2 Link State PDUs with SSNflag set, do not transmit a Level 2 Partial Sequence Numbers PDU. If the value of the IS's domainTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted PSNP, indicating an Authentication Type of Password and containing the domainTransmitPassword as the authentication value.
- Otherwise (C is a point to point circuit, including non-DA DED circuits and virtual links)
- If this system is a Level 1 Intermediate system, transmit a Level 1 Partial Sequence Numbers PDU on circuit C, containing entries for as many Level 1 Link State PDUs with SSNflag set as will fit in the PDU, and then clear SSNflag for these entries. To avoid the possibility of starvation, the scan of the LSP database for those with SSNflag set shall commence with the next LSP which was not included in the previous scan. If there were no Level 1 Link State PDUs with SSNflag set, do not transmit a Partial Sequence Numbers PDU. If the value of the IS's areaTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted PSNP, indicating an Authentication Type of Password and containing the areaTransmitPassword as the authentication value.
- If this system is a Level 2 Intermediate system, transmit a Level 2 Partial Sequence Numbers PDU on circuit C, containing entries for as many Level 2 Link State PDUs with SSNflag set as will fit in the PDU, and then clear SSNflag for these entries. To avoid the possibility of starvation, the scan of the LSP database for those with SSNflag set shall commence with the next LSP which was not included in the previous scan. If there were no Level 2 Link State PDUs with SSNflag set, do not transmit a Partial Sequence Numbers PDU. If the value of the IS's domainTransmitPassword is non-null, then the IS shall include the Authentication Information field in the transmitted PSNP, indicating an Authentication Type of Password and containing the domainTransmitPassword as the authentication value.
7.3.15.5. Action on expiration of Minimum LSP Transmission Interval
An IS shall perform the following actions every minimumLSPTransmission Interval seconds with jitter applied as described in 10.1.
- For all Point to Point circuits C transmit all LSPs that have SRMflag set on circuit C, but do not clear the SRMflag. The SRMflag will subsequently be cleared by receipt of a Complete or Partial Sequence Numbers PDU.
The interval between two consecutive transmissions of the same LSP shall be at least minimum LSP Transmission Interval. Clearly, this can only be achieved precisely by keeping a separate timer for each LSP. This would be an unwarranted overhead. Any technique which ensures the interval will be between minimum LSP Transmission Interval and 2 * minimum LSP Transmission Interval is acceptable.
7.3.15.6. Controlling the Rate of Transmission on Broadcast Circuits
The attribute minimum Broadcast LSP Transmission Interval indicates the minimum interval between PDU arrivals which can be processed by the slowest Intermediate System on the LAN.
Setting SRMflags on an LSP for a broadcast circuit does not cause the LSP to be transmitted immediately. Instead the Intermediate system shall scan the LSP database every minimum Broadcast LSP Transmission Interval (with jitter applied as described in 10.1), and from the set of LSPs which have SRMflags set for this circuit, one LSP shall be chosen at random. This LSP shall be multicast on the circuit, and SRMflags cleared.
NOTE - In practice it would be very inefficient to scan the whole database at this rate, particularly when only a few LSPs had SRMflags set. Implementations may require additional data structures in order to reduce this overhead.
NOTE - An IS is permitted to transmit a small number of LSPs (no more than 10) with a shorter separation interval, (or even back to back), provided that no more than 1000/minimum Broadcast LSP Transmission Interval LSPs are transmitted in any one second period.
In addition, the presence of any LSPs which have been received on a particular circuit and are queued awaiting processing shall inhibit transmission of LSPs on that circuit. However, LSPs may be transmitted at a minimum rate of one per second even in the presence of such a queue.
7.3.16. Determining the Latest Information
The Update Process is responsible for determining, given a received link state PDU, whether that received PDU represents new, old, or duplicate information with respect to what is stored in the database.
It is also responsible for generating the information upon which this determination is based, for assigning a sequence number to its own Link State PDUs upon generation, and for correctly adjusting the Remaining Lifetime field upon broadcast of a link state PDU generated originally by any system in the domain.
7.3.16.1. Sequence Numbers
The sequence number is a 4 octet unsigned value. Sequence numbers shall increase from zero to (SequenceModulus
- 1). When a system initialises, it shall start with sequence number 1 for its own Link State PDUs.55It starts with 1 rather than 0 so that the value 0 can be reserved to be guaranteed to be less than the sequence number of any actually generated Link State PDU. This is a useful property for Sequence Numbers PDUs.
The sequence numbers the Intermediate system generates for its Link State PDUs with different values for LSP number are independent. The algorithm for choosing the numbers is the same, but operationally the numbers will not be synchronised.
If an Intermediate system R somewhere in the domain has information that the current sequence number for source S is greater than that held by S, R will return to S a Link State PDU for S with R's value for the sequence number. When S receives this LSP it shall change its sequence number to be the next number greater than the new one received, and shall generate a link state PDU.
If an Intermediate system needs to increment its sequence number, but the sequence number is already equal to SequenceModulus 1, the notification attempt To Exceed Maximum Sequence Number shall be generated and the Routeing Module shall be disabled for a period of at least MaxAge + ZeroAgeLifetime, in order to be sure that any versions of this LSP with the high sequence number have expired. When it is re-enabled the IS shall start again with sequence number 1.
7.3.16.2. LSP Confusion
It is possible for an LSP generated by a system in a previous incarnation to be alive in the domain and have the same sequence number as the current LSP.
To ensure database consistency among the Intermediate Systems, it is essential to distinguish two such PDUs. This is done efficiently by comparing the checksum on a received LSP with the one stored in memory.
If the sequence numbers match, but the checksums do not and the LSP is not in the current set of LSPs generated by the local system, then the system that notices the mismatch shall treat the LSP as if its Remaining Lifetime had expired. It shall store one of the copies of the LSP, with zero written as the Remaining Lifetime, and flood the LSP.
If the LSP is in the current set of LSPs generated by the local system then the IS shall change the LSP's sequence number to be the next number greater than that of the received LSP and regenerate the LSP.
7.3.16.3. Remaining Lifetime field
When the source generates a link state PDU, it shall set the Remaining Lifetime to MaxAge.
When a system holds the information for some time before successfully transmitting it to a neighbour, that system shall decrement the Remaining Lifetime field according to the holding time. Before transmitting a link state PDU to a neighbour, a system shall decrement the Remaining Lifetime in the PDU being transmitted by at least 1, or more than 1 if the transit time to that neighbour is estimated to be greater than one second. When the Remaining Lifetime field reaches 0, the system shall purge that Link State PDU from its database. In order to keep the Intermediate Systems' databases synchronised, the purging of an LSP due to Remaining Lifetime expiration is synchronised by flooding an expired LSP. See 7.3.16.4.
If the RemainingLifetime of the received LSP is zero it shall be processed as described in 7.3.16.4. If the Remaining Lifetime of the received LSP is non-zero, but there is an LSP in the database with the same sequence number and zero Remaining Lifetime, the LSP in the database shall be considered most recent. Otherwise, the PDU with the larger sequence number shall be considered the most recent.
If the value of Remaining Lifetime is greater than MaxAge, the LSP shall be processed as if there were a checksum error.
7.3.16.4. LSP Expiration Synchronisation
When the Remaining Lifetime on an LSP in memory becomes zero, the IS shall
- set all SRMflags for that LSP, and
- retain only the LSP header.
- record the time at which the Remaining Lifetime for this LSP became zero. When ZeroAgeLifetime has elapsed since the LSP Remaining Lifetime became zero, the LSP header shall be purged from the database.
NOTE - A check of the checksum of a zero Remaining Lifetime LSP succeeds even though the data portion is not present
When a purge of an LSP with non-zero Remaining Lifetime is initiated, the header shall be retained for MaxAge.
If an LSP from source S with zero Remaining Lifetime is received on circuit C :
-
If no LSP from S is in memory, then the IS shall
- send an acknowledgement of the LSP on circuit C, but
- shall not retain the LSP after the acknowledgement has been sent. b)If an LSP from S is in the database, then
-
If the received LSP is newer than the one in the database (i.e. received LSP has higher sequence number, or same sequence number and database LSP has non-zero Remaining Lifetime) the IS shall:
- overwrite the database LSP with the received LSP, and note the time at which the zero Remaining Lifetime LSP was received, so that after ZeroAgeLifetime has elapsed, that LSP can be purged from the database,
- set SRMflag for that LSP for all circuits other than C,
- clear SRMflag for C,
- if C is a non-broadcast circuit, set SSNflag for that LSP for C, and
- clear SSNflag for that LSP for the circuits other than C.
-
If the received LSP is equal to the one in the database (i.e. same Sequence Number, Remaining Lifetimes both zero) the IS shall:
- clear SRMflag for C, and
- if C is a non-broadcast circuit, set SSNflag for that LSP for C.
-
If the received LSP is older than the one in the database (i.e. received LSP has lower sequence number) the IS shall:
- set SRMflag for C, and
- clear SSNflag for C.
c)If this system (or pseudonode) is S and there is an unexpired LSP from S (i.e. its own LSP) in memory, then the IS:
- shall not overwrite with the received LSP, but
- shall change the sequence number of the unexpired LSP from S as described in 7.3.16.1,
- generate a new LSP; and
- set SRMflag on all circuits.
7.3.17. Making the Update Reliable
The update process is responsible for making sure the latest link state PDUs reach every reachable Intermediate System in the domain.
On point-to-point links the Intermediate system shall send an explicit acknowledgement encoded as a Partial Sequence Numbers PDU (PSNP) containing the following information:
a)source's ID
b)PDU type (Level 1 or 2)
c)sequence number
d)Remaining Lifetime
e)checksum
This shall be done for all received link state PDUs which are newer than the one in the database, or duplicates of the one in the database. Link state PDUs which are older than that stored in the database are answered instead by a newer link state PDU, as specified in 7.3.14 above.
On broadcast links, instead of explicit acknowledgements for each link state PDU by each Intermediate system, a special PDU known as a Complete Sequence Numbers PDU (CSNP), shall be multicast periodically by the Designated Intermediate System. The PDU shall contain a list of all LSPs in the database, together with enough information so that Intermediate systems receiving the CSNP can compare with their LSP database to determine whether they and the CSNP transmitter have synchronised LSP databases. The maximum sized Level 1 or Level 2 Sequence Numbers PDU which may be generated by a system is controlled by the values of originatingL1LSPBufferSize or originatingL2LSPBufferSize respectively. In practice, the information required to be transmitted in a single CSNP may be greater than will fit in a single PDU. Therefore each CSNP carries an inclusive range of LSPIDs to which it refers. The complete set of information shall be conveyed by transmitting a series of individual CSNPs, each referring to a subset of the complete range. The ranges of the complete set of CSNPs shall be contiguous (though not necessarily transmitted in order) and shall cover the entire range of possible LSPIDs.
The LAN Level 1 Designated Intermediate System shall periodically multicast complete sets of Level 1 CSNPs to the multi-destination address AllL1ISs. The LAN Level 2 Designated Intermediate System shall periodically multicast complete sets of Level 2 CSNPs to the multi-destination address AllL2ISs.
Absence of an LSPID from a Complete Sequence Numbers PDU whose range includes that LSPID indicates total lack of information about that LSPID.
If an Intermediate system, upon receipt of a Complete Sequence Numbers PDU, detects that the transmitter was out of date, the receiver shall multicast the missing information.
NOTE - Receipt of a link state PDU on a link is the same as successfully transmitting the Link State PDU on that link, so once the first Intermediate system responds, no others will, unless they have already transmitted replies.
If an Intermediate system detects that the transmitter had more up to date information, the receiving Intermediate system shall multicast a Partial Sequence Numbers PDU (PSNP), containing information about LSPs for which it has older information. This serves as an implicit request for the missing information. Although the PSNP is multicast, only the Designated Intermediate System of the appropriate level shall respond to the PSNP.
NOTE - This is equivalent to the PSNP being transmitted directly to the Designated Intermediate System, in that it avoids each Intermediate System unnecessarily sending the same LSP(s) in response. However, it has the advantage of preserving the property that all routeing messages can be received on the multi-destination addresses, and hence by a LAN adapter dedicated to the multi-destination address.
When a non-broadcast circuit (re)starts, the IS shall:
a)set SRMflag for that circuit on all LSPs, and
b)send a Complete set of Complete Sequence Numbers PDUs on that circuit.
7.3.18. Validation of Databases
An Intermediate System shall not continue to operate for an extended period with corrupted routeing information. The IS shall therefore operate in a fail-stop manner. If a failure is detected, the Intermediate system Network entity shall be disabled until the failure is corrected. In the absence of an implementation-specific method for ensuring this, the IS shall perform the following checks at least every maximumLSPGenerationInterval seconds:
a)On expiration of this timer the IS shall re-check the checksum of every LSP in the LSP database (except those with a Remaining Lifetime of zero) in order to detect corruption of the LSP while in memory. If the checksum of any LSP is incorrect, the notification corruptedLSPDetected shall be logged, and as a minimum the entire Link State Database shall be deleted and action taken to cause it to be re-acquired. One way to achieve this is to disable and re-enable the IS Network entity.
NOTE On point to point links, this requires at least that a CSNP be transmitted.
b)On completion of these checks the decision process shall be notified of an event (even if any newly generated LSPs have identical contents to the previous ones). This causes the decision process to be run and the forwarding databases re-computed, thus protecting against possible corruption of the forwarding data bases in memory, which would not otherwise be detected in a stable topology.
c)The IS shall reset the timer for a period of maximumLSPGenerationInterval with jitter applied as described in 10.1.
7.3.19. LSP Database Overload
As a result of network mis-configuration, or certain transitory conditions, it is possible that there may be insufficient memory resources available to store a received Link State PDU. When this occurs, an IS needs to take certain steps to ensure that if its LSP database becomes inconsistent with the other ISs', that these ISs do not rely on forwarding paths through the overloaded IS.
7.3.19.1. Entering the Waiting State
When an LSP cannot be stored, the LSP shall be ignored and Waiting State shall be entered. A timer shall be started for waitingTime seconds, and the Intermediate System shall generate and flood its own LSP with zero LSP number with the LSP Database Overload Bit set. This prevents this Intermediate system from being considered as a forwarding path by other Intermediate Systems.
It is possible that although there are sufficient resources to store an LSP and permit the operation of the Update Process on that LSP, the Decision Process may subsequently require further resources in order to complete. If these resources are not available, the Intermediate system shall then (i.e. during the attempt to run the Decision Process) enter Waiting State until such time as they are available and waitingTime seconds have elapsed since the last LSP was ignored by the Update Process.
An implementation shall partition the available memory resources between the Level 1 and Level 2 databases. An overload condition can therefore exist independently for Level 1 or Level 2 (or both). The status attributes l1State and l2State indicate the condition for the Level 1 and Level 2 databases respectively. On entering Level 1 Waiting State the IS shall generate the lSPL1DatabaseOverload notification, and on entering Level 2 Waiting State the IS shall generate the lSPL2DatabaseOverload notification.
7.3.19.2. Actions in Level 1 Waiting State
While in Level 1 waiting state
a)If a Link State PDU cannot be stored, the IS shall ignore it and restart the timer for waitingTime seconds.
b)The IS shall continue to run the Decision and Forwarding processes as normal.
c)When the waitingTime timer expires, the IS shall:
1)Generate an lSPL1DatabaseOverload (recovered) notification.
2)Clear the LSP Database Overload bit in its own Level 1 LSP with zero LSP number and re-issue it.
3)Set the l1State to On.
4)Resume normal operation.
7.3.19.3. Actions in Level 2 Waiting State
While in Level 2 waiting state
a)If a Link State PDU cannot be stored, the IS shall ignore it and restart the timer for waitingTime seconds.
b)The IS shall continue to run the Decision and Forwarding processes as normal.
c)When the waitingTime timer expires, the IS shall:
1)Generate an lSPL2DatabaseOverload (recovered) notification.
2)Clear the LSP Database Overload bit in its own Level 2 LSP with zero LSP number and re-issue it.
3)Set the l2State to On.
4)Resume normal operation.
7.3.20. Use of the Link State Database
The only portion of the database relevant to the Decision Process is the data portion of the Link State PDUs. The Update Process additionally uses the fields Sequence Number, Remaining Lifetime, and variable SRMflag. The Remaining Lifetimes in the stored link state PDUs can either be periodically decremented, or converted upon re ceipt into an internal timestamp, and converted back into a Remaining Lifetime upon transmission.
7.3.20.1. Synchronisation with the Decision Process
Since the Update Process and the Decision Process share the Link State Database, care must be taken that the Update Process does not modify the Link State Database while the Decision Process is running.
There are two approaches to this. In one approach, the De cision Process signals when it is running. During this time, the Update Process queues incoming Link State PDUs, and does not write them into the Link State Database. If more Link State PDUs arrive than can fit into the queue allotted while the Decision Process is running, the Update Process drops them and does not acknowledge them.
Another approach is to have two copies of the Link State Database one in which the Decision Process is comput ing, and the other in which the Update Process initially cop ies over the first database, and in which all new Link State PDUs are written. Additionally, depending on the hashing scheme, it is likely that a second copy of the address hash table will be required, so that the Update Process can do a rehash occasionally for efficiency.
When the Decision Process is ready to run again, it locks the new copy of the Link State Database, leaving the Up date Process to copy over the information into the first area, and write new updates while the Decision Process runs again.
The advantage of the first approach is that it takes less memory. The advantage of the second approach is that Link State PDUs will never need to be dropped.
NOTE - If the decision process is implemented according to the specification in C.2, a finer level of parallelism is possi ble, as described below.
Arrival of a Link State PDU for a system before that system has been put into TENT is permitted. The new Link State PDU is used when that system is eventually put into TENT. Similarly, arrival of a new Link State PDU for a system af ter that system has been put into PATHS is permitted. That system has already been completely processed. The arrival of the new Link State PDU is noted and the decision process re-executed when the current execution has completed. An in-progress execution of the decision process shall not be abandoned, since this could prevent the decision process from ever completing.
Arrival of a Link State PDU for a system between that sys tem being put on TENT and being transferred to PATHS shall be treated as equivalent to one of the previous two cases (for example, by buffering, or taking some corrective action).
7.3.20.2. Use of Buffers and Link Bandwidth
Implementations shall have a buffer management strategy that does not prevent other clients of the buffering service from acquiring buffers due to excessive use by the Update Process. They shall also ensure that the Update Process does not consume all the available bandwidth of links. In particular no type of traffic should experience starvation for longer than its acceptable latency. Acceptable latencies are approximately as follows:
- Hello traffic Hello timer W 0.5
- Data Traffic 10 seconds.
NOTE - The first of these requirements can be met by re stricting the Update process to the use of a single buffer on each circuit for transmission. This may also cause the sec ond requirement to be met, depending on the processor speed.
7.3.21. Parameters
- MaxAge: This is the amount of time that may elapse since the estimated origination of the stored Link State PDU by the source before the LSP is consid ered expired. The expired LSP can be deleted from the database after a further ZeroAgeLifetime has expired. MaxAge shall be larger than maximum
LSP
Generation
Interval, so that a system is not
purged merely because of lack of events for report ing Link State PDUs. MaxAge is an architectural constant equal to 20 minutes.
- ZeroAgeLifetime: - This is the minimum amount of time for which the header of an expired LSP shall be re tained after it has been flooded with zero Remaining Lifetime. A very safe value for this would be 2 W MaxAge. However all that is required is that the header be retained until the zero Remaining Life time LSP has been safely propagated to all the neighbours. ZeroAgeLifetime is an architectural constant with a value of 1 minute.
- maximumLSPGenerationInterval: This is the maxi mum amount of time allowed to elapse between gen eration of Link State PDUs by a source. It shall be less than MaxAge. Setting this parameter too fast adds overhead to the algorithms (a lot of Link State PDUs). Setting this parameter too slow (and not violating constraints) causes the algorithm to wait a long time to recover in the unlikely event that incorrect Link State infor mation exists somewhere in the domain about the system. A reasonable setting is 15 minutes.
minimumLSPGenerationInterval This is the minimum time interval between generation of Link State PDUs. A source Intermediate system shall wait at least this long before re-generating one of its own Link State PDUs. Setting this too large causes a delay in reporting new information. Setting this too small allows too much overhead. A reasonable setting is 30 seconds. min
i
mum
LSP
Trans
mis
sion
Int
er
val This is the amount of time an Intermediate system shall wait before fur ther propagating another Link State PDU from the same source system. Setting this too large causes a delay in propagation of routeing information and stabilisation of the routeing algorithm. Setting this too small allows the possibility that the routeing algorithm, under low probability circumstances, will use too many re sources (CPU and bandwidth). Setting min
i
mum
LSP
Trans
mis
sion
Int
er
val greater than minimumLSPGenerationInterval makes no sense, because the source would be allowed to gen erate LSPs more quickly than they'd be allowed to be broadcast. Setting min
i
mum
LSP
Trans
mis
sion
Int
er
val smaller than min
i
mum
LSP
Generation
Inter
val is desirable to recover from lost LSPs. A reasonable value is 5 seconds. CompleteSNPInterval This is the amount of time be tween periodic transmissions of a complete set of Sequence Number PDUs by the Designated Interme diate system on a broadcast link. Setting this too low slows down the convergence of the routeing algo rithm when Link State PDUs are lost due to the datagram environment of the Data Link layer on the broadcast link. Setting this too high results in extra control traffic overhead. A reasonable value is 10 seconds.
7.4. The Forwarding Process
The forwarding process is responsible both for transmitting NPDUs originated by this system, and for forwarding NPDUs originated by other systems
7.4.1. Input and Output
INPUT -NPDUs from the ISO 8473 protocol machine -PDUs from Update Process -PDUs from Receive Process -Forwarding Databases (Level 1 and 2) one for each routeing metric OUTPUT -PDUs to Data Link Layer
7.4.2. Routeing Metric Selection
The Forwarding process selects a forwarding database for each NPDU to be relayed based on: -the level at which the forwarding is to occur: level 1 or level 2; and -a mapping of the ISO 8473 QoS Maintenance field onto one of the Intermediate system's supported route ing metrics.
The former selection is made by examining the Destination Address field of the NPDU.
The latter selection is made as follows:
- If the QoS Maintenance field is not present in the NPDU, then the IS shall select the forwarding data base calculated for the default metric.
- If the QoS Maintenance field is present, the IS shall examine bits 7 and 8 of the parameter value octet. If these two bits specify any combination other than 1 1 (meaning globally unique QoS), then the IS shall select the forwarding database calculated for the de fault metric, otherwise
- The IS shall select a forwarding database by mapping the values of bits 3, 2 and 1 of the parameter value as shown below in table 1 and shall proceed as follows: 1)If the IS does not support the selected routeing metric, the IS shall forward based upon the default metric; 2)If the forwarding database for one of the optional routeing metrics is selected and the database either does not contain an entry for the Destination Ad dress in the NPDU being relayed, or contains an entry indicating that the destination is unreachable using that metric, then the IS shall attempt to for ward based upon the default metric; 3)Otherwise, forward based on the selected optional metric.
Table 1 - QoS Maintenance bits to routeing
metric mappingsSelected Routeing Metric
bit 3
bit 2
bit 1
expense metric
0
0
0
default metric
0
0
1
expense metric
0
1
0
delay metric
1
0
0
error metric
0
1
1
delay metric
1
0
1
error metric
1
1
1
default metric
1
1
0
7.4.3. Forwarding Decision
7.4.3.1. Basic Operation
Let DEST = the Network Layer destination address of the PDU to be forwarded, or the next entry in the source routeing field, if present. It consists of sub-fields Area Address, ID, and SEL.
NOTE - The SEL field in the destination address is not examined by Intermediate Systems. It is used by End Systems to select the proper Transport entity to which to deliver NSDUs.
This system's (the one examining this PDU for proper forwarding decision) address consists of sub-fields area address and ID.
- If the local system type is a level 1 Intermediate system, or the local system type is a level 2 Intermediate system and AttachedFlagk = False, then:
- If the Area Address in the PDU to be forwarded matches any one of the area addresses of this IS, then consult the level 1 forwarding database to determine the adjacency which is the next hop on the path to the NPDU's destination. Forward the NPDU on this adjacency.
- Otherwise, consult the level 1 forwarding database to determine the adjacency which is the next hop on the path to the nearest level 2 is in the area, and forward the NPDU on this adjacency.
- If the local system type is Level 2, and AttachedFlagk = True then:
- If the Area Address in the PDU to be forwarded matches any one of the area addresses of this IS, then consult the level 1 forwarding database to determine the adjacency which is the next hop on the path to the NPDU's destination. Forward the NPDU on this adjacency.
- Otherwise, consult the level 2 forwarding database to determine the adjacency which is the next hop on the path to the destination area, and forward the NPDU on this adjacency.
7.4.3.2. Encapsulation for Partition Repair
If this Intermediate system is the Partition Designated Level 2 IS for this partition, and the PDU is being forwarded onto the special adjacency to a Partition Designated Level 2 Intermediate system in a different partition of this area, encapsulate the complete PDU as the data field of a data NPDU (i.e., with an additional layer of header), making this system the Source address and the other Partition Designated Level 2 Intermediate system (obtained from the identifier attribute of the Virtual Adjacency managed object) the Destination Address field in the outer PDU header. Set the QoS Maintenance field of the outer PDU to indicate forwarding via the default routeing metric (see table 1). Then forward the encapsulated PDU onto an adjacency ADJ, obtained by calling the Forward procedure, described below.
7.4.3.3. The Procedure Forward
This procedure chooses, from a Level 1 forwarding database if level is level1, or from a Level 2 forwarding database if level is level2, an adjacency on which to forward NPDUs for destination dest. A pointer to the adjacency is returned in adj, and the procedure returns the value True. A destination of 0 at level 1 selects the adjacency for the nearest level 2 IS computed as described in 7.2.9.1. If there are multiple possible adjacencies, as a result of multiple minimum cost paths, then one of those adjacencies shall be chosen. An implementation may chose the adjacency at random, or may use the possible adjacencies in round robin fashion.
If there is no entry in the selected forwarding database for the address dest, and the NPDU originated from the a local Transport entity and the system has one or more Intermediate System adjacencies, then one of those is chosen at random (or in round robin fashion) and the procedure returns the value True. Otherwise the procedure returns the value False.66This is done so that a system in the overloaded state will still be able to originate or forward NPDUs. If a system with a partial routeing information base were prohibited from attempting to forward to an unknown destination, system management would be unable to either communicate with this system, or route through it, for the purpose of diagnosing and/or correcting the underlying fault.
NOTE - Since the local adjacency database is pre-loaded into the decision process, there will always be an entry in the forwarding database for destinations to which an adjacency exists.
NOTE - The PDU to be forwarded may require fragmentation, depending on which circuit it is to be forwarded over.
Generating Redirect PDUs
In addition to forwarding an NPDU, the IS shall inform the local ISO 9542 protocol machine to generate a Redirect PDU if the PDU is being forwarded onto the same circuit from which it came, and if the source SNPA address of the NPDU indicates that the NPDU was received from an End System.
7.4.4. The Receive Process
The Receive Process is passed information from any of the following sources.
- received PDUs with the NLPID of Intra-Domain routeing,
- configuration information from the ISO 9542 protocol machine,
- ISO 8473 data PDUs handed to the routeing function by the ISO 8473 protocol machine.
When an area is partitioned, a level 2 path is used as a level 1 link to repair the partitioned area. When this occurs, all PDUs (between the neighbours which must utilise a multi-hop path for communication) shall be encapsulated in a data NPDU, addressed to the Intra-Domain routeing selector. Control traffic (LSPs, Sequence Numbers PDUs) shall also be encapsulated, as well as data NPDUs that are to be passed between the neighbours.
NOTE - It is not necessary to transmit encapsulated IIH PDUs over a virtual link, since virtual adjacencies are established and monitored by the operation of the Decision Process and not the Subnetwork Dependent functions
The Receive Process shall perform the following functions:
- If it is a data NPDU, addressed to this system with SEL = Intra-Domain routeing, then 7decapsulate the NPDU (remove the outer NPDU header). 7If the decapsulated PDU is a data NPDU, move the congestion indications to the decapsulated NPDU, and pass it to the ISO 8473 protocol machine. 7Otherwise, if the decapsulated PDU is not an ISO 8473 PDU, perform the following steps on the decapsulated PDU:
- If it is a Link State PDU, pass it to the Update Process
- If it is a Sequence Numbers PDU, pass it to the Update Process
- If it is an IIH PDU, pass it to the appropriate Subnetwork Dependent Function
- If it is a data NPDU or Error Report for another destination, pass it to the Forwarding Process
- Otherwise, ignore the PDU
7.5. Routeing Parameters
The routeing parameters setable by System Management are listed for each managed object in clause 11.
7.5.1. Architectural Constants
The architectural constants are described in Table 2.
Table 2 - Routeing architectural constantsName
Value
Description
MaxLinkMetric
63.
Maximum value of a routeing metric assign
able to a circuit
MaxPathMetric
1023.
Maximum total metric value for a complete
path
AllL1ISs
01-80-C2-00-00-14
The multi-destination address All Level 1 In
termediate Systems
AllL2ISs
01-80-C2-00-00-15
The multi-destination address All Level 2 In
termediate Systems
AllIntermediateSystems
09-00-2B-00-00-05
The multi-destination address All Intermedi
ate Systems used by ISO 9542
ISO-SAP
FE
The SAP for ISO Network Layer on
ISO 8802-3 LANs
IntradomainRoute
ing-
PD
10000011
The Network Layer Protocol Discriminator
assigned by ISO/TR 9577 for this Protocol
IntradomainRouteing
Selector
0.
The NSAP selector for the Intermediate Sys
tem Network entity
SequenceModulus
232
Size of the sequence number space used by
the Update Process
ReceiveLSPBuffer
Size
1492.
The size of LSP which all Intermediate sys
tems must be capable of receiving.
MaxAge
1200.
Number of seconds before LSP considered ex
pired.
ZeroAgeLifetime
60.
Number of seconds that an LSP with zero Re
maining Lifetime shall be retained after
propagating a purge.
AllEndSystems
09-00-2B-00-00-04
The multi-destination address All End Sys
tems used by ISO 9542
Max
i
mum
Area
Addresses
3.
The maximum number of area addresses
which may exist for a single area.
HoldingMultiplier
3.
The number by which to multiply hello
Timer
to obtain Holding Timer for ISH PDUs and
for Point to Point IIH PDUs.
ISISHoldingMultiplier
10.
The number by which to multiply iSISHel
loTimer to obtain Holding Timer for Level 1
and Level 2 LAN IIH PDUs.
Jitter
25.
The percentage of jitter which is applied to the
generation of periodic PDUs.