Background of the Invention
The present invention relates to a system for relaying messages transmitted in a distributed processing system, between interactive processing units operating on a host computer and terminals, and more particularly to a system for relaying messages between the host computer and a distributed computer.
Prior Art
In a message relaying system of this kind according to the prior art, to eliminate the need for the host computer and the distributed computer to be aware of the connection of a distributed computer to the host computer, the host computer performs its system generation as if terminals were directly connected to it even though the distributed computer is directly connected to the host computer. In a conventional message relaying system, a host computer can establish a logical connection only with terminals or other host computers which are defined in system generation.
Since such a host computer cannot establish a logical connection with a distributed computer, however, the host computer must perform its system generation by regarding the distributed computer as a terminal. In this case, such a distributed computer is called a virtual terminal. Since the distributed computer operates as if it were a real terminal, the host computer can establish a logical connection with the distributed computer as well as with the real terminal. Likewise, the distributed computer establishes a logical connection with the host computer during the system generation by regarding the host computer as a real terminal.
Therefore the distributed computer performs its own system generation as if terminals were also connected together with it to the host computer. Thus as many logical communication paths as terminals are provided between the host computer and the distributed computer, and relaying of messages is accomplished using those logical communication paths.
The conventional message relaying system referred to above has the disadvantage that, because as many logical communication paths as terminals need to be provided between the host computer and the distributed computer, a virtual terminal should be provided between the host computer and the distributed computer and be defined in system generation by both the host and the distributed computers. There also is the further disadvantage that, if any terminal is additionally provided, an addition should be made to the definition of the virtual terminal.
Summary of the Invention
Accordingly, it is one object of the present invention to dispense with the virtual terminal unit otherwise required between the host and distributed computer connected to them.
According to the present invention, there is provided a message relaying system for a distributed processing system provided with a plurality of terminals, a distributed computer connected to the terminals by a first set of communication lines and a plurality of host computers connected to the distributed computer by a second set of communication lines, wherein the terminals relay messages to and from the distributed computer to perform interactive processing with the host computers.
The message relay system is further comprised of a terminal identifier correspondence management table for managing logical terminal identifiers. A logical terminal identifier is provided for each logical terminal for use by the interactive processing unit operating on each host computer. Terminal identifiers, one provided for each of the terminals, correspond with the logical terminal identifiers. The terminal identifiers are provided in system generation by the distributed computer and can be sent in a message to the host computers.
A terminal identifier adding means is provided in the distributed computer for adding into a message received by the distributed computer from one of the terminals, the terminal identifier of the terminal, determined from a communication control table formulated in system generation by the distributed computer.
A terminal identifier deleting means is provided in each host computer for deleting the terminal identifier in a message received from the distributed computer. The message is then provided to the interactive processing unit as if the message were received from the logical terminal indicated by the logical terminal identifier corresponding to the pertinent terminal identifier found in the terminal identifier correspondence management table.
A terminal identifier adding means in the host computer, at a transmit request, finds the terminal identifier of the logical terminal from the terminal identifier correspondence management table corresponding to the logical terminal identifier received from the interactive processing unit, and adds the terminal identifier into the message.
A terminal identifier deleting means is provided in the distributed computer for finding, in the communication control table, based on the terminal identifier in a message received by the distributed computer from the host computer, the terminal to which the message is to be sent, and at the same time deleting the terminal identifier in the message.
Brief Description of the Drawings
Other features of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings wherein:
FIG. 1 is a block diagram illustrating the components of one preferred embodiment of the invention;
FIGS. 2(a)-2(c) show further details of the terminal identifier correspondence management tables 12 and 12-1 shown in FIG. 1.
FIG. 3(a) is a flow diagram of a typical message transfer between a terminal and a host computer according to the present invention.
FIG. 3(b) is a flow diagram of a typical message transfer between a host computer and a terminal according to the present invention.
Detailed Description of the Preferred Embodiments
Each host computer generates the logical terminal identifiers for logical terminals during the system generation, independently, on the basis of a job control statement described in a job control language (JCL) provided to the host computer by an operator. The host computer can obtain real terminal identifiers generated by the distributed computer by receiving a message from the distributed computer.
Referring to FIG. 1, one preferred embodiment of the present invention is provided with terminals 1, 2 and 3, a distributed computer 4, and host computers 7 and 7-1.
A communication control table 6 is formulated system generation by the distributed computer 4. Terminal identifier adding means 5 adds a terminal identifier to a message received by the distributed computer 4 from a terminal (1, 2, or 3). Terminal identifier deleting means 8 deletes a terminal identifier in a message received by the distributed computer 4 from a host computer 7 or 7-1. Terminal identifier adding means 5 and deleting means 8 are preferably implemented using conventional software techniques. Host selecting means 9 determines which host computer, 7 or 7-1, should be sent a message received from a terminal.
An interactive processing unit 10 operates in a host computer. Terminal identifier deleting means 11 deletes a terminal identifier in a message received by the host computer 7 from the distributed computer 4. A terminal identifier correspondence management table 12 manages the correspondence between the logical terminal identifiers of logical terminals used by interactive processing unit 10 and the terminal identifiers. Terminal identifier adding means 13 adds in the host computer 7, a terminal identifier to a message to be sent to the distributed computer 4.
An interactive processing unit 10-1, terminal identifier deleting means 11-1, a terminal identifier correspondence management table 12-1 and terminal identifier adding means 13-1 perform respectively the same functions, in the host computer 7-1, as the corresponding constituent elements of the host computer 7.
Although only two host computers and three terminals are represented in FIG. 1, it is possible to have three or more host computers and/or four or more terminals.
FIG. 2(a) is a diagram illustrating an example of the structure of a terminal identifier correspondence management table 12.
FIGS. 2(b) and 2(c) show examples of terminal identifier correspondence management tables 12 and 12-1 when the terminal identifiers of the terminals 1, 2 and 3 are CRTO 1, CRTO 2 and CRTO 3, respectively. In the example of FIG. 2(b), the logical terminal identifiers 14 of the logical terminals used by the interactive processing unit 10 are TERMINALs 1 through 3, respectively. The logical terminal identifiers 15 of the logical terminals used by the interactive processing unit 10-1 are TERMINALs 1 through 3, respectively, as shown in FIG. 2(c).
Next will be described in detail the operation of this preferred embodiment.
When the interactive processing unit 10 is actuated for processing a message inputted from a terminal, the terminal identifier correspondence management table 12 is prepared by job management. Table 12 is created based on the job control statement described in the JCL provided during system generation and is not changed thereafter. The terminal identifiers are stored in a predetermined storage in a main memory or in peripheral equipment. When the interactive processing unit 10-1 is actuated, the terminal identifier correspondence management table 12-1 is prepared.
The distributed computer 4, upon receiving a message transmitted by terminal 1, obtains CRTO 1, the terminal identifier of the terminal 1, from the communication control table 6 with the terminal identifier adding means 5. The adding means 5 then adds the terminal identifier to the message and the host selecting means 9 selects the host computer 7 and the transmits the message to the host computer 7. This description does not cover details of the host selecting means 9 which are unnecessary for an understanding of the invention.
Upon receiving the message transmitted by the distributed computer 4, the host computer 7, with its terminal identifier deleting means 11, searches the terminal identifier correspondence management table 12 for CRTO 1, which is the terminal identifier in the message, and finds TERMINAL 1, which is a logical terminal identifier that corresponds to the terminal identifier CRTO 1. After that, the deleting means 11 deletes the terminal identifier from the message, and provides the message and the logical terminal identifier obtained by referring to table 12, to the interactive processing unit 10 as if it were received from the logical terminal identified by TERMINAL 1. As a result, processing unit 10 knows that it has received the message from the logical terminal corresponding to the logical terminal identifier TERMINAL 1 and processes the message. At a request from the interactive processing unit 10 to transmit a message to the logical terminal, identified by the logical terminal identifier TERMINAL 1, the host computer 7, with its terminal identifier adding means 13, searches the terminal identifier correspondence management table 12 using the logical terminal identifier TERMINAL 1, and finds the corresponding terminal identifier CRTO 1. Then adding means 13 adds the terminal identifier CRTO 1 to the message, and transmits the message to distributed computer 4.
Upon receiving the message transmitted by host computer 7, distributed computer 4, with its terminal identifier deleting means 8, finds the destination terminal, terminal 1 in the communication control table 6 which corresponds to the terminal identifier CRTO 1. After that, deleting means 8 deletes the terminal identifier CRTO 1 from the message, and transmits the message to the terminal 1.
Similarly, upon receiving a message transmitted by the terminal 2, the distributed computer 4, finds CRTO 2, which is the terminal identifier that corresponds to the terminal 2, from the communication control table 6. With the terminal identifier adding means 5, distributed computer 4 adds terminal identifier CRTO 2 to the message, selects the host computer 7-1 with the host selecting means 9 and transmits the message to the host computer 7-1.
Upon receiving the message transmitted by the distributed computer 4, the host computer 7-1, with its terminal identifier deleting means 11-1, searches the terminal identifier correspondence management table 12-1 using the terminal identifier CRTO 2, to find the corresponding logical terminal identifier TERMINAL 2. After that, deleting means 11-1 deletes the terminal identifier CRTO 2 from the message, and provides the message to the interactive processing unit 10-1 as if it were received from the logical terminal identified by TERMINAL 2.
At a request from the interactive processing unit 10-1 to transmit a message to the logical terminal identified by logical terminal identifier TERMINAL 2, the host computer 7-1, with its terminal identifier adding means 13-1, searches the terminal identifier correspondence management table 12-1 using the logical terminal identifier TERMINAL 2, and finds the corresponding terminal identifier CRTO 2. Then adding means 13-1 adds the terminal identifier CRTO 2 into the message, and transmits the message to distributed computer 4.
Upon receiving the message transmitted by the host computer 7-1, the distributed computer 4, with its terminal identifier deleting means 8, finds the terminal 2 from the communication control table 6 which corresponds to the terminal identifier CRTO 2 in the message. After that, deleting means 8 deletes the terminal identifier CRTO 2 from the message, and transmits the message to the terminal 2.
Another message transmitting example will be described referring to FIGS. 3(a) and 3(b). A message transfer from a terminal unit to a processing unit as shown in FIG. 3(a) is as follows:
1. The terminal unit 1 transmits the message to the distributed computer 4.
2. The terminal identifier adding means 5 searches the terminal identifier of the terminal unit 1 from the communication control table 6, and adds the terminal identifier CRTO 1 thus obtained to the message received from the terminal unit 1 to send to the host computer 7.
3. The terminal identifier deleting means 11 refers to the terminal identifier correspondence management table 12 for the logical terminal identifier TERMINAL 1 corresponding to the terminal identifier CRTO 1, and deletes the terminal identifier CRTO 1 from the message. The means 11 sends the message and the identifier TERMINAL 1 to the unit 10.
A message transfer from a processing unit to a terminal as shown in FIG. 3(b) is as follows:
4. The interactive processing unit 10 processes a message and sends the processed message to the means 13.
5. The terminal identifier adding means 13 refers to the terminal identifier correspondence management table 12 for the terminal identifier CRTO 1 corresponding to the logical terminal identifier TERMINAL 1.
6. The terminal identifier adding means 13 adds the terminal identifier CRTO 1 to the processed message to send to the means 8 in the distributed computer 4.
7. The terminal identifier deleting means 8 searches for the terminal number corresponding to the identifier CRTO 1 in the communication control table 6, and deletes the terminal identifier CRTO 1 from the processed message.
8. The distributed computer 4 transmits the processed message to the terminal unit 1 corresponding to the terminal number.
Although the previous examples provided for a correspondence between terminal identifier CRTO 1, and logical terminal identifier TERMINAL 1, CRTO 2 and TERMINAL 2, etc., the more general case is for the terminal identifier to be CRTO X and the logical terminal identifier be TERMINAL Y where there is no required relationship between X and Y.
As hitherto described, the present invention provides the benefit of dispensing with the otherwise required virtual terminal unit between the host and distributed computers by having a terminal identifier handed over in communication between the host and distributed computers and unifying the otherwise plural logical paths between each host computer and the virtual terminal unit into a single logical path between the host and distributed computers.