Acknowledgment protocol for serial data network with out-of-order delivery

Abstract: A system and method are provided for controlling the transmission of frames or packets of data in a serial network which allows out-of-order delivery. The data frames transmitted by an initiator node to a recipient node include frame serial number or sequence count information. Acknowledgment frames, transmitted by the recipient node to indicate delivery of the data frame or packet, include matching serial number or sequence count information. According to a preferred embodiment of the present invention, the initiator node and recipient node include resources which relate the serial number or sequence count information, resources which include control information in the acknowledgment frame, and resources which determine the transmit status of all acknowledgment frames prior to that specified by serial number or sequence count in the acknowledgment frame. The status information is used at the initiator node to update the status of any data frames whose acknowledgment has not been received as a consequence of an out-of-order delivery to the recipient, a delay in processing by the recipient, a delay of the acknowledgment frame in the transmission back to the initiator node, or a complete loss of the acknowledgment frame.

Description: The present invention relates generally to data processing systems and methods for transmitting frames or packets of information through a communication network. More particularly, the invention is directed to data processing systems and methods of operation for transmitting frames or packets of information in serial networks which utilize acknowledgments and allow out-of-order delivery of the frames or packets. Numerous serial data communication protocols exist for transmitting frames or packets of information from an initiator (source) node to a recipient (destination) node in local and wide area networks. To ensure the consistency of the data at the receiving end, conventional practice involves the use of an acknowledgment transmission from the recipient node back to the initiator node upon acceptance of the information in the frame by the recipient. Though acknowledgment signals are not used as a routine in voice communication environments, comprehensive acknowledgment usage is mandatory for integrity in digital data transmissions. A commercially available example of a serial network is the fibre optical serial channel used with the RISC System/6000 workstation product (RISC System/6000 is a Trade Mark of International Business Machines Corporation) sold by IBM Corporation. Another example of such a system is defined by the Fibre Channel Standard (FCS) being developed by the American National Standards Institute (ANSI) X3T9.3 Task Group. The technology is documented in the Fibre Channel Physical and Signaling Interface (FC_PH) Rev. 2.2 document available from Global Engineering, 2805 McGaw Street, Irvine, California 92714. A fundamental weakness of the technologies in present use and proposed in such standards arises from the need of an acknowledgment frame for each data frame transmitted by the initiator. Without specific network protocol constraints, out-of-order delivery of data frames is the serial packet network norm of operation. Even if delivery of data frames or packets follows the order transmitted, there remains the possibility that the processing of the frames by the recipient to confirm adequacy of the information in the frames may differ between successive frames. The timing of the acknowledgment transmissions would follow accordingly. Similarly, the acknowledgment frame is also subject to the out-of-order delivery to the initiator as a consequence of a busy network. In some circumstances the acknowledgment frame is completely lost as a consequence of an error in the network. Also possible are volitional deletions of acknowledgments by the network as a consequence of congestion or priority conditions. On the other hand, the rate of network communication is reduced significantly if the protocol requires that the data frames wait for an acknowledgment of each preceding data transmission, or that channels of the network be monopolized to ensure consistency of the data transmission and acknowledgment information. In addition to acknowledgments that are lost, and as a consequence initiate error procedures within the network, standards of the type noted earlier define networks in which one or more acknowledgment frames have the misfortune of being transmitted and retransmitted into a then busy network. In each case the acknowledgment frames are returned to recipient node for later retransmission while the initiator node waits for the acknowledgment specific to the data frame. Given the difficulty of handling out-of-order or lost acknowledgments, the prevailing design practice has been to require an ordered transmission in which an acknowledgment is expected for each data frame transmitted. Though the standards contemplate the use of time windows for delayed acknowledgment, the approach has proven to be relatively slow and particularly susceptible to further degradation as network congestion increases. British Patent Application GB-A-2229896 teaches a method for individually acknowledging the reception of a plurality of data frames in a communication network. The acknowledgment frame sent by the recipient are sent in response to receiving a message packet and include status information for the last message packet received along with status information for the seven message packets previously received. If, after a timeout period expires, no message packets have been received, a status inquiry message is transmitted. The above mentioned prior art has the drawback of requiring a big sized acknowledgment packet to be able to transmit all the required information. This drawback may become particularly heavy with big data blocks having many frames. In a low data loss environment, a minimized acknowledgment system would be desired. It is an object of the present invention to provide a technique which alleviates the above drawbacks. According to the present invention we provide a system according to claim 1. Also, according to the present invention, we provide a method according to claim 5. The present invention will be described further, by way of example only, with reference to an embodiment thereof as illustrated in the accompanying drawings, in which: Figure 1 is a schematic block diagram of a network. Figure 2 is a schematic block diagram of a fibre channel standard communication hierarchy. Figure 3 is a schematic block diagram of a FC-2 frame format. Figure 4 is a schematic block diagram of a frame header format. The preferred embodiment of the present invention finds particular usage and value in systems and methods conforming to the Fibre Channel Standard (FCS) defined by the ANSI X3T9.3 Task Group. The FCS defines a serial communication architecture and protocol for a network composed of multiple nodes connected through a communication medium. Information in the form of a data frame or packet is transmitted from an initiator node to a recipient node. FCS also defines an acknowledgment protocol, in which the recipient transmits a frame or packet of information back to the initiator to indicate reception of the data frame or packet. A high level depiction of the FCS network appears in Figure 1. Fabric 1 is the medium of communication, and broadly encompasses both optical and electronic transmission and related data manipulation resources. The fabric has connected thereto a multitude of N_Ports 2, each comprised of initiator/recipient systems suitable to communicate over the network. Examples of node systems include workstations, super computers, disk arrays, and personal computers. Prior practices have confirmed that where switching fabric 1 allows out-of-order delivery, transmissions requiring acknowledgments are slow in the absence of a bandwidth allocation (channel monopoly) mode of operation. The poor performance for an out-of-order delivery protocol has been attributed to the fabric busy states or priority transmissions which delay mandated acknowledgment frames. The preferred embodiment of the present invention provides out-of-order delivery of both data and acknowledgment frames while retaining network performance. The initiator node provides with each data frame transmitted to the recipient a frame serial number or sequence count for the frame. Each acknowledgment frame transmitted by the recipient, to indicate delivery of the data frame, contains the matching serial number or sequence count of the corresponding data frame which it is acknowledging. However, the acknowledgment frame also incorporates a control bit within the frame header parameter field to indicate the status at the recipient as of that data frame. The status in the acknowledgment frame indicates whether or not all acknowledgments to data frames prior to that identified by the acknowledgment frame serial number or sequence count have been transmitted by the recipient. The additional control parameter can be a single bit, indicating by binary state the composite transmission history of earlier acknowledgment frames. A preferred implementation of the acknowledgment protocol described above draws upon the FCS network depicted in Figure 1. As defined by FCS, the channels of communication between nodes provide for any-to-any and peer-to-peer communication, as well as master-slave or initiatortarget relationships. Each has resources to provide three classes of service through the fabric: Class 1 - Dedication Connection, Class 2-Multiplex (Connectionless), and Class 3 - Datagram (Connectionless). Each FCS channel is defined as logically composed of multiple hierarchical levels, as schematically depicted in Figure 2. The channel is not "layered" with fixed service intervals between levels, but rather, allows for a high level of chip integration of functions in successive layers. For instance, the signal protocols accomplished in layers FC-0, FC-1 and FC-2 can be implemented in a single integrated circuit chip. FC-0 defines the physical link attributes, which include support for various data rates, single and multi-mode optical fibre, coaxial cable, and twisted pair wires. Transmitter/receiver pairs include long wave and short wave lasers, long wave LEDs, and electrical interfaces. FC-1 uses the IBM 8B/10B transmission code to provide reliable communication. The 8B/10B code is DC-balanced and provides special 10-bit transmission characters which facilitate byte and word alignment through the use of ordered sets. An ordered set is a four byte word which contains a K28.5 in its first position followed by three data characters. Ordered sets are used to specify primitive signals, primitive sequences and frame delimiters (Start_of_Frame, End_of_Frame). Primitive sequences are ordered sets of digital information used to initialize or reset the fibre link. Continuous transmission of a specific primitive sequence conveys network status information. Each primitive sequence is interlocked waiting for a primitive sequence transmitted in response. Following a link initialization protocol of primitive sequences, idles (a primitive signal) are transmitted on the link. Frame transmission is accomplished by inserting a frame in the idle stream. Each frame is encapsulated between a Start_of_Frame (SOF) delimiter and an End_of_Frame (EOF) delimiter, as shown in Figure 3. The Start_of_Frame delimiter delineates a frame boundary, defines a sequence boundary, and identifies the Class (1, 2, or 3) of the frame. The frame header immediately follows the SOF and contains sufficient information to control the transfer of information from a ULP in an initiator (source) N_Port to a ULP in a recipient (destination) N_Port. Following the frame header is the data field which may contain optional headers and payload. A 32-bit CRC checks the contents of the frame from the frame header to the end of the data field. The data field is required to be a word-multiple and may contain up to three fill bytes on the end of the data field. The FC-2 level (Figure 2) provides the format for performing I/O operations, known as exchanges. An exchange is composed of one or more sequences flowing in one direction at any given time. Each sequence is composed of a consecutive series of data frames. As shown in Figure 3, the first data frame of a sequence is identified by a SOFix (initiate) to define the beginning of a sequence (where x specifies Class 1, 2, or 3). Other frames within the sequence are started with a SOFnx (normal). The fields composing the frame header are shown in Figure 4. R_CTL is used for routing control. D_ID (Destination Identifier) and S_ID (Source Identifier) are 24 bit fields used to identify a specific N_Port within the address domain of the fabric. The small address was chosen to allow fast N_Port selection within the fabric. The TYPE field specifies the upper level protocol being used. The F_CTL (Frame Control) field provides a number of control bits which aid the signaling protocol. SEQ_ID is a one-byte identifier to identify a specific sequence within an exchange. DF_CTL (Data Field Control) identifies the presence of optional headers in the data field. The SEQ_CNT field is a frame count within the sequence. Each sequence starts with a SEQ-CNT of 0 and is incremented by one for each frame transmitted. The OX_ID is a 2-byte exchange identifier uniquely assigned by the initiator of the exchange. The RX_ID is a 2-byte exchange identifier uniquely assigned by the recipient of the exchange. The parameter field is used to contain a relative offset of the payload for data frames. In Class 1 and 2, each data frame is acknowledged by transmitting an ACK frame with a matching SEQ_CNT. Busy and reject frames are also defined to notify the transmitter that the frame could not be delivered. A Class 1 dedicated connection is requested by transmitting a frame containing an SOFc1 delimiter. The S_ID N_Port waits for an ACK frame in response from the recipient N_Port. When the ACK is received, the connection is established and the first sequence initiated. Each N_Port may then initiate other sequences. The connection is removed by transmitting an EOFdt (disconnect-terminate) delimiter on the last ACK. A remove connection protocol is defined in order to coordinate removal of the connection. In Class 2, each data frame is delivered as a single entity without the establishment of a dedicated connection. In Class 2, busy and reject response frames are also provided. The normal rules for originating and managing exchanges apply to both Class 1 and 2. In Class 3, each data frame is delivered on a best-effort basis without response frames. In order to determine the operating characteristics of an N_Port, each N_Port performs a login sequence with the fabric and each N_Port with which it communicates. Parameters include classes supported, number of buffers available (credit), and worldwide name. Since the number of buffers is known, each N_Port may transmit frames up to its credit limit (M) prior to receiving an ACK frame. The ACK frame transmitted in response indicates that the buffer which received the frame is available for further frame reception. If an error is detected, the sequence is aborted and retransmitted in its entirety or from the point of failure, depending on the ULP. In the preferred context of a fibre channel standard network operating in a Class 2 mode, the preferred embodiment of the present invention provides system and method resources at the initiator and recipient nodes to create and use control information contained in a frame header parameter field of the acknowledgment frame, such control information indicating that all prior acknowledgment frames were transmitted by the recipient. The preferred implementation utilizes a control bit in parameter field 3 of the frame header defined by the format in Figure 4. The delivery of an acknowledgment to the initiator node with the control bit set to 0 indicates that all acknowledgment frames prior to the serial number associated with that acknowledgment were in fact transmitted by the recipient node. On the other hand, the presence of a 1 in the control bit position indicates that at least one of the data frames with a serial number preceding that of the acknowledgment had, as of the transmission time of the acknowledgment in question, either not been received, or not been processed by the recipient, been found to have an error, or not been acknowledged. Thus, the combination of the data frame serial number and control bit in the acknowledgment frame extends the status information to include both a data frame delivery status and an acknowledgment transmission history. The use of an acknowledgment frame with a control bit indicative of prior data frame receipt and acknowledgment transmission status provides numerous network benefits. First, it permits out-of-order delivery and processing of data frames at the recipient node, since the status of the order as perceived by the initiator is reset each time the control bit conveys a historical update. Out-of-order delivery is similarly permissible for the acknowledgment frames. This is particularly important in that a network conforming to the architecture and protocol defined in the fibre channel standard is susceptible to conflicting transmissions which have priority. Such events can delay or defer for later re-transmission the affected acknowledgment frames. Furthermore, even the complete loss of an acknowledgment frame is no longer of consequence when utilizing the system and method defined by the preferred embodiment of the present invention. In the preferred implementation, a workstation such as the RISC System/6000 with an AIX operating system, both available from IBM Corporation, executes application code at the initiator and recipient nodes to accomplish the methods defined by the invention. The initiator is the transmitter of data frames and the receiver of acknowledgment frames. The recipient is the receiver of the data frames and transmitter of the acknowledgment frames. Both the initiator and recipient track the progress of the sequence (collection of data frames flowing in one direction) in a Sequence Status Block. In this embodiment, Fabric Busy (F_BSY) frames are processed. In addition, Max_Credit is used as the upper bound on the number of unacknowledged data frames that may be transmitted before receiving an acknowledgment. Credit_Cnt is a variable in the transmitter used to count data frames which have not been acknowledged. Credit_Cnt is incremented on data frame transmission and decremented on reception of an acknowledgment. Both F_BSY and Credit_Cnt are optional features. When Parm=0 in the ACK frame, all acknowledgment frames up to that FR_CNT have been transmitted. When Parm=1 in the ACK frame, one or more previous data frames has not been acknowledged. Pseudocode, from which source code can be derived, sets forth the preferred process to be accomplished at the initiator node. In general, the pseudocode prescribes the tracking of data frame transmissions and the receipt of related acknowledgment frames. The pseudocode begins with an initialization sequence, defines a data frame transmission tracking sequence, defines an acknowledgment receipt processing sequence, and concludes with a sequence responsive to the acknowledgment information. The variables used in the pseudocode are defined individually as follows: FR_CNT - the serial number transmitted in the Data frame by the Initiator (i.e. part of the frame header). I_FR_CNT - the highest Data frame serial number transmitted by the Initiator which is retained in the Sequence Status Block. ACK_FR_CNT - the highest serial number of any ACK frame received which is retained in the Sequence Status Block. ACK_R_R - ACK_Receive_Register (in this example, 8 bits) indexed 0 to 7 where index value 7 (a bit) corresponds to ACK_FR_CNT. Index value 6 corresponds to ACK_FR_CNT-1 and index value 0 corresponds to ACK_FR_CNT-7. CREDIT_CNT - a value representing the number of buffers available in the Recipient for receiving Data frames. MAX_CREDIT - a value representing the maximum number of buffers available at the Recipient for receiving Data frames. MISS_ACK_CNT - a count of ACK frames received which are out of the ACK window of processing. Credit is reclaimed after the Sequence is completed. The system and process activities at the recipient node generally track the data frame reception and the acknowledgment frame transmission operations. The pseudocode begins with an initialization sequence, defines operations related to the reception of a data frame, defines processes associated with creating a frame header for the acknowledgment frame, undertakes the transmission of the acknowledgment frame, and defines a response to a busy state of the network fibre. The variables used in the pseudocode set forth below for the recipient node are defined as follows: FR_CNT - the serial number received in the Data frame by the Recipient (i.e. part of the frame header) and transmitted in the ACK frame acknowledging the Data frame specified by FR_CNT. DF_FR_CNT - the highest Data frame serial number received by the Recipient which is retained in the Sequence Status Block. DF_R_R - Data frame _Receive_Register (in this example, 8 bits) indexed 0 to 7 where index value 7 (a bit) corresponds to DF_FR_CNT. Index value 6 corresponds to DF_FR_CNT-1 and index value 0 corresponds to DF_FR_CNT-7. This register is used to detect missing Data frames. ACK_FR_CNT - the highest serial number of any ACK frame transmitted which is retained in the Sequence Status Block. ACK_T_R - ACK_Transmit_Register (in this example, 8 bits) indexed 0 to 7 where index value 7 (a bit) corresponds to ACK_FR_CNT. Index value 6 corresponds to ACK_FR_CNT-1 and index value 0 corresponds to ACK_FR_CNT-7. CREDIT_CNT - a value representing the number of buffers available in the Recipient for receiving Data frames. BITNUM - a register used in calculations to set bits in a register. SETBIT - a register used in calculations to set bits in a register. GOBIT - a single bit variable used to control a DO_WHILE loop.

