JPH07120288B2 - Redundant message detection processing method of data processing device - Google Patents

Redundant message detection processing method of data processing device

Info

Publication number
JPH07120288B2
JPH07120288B2 JP31147188A JP31147188A JPH07120288B2 JP H07120288 B2 JPH07120288 B2 JP H07120288B2 JP 31147188 A JP31147188 A JP 31147188A JP 31147188 A JP31147188 A JP 31147188A JP H07120288 B2 JPH07120288 B2 JP H07120288B2
Authority
JP
Japan
Prior art keywords
message
unit
service
serial number
processing
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.)
Expired - Lifetime
Application number
JP31147188A
Other languages
Japanese (ja)
Other versions
JPH02157942A (en
Inventor
敬 中村
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP31147188A priority Critical patent/JPH07120288B2/en
Publication of JPH02157942A publication Critical patent/JPH02157942A/en
Publication of JPH07120288B2 publication Critical patent/JPH07120288B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 サービス提供部がメッセージの冗送に伴う2度目のサー
ビス処理に入らないようにするための冗送メッセージ検
出処理方式に関し、 サービス提供部が効率よく冗送メッセージであるか否か
を検出できることを目的とし、 サービス要求部がメッセージ送信を実行するときに、送
信メッセージに通番を付加するメッセージ通番付加装置
と、サービス要求部がメッセージの再送を実行するとき
に、送信メッセージに再送表示を付加する再送表示付加
装置とを備えるとともに、サービス提供部が、受信メッ
セージに従ってサービス処理を終了したときに、そのメ
ッセージの通番をオブジェクト単位で記憶するメッセー
ジ通番記憶部を備えるよう構成し、そして、サービス提
供部は、受信メッセージがオブジェクト生成に関すると
きには、再送表示があることを条件に、メッセージ通番
記憶部をサーチすることで冗送であるか否かを検出する
とともに、生成オブジェクトを使用するときには、その
オブジェクトのメッセージ通番記憶部をチェックするこ
とで冗送であるか否かを検出するよう構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] Regarding a redundant message detection processing method for preventing a service providing unit from entering a second service processing due to a redundant message, a service providing unit efficiently transmits a redundant message. For the purpose of being able to detect whether or not the message is a message sequence number addition device that adds a serial number to a transmitted message when the service request unit executes message transmission, and when the service request unit executes message retransmission, And a message serial number storage unit for storing the serial number of the message in object units when the service providing unit finishes the service processing according to the received message. Configure, and then the service provider creates the received message object When the generated object is used, the message serial number storage unit is checked when the generated object is used. By doing so, it is configured to detect whether or not it is a redundant transmission.

〔産業上の利用分野〕[Industrial application field]

本発明は、ユーザプログラムからのメッセージに従って
所定のサービスを実行するサーバプログラムが、メッセ
ージの冗送に伴う2度目のサービス処理に入らないよう
にするためのデータ処理装置の冗送メッセージ検出処理
方式に関し、更に、サーバプログラムが効率よく冗送の
メッセージであるか否かを判断できるようにするデータ
処理装置の冗送メッセージ検出処理方式に関するもので
ある。
The present invention relates to a redundant message detection processing method of a data processing device for preventing a server program that executes a predetermined service in accordance with a message from a user program from entering a second service process associated with redundant message transmission. Furthermore, the present invention relates to a redundant message detection processing method of a data processing device that enables a server program to efficiently determine whether or not the message is a redundant message.

所定のサービス処理を実行するサーバプログラムと、こ
のサーバプログラムに対してサービス要求のためのメッ
セージを送信するユーザプログラムとを備えるデータ処
理装置にあっては、異常状態の発生に伴って、ユーザプ
ログラムからサーバプログラムに対して、同一メッセー
ジの再送処理が行われることがある。このようなメッセ
ージの再送という事態に対して、サーバプログラムが同
じサービス処理を繰り返し実行してしまうと、論理的な
矛盾が生じる場合がある。これから、このような構成を
採るデータ処理装置にあっては、メッセージの再送に伴
う2度目のサービス処理の実行に入らないような手段を
講じていく必要があるのである。
In a data processing device including a server program that executes a predetermined service process and a user program that sends a message for requesting a service to the server program, the data processing device may be operated by the user program when an abnormal state occurs. The same message may be resent to the server program. If the server program repeatedly executes the same service process in response to such a message resending, a logical contradiction may occur. From now on, in the data processing apparatus having such a configuration, it is necessary to take measures to prevent the second service processing from being executed due to the retransmission of the message.

〔従来の技術〕[Conventional technology]

