JPH02135831A - Redundancy system for communication protocol - Google Patents

Redundancy system for communication protocol

Info

Publication number
JPH02135831A
JPH02135831A JP63289089A JP28908988A JPH02135831A JP H02135831 A JPH02135831 A JP H02135831A JP 63289089 A JP63289089 A JP 63289089A JP 28908988 A JP28908988 A JP 28908988A JP H02135831 A JPH02135831 A JP H02135831A
Authority
JP
Japan
Prior art keywords
data
transmission
sequence number
ack
data sequence
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
JP63289089A
Other languages
Japanese (ja)
Inventor
Koji Kotaki
小滝 孝二
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63289089A priority Critical patent/JPH02135831A/en
Publication of JPH02135831A publication Critical patent/JPH02135831A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To keep the consistency of a transmission sequence even if an error occurs in an opposite direction from the result of an event by checking the series of a data sequence number and aborting or processing the data based on the result. CONSTITUTION:A sender station adds a data sequence number to data 1, 2...n in addition to header information having been added to them and sends the result and a receiver station returns ACK/NACK data added with the data sequence number is addition to the header information. When the data sequence number added to the ACK/NACK data is dissident with the data sequence number of the sent data, the sender station aborts the ACK/NACK data. When the data sequence number is equal to or smaller than the data sequence number added to the preceding data, the receiver station aborts the data received at present. Thus, even if the occurrence of error takes place in an opposite direction to the result of event, the consistency of the transmission sequence is kept.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) この発明は、複数台のCPUが伝送路を通じて相互に情
報を交換する分散処理システムに係り、特に、伝送路ま
たは伝送インタフェースにおけるノイズ等で発生する障
害に対して、正常な処理機能と前記CPUに分散するデ
ータベースの一貫性とを維持する通信プロトコールの冗
長化方式に関するものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a distributed processing system in which a plurality of CPUs mutually exchange information through a transmission path, and particularly relates to a distributed processing system in which a plurality of CPUs exchange information with each other through a transmission path. The present invention relates to a communication protocol redundancy method that maintains normal processing functions and the consistency of a database distributed among the CPUs against failures caused by noise or the like.

(従来の技術) 第8図はこの種の分散処理システムを構成する一つのス
テーションの機能ブロック図である。このステーション
は、主に、メインCPU7nで実行される部分と、伝送
制御CPU7mで実行される部分とでなり、概略のデー
タ処理および制御は次のようにして行われる。
(Prior Art) FIG. 8 is a functional block diagram of one station configuring this type of distributed processing system. This station mainly consists of a part executed by the main CPU 7n and a part executed by the transmission control CPU 7m, and the general data processing and control are performed as follows.

先ず、メインCPU7nのユーザタスク7a−1が送信
要求すると、送信データおよび制御信号が送信タスク7
bに送り込まれる。送信タスク7bは送信データに適当
なヘッダー情報を付加した後、送信バッファ7hに書込
み、さらに、送信ドライバー7eを起動させる。送信ド
ライバー7eは送信バッファ7h内のデータを伝送制御
CPU7m内のローカルバッファ7jに転送し、さらに
、伝送制御CPU7m内の伝送制御部7gを起動させる
。伝送制御部7gは転送された送信データにローカルバ
ッファ7j内のテキスト長制御情報、CRC冗長化情報
等を付加した後、D/A変換したデータを伝送路71に
送出する。
First, when the user task 7a-1 of the main CPU 7n makes a transmission request, the transmission data and control signal are sent to the transmission task 7.
sent to b. After adding appropriate header information to the transmission data, the transmission task 7b writes it into the transmission buffer 7h, and further activates the transmission driver 7e. The transmission driver 7e transfers the data in the transmission buffer 7h to the local buffer 7j in the transmission control CPU 7m, and further activates the transmission control section 7g in the transmission control CPU 7m. The transmission control unit 7g adds text length control information, CRC redundancy information, etc. in the local buffer 7j to the transferred transmission data, and then sends the D/A converted data to the transmission path 71.

次に、伝送制御部7gは、ローカルバッファ7jが空に
なると送信完了の割り込み信号を送信ドライバー7eに
通知し、そのタイミングで送信ドライバー7eはステー
タス情報7kを読込み、その結果を送信タスク7b経由
にてユーザタスク7a−1に通知する。
Next, the transmission control unit 7g notifies the transmission driver 7e of a transmission completion interrupt signal when the local buffer 7j becomes empty, and at that timing the transmission driver 7e reads the status information 7k and sends the result via the transmission task 7b. and notifies the user task 7a-1.

