JPH033054A - Method for preventing communication data from being missed - Google Patents

Method for preventing communication data from being missed

Info

Publication number
JPH033054A
JPH033054A JP1138641A JP13864189A JPH033054A JP H033054 A JPH033054 A JP H033054A JP 1138641 A JP1138641 A JP 1138641A JP 13864189 A JP13864189 A JP 13864189A JP H033054 A JPH033054 A JP H033054A
Authority
JP
Japan
Prior art keywords
host
data
communication
driver
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1138641A
Other languages
Japanese (ja)
Inventor
Atsushi Tanaka
敦 田中
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1138641A priority Critical patent/JPH033054A/en
Publication of JPH033054A publication Critical patent/JPH033054A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent data from being missed due to the generation of an instantaneous stop by comparing the values of 1st and 2nd registers with each other, deciding whether a host system succeeds in data reception or not by means of firmware, and if the host system fails the data reception, informing the preceding receiving data to the host system again. CONSTITUTION:The 1st register A for increasing its contents immediately before the output of a data receiving request generated from an inter-host communication driver 4 after normally receiving data and the 2nd register B for increasing its contents immediately after deciding the normal reception of data by the firmware 1 are prepared, and prior to the start of data transmission/reception, '0' and '1' are respectively set up in the registers A, B. Immediately before starting the receiving operation of the firmware 1, the values of the two registers are compared with each other and data missing is decided in accordance with the coincidence/discrepancy of both the values. The discrepancy indicates data missing and the preceding receiving data are informed to the host system again. Thus, the generation of data missing an be prevented.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、ホスト間通信において受信局であるホストの
瞬停(瞬時の停電)により発生する通信データの抜けを
防止する防止方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a prevention method for preventing communication data from being lost due to an instantaneous power failure (instantaneous power outage) of a host that is a receiving station in communication between hosts.

〈従来の技術〉 ホスト間通信における従来のファームウェアのデータ受
信動作を第4図のブロック図を参照して説明すれば次の
通りである。
<Prior Art> The data receiving operation of conventional firmware in host-to-host communication will be explained as follows with reference to the block diagram of FIG.

■相手ホストとのデータ転送が始まる。■Data transfer with the other host begins.

