JPH07200435A - Message communication system of decentralized processing system - Google Patents

Message communication system of decentralized processing system

Info

Publication number
JPH07200435A
JPH07200435A JP5334570A JP33457093A JPH07200435A JP H07200435 A JPH07200435 A JP H07200435A JP 5334570 A JP5334570 A JP 5334570A JP 33457093 A JP33457093 A JP 33457093A JP H07200435 A JPH07200435 A JP H07200435A
Authority
JP
Japan
Prior art keywords
address
message
node
request
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5334570A
Other languages
Japanese (ja)
Inventor
Manabu Tsukada
学 塚田
Masahide Yamashita
正秀 山下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP5334570A priority Critical patent/JPH07200435A/en
Publication of JPH07200435A publication Critical patent/JPH07200435A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the performance of the decentralized processing system by taking a process request in a process executable node and executing the request. CONSTITUTION:On the side of a processing request node 110, a function address adding means 114 adds a function address to a request message and sends them to a transmission line 100. On the side of the processing execution node 120, an address changing means 125 takes in the request message only when the function address of the received request message matches its function address, changes the transmission destination address into its node address, and passes it to AP 121, and a function address adding means 124 sends an answer message back to the transmission line 100. On the side of the processing request node 110, an address changing means 115 changes the transmission source address in the received answer message into the request destination address and a selecting means 116 selects and passes an adequate answer message to AP 111.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数ノード(コンピュ
ータ)が伝送路を介して接続された分散処理システムに
おける、ノード間の処理依頼のための依頼メッセージ及
びそれに対応する応答メッセージの通信方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication system of request messages for requesting processing between nodes and corresponding response messages in a distributed processing system in which a plurality of nodes (computers) are connected via a transmission line. .

【0002】[0002]

【従来の技術】従来、複数ノードが伝送路を介して接続
された分散システムにおいて、ノード間のメッセージ通
信方式としては主に以下の2つの方式がある。
2. Description of the Related Art Conventionally, in a distributed system in which a plurality of nodes are connected via a transmission line, there are mainly the following two message communication systems between nodes.

【0003】第1の方式はグローバル/グループ通信方
式である。この方式では、処理依頼ノードは、処理依頼
のための依頼メッセージを送信する場合、送信先アドレ
スとして全ノードを対象としたグローバルアドレスある
いは一部のノード群を対象としたグループアドレスを指
定し、送信元アドレスは該依頼ノード固定のノードアド
レスを指定し、これに、希望処理種別対応の機能コード
を設定した処理依頼情報、及び、所定の制御情報などを
付加して伝送路へ送信する。伝送路に接続された各ノー
ドが該依頼メッセージを受信すると、グローバル/グル
ープアドレスが一致するかアドレス判定し、不一致の場
合取り込まず、一致で取り込みの通信制御処理後、アプ
リケーションプログラムが受信した依頼メッセージ中の
機能コードに基づき実行を判定し、機能コードに対応す
るアプリケーションプログラムがなければ無視し、対応
するアプリケーションプログラムがあれば実行する。そ
して、該処理実行ノードは、依頼ノード固有のノードア
ドレス指定の送信先アドレス、当該処理実行ノード固有
のノードアドレス指定の送信元アドレス、制御情報及び
処理結果の応答情報などからなる応答メッセージを返信
する。
The first method is a global / group communication method. In this method, when sending a request message for a processing request, the processing request node specifies a global address for all nodes or a group address for a part of the node group as a destination address, and sends it. As the original address, a node address fixed to the request node is designated, and processing request information in which a function code corresponding to the desired processing type is set, predetermined control information, and the like are added and transmitted to the transmission path. When each node connected to the transmission path receives the request message, it determines whether the global / group addresses match, and if they do not match, the request message is received by the application program after the communication control processing of capturing without matching Execution is determined based on the function code inside, and if there is no application program corresponding to the function code, it is ignored, and if there is a corresponding application program, it is executed. Then, the processing execution node returns a response message including a destination address designated by the node address unique to the requesting node, a transmission source address designated by the node address unique to the processing execution node, control information, and response information of the processing result. .

【0004】第2の方式は個別通信方式である。依頼/
依頼メッセージの形式は第1の方式と基本的に同じであ
るが、処理依頼ノードは、送信先アドレスとして処理依
頼先ノード固有のノードアドレスを指定して依頼メッセ
ージを送信し、該依頼メッセージの送信先アドレスで指
定された特定ノードのアプリケーションプログラムが処
理を実行し、応答メッセージを返信する。該応答メッセ
ージを受信した処理依頼ノードは、該応答メッセージ中
の送信元ノードアドレスが処理依頼先ノード指定である
ことを確認し、該応答メッセージを取り込む。
The second method is an individual communication method. request/
The format of the request message is basically the same as that of the first method, but the processing request node transmits the request message by designating the node address unique to the processing request destination node as the transmission destination address, and then transmitting the request message. The application program of the specific node designated by the destination address executes the process and returns a response message. The processing request node that received the response message confirms that the source node address in the response message is the processing request destination node designation, and fetches the response message.

【0005】[0005]

【発明が解決しようとする課題】従来技術の第1の方式
によれば、同一機能コードを有するノードによる重複実
行による高信頼システムを構築できるものの、機能コー
ドが処理依頼メッセージ中の処理依頼情報内にあるため
に、全ノードあるいは一部ノードのアプリケーションプ
ログラムが一旦、該依頼メッセージを取り込んだ上で実
行の可否を判定することになるため、不経済であった。
According to the first method of the prior art, although a highly reliable system can be constructed by the duplicate execution by the nodes having the same function code, the function code is included in the processing request information in the processing request message. Therefore, it is uneconomical because the application programs of all the nodes or a part of the nodes once fetch the request message and judge whether the request message can be executed.