サーバプログラムとユーザプログラムとは、メッセージ
に従ってサービス処理の要求とこれに対する応答とを実
現している。すなわち、ユーザプログラムは、第5図に
示すように、システムが用意する例えば“Send"という
関数を呼び出すことで、サーバプログラムに対してメッ
セージの送信を実行し、これを受信するサーバプログラ
ムは、要求のあったサービス処理を実行する。そして、
サーバプログラムはその処理を終了すると、ユーザプロ
グラムに対して応答のメッセージを送信し、ユーザプロ
グラムは、この応答のメッセージを受信することで要求
したサービス処理が実行されたことを知ることになる。
このとき、サービス処理の実行によって得られたデータ
を受け取ることもある。このように、ユーザプログラム
は、メッセージを送受信することでサーバプログラムか
らのサービス提供を受けて、所望の処理を実行していく
よう構成される。
The server program and the user program realize a request for service processing and a response thereto in accordance with a message. That is, as shown in FIG. 5, the user program executes a message transmission to the server program by calling a function such as "Send" prepared by the system, and the server program receiving the message requests the message. Execute the service processing that had And
When the server program finishes the processing, it sends a response message to the user program, and the user program knows that the requested service processing has been executed by receiving the response message.
At this time, the data obtained by executing the service process may be received. In this way, the user program is configured to receive a service from the server program by transmitting and receiving a message and execute desired processing.

このような構成にあって、従来技術では、メッセージ送
信したにもかかわらずサーバプログラムから応答のメッ
セージが返ってこないときや、別に設けられる異常検出
部から応答のメッセージが返らないという異常検出通知
がきたときには、ユーザプログラムが再度同一のメッセ
ージを送信することで、サーバプログラムからのサービ
ス提供を受けられるよう構成していた。
With such a configuration, in the related art, when the server program does not return a response message despite sending the message, or when an abnormality detection unit provided separately does not return a response message, an abnormality detection notification is issued. When it came, the user program again sent the same message so that the server program could receive the service.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

このようなメッセージの再送処理方式を採る従来技術に
おいて、サーバプログラムによるサービス処理の実行中
の異常により応答のメッセージが戻されないときには、
再度サーバプログラムに対してサービス処理の起動がか
かることから何ら問題はない。しかるに、第6図に示す
ような、サーバプログラムによるサービス処理が完了し
た後に異常が発生することでユーザプログラムに応答の
メッセージが戻されないときには、サービス要求のメッ
セージの再送処理に従って、サーバプログラムは再度同
一のサービス処理を繰り返し実行してしまうことにな
る。すなわち、従来技術では、サービス処理の重複実行
をもたらすメッセージの冗長な再送信(本明細書では、
冗送ということにする)が起きていたのである。
In the conventional technique which adopts such a message resending processing method, when the response message is not returned due to an abnormality during the service processing by the server program,
There is no problem because the service process is started again for the server program. However, when a response message is not returned to the user program due to the occurrence of an abnormality after the service processing by the server program is completed, as shown in FIG. 6, the server program is re-identified according to the service request message retransmission processing. The service processing of will be repeatedly executed. That is, in the prior art, redundant message re-transmission (herein,
It was happening).

これから、従来技術では、このようなメッセージの冗送
による処理効率の低下という問題点とともに、更に大き
な問題点として、この繰り返し処理によって論理的な矛
盾がもたらされてしまうことがあるという問題点があっ
た。
Therefore, in the conventional technique, in addition to the problem that the processing efficiency is lowered due to the redundant transmission of the message, a further serious problem is that the iterative process may cause a logical contradiction. there were.

本発明はかかる事情に鑑みてなされたものであって、冗
送メッセージの検出方法を提供することで、サービス処
理の重複実行を防止することを提案するものであり、そ
して、この冗送メッセージの検出を効率よく実現できる
方法を提供することを目的とするものである。
The present invention has been made in view of the above circumstances, and proposes a method for detecting a redundant message to prevent duplicate execution of service processing. It is an object of the present invention to provide a method capable of efficiently realizing detection.

〔課題を解決するための手段〕[Means for Solving the Problems]

第1図は本発明の原理構成図である。 FIG. 1 is a block diagram showing the principle of the present invention.