一方、受信の場合には、伝送制御CPU7m内の伝送制
御部7gは受信データが到着する毎にA/D変換したデ
ータについてCRC冗長化情報のチエツクを行ったもの
を、ローカルバッファ7jに保存し、受信データの中に
テキスト終了コードが検出された場合はメインCPU7
n内の受信ドライバー7fに割込みを掛ける。
On the other hand, in the case of reception, the transmission control unit 7g in the transmission control CPU 7m checks the CRC redundancy information on the A/D converted data every time the received data arrives, and stores it in the local buffer 7j. , if a text end code is detected in the received data, the main CPU 7
Interrupts the reception driver 7f in n.

そこで、受信ドライバー7fはステータス情報7kが正
常な場合にはローカルバッファ7jより受信バッファ7
1ヘデータを転送し、その後、受信タスク7Cを起動す
る。受信タスク7Cはデータのチエイン構造を定義した
後、ユーザタスク7a−2,・・・、7a−nのいずれ
かを起動してデータを転送する。
Therefore, if the status information 7k is normal, the reception driver 7f selects the reception buffer 7 from the local buffer 7j.
1, and then starts the reception task 7C. After defining the data chain structure, the receiving task 7C activates any of the user tasks 7a-2, . . . , 7a-n to transfer the data.

ここで若し、ステータス情報7kが異常である場合、一
般に次の手順に従った処理が行われる。
Here, if the status information 7k is abnormal, processing is generally performed according to the following procedure.

ステータス情報異常が送信過程で検出された場合には、
伝送初期化タスク7dを起動して伝送制御CPU7mを
初期化し、送信ドライバー7e、受信ドライバー7f、
並びに、送信タスク7b。
If a status information abnormality is detected during the transmission process,
The transmission initialization task 7d is activated to initialize the transmission control CPU 7m, and the transmission driver 7e, reception driver 7f,
Also, sending task 7b.

受信タスク7Cを初期化する。受信過程で検出された場
合にはそのステータス異常が致命的な場合には送信ステ
ータス異常と同様に初期化し、そうでない場合は受信し
たデータを棄却する。ただし、ユーザタスク7a−2,
・・・、7a−nのいずれにも受信ステータスは通知し
ない。
Initialize the reception task 7C. When detected during the reception process, if the status abnormality is fatal, it is initialized in the same way as the transmission status abnormality, and if not, the received data is discarded. However, user task 7a-2,
..., 7a-n are not notified of the reception status.

上記のような送信および受信の手順において発生するエ
ラーに対して、伝送手順の継続を実行するために、伝送
手順の上位層のユーザタスクレベルにて種々の冗長化処
理が行われている。第9図を用いてこの冗長化処理を説
明する。
In order to continue the transmission procedure in response to errors occurring in the transmission and reception procedures as described above, various redundancy processes are performed at the user task level in the upper layer of the transmission procedure. This redundancy processing will be explained using FIG. 9.

送信元のステーション1a(St)は送信データ1dを
送信後、送信完了ステータス1jをチエツクし、このス
テータスが異常の場合には再送信の手順を実行する。送
信完了ステータスが正常の場合には診断タイマ1c(T
)にセット信号1gを与えてこの診断タイマICをセッ
トすることにより、送信先のステーションからのACK
データ1eまたはNACKデータ1fを受信するまでの
時間を監視する。診断タイマICでの監視において、A
CK/NACKデータを受信する以前に診断タイマIC
がタイムアウトした場合にはタイムアウト発生後のりト
ライ11により再送信の手順を実行する。
After transmitting the transmission data 1d, the transmission source station 1a (St) checks the transmission completion status 1j, and if this status is abnormal, executes a retransmission procedure. If the transmission completion status is normal, the diagnostic timer 1c (T
) by giving a set signal 1g to set this diagnostic timer IC, the ACK from the destination station is
The time until data 1e or NACK data 1f is received is monitored. In monitoring with the diagnostic timer IC, A
Diagnostic timer IC before receiving CK/NACK data
If the timeout occurs, the retransmission procedure is executed by retry 11 after the timeout occurs.

一方、送信先のステーション1b(Sj)においては、
送信データ1dを受信したとき、このデータの妥当性お
よびデータの欠損をチエツクし、正常な場合にはACK
データ1eを、異常の場合にはNACKデータ1fをそ
れぞれ送信元のステーション1aに返送する。
On the other hand, at the destination station 1b (Sj),
When transmission data 1d is received, the validity of this data and data loss is checked, and if it is normal, ACK is sent.
The data 1e and, in the case of an abnormality, the NACK data 1f are returned to the transmission source station 1a.

第10図はこのことを示すタイムチャートである。FIG. 10 is a time chart showing this.

すなわち、アイドル状態の送信局6aがユーザタスクよ
りデータ6dを受は取ると、アイドル状態の受信局6b
にデータを送信すると共に、監視タイマ61にセット信
号6mをを与えてこれをセットし、さらに、送信ステー
タス6eを受は取る。
That is, when the transmitting station 6a in the idle state receives data 6d from the user task, the receiving station 6b in the idle state
At the same time, a set signal 6m is given to the monitoring timer 61 to set it, and the transmission status 6e is also received.