【0006】また、第2の方式によれば、依頼メッセー
ジ中の送信先個別ノードアドレス指定で処理依頼された
ノードのアプリケーションプログラムの異常(故障/過
負荷)時に、該ノードと同一機能を有する他ノードに、
処理依頼先を変更しなければならない。この場合や、処
理依頼先が有する機能と同一機能を他ノードに追加した
り同一機能を有するノードをシステムに追加する場合、
その都度送信先ノード情報の更新が必要になる問題があ
った。
Further, according to the second method, when the application program of the node requested to process the destination individual node address in the request message is abnormal (fault / overload), it has the same function as that node. On the node,
The processing request destination must be changed. In this case, or when adding the same function as the processing request destination to another node or adding a node having the same function to the system,
There was a problem that the destination node information had to be updated each time.

【0007】本発明の目的は、複数のノードが伝送路を
介して接続された分散処理システムにおいて、上記従来
の第1及び第2の方式の問題を解決したメッセージ通信
方式を提供することにある。
An object of the present invention is to provide a message communication system that solves the problems of the above-mentioned first and second conventional systems in a distributed processing system in which a plurality of nodes are connected via a transmission line. .

【0008】[0008]

【課題を解決するための手段】上記目的を領成するため
に、本発明は、各ノードの伝送路との電気信号インタフ
ェース制御を行う伝送路制御手段と、通信プロトコル処
理などを行う通信制御処理手段との間に、当該ノードが
処理依頼のための依頼メッセージを送信する場合、該依
頼メッセージ中の希望処理種別に対応する機能アドレス
を該依頼メッセージに付加するとともに、該依頼メッセ
ージ中の送信先アドレスを保持し、当該ノードが依頼メ
ッセージに対応する応答メッセージを送信する場合、該
応答メッセージの送信先アドレスを依頼メッセージ送信
元ノード固有のノードアドレス指定で送信する手段と、
依頼メッセージを受信した場合、該依頼メッセージ中の
機能アドレスが当該ノードで処理可能な処理種別に対応
する機能アドレスを示していると、該受信した依頼メッ
セージを取り込み、該依頼メッセージ中の機能アドレス
を削除すると共に、該依頼メッセージ中の送信先アドレ
スを当該ノード宛のアドレスに変更し、送信した依頼メ
ッセージに対応する応答メッセージを受信した場合、該
応答メッセージ中の送信元ノードアドレスを、該応答メ
ッセージに対応する依頼メッセージ送信時に保持した送
信先アドレスに変更する手段と、を設けたことを特徴と
する。
In order to achieve the above object, the present invention provides a transmission path control means for controlling an electric signal interface with a transmission path of each node, and a communication control processing for performing communication protocol processing and the like. When the node sends a request message for processing request to and from the means, the function address corresponding to the desired processing type in the request message is added to the request message, and the destination in the request message is added. When the node holds the address and the node transmits a response message corresponding to the request message, means for transmitting the destination address of the response message by specifying the node address unique to the request message source node,
When the request message is received, if the functional address in the request message indicates a functional address corresponding to the processing type that can be processed by the node, the received request message is fetched and the functional address in the request message is read. When deleting and changing the destination address in the request message to the address for the node and receiving the response message corresponding to the transmitted request message, the source node address in the response message is changed to the response message. And means for changing to the destination address held when the request message corresponding to is transmitted.

【0009】また、本発明は当該ノードが送信した依頼
メッセージに対して、複数のノードがそれぞれ返信した
応答メッセージ群を一時保持し、該応答メッセージ群か
ら正当な応答メッセージを選択する手段を追加したこと
を特徴とする。
Further, the present invention adds means for temporarily holding a response message group returned by each of a plurality of nodes with respect to a request message transmitted by the node and selecting a valid response message from the response message group. It is characterized by

【0010】[0010]

【作用】本発明では、処理依頼のための依頼メッセージ
送信時、該依頼メッセージに機能アドレスを付加して送
信し、該機能アドレスと合致する各ノードで該依頼メッ
セージを受信せしめる。該依頼メッセージを取り込んだ
ノードは、該依頼メッセージから機能アドレスを削除す
るとともに、該依頼メッセージ中の送信先アドレスを自
ノード宛アドレスに変換して(グローバルアドレスの場
合、自ノードを含むグループアドレスの場合は不要)、
受信した依頼メッセージをアプリケーションプログラム
に上げる。これにより、依頼メッセージ中の送信先アド
レスがグローバル/グループ/個別ノードアドレス指の
いかんに関係なく、該依頼メッセージに付加された機能
アドレスと合致する各ノードのアプリケーションプログ
ラムでは、それぞれ、該依頼メッセージを自分宛と見做
して処理を実行し、応答メッセージを返信する。
According to the present invention, when transmitting a request message for a processing request, a functional address is added to the request message and transmitted, and each node that matches the functional address receives the request message. The node that fetches the request message deletes the functional address from the request message and converts the destination address in the request message to the address addressed to itself (in the case of a global address, the group address including the own node If not necessary),
Send the received request message to the application program. As a result, the application message of each node in which the destination address in the request message matches the function address added to the request message regardless of the finger of the global / group / individual node address Execute the process as if it were addressed to you and return the response message.

【0011】処理依頼ノード側は、応答メッセージ受信
時、該応答メッセージ中の送信元ノードアドレスを、該
応答メッセージに対応する依頼メッセージ送信時の送信
先アドレスに変更する。これにより、依頼メッセージに
付加された機能アドレスと合致する各ノードからの応答
メッセージを、対応する該依頼メッセージ中の送信先ア
ドレスのいかんに関係なく、あたかも該依頼メッセージ
で指定した送信先アドレスのノードからのものとして依
頼元アプリケーションプログラムに上げることができ
る。
Upon receiving the response message, the processing request node side changes the source node address in the response message to the destination address at the time of transmitting the request message corresponding to the response message. As a result, the response message from each node that matches the functional address added to the request message is sent to the node of the destination address specified in the request message regardless of the destination address in the corresponding request message. Can be submitted to the requesting application program as from.