図中、1はサービス提供部であって、所定のサービス処
理を実行するもの、2はサービス要求部であって、サー
ビス提供部1に対してサービス要求のためのメッセージ
を送信するもの、3はメッセージ通番付加装置であっ
て、サービス要求部2がメッセージ送信を実行するとき
に、送信されるメッセージに識別のための通番を付加す
るもの、4は再送表示付加装置であって、サービス要求
部2が異常状態の発生に伴って同一メッセージの再送を
実行するときに、送信されるメッセージに再送表示を付
加するもの、10はメッセージ受信部、11は冗送検出部で
あって、受信したメッセージが既にサービス処理の終了
している再送に関わるものであるか否かを検出するも
の、12は再送表示検出部であって、受信したメッセージ
に再送表示付加装置4による再送表示が付いているか否
かを検出するもの、13はサービス処理を実行するサービ
ス処理部であって、新たなオブジェクトを生成するよう
処理するオブジェクト生成部14と、生成されてあるオブ
ジェクトを使用して所定のデータ処理を実行するよう処
理するデータ処理部15とを備えるもの、16は生成される
若しくは生成されたオブジェクト、17はオブジェクト管
理部であって、オブジェクト16を管理するもの、18はオ
ブジェクト管理部17が備えるメッセージ通番記憶部であ
って、サービス処理が終了したメッセージに付されてい
る通番をオブジェクト16単位に記憶するもの、19はメッ
セージ通番設定部であって、メッセージ通番記憶部18に
通番を設定するもの、20は応答メッセージ送信部であっ
て、サービス要求部2に対してサービス処理が終了した
旨の応答メッセージを送信するもの、21はメッセージ送
信部である。
In the figure, 1 is a service providing unit that executes a predetermined service process, 2 is a service requesting unit that sends a service request message to the service providing unit 1, and 3 is A message serial number addition device for adding a serial number for identification to a message to be transmitted when the service request unit 2 executes message transmission, and 4 is a retransmission display addition device for the service request unit 2 Adds a retransmission indication to the transmitted message when the same message is retransmitted due to the occurrence of an abnormal state, 10 is a message receiver, 11 is a redundant transmission detector, and the received message is A means for detecting whether or not the service processing has already been completed and involved in retransmission, and 12 is a retransmission display detection unit, which is provided to the retransmission display addition device 4 for the received message. That detects whether or not there is a resend display, 13 is a service processing unit that executes service processing, and uses an object generation unit 14 that processes to generate a new object and the generated object And a data processing unit 15 for performing predetermined data processing, 16 is a generated or generated object, 17 is an object management unit that manages the object 16, and 18 is A message serial number storage unit provided in the object management unit 17, which stores the serial number attached to the message for which the service processing has ended in units of 16 objects, and 19 is a message serial number setting unit and a message serial number storage unit 18 A serial number is set to the service message, and 20 is a response message transmission unit, which terminates service processing for the service request unit 2. Which sends a response message indicating the, 21 is a message sending unit.

〔作用〕[Action]

本発明では、受信メッセージがオブジェクト生成に関す
るものであるときには、冗送検出部11は、先ず、再送表
示検出部12に従って受信したメッセージに再送表示が付
されているか否かをチェックする。この判断で、再送表
示が付されていないと判断するときには、再送のメッセ
ージではないので直ちに冗送のメッセージではないと判
断する。一方、再送表示が付されていると判断するとき
には、オブジェクト生成部14のオブジェクト管理部17が
備えるメッセージ通番記憶部18を1つ1つ順番にサーチ
して、受信メッセージの通番と同じ通番のものがあるか
否かを調べる。この判断で、同じ通番のものがあるとき
には、再送されてきたメッセージは既にオブジェクト生
成処理が終了しているメッセージであるので、冗送のメ
ッセージであると判断する。逆に、同じ通番のものがな
いときには、未だ処理が終了していないメッセージであ
るので、冗送のメッセージではないと判断する。
According to the present invention, when the received message is related to object generation, the redundant transmission detection unit 11 first checks whether or not the message received by the retransmission display detection unit 12 is retransmitted. If it is determined in this determination that the retransmitted message is not attached, it is immediately determined that the message is not a redundant message because it is not a retransmitted message. On the other hand, when it is determined that the retransmitted display is provided, the message serial number storage unit 18 included in the object management unit 17 of the object generation unit 14 is sequentially searched one by one, and the same serial number as the received message serial number is used. Check if there is. If there is the same serial number in this determination, the retransmitted message is a message for which the object generation processing has already been completed, so it is determined to be a redundant message. On the other hand, if there is no message with the same serial number, it is determined that the message is not a redundant message because the message has not been processed yet.

このようにして、冗送検出部11により冗送のメッセージ
であると検出されるときには、オブジェクト生成部14は
受信メッセージの要求に従わずにオブジェクト生成処理
を実行せず、応答メッセージ送信部20は、サービス要求
部2に対して処理が完了している旨の応答メッセージを
送信する。逆に、冗送検出部11により冗送のメッセージ
でないと検出されるときには、オブジェクト生成部14は
受信メッセージの要求に従って指定のあったオブジェク
トの生成処理を実行し、応答メッセージ送信部20は、こ
の生成処理の終了時点で応答メッセージを送信する。
In this way, when the redundant transmission detection unit 11 detects a redundant transmission message, the object generation unit 14 does not execute the object generation processing without complying with the request of the received message, and the response message transmission unit 20 , And sends a response message indicating that the processing is completed to the service request unit 2. On the contrary, when the redundant transmission detecting unit 11 detects that the message is not a redundant transmission message, the object generating unit 14 executes the generation processing of the designated object according to the request of the received message, and the response message transmitting unit 20 A response message is sent at the end of the generation process.