若し、送信ステータスエラー6jが発生すればデータを
再送する。
If a transmission status error 6j occurs, the data is retransmitted.

一方、アイドル状態の受信局6bがデータを受は取ると
データ受は取り信号6gを発生し、ACKデータまたは
NACKデータ待ちの送信局6Cにこれらのうちのいず
れかのデータを送信する。
On the other hand, when the receiving station 6b in the idle state receives or accepts data, it generates a data receiving/accepting signal 6g, and transmits either data to the transmitting station 6C waiting for ACK data or NACK data.

ここで、送信局6cは監視タイマ61のタイムアツプ以
前にACKデータを受は取れば、この時点で監視タイマ
61にリセット信号6nを与えると共に、受信信号6f
を発生してアイドル状態に戻る。NACKデータを受は
取った場合にはデータ再送信号6kを発生する。また、
ACKデータまたはNACKデータを受は取る以前に監
視タイマ61がタイムアツプした場合には、この監視タ
イマ61がデータ再送信号6oを発生する。
Here, if the transmitting station 6c receives the ACK data before the time-up of the monitoring timer 61, it will give the reset signal 6n to the monitoring timer 61 at this point and also send the received signal 6f.
occurs and returns to the idle state. When NACK data is received, a data retransmission signal 6k is generated. Also,
If the monitoring timer 61 times up before receiving or receiving ACK data or NACK data, the monitoring timer 61 generates a data retransmission signal 6o.

一方、ACKデータを返送した受信局が送信ステータス
6hを受は取ると、ユーザプログラムに受信データ61
を渡してアイドル状態に戻る。
On the other hand, when the receiving station that returned the ACK data receives the transmission status 6h, the user program writes the received data 61
and return to idle state.

第11図は送信局におけるデータ送信時の処理手順を示
すフローチャートである。すなわち、ステップ101で
データを送信すると、ステップ102で送信ステータス
は正常か否かを判定する。
FIG. 11 is a flowchart showing the processing procedure when transmitting data at the transmitting station. That is, when data is transmitted in step 101, it is determined in step 102 whether the transmission status is normal.

もし、送信ステータスが正常であればあればステップ1
03にて時間監視タイマをセットする。反対に送信ステ
ータスが正常でなければ、ステップ104でデータ送信
のりトライ回数を判定し、所定値に至るまでステップ1
01でのデータ送信を繰り返し、所定値を超えたときは
ステップ105にて送信エラー処理を行う。
If the sending status is normal, step 1
At step 03, a time monitoring timer is set. On the other hand, if the transmission status is not normal, the number of data transmission attempts is determined in step 104, and the process continues in step 1 until a predetermined value is reached.
The data transmission at step 01 is repeated, and when the data exceeds a predetermined value, transmission error processing is performed at step 105.

第12図はこれに対応する受信局のデータ受信時の処理
手順をそれぞれ示すフローチャートである。この場合、
ステップ201でデータを受信すると、ステップ202
にて受信データが正常か否かを判定する。ここで正常と
判定された場合にはステップ203でACKデータを、
正常でなければステップ204でNACKデータをそれ
ぞれセットし、ステップ205でこれらのデータを送信
する。そして、ステップ205にて送信ステータスが正
常か否かを判定し、正常であればステップ207で受信
データをユーザプログラムへ渡し、ステップ208でア
イドル状態に戻り、反対に送信ステータスが正常でない
ときにはステップ209でデータ送信のりトライ回数を
判定し、所定値に至るまでステップ205でのデータ送
信を繰り返し、所定値を超えたときはステップ210に
て送信エラー処理を行う。
FIG. 12 is a flowchart showing the corresponding processing procedure when receiving data at the receiving station. in this case,
When data is received in step 201, step 202
It is determined whether the received data is normal or not. If it is determined to be normal here, the ACK data is sent in step 203.
If not normal, NACK data is set in step 204, and these data are transmitted in step 205. Then, in step 205, it is determined whether the transmission status is normal or not. If it is normal, the received data is passed to the user program in step 207, and the state returns to the idle state in step 208. Conversely, if the transmission status is not normal, step 209 The number of data transmission attempts is determined in step 205, and the data transmission in step 205 is repeated until a predetermined value is reached, and when the predetermined value is exceeded, transmission error processing is performed in step 210.

