Protocol Functions (Part 2)
7.7 Request Redirect Function
The Request Redirect Function is present only in Intermediate Systems and is closely coupled with the Routing and Relaying Functions of Intermediate Systems. The Request Redirect Function is coupled with the "Route PDU Function" described in clause 6.5 of ISO 8473. The Request Redirect Function is performed after the Route PDU function has calculated the next hop of the Data PDU's path.
When an NPDU is to be forwarded by a Intermediate System, the Request Redirect Function first examines the SN_Source_Address associated with the SN_UNITDATA.Indication which received the SNSDU (containing this NPDU). If the SN_Source_Address is not from an End System on the local subnetwork (determined by examining the Configuration information obtained through the Record Configuration Function), then this function does no further processing of the NPDU.
If the NPDU was received directly from an ES the output of the ISs Routing and Relaying function for this NPDU is examined. This output will contain, among other things, the following pieces of information:
-
a local identifier for the subnetwork over which to forward the NPDU, plus either
-
the Network entity title and subnetwork address of the IS to which to forward the NPDU, or
-
the subnetwork address of the destination End System.
The Request Redirect function must now determine if the source ES could have sent the NPDU directly to the Network entity the Intermediate System is about to forward the PDU to. If any of the following conditions hold, the source ESshould be informed of the "better" path (by sending an RD PDU to the originating ES):
-
The next hop is to the destination system, and the destination is directly reachable (at subnetwork address BSNPA) on the source ESs subnetwork, or
-
The next hop is to a Intermediate System which is connected to the same subnetwork as the ES.
If the better path exists, the IS first completes normal processing of the received NPDU and forwards it.It then constructs a Redirect PDU (RD PDU) containing the Destination Address of the original NPDU, the subnetwork address of the better next hop (BSNPA), the Network Entity Title of the IS to which the ES is being redirected (unless the redirect is to the destination ES), a Holding Time (HT), QoS Maintenance, Priority, and Security options that were present in the Data NPDU (these are simply copied from the Data PDU). The HT is set to the value of the local Redirect Timer (RT). See Annex A for a discussion of how to choose the value of RT. If there are insufficient resources to both forward the original NPDU and to generate and send an RD PDU, the original NPDU must be given preference. The Intermediate System (assuming it has sufficient resources) then sends the RD PDU to the source End System using the SN_Source_Address of the received NPDU as the SN_Destination_Address for the SN_UNITDATA.Reqeust.
7.8 Record Redirect Function
The Record Redirect Function is present only in End Systems. This function is invoked whenever an RD PDU is received. It extracts the redirect information and adds or replaces the corresponding redirection information in the local Network entity's Routing Information base. The essential information is the redirection mapping from a Destination Address to a subnetwork address, along with the Priority, Security, and QoS Maintenance options and the Holding Time for which this mapping is to be considered valid. If the Redirect was to another Intermediate System, the Network Entity Title of the IS is recorded as well.
Note: If insufficient memory is available to store new redirection information, the RD PDU may be safely discarded since the original Intermediate System will continue to forward PDUs on behalf of this Network entity anyway.
7.9 Refresh Redirect Function
The Refresh Redirect Function is present only in End Systems. This function is invoked whenever an NPDU is received by a destination ES. It is closely coupled with the function that processes received NPDUs at a destination Network Entity.This is the "PDU Decomposition" function in ISO 8473. The purpose of this function is to increase the longevity of a redirection without allowing an incorrect route to persist indefinitely. The Source Address (SA), Priority, Security, and QoS options are extracted and compared to any Destination Address and QoS parameters being maintained in the Routing Information base (such information would have been stored by the Record Redirect Function). If a corresponding entry is found, the previous hop of the PDU is obtained from the SN_Source_Address parameter of the SN_Unitdata.Indication primitive by which it was received. If this address matches the next hop address stored with the redirection information, the remaining holding time for the redirection is reset to the original holding timer that was obtained from the RD PDU.
Note: The purpose of this function is to avoid timing out redirection entries when the Network entity is receiving return traffic from the destination via the same path over which it is currently sending traffic.This is particularly useful when the destination system is on the same subnetwork as the source, since after one redirect no IS need be involved in the ES-to-ES traffic.
This function must operate in a very conservative fashion however, to prevent the formation of black holes. The remaining holding time should be refreshed only under the exact conditions specified above. For a discussion of the issues surrounding the refresh of redirection information, see Annex 10.
7.10 Flush Old Redirect Function
The Flush Old Redirect Function is executed to remove Configuration entries in the routing information base whose Holding Timer has expired. When the Holding Time for an ES or IS expires, this function removes the corresponding entry from the routing information base of the local Network Entity.
7.11 PDU Header Error Detection
The PDU Header Error Detection function protects against failure of Intermediate or End System Network entities due to the processing of erroneous information in the PDU header.The function is realized by a checksum computed on the entire PDU header. The checksum is verified at each point at which the PDU is processed. If the checksum calculation fails, the PDU must be discarded.
The use of the Header Error Detection function is optional and is selected by the originating Network Entity. If the function is not used, the checksum field of the PDU header is set to zero.
If the function is selected by the originating Network Entity, the value of the checksum field causes the following formulf to be satisfied:
(The Sum from i=1 to L of a(i)) (mod 255) = 0
(The Sum from i=1 to L of (L - i + 1) * a(i)) (mod 255) = 0
where L = the number of octets in the PDU header, and a(i) = the value of the octet at position i. The first octet in the PDU header is considered to occupy position i = 0.
When the function is in use, neither octet of the checksum field may be set to zero.
7.12 Classification of Functions
Implementations do not have to support all of the functions described in clause 7. Functions are divided into four categories:
Type A: These functions must be supported in all cases.
Type B: These functions must be supported by Systems which implement the Configuration Information.
Type C: These functions must be supported by Systems which implement the Redirect Information.
Type D: These functions are optional.
If a PDU is received which invokes an optional function that is not implemented, that PDU is discarded.
Table 3 shows how the functions are divided into these four categories, and to which type of system (ES, IS, or both) they apply.
______________________________________________________________
| Function | Category | System Type |
|_______________________________|____________|_______________|
| Report Configuration | B | ES,IS |
| Record Configuration | B | ES,IS |
| Configuration Response | A | ES |
| Flush Old Configuration | B | ES,IS |
| Request Redirect | C | IS |
| Query Configuration | B | ES |
| Record Redirect | C | ES |
| Refresh Redirect | D | ES |
| Flush Old Redirect | C | ES |
| PDU Header Error Detection | A | ES,IS |
|_______________________________|____________|_______________|
Table 3: Categories of Protocol Functions