【0012】さらに、処理依頼ノードでは、機能アドレ
スと合致する各ノードから返信される複数の応答メッセ
ージの中から正当な応答メッセージを選択して依頼元ア
プリケーションプログラムに上げる。これにより、一部
の依頼先ノードからエラー応答メッセージが返送されて
も応答メッセージの正当性が保証される。
Further, the processing request node selects a legitimate response message from a plurality of response messages returned from each node that matches the functional address and sends it to the request source application program. As a result, the validity of the response message is guaranteed even if the error response message is returned from some of the request destination nodes.

【0013】[0013]

【実施例】以下、本発明の実施例について図面により詳
細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0014】<実施例1>実施例1は、図2に示すよう
に、複数のノード(コンピュータ)110,120,…
が伝送路100を介して直接的に接続されたシステム構
成を対象とするものである。
<Embodiment 1> In Embodiment 1, as shown in FIG. 2, a plurality of nodes (computers) 110, 120, ...
Is for a system configuration directly connected via the transmission path 100.

【0015】図1は本実施例におけるノード構成例を示
す図である。図において、ノード110はアプリケーシ
ョンプログラム111、通信制御処理手段112、伝送
路制御手段113、機能アドレス付加手段114、アド
レス変更手段115及びメッセージ選択手段116より
なる。ノード120の構成もノード110と同様であ
る。ここでは、ノード110,120のみを示したが、
同様の構成の複数のノードが伝送路100に接続されて
いる。
FIG. 1 is a diagram showing an example of a node configuration in this embodiment. In the figure, the node 110 comprises an application program 111, a communication control processing means 112, a transmission path control means 113, a function address adding means 114, an address changing means 115 and a message selecting means 116. The configuration of the node 120 is similar to that of the node 110. Although only the nodes 110 and 120 are shown here,
A plurality of nodes having the same configuration are connected to the transmission line 100.

【0016】図3に本発明の依頼メッセージ、応答メッ
セージの形式例を示す。図3(A)は依頼メッセージで
あり、機能アドレス210、送信先アドレス211、送
信元アドレス212、制御情報213、依頼情報本体2
14からなる。ここで、送信先アドレス211は、全ノ
ードを対象としたグローバルアドレス、一部ノードを対
象としたグループアドレス、あるいは個別のノードアド
レスの任意の指定が可能である。送信元アドレス212
は、該依頼メッセージ送信元ノード固有のノードアドレ
ス指定となる。制御情報213は通信プロトコル処理な
どのための情報である。依頼情報本体214は希望処理
種別対応の機能コードと処理依頼内容からなる。これら
211〜214の構成は従来の依頼メッセージと基本的
に同じであり、本発明で追加されたのは機能アドレス2
10である。該機能アドレス210には、当該依頼メッ
セージにおける依頼情報本体21中の機能コードあるい
はそれに類するコード(処理種別コード)が一種の送信
先アドレスとして設定される。図3の(B)は応答メッ
セージであり、送信先ノードアドレス(依頼メッセージ
送信元ノード)221、送信元ノードアドレス(該応答
メッセージ送信元ノード)222、制御情報223、応
答情報本体224よりなる。該応答メッセージの構成は
従来と基本的に同じである。
FIG. 3 shows a format example of the request message and the response message of the present invention. FIG. 3A shows a request message, which is a functional address 210, a transmission destination address 211, a transmission source address 212, control information 213, and a request information body 2.
It consists of 14. Here, the destination address 211 can be arbitrarily designated as a global address for all nodes, a group address for some nodes, or an individual node address. Source address 212
Is a node address specific to the request message transmission source node. The control information 213 is information for communication protocol processing and the like. The request information body 214 includes a function code corresponding to the desired processing type and processing request contents. The structure of these 211 to 214 is basically the same as the conventional request message, and the function address 2 is added in the present invention.
It is 10. In the function address 210, a function code in the request information body 21 in the request message or a code similar thereto (processing type code) is set as a kind of destination address. FIG. 3B shows a response message, which includes a destination node address (request message transmission source node) 221, a transmission source node address (the response message transmission source node) 222, control information 223, and a response information body 224. The structure of the response message is basically the same as the conventional one.

【0017】以下に、図1において、ノード110を処
理依頼ノード、ノード120を処理実行ノードとして、
本実施例1の動作を説明する。
In FIG. 1, the node 110 is a processing request node and the node 120 is a processing execution node.
The operation of the first embodiment will be described.