また、受信メッセージが生成されてあるオブジェクトを
使用するものであるときには、冗送検出部11は、そのメ
ッセージが指定するデータ処理部15のオブジェクト管理
部17が備えるメッセージ通番記憶部18を直接チェック
し、受信メッセージの通番と同じ通番のものであるか否
かを調べる。この判断で、同じ通番であるときには、再
送されてきたメッセージは既に処理が終了しているメッ
セージであるので、冗送のメッセージであると判断す
る。逆に、同じ通番でないときには、未だ処理が終了し
ていないメッセージなので、冗送のメッセージではない
と判断する。
Further, when the received message uses the generated object, the redundant transmission detection unit 11 directly checks the message sequence number storage unit 18 provided in the object management unit 17 of the data processing unit 15 specified by the message. , Check whether the received message has the same serial number as the serial number. If the same serial number is determined in this determination, the retransmitted message is a message for which processing has already been completed, so it is determined to be a redundant message. On the contrary, when the serial numbers are not the same, it is determined that the message is not a redundant message because the message has not been processed yet.

このようにして、冗送検出部11により冗送のメッセージ
であると検出されるときには、データ処理部15は受信メ
ッセージの要求に従わずにデータ処理を実行せず、応答
メッセージ送信部20は、サービス要求部2に対して処理
が完了している旨の応答メッセージを送信する。逆に、
冗送検出部11により冗送のメッセージでないと検出され
るときには、データ処理部15は受信メッセージの要求に
従って指定のあったデータ処理を実行し、応答メッセー
ジ送信部20は、この処理の終了時点で応答メッセージを
送信する。
In this way, when the redundant transmission detection unit 11 detects that the message is a redundant transmission, the data processing unit 15 does not perform the data processing without complying with the request of the received message, and the response message transmission unit 20 A response message indicating that the processing is completed is transmitted to the service request unit 2. vice versa,
When the redundant transmission detection unit 11 detects that the message is not a redundant transmission message, the data processing unit 15 executes the designated data processing according to the request of the received message, and the response message transmission unit 20 ends at the end of this processing. Send a reply message.

本発明では、メッセージ通番付加装置3により送信メッ
セージに通番が付加され、そして、メッセージ通番設定
部19によりサービス処理の終了したメッセージについて
は、メッセージ通番記憶部18にその通番が記憶されるこ
とになる。これから、冗送検出部11は、この記憶されて
いる通番と受信メッセージの通番とを比較することで、
冗送のメッセージであるか否かを調べられることになっ
て、サービス処理の重複実行といった不都合を防ぐこと
ができるようになる。しかも、メッセージがオブジェク
ト生成に関するものであるときには、最初に再送表示が
付されているか否かを調べることで、通番のサーチに入
る必要があるか否かを判断するようにしたことから、長
いサーチ時間を必要とするオブジェクト生成部14の方の
通番の同一性判断を必要最少限に押さえることができ、
効率よく冗送のメッセージであるか否かを判断できるよ
うになる。
According to the present invention, a serial number is added to the transmitted message by the message serial number adding device 3, and the message serial number storage unit 18 stores the serial number of the message for which the service processing has been completed by the message serial number setting unit 19. . From now on, the redundant transmission detecting unit 11 compares the stored serial number with the serial number of the received message,
By checking whether or not the message is a redundant message, it is possible to prevent inconvenience such as duplicate execution of service processing. Moreover, when the message is related to object generation, it is determined whether or not it is necessary to enter the serial number search by first checking whether or not the re-transmission display is attached, so that the long search is performed. It is possible to minimize the determination of the identity of the serial number of the object generator 14 that requires time,
It becomes possible to efficiently judge whether or not the message is a redundant message.

〔実施例〕〔Example〕

以下、実施例に従って本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail according to examples.

第2図に、本発明のシステム構成図を示す。図中、第1
図で説明したものと同じものについては、同一の記号で
示してある。1aは第1図のサービス提供部1に相当する
サーバプログラム、2aは第1図のサービス要求部2に相
当するユーザプログラム、5はサーバプログラム1aによ
って受信された受信メッセージである。
FIG. 2 shows a system configuration diagram of the present invention. First in the figure
The same components as those described in the figures are denoted by the same symbols. 1a is a server program corresponding to the service providing unit 1 in FIG. 1, 2a is a user program corresponding to the service requesting unit 2 in FIG. 1, and 5 is a received message received by the server program 1a.

サーバプログラム1aが実行するサービス処理としては、
大きく分けて、オブジェクト16の生成処理(オブジェク
トを生成してその使用権をユーザプログラム2aに渡す処
理)と生成されたオブジェクト16を使用してのデータ処
理とがある。これから、ユーザプログラム2aがサーバプ
ログラム1aに対して送信するメッセージには、オブジェ
クト16の生成処理依頼と生成されたオブジェクト16を使
用してのデータ処理依頼という2種類がある。オブジェ
クト16の生成依頼は新たなオブジェクト16を生成するよ
う依頼するものであることから、何ら制限なく依頼でき
るようになっている。これに対して、生成されたオブジ
ェクト16を使用してのデータ処理依頼は、そのオブジェ
クト16が生成されて、そのオブジェクト16に関しての使
用権が渡されていることが条件となっている。これか
ら、ユーザプログラム2aから送信されるこの2種類のメ
ッセージは、異なる受付口でもってサーバプログラム1a
に受信されることになる。従って、サーバプログラム1a
は、受信したメッセージがどちらの種類に属するメッセ
ージであるのかを自動的に知ることができることにな
る。
As the service processing executed by the server program 1a,
Broadly divided, there are generation processing of the object 16 (processing of generating an object and passing the usage right to the user program 2a) and data processing using the generated object 16. From now on, there are two types of messages that the user program 2a sends to the server program 1a: a request for generation processing of the object 16 and a data processing request using the generated object 16. Since the request to generate the object 16 is a request to generate a new object 16, it can be requested without any limitation. On the other hand, the data processing request using the generated object 16 is subject to the generation of the object 16 and the transfer of the usage right for the object 16. From now on, these two types of messages transmitted from the user program 2a will be sent to the server program 1a through different reception ports.
Will be received by. Therefore, the server program 1a
Will be able to automatically know which kind of message the received message belongs to.

本発明が新たに備えるメッセージ通番付加装置3及び再
送表示付加装置4は、ユーザプログラム2aとは関係なく
システム側で用意することになる。第1図でも説明した
ように、このメッセージ通番付加装置3は、ユーザプロ
グラム2aがメッセージ送信するときに、その送信される
メッセージにユニークなメッセージ通番を付加していく
よう処理するものであり、再送表示付加装置4は、ユー
ザプログラム2aが同一メッセージを再送するときに、そ
の送信されるメッセージに再送であることを表す再送表
示を付加していくよう処理するものである。ここで、メ
ッセージ通番付加装置3は、同一メッセージの再送のと
きには、前回と同じメッセージ通番を付加するよう処理
する。また、再送表示付加装置4が付加する再送表示
は、再送の有無を表すものであれば如何なる表現形式の
ものであってもよい。
The message serial number addition device 3 and the retransmission display addition device 4 newly provided in the present invention are prepared on the system side regardless of the user program 2a. As described with reference to FIG. 1, when the user program 2a sends a message, the message sequence number addition device 3 processes so as to add a unique message sequence number to the transmitted message, and retransmits the message. When the user program 2a retransmits the same message, the display addition device 4 performs processing so as to add a retransmission display indicating that the message is to be retransmitted to the transmitted message. Here, when the same message is retransmitted, the message sequence number addition device 3 processes so as to add the same message sequence number as the previous message. Further, the retransmission display added by the retransmission display addition device 4 may be in any expression format as long as it indicates the presence or absence of retransmission.

このようにして、メッセージ通番付加装置3によりメッ
セージ通番が付加され、再送表示付加装置4により再送
表示が付加されることになるので、サーバプログラム1a
で受信される受信メッセージ5には、図中に示すよう
に、この付加されたメッセージ通番と再送表示が記述さ
れることになる。
In this way, the message sequence number is added by the message sequence number addition device 3 and the retransmission display is added by the retransmission display addition device 4, so that the server program 1a
In the received message 5 received in step 1, the added message sequence number and retransmitted message are described, as shown in the figure.

次に、第3図及び第4図に示すフローチャートに従っ
て、本発明が実行するメッセージの冗送検出のための処
理について説明する。この第3図のフローチャートは、
受信メッセージ5がオブジェクトの生成処理依頼に関す
るときに実行されるフローチャートであり、第4図のフ
ローチャートは、受信メッセージ5がデータ処理依頼に
関するときに実行されるフローチャートである。
Next, the process for detecting redundant transmission of a message, which is executed by the present invention, will be described with reference to the flowcharts shown in FIGS. The flowchart of FIG. 3 is
4 is a flowchart executed when the received message 5 is related to an object generation processing request, and the flowchart of FIG. 4 is a flowchart executed when the received message 5 is related to a data processing request.