また、第13図は送信局におけるACKデータまたはN
ACKデータ受信時の処理手順を示すもので、これらの
データをステップ111で受信したとすれば、ステップ
112にてACKデータの受信かどうかを判断し、AC
Kデータであればステップ113で初期アイドル状態に
戻し、ACKデータでなければステップ114でデータ
送信のりトライ回数を判定し、所定値に至るまで第11
図に示したデータ送信処理を繰り返し、所定値を超えた
ときはステップ115にて送信エラー処理を行う。
Also, FIG. 13 shows the ACK data or N at the transmitting station.
This shows the processing procedure when receiving ACK data. If these data are received in step 111, it is determined in step 112 whether or not ACK data has been received, and the ACK data is
If it is K data, it is returned to the initial idle state in step 113, and if it is not ACK data, the number of data transmission attempts is determined in step 114, and the 11th
The data transmission process shown in the figure is repeated, and when a predetermined value is exceeded, transmission error processing is performed in step 115.

次に、第14図は診断タイマのタイムアウト後の処理手
順を示すフローチャートである。同図において、ステッ
プ121で診断タイマのタイムアウトを検出したとする
と、ステップ122でデータ送信のりトライ回数を判定
し、所定値に至るまで第11図に示したデータ送信処理
を繰り返し、所定値を超えたときはステップ123にて
送信エラー処理を行う。
Next, FIG. 14 is a flowchart showing the processing procedure after the diagnostic timer times out. In the figure, if a timeout of the diagnostic timer is detected in step 121, the number of data transmission attempts is determined in step 122, and the data transmission process shown in FIG. If so, transmission error processing is performed in step 123.

(発明が解決しようとする課題) 第15図は上述した送信ステーションの伝送ステータス
の関係を示す図であり、ここで、メインCPUBaと伝
送制御CP08Cとがデータ/アドレスバス8bで接続
され、伝送制御CPU8Cに伝送ライン8dが接続され
ていたとし、ユーザタスクよりデータ送信要求を行った
場合、送信局における伝送ステータスの遷移として次の
4通りのパターンが存在する。
(Problems to be Solved by the Invention) FIG. 15 is a diagram showing the relationship between the transmission statuses of the above-mentioned transmitting station. Here, the main CPUBa and the transmission control CP08C are connected by the data/address bus 8b, and the transmission control Assuming that the transmission line 8d is connected to the CPU 8C and a data transmission request is made from a user task, the following four patterns exist as transmission status transitions at the transmitting station.

■ 8e−P8h−”8f ■ 8e→81→8g *■ 8e呻8h→8g ■ 8 e−+8 i −8f ただし、 8e:データ送信要求ルート 8f:正常送信完了ステータスルート 8g=異常送信完了ステータスルート 8h:データ正常送出ルート 81:データ異常送出/送出失敗ルートである。■8e-P8h-”8f ■ 8e → 81 → 8g *■ 8e groan 8h → 8g ■8 e-+8 i-8f however, 8e: Data transmission request route 8f: Normal transmission completion status route 8g = Abnormal transmission completion status route 8h: Normal data transmission route 81: Data abnormality sending/sending failure route.

第16図は上述した受信ステーションの伝送ステータス
の関係を示す図である。伝送ライン8dよりデータを受
信した場合、受信局における伝送ステータスの遷移とし
て次の4通りのパターンが存在する。
FIG. 16 is a diagram showing the relationship between the transmission statuses of the above-mentioned receiving stations. When data is received from the transmission line 8d, the following four patterns exist as transmission status transitions at the receiving station.

*■ 9a→9C ■ 9b→9d ■ 9a→9d ■ 9b→9C ただし 9a:データ正常入力ルート 9b=データ異常入力ルート 9c:データ正常受信ルート 9d:データ異常受信/無受信ルート である。*■ 9a→9C ■9b→9d ■ 9a → 9d ■9b→9C however 9a: Normal data input route 9b=Data abnormal input route 9c: Normal data reception route 9d: Data abnormal reception/no reception route It is.

ここで、送信局におけるパターン■は、データを正常に
送出しているにも拘らずデータ送信が失敗したと判断し
ている場合であり、受信局におけるパターン■はデータ
正常入力ルートでデータを正常に受信した場合である。
Here, pattern ■ at the transmitting station is a case where the data transmission is judged to have failed even though the data is being sent normally, and pattern ■ at the receiving station is a case where the data is normally input using the normal data input route. This is the case when the message is received.

これらのパターン■および■で実際の送受信が行われた
とすると、送信局側では送信失敗の判断に基づいてデー
タを再送し、受信局側では既に正常なデータを受信して
その処理を終了しているが、さらに、正常なデータを受
信してその処理をも行うことになる。また、受信局側で
は1回日のデータ受信に対してACK/NACKデータ
を送信元局に返すが、2回日のデータ受信に対してもさ
らにACK/NACKデータを送信元局に返す。
Assuming that actual transmission and reception is performed using these patterns ■ and ■, the transmitting station will retransmit the data based on the determination that the transmission has failed, and the receiving station will have already received normal data and finished its processing. However, it also receives normal data and processes it. Furthermore, on the receiving station side, ACK/NACK data is returned to the source station for the first day's data reception, and ACK/NACK data is also returned to the source station for the second day's data reception.