【0018】処理依頼ノード110のアプリケーション
プログラム111が発行する依頼メッセージを、通信制
御処理手段112を介して機能アドレス付加手段114
が受信する。該機能アドレス付加手段114が受信する
依頼メッセージは図3(A)の211〜214の構成を
とる。ここで、送信先アドレス211を、グローバルア
ドレス指定、グループアドレス指定あるいは個別ノード
アドレス指定のいずれにするかはアプリケーションプロ
グラム111の自由である。送信元アドレス212は、
当然、該処理依頼ノード110の固有ノードアドレス指
定となる。機能アドレス付加手段114は、受信した依
頼メッセージ中の送信先ノードアドレス(グローバル/
グループ/個別ノードアドレス)を保持すると共に、該
依頼メッセージ中の処理依頼本体214の機能コード
(希望処理種別)に対応する機能アドレスを該依頼メッ
セージに付加し、伝送路制御手段113を介して伝送路
100に送信する。この結果、図3(A)の210〜2
14の構成の機能アドレス付依頼メッセージが伝送路1
00に接続された全ノードに伝搬される(ブロードキャ
スト)。
A request message issued by the application program 111 of the processing request node 110 is sent to the functional address adding means 114 via the communication control processing means 112.
To receive. The request message received by the functional address adding means 114 has the configuration of 211 to 214 in FIG. Here, the application program 111 is free to set the destination address 211 to global address designation, group address designation, or individual node address designation. The source address 212 is
Naturally, the unique node address of the processing request node 110 is designated. The functional address addition means 114 uses the destination node address (global /
(Group / individual node address) is held, and a function address corresponding to the function code (desired processing type) of the processing request body 214 in the request message is added to the request message and transmitted via the transmission path control means 113. Send to path 100. As a result, 210-2 of FIG.
The request message with the functional address having the structure of 14 is the transmission line 1
00 is propagated to all nodes connected to 00 (broadcast).

【0019】処理実行ノード120では、上記機能アド
レス付依頼メッセージを、伝送路制御手段123を介し
てアドレス変更手段125が受信する。アドレス変更手
段125は、当該ノードで処理可能な処理種別に対応す
る機能アドレスを保持しており、受信した依頼メッセー
ジ中の機能アドレスと該保持してある機能アドレスと合
致した場合のみ該依頼メッセージを取り込み、合致しな
い場合は、該受信した依頼メッセージをそのまま伝送路
制御手段123を介して伝送路100へ送出する。な
お、該アドレス変更手段125は、自ノード120の異
常状態(故障、過負荷など)も保持し、該自ノードが異
常の場合、仮に機能アドレスが合致しても、該受信した
依頼メッセージをそのまま伝送路制御手段123へ戻
す。
In the processing execution node 120, the address changing means 125 receives the request message with the functional address via the transmission path control means 123. The address changing unit 125 holds the function address corresponding to the processing type that can be processed by the node, and sends the request message only when the function address in the received request message matches the held function address. If it does not match and is not matched, the received request message is sent to the transmission path 100 via the transmission path control means 123 as it is. The address changing unit 125 also holds an abnormal state (fault, overload, etc.) of the own node 120, and if the own node is in an abnormal state, even if the functional address matches, the received request message remains as it is. It returns to the transmission path control means 123.

【0020】依頼メッセージを取り込んだ場合、アドレ
ス変更手段125は、該依頼メッセージ中の機能アドレ
スを削除し、さらに、該依頼メッセージ中の送信先アド
レス211が自ノード120を指定していない場合、該
自ノード120宛のアドレスに変更し、該依頼メッセー
ジをメッセージ選択手段126へ渡す。この結果、アド
レス変更手段125からメッセージ選択手段126へ渡
される依頼メッセージは、図3(A)の211〜214
の構成で、且つ、送信先アドレス211は必ず自ノード
120宛のアドレス指定となる。メッセージ選択手段1
26は、該渡された依頼メッセージをそのまま通信制御
処理手段122へ送出し、通信制御処理手段122は、
該依頼メッセージ中の送信先アドレスが自ノード宛とい
うことで、該依頼メッセージをアプリケーションプログ
ラム121へ上げる。
When the request message is fetched, the address changing means 125 deletes the function address in the request message, and when the destination address 211 in the request message does not specify the own node 120, The address is changed to the address addressed to the own node 120, and the request message is passed to the message selecting means 126. As a result, the request message passed from the address changing unit 125 to the message selecting unit 126 is 211 to 214 in FIG.
In addition, the transmission destination address 211 is always the address designation for the own node 120. Message selection means 1
26 directly sends the passed request message to the communication control processing means 122, and the communication control processing means 122
Since the destination address in the request message is addressed to the own node, the request message is sent to the application program 121.

【0021】アプリケーションプログラム121は、受
信した依頼メッセージの依頼内容を実行し、対応する応
答メッセージを、通信制御処理手段122を介して機能
アドレス付加手段124が受信する。該応答メッセージ
は図3(B)の221〜224の構成をとる。ここで、
送信先アドレス221は該応答メッセージに対応した依
頼メッセージ送信元ノード110の固有ノードアドレス
指定、送信元アドレス222は自ノード120の固有ノ
ードアドレス指定となる。機能アドレス付加手段124
は、受信したメッセージが応答メッセージの場合、該応
答メッセージをそのまま伝送路制御手段123を介して
伝送路100へ送出する。
The application program 121 executes the request content of the received request message, and the functional address adding means 124 receives the corresponding response message via the communication control processing means 122. The response message has the configuration of 221 to 224 in FIG. here,
The transmission destination address 221 is the designation of the unique node address of the request message transmission source node 110 corresponding to the response message, and the transmission source address 222 is the designation of the unique node address of the own node 120. Functional address adding means 124
If the received message is a response message, then sends the response message as it is to the transmission path 100 via the transmission path control means 123.

【0022】同様にして、ノード120以外の各ノード
においても、受信した依頼メッセージに付加されている
機能アドレスと合致する機能アドレス(処理機能)を備
えたノード群が、それぞれ該依頼メッセージを取り込
み、その依頼内容を処理実行し、対応する応答メッセー
ジを伝送路100へ送出する。
Similarly, in each node other than the node 120, a node group having a functional address (processing function) that matches the functional address added to the received request message fetches the request message, The requested content is processed and executed, and the corresponding response message is sent to the transmission path 100.

【0023】処理依頼ノード110では、応答メッセー
ジを、伝送路制御手段113を介してアドレス変更手段
115が受信する。アドレス変更手段115は、当該ノ
ード110が送信した依頼メッセージに対応する応答メ
ッセージを受信した場合、該応答メッセージ中の送信元
アドレス222を、該応答メッセージに対応する依頼メ
ッセージの送信時に機能アドレス付加手段114が保持
しておいた送信元アドレスに変更し、メッセージ選択手
段116へ渡す。該アドレス変更手段115は、受信し
た各応答メッセージについて同様の処理を行い、それぞ
れ対応する依頼メッセージとの整合をとる。メッセージ
選択手段116は、アドレス変更手段115から渡され
た応答メッセージを一時保持し、同一処理依頼に対する
応答メッセージが所定数以上になった場合、その中から
正当性の高い応答メッセージを選択し、通信制御処理手
段112へ送出する。通信制御処理手段112は、該応
答メッセージをアプリケーションプログラム111へ上
げる。
In the processing request node 110, the address change means 115 receives the response message via the transmission path control means 113. When the address changing unit 115 receives the response message corresponding to the request message transmitted by the node 110, the address changing unit 115 sets the source address 222 in the response message to the functional address adding unit when transmitting the request message corresponding to the response message. The address is changed to the transmission source address held by 114 and passed to the message selection means 116. The address changing unit 115 performs the same process for each received response message and matches with the corresponding request message. The message selecting means 116 temporarily holds the response message passed from the address changing means 115, and when the number of response messages for the same processing request exceeds a predetermined number, selects a highly valid response message from among them and communicates the message. It is sent to the control processing means 112. The communication control processing means 112 sends the response message to the application program 111.

【0024】アプリケーションプログラム111では、
応答メッセージ中の送信元アドレスが、処理依頼メッセ
ージの送信元アドレスになっていることを確認し、該応
答メッセージが依頼先ノードからのものと判断する。
In the application program 111,
It is confirmed that the source address in the response message is the source address of the processing request message, and it is determined that the response message is from the request destination node.

【0025】図4に、依頼メッセージ送信時及び応答メ
ッセージ送信時の機能アドレス付加手段の処理フロー例
を示す。
FIG. 4 shows an example of the processing flow of the functional address adding means when transmitting the request message and the response message.

【0026】処理依頼のための依頼メッセージ送信時、
機能アドレス付加手段(例えば、図1の114)が、通
信制御処理手段(同112)からメッセージを受け取り
(ステップ301)、該メッセージ中の情報種別(依頼
/応答)を判定し(ステップ302)、依頼であるの
で、該依頼メッセージ中の送信先アドレスを保持すると
ともに(ステップ303)、該依頼メッセージ中の依頼
情報本体の希望処理種別(機能コード)に対応する機能
アドレスを該依頼メッセージに付加し(ステップ30
4)、伝送路制御手段に送信する(ステップ305)。
When sending a request message for a processing request,
The functional address addition means (for example, 114 in FIG. 1) receives the message from the communication control processing means (112) (step 301), determines the information type (request / response) in the message (step 302), Since it is a request, the destination address in the request message is held (step 303), and the function address corresponding to the desired processing type (function code) of the request information body in the request message is added to the request message. (Step 30
4), and transmits to the transmission path control means (step 305).

【0027】一方、受信した依頼メッセージに対応する
応答メッセージを送信する時、機能アドレス付加手段
(例えば図1の124)は、通信制御処理手段(同12
2)から受信した応答メッセージ中の情報種別(依頼/
応答)を判定し、応答であるので、該応答メッセージを
伝送路制御手段(同123)に送信する(ステップ30
6)。
On the other hand, when transmitting a response message corresponding to the received request message, the functional address adding means (for example, 124 in FIG. 1) is connected to the communication control processing means (same as above).
2) Information type in the response message received from (request /
Response), and since it is a response, the response message is transmitted to the transmission path control means (step 123) (step 30).
6).

【0028】図5に、依頼メッセージ受信時及び応答メ
ッセージ受信時のアドレス変更手段の処理フロー例を示
す。
FIG. 5 shows an example of the processing flow of the address changing means when receiving the request message and the response message.

【0029】依頼メッセージ受信時、アドレス変更手段
(例えば図1の125)は、伝送路制御手段(同12
3)からメッセージを受信し(ステップ401)、該メ
ッセージ中の情報種別(依頼/応答)を判定し(ステッ
プ402)、依頼であるので、該依頼メッセージ中の機
能アドレスと該アドレス変更手段が保持する機能アドレ
スとを比較し(ステップ403)、合致した場合、該受
信した依頼メッセージを取り込む。そして、該依頼メッ
セージ中の機能アドレスを削除し、さらに、該依頼メッ
セージ中の送信先アドレスを自ノード宛のアドレスに変
更し(ステップ404)、メッセージ選択手段(同12
6)へ渡す(ステップ405)。なお、取り込んだ依頼
メッセージ中の送信先アドレスが初めから自ノード宛の
個別アドレスの場合、全ノード対象のグローバルアドレ
スの場合、及び、自ノードを含むグループアドレスの場
合は、アドレス変更は不要である。ステップ403での
比較の結果、機能アドレスが合致しなかった場合には、
該依頼メッセージは取り込まない。
When the request message is received, the address changing means (for example, 125 in FIG. 1) is connected to the transmission line control means (see FIG.
3) The message is received from (step 401), the information type (request / response) in the message is determined (step 402), and since it is a request, the functional address in the request message and the address changing means hold it. It is compared with the functional address to be processed (step 403), and if they match, the received request message is fetched. Then, the functional address in the request message is deleted, the destination address in the request message is changed to the address addressed to the own node (step 404), and the message selecting means (same as above).
6) (step 405). If the destination address in the fetched request message is an individual address addressed to the own node from the beginning, if it is a global address for all nodes, or if it is a group address including the own node, no address change is required. . If the function addresses do not match as a result of the comparison in step 403,
The request message is not captured.

【0030】一方、送信した依頼メッセージに対応する
応答メッセージを受信した時、アドレス変更手段(例え
ば図1の115)は、受信メッセージ中の情報種別(依
頼/応答)を判定し、応答であるので、該応答メッセー
ジ中の送信元ノードアドレスを、該応答メッセージに対
応する依頼メッセージ送信時に機能アドレス付加手段
(同114)がステップ303で保持した送信先アドレ
スに変更し(ステップ406)、該応答メッセージをア
ドレス選択手段(同116)に渡す。
On the other hand, when the response message corresponding to the transmitted request message is received, the address changing means (for example, 115 in FIG. 1) determines the information type (request / response) in the received message and the response is a response. , The source node address in the response message is changed to the destination address held in step 303 by the functional address adding means (at step 114) when the request message corresponding to the response message is transmitted (step 406), and the response message is returned. To the address selecting means (116).