■ホスト間通信用ファームウェア1の制御によりホスト
から指定されたバッファ2の領域に対しDMA (Dl
rect  Mea+ory  Access)転送を
実行する。
■The DMA (Dl
(rect Mea + ory Access) transfer.

■DMA転送が正常終了すると、相手ホストに対してデ
ータ受信の完了を通知する。この時点で相手ホストはデ
ータ送信が正常終了したと認識する。
- When the DMA transfer ends normally, the other host is notified of the completion of data reception. At this point, the other host recognizes that the data transmission has ended normally.

■ホスト間通信用ファームウェア1はチャネルアダプタ
用ドライバ3ヘデータ受信完了の通知を行なう。そして
、チャネルアダプタ用ドライバ3が上位のホスト間通信
用ドライバ4をコールし、受信データがホスト間通信用
ドライバ4により処理される。
(2) The inter-host communication firmware 1 notifies the channel adapter driver 3 of completion of data reception. The channel adapter driver 3 then calls the host-to-host communication driver 4, and the received data is processed by the host-to-host communication driver 4.

なお、ここではホスト計算機のアーキテクチャは第5図
に示すような構成であるとする。すなわち、中央処理装
置(CPUと略す)10とメモリ11はCPU−メモリ
用バス12により接続されており、そのバス12上にチ
ャネルアダプタなる入出力カード(I10カードという
)13が接続されている。このチャネルアダプタ13と
各種入出力用I10カード(デバイスアダプタ)15a
、15b、15cとはチャネルバス14で接続されてい
る。
It is assumed here that the architecture of the host computer is as shown in FIG. That is, a central processing unit (abbreviated as CPU) 10 and memory 11 are connected by a CPU-memory bus 12, and an input/output card (referred to as I10 card) 13, which is a channel adapter, is connected to the bus 12. This channel adapter 13 and various input/output I10 cards (device adapters) 15a
, 15b, and 15c are connected by a channel bus 14.

要するに、CPU−メモリ間と入出力デバイス用I10
カードには別系統のバスがそれぞれ用意され、その両方
を制御するためのチャネルアダプタが存在するというア
ーキテクチャーである。
In short, I10 between CPU and memory and for input/output devices
The architecture is such that each card has a separate bus system, and there is a channel adapter to control both.

〈発明が解決しようとする課題〉 しかしながら、このようなホスト計算機では次のような
問題が生じる。
<Problems to be Solved by the Invention> However, the following problems occur in such a host computer.

前記■の通知を行なった直後でかつチャネルアダプタ用
ドライバが受信動作を行なう直前においてホスト計算機
に瞬停が起こった場合、チャネルアダプタ用ドライバは
瞬停が発生したことを出力中のI10要求に対してエラ
ー通知を行い、再度I10要求を発行させる。これは瞬
停のためにファームウェアが受信動作に失敗したと見な
すためである。
If an instantaneous power outage occurs in the host computer immediately after the above notification (■) is made and immediately before the channel adapter driver performs the reception operation, the channel adapter driver will respond to the I10 request being output to indicate that an instantaneous power outage has occurred. The I10 request is issued again. This is because the firmware assumes that the reception operation has failed due to the instantaneous power failure.

しかし、ファームウェアおよび相手システムとの間では
データ転送は完了済みであるため、データ抜けが生じる
However, since data transfer between the firmware and the partner system has already been completed, data loss occurs.

本発明は、このような点に鑑みてなされたもので、その
目的は、ホスト間通信専用のドライバとファームウェア
間にシステムすべてのIloを管理するドライバが介在
するホスト計算機において瞬停が要因となるデータ抜け
を防止するための方法を提供することにある。
The present invention has been made in view of these points, and its purpose is to prevent momentary power outages from occurring in a host computer where a driver for managing all system Ilo is interposed between a driver dedicated to inter-host communication and firmware. The objective is to provide a method for preventing data omission.

く課題を解決するための手段〉 このような目的を達成するための本発明は、ホスト間通
信用に第1.第2のレジスタを用意し、第1のレジスタ
はホスト間通信用ドライバがデータを正常受信と判定し
た後インクリメントされ、第2のレジスタはホスト間通
信用ファームウェアがデータを正常受信と判定した後イ
ンクリメントされるようにし、この第1.第2のレジス
タの値を比較することによりホストシステムがデータ受
信に成功したかどうかをファームウェアが判定し、ホス
トシステムがデータ受信に失敗した場合には前回の受信
データを再度ホストシステムへ通知するようにしてデー
タ抜けを防止するようにしたことを特徴とする。
Means for Solving the Problems> The present invention for achieving the above objects provides a first method for communication between hosts. A second register is prepared, the first register is incremented after the host-to-host communication driver determines that data is received normally, and the second register is incremented after the host-to-host communication firmware determines that data is received normally. This 1st. The firmware determines whether the host system has successfully received data by comparing the values of the second register, and if the host system fails to receive data, it notifies the host system of the previous received data again. The feature is that data is prevented from being dropped.

く作用〉 本発明では、ホスト間通信用ドライバが、データ正常受
信後に発行するデータ受信要求の出力直前にインクリメ
ントする第1のレジスタAと、ホスト間通信用ファーム
ウェアがデータを正常受信と判定した直後にインクリメ
ントする第2のレジスタBを設け、データ送受信開始前
にレジスタAには0を、他方レジスタBには1をセット
しておく。そしてファームウェアが受信動作に入る直前
の段階で2つのレジスタの値を比較し、一致か不一致か
でデータ抜けを判定する。不一致の場合はデータ抜けで
あり、前回の受信データを再度、ホストシステムに対し
通知する。
Function> In the present invention, the first register A is incremented by the host-to-host communication driver immediately before outputting a data reception request issued after normal reception of data, and the first register A is incremented immediately after the host-to-host communication firmware determines that data has been received normally. A second register B is provided which increments the data, and register A is set to 0 and register B is set to 1 before starting data transmission/reception. Immediately before the firmware starts the reception operation, the values in the two registers are compared, and data loss is determined based on whether they match or do not match. If there is a mismatch, data is missing, and the host system is notified of the previously received data again.

このように、判定および再通知することにより、データ
抜けを防止することができる。
By making the determination and re-notifying in this manner, data omission can be prevented.

〈実施例〉 以下図面を参照して本発明方法を詳細に説明する。第1
図は本発明に係る通信データ抜け防止方法に係るブロッ
ク図である。第4図と異なるところは通信用レジスタ5
(通信用レジスタA)と通信用レジスタ6(通信用レジ
スタB)を用意した点である。レジスタAはホスト間通
信用ドライバ4がアクセスし、レジスタBはホスト間通
信用ファームウェア1がアクセスする。ホスト間通信用
ドライバ4はデータ受信要求の出力直前にレジスタAを
インクリメントしく図中の■)、ホスト間通信用ファー
ムウェア1は相手ホストからのデータ受信完了後にレジ
スタBをインクリメントする(同図の■)。そしてホス
ト間通信用ドライバ4では従来例で述べたようなエラー
による受信要求の再発行時にはレジスタAをインクリメ
ントしない。
<Example> The method of the present invention will be described in detail below with reference to the drawings. 1st
The figure is a block diagram of a method for preventing communication data loss according to the present invention. The difference from Figure 4 is the communication register 5.
(communication register A) and communication register 6 (communication register B) are prepared. Register A is accessed by the host-to-host communication driver 4, and register B is accessed by the host-to-host communication firmware 1. The host-to-host communication driver 4 increments register A immediately before outputting a data reception request (■ in the figure), and the host-to-host communication firmware 1 increments register B after completing data reception from the other host (■ in the figure). ). The host-to-host communication driver 4 does not increment the register A when a reception request is reissued due to an error as described in the conventional example.

これにより、ホスト間通信用ファームウェア1が相手ホ
ストからのデータを受信する直前にレジスタAとBを比
較する段階(■)でホスト間通信用ドライバ4からの受
信要求がエラーによる再発行によるものか否かを判定す
ることができ、データ抜けを防止することが可能となる
As a result, at the stage (■) where the host-to-host communication firmware 1 compares registers A and B immediately before receiving data from the other host, it is determined whether the receive request from the host-to-host communication driver 4 is due to reissue due to an error. It is possible to determine whether or not the data is present, thereby making it possible to prevent data omission.

以下本発明の方法についてフローチャートを用いて詳細
に説明する。
The method of the present invention will be explained in detail below using flowcharts.

まず、システムのブート(Boot)後、データ送受信
開始以前に、ホスト間通信用ドライバ4はレジスタAを
Oに、またホスト間通信用ファームウェア1はレジスタ
Bを1にそれぞれセットする。
First, after booting the system and before starting data transmission/reception, the host-to-host communication driver 4 sets register A to O, and the host-to-host communication firmware 1 sets register B to 1.

2つのレジスタの値を1つ違いにするのは、ファームウ
ェアが受信動作に天る直前の段階でその値を比較し一致
か不一致かを判定できるようにするためである。
The reason why the values of the two registers are different by one is so that the firmware can compare the values and determine whether they match or do not match immediately before starting the reception operation.

データ受信のフローチャートは第2図に示す通りである
。図では、関連するホスト間通信用ファームウェア1、
チャネルアダプタ用ドライバ3およびホスト間通信用ド
ライバ4の動作フローを並行して示しである。この場合
において、もしチャネルアダプタ用ドライバ3でのデー
タ受信要求出力中(フラグセット中)に瞬停が起こった
場合には、チャネルアダプタ用ドライバ3はホスト間通
信用ドライバ4へ通知する。ホスト間通信用ドライバ4
は瞬停により受信動作が失敗したとして、受信要求を再
発行する。その動作フローを第3図に示す。
A flowchart of data reception is shown in FIG. In the figure, related inter-host communication firmware 1,
The operation flows of the channel adapter driver 3 and the inter-host communication driver 4 are shown in parallel. In this case, if an instantaneous power failure occurs while the channel adapter driver 3 is outputting a data reception request (while setting a flag), the channel adapter driver 3 notifies the host-to-host communication driver 4. Inter-host communication driver 4
assumes that the reception operation has failed due to an instantaneous power outage and reissues the reception request. The operation flow is shown in FIG.

第3図にも示すように、瞬停を原因とする受信要求の再
発行ではレジスタAをインクリメントしない。一方レジ
スタBは、従来例において述べたようにファームウェア
により受信動作が完了している場合インクリメントされ
ている。したがって、第2図のフローにおいて(b)で
示すパスが実行され、受信済みのデータをドライバへ渡
すことができる。
As shown in FIG. 3, register A is not incremented when a reception request is reissued due to an instantaneous power failure. On the other hand, register B is incremented by firmware when the reception operation is completed, as described in the conventional example. Therefore, the path shown in (b) in the flow of FIG. 2 is executed, and the received data can be passed to the driver.

ファームウェアでの受信動作そのものが瞬停により失敗
すれば、レジスタBはインクリメントされないので第2
図のフローにおいて(C)で示すパス(このパスは通常
のデータ受信のシーケンスである)が実行される。
If the reception operation itself in the firmware fails due to an instantaneous power failure, register B will not be incremented, so the second register will not be incremented.
In the flowchart of the figure, the path shown by (C) (this path is a normal data reception sequence) is executed.

〈発明の効果〉 以上詳細に説明したように、本発明によれば、次のよう
な効果がある。
<Effects of the Invention> As described above in detail, the present invention has the following effects.

(A)瞬停に起因するデータ抜けが防止できる。(A) Data loss caused by instantaneous power outages can be prevented.

もし、チャネルアダプタ用ドライバにおいて瞬停発生と
同様にハンドリングする外乱があるならば同様の処置で
データ抜けが防止できる。
If there is a disturbance to be handled in the same way as an instantaneous power failure in the channel adapter driver, data loss can be prevented by taking similar measures.

(B)本発明を適用する際、従来のチャネルアダプタ用
ドライバは変更の必要がない。既存のファームウェア、
ホスト間通信用ドライバは若干の修正が必要であるが、
少しの修正で済む。
(B) When applying the present invention, there is no need to change the conventional channel adapter driver. existing firmware,
The inter-host communication driver requires some modification, but
All it takes is a little modification.

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

第1図は本発明の通信データ抜け防止方法に係るブロッ
ク図、第2図および第3図は動作を説明するためのフロ
ーチャート、第4図は従来のファームウェアによるデー
タ受信に係るブロック図、第5図はホスト計算機のアー
キテクチャ−を示す図である。 1・・・ホスト間通信用ファームウェア2・・・受信用
バッファ 3・・・チャネルアダプタ用ドライバ 4・・・ホスト間通信用ドライバ
FIG. 1 is a block diagram related to the communication data loss prevention method of the present invention, FIGS. 2 and 3 are flowcharts for explaining the operation, FIG. 4 is a block diagram related to data reception using conventional firmware, and FIG. The figure shows the architecture of a host computer. 1... Firmware for communication between hosts 2... Buffer for reception 3... Driver for channel adapter 4... Driver for communication between hosts

Claims (1)

