Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3408495B2 - How to prevent double notification of retransmitted messages - Google Patents
[go: Go Back, main page]

JP3408495B2 - How to prevent double notification of retransmitted messages - Google Patents

How to prevent double notification of retransmitted messages

Info

Publication number
JP3408495B2
JP3408495B2 JP2000150272A JP2000150272A JP3408495B2 JP 3408495 B2 JP3408495 B2 JP 3408495B2 JP 2000150272 A JP2000150272 A JP 2000150272A JP 2000150272 A JP2000150272 A JP 2000150272A JP 3408495 B2 JP3408495 B2 JP 3408495B2
Authority
JP
Japan
Prior art keywords
message
transmission
time
external device
reception
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
JP2000150272A
Other languages
Japanese (ja)
Other versions
JP2001333133A (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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP2000150272A priority Critical patent/JP3408495B2/en
Publication of JP2001333133A publication Critical patent/JP2001333133A/en
Application granted granted Critical
Publication of JP3408495B2 publication Critical patent/JP3408495B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電文を外部装置か
ら受信してアプリケーションプログラムに通知する方法
に関し、特に、外部装置がタイムアウトにより再送した
電文のアプリケーションプログラムへの二重通知を防止
する方法に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of receiving a message from an external device and notifying the application program, and more particularly to a method of preventing duplicate notification of the message retransmitted by the external device due to a timeout to the application program.

【0002】[0002]

【従来の技術】近年、パーソナルコンピュータなどの端
末(DTE)における通信では、CPUの高速化/高性
能化を要因とし、また、システムの原価低減の目的と
し、通信制御に関し、通信専用プロセッサを載せた通信
ボードによる制御(インテリジェント制御)がCPUに
よる直接制御(ノンインテリジェント制御)に移行して
いる。
2. Description of the Related Art In recent years, in communication in a terminal (DTE) such as a personal computer, a processor dedicated for communication is mounted for communication control for the purpose of speeding up / enhancing the CPU and reducing the cost of the system. The control by the communication board (intelligent control) is shifting to the direct control by the CPU (non-intelligent control).

【0003】[0003]

【発明が解決しようとする課題】ここで問題になってく
るのは、動画再生やDISKなどの外部記憶装置への読
み書きなどのCPUへの負荷が高い処理を連続して行っ
ている場合、CPUの通信制御に割り当てられる時間が
少なくなり、その結果、受信処理のうちの受信バッファ
からのデータ取り出しに多大な時間がかかるようになっ
たことである。
The problem to be solved by the present invention is that when a CPU-intensive process such as moving image reproduction or reading / writing from / to an external storage device such as DISK is continuously performed, The time allotted to the communication control is reduced, and as a result, it takes much time to retrieve data from the reception buffer in the reception process.

【0004】この時、外部装置では、一定時間たっても
送信電文の応答が届かないことになり、外部装置側では
通信障害(無応答タイマタイムアウト)が発生し、通信
途上で電文が消滅したとみなし、回復処理として先に送
信した電文と同じ電文を送信する。
At this time, the external device does not receive the response of the transmission message even after a certain period of time, and it is considered that the communication error (no-response timer timeout) occurs on the external device side and the message is lost during the communication. , As the recovery process, the same message as the one previously transmitted is transmitted.

【0005】このアプリケーションプログラムに二重に
受信を通知する場合の動作図を図5に示す。
FIG. 5 shows an operation diagram in the case of notifying the application program of reception in duplicate.

【0006】しかし、実際にはDTE側では通信制御が
CPU時間を取得できないことから、受信バッファから
のデータ転送に時間がかかっているだけの為、データ転
送後、アプリケーションプログラムに電文受信を通知
し、外部装置に応答電文を送信した後、次の受信を待つ
事になる。
However, in reality, since the DTE side cannot acquire the CPU time in the communication control, it takes only a long time to transfer the data from the reception buffer. Therefore, after the data transfer, the application program is notified of the reception of a message. , After sending the response message to the external device, it waits for the next reception.

【0007】この時、受信バッファに外部装置から送信
された再送電文が蓄積されている場合、通信制御は次の
受信電文が到着したと誤って認識し、受信処理後、アプ
リケーションプログラムにその受信電文を通知してしま
う。この通知を受け取ったアプリケーションプログラム
は外部装置との間に通信の不一致を発生させてしまう。
この不一致は、時として以降の通信を不正にし、その結
果、通信障害や通信シーケンス異常となってアプリケー
ションプログラムの動作に影響を与えることとなる。
At this time, if the re-transmitted text sent from the external device is stored in the reception buffer, the communication control erroneously recognizes that the next received text has arrived, and after the reception processing, the received text is received by the application program. Will be notified. The application program that receives this notification causes a communication inconsistency with the external device.
This inconsistency sometimes makes subsequent communication illegal, resulting in communication failure or communication sequence abnormality, which affects the operation of the application program.

【0008】この場合、外部装置側も含めて改造可能な
場合は、通信電文の加工(電文中の未使用な場所にシー
ケンシャルな番号を埋め込むなど)や送信タイムアウト
時間を大きくするなどの変更で回避可能であるが、外部
装置側に何らかの改造をかけなければならない為、元々
の考えであるシステムの原価低減とは相反する結果とな
ってしまう。また、その他の要因で対応不可能な場合
(DTEの更新時、旧システムから外部装置のみ継続使
用するが外部装置の台数が多くかつそれぞれが分散して
設置されている場合や外部装置が旧式でそのような対応
ができないなど)は、回避することが難しい。
In this case, if it can be modified including the external device side, it can be avoided by modifying the communication message (such as embedding a sequential number in an unused place in the message) or increasing the transmission timeout time. Although it is possible, some modification is required on the external device side, which results in a conflict with the original idea of reducing the cost of the system. In addition, when it is not possible to deal with it due to other factors (when updating the DTE, only external devices are continuously used from the old system, but the number of external devices is large and they are installed in a distributed manner, or the external devices are old-fashioned. It is difficult to avoid such cases).

【0009】本発明は、外部装置から再送されてくる電
文のアプリケーションプログラムへの二重通知を防止す
ることを可能とする再送電文二重通知防止方法を提供す
ることを目的とする。
It is an object of the present invention to provide a re-transmission message double notification prevention method which makes it possible to prevent double notification of a message retransmitted from an external device to an application program.

【0010】[0010]

【課題を解決するための手段】本発明による再送電文二
重通知防止方法は、受信バッファからの電文の読み出し
に要した実受信時間が外部装置が前記電文の再送を開始
するための基準となる受信可能時間よりも長いか否かを
判定する第1の判定ステップと、前記受信時間が前記受
信可能時間よりも長いときに、前記電文を記憶するとと
もに再送電文待ち状態を設定する設定ステップと、前記
再送電文待ち状態が設定されているときに、電文を受信
したならば、このときに受信した電文が記憶された電文
と同一であるか否かを判定する第2の判定ステップと、
前記第2の判定ステップでの判定結果が肯定的であると
きに、前記再送電文待ち状態が設定されているならば、
受信した電文をアプリケーションプログラムに通知する
ことを中止する中止ステップと、を有することを特徴と
する。
According to the method for preventing double notification of re-transmission message according to the present invention, the actual reception time required for reading a message from the reception buffer becomes a reference for the external device to start the retransmission of the message. A first determining step of determining whether it is longer than a receivable time, and a setting step of storing the electronic message and setting a re-transmission statement waiting state when the receiving time is longer than the receivable time, A second determination step of determining whether or not the message received at this time is the same as the stored message if a message is received when the re-transmitted message waiting state is set.
If the result of the second determination step is affirmative and the re-transmission sentence waiting state is set,
And a stop step of stopping notifying the application program of the received electronic message.

【0011】また、本発明による再送電文二重通知防止
方法は、上記の再送電文二重通知防止方法において、前
記受信可能時間を、前記バッファから読み出した電文の
データ長、前記外部装置と電文を受信する端末との間の
通信速度、前記外部装置の再送のためのタイムアウト時
間、前記端末から前記外部装置への応答に要する応答論
理時間より計算する計算ステップを更に有することを特
徴とする。
Further, the method for preventing double notification of re-transmission message according to the present invention is the above method for preventing double notification of re-transmission message, wherein the receivable time is the data length of the message read from the buffer, the external device and the message. It further comprises a calculation step of calculating from a communication speed with the receiving terminal, a timeout time for the retransmission of the external device, and a response logical time required for a response from the terminal to the external device.

【0012】更に、本発明による再送電文二重通知防止
方法は、上記の再送電文二重通知防止方法において、前
記再送電文待ち状態をその設定後に所定の時間が経過し
たならば解除するステップを更に有することを特徴とす
る。
Further, the method for preventing double notification of re-transmission sentence according to the present invention further comprises the step of canceling the re-transmission statement waiting state when a predetermined time has elapsed after the setting in the method for preventing double notification of re-transmission sentence. It is characterized by having.

【0013】更に、再送電文二重通知防止方法は、上記
の再送電文二重通知防止方法において、前記再送電文待
ち状態が設定されているときには、前記アプリケーショ
ンプログラムから要求があっても電文を送信しないこと
を特徴とする。
Further, in the method for preventing double notification of re-transmission message, the method for preventing double notification of re-transmission message does not transmit a message even when a request is made from the application program when the re-transmission statement waiting state is set. It is characterized by

【0014】本発明によるコンピュータ読み取り可能な
記録媒体は、受信バッファからの電文の読み出しに要し
た実受信時間が外部装置が前記電文の再送を開始するた
めの基準となる受信可能時間よりも長いか否かを判定す
る第1の判定ステップと、前記受信時間が前記受信可能
時間よりも長いときに、前記電文を記憶するとともに再
送電文待ち状態を設定する設定ステップと、前記再送電
文待ち状態が設定されているときに、電文を受信したな
らば、このときに受信した電文が記憶された電文と同一
であるか否かを判定する第2の判定ステップと、前記第
2の判定ステップでの判定結果が肯定的であるときに、
前記再送電文待ち状態が設定されているならば、受信し
た電文をアプリケーションプログラムに通知することを
中止する中止ステップと、を有する再送電文二重通知防
止方法をコンピュータに実行させるためのプログラムを
記録したことを特徴とする。
In the computer-readable recording medium according to the present invention, is the actual reception time required for reading the message from the reception buffer longer than the receivable time which is a reference for the external device to start the retransmission of the message? A first determination step of determining whether or not there is a setting step of storing the message and setting a re-transmission statement waiting state when the reception time is longer than the receivable time; If a telegram is received while the message is being displayed, a second decision step of deciding whether or not the telegram received at this time is the same as the stored telegram, and the decision in the second decision step When the result is positive,
If the re-transmission message waiting state is set, a program for causing the computer to execute the re-transmission message double notification prevention method having a stop step of stopping notifying the application program of the received message is recorded. It is characterized by

【0015】また、本発明によるコンピュータ読み取り
可能な記録媒体は、上記のコンピュータ読み取り可能な
記録媒体において、前記方法が、前記受信可能時間を、
前記バッファから読み出した電文のデータ長、前記外部
装置と電文を受信する端末との間の通信速度、前記外部
装置の再送のためのタイムアウト時間、前記端末から前
記外部装置への応答に要する応答論理時間より計算する
計算ステップを更に有することを特徴とする。
A computer-readable recording medium according to the present invention is the above-mentioned computer-readable recording medium, wherein the method provides the receivable time,
The data length of the electronic message read from the buffer, the communication speed between the external device and the terminal that receives the electronic message, the timeout time for retransmission of the external device, the response logic required for a response from the terminal to the external device. It is characterized by further comprising a calculation step of calculating from time.

【0016】更に、本発明によるコンピュータ読み取り
可能な記録媒体は、上記のコンピュータ読み取り可能な
記録媒体において、前記方法が、前記再送電文待ち状態
をその設定後に所定の時間が経過したならば解除するス
テップを更に有することを特徴とする。
Further, in the computer-readable recording medium according to the present invention, in the above-mentioned computer-readable recording medium, the method releases the re-transmission message waiting state if a predetermined time has elapsed after the setting. Is further included.

【0017】更に、本発明によるコンピュータ読み取り
可能な記録媒体は、上記のコンピュータ読み取り可能な
記録媒体において、前記方法が前記再送電文待ち状態が
設定されているときには、前記アプリケーションプログ
ラムから要求があっても電文を送信しないことを特徴と
する。
Further, in the computer-readable recording medium according to the present invention, in the above-mentioned computer-readable recording medium, even when there is a request from the application program when the method is set to the re-transmission statement waiting state. It is characterized by not sending a telegram.

【0018】[0018]

【発明の実施の形態】本発明は、図1に示すデータ端末
装置(DTE)において、外部装置とのデータ通信で、
DTE内のデータ転送の遅延が原因で発生した無応答タ
イマタイムアウトに対し、外部装置が送信してくる再送
電文を、DTE側が誤って次の電文とみなしアプリケー
ションプログラムへ通知することを防止するものであ
る。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention is a data terminal device (DTE) shown in FIG.
This is to prevent the DTE side from mistakenly regarding the re-transmission statement sent by the external device as the next message and notifying the application program to the no-response timer timeout caused by the delay in data transfer in the DTE. is there.

【0019】外部装置側の無応答タイマタイムアウト時
間と電文受信にかかる論理時間(通信速度×受信電文
長)を加算し、その時間に応答送信にかかる論理時間を
引いた受信可能時間と、実際に受信するのにかかった実
受信時間を比較し、実受信時間が受信可能時間より大き
な場合、二重通知防止処置として、電文受信通知をアプ
リケーションプログラムへ通知後、再送されてくるであ
ろう電文の受信を待ち、受信した場合は受け捨てを行
う。
The non-response timer timeout time on the external device side and the logical time required for message reception (communication speed x received message length) are added, and the logical time required for response transmission is subtracted from that time, and the receivable time is actually calculated. Compare the actual reception time required to receive, and if the actual reception time is larger than the receivable time, as a double notification prevention measure, the message reception notification of the message that will be retransmitted after notification to the application program It waits for reception, and if received, discards it.

【0020】なお、その間に、アプリケーションプログ
ラムから送信要求が来た場合は送信処理の実行を待ち、
再送電文の受信が終了した後に送信処理を行う。
During the meantime, if a transmission request is received from the application program, the execution of the transmission process is awaited,
The transmission process is performed after the reception of the re-transmitted text is completed.

【0021】外部装置側の無応答タイマタイムアウト時
間、通信速度、応答送信論理時間は、各々通信制御内部
に値を持ち、システム環境の変化に対応する。また、複
数の外部装置に対し、これらの値を各々独立して持つこ
とにより複数の外部装置に対応することも可能とする。
The no-response timer timeout time, the communication speed, and the response transmission logic time on the external device side each have a value inside the communication control and correspond to changes in the system environment. Further, it is possible to correspond to a plurality of external devices by having these values independently for a plurality of external devices.

【0022】図1にシステムの全体構成図を示す。FIG. 1 shows the overall configuration of the system.

【0023】本方式は、アプリケーションプログラム1
と通信制御部2、受信バッファ3から成り立つDTEと
そのDTEに通信にて接続している外部装置4から成り
立つシステム上で動作する。
This method uses the application program 1
It operates on a system composed of a DTE composed of the communication control unit 2 and the reception buffer 3 and an external device 4 connected to the DTE by communication.

【0024】アプリケーションプログラム1は、外部装
置4との間でデータ通信を行うアプリケーションプログ
ラムであり、外部装置4へのデータ送信が必要となった
時、通信制御2へ送信要求11を通知することでデータ
送信を依頼し、送信結果22によって送信結果を確認す
る。また、電文受信通知23を受け取った時、外部装置
4からのデータ受信が発生したと見なし、そのデータを
もとに対応する処理を行う。
The application program 1 is an application program for performing data communication with the external device 4. By sending a transmission request 11 to the communication control 2 when data transmission to the external device 4 becomes necessary. Data transmission is requested, and the transmission result is confirmed by the transmission result 22. Further, when the electronic message reception notification 23 is received, it is considered that the data reception from the external device 4 has occurred, and the corresponding processing is performed based on the data.

【0025】通信制御部2は、通信の送受信制御を行
い、アプリケーションプログラム1からの送信要求11
を受け取ると外部装置4に送信電文21を送信し、その
応答が受信バッファ3内から応答電文41として通知さ
れるので、その結果を送信結果22としてアプリケーシ
ョンプログラム1に通知する。また、データ受信が発生
した場合、受信バッファ3からの受信電文42を受信
し、受信電文が正しいかを確認し、その結果を応答電文
24として外部装置4へ送信する。受信電文が正しかっ
た場合、電文受信通知23をアプリケーションプログラ
ム1へ通知する。
The communication control unit 2 controls transmission / reception of communication, and requests transmission 11 from the application program 1.
When the message is received, the transmission message 21 is transmitted to the external device 4, and the response is notified from the reception buffer 3 as the response message 41. Therefore, the result is notified to the application program 1 as the transmission result 22. When data reception occurs, the reception telegram 42 from the reception buffer 3 is received, it is confirmed whether the reception telegram is correct, and the result is transmitted to the external device 4 as the response telegram 24. When the received message is correct, the message reception notification 23 is notified to the application program 1.

【0026】受信バッファ3は、外部装置4からの受信
電文を一時的に保持するものであり、通信制御部2の受
信処理と外部装置4の送信処理の性能差を埋めるために
ある。受信バッファ3では、応答電文31もしくは、受
信電文32を外部装置4から受信し蓄積する。
The reception buffer 3 temporarily holds a reception message from the external device 4, and is for filling the performance difference between the reception process of the communication control unit 2 and the transmission process of the external device 4. The reception buffer 3 receives the response message 31 or the reception message 32 from the external device 4 and stores it.

【0027】外部装置4は、通信制御部2から送信され
た送信電文21を受信した時、受信バッファ3にその応
答電文31を送信する。また、外部装置4内で何らかの
送信要因が発生した場合、受信電文32を作成し、受信
バッファ3に送信し、通信制御部2からの応答電文24
を待ち、その応答電文24を受信したことで外部装置4
からの送信処理を終了する。
When the external device 4 receives the transmission message 21 transmitted from the communication control unit 2, it transmits the response message 31 to the reception buffer 3. Further, when some transmission factor occurs in the external device 4, the reception message 32 is created and transmitted to the reception buffer 3, and the response message 24 from the communication control unit 2 is generated.
The external device 4 by receiving the response message 24
Ends the transmission processing from.

【0028】なお、外部装置4は、電文送信後、一定時
間経過しても通信制御部2から応答電文24が通知され
ない場合(無応答タイマタイムアウト)、回線上で受信
電文32が消滅したとみなし、再度受信電文32を送信
し、応答電文24を待つものとする。
If the response message 24 is not notified from the communication control unit 2 even after a lapse of a certain time after the message is transmitted (no-response timer timeout), the external device 4 considers that the received message 32 has disappeared on the line. , The reception message 32 is transmitted again, and the response message 24 is waited for.

【0029】図2に実施形態の動作説明のために通信制
御受信処理の詳細な構成図を示す。
FIG. 2 is a detailed block diagram of the communication control reception process for explaining the operation of the embodiment.

【0030】通信制御部2は、電文受信要因が発生した
場合、図3に示す受信処理を呼び出す。
The communication control unit 2 calls the reception process shown in FIG. 3 when a message reception factor occurs.

【0031】受信処理は、受信状態81を確認し、受信
状態81が”再送電文待ち状態”の場合、再送電文待ち
タイマ82をみることによりタイムアウトが発生したか
判断し、タイムアウトが発生した場合は、受信状態81
を変更するためにステップA10へ移行する。そうでな
い場合は、次のステップA2へ移行する。受信状態81
が再送電文待ち状態でない場合は、次のステップA2に
進む(A1)。なお、再送電文待ち状態は、ステップA
9で”再送電文待ち状態”に設定され、ステップA8と
ステップA10で”解除状態”に設定される。
In the reception process, the reception state 81 is confirmed, and when the reception state 81 is the "re-transmission statement waiting state", it is judged whether the timeout occurs by looking at the re-transmission statement waiting timer 82. If the timeout occurs, , Reception status 81
To change step A10. If not, the process proceeds to the next step A2. Reception status 81
Is not in the re-transmission statement waiting state, the process proceeds to the next step A2 (A1). In addition, the re-transmission statement waiting state is step A.
9 is set to the "re-transmission statement waiting state", and is set to the "released state" in steps A8 and A10.

【0032】次に、受信開始時刻71を取得する(ステ
ップA2)。
Next, the reception start time 71 is acquired (step A2).

【0033】次に、受信電文が終了するまで、受信デー
タ61の取得と受信データ長62の加算を行う(ステッ
プA3)。なお、取得した受信データ61は2バンクの
2次バッファのうちの最後の受信電文が記憶されていな
いほうのバンクに記憶され、ステップA5での比較の対
象となる。
Next, the reception data 61 is acquired and the reception data length 62 is added until the reception message is completed (step A3). The acquired received data 61 is stored in the bank of the secondary buffers of the two banks in which the last received telegram is not stored, and is the object of comparison in step A5.

【0034】受信電文が終了した時、終了時刻72を取
得し、ステップA2で取得した開始時刻71から終了時
刻72を減算し、実受信時間73を算出する(ステップ
A4)。
When the received telegram ends, the end time 72 is acquired, the end time 72 is subtracted from the start time 71 acquired in step A2, and the actual reception time 73 is calculated (step A4).

【0035】次に、受信状態81が”再送電文待ち状
態”であれば、今回の受信電文が前回の受信電文と同じ
電文か確認し、同じ場合は、今回受信した受信電文をア
プリケーションプログラムに通知することを回避して、
且つ、受信状態81を解除状態にするためにステップA
10へ移行する(ステップA5)。
Next, if the reception state 81 is the "re-transmission message waiting state", it is confirmed whether the current reception message is the same as the previous reception message, and if it is the same, the application program is notified of the reception message received this time. Avoid doing
In addition, in order to change the reception state 81 to the release state, step A
The process proceeds to 10 (step A5).

【0036】次に、受信データ長62と通信速度51か
ら 論理受信時間=受信データ長/通信速度 により、論理受信時間54を求め、その論理受信時間5
4に外部装置の無応答タイマタイムアウト時間52を加
えることで受信可能論理時間55とする。更に、受信可
能論理時間55から応答電文を外部装置4に送信するの
にかかる時間である応答送信論理時間53を引いたもの
を、受信可能時間56とする(ステップA6)。
Next, the logical reception time 54 is obtained from the received data length 62 and the communication speed 51 by the logical reception time = received data length / communication speed, and the logical reception time 5
By adding the non-response timer timeout time 52 of the external device to 4, the receivable logical time 55 is obtained. Furthermore, the receivable time 56 is obtained by subtracting the response transmission logical time 53, which is the time required to transmit the response message to the external device 4, from the receivable logical time 55 (step A6).

【0037】次に、実受信時間73と受信可能時間56
を比較し、実受信時間73が受信可能時間56より短い
場合には、正常な通信状態と見なしステップA8へ分岐
し、実受信時間73が長いか等しい場合には、データ転
送遅延が発生したと見なし、再送電文待ち状態に移行す
るためにステップA9に分岐する(ステップA7)。
Next, the actual reception time 73 and the receivable time 56
If the actual reception time 73 is shorter than the receivable time 56, it is regarded as a normal communication state and the process branches to step A8. If the actual reception time 73 is long or equal, a data transfer delay occurs. It is considered and the process branches to step A9 to shift to the re-transmission statement waiting state (step A7).

【0038】ステップA8では、アプリケーションプロ
グラム(AP)1へ電文受信通知23を送信し、外部装
置4へ応答電文24の送信した後、受信状態81が”再
送電文待ち状態”である場合は”解除状態”に変更し、
再送電文待ちタイマ82の設定を解除する。
In step A8, the message reception notification 23 is transmitted to the application program (AP) 1, the response message 24 is transmitted to the external device 4, and if the reception state 81 is the "re-transmission message waiting state", "release" is issued. State ",
The setting of the re-transmission sentence waiting timer 82 is canceled.

【0039】ステップA9では、アプリケーションプロ
グラム1へ電文受信通知23を送信し、外部装置4へ応
答電文24の送信して、今回受信した電文を前記2次バ
ッファに待避した後、受信状態81を”再送電文待ち状
態”とし、再送電文待ちタイマ82(タイマ値は設計上
外部装置4の無応答タイマタイムアウト時間52として
いるが、それ以外の値であっても良い。)を設定する。
In step A9, the electronic message reception notification 23 is transmitted to the application program 1, the response electronic message 24 is transmitted to the external device 4, and the electronic message received this time is saved in the secondary buffer. The re-transmission sentence waiting state "is set, and the re-transmission sentence waiting timer 82 (the timer value is set to the non-response timer timeout time 52 of the external device 4 by design, but may be any other value).

【0040】ステップA10では、受信状態81を”再
送電文待ち状態”から”解除状態”にして、再送電文待
ちタイマ82の設定を解除する。なお、通信制御部2
は、受信状態81が”再送電文待ち状態”であるときに
は、外部装置4へのデータの送信を禁止し、”解除状
態”であるときには、外部装置4へのデータの送信を禁
止しないので、受信状態81が”解除状態”になった後
は、アプリケーション1からのデータの送信の要求があ
ったときに、通信制御部2は、外部装置へデータを送信
する。通信制御部2が受信状態81が”再送電文待ち状
態”であるときに、データの送信を禁止しているのは、
外部装置4がインテリジェントでない場合に、外部装置
4が再送処理をしているときにデータを受信すると再送
処理を中断してしまうが、これを防ぐためである。
In step A10, the reception state 81 is changed from the "re-transmission message waiting state" to the "release state", and the setting of the re-transmission sentence waiting timer 82 is released. The communication control unit 2
Does not prohibit data transmission to the external device 4 when the reception state 81 is in the "re-transmission message waiting state", and does not prohibit data transmission to the external device 4 in the "released state". After the state 81 becomes the “released state”, the communication control unit 2 transmits the data to the external device when the application 1 requests the transmission of the data. When the communication control unit 2 prohibits the data transmission when the reception state 81 is the “re-transmission statement waiting state”,
This is to prevent the resending process from being interrupted if data is received while the external device 4 is performing the resending process when the external device 4 is not intelligent.

【0041】上記の処理の流れについて説明すると、受
信処理が遅延していないときには、処理は、(A8)を
通って終了し、二重通知を防止するための設定は行われ
ない。受信処理が遅延しているときには、処理は、(A
9)を通って終了し、二重通知を防止するための設定が
行われる。受信処理が遅延していて電文再送があったと
きには、処理は(A5)から(A10)に進み、再送さ
れた電文はアプリケーションプログラムに送信されな
く、また、二重通知を防止するための設定が解除され
る。受信処理が遅延していても電文再送が無いときに
は、処理は(A1)から(A10)に進み、二重通知を
防止するための設定は解除される。
Explaining the flow of the above processing, when the reception processing is not delayed, the processing ends through (A8) and the setting for preventing double notification is not made. When the reception process is delayed, the process is (A
9) and the setting for preventing double notification is performed. When the reception process is delayed and the message is retransmitted, the process proceeds from (A5) to (A10), the retransmitted message is not transmitted to the application program, and the setting for preventing double notification is set. It will be canceled. Even if the reception process is delayed, if there is no message resend, the process proceeds from (A1) to (A10), and the setting for preventing double notification is canceled.

【0042】図4に本発明を実施した場合の動作図を示
す。
FIG. 4 shows an operation diagram when the present invention is carried out.

【0043】通信リソース別に無応答タイムアウト時間
と通信速度、応答送信時間を設定することにより複数の
外部装置との間で異なる通信リソースで発生する二重通
知を抑制することが可能である。
By setting the no-response timeout time, the communication speed, and the response transmission time for each communication resource, it is possible to suppress double notification that occurs in different communication resources with a plurality of external devices.

【0044】高速な通信などで応答時間が短い場合、受
信可能時間の計算で応答送信論理時間を計算せずに、論
理受信可能時間のみで判断することも可能である。
When the response time is short due to high-speed communication or the like, it is also possible to judge only the logical receivable time without calculating the response transmission logical time in the calculation of the receivable time.

【0045】なお、通信制御部2が行う方法は、コンピ
ュータが通信制御部2で行われる方法を実行するための
プログラムを記録した記録媒体をコンピュータが読み込
んで実行することにより行われる。
The method performed by the communication control unit 2 is performed by the computer reading and executing a recording medium recording a program for executing the method performed by the communication control unit 2 by the computer.

【0046】[0046]

【発明の効果】本発明を実施することにより外部装置側
で発生した無応答タイムアウト時の再送電文の二重通知
を防止することができ、不正な電文を受信することによ
るアプリケーションプログラムの不正動作を防止するこ
とができる。また、本発明は、外部装置側に何も手を加
えない為、旧式などの要因で無応答タイマタイムアウト
時間の設定変更が不可能な外部装置との通信でも対応可
能である。
By implementing the present invention, it is possible to prevent the duplicate notification of the re-transmitted text at the time of no response from occurring on the external device side, and to prevent the illegal operation of the application program by receiving the illegal electronic text. Can be prevented. Further, since the present invention does not touch the external device side, it is possible to correspond to the communication with the external device in which it is impossible to change the setting of the no-response timer timeout time due to factors such as an old model.

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

【図1】本発明の実施形態による再送電文二重通知防止
方法を行う通信制御部と当該方法を行うコンピュータと
そのコンピュータと通信を行う外部装置を示す第1のブ
ロック図である。
FIG. 1 is a first block diagram illustrating a communication control unit that performs a re-transmission sentence duplicate notification prevention method according to an embodiment of the present invention, a computer that performs the method, and an external device that communicates with the computer.

【図2】本発明の実施形態による再送電文二重通知防止
方法を行う通信制御部と当該方法を行うコンピュータと
そのコンピュータと通信を行う外部装置を示す第2のブ
ロック図である。
FIG. 2 is a second block diagram illustrating a communication control unit that performs the re-transmission sentence double notification prevention method according to the embodiment of the present invention, a computer that performs the method, and an external device that communicates with the computer.

【図3】本発明の実施形態による再送電文二重通知防止
方法の流れを説明するためのフローチャートである。
FIG. 3 is a flowchart illustrating a flow of a re-transmission sentence double notification prevention method according to an exemplary embodiment of the present invention.

【図4】本発明の実施形態による再送電文二重通知方法
を実施したときのアプリケーションプログラム、通信制
御部、受信バッファ、外部装置間で通信される信号を示
すシーケンス図である。
FIG. 4 is a sequence diagram showing signals communicated among an application program, a communication control unit, a reception buffer, and an external device when the method of double notification of re-transmission sentence according to the embodiment of the present invention is implemented.

【図5】従来例による再送電文二重通知方法を実施した
ときのアプリケーションプログラム、通信制御部、受信
バッファ、外部装置間で通信される信号を示すシーケン
ス図である。
FIG. 5 is a sequence diagram showing signals communicated among an application program, a communication control unit, a reception buffer, and an external device when the re-transmission message double notification method according to the conventional example is implemented.

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

1 アプリケーションプログラム 2 通信制御部 3 受信バッファ 4 外部装置 1 application program 2 Communication control unit 3 Receive buffer 4 External device

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 29/08 G06F 13/00 353 H04L 12/28 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 29/08 G06F 13/00 353 H04L 12/28

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 受信バッファからの電文の読み出しに要
した実受信時間が外部装置が前記電文の再送を開始する
ための基準となる受信可能時間よりも長いか否かを判定
する第1の判定ステップと、 前記受信時間が前記受信可能時間よりも長いときに、前
記電文を記憶するとともに再送電文待ち状態を設定する
設定ステップと、 前記再送電文待ち状態が設定されているときに、電文を
受信したならば、このときに受信した電文が記憶された
電文と同一であるか否かを判定する第2の判定ステップ
と、 前記第2の判定ステップでの判定結果が肯定的であると
きに、前記再送電文待ち状態が設定されているならば、
受信した電文をアプリケーションプログラムに通知する
ことを中止する中止ステップと、 を有することを特徴とする再送電文二重通知防止方法。
1. A first judgment for judging whether or not an actual reception time required for reading a message from a reception buffer is longer than a receivable time which is a reference for an external device to start resending the message. A step of storing the message and setting a re-transmission statement waiting state when the reception time is longer than the receivable time; and receiving a message when the re-transmission statement waiting state is set. If so, a second determination step of determining whether or not the electronic message received at this time is the same as the stored electronic message, and when the determination result in the second determination step is affirmative, If the re-transmission statement waiting state is set,
A re-transmission message double notification prevention method comprising: a stop step of stopping notifying the application program of the received message.
【請求項2】 請求項1に記載の再送電文二重通知防止
方法において、前記受信可能時間を、前記バッファから
読み出した電文のデータ長、前記外部装置と電文を受信
する端末との間の通信速度、前記外部装置の再送のため
のタイムアウト時間、前記端末から前記外部装置への応
答に要する応答論理時間より計算する計算ステップを更
に有することを特徴とする再送電文二重通知防止方法。
2. The re-transmission message double notification prevention method according to claim 1, wherein the receivable time is a data length of a message read from the buffer, and communication between the external device and a terminal receiving the message. The method for preventing double notification of re-transmitted text further comprising a calculation step of calculating from a speed, a timeout time for retransmission of the external device, and a response logic time required for a response from the terminal to the external device.
【請求項3】 請求項1又は2に記載の再送電文二重通
知防止方法において、前記再送電文待ち状態をその設定
後に所定の時間が経過したならば解除するステップを更
に有することを特徴とする再送電文二重通知防止方法。
3. The method for preventing double notification of re-transmission sentence according to claim 1 or 2, further comprising the step of canceling the re-transmission sentence waiting state if a predetermined time has elapsed after the setting. Retransmission sentence double notification prevention method.
【請求項4】 請求項1乃至3のいずれか1項に記載の
再送電文二重通知防止方法において、前記再送電文待ち
状態が設定されているときには、前記アプリケーション
プログラムから要求があっても電文を送信しないことを
特徴とする再送電文二重通知防止方法。
4. The method for preventing double notification of re-transmission sentence according to any one of claims 1 to 3, wherein when the re-transmission sentence waiting state is set, a message is transmitted even if a request is made from the application program. A method for preventing double notification of retransmitted text, characterized by not transmitting.
【請求項5】 受信バッファからの電文の読み出しに要
した実受信時間が外部装置が前記電文の再送を開始する
ための基準となる受信可能時間よりも長いか否かを判定
する第1の判定ステップと、 前記受信時間が前記受信可能時間よりも長いときに、前
記電文を記憶するとともに再送電文待ち状態を設定する
設定ステップと、 前記再送電文待ち状態が設定されているときに、電文を
受信したならば、このときに受信した電文が記憶された
電文と同一であるか否かを判定する第2の判定ステップ
と、 前記第2の判定ステップでの判定結果が肯定的であると
きに、前記再送電文待ち状態が設定されているならば、
受信した電文をアプリケーションプログラムに通知する
ことを中止する中止ステップと、 を有する再送電文二重通知防止方法をコンピュータに実
行させるためのプログラムを記録したことを特徴とする
コンピュータ読み取り可能な記録媒体。
5. A first determination for determining whether or not an actual reception time required for reading a message from a reception buffer is longer than a receivable time which is a reference for an external device to start resending the message. A step of storing the message and setting a re-transmission statement waiting state when the reception time is longer than the receivable time; and receiving a message when the re-transmission statement waiting state is set. If so, a second determination step of determining whether or not the electronic message received at this time is the same as the stored electronic message, and when the determination result in the second determination step is affirmative, If the re-transmission statement waiting state is set,
A computer-readable recording medium, which stores a program for causing a computer to execute a re-transmission message double notification prevention method, which includes a stop step of stopping notifying an application program of a received message.
【請求項6】 請求項5に記載のコンピュータ読み取り
可能な記録媒体において、前記方法が、前記受信可能時
間を、前記バッファから読み出した電文のデータ長、前
記外部装置と電文を受信する端末との間の通信速度、前
記外部装置の再送のためのタイムアウト時間、前記端末
から前記外部装置への応答に要する応答論理時間より計
算する計算ステップを更に有することを特徴とするコン
ピュータ読み取り可能な記録媒体。
6. The computer-readable recording medium according to claim 5, wherein the method sets the receivable time to the data length of a telegram read from the buffer, the external device and a terminal receiving the telegram. A computer-readable recording medium, further comprising a calculation step of calculating from a communication speed between terminals, a timeout time for retransmission of the external device, and a response logical time required for a response from the terminal to the external device.
【請求項7】 請求項5又は6に記載のコンピュータ読
み取り可能な記録媒体において、前記方法が、前記再送
電文待ち状態をその設定後に所定の時間が経過したなら
ば解除するステップを更に有することを特徴とするコン
ピュータ読み取り可能な記録媒体。
7. The computer-readable recording medium according to claim 5, wherein the method further comprises a step of canceling the re-transmission statement waiting state if a predetermined time has elapsed after the setting. Characteristic computer-readable recording medium.
【請求項8】 請求項5乃至7のいずれか1項に記載の
コンピュータ読み取り可能な記録媒体において、前記方
法が前記再送電文待ち状態が設定されているときには、
前記アプリケーションプログラムから要求があっても電
文を送信しないことを特徴とするコンピュータ読み取り
可能な記録媒体。
8. The computer-readable recording medium according to claim 5, wherein when the method is set to the re-transmission statement waiting state,
A computer-readable recording medium, which does not transmit a telegram even when requested by the application program.
JP2000150272A 2000-05-22 2000-05-22 How to prevent double notification of retransmitted messages Expired - Lifetime JP3408495B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000150272A JP3408495B2 (en) 2000-05-22 2000-05-22 How to prevent double notification of retransmitted messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000150272A JP3408495B2 (en) 2000-05-22 2000-05-22 How to prevent double notification of retransmitted messages

Publications (2)

Publication Number Publication Date
JP2001333133A JP2001333133A (en) 2001-11-30
JP3408495B2 true JP3408495B2 (en) 2003-05-19

Family

ID=18656010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000150272A Expired - Lifetime JP3408495B2 (en) 2000-05-22 2000-05-22 How to prevent double notification of retransmitted messages

Country Status (1)

Country Link
JP (1) JP3408495B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483943B2 (en) * 2004-09-21 2009-01-27 Microsoft Corporation Reliable messaging using clocks with synchronized rates
JP6158699B2 (en) * 2013-12-27 2017-07-05 日本電信電話株式会社 Signal processing device
US10812435B2 (en) 2018-02-28 2020-10-20 Ringcentral, Inc. Systems and methods for suppressing repetitive notifications about messages in messaging groups

Also Published As

Publication number Publication date
JP2001333133A (en) 2001-11-30

Similar Documents

Publication Publication Date Title
US6393023B1 (en) System and method for acknowledging receipt of messages within a packet based communication network
JPS5836049A (en) Station in communication network
JPH0795767B2 (en) Optimized method of data communication and system using the method
CN114500552B (en) Cloud edge message reliability transmission method and device under edge computing scene
CN106506124A (en) Method and device for determining retransmission message
WO2026067538A1 (en) Rdma-based requester, rdma-based responder, and rdma-based system
JP3408495B2 (en) How to prevent double notification of retransmitted messages
CN101145968B (en) Data sending and receiving method between network management system and transmission equipment
CN117938980B (en) Data transmission method, device, equipment and medium applied to content distribution network
JP2003242050A (en) Server-client data transfer method Approximate server-client system
US7636313B2 (en) Use of internal buffer to reduce acknowledgement related delays in acknowledgement-based reliable communication protocols
US6779724B1 (en) IC card reader and method
CN118869545A (en) Long connection validity perception method, vehicle and computer program product
CN119512996B (en) Remote direct memory access device and method
JP3217397B2 (en) Data transmission method of communication control device
JPH114259A (en) Virtual connection communication equipment and communication method
CN117176809B (en) Data interaction method and system
CN113297022B (en) Method and device for testing expansion bus of high-speed serial computer
JP3175202B2 (en) Method of storing received data in communication control circuit
JP2776274B2 (en) Virtual buffer control system in relay computer
JP4239482B2 (en) Data transfer system, LSI and data transfer method
CN108829496A (en) A kind of service calling method, device and electronic equipment
CN114640385A (en) Data transmission method based on Beidou communication system and electronic equipment
CN119766880A (en) Rule receiving and distributing method, device and storage medium
US20020099890A1 (en) Apparatus and method for processing interruptions in a data transmission over a bus

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20080314

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090314

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100314

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100314

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120314

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130314

Year of fee payment: 10