【0031】図6は、依頼メッセージ受信時及び応答メ
ッセージ受信時のメッセージ選択手段の処理フロー例で
ある。
FIG. 6 shows an example of the processing flow of the message selecting means when the request message is received and the response message is received.

【0032】依頼メッセージ受信時、メッセージ選択手
段(例えば図1の126)はアドレス変更手段(同12
5)からメッセージを受取り(ステップ501)、該メ
ッセージ中の情報種別(依頼/応答)を判定し(ステッ
プ502)、依頼であるので、該依頼メッセージをその
まま通信制御処理手段122に渡す。
When receiving the request message, the message selecting means (for example, 126 in FIG. 1) is changed to the address changing means (same as in FIG.
The message is received from 5) (step 501), the information type (request / response) in the message is determined (step 502), and since it is a request, the request message is passed to the communication control processing means 122 as it is.

【0033】一方、応答メッセージ受信時、メッセージ
選択手段(例えば、図1の116)は、アドレス変更手
段(同115)からのメッセージ中の情報種別(依頼/
応答)を判定し、応答であるので、該応答メッセージに
対応する処理依頼に対し、既にステップ507の応答処
理が完了しているか判定して(ステップ504)、完了
していれば、取り込まない。完了していなければ、ま
ず、同一処理依頼に対する受信済み応答メッセージ数を
判定すると共に、該応答メッセージを一時保持する(ス
テップ505)。次に、同一処理依頼に対し、既に2つ
の応答メッセージを保持済みの場合、新たに保持した応
答メッセージも含め、これら3つの応答メッセージ中の
情報の多数決を実行し、正当性が高い応答メッセージを
決定する(ステップ506)。そして、この決定された
応答メッセージを通信制御処理手段(同112)に送信
すると共に、保持されている応答メッセージをクリア
し、応答完了状態を保持する(ステップ507)。な
お、ステップ505で同一処理依頼に対する保持受信済
み応答メッセージが1つ以下と判定された場合、次の応
答メッセージを待つ。
On the other hand, when the response message is received, the message selection means (for example, 116 in FIG. 1) uses the information type (request / request / request) of the message from the address changing means (115).
Response), and since it is a response, it is determined whether the response processing of step 507 has already been completed for the processing request corresponding to the response message (step 504), and if completed, it is not taken. If not completed, first, the number of received response messages for the same processing request is determined, and the response messages are temporarily held (step 505). Next, in the case where two response messages have already been held for the same processing request, the majority of the information in these three response messages including the newly held response message is executed, and a highly valid response message is obtained. It is determined (step 506). Then, the determined response message is transmitted to the communication control processing means (at 112), the retained response message is cleared, and the response completion state is retained (step 507). When it is determined in step 505 that the number of held and received response messages for the same processing request is one or less, the next response message is awaited.

【0034】図6では、同一処理依頼に対し、3台の処
理実行ノードからの応答メッセージを受信し、その3つ
の応答メッセージの多数決により正当性の高い応答メッ
セージを決定するとしたが、勿論、3つである必要はな
い。なお、同一処理依頼に対し、最終的受信応答メッセ
ージが2以下の場合については図7で触れる。
In FIG. 6, in response to the same processing request, response messages from three processing execution nodes are received, and a response message with a high degree of validity is determined by majority decision of the three response messages. It doesn't have to be one. It should be noted that the case where the final reception response message is 2 or less for the same processing request will be described with reference to FIG. 7.

【0035】図7は、処理依頼ノード側におけるメッセ
ージ選択手段の後処理のフローチャート例である。
FIG. 7 is an example of a flowchart of post-processing of the message selecting means on the processing request node side.

【0036】メッセージ選択手段(例えば、図1の11
6)は、通信制御処理手段(同112)からの指示等
で、処理依頼メッセージ送信からの経過時間を測定し
(ステップ601)、この経過時間と処理依頼の最大応
答時間(通信制御処理手段が設定する最大応答時間より
短い時間)とを比較する(ステップ602)。そして、
最大応答時間を越えていなければ、何もしない。一方、
最大応答時間を越えた場合、当該処理依頼に対応する応
答完了状態を判定する(ステップ603)。応答完了の
場合には、応答完了状態をクリアする(ステップ60
4)。応答未完了の場合には、当該する処理依頼に対し
保持済みの応答メッセージがあれば、それを通信制御処
理手段に送信した後、該保持済み応答メッセージをクリ
アする(ステップ605)。この時、同一処理依頼に対
する保持済み応答メッセージが唯一つであれば、それを
通信制御処理手段に渡たせばよいが、2つある場合は、
先あるいは後に受信した応答メッセージを渡すように定
めておく。
Message selecting means (for example, 11 in FIG. 1)
6) measures the elapsed time from the transmission of the processing request message by an instruction or the like from the communication control processing means (112) (step 601), and determines the elapsed time and the maximum response time of the processing request (the communication control processing means It is compared with the maximum response time that is set) (step 602). And
If the maximum response time is not exceeded, do nothing. on the other hand,
When the maximum response time is exceeded, the response completion state corresponding to the processing request is determined (step 603). When the response is completed, the response completed state is cleared (step 60).
4). If the response is incomplete, if there is a retained response message to the processing request, it is transmitted to the communication control processing means, and then the retained response message is cleared (step 605). At this time, if there is only one held response message for the same processing request, it may be passed to the communication control processing means.
It is specified that the response message received earlier or later is passed.