Claims: A system for transmitting a data sequence composed of a consecutive series of data frames, the system comprising: initiator means for transmitting data frames incorporating frame sequence information to a recipient in a network (1); recipient means for receiving the data frames from the network, recipient means for transmitting acknowledgment frames and for determining the transmission status of previous acknowledgment frames, characterised in that the acknowledgment frames include a transmission status (3) which indicates whether all previous acknowledgment frames have been transmitted to initiator; and in that said initiator means comprises means, responsive to one of the data frames not being acknowledged by the recipient, for retransmitting the whole data sequence. A data processing system as claimed in claim 1, wherein the frame sequence information is a serial number or frame count attributed to the frame of data. A data processing system as claimed in any of claims 1 or 2, wherein the reception means cancels any error or retransmit conditions for data frames previously acknowledged. A data processing system as claimed in any preceding claim wherein the frame data is transmitted over a serial data network susceptible to frame loss, delay or rearranged order upon delivery. A method for transmitting a data sequence composed of a consecutive series of data frames, the method comprising the steps of: transmitting data frames incorporating frame sequence information to a recipient in a network (1); receiving the data frames from the network, transmitting from the recipient acknowledgment frames and determining the transmission status of previous acknowledgment frames, characterised in that the acknowledgment frames include a transmission status (3) which indicates whether all previous acknowledgment frames have been transmitted; and in that the method further comprises the step of responsive to one of the data frames not being acknowledged by the recipient, retransmitting the whole data sequence. A method as claimed in claim 5, wherein the frame sequence information is a serial number or frame count attributed to the frame of data.

Inventors: ROUSE GERALD LAVELLE, ROUSE, GERALD LAVELLE
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES
Application year: 1993
Main classification: H04L1
IPC codes: G06F13, H04L29, H04L1