【特許請求の範囲】 中央処理装置とメモリが接続されるCPU−メモリ用バ
スに接続されたチャネルアダプタが、前記CPU−メモ
リ用バスとは別系統のチャネルバスを介して複数個のデ
バイスアダプタと接続され、チャネルアダプタが両方の
バスを制御するようにしてホスト間通信を行なうような
計算機システムアーキテクチャにおいて、相手ホストと
のデータ転送が始まると、ホスト間通信用ファームウェ
アによりホストから指定された受信用バッファ領域に対
しDMA転送を実行し、DMA転送が正常終了すると相
手ホストに対しデータ受信の完了を通知し、その後チャ
ネルアダプタ用ドライバがデータ受信完了の通知を受け
ると上位のホスト間通信用ドライバをコールし、受信デ
ータがそのホスト間通信用ドライバにより処理する方式
のホスト間通信において、 ホスト間通信用ドライバがデータを正常受信と判定した
場合は第1のレジスタをインクリメントする工程と、 ホスト間通信用ファームウェアがデータを正常受信と判
定した場合は第2のレジスタをインクリメントする工程
と、 その後前記第1と第2のレジスタの値を比較することに
よりホストシステムがデータ受信に成功したかどうかを
判定し、データ受信に失敗した場合にはデータ受信の要
求を再発行する工程とをとることを特徴とする通信デー
タ抜け防止方法。
[Claims] A channel adapter connected to a CPU-memory bus to which a central processing unit and memory are connected connects to a plurality of device adapters via a channel bus that is separate from the CPU-memory bus. In a computer system architecture in which host-to-host communication is performed with the channel adapters controlling both buses, when data transfer with the other host begins, the host-to-host communication firmware uses the receive data specified by the host to DMA transfer is executed to the buffer area, and when the DMA transfer is completed successfully, the other host is notified of the completion of data reception.After that, when the channel adapter driver receives the notification of the completion of data reception, the driver for communication between the upper hosts is notified. In host-to-host communication in which the received data is processed by the host-to-host communication driver, the host-to-host communication driver increments the first register if the host-to-host communication driver determines that the data is received normally; If the host system firmware determines that the data has been successfully received, the host system increments the second register, and then compares the values of the first and second registers to determine whether the host system has successfully received the data. A communication data dropout prevention method comprising the steps of: reissuing a data reception request if data reception fails.
JP1138641A 1989-05-31 1989-05-31 Method for preventing communication data from being missed Pending JPH033054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1138641A JPH033054A (en) 1989-05-31 1989-05-31 Method for preventing communication data from being missed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1138641A JPH033054A (en) 1989-05-31 1989-05-31 Method for preventing communication data from being missed

Publications (1)

Publication Number Publication Date
JPH033054A true JPH033054A (en) 1991-01-09

Family

ID=15226765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1138641A Pending JPH033054A (en) 1989-05-31 1989-05-31 Method for preventing communication data from being missed

Country Status (1)

Country Link
JP (1) JPH033054A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166528A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 The method, apparatus and computer equipment for preventing node Notification of Changes from losing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166528A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 The method, apparatus and computer equipment for preventing node Notification of Changes from losing
CN110166528B (en) * 2019-04-16 2022-03-18 平安科技(深圳)有限公司 Method and device for preventing node change notification from being lost and computer equipment

Similar Documents

Publication Publication Date Title
US4684885A (en) Arrangement for on-line diagnostic testing of an off-line standby processor in a duplicated processor configuration
US4979108A (en) Task synchronization arrangement and method for remote duplex processors
JPS6043767A (en) Interface circuit
US6108755A (en) Asynchronous access system to a shared storage
JPH033054A (en) Method for preventing communication data from being missed
JPH1118122A (en) Data transfer system
JPS6126706B2 (en)
EP0609082A1 (en) Information transfer in a data processing system
JP3245552B2 (en) Transfer control system
EP0609083A1 (en) Information transfer in a data processing system
JP2531080B2 (en) Bus adapter switching method
JPS59195736A (en) Communication controller
JPH0440534A (en) Stand-by device switching system
JPH0340623A (en) Communication controller
CA1269141A (en) Task synchronization arrangement and method for remote duplex processors
JPS61165160A (en) Bus controlling system
JPS61237149A (en) Program loading system
JPH02257237A (en) Bus coupling device
JPS62266940A (en) System bus data transfer equipment
JPH0429101B2 (en)
JPS60178544A (en) Program error processing system
JPS61227451A (en) Integrated circuit for serial data communication control
JPH06133008A (en) Fault collection system in duplex device
JPH0362149A (en) Data communication system
JPH04358230A (en) Method for confirming operation between cpus