最初に、第3図のフローチャートについて説明する。ス
テップ1で、メッセージを受信したことを検出すると、
続くステップ2で、受信した受信メッセージ5に再送表
示が付されているか否かをを判断する。この判断により
再送表示が付されていないと判断するときには、受信メ
ッセージ5が再送でないことから冗送であることはない
ので、ステップ3に進んで、受信メッセージ5が指示し
てきた処理であるところのオブジェクトの生成処理を実
行して、その使用権をユーザプログラム2aに渡すよう処
理する。そして、次のステップ4で、オブジェクトの生
成処理が終了したメッセージであることを表すために、
生成したオブジェクト16のオブジェクト管理部17のメッ
セージ通番記憶部18にその付されているメッセージ通番
を格納し、次のステップ7で、ユーザプログラム2aに対
して処理終了の応答メッセージを送信して処理を終了す
る。
First, the flowchart of FIG. 3 will be described. In step 1, when it detects that a message has been received,
In the subsequent step 2, it is determined whether or not the received message 5 received is retransmitted. When it is determined that the retransmitted message is not attached by this determination, since the received message 5 is not retransmitted because it is not retransmitted, the process proceeds to step 3, and the process instructed by the received message 5 is performed. The object generation processing is executed and the usage right is passed to the user program 2a. Then, in the next step 4, in order to indicate that the message has been generated by the object generation process,
The attached message serial number is stored in the message serial number storage unit 18 of the object management unit 17 of the generated object 16, and in the next step 7, a processing end response message is transmitted to the user program 2a for processing. finish.

一方、ステップ2の判断で再送表示が付されていると判
断するときには、受信メッセージ5が再送であることか
ら冗送である可能性があるので、ステップ5に進んで、
それまでに生成したオブジェクト16のオブジェクト管理
部17のメッセージ通番記憶部18に格納されているメッセ
ージ通番を順番に検索して、その中に受信メッセージ5
と同一のメッセージ通番が格納されているのか否かを判
断する。この判断で、同一のメッセージ通番がないと判
断するときには、再送されてきた受信メッセージ5は冗
送のものではないので、ステップ3に進んで、その受信
メッセージ5に従ってオブジェクトの生成処理に入るこ
とになる。逆に、同一のメッセージ通番があると判断す
るときには、再送されてきた受信メッセージ5は既に処
理が終了している冗送のものであるので、次のステップ
6に示すように、受信メッセージ5に関しての処理を何
ら行わずに、ステップ7で処理終了の応答メッセージを
送信して処理を終了する。
On the other hand, if it is determined in step 2 that the retransmitted message is displayed, the received message 5 is retransmitted, so there is a possibility that it is a redundant transmission. Therefore, the process proceeds to step 5.
The message sequence numbers stored in the message sequence number storage unit 18 of the object management unit 17 of the object 16 generated up to that time are searched in order, and the received message 5
It is determined whether or not the same message serial number is stored. If it is determined in this determination that the same message sequence number does not exist, the retransmitted received message 5 is not a redundant message, so the process proceeds to step 3 and the object generation process is started according to the received message 5. Become. On the contrary, when it is determined that the same message serial number is present, the received message 5 retransmitted is a redundant message that has already been processed, and therefore, as shown in the next step 6, In step 7, the processing end response message is transmitted and the processing is ended without performing the above processing.

このようにして、受信メッセージ5のメッセージ通番と
メッセージ通番記憶部18のメッセージ通番とを比較する
ことで、受信メッセージ5が冗送のものであるか否かを
サーチして、冗送のときにはその受信メッセージ5の処
理を実行しないよう処理するのである。この冗送の検出
処理にあたって、再送表示付加装置4より付される再送
表示を用いて冗送の可能性のないもののサーチ処理は実
行しないようにしたことから、長い処理時間を必要とす
るこのサーチ処理を不必要に実行するようなこともない
のである。
In this way, by comparing the message sequence number of the received message 5 with the message sequence number of the message sequence number storage unit 18, it is searched whether or not the received message 5 is a redundant message. The processing of the received message 5 is performed so as not to be executed. In the process of detecting the redundant transmission, the search process is executed without using the retransmission display provided by the retransmission display addition device 4 even though there is no possibility of the redundant transmission, so that this search requiring a long processing time is performed. There is no unnecessary execution of the processing.