一方、送信局側ではACK/NACKデータの受信は1
回しか期待していないにも拘らず、これを2回受信する
ことになり、それ以降のシーケンスを継続することが出
来なくなる。
On the other hand, on the transmitting station side, the reception of ACK/NACK data is 1
Even though I expected only one, I ended up receiving this twice, and I was unable to continue the sequence after that.

しかして、送信局がパターン■で送信し、受信局がパタ
ーン■で受信した場合には上記の経過の後、伝送シーケ
ンスがハングアップするという問題点があった。
However, when the transmitting station transmits in pattern 2 and the receiving station receives in pattern 2, there is a problem in that the transmission sequence hangs up after the above process.

この発明は上記の問題点を解決するためになされたもの
で、エラーの発生が事象の結果と逆方向に発生した場合
でも、伝送シーケンスの一貫性を維持することのできる
通信プロトコールの冗長化方式を提供することを目的と
する。
This invention was made to solve the above problems, and is a communication protocol redundancy method that can maintain the consistency of the transmission sequence even if an error occurs in the opposite direction to the result of the event. The purpose is to provide

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) この発明は、送信局側がアプリケーション層における冗
長化情報として各ステーションに固有のデータシーケン
ス番号を送信データに付加して送信し、受信局側がデー
タシーケンス番号の付加された応答データを返送すると
共に、データシーケンス番号の系列を調べることにより
伝送データの妥当性を判定し、妥当性を欠く前記送信デ
ータを棄却し、送信側が応答データのデータシーケンス
番号と送信時のデータシーケンス番号とが一致するか否
かを調べ、両者が不一致のとき前記応答データを棄却し
て応答待ぢの状態にすることを特徴とするのものである
(Means for Solving the Problems) In the present invention, the transmitting station side adds a data sequence number unique to each station to transmission data as redundancy information in the application layer and transmits the data, and the receiving station side adds the data sequence number to transmission data as redundancy information in the application layer. At the same time, the validity of the transmitted data is determined by checking the series of data sequence numbers, and the transmission data that lacks validity is rejected, and the sending side returns the data sequence number of the response data and the data at the time of transmission. It is characterized in that it is checked whether or not the sequence numbers match, and when the two do not match, the response data is rejected and a response wait state is created.

(作 用) 従来技術として説明した分散処理システムでは、第2図
に示すように、送信局側では送信テキスト10aのデー
タ1,2・・・nにそれぞれヘッダー情報を付加したデ
ータ10b・・・IOCを順次送信し、受信局側ではこ
れらのデータを受信する毎にヘッダー情報を付加したA
CK/NACKデータを返送するようになっている。こ
れに対して、本発明は、第1図に示すように、送信局側
で各データ1゜2・・・nに付加していたヘッダ情報の
他にデータシーケンス番号(以下データシーケンスNo
、と言う)を付加して送信し、受信局側でヘッダ情報の
他にデータシーケンスNo、を付加したACK/NAC
Kデータを返送する。かかるデータフォーマットに対し
て送信局側および受°信局側がそれぞれ次に示す論理に
よりデータの妥当性判断とその後のブタ処理を実行する
(Function) In the distributed processing system described as the prior art, as shown in FIG. 2, the transmitting station side generates data 10b...n in which header information is added to each of the data 1, 2...n of the transmission text 10a. IOC is sent sequentially, and the receiving station adds header information each time it receives the data.
It is designed to return CK/NACK data. In contrast, the present invention, as shown in FIG.
, etc.), and the receiving station adds the data sequence number in addition to the header information.
Send back the K data. For such a data format, the transmitting station side and the receiving station side respectively execute data validity judgment and subsequent pig processing using the following logic.

A、送信局側 ACK/NACKデータを受信したとき、それに付加さ
れているデータシーケンスNo、がデータ送信した時の
データシーケンスNo、に一致した場合、このACK/
NACKデータに基づく処理を行い、一致していなかっ
た場合にはこのACK/NACKデータを棄却する。
A. When receiving ACK/NACK data from the transmitting station, if the data sequence number added to it matches the data sequence number at the time of data transmission, this ACK/NACK data is
Processing is performed based on the NACK data, and if they do not match, this ACK/NACK data is rejected.

B、受信局側 データを受信したとき、そのデータに付加されているデ
ータシーケンスNCLが前回データに対して「1」だけ
増加している場合、その受信データを有効としてその後
の処理を行い、データシーケンスNo、が前回のデータ
に付加されたデータシーケンスNo、と同しか、あるい
は、小さい場合には、今回受信したデータを棄却する。
B. When receiving data from the receiving station side is received, if the data sequence NCL added to that data is increased by "1" compared to the previous data, the received data is considered valid and subsequent processing is performed, and the data is If the sequence number is the same as or smaller than the data sequence number added to the previous data, the currently received data is discarded.

これにより、エラーの発生が事象の結果と逆方向に発生
した場合でも、伝送シーケンスの一貫性を維持すること
ができる。
This makes it possible to maintain the consistency of the transmission sequence even if an error occurs in the opposite direction to the outcome of the event.

(実施例) 第3図は本発明の一実施例の概略を説明するためのタイ
ムチャートであり、送信局側がデータ送信時にデータシ
ーケンス漱を付加してデータを送信すると、受信局側が
データシーケンス魔の系列を調べることにより伝送デー
タの妥当性の判定と救済処理のためのデータ棄却処理6
pを行い、送信局側がACK/NACKデータを受信し
たとき、それに付加されているデータシーケンスNo、
がデータ送信した時のデータシーケンスNαに一致して
いなかった場合にこのACK/NACKデータを棄却す
る処理6qを行う点が第10図に示した従来方式と異な
っている。
(Embodiment) FIG. 3 is a time chart for explaining the outline of an embodiment of the present invention. When the transmitting station side adds a data sequence mark and sends data, the receiving station side Data rejection process 6 for determining the validity of transmitted data and remedial processing by examining the sequence of
p, and when the transmitting station side receives ACK/NACK data, the data sequence number added to it,
This method differs from the conventional method shown in FIG. 10 in that a process 6q is performed to discard the ACK/NACK data if it does not match the data sequence Nα at the time of data transmission.

第4図は送信局におけるデータ送信時の処理であり、デ
ータ送信を実行する前のステップ106でその時の送信
データに固有のデータシーケンスNαを取出し、ステッ
プ107でこのデータシーケンスNo、を付加している
FIG. 4 shows the processing at the time of data transmission at the transmitting station. In step 106 before executing data transmission, a data sequence Nα unique to the transmission data at that time is extracted, and in step 107, this data sequence No. is added. There is.

第5図は上記データ棄却処理6pを含めた受信局におけ
るデータ受信処理を示すフローチャートであり、従来方
式の処理手順を示す第12図に対してステップ211〜
214の処理が付加されている。この場合、ステップ2
01でデータを受信すると、ステップ211にてデータ
シーケンスNo。
FIG. 5 is a flowchart showing the data reception process in the receiving station including the data rejection process 6p, and in contrast to FIG.
214 processing is added. In this case, step 2
When the data is received in step 211, the data sequence number is determined.

を取出し、続いて、ステップ212にてこのデータシー
ケンス魔が前回の値と一致するか否かの検証を行い、前
回受信時のデータシーケンスNo、に対して「+1」に
なっておれば、すなわち、更新されておればステップ2
02以下の処理を実行するが、これ以外の場合にはステ
ップ213にて受信データを棄却し、ステップ214で
初期のアイドル状態に戻す。
Then, in step 212, it is verified whether this data sequence number matches the previous value, and if it is "+1" with respect to the data sequence number received last time, that is, , if updated, step 2
02 and subsequent processes are executed, but in any other case, the received data is rejected in step 213, and the initial idle state is returned to in step 214.

第6図は上記データ棄却処理6qを含めたACK/NA
CKデータ受信時の処理を示すフローチャートである。
Figure 6 shows ACK/NA including the above data rejection process 6q.
3 is a flowchart showing processing when receiving CK data.

これは、従来方式の処理手順を示す第13図に対してス
テップ116〜120の処理が付加されている。このう
ち、ステップ116ではデータシーケンスNαを取出し
、ステップ117でこのデータシーケンスNαか送信時
のデータシーケンスNへと一致するか否かを調べ、若し
、一致していなければ受信したACK/NACKデータ
をステップ118で棄却し、ステップ119でACK/
NACKデータ待ちのアイドル状態に戻す。一方、ステ
ップ117でデータシーケンスNαが送信時のデータシ
ーケンスNo、と一致したと判定した場合には、ACK
データ受信と判定した後のステップ120にて、次のデ
ータ送信に備えてデータシーケンスNαを「+1」にセ
ットする。
This process includes steps 116 to 120 added to FIG. 13, which shows the conventional process procedure. Among these, in step 116, the data sequence Nα is extracted, and in step 117, it is checked whether this data sequence Nα matches the data sequence N at the time of transmission, and if it does not match, the received ACK/NACK data is is rejected in step 118, and ACK/
Return to idle state waiting for NACK data. On the other hand, if it is determined in step 117 that the data sequence Nα matches the data sequence No. at the time of transmission, ACK is sent.
At step 120 after determining that data has been received, the data sequence Nα is set to "+1" in preparation for the next data transmission.

かかる処理動作を、第9図の処理動作と対応させて表現
すれば第7図のようになり、送信元のステーション1a
(St)側に、データシーケンスNα不一致によるAC
K/NACKデータを棄却する処理121が付加され、
送信先のステーション1b(Sj)側にデータシーケン
スNo、不一致によるA CK/N A CKデータ棄
却の処理12kが付加されている。
If such a processing operation is expressed in correspondence with the processing operation of FIG. 9, it will be as shown in FIG. 7, and the transmission source station 1a
(St) side, AC due to data sequence Nα mismatch
A process 121 for rejecting K/NACK data is added,
On the destination station 1b (Sj) side, processing 12k is added for discarding A CK/N ACK data due to data sequence No. and mismatch.

かくして、送信局において上記パターン■の処理、すな
わち、データを正常に送出しているにも拘らずデータ送
信が失敗したと判断したことによりデータの再送を行っ
たとしも、既に正常なデータを受信している受信局にお
いては、データシーケンスNo、が前回受信したと同一
になるためこれを棄却する。従って、ACK/NACK
の応答も1回しか実行しないことになり、従来方式で問
題となったパターン■とパターン■との組み合わせに基
づく伝送シーケンスのハングアップが解消される。
In this way, even if the transmitting station processes the above pattern (i), i.e., determines that the data transmission has failed even though the data is being sent normally, and retransmits the data, it will not be possible to receive normal data. In the receiving station that is currently receiving the data, the data sequence No. is the same as the one received last time, so it is rejected. Therefore, ACK/NACK
The response is also executed only once, and the hang-up of the transmission sequence based on the combination of pattern (2) and pattern (2), which was a problem in the conventional method, is resolved.

〔発明の効果〕〔Effect of the invention〕

以上の説明によって明らかなように、この発明によれば
、それぞれのデータに対して、データシーケンス番号を
付加し、送信局および受信局において、データシーケン
ス番号の系列を調べることによりデータの有効性をチエ
ツクし、その結果に基づいてデータの棄却または処理実
行を行うので、エラーの発生が事象の結果と逆方向に発
生した場合でも、伝送シーケンスの一貫性を維持するこ
とができるという効果がある。
As is clear from the above description, according to the present invention, a data sequence number is added to each data, and the validity of the data is checked by checking the series of data sequence numbers at the transmitting station and the receiving station. Since the data is checked and data is discarded or processed based on the result, the consistency of the transmission sequence can be maintained even if an error occurs in the opposite direction to the result of the event.

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

第1図は本発明の詳細な説明するためのデータフォーマ
ット、第2図は従来の通信プロトコール冗長化方式を説
明するためのデータフォーマット、第3図は本発明の一
実施例の伝送手順を説明するためのタイムチャート、第
4図乃至第6図は同実施例に係るCPUの処理手順を示
すフローチャート、第7図は同実施例の伝送手順を説明
するための説明図、第8図は従来の通信プロトコール冗
長化方式を採用した分散処理システムの一つのステーシ
ョンの機能ブロック図、第9図は同システムの伝送手順
を説明するための説明図、第10図は同システムの伝送
手順を説明するためのタイムチャート、第11図乃至第
14図は同システムを構成するCPUの処理手順を示す
フローチャート、第15図および第16図は伝送異常発
生を説明するための遷移図である。 7a−1〜7a−n・・・ユーザタスク、7b・・・送
信タスク、7c・・・受信タスク、7d・・・伝送初期
化タスク、7e・・・送信ドライバー、7f・・・受信
ドライバー、7g・・・伝送制御部、7h・・・送信バ
ッファ、71・・・受信バッファ、7j・・・ローカル
バッファ、7k・・・ステータス情報、71,8d・・
・伝送ライン、7m18c・・・伝送制御CPU、7n
、8a・・・メインCPU0 出願人代理人  佐  藤  −雄 第1図 第2図 6P 第3図 第4図 第6図 第12図
Figure 1 is a data format for explaining the present invention in detail, Figure 2 is a data format for explaining a conventional communication protocol redundancy system, and Figure 3 is for explaining a transmission procedure in an embodiment of the present invention. 4 to 6 are flowcharts showing the processing procedure of the CPU according to the same embodiment, FIG. 7 is an explanatory diagram for explaining the transmission procedure of the same embodiment, and FIG. 8 is a conventional Fig. 9 is an explanatory diagram for explaining the transmission procedure of the system, and Fig. 10 is an explanatory diagram for explaining the transmission procedure of the system. FIGS. 11 to 14 are flowcharts showing the processing procedure of the CPU constituting the system, and FIGS. 15 and 16 are transition diagrams for explaining the occurrence of a transmission abnormality. 7a-1 to 7a-n...user task, 7b...transmission task, 7c...reception task, 7d...transmission initialization task, 7e...transmission driver, 7f...reception driver, 7g...Transmission control unit, 7h...Transmission buffer, 71...Reception buffer, 7j...Local buffer, 7k...Status information, 71, 8d...
・Transmission line, 7m18c...Transmission control CPU, 7n
, 8a...Main CPU0 Applicant's agent Mr. Sato Figure 1 Figure 2 Figure 6P Figure 3 Figure 4 Figure 6 Figure 12

Claims (1)

【特許請求の範囲】 複数台のCPUが伝送路を通じて相互に情報を交換する
と共に、ノイズの侵入等による伝送シーケンスの異常に
対してインタフェース装置内の伝送シーケンスの初期化
を行う分散処理システムにおいて、 送信局側がアプリケーション層における冗長化情報とし
て各ステーションに固有のデータシーケンス番号を送信
データに付加して送信し、 受信局側が前記データシーケンス番号の付加された応答
データを返送すると共に、前記データシーケンス番号の
系列を調べることにより伝送データの妥当性を判定し、
妥当性を欠く前記送信データを棄却し、 送信側が前記応答データのデータシーケンス番号と送信
時のデータシーケンス番号とが一致するか否かを調べ、
両者が不一致のとき前記応答データを棄却して応答待ち
の状態にする、 ことを特徴とする通信プロトコールの冗長化方式。
[Scope of Claims] A distributed processing system in which a plurality of CPUs exchange information with each other through a transmission path, and initializes a transmission sequence within an interface device in response to an abnormality in the transmission sequence due to noise intrusion, etc. The transmitting station side adds a data sequence number unique to each station to transmission data as redundancy information in the application layer and transmits the data, and the receiving station side returns response data with the data sequence number added, and also sends the data sequence number. determine the validity of the transmitted data by examining the sequence of
rejecting the transmission data that lacks validity; the transmission side checks whether the data sequence number of the response data matches the data sequence number at the time of transmission;
A communication protocol redundancy method characterized in that when the two do not match, the response data is discarded and a response wait state is created.
JP63289089A 1988-11-16 1988-11-16 Redundancy system for communication protocol Pending JPH02135831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63289089A JPH02135831A (en) 1988-11-16 1988-11-16 Redundancy system for communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63289089A JPH02135831A (en) 1988-11-16 1988-11-16 Redundancy system for communication protocol

Publications (1)

Publication Number Publication Date
JPH02135831A true JPH02135831A (en) 1990-05-24

Family

ID=17738668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63289089A Pending JPH02135831A (en) 1988-11-16 1988-11-16 Redundancy system for communication protocol

Country Status (1)

Country Link
JP (1) JPH02135831A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009531680A (en) * 2006-12-15 2009-09-03 テクスマーク ゲゼルシャフト ミット ベシュレンクテル ハフツング フェアトリーブスゲゼルシャフト Method for measuring tensile stress on moving track
JP2010198520A (en) * 2009-02-27 2010-09-09 Hitachi Ltd Controller communication method and controller communication apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009531680A (en) * 2006-12-15 2009-09-03 テクスマーク ゲゼルシャフト ミット ベシュレンクテル ハフツング フェアトリーブスゲゼルシャフト Method for measuring tensile stress on moving track
JP2010198520A (en) * 2009-02-27 2010-09-09 Hitachi Ltd Controller communication method and controller communication apparatus

Similar Documents

Publication Publication Date Title
US4590468A (en) Token access controller protocol and architecture
KR880002098B1 (en) Improved multi processor multi system communication network
US7106742B1 (en) Method and system for link fabric error detection and message flow control
JPH10164140A (en) System for keeping forcibly and sequentially ordered packet flow in ring network system provided with busy node and defective node
JP2002064518A (en) Error correcting communication method to transmit data packet in network communication system
JPS5847111B2 (en) loop transmission system
WO2004004158A1 (en) System and method for supporting automatic protection switching between multiple node pairs using common agent architecture
JPH01198130A (en) Method of reducing the number of check point frames
WO2000072487A1 (en) Quality of service in reliable datagram
JP2003288283A (en) Static end-to-end retransmission device and method
JPS5943862B2 (en) Information transmission method of loop transmission system
JPH10164139A (en) System for holding sequential ordering by ring network having busy node and supporting idenpotent command
CN101656595A (en) Transmitting system, apparatus, and method
JP4807828B2 (en) Envelope packet architecture for broadband engines
JPH0691513B2 (en) Data transmission error detection method
JPH02135831A (en) Redundancy system for communication protocol
EP0094177A2 (en) Apparatus for direct memory-to-memory intercomputer communication
JP2012085244A (en) Serial transmitter, information processing apparatus and serial transmission method
JPS609240A (en) Communication controller
JP2808961B2 (en) Communication control device
JPH02119336A (en) System for making communication protocol into redundant structure
JP3566057B2 (en) Monitoring and control equipment
JP2000165424A (en) Loop type data transmitting device
JP2003186767A (en) Facing connection test method
JP2581013B2 (en) Bus fault handling circuit