【0037】なお、アプリケーションプログラム側が同
一処理依頼に対する複数ノードからの応答メッセージ中
から正当なものを選択するようにすれば、メッセージ選
択手段は不要である。
If the application program side selects a legitimate response message from a plurality of nodes for the same processing request, the message selecting means is unnecessary.

【0038】また、応答時間を上げる場合には、メッセ
ージ選択手段では、最初に受信した応答メッセージを通
信制御処理手段に送信し、以降の応答メッセージを無視
するようにしてもよい。
In order to increase the response time, the message selecting means may transmit the first received response message to the communication control processing means and ignore the subsequent response messages.

【0039】<実施例2>実施例2は、図8に示すよう
に、複数のノード110,120,…が各々、ネットワ
ーク制御装置(NCE)810,820,…を経由で、
伝送路100で接続されるシステム構成を対象とするも
のである。
<Embodiment 2> In the embodiment 2, as shown in FIG. 8, a plurality of nodes 110, 120, ..., Via network control devices (NCE) 810, 820 ,.
It is intended for system configurations connected by the transmission path 100.

【0040】図9に本実施例2の構成図を示す。即ち、
本実施例2は各NCE内に、実施例1で説明した機能ア
ドレス付加手段、アドレス変更手段、メッセージ選択手
段を設けたものである。
FIG. 9 is a block diagram of the second embodiment. That is,
In the second embodiment, the functional address adding means, the address changing means, and the message selecting means described in the first embodiment are provided in each NCE.

【0041】図9は、図1に対応させて示したもので、
ノード110を処理依頼ノード,ノード120を処理実
行ノードとした場合の、ノード110,120に接続さ
れるNCE810,820内の各機能アドレス付加手段
814あるいは824、アドレス変更手段815あるい
は825、及び、メッセージ選択手段816あるいは8
26の動作は、実施例1の場合とまったく同様である。
FIG. 9 is shown in correspondence with FIG.
When the node 110 is the processing request node and the node 120 is the processing execution node, the function address adding means 814 or 824, the address changing means 815 or 825 in each of the NCEs 810 and 820 connected to the nodes 110 and 120, and the message Selection means 816 or 8
The operation of 26 is exactly the same as that of the first embodiment.

【0042】[0042]

【発明の効果】本発明の分散処理システムにおけるメッ
セージ通信方式によれば、以下の如き効果が得られる。
According to the message communication system in the distributed processing system of the present invention, the following effects can be obtained.

【0043】(1)依頼メッセージが予めその希望処理
種別に対応する処理の実行が可能なノードのみに取り込
まれ、また、応答メッセージが依頼元ノードのみに取り
込まれるため、全ノードあるいは一部ノードのアプリケ
ーションプログラムが、一旦取り込んだ上で実行を判定
する事がなくなり、経済的であると共に各ノードの処理
性能を向上できる。
(1) Since the request message is fetched in advance only in the node capable of executing the process corresponding to the desired process type, and the response message is fetched in only the request source node, all nodes or some nodes The application program does not need to determine the execution once it is loaded, which is economical and improves the processing performance of each node.

【0044】(2)機能アドレスを一種の送信先アドレ
スとして処理依頼メッセージを送信するため、送信先ノ
ードのアプリケーションプログラム異常(故障/過負
等)時に、該ノードと同一機能を有する他ノードに、処
理依頼先を変更する事が不要になる。また、処理依頼先
が有する機能と同一機能を他ノードに追加したり同一機
能を有するノードをシステムに追加する場合にも、その
都度送信先ノード情報の更新が不要になるため、システ
ムの信頼性、保守性および拡張性が向上する。
(2) Since the processing request message is transmitted by using the functional address as a kind of destination address, when the application program of the destination node is abnormal (fault / overload, etc.), it is sent to another node having the same function as that node. It is not necessary to change the processing request destination. Moreover, even if the same function as that of the processing request destination is added to another node or a node having the same function is added to the system, it is not necessary to update the destination node information each time, so system reliability is improved. , Maintainability and scalability are improved.

【0045】(3)各ノード毎にNCEを接続し、これ
らNCEをブロードキャスト機能を有する伝送路に接続
する場合にも、各ノード間の通信方式に関わらず、ま
た、システムを構成する装置を変更することなく、上記
(1)、(2)の効果が得られる。
(3) Even when NCEs are connected to each node and these NCEs are connected to a transmission line having a broadcast function, the devices constituting the system are changed regardless of the communication method between the nodes. Without doing so, the effects of the above (1) and (2) can be obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例の構成図である。FIG. 1 is a configuration diagram of a first embodiment of the present invention.

【図2】本発明の第1の実施例が対象とする分散処理シ
ステムの概略ブロック図である。
FIG. 2 is a schematic block diagram of a distributed processing system which is a target of the first embodiment of the present invention.

【図3】本発明による依頼メッセージ、応答メッセージ
の形式例である。
FIG. 3 is a format example of a request message and a response message according to the present invention.

【図4】図中1の機能アドレス付加手段の処理フロー例
である。
FIG. 4 is an example of a processing flow of a functional address adding unit 1 in FIG.

【図5】図1中のアドレス変更手段の処理フロー例であ
る。
5 is an example of a processing flow of address changing means in FIG.

【図6】図1中のメッセージ選択手段の応答メッセージ
受信時の処理フロー例である。
FIG. 6 is an example of a processing flow when a response message is received by the message selecting means in FIG.

【図7】図1中のメッセージ選択手段の後処理フロー例
である。
FIG. 7 is an example of a post-processing flow of message selection means in FIG.

【図8】本発明の第2の実施例が対象とする分散システ
ムの概略ブロック図である。
FIG. 8 is a schematic block diagram of a distributed system targeted by the second embodiment of the present invention.

【図9】本発明の第2の実施例の構成図である。FIG. 9 is a configuration diagram of a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