次に、第4図のフローチャートについて説明する。ステ
ップ11で、メッセージを受信したことを検出すると、続
くステップ12で、受信メッセージ5が指定するオブジェ
クト16のオブジェクト管理部17のメッセージ通番記憶部
18に格納されているメッセージ通番を読み出して、それ
が受信メッセージ5と同一のメッセージ通番であるか否
かを判断する。この判断で、同一のメッセージ通番でな
いと判断するときには、再送されてきた受信メッセージ
5は冗送のものではないので、ステップ13に進んで、受
信メッセージ5が指示してきた処理であるところのデー
タ処理を実行し、続くステップ14で、データ処理が終了
したメッセージであることを表すために、そのオブジェ
クト16のオブジェクト管理部17のメッセージ通番記憶部
18にその付されているメッセージ通番を格納し、次のス
テップ16で、ユーザプログラム2aに対して処理終了の応
答メッセージを送信して処理を終了する。一方、ステッ
プ12の判断で、同一のメッセージ通番であると判断する
ときには、再送されてきた受信メッセージ5は既に処理
が終了している冗送のものであるので、次のステップ15
で示すように、受信メッセージ5に関しての処理を何ら
行わずに、ステップ16で処理終了の応答メッセージを送
信して処理を終了する。
Next, the flowchart of FIG. 4 will be described. When it is detected in step 11 that the message has been received, in the following step 12, the message serial number storage section of the object management section 17 of the object 16 designated by the received message 5
The message serial number stored in 18 is read, and it is determined whether or not it is the same message serial number as the received message 5. If it is determined in this determination that the received message 5 is not the same message serial number, the retransmitted received message 5 is not a redundant message, so the process proceeds to step 13 and the data processing that is the process instructed by the received message 5 is performed. Is executed, and in the following step 14, the message sequence number storage unit of the object management unit 17 of the object 16 is displayed in order to indicate that the message has been processed.
The attached message serial number is stored in 18, and in the next step 16, a process termination response message is transmitted to the user program 2a to terminate the process. On the other hand, when it is determined in step 12 that the message numbers are the same, the received message 5 that has been retransmitted is a redundant message that has already been processed.
As shown by, the process for the received message 5 is not performed at all, and the process termination response message is transmitted in step 16 to terminate the process.

このように、オブジェクト生成処理に関してのメッセー
ジの場合と同様に、受信メッセージ5のメッセージ通番
とメッセージ通番記憶部18のメッセージ通番とを比較す
ることで、受信メッセージ5が冗送のものであるか否か
をチェックして、冗送のときにはその受信メッセージ5
の処理を実行しないよう処理するのである。なお、第3
図のフローチャートと異なり、受信メッセージ5がデー
タ処理依頼に関するときには、冗送であるか否かを調べ
るためのメッセージ通番記憶部18が1つに特定されてい
るので、再送表示を見る必要はないのである。
In this way, as in the case of the message regarding the object generation processing, by comparing the message sequence number of the received message 5 with the message sequence number of the message sequence number storage unit 18, whether the received message 5 is a redundant message or not. Check if there is a message 5
That is, the processing is performed so as not to be executed. The third
Unlike the flowchart in the figure, when the received message 5 is related to a data processing request, one message serial number storage unit 18 for checking whether it is a redundant transmission is specified, so it is not necessary to see the resend display. is there.

〔発明の効果〕〔The invention's effect〕

以上に説明したように、本発明によれば、メッセージ通
番に従って受信するメッセージが冗送のものであるか否
かを調べられる。これから、サービス処理の重複実行と
いった問題点が起こることはない。しかも、この冗送の
ものであるか否かの判断を効率的に実現できるようにな
る。
As described above, according to the present invention, it is possible to check whether or not the message received according to the message sequence number is a redundant message. From now on, problems such as duplicate execution of service processing will not occur. Moreover, it becomes possible to efficiently realize whether or not this is a redundant transmission.

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

