Background of the Invention
1. Field of the Invention
This invention relates to an abnormal packet processing system. More particularly, it relates to an abnormal packet processing system in communications between processing units in a parallel computer system including I/O apparatuses and central processing units.
2. Description of the Related Art
When any abnormality occurs during packet communication between processing units of a data processing system employing an abnormal packet processing system according to the prior art, an instruction processing portion, in a transmitting processor, reports this abnormality to a receiving processor by allowing a packet, different from the packet under transmission, to contain control data and abnormality data and then transmitting it to the receiving processor.
According to the prior art in the system described above, the abnormal data packet has already been received at the point of time when the different packet containing the abnormality report data arrives at the receiving processor. As a result, there is the possibility that processing has been done on the abnormal packet. In other words, unnecessary processing is carried out on the abnormal packet.
Summary of the Invention
It is therefore the main object of the present invention to provide an abnormal packet processing system which eliminates the necessity for processing an abnormal packet by a receiving processor when an abnormality occurs in a packet during transmission.
In a data processing system including a plurality of processing units connected through an interconnection which may be, for example, a network, the object of the present invention described above can be accomplished by an abnormal packet processing system wherein a transmitting processor includes an abnormality detection means for detecting any abnormality when such abnormality occurs during the transmission of a data packet from a transmitting processor to a receiving processor, and an abnormality report data addition means for adding abnormality report data indicating the occurrence of such abnormality and the classification of such abnormality to the data packet, during transmission to the receiving processor.
Brief Description of the Drawings
The above and other objects and novel features of the present invention will become more apparent from the following description of the preferred embodiment when taken in connection with the accompanying drawings, wherein:
FIG. 1 is a block diagram useful for explaining the principle of a first embodiment of the present invention;
FIG. 2 is a block diagram useful for explaining the principle of a second embodiment of the present invention;
FIG. 3 is a block diagram showing the construction of a data processing system applied to an embodiment of the present invention;
FIG. 4 is a block diagram showing a first construction of a processing unit according to a first embodiment of the present invention;
FIG. 5 is a block diagram showing a construction of a transfer processing unit in a first embodiment of the present invention;
FIG. 6 is a flowchart useful for explaining the operation of the transfer processing unit shown in FIG. 5;
FIG. 7 is a diagram showing the construction of a packet according to a first embodiment of the present invention;
FIG. 8 is a diagram showing the content displayed on a display according to a first embodiment of the present invention;
FIG. 9 is a block diagram showing the construction of a transfer processing unit according to a second embodiment of the present invention; and
FIG. 10 is a flowchart useful for explaining the operation of the transfer processing unit shown in FIG. 9.
Description of the Preferred Embodiments
Prior to the description of the preferred embodiments of the present invention, the principle of the invention will be explained with reference to the associated drawings.
FIG. 1 is a block diagram useful for explaining the principle of one embodiment of the present invention. The drawing shows a data processor equipped with a plurality of processing units 1-1, 1-2, . . . , 1-n, and these processing units 1-1, 1-2, . . . , 1-n are connected with one another through an interconnection 2. According to the present invention, the transmitting processor 1-1 is equipped with an abnormality detection means 3 for detecting any abnormality when such abnormality occurs in a data packet which is being transmitted from the transmitting processor 1-1 to the receiving processor 1-2. Further, the transmitting processor 1-1 comprises an abnormality report data addition means 4 for adding abnormality report data to indicate the occurrence of this abnormality and its classification to the data packet during transmission, and for transmitting the data packet to the receiving processor 1-2.
The receiving processor 1-2 is equipped with an abnormality indication means 5 for holding displaying the received abnormality report data.
FIG. 2 is a block diagram useful for explaining the principle of a second embodiment of the present invention.
A plurality of processing units 1-1, 1-2, . . . , 1-n are shown connected through an interconnection 2 in FIG. 2 in the same way as in FIG. 1. According to this embodiment, the transmitting processor 1-1 is equipped with an abnormality detection means 3 for detecting any abnormality when such abnormality occurs in a data packet during transmission from the transmitting processor 1-1 to the receiving processor 1-2. The transmitting processor 1-1 is also equipped with a packet transmission inhibition means 6 for inhibiting the transmission of the data packet from the transmitting processor 1-1 when such abnormality is detected.
The transmitting processor 1-1 is equipped with an indication means 7 for indicating that transmission of the data packet is inhibited when the transmission of the data packet is inhibited.
According to the first embodiment of the invention shown in FIG. 1, the abnormality report data is added to the data packet during transmission and then the data packet is transmitted to the receiving processor 1-2. The receiving processor 1-2 displays the abnormality report data thus received. Accordingly, the report of the abnormal data arrives earlier at the reception processing unit and hence, abnormality processing becomes easier.
According to the second embodiment of the invention shown in FIG. 2, the transmission of the data packet from the transmitting processor 1-1 is inhibited when any abnormality occurs in the data packet during transmission from the transmitting processor 1-1 to the receiving processor 1-2. Accordingly, the processing of abnormal data does not occur or in the receiving processor.
FIG. 3 is a block diagram showing a data processing system to which the abnormal packet processing system according to the embodiment of the present invention is applied. In the drawing, a plurality of processing units 3-1 to 3-n are shown connected through a network 32. These processing units are, for example, vector operation circuits or scalar operations circuits of a parallel computer system, and constitute a multi-processor.
The network 32 may be either a switching network having a switching function, or a bus.
A packet is transmitted from one of the processing units to others. When any abnormality occurs in this packet during transmission, this abnormality is reported to the processing unit on the receiving side, or the transmission of the packet itself is inhibited by the transmitting processor, by the means of the embodiments of the present invention which will be described next.
FIG. 4 is a block diagram showing one construction of the processing unit according to the embodiment of the present invention. In this construction, the processing unit 3-1 includes a main storage 40 for storing instructions (that is, a program) and data; an instruction processing unit 41 for retrieving the instructions from the main storage 40 and executing them; a transfer processing unit 42 to transfer a packet between the main storage 40 and a network 32; and an abnormality detection circuit 43 for detecting the occurrence of any abnormality when such abnormality occurs in any of the main storage 40, the instruction processing unit 41 and the transfer processing unit 42 during transmission of the packet.
FIG. 5 is a block diagram showing the construction of the transfer processing unit 42 in the embodiment of the present invention. In this construction, the transfer processing unit 42 includes a main storage access control unit 50 for controlling access to the main storage 40; a data buffer 51 for storing the data read out from the main storage 40 and accumulating the data to be stored in the main storage 40 under the control of the main storage access control unit 50; a network transfer control unit 52; a network interface 53 and an abnormality indication device 54 for indicating that an abnormality exists in the received packet.
FIG. 6 is a flowchart useful for explaining the operation of the transfer processing unit 42 shown in FIG. 5.
FIG. 7 is a diagram showing the construction of the packet according to the embodiment of the present invention. As shown in FIG. 7, the packet comprises address data for designating a receiving processor, other control data and abnormality data which is added in accordance with the present invention. The control data includes memory access attributes in the transmitting processor, data relating to designation of the processing in the receiving processor, and so forth.
FIG. 8 shows the content of the abnormality data held by the indication device inside the processing unit on the receiving side or the transmitting side according to the present invention. As shown in FIG. 8, the indication device indicates that the transmission data is designated incorrectly, indicates that a multiple-bit error occurred in the transmission data, or indicates that hardware errors occurred inside the transfer processing unit.
The operation of the embodiment of the present invention will be explained with reference to FIGS. 3 to 6.
The main storage access control unit 50 accesses the main storage 40 under instruction from the network transfer control unit 52, and controls the transfer of data between the main storage 40 and the data buffer 51. The data buffer 51 temporarily stores the data when data transfer is carried out between the main storage 40 and the network 32, and also temporarily stores the data when a data write request is made by the data transfer unit 42 and by the main storage access control unit 50 to the main storage 40.
The network transfer control unit 52 inside the transfer processing unit 42 is activated by the control data in the transfer packet generated by the instruction processing unit 41, and issues a main storage access request to the main storage access control unit 50 so as to read out the control data from the transfer packet. The data is read out from the main storage 40 in response to this access request, and is stored in the buffer 51 (Step 61 in FIG. 6). The network transfer control unit 52 controls the network interface 53, and sends the control data from the data buffer 51 to the network 32 (Step 62 in FIG. 6). When any abnormality occurs in the main storage 40, the instruction processing unit 41 or the transfer processing unit 42 during the transfer of the control data from the transfer processing unit 42 (in the case of Y at Step 63 in FIG. 6), the abnormality detection circuit 43 detects this abnormality and reports it to the network transfer control unit 52. Upon receiving this report, the transmission abnormality data addition device 55 inside the network control unit 52 adds the abnormality data to the data packet during the transmission (Step 64 in FIG. 6).
When no abnormality is detected, the data from the data buffer 51 is delivered to the network 32 (Step 65 in FIG. 6).
Upon receiving the packet having the abnormality data added thereto, the processing unit on the receiving side allows the abnormality indication device 54 to hold details of the abnormality. The abnormality indication device 54 is a register to which reference can be made from the instruction processing unit. This abnormality can also be held in the abnormality indication device 54 on the transmitting side.
FIG. 9 is a block diagram showing the construction of the transfer processing unit according to another embodiment of the present invention. The same reference numerals will be used in this drawing to represent the same circuit elements as in FIG. 5 and a suffix a will be added to the reference numeral to represent a modified circuit element which is analogous to one shown in FIG. 5.
In FIG. 9, delivery of the normal data packet is carried out in the same way as in FIG. 5. When any abnormality occurs in the main storage 40, the instruction processing unit 41 or the transfer processing unit 42a during the transfer of the data packet, the abnormality detection circuit 43 detects this abnormality and reports it to the network transfer control unit 52a. Upon receiving this report, the abnormality packet transfer inhibition device 55a inside the network transfer control unit 52a inhibits the transmission of the abnormal data packet.
The abnormality indication device 54 inside the processing unit on the transmission side indicates the inhibition of the transmission of the packet as well as the content of this abnormality.
FIG. 10 is a flowchart useful for explaining the operation of the transfer processing unit 42a shown in FIG. 9. In this drawing, the control data of the packet is first read out from the main storage 40 at Step 101 in the same way as in FIG. 6, and is stored in the data buffer 51. When the abnormality report from the abnormality detection circuit 43 arrives during the storage of this control data (in the case of Y at Step 102), the abnormality data is sent to the abnormality indication device 54 at Step 103, the control data in the data buffer 51 is made invalid at Step and the packet transfer is inhibited at Step 105.
When the abnormality report does not exist at Step 102, the control data is read out from the data buffer 51 at Step 106 and is sent to the network 32. The data is then read out from the data buffer 51 at Step 107 and is sent to the network 32. After the data representing that no abnormality exists is added to the packet at Step 108, the packet transfer is completed.
Examples of abnormality referred to in FIGS. 5 and 9 are multiple-bit errors in the main storage 40 and hardware errors inside the transfer processing unit.
Although the foregoing embodiments illustrate the case where the transmission abnormality data addition device and the abnormal packet transfer inhibition device are constituted by the hardware, they may also be accomplished by software.
As can be clearly understood from the explanation given above, one of the embodiments of the present invention adds the abnormality report data to the data packet when any abnormality exists on the transmission side during the data transfer between the processing units of the data processing system. For this reason, transfer of another packet for notifying this abnormality to the reception processing unit becomes unnecessary, and the abnormality report arrives up in the receiving processing unit, so that the abnormality processing becomes more simple. According to another embodiment of the present invention, the transmission of the data packet itself is inhibited when any abnormality exists on the transmission side. Accordingly, processing to cope with abnormality becomes unnecessary at the receiving processing unit.