100 伝送路 110,120 ノード 111,121 アプリケーションプログラム 112,122 通信制御処理手段 113,123 伝送路制御手段 114,124 機能アドレス付加手段 115,125 アドレス変更手段 116,126 メッセージ選択手段 100 transmission line 110, 120 node 111, 121 application program 112, 122 communication control processing means 113, 123 transmission line control means 114, 124 functional address adding means 115, 125 address changing means 116, 126 message selecting means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数ノードが伝送路を介して接続された
分散処理システムにおいて、 各ノードの伝送路との電気信号インタフェース制御を行
う伝送路制御手段と、通信プロトコル処理などを行う通
信制御処理手段との間に、 当該ノードが処理依頼のための依頼メッセージを送信す
る場合、該依頼メッセージ中の希望処理種別に対応する
機能アドレスを該依頼メッセージに付加するとともに、
該依頼メッセージ中の送信先アドレスを保持し、当該ノ
ードが依頼メッセージに対応する応答メッセージを送信
する場合、該応答メッセージの送信先アドレスを依頼メ
ッセージ送信元ノード固有のノードアドレス指定で送信
する手段と、 依頼メッセージを受信した場合、該依頼メッセージ中の
機能アドレスが当該ノードで処理可能な処理種別に対応
する機能アドレスを示していると、該受信した依頼メッ
セージを取り込み、該依頼メッセージ中の機能アドレス
を削除すると共に、該依頼メッセージ中の送信先アドレ
スを当該ノード宛のアドレスに変更し、送信した依頼メ
ッセージに対応する応答メッセージを受信した場合、該
応答メッセージ中の送信元ノードアドレスを、該応答メ
ッセージに対応する依頼メッセージ送信時に保持した送
信先アドレスに変更する手段と、 を設けたことを特徴とするメッセージ通信方式。
1. In a distributed processing system in which a plurality of nodes are connected via a transmission path, a transmission path control means for controlling an electric signal interface with a transmission path of each node, and a communication control processing means for performing a communication protocol processing and the like. When sending a request message for a processing request between the node and, the function address corresponding to the desired processing type in the request message is added to the request message, and
A means for holding the destination address in the request message and transmitting the response address of the response message by specifying the node address unique to the request message source node when the node transmits the response message corresponding to the request message. When a request message is received, if the functional address in the request message indicates a functional address corresponding to the processing type that can be processed by the node, the received request message is fetched and the functional address in the request message is received. When the response message corresponding to the transmitted request message is received and the destination address in the request message is changed and the response message in the response message is received, the source node address in the response message is changed to the response. Destination saved when sending the request message corresponding to the message A message communication method characterized by including means for changing to an address.
【請求項2】 請求項1記載の分散処理システムにおけ
るメッセージ通信方式において、当該ノードが送信した
依頼メッセージに対して、複数のノードがそれぞれ返信
した応答メッセージ群を一時保持し、該応答メッセージ
群から正当な応答メッセージを選択する手段を追加した
ことを特徴とするメッセージ通信方式。
2. The message communication method in the distributed processing system according to claim 1, wherein a response message group returned by each of a plurality of nodes with respect to a request message transmitted by the node is temporarily retained, and the response message group is transmitted from the response message group. A message communication method characterized by adding means for selecting a valid response message.
JP5334570A 1993-12-28 1993-12-28 Message communication system of decentralized processing system Pending JPH07200435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5334570A JPH07200435A (en) 1993-12-28 1993-12-28 Message communication system of decentralized processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5334570A JPH07200435A (en) 1993-12-28 1993-12-28 Message communication system of decentralized processing system

Publications (1)

Publication Number Publication Date
JPH07200435A true JPH07200435A (en) 1995-08-04

Family

ID=18278883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5334570A Pending JPH07200435A (en) 1993-12-28 1993-12-28 Message communication system of decentralized processing system

Country Status (1)

Country Link
JP (1) JPH07200435A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010021018A1 (en) * 2008-08-18 2010-02-25 富士通株式会社 Internode communication method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010021018A1 (en) * 2008-08-18 2010-02-25 富士通株式会社 Internode communication method
US8386692B2 (en) 2008-08-18 2013-02-26 Fujitsu Limited Method for communicating between nodes and server apparatus
JP5212476B2 (en) * 2008-08-18 2013-06-19 富士通株式会社 Inter-node communication method, server device, inter-node communication program

Similar Documents

Publication Publication Date Title
US6314088B1 (en) Node configuration setup system with servers hunting through connection-oriented network for client&#39;s data
JP3384686B2 (en) Method and apparatus for receiving information from a communication network
JPH04227145A (en) Method and system for stating establishment of session
JP3493309B2 (en) Multicast transmission method
CN111200622B (en) Resource transmission method and device and storage medium
CN109818905B (en) Method, network element equipment and system for adapting transport layer protocol
JPH10178453A (en) Data transmitter and communication system using it
JP4420399B2 (en) Download optimization in the presence of multicast data
CN109788075B (en) Private network system, data acquisition method and edge server
JPH07200435A (en) Message communication system of decentralized processing system
KR20040066933A (en) An efficient timeout message management in IEEE 1394 bridged serial bus network
JPH08316990A (en) Network access method
CN113271305B (en) Attack detection method and device and web application level intrusion prevention system WAF
JP2002118568A (en) Distributed server system
JPH09162887A (en) Terminal connection method on network and network system
US20010034797A1 (en) Data transferring method and communication network system
JPH05327771A (en) Packet making-up system
JPH07200436A (en) Message communication system of decentralized processing system
JPH11225171A (en) Method and system for communicating between different communication procedures
JP2969827B2 (en) Network number automatic setting device
JPH07219917A (en) Network system
JPH08221340A (en) Network system
CN114827283A (en) Resource access method, device, medium and robot
JP3152287B2 (en) Shortcut communication system
JP2002009940A (en) Method and device for controlling communication in intelligent network