第1図は本発明の原理構成図、 第2図は本発明のシステム構成図、 第3図及び第4図は本発明が実行するフローチャート、 第5図は従来技術の構成の説明図、 第6図は従来技術の問題点の説明図である。 図中、1はサービス提供部、1aはサーバプログラム、2
はサービス要求部、2aはユーザプログラム、3はメッセ
ージ通番付加装置、4は再送表示付加装置、5は受信メ
ッセージ、10はメッセージ受信部、11は冗送検出部、12
は再送表示検出部、13はサービス処理部、14はオブジェ
クト生成部、15はデータ処理部、16はオブジェクト、17
はオブジェクト管理部、18はメッセージ通番記憶部、19
はメッセージ通番設定部、20は応答メッセージ送信部、
21はメッセージ送信部である。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of the system of the present invention, FIGS. 3 and 4 are flowcharts executed by the present invention, and FIG. 5 is an explanatory diagram of the configuration of the prior art. FIG. 6 is an explanatory view of the problems of the prior art. In the figure, 1 is a service providing unit, 1a is a server program, 2
Is a service request unit, 2a is a user program, 3 is a message serial number addition device, 4 is a retransmission display addition device, 5 is a received message, 10 is a message reception unit, 11 is a redundant transmission detection unit, 12
Is a retransmission display detection unit, 13 is a service processing unit, 14 is an object generation unit, 15 is a data processing unit, 16 is an object, 17
Is an object management section, 18 is a message serial number storage section, 19
Is a message serial number setting part, 20 is a response message sending part,
21 is a message transmission unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】所定のサービス処理を実行するサービス提
供部(1)と、このサービス提供部(1)に対してサー
ビス要求のためのメッセージを送信するサービス要求部
(2)とを備えるデータ処理装置において、 上記サービス要求部(2)がメッセージ送信を実行する
ときに、送信メッセージに識別のための通番を付加する
メッセージ通番付加装置(3)と、 上記サービス要求部(2)が異常状態の発生に伴って同
一メッセージの再送を実行するときに、送信メッセージ
に再送表示を付加する再送表示付加装置(4)とを備え
るとともに、 上記サービス提供部(1)が、上記サービス要求部
(2)からのメッセージに従って対応するサービス処理
を終了したときに、そのメッセージに付されている通番
をオブジェクト単位で記憶するメッセージ通番記憶部
(18)を備えるよう構成し、 そして、上記サービス提供部(1)は、受信メッセージ
がオブジェクト生成に関するものであるときには、上記
再送表示付加装置(4)による再送表示があることを条
件に、上記メッセージ通番記憶部(18)をサーチするこ
とで冗送のメッセージであるか否かを検出するよう処理
するとともに、受信メッセージが生成されてあるオブジ
ェクトを使用するものであるときには、そのメッセージ
が指定するオブジェクトの上記メッセージ通番記憶部
(18)をチェックすることで、冗送のメッセージである
か否かを検出するよう処理してなることを、 特徴とするデータ処理装置の冗送メッセージ検出処理方
式。
1. Data processing, comprising: a service providing unit (1) for executing a predetermined service process; and a service requesting unit (2) for sending a service request message to the service providing unit (1). In the device, when the service request unit (2) executes message transmission, the message sequence number adding device (3) for adding a serial number for identification to a transmitted message and the service request unit (2) are in an abnormal state. A retransmission display adding device (4) for adding a retransmission display to the transmitted message when the same message is retransmitted due to occurrence, and the service providing unit (1) includes the service requesting unit (2). A message that stores the serial number attached to the message in object units when the corresponding service processing is completed according to the message from The service providing unit (1) is configured to include a serial number storage unit (18), and when the received message relates to object generation, there is a retransmission display by the retransmission display addition device (4). As a condition, processing is performed so as to detect whether or not the message is a redundant message by searching the message serial number storage unit (18), and when the received message uses the generated object, A redundant message of a data processing device characterized by being processed to detect whether or not the message is a redundant message by checking the message serial number storage unit (18) of the object specified by the message. Detection processing method.
JP31147188A 1988-12-09 1988-12-09 Redundant message detection processing method of data processing device Expired - Lifetime JPH07120288B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31147188A JPH07120288B2 (en) 1988-12-09 1988-12-09 Redundant message detection processing method of data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31147188A JPH07120288B2 (en) 1988-12-09 1988-12-09 Redundant message detection processing method of data processing device

Publications (2)

Publication Number Publication Date
JPH02157942A JPH02157942A (en) 1990-06-18
JPH07120288B2 true JPH07120288B2 (en) 1995-12-20

Family

ID=18017622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31147188A Expired - Lifetime JPH07120288B2 (en) 1988-12-09 1988-12-09 Redundant message detection processing method of data processing device

Country Status (1)

Country Link
JP (1) JPH07120288B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2680178B2 (en) * 1990-09-28 1997-11-19 富士通株式会社 Data transfer device
JP5987445B2 (en) 2012-04-20 2016-09-07 富士通株式会社 COMMUNICATION CONTROL DEVICE, METHOD, PROGRAM, AND SYSTEM

Also Published As

Publication number Publication date
JPH02157942A (en) 1990-06-18

Similar Documents

Publication Publication Date Title
JP3305769B2 (en) Communication device
CN107124324B (en) Heartbeat protocol method and equipment based on lease
CN110177353B (en) Secondary link monitoring method, device, medium and electronic equipment for vehicle communication
JPH07120288B2 (en) Redundant message detection processing method of data processing device
CN113992740B (en) Middleware based on autonomous control and data transmission method
JPS6072351A (en) Method for supervising operating condition of packet communication system
CN108880994B (en) Method and device for retransmitting mails
CN111585844B (en) Test method, system, server and storage medium based on verification code
KR100249850B1 (en) Proof of message delivery method using message verification
KR930006033B1 (en) Method for transceiving messages between processors in electronic switching system
JP3156102B2 (en) Power system information input method and device
JPH04129346A (en) Communication system provided with duplicate address detection function
CN109684353B (en) Numerical value transfer request processing method, device, server and storage medium
JPH01161562A (en) Data resending system of data transferring network
JP2855768B2 (en) Message transfer test method
JPS6314542B2 (en)
JPH09326782A (en) Serial communication method
JP2781060B2 (en) Resource usage right issuance processing method
JP2827331B2 (en) Bus control device
JPH0423533A (en) Resending control processing method
JPS61228749A (en) Error control system in multiple address communication system
JPH05292149A (en) Retransmission control system for abnormal data
JPS6161147B2 (en)
JPH0721038A (en) Inter-program communication method
JPS632385B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071220

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081220

Year of fee payment: 13

EXPY Cancellation because of completion of term