JP2018157466A - Telegram transmitting/receiving system, telegram transmitting apparatus, telegram receiving apparatus, and telegram transmitting/receiving method and program - Google Patents
Telegram transmitting/receiving system, telegram transmitting apparatus, telegram receiving apparatus, and telegram transmitting/receiving method and program Download PDFInfo
- Publication number
- JP2018157466A JP2018157466A JP2017054129A JP2017054129A JP2018157466A JP 2018157466 A JP2018157466 A JP 2018157466A JP 2017054129 A JP2017054129 A JP 2017054129A JP 2017054129 A JP2017054129 A JP 2017054129A JP 2018157466 A JP2018157466 A JP 2018157466A
- Authority
- JP
- Japan
- Prior art keywords
- message
- transmission
- request
- transmitted
- response
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 23
- 230000005540 biological transmission Effects 0.000 claims abstract description 249
- 230000004044 response Effects 0.000 claims abstract description 134
- 239000000284 extract Substances 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 16
- 230000008569 process Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000004913 activation Effects 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
Description
本発明は、電文送受信システム、電文送信装置、電文受信装置、電文送受信方法およびプログラムに関する。 The present invention relates to a message transmission / reception system, a message transmission device, a message reception device, a message transmission / reception method, and a program.
従来より、業務処理などの様々な分野において、送信先への電文到達を保証する電文保証型の電文送受信システムが提案されている。電文保証の制御は、送信側システムと受信側システムにおいて行なわれる。送信側システムは、送信電文をデータベース等の記憶領域に保存し、送信先からの応答受信が確認されるまで、一定間隔でデータベースから電文を読み出し、再送を繰り返す。例えば、受信側システムが業務処理プログラムを実行中に要求電文を受信した場合、送信側システムは受信側システムから受信確認の応答電文を受信するまで要求電文の再送を繰り返してしまう。電文再送が繰り返された場合、受信側システムは不要な電文の受信処理により、高負荷状態に陥るおそれがある。このため、電文の二重処理を検査するとともに、応答電文を送信する技術が提案されている。 Conventionally, in various fields such as business processing, a message guarantee type message transmission / reception system that guarantees message arrival at a transmission destination has been proposed. The message guarantee control is performed in the transmission side system and the reception side system. The transmission-side system stores the transmission message in a storage area such as a database, reads out the message from the database at regular intervals, and repeats retransmission until a response reception from the transmission destination is confirmed. For example, when the receiving side system receives a request message while executing the business processing program, the transmitting side system repeats the retransmission of the request message until a reception confirmation response message is received from the receiving side system. When the message retransmission is repeated, the receiving system may fall into a high load state due to unnecessary message reception processing. For this reason, a technique has been proposed in which double processing of a message is inspected and a response message is transmitted.
特許文献1に記載の処理システムは、受信電文上の業務(トランザクション)処理プログラムが実行済みか否かに基づき二重処理を判断している。受信側システムは、実行済みでない場合は業務処理プログラムを実行して処理結果を基に作成した応答電文を格納ファイルに記録する。業務処理プログラムが実行済みの場合には、受信側システムは業務処理プログラムを実行せずに登録済みの応答電文を送信する。送信側システムは、受信応答の確認がなされていない要求電文を一定の時間間隔で再送している。 The processing system described in Patent Literature 1 determines the duplex processing based on whether or not the business (transaction) processing program on the received message has been executed. If it has not been executed, the receiving system executes the business processing program and records a response message created based on the processing result in the storage file. If the business process program has been executed, the receiving system transmits a registered response message without executing the business process program. The transmission side system retransmits a request message, for which the reception response has not been confirmed, at regular time intervals.
しかしながら、特許文献1に記載のシステムにおいては、電文受信装置が業務処理プログラムを実行中であったとしても、電文送信装置は電文を繰り返し再送し得る。このため、電文受信装置における電文受信の処理負担が過大になっていた。また、電文送信装置においても重複した再送処理を行うことにより、処理効率が悪化するなどの問題が生じていた。本発明は、上述の課題に鑑みてなされたものであって、電文保証型の電文送受信システムにおいて電文の再送に要する処理負担を軽減することをその目的とする。 However, in the system described in Patent Document 1, even if the telegram receiving device is executing the business processing program, the telegram transmitting device can repeatedly retransmit the telegram. For this reason, the processing load of the message reception in the message reception device has been excessive. In addition, the message transmission apparatus also has a problem that processing efficiency deteriorates due to the repeated retransmission processing. The present invention has been made in view of the above-described problems, and an object of the present invention is to reduce a processing burden required for retransmission of a message in a message-guaranteed message transmission / reception system.
本発明の一観点によれば、電文送信装置および電文受信装置を備える電文送受信システムであって、前記電文送信装置は、前記電文受信装置に要求電文を送信する送信部と、送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部とを備えたことを特徴とする電文送受信システムが提供される。 According to an aspect of the present invention, there is provided a message transmission / reception system including a message transmission device and a message reception device, the message transmission device including a transmission unit that transmits a request message to the message reception device, and a first that has been transmitted. A determination unit that determines whether or not the second request message can be transmitted based on transmission message information that records the first request message in which a corresponding response message is not transmitted from the message reception device. A telegram transmission / reception system characterized by comprising:
本発明の他の観点によれば、電文受信装置に要求電文を送信する送信部と、送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部と、を備えたことを特徴とする電文送信装置が提供される。 According to another aspect of the present invention, the transmission unit that transmits the request message to the message receiving device and the first response message that has been transmitted, the corresponding response message is not transmitted from the message receiving device. There is provided a message transmission device comprising: a determination unit that determines whether or not a second request message can be transmitted based on transmission message information that records one request message.
本発明のさらに他の観点によれば、電文送信装置から送信された要求電文に対応する応答電文を前記電文送信装置に送信する電文受信装置であって、前記電文送信装置に送信されていない前記応答電文を記録する応答電文情報に基づき、前記応答電文の送信の可否を判定する応答送信部を備えたことを特徴とする電文受信装置が提供される。 According to still another aspect of the present invention, there is provided a message reception device that transmits a response message corresponding to a request message transmitted from a message transmission device to the message transmission device, and is not transmitted to the message transmission device. There is provided a message receiving apparatus comprising a response transmission unit that determines whether or not the response message can be transmitted based on response message information that records a response message.
本発明の他の観点によれば、電文送信装置および電文受信装置における電文送受信方法であって、前記電文送信装置によって前記電文受信装置に要求電文を送信するステップと、前記電文送信装置によって送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を前記電文送信装置によって判定するステップと、を備えたことを特徴とする電文送受信方法が提供される。 According to another aspect of the present invention, there is a message transmission / reception method in a message transmission apparatus and a message reception apparatus, the step of transmitting a request message to the message reception apparatus by the message transmission apparatus, and the transmission by the message transmission apparatus Among the first request messages, a message indicating whether or not the second request message can be transmitted based on transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message receiver. And a step of determining by a transmitting device.
本発明の他の観点によれば、要求電文を電文送信装置から電文受信装置に送信するステップと、送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、を備えたことを特徴とする電文送信方法が提供される。 According to another aspect of the present invention, a request message is transmitted from the message transmission device to the message reception device, and a corresponding response message is transmitted from the message reception device among the transmitted first request messages. And a step of determining whether or not the second request message can be transmitted based on the transmitted message information for recording the first request message that does not exist.
本発明の他の観点によれば、要求電文を電文送信装置から電文受信装置に送信するステップと、送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、を備える電文送信方法をコンピュータに実行させるプログラムが提供される。 According to another aspect of the present invention, a request message is transmitted from the message transmission device to the message reception device, and a corresponding response message is transmitted from the message reception device among the transmitted first request messages. There is provided a program for causing a computer to execute a message transmission method comprising: determining whether or not transmission of a second request message is possible based on transmission message information for recording the first request message that is not present.
本発明によれば、電文保証型の電文送受信システムにおいて電文の再送に要する処理負担を軽減することが可能となる。 ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to reduce the processing burden required for the resending of a message | telegram in a message | telegram guarantee type | mold message transmission / reception system.
以下、図面を参照して、本発明の実施形態を説明する。
[第1の実施形態]
図1は本実施形態における電文送受信システムのハードウェアブロック図である。電文送受信システムは、通信経路30を介して互いに接続された電文送信装置10、電文受信装置20を含む。電文送受信システムは、例えば社内外の業務システム、金融機関における決済システム、店舗間の管理システム、航空機などの交通機関の管制システムなど様々な分野において用いられうる。また、電文送信装置10、電文受信装置20は、ある特定の電文に関して送信側と受信側とを区別したものにすぎず、いずれも送受信の機能を備え得る。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
FIG. 1 is a hardware block diagram of a message transmission / reception system according to this embodiment. The message transmission / reception system includes a
電文送信装置10は、バス11、CPU(Central Processing Unit)12、ROM(Read Only Memory)13、RAM(Random Access Memory)14、記憶装置(HDD:Hard Disk Drive)15、通信インターフェース(I/F:Interface)16、キーボード17、ディスプレイ18を含む。
The
CPU12は予め定められたアプリケーションプログラムに従って電文の送受信処理、業務処理を実行する。アプリケーションプログラムはROM13に書き込まれても良く、図示されていないサーバからダウンロードされても良い。RAM14はCPU12の動作に必要なメモリ領域を提供する。記憶装置15は電文、送信電文表、業務データなどを保存可能である。通信インターフェース16は送受信回路、プロトコル変換回路を含み、通信経路30を解して電文などのデータを送受信可能である。キーボード17は電文の入力、業務処理プログラムの操作などのために用いられる。ディスプレイ18は液晶ディスプレイ、有機発光ディスプレイなどから構成され、電文および業務処理に関する表示を行う。
The
電文受信装置20は電文送信装置10と同様に構成され、バス21、CPU22、ROM23、RAM24、記憶装置25、通信インターフェース26、キーボード27、ディスプレイ28を含む。通信経路30は、電文送受信システムの専用回線であっても良く、公衆回線であっても良い。また、通信経路30は有線回線または無線回線であるかを問わない。
The
図2は本実施形態における電文送受信システムの機能ブロック図であって、図1に示されたハードウェアによって実現される。電文送信装置10は、業務処理部110、要求電文送信部120、二重送信判定部130、再送処理部140、応答処理部150、送信電文表160を含む。
FIG. 2 is a functional block diagram of the message transmission / reception system in the present embodiment, which is realized by the hardware shown in FIG. The
業務処理部110はアプリケーションプログラムに従い所定の業務を処理しながら、電文受信装置20に送信すべき電文を作成する。要求電文送信部120は業務処理部110から出力されたデータを所定の電文フォーマットに従って要求電文を作成する。要求電文送信部120は作成した電文が送信可能か否かを二重送信判定部130に問い合わせる。二重送信判定部130が送信を許可すると、要求電文送信部120は電文を電文受信装置20に送信するとともに、送信電文表160に電文を登録する。二重送信判定部130が送信不可であると判断すると、要求電文送信部120は要求電文を破棄する。
The
二重送信判定部130は、要求電文送信部120または再送処理部140からの問い合わせに応じて、電文送信の可否を判定する。二重送信判定部130は、後述する送信電文表160において送信済みの電文のうち、判定対象の電文と同一の電文本体が含まれているか否かを判断することで、電文送信の可否を判定する。すなわち、同一の電文本体が送信電文表160に存在する場合には、二重送信判定部130は判定対象の電文は送信不可であると判断する。一方、同一の電文本体が送信電文表160に存在しない場合には、二重送信判定部130は判定対象の電文は送信可能であると判断する。例えば、1通目の要求電文に対する応答確認がなされていないにもかかわらず、業務処理部110が同一の要求電文を複数回送信すると、電文受信装置20における受信処理の負荷が過大になってしまう。また、電文送信装置10においても繰り返し実行される電文再送の処理負担が増大し得る。さらに、通信経路30においては、多量の再送電文によって通信トラフィックが圧迫される可能性も生じうる。本実施形態によれば、このように、同一の要求電文の再送を制限することで、電文送受信システムの処理負担を軽減させることができる。
The double transmission determination unit 130 determines whether or not a message transmission is possible in response to an inquiry from the request
再送処理部140は、電文送信装置10の動作開始時から所定時間毎に起動し、二重送信判定部130による再送の可否の判断に従い再送処理を実行する。すなわち、再送処理部140は送信電文表160において電文受信装置20からの応答が未確認の電文を読み出し、電文受信装置20に送信する。
The
応答処理部150は、電文受信装置20から返却される二種類の応答電文を受信して、各々の電文に応じた処理を行う。第1の応答電文は、要求電文の受信を契機に返却される受信応答電文である。応答処理部150は受信応答電文を受信すると、受信応答電文に対応する要求電文を送信電文表160から削除し、電文再送を停止させる。第2の応答電文は電文受信装置20の業務処理結果を返却する業務応答電文である。応答処理部150は業務応答電文を受信すると、業務応答電文に従った処理を業務処理部110に実行させる。
The
送信電文表160は受信未確認の電文を記録するデータレコードであり、例えば記憶装置15に保存される。送信電文表160に記録された電文は後述する再送処理部140によって読み出され、再送される。送信電文表160は、電文を一意に識別するための電文IDと、電文の送信可否をあらわす情報とを含み得る。
The transmission message table 160 is a data record that records a message that has not been received, and is stored in the
電文受信装置20は、業務処理部210、応答送信部220、応答電文表230を含む。業務処理部210は受信した要求電文に応じて所定の業務処理を実行する。応答送信部220は、要求電文を受信したことの確認の電文の送信、二重処理の判定、業務処理部210への要求電文の出力、業務処理部210からの応答電文の送信などの処理を行う。応答電文表230は電文送信装置10に返送する業務応答電文を記録する。電文受信装置20が業務実行済みの要求電文を受信した場合に、応答電文表230から応答送信部220が業務応答電文を読み込み、電文送信装置10に返送する。電文受信装置20は応答電文表230に基づき二重処理の判定を行うことができる。
The
図3は本実施形態における電文フォーマットの一例を表している。電文フォーマットは電文区分、電文ID、業務処理結果、電文本体を含む。電文区分は電文の種類を表し、例えば「要求」、「受信応答」、「業務応答」を定義する。要求電文は所定の業務処理を電文送信装置10から電文受信装置20に要求するための電文であり、受信応答電文は要求電文に対して電文受信装置20から電文送信装置10に送信される電文である。また、業務応答電文は、要求電文に対して業務処理の結果を返送する電文である。電文IDは電文に対して一意に割り当てられた識別子であって、送受信する電文を識別するために用いられる。例えば、電文が作成された順に従い、昇順あるいは降順の数値を電文IDに割り当てても良い。これにより、電文IDを参照することで、2つの電文の作成時間の前後を判断することができる。業務処理結果は、業務処理部110による業務処理の結果を表し、例えば「OK」、「NG」などの情報である。電文本体はそれぞれの電文に付加されるテキストデータなどである。
FIG. 3 shows an example of a message format in the present embodiment. The message format includes a message classification, a message ID, a business process result, and a message body. The message classification represents the type of message, and for example, “request”, “reception response”, and “business response” are defined. The request message is a message for requesting the predetermined message processing from the
図4は本実施形態における受信応答電文フォーマットの一例を表している。受信応答電文は、電文受信装置20が電文を受信したことを電文送信装置10に通知するための電文である。受信応答電文は、電文ID、電文区分の情報を含み得る。電文IDは受信した電文の識別番号などの一意のデータであり、電文区分は「受信応答」を定義する。
FIG. 4 shows an example of a reception response message format in the present embodiment. The reception response message is a message for notifying the
図5は本実施形態における送信電文表を表している。送信電文表160は、到達未確認の電文を記録するための送信電文情報であり、電文ID、電文本体、判定結果の情報を含む。電文IDは送信された要求電文の識別番号を表し、電文本体は電文送信装置10が送信した要求電文のメッセージを表している。また、判定結果は、要求電文の送信の可否を表しており、二重送信判定部130によって設定される。すなわち、二重送信判定部130は、判定対象の電文と、当該電文IDより前の時刻に作成された電文IDを有する電文とが同一であるか否かを判断する。二重送信判定部130は、両者が同一である場合には、判定結果を「送信不可」に設定し、両者が異なる場合には、判定結果を「送信可能」に設定する。判定結果が「送信可能」である場合には、要求電文送信部120、再送処理部140による電文の送信が許可される。一方、判定結果が「送信不可」である場合には、要求電文送信部120、再送処理部140による電文の送信が制限される。
FIG. 5 shows a transmission telegram table in the present embodiment. The transmission message table 160 is transmission message information for recording a message that has not yet been confirmed, and includes information on a message ID, a message body, and a determination result. The message ID represents the identification number of the transmitted request message, and the message body represents the message of the request message transmitted by the
図6は本実施形態における応答電文表230の図である。応答電文表230は電文受信装置20において二重送信を判定するための応答電文情報であって、電文ID、応答電文本体の情報を含む。電文IDは応答電文の識別番号を表し、応答電文本体は電文受信装置20が送信した応答電文のメッセージを表している。
FIG. 6 is a diagram of the response message table 230 in the present embodiment. The response message table 230 is response message information for determining double transmission in the
図7は、要求電文送信部120の動作を表すフローチャートである。先ず、業務処理部110は所定の業務を処理し、電文受信装置20に宛てられた電文本体を作成する。要求電文送信部120は、業務処理部110からの電文本体を用いて、図3に示された電文フォーマットに従い要求電文を作成する(ステップS101)。電文フォーマットにおいて、要求電文送信部120は電文区分に「要求」を設定し、電文IDには電文送受信システムにおいて一意の識別番号を設定する。電文本体には業務処理部110によって作成された電文メッセージが設定される。
FIG. 7 is a flowchart showing the operation of the request
要求電文送信部120は要求電文の送信の可否を二重送信判定部130に問い合わせる(ステップS102)とともに、要求電文を送信電文表160に登録する(ステップS103)。二重送信判定部130は要求電文の送信が可能か否かを判定し、判定結果を送信電文表160に登録する。続いて、要求電文送信部120は送信電文表160を参照する。判定結果が送信可能である場合(ステップS104でYES)には、要求電文送信部120は要求電文を電文受信装置20に送信する(ステップS105)。判定結果が送信不可である場合(ステップS104でNO)には、要求電文送信部120は要求電文を破棄し、処理を終了する。
The request
図8は二重送信判定部130の動作を表すフローチャートである。二重送信判定部130は、要求電文送信部120または再送処理部140からの問い合わせに応じて、二重送信の判定を開始する。二重送信判定部130は、送信予定の要求電文の電文本体と送信電文表160に記録された電文本体とを比較する(ステップS201)。二重送信判定部130は、送信予定の要求電文の電文IDより前の時刻に作成された電文IDを有する要求電文を検索する。電文IDの時間の前後は、上述したように例えば電文IDの番号の大きさによって判断し得る。次に、二重送信判定部130は、検索された1つまたは複数の要求電文において、送信予定の要求電文と同一の電文本体を有する要求電文が存在するか否かを判断する。同一の要求電文が送信電文表160に存在する場合(ステップS202でYES)には、二重送信判定部130は送信電文表160における判定結果を「送信不可」に設定する(ステップS204)。同一の要求電文が送信電文表160に存在しない場合(ステップS202でNO)には、二重送信判定部130は送信電文表160における判定結果を「送信可能」に設定する(ステップS203)。要求電文送信部120、二重送信判定部130は送信電文表160における判定結果に基づき要求電文の送信または中止の処理を行う。
FIG. 8 is a flowchart showing the operation of the double transmission determination unit 130. In response to an inquiry from request
図9は応答送信部220の動作を表すフローチャートである。電文受信装置20の応答送信部220は、電文送信装置10から電文を受信すると、当該電文が要求電文であるか否かを判断する。応答送信部220は受信した電文の電文区分が「要求」であるか否かを判断し、受信した電文が要求電文である場合には、以下の処理を開始する。先ず、応答送信部220は要求電文に対する応答電文を作成し、電文送信装置10に送信する(ステップS301)。受信応答電文は、図4に示すように電文区分と電文IDの情報を含む。電文区分には「受信応答」が設定され、電文IDには応答電文に対応する受信電文の電文IDが設定される。
FIG. 9 is a flowchart showing the operation of the
次に、応答送信部220は、受信電文の電文IDをキーとして応答電文表230を検索し、受信電文に対応する応答電文が存在するか否かを判定する(ステップS302)。受信電文に対応する応答電文が存在しない場合(ステップS302でNO)には、応答送信部220は業務処理部210を起動させる(ステップS303)。業務処理部210は要求電文に従い業務処理を行い、応答メッセージを作成する。応答送信部220は業務処理部210から応答メッセージを受け取ると、図3に示された電文フォーマットに従い業務応答電文を作成する(ステップS304)。電文区分には「業務応答」が設定され、電文IDには受信電文の電文IDが設定される。業務処理結果には、業務処理部210による処理結果として「OK」または「NG」のいずれかが設定される。応答送信部220は作成された業務応答電文を応答電文表に登録し(ステップS305)、電文送信装置10に送信する(ステップS307)。一方、ステップS302において、受信電文に対応する応答電文が存在する場合(ステップS302でYES)には、応答送信部220は当該電文を応答電文表230から読み出し、電文送信装置10に送信する(ステップS307)。
Next, the
図10は応答処理部150の動作を表すフローチャートである。電文送信装置10の応答処理部150は電文受信装置20から応答電文を受信すると、応答電文の種別を電文区分に基づき判断する(ステップS401)。応答電文の電文区分が「受信応答」である場合には、応答処理部150は送信電文表160から応答電文に対応する要求電文を削除する(ステップS402)。これにより、受信応答がなされた要求電文の再送は行われなくなる。応答電文の電文区分が「業務応答」である場合には、応答処理部150は業務処理部110を起動させ、業務処理部110は応答電文に基づく業務処理を実行する(ステップS403)。
FIG. 10 is a flowchart showing the operation of the
図11は再送処理部140の動作を表すフローチャートである。再送処理部140はタイマに基づき電文送信装置10の起動時から一定時間毎に起動する。再送処理部140が起動すると、先ず送信電文表160から1つの電文を読み出す(ステップS501)。次に、再送処理部140は、読み出した電文が送信可能か否かを二重送信判定部130に問い合わせる(ステップS502)。二重送信判定部130は、電文が送信可能であると判断すると(ステップS503でYES)、送信電文表160において電文の判定結果を「送信可能」に更新する(ステップS504)。再送処理部140は、送信電文表160の判定結果に従い要求電文を電文受信装置20に再送する(ステップS505)。一方、二重送信判定部は、電文が送信不可であると判断すると(ステップS503でNO)、送信電文表160において電文の判定結果を「送信不可」の状態のままとする。すなわち、判定対象の電文と同一の電文本体を有する電文が送信電文表160に存在する場合には、未だ応答電文が電文受信装置20から返送されていないと判断し得る。電文受信装置20における処理負担を軽減するため、再送処理部140は電文の再送を行わずに処理を終了する。
FIG. 11 is a flowchart showing the operation of the
再送処理部140は以上の処理を、送信電文表160のすべての電文に対して所定時間毎に繰り返し実行する。この間、送信電文表160に登録された要求電文に対して応答電文が返送されると、当該要求電文は送信電文表160から削除され、再送が停止される。また、送信された要求電文に対して応答電文が返送されていない場合には、再送を制限することにより、電文受信装置20における処理負担を軽減することが可能となる。
The
以上、述べたように、本実施形態によれば、送信電文表を用いて再送の可否を判定することにより、電文保証型の電文送受信システムにおいて電文の再送に要する処理負担を軽減することが可能となる。すなわち、電文受信装置20における再送電文の処理負担を軽減することができ、また、電文送信装置10は電文の再送を繰り返し行なわずに済むため、電文送信装置10における処理負担も軽減することが可能である。さらに、通信経路30における通信量を削減することができ、電文送受信システム全体において高速な処理が可能となる。
As described above, according to the present embodiment, it is possible to reduce the processing burden required for retransmission of a message in a message-guaranteed message transmission / reception system by determining whether or not retransmission is possible using the transmission message table. It becomes. That is, it is possible to reduce the processing load of the retransmitted message in the
[第2の実施形態]
図12は本実施形態における電文送信装置の概略構成図である。本実施形態における電文送信装置10は、送信部101と判定部102とを備える。送信部101は電文受信装置に要求電文を送信する。判定部102は、送信済みの第1の要求電文のうち、対応する応答電文が電文受信装置から送信されていない第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する。本実施形態によれば、送信電文情報を用いて再送の可否を判定することにより、電文保証型の電文送受信システムにおいて電文の再送に要する処理負担を軽減することが可能となる。
[Second Embodiment]
FIG. 12 is a schematic configuration diagram of a message transmission device according to the present embodiment. The
[他の実施形態]
本発明は、発明の趣旨を逸脱しない範囲において様々な態様において実施可能である。例えば、送信電文表160、応答電文表230は必ずしも表形式のデータであること要せず、様々なフォーマットの情報であり得る。また、二重送信判定部130によって電文の送信が不可であると判定された場合、電文の送信を完全に禁止せずに、電文再送の頻度を低くするなど、送信を制限しても良い。
[Other Embodiments]
The present invention can be implemented in various modes without departing from the spirit of the invention. For example, the transmission message table 160 and the response message table 230 do not necessarily need to be tabular data, and may be information in various formats. If the duplex transmission determination unit 130 determines that transmission of a message is not possible, transmission may be limited, for example, by reducing the frequency of message retransmission without completely prohibiting transmission of the message.
上述の実施形態の一部または全部は、以下の付記のようにも記載されうるが、以下には限られない。 A part or all of the above-described embodiment can be described as in the following supplementary notes, but is not limited thereto.
(付記1)
電文送信装置および電文受信装置を備える電文送受信システムであって、
前記電文送信装置は、
前記電文受信装置に要求電文を送信する送信部と、
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部と、
を備えたことを特徴とする電文送受信システム。
(Appendix 1)
A message transmission / reception system comprising a message transmission device and a message reception device,
The message transmission device
A transmission unit for transmitting a request message to the message reception device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determination unit for determining;
A message transmission / reception system comprising:
(付記2)
電文受信装置に要求電文を送信する送信部と、
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部と、
を備えたことを特徴とする電文送信装置。
(Appendix 2)
A transmission unit for transmitting a request message to the message reception device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determination unit for determining;
A message transmission device comprising:
(付記3)
前記判定部は、前記送信電文情報に含まれる前記第1の要求電文の電文本体と同一の電文本体を有する前記第2の要求電文の送信を制限することを特徴とする付記2に記載の電文送信装置。
(Appendix 3)
The message according to claim 2, wherein the determination unit restricts transmission of the second request message having the same message body as the message body of the first request message included in the transmission message information. Transmitter device.
(付記4)
前記判定部は、前記電文受信装置から前記応答電文を受信した場合、当該応答電文に対応する前記第1の要求電文を前記送信電文情報から削除することを特徴とする付記2または3に記載の電文送信装置。
(Appendix 4)
When the said determination part receives the said response message from the said message receiver, the said 1st request message corresponding to the said response message is deleted from the said transmission message information, The
(付記5)
前記送信電文情報は、前記要求電文に一意である識別子をさらに含むことを特徴とする付記2乃至4のいずれかに記載の電文送信装置。
(Appendix 5)
The message transmission apparatus according to any one of appendices 2 to 4, wherein the transmission message information further includes an identifier that is unique to the request message.
(付記6)
前記識別子は、前記第1および前記第2の要求電文のそれぞれの作成時間の前後を判断可能な情報を含み、
前記判定部は、前記第2の要求電文よりも前の時間に作成された前記第2の要求電文を前記識別子に基づき前記送信電文情報から抽出し、前記第2の要求電文の送信の可否を判定することを特徴とする付記5に記載の電文送信装置。
(Appendix 6)
The identifier includes information capable of determining before and after the creation time of each of the first and second request messages.
The determination unit extracts the second request message created at a time before the second request message from the transmission message information based on the identifier, and determines whether or not the second request message can be transmitted. The message transmitting device according to appendix 5, wherein the message transmitting device is determined.
(付記7)
電文送信装置から送信された要求電文に対応する応答電文を前記電文送信装置に送信する電文受信装置であって、
前記電文送信装置に送信されていない前記応答電文を記録する応答電文情報に基づき、前記応答電文の送信の可否を判定する応答送信部を備えたことを特徴とする電文受信装置。
(Appendix 7)
A message receiver that transmits a response message corresponding to a request message transmitted from a message transmitter to the message transmitter,
A message receiving device comprising: a response transmission unit that determines whether or not the response message can be transmitted based on response message information that records the response message that has not been transmitted to the message transmission device.
(付記8)
電文送信装置および電文受信装置における電文送受信方法であって、
前記電文送信装置によって前記電文受信装置に要求電文を送信するステップと、
前記電文送信装置によって送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を前記電文送信装置によって判定するステップと、
を備えたことを特徴とする電文送受信方法。
(Appendix 8)
A message transmission / reception method in a message transmission apparatus and a message reception apparatus,
Transmitting a request message to the message receiver by the message transmitter;
Based on the transmission message information that records the first request message in which the corresponding response message is not transmitted from the message reception device among the first request messages transmitted by the message transmission device, the second request message Determining whether or not transmission is possible by the message transmission device;
A message transmission / reception method comprising:
(付記9)
要求電文を電文送信装置から電文受信装置に送信するステップと、
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、
を備えたことを特徴とする電文送信方法。
(Appendix 9)
Transmitting a request message from the message transmitting device to the message receiving device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determining step;
A message transmission method comprising:
(付記10)
要求電文を電文送信装置から電文受信装置に送信するステップと、
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、
を備える電文送信方法をコンピュータに実行させるプログラム。
(Appendix 10)
Transmitting a request message from the message transmitting device to the message receiving device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determining step;
A program that causes a computer to execute a message transmission method.
10 電文送信装置
20 電文受信装置
30 通信経路
11、21 バス
12、22 CPU
13、23 ROM
14、24 RAM
15、25 記憶装置
16、26 通信インターフェース
17、27 キーボード
18、28 ディスプレイ
110 業務処理部
120 要求電文送信部
130 二重送信判定部
140 再送処理部
150 応答処理部
160 送信電文表
210 業務処理部
220 応答送信部
230 応答電文表
DESCRIPTION OF
13, 23 ROM
14, 24 RAM
15, 25
Claims (10)
前記電文送信装置は、
前記電文受信装置に要求電文を送信する送信部と、
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部と、
を備えたことを特徴とする電文送受信システム。 A message transmission / reception system comprising a message transmission device and a message reception device,
The message transmission device
A transmission unit for transmitting a request message to the message reception device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determination unit for determining;
A message transmission / reception system comprising:
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定する判定部と、
を備えたことを特徴とする電文送信装置。 A transmission unit for transmitting a request message to the message reception device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determination unit for determining;
A message transmission device comprising:
前記判定部は、前記第2の要求電文よりも前の時間に作成された前記第2の要求電文を前記識別子に基づき前記送信電文情報から抽出し、前記第2の要求電文の送信の可否を判定することを特徴とする請求項5に記載の電文送信装置。 The identifier includes information capable of determining before and after the creation time of each of the first and second request messages.
The determination unit extracts the second request message created at a time before the second request message from the transmission message information based on the identifier, and determines whether or not the second request message can be transmitted. The message transmission device according to claim 5, wherein the determination is performed.
前記電文送信装置に送信されていない前記応答電文を記録する応答電文情報に基づき、前記応答電文の送信の可否を判定する応答送信部を備えたことを特徴とする電文受信装置。 A message receiver that transmits a response message corresponding to a request message transmitted from a message transmitter to the message transmitter,
A message receiving device comprising: a response transmission unit that determines whether or not the response message can be transmitted based on response message information that records the response message that has not been transmitted to the message transmission device.
前記電文送信装置によって前記電文受信装置に要求電文を送信するステップと、
前記電文送信装置によって送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を前記電文送信装置によって判定するステップと、
を備えたことを特徴とする電文送受信方法。 A message transmission / reception method in a message transmission apparatus and a message reception apparatus,
Transmitting a request message to the message receiver by the message transmitter;
Based on the transmission message information that records the first request message in which the corresponding response message is not transmitted from the message reception device among the first request messages transmitted by the message transmission device, the second request message Determining whether or not transmission is possible by the message transmission device;
A message transmission / reception method comprising:
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、
を備えたことを特徴とする電文送信方法。 Transmitting a request message from the message transmitting device to the message receiving device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determining step;
A message transmission method comprising:
送信済みの第1の要求電文のうち、対応する応答電文が前記電文受信装置から送信されていない前記第1の要求電文を記録する送信電文情報に基づき、第2の要求電文の送信の可否を判定するステップと、
を備える電文送信方法をコンピュータに実行させるプログラム。 Transmitting a request message from the message transmitting device to the message receiving device;
Based on the transmission message information that records the first request message for which the corresponding response message has not been transmitted from the message reception device among the transmitted first request messages, whether or not the second request message can be transmitted is determined. A determining step;
A program that causes a computer to execute a message transmission method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017054129A JP6932961B2 (en) | 2017-03-21 | 2017-03-21 | Telegram transmission / reception system, telegram transmission device, telegram transmission / reception method and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017054129A JP6932961B2 (en) | 2017-03-21 | 2017-03-21 | Telegram transmission / reception system, telegram transmission device, telegram transmission / reception method and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018157466A true JP2018157466A (en) | 2018-10-04 |
| JP6932961B2 JP6932961B2 (en) | 2021-09-08 |
Family
ID=63716853
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017054129A Active JP6932961B2 (en) | 2017-03-21 | 2017-03-21 | Telegram transmission / reception system, telegram transmission device, telegram transmission / reception method and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6932961B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022009415A1 (en) * | 2020-07-10 | 2022-01-13 | 日本電信電話株式会社 | Request delivery device, request delivery method, and request delivery program |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0622000A (en) * | 1992-07-06 | 1994-01-28 | Nec Corp | Message communication system with function preventing the missing of message |
| JP2003150465A (en) * | 2001-11-19 | 2003-05-23 | Nec Corp | Transaction process control system in distributed processing system |
| JP2007133869A (en) * | 2005-11-02 | 2007-05-31 | Lg Electronics Inc | Terminal and its message processing method |
| US20080098231A1 (en) * | 2006-10-19 | 2008-04-24 | Stmicroelectronics Sa | Data transmission method using an acknowledgement code comprising hidden authentication bits |
| KR20150123407A (en) * | 2014-04-24 | 2015-11-04 | 삼성전자주식회사 | Apparatus and method for providing message service |
-
2017
- 2017-03-21 JP JP2017054129A patent/JP6932961B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0622000A (en) * | 1992-07-06 | 1994-01-28 | Nec Corp | Message communication system with function preventing the missing of message |
| JP2003150465A (en) * | 2001-11-19 | 2003-05-23 | Nec Corp | Transaction process control system in distributed processing system |
| JP2007133869A (en) * | 2005-11-02 | 2007-05-31 | Lg Electronics Inc | Terminal and its message processing method |
| US20080098231A1 (en) * | 2006-10-19 | 2008-04-24 | Stmicroelectronics Sa | Data transmission method using an acknowledgement code comprising hidden authentication bits |
| KR20150123407A (en) * | 2014-04-24 | 2015-11-04 | 삼성전자주식회사 | Apparatus and method for providing message service |
Non-Patent Citations (1)
| Title |
|---|
| "基礎から学ぼう。弱点を知ろう。TCP/IPのここがダメ! WWW以外でも利用される万能プロトコル H", NETWORK MAGAZINE, vol. 第8巻/第12号, JPN6020049571, 1 December 2003 (2003-12-01), JP, pages 52 - 55, ISSN: 0004413486 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022009415A1 (en) * | 2020-07-10 | 2022-01-13 | 日本電信電話株式会社 | Request delivery device, request delivery method, and request delivery program |
| JPWO2022009415A1 (en) * | 2020-07-10 | 2022-01-13 | ||
| JP7424494B2 (en) | 2020-07-10 | 2024-01-30 | 日本電信電話株式会社 | Request delivery device, request delivery method, and request delivery program |
| US11968253B2 (en) | 2020-07-10 | 2024-04-23 | Nippon Telegraph And Telephone Corporation | Request delivery device, request delivery method, and request delivery program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6932961B2 (en) | 2021-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7325506B2 (en) | Business processing method, device, electronic device and computer program based on blockchain system | |
| CN110349029B (en) | Block chain-based transaction consistency processing method, device and system | |
| US20090070336A1 (en) | Method and system for managing transmitted requests | |
| CN111651284B (en) | Method, device, system and storage medium for processing business data | |
| CN102647365A (en) | Method, device and data exchange server for processing messages and message states | |
| US10171258B2 (en) | Data collection method and system | |
| JP6932961B2 (en) | Telegram transmission / reception system, telegram transmission device, telegram transmission / reception method and program | |
| CN108880994B (en) | Method and device for retransmitting mails | |
| KR20170010300A (en) | Methods for processing request message in M2M system and Apparatuses thereof | |
| CN106453613B (en) | Message retransmission method and device | |
| CN119271589A (en) | A request device, response device and system based on RDMA | |
| CN109698843A (en) | A kind of method and device for realizing data transmission | |
| CN113783666B (en) | Method and device for processing business | |
| CN111405609B (en) | Data transmission method, device, system, medium and equipment | |
| JP6451425B2 (en) | Information processing apparatus, information processing system, and information processing program | |
| JP5136200B2 (en) | Logging system | |
| JP4237164B2 (en) | Telegram-guaranteed communication system and method, transmitting apparatus and program | |
| CN119512996B (en) | Remote direct memory access device and method | |
| JP2007221522A (en) | Polling device, terminal device, polling method and program | |
| CN118740920B (en) | Message time sequence control method and device | |
| JP4759418B2 (en) | Message recovery system and recovery method | |
| JP2009159519A (en) | Image forming apparatus, program, and recording medium | |
| US8042037B1 (en) | Sequencing of markup language documents | |
| JP7124384B2 (en) | Telegram Assurance System and Telegram Assurance Method | |
| JP5525022B2 (en) | Terminal, server, data transfer system, and computer program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20180413 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200207 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20201124 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20201222 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210210 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210720 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210802 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6932961 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |