JPH02119336A - System for making communication protocol into redundant structure - Google Patents

System for making communication protocol into redundant structure

Info

Publication number
JPH02119336A
JPH02119336A JP63270999A JP27099988A JPH02119336A JP H02119336 A JPH02119336 A JP H02119336A JP 63270999 A JP63270999 A JP 63270999A JP 27099988 A JP27099988 A JP 27099988A JP H02119336 A JPH02119336 A JP H02119336A
Authority
JP
Japan
Prior art keywords
data
transmission
sequence
received
station
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
JP63270999A
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 JP63270999A priority Critical patent/JPH02119336A/en
Publication of JPH02119336A publication Critical patent/JPH02119336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To keep the coherency of transmission sequence even when an error occurs in a direction opposite to that of the result of an event by attaching a data sequence No. on each of data, checking the system of the data sequence No. in a transmission station and a reception station, checking the validity of the data, and performing the deletion or the execution of a processing. CONSTITUTION:On a transmission station side, a procedure from the transmission of the data to the reception of response data is defined as a transmission procedure of one cycle, and the data sequence No. set first is attached on arbitrary transmission or reception data during that cycle. On the transmission station side and a reception station side, judgement for the validity of the data and a following data processing are performed on such data format by the following logic. Namely, the reception station side, in the case of receiving the data, and when the data sequence No. attached on the data being increased by one for the data received in a preceding transmission procedure of one cycle, performs the following processing assuming the reception data as valid data. The data in a case other than that is deleted.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、エラーの発生の経過が事象の流れと逆方向
に発生する場合においても、伝送シーケンスの一員性を
実現し1qるようにした通信プロトコルの冗長化方式に
関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) This invention realizes the integrity of the transmission sequence even when the course of error occurrence occurs in the opposite direction to the flow of events. This invention relates to a communication protocol redundancy system that uses 1q.

(従来の技術) 第11図は、この樟の方式が適用される伝送に関する基
本的な機能構成を示すブロック図である。
(Prior Art) FIG. 11 is a block diagram showing the basic functional configuration regarding transmission to which this method is applied.

なお、図において、7aはユーザクスク(1〜n)、7
bは送信タスク、70は受信タスク、7dは伝送初期化
タスク、7eは送信ドライバ、7「は受信ドライバ、7
gは伝送制御部、7hは送信バッフ1.71は受信バッ
ファ、7jは[1−カルバッファ、7にはスデータス情
報、71は伝送路、7mは伝送制御CPLJ、7nはメ
インCP LJである。
In addition, in the figure, 7a is the user prompt (1 to n), 7
b is a transmission task, 70 is a reception task, 7d is a transmission initialization task, 7e is a transmission driver, 7 is a reception driver, 7
g is a transmission control unit, 7h is a transmission buffer, 71 is a reception buffer, 7j is a [1-Cull buffer, 7 is data storage information, 71 is a transmission path, 7m is a transmission control CPLJ, and 7n is a main CP LJ.

この種の伝送制御の機能は、メインCP l−J 7 
nで実行される部分と伝送制御CPU 7taにより実
行される部分とに大別され、データ及びコントロールの
処理の流れは概路次のように行なわれる。
This type of transmission control function is performed by the main CP l-J7.
The data and control processing flow is roughly divided into a portion executed by the transmission control CPU 7ta and a portion executed by the transmission control CPU 7ta.

?lなわら、第11図において、ユーザタスク1(7a
)が送信要求を行なう場合、データ及びコントロールは
まず送信タスク7bに通知される。
? However, in FIG. 11, user task 1 (7a
) makes a transmission request, the data and control are first notified to the transmission task 7b.

送信タスク7bは、送信データに適当なヘッダ情報を付
加した後、そのデータを送信バッフ17hに杏込み、そ
の後送信ドライバ7eを起動する。
The transmission task 7b adds appropriate header information to the transmission data, stores the data in the transmission buffer 17h, and then activates the transmission driver 7e.

送信ドライバ7eは、送信バッフ77h内データを伝送
制御CPU (7m )内のローカルバッファ7jに転
送し、伝送制御部7gを起動する。
The transmission driver 7e transfers the data in the transmission buffer 77h to the local buffer 7j in the transmission control CPU (7m), and activates the transmission control unit 7g.

伝送制御部7qは、ローカルバッファ7j内データのデ
キスト長制御、CRC冗長化情報付加等を行なった後、
D/△変換したデータを伝送路7に送出する。
After controlling the dex length of the data in the local buffer 7j, adding CRC redundancy information, etc., the transmission control unit 7q
The D/Δ-converted data is sent to the transmission path 7.

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

一方受信の場合は、伝送制御部7gは受信データが到@
する毎にA/D変換したデータについてCRC冗長化情
報チエツクを行なったものをローカルバッファ7jに保
存し、受信ドライバ7fに割込み信号を通知する。
On the other hand, in the case of reception, the transmission control unit 7g receives the received data.
Each time the A/D converted data is checked for CRC redundancy information, it is stored in the local buffer 7j, and an interrupt signal is sent to the reception driver 7f.

受信ドライバ7「は、ステータス情報7kが正常な場合
はローカルバッフ?7jより受信バッファ71ヘデータ
を転送し、受信データの中にテキスト終了コードが検出
される場合は受信タスク7Cを起動する。
If the status information 7k is normal, the receive driver 7 transfers the data from the local buffer 7j to the receive buffer 71, and if a text end code is detected in the received data, starts the receive task 7C.

受信タスク7Cは、データのチェーン構造をチエツクし
た後ユーザタスク7aを起動し、これにデータを渡す。
After checking the data chain structure, the receiving task 7C activates the user task 7a and passes the data to it.

ステータス情報7kが異常である場合、一般に次の手順
が行なわれる。
If the status information 7k is abnormal, the following procedure is generally performed.

ステータス情報異常が送信過程で検出された場合は、伝
送初期化タスク7dを起動して、伝送側tlflcPL
J (7m )を初期化し、送信/受信のドライバ7e
、’N及びタスク7b、7cを初期化する。
If a status information abnormality is detected during the transmission process, the transmission initialization task 7d is activated and the transmission side tlflcPL
Initialize J (7m) and transmit/receive driver 7e.
, 'N and tasks 7b and 7c are initialized.

受信過程で検出された場合は、そのステータス異常が致
命的な場合は送信ステータス異常と同様に初期化を行な
い、そうでない場合は受信したデータを棄却する。但し
、ユーザタスク7aに受信スj−クスは通知しない。
When detected during the reception process, if the status abnormality is fatal, initialization is performed in the same way as for the transmission status abnormality, otherwise the received data is discarded. However, the user task 7a is not notified of the received message.

1記のような送信及び受信の一連の手順において発生ず
るエラーに対して伝送手順の継続を実行するために、伝
送手順の上位層のユーザタスクレベルにおいて種々の冗
Q化処理が行なわれている。
In order to continue the transmission procedure in response to errors that occur in a series of transmission and reception procedures as described in 1 above, various redundant Q processing is performed at the user task level in the upper layer of the transmission procedure. .

第12図において、それを説明する。なお、図にJ’3
いて1aはステーションSi  1bはスーションSj
、1cは診断タイマ監視、1dはデータ送信、1CはE
GK応答送信、1「はNACK応答送信、1gは診断タ
イマのセット、1hは診断タイマのりセラ1−111は
タイムアウトの発生後のりl・ライ、1jは送信完了ス
テータス異常リトライである。
This will be explained with reference to FIG. In addition, J'3 is shown in the figure.
1a is station Si, 1b is station Sj
, 1c is diagnostic timer monitoring, 1d is data transmission, 1C is E
GK response transmission, 1" is NACK response transmission, 1g is setting of the diagnostic timer, 1h is diagnostic timer reset after timeout occurs, and 1j is transmission completion status abnormal retry.

送信ステーション5i(1a)は、データ送信(1d)
の後、送(3完了ステータスをチエツクしく1J)その
ステータスが異常な場合は再送信の手順を実行する。
The transmitting station 5i (1a) transmits data (1d)
After sending (3) check the completion status (1J), if the status is abnormal, execute the retransmission procedure.

送信完了ステータスが正常な場合は、信号タイYをセッ
トして(1(+ ) 、ACK (1e )又はNAC
K (if )データを受信するまでの時間を監視する
If the transmission completion status is normal, set signal tie Y (1 (+), ACK (1e) or NAC
K (if) Monitor the time until data is received.

診断タイマが診断タイマ監視(1G)においてタイムア
ウトした場合は、再送信の手順を実行する(11)。
If the diagnostic timer times out in diagnostic timer monitoring (1G), a retransmission procedure is executed (11).

一方送信先局のステーション5j(1b)においては、
受信したデータ(1d)の妥当性及びデータの欠損をチ
エツクし、正常な場合は八〇にデータ(1e)を、異常
な場合はNACKデータ(1[)を送信する。
On the other hand, at the destination station 5j (1b),
The received data (1d) is checked for validity and data loss, and if normal, data (1e) is sent to 80, and if abnormal, NACK data (1[) is sent.

以上)ホベた第12図の伝送手順のブロックに1.1づ
くタイミングチャートを第13図に示す。
FIG. 13 shows a timing chart based on the block 1.1 of the transmission procedure shown in FIG. 12 above.

なお、同図において、6aは送信局アイドル状態、6b
は受信局アイドル状態、6Cは△CK/NΔCK待ちア
イドル状fff1.,6dはユーザタスクよりデータを
受は取る処理、6eはデータを送信し、送信ステータス
を受は取る処理、6「は八CK又はNACKを受は取る
処理、6gはデータを受は取る処理、611はΔCK/
NACKを送信し、送信ステータスを受は取る処理、6
1はニーザブ0グラム受信データを渡す処理、6jは送
信ステータスエラー時においてデータ再送を行なう処理
、6にはNACK受信時に再送を行なう処理、6はAC
K/NACK受信時の監視タ受信−6IIlはデータ送
信時のタイマセット処理、6nは△CK/NACK受信
時のタイマリセット処理、60は監視タイマタイムアウ
ト時データ再送を行なう処理で・ある。
In addition, in the same figure, 6a is the transmitting station idle state, 6b
is the receiving station idle state, and 6C is the idle state waiting for ΔCK/NΔCK fff1. , 6d is the process of receiving data from the user task, 6e is the process of transmitting data and receiving the transmission status, 6 is the process of receiving CK or NACK, 6g is the process of receiving data, 611 is ΔCK/
Processing to send NACK and receive/receive transmission status, 6
1 is the process of passing the kneezab 0gram received data, 6j is the process of retransmitting data when a transmission status error occurs, 6 is the process of retransmitting when NACK is received, 6 is AC
Monitoring data reception when receiving K/NACK - 6II1 is a timer setting process when transmitting data, 6n is a timer reset process when receiving ΔCK/NACK, and 60 is a process for retransmitting data when the monitoring timer times out.

この伝送手順による流れ図は、第14図から第17図に
示されている。
Flowcharts of this transmission procedure are shown in FIGS. 14 to 17.

すなわら、第14図は送信元局におけるデータ送信時の
手順のフローチャート、第15図は送信先月におけるデ
ータ受信時の手順のフローチャート、第16図は送信元
局におけるACK/NACK受信時の手順の受信−チャ
ート、第17図は診断タイマのタイムアウト後の処理の
フローチャートである。
In other words, FIG. 14 is a flowchart of the procedure when transmitting data at the source station, FIG. 15 is a flowchart of the procedure when receiving data in the last month of transmission, and FIG. 16 is the procedure when receiving ACK/NACK at the source station. FIG. 17 is a flowchart of processing after the diagnostic timer times out.

(発明が解決しようとする課題) 第18図及び第19図により、本発明が解決しようとす
る課題を説明する。
(Problems to be Solved by the Invention) The problems to be solved by the present invention will be explained with reference to FIGS. 18 and 19.

第18図は、送信局におりる伝送ステータスの相関図で
あり、第19図は受信局における伝送ステータスの相関
図である。
FIG. 18 is a correlation diagram of the transmission status at the transmitting station, and FIG. 19 is a correlation diagram of the transmission status at the receiving station.

なお、第18図において、8aはメインCPU、8bは
データ/アドレスバス、8cは伝送制御CPU、8dは
伝送ライン、8eはデータ送信要求ルート、8fは正常
送信完了ステータスルート、8gは異常送信先rステー
タスルー1〜.8 bはデータ正常送出ルート、81は
データ責常送出/送出失敗ルートである。
In Fig. 18, 8a is the main CPU, 8b is the data/address bus, 8c is the transmission control CPU, 8d is the transmission line, 8e is the data transmission request route, 8f is the normal transmission completion status route, and 8g is the abnormal transmission destination. r status through 1~. 8b is a route for normal data transmission, and 81 is a route for data transmission/failure in data transmission.

また、第19図において、9aはデータ正常入力ルート
、9bはデータ異常入力ルート、90はデータ正常受信
ルート、9dは異常受信/無骨(8ルートである。
Further, in FIG. 19, 9a is a normal data input route, 9b is an abnormal data input route, 90 is a normal data reception route, and 9d is an abnormal reception/unfriendly route (8 routes).

第′18図において、ユーザタスクよりデータ送信要求
(8e)を行なった場合、送信局にJ′3りる伝送ステ
ータスの遷移としては次の4通りのパターンが存在する
In FIG. 18, when a data transmission request (8e) is made by the user task, there are the following four patterns for the transition of the transmission status J'3 to the transmitting station.

■:  8e  −)8h  −+8j■=8e →8
1 →8g ★■: 8e →8h →8g ■;  86−+8i−+8f 同様に、受信局に関しては、第19図においては ■′ : 9a →9C ★■′ : 9b →9d ■′ : 9a →9d ■7 : 9b →9C の4通りのパターンが存在する。
■: 8e -)8h -+8j■=8e →8
1 → 8g ★■: 8e → 8h → 8g ■; 86-+8i-+8f Similarly, for the receiving station, in Fig. 19, ■': 9a →9C ★■': 9b →9d ■': 9a →9d ■7: There are four patterns: 9b → 9C.

ここで問題となるのは、送信局におけるパターン■と受
信局にお(ブるパターン■−の場合である。
The problem here is the case of pattern (2) at the transmitting station and pattern (2) at the receiving station.

これらのパターンにおいては、何れも送信局においてデ
ータ送信は失敗していると判断しているにも拘わらず、
受信局においては結果的に正常なデータが受信された場
合である。
In all of these patterns, even though the transmitting station determines that data transmission has failed,
This is a case where the receiving station ends up receiving normal data.

この場合、送信局側はデータ送信が失敗したと判断する
ので、データの再送を行なう。
In this case, the transmitting station determines that data transmission has failed, and therefore retransmits the data.

一方、受信局側では既に正常なデータを受信してその処
理が終了しているが、更に正常なデータ・を受信したこ
とによりその処理を行なう。
On the other hand, on the receiving station side, although normal data has already been received and the processing thereof has been completed, the receiving station side performs the processing upon receiving further normal data.

同時に、受信局側では1回目のデータ受信に対してAC
K/NACKを送信元局へ返すが、2回目のデータ受信
に対しても更にACK/NACKの応答を返す。
At the same time, the receiving station side uses AC for the first data reception.
A K/NACK is returned to the source station, but an ACK/NACK response is also returned to the second data reception.

そのため、送信局側ではACK/NACKの受信は1回
しか期待していないに6拘わらず、2回のACK/NA
CKを受信するこになり、それ以降のシーケンスを継続
できなくなる。
Therefore, although the transmitting station expects to receive only one ACK/NACK6, it receives two ACK/NACKs.
CK will be received, and the subsequent sequence cannot be continued.

以上のような経過の後、伝送シーケンスはハング7ツブ
してしまう。
After the above process, the transmission sequence ends up hanging.

この発明は、上述の問題点に鑑みなされたしのであり、
その目的とするところは、上述したよ)にエラーの発生
の経過が事象の流れと逆方向に発生する場合おいても、
伝送シーケンスの一出性を実現し、伝送の信頼性を向上
させることができるようにした通信プロトコルの冗長化
方式を提供することにある。
This invention was made in view of the above problems,
The purpose of this is that even if the course of occurrence of an error occurs in the opposite direction to the flow of events (as described above),
An object of the present invention is to provide a communication protocol redundancy system that realizes uniformity of transmission sequences and improves transmission reliability.

[発明の構成] (課題を解決するための手段) この発明は、上記の問題を解決するために、複数のCP
Uが伝送路を介して相互に情報を交換する分散処理シス
テムにおいて、 送信局側では、送信データに対して各送信先局毎に固有
のデータシーケンス比を冗長化情報として付加し、 受信局側では、受信データのシーケンス陥の系列を調べ
ることにより当該受信データの妥当性判定を行ない、 送信局側においては、送信先局からの応答データを受信
した場合に限り、当該サイクルの伝送手順を終了してデ
ータシーケンス比の更新を行なうこと、 を特徴とするものである (作用) このJ:うな構成によれば、受信局側において、受信デ
ータのデータシーケンス比の系列を調べた結東、当該受
信データの妥当性が認められない場合には、送信局側に
おいて送信先局からの応答データが受信されないため、
前述したエラーの発生の経過が事象の流れと逆方向に発
生した場合においても、このようなエラーを確実に認識
し、伝送シーケンスの一貫性を実現することができる。
[Structure of the invention] (Means for solving the problem) In order to solve the above problem, this invention
In a distributed processing system in which U exchanges information with each other via a transmission path, the transmitting station adds a unique data sequence ratio for each destination station to the transmitted data as redundancy information, and the receiving station side Then, the validity of the received data is determined by checking the series of sequence errors in the received data, and the transmitting station ends the transmission procedure for the cycle only when it receives response data from the destination station. (Operation) According to this J: configuration, on the receiving station side, the data sequence ratio of the received data is checked, and the data sequence ratio is updated. If the validity of the received data is not recognized, the transmitting station will not receive response data from the destination station.
Even when the aforementioned error occurs in the opposite direction to the flow of events, such an error can be reliably recognized and consistency in the transmission sequence can be achieved.

(実施例) まず、第1図及び第2図を参照しながら、本発明方式の
原理について説明する。
(Example) First, the principle of the system of the present invention will be explained with reference to FIGS. 1 and 2.

第1・図は、本発明による伝送データフォーマットを示
す図、第2図は従来の伝送データフォーマットを示す図
である。
FIG. 1 is a diagram showing a transmission data format according to the present invention, and FIG. 2 is a diagram showing a conventional transmission data format.

なお、第1図において、11aは送信データテキスト、
11bは送信局データ送信、11cは送信局のACK/
NACK応答、11dは受信局の応答データテキスト、
11eは受信局のACK/NACK応答、11「は受信
局の応答データ送信であり、また第2因において10a
は送信テキスト、10bは送信局送信データ2.11c
は送信局送信データ、n−1,10dは受信局ACK/
NACK応答である。
In addition, in FIG. 1, 11a is the transmission data text,
11b is transmitting station data transmission, 11c is transmitting station ACK/
NACK response, 11d is the response data text of the receiving station,
11e is the ACK/NACK response of the receiving station, 11" is the response data transmission of the receiving station, and 10a is the second cause.
is the transmission text, 10b is the transmission station transmission data 2.11c
is the transmitting station transmission data, n-1, 10d is the receiving station ACK/
This is a NACK response.

第′1図と第2図とのの比較から明らかなように、本発
明においては、送信局側ではデータ送信から応答データ
受信までを1サイクルの伝送手順と定義し、このサイク
ルの間での任意の送信及び受信データは、最初にセット
したデータシーケンス隘が付加される。
As is clear from a comparison between Fig. 1 and Fig. 2, in the present invention, on the transmitting station side, the period from data transmission to response data reception is defined as one cycle of transmission procedure, and the transmission procedure during this cycle is Any transmitted and received data will be appended with the initially set data sequence.

このようなデータフォーマットに対して、送信局側及び
受信局側では、次の論理によりデータの妥当ft判断と
その後のデータ処理を行なう。
For such a data format, the transmitting station side and the receiving station side perform data validity ft determination and subsequent data processing using the following logic.

すなね15、送信局側では、データ送信の際に、データ
シーケンス比を付加して送信する。ここで、データシー
ケンス比は、送信先局毎に1つづつ対応さけ、それぞれ
が独立に1サイクルの送信手続が完了する度に1つイン
クリメントされる。
The transmitting station side adds a data sequence ratio when transmitting data. Here, the data sequence ratio is one for each destination station, and is incremented by one each time one cycle of transmission procedure is completed.

その後、ACK/NACKデータまたは応答データを受
は取った時、それに付加されているデータシーケンス比
がデータ送信時のデータシーケンス)&に一致した場合
その処理を行ない、そうでなければその八〇に/NAC
Kデータまたは応答データを棄却する。
After that, when ACK/NACK data or response data is received, if the data sequence ratio added to it matches the data sequence at the time of data transmission), it is processed, otherwise it is /NAC
Discard K data or response data.

他方、受信局側では、データを受信した時、そのデータ
に付加されているデータシーケンス比が、・前回の1サ
イクル伝送手順において受信したデータに対し11つだ
【プ増加している場合、その受信データを有効としてそ
の後の処理を行なう。
On the other hand, on the receiving station side, when data is received, the data sequence ratio added to the data is 11 compared to the data received in the previous one-cycle transmission procedure. The received data is validated and subsequent processing is performed.

それ以外の場合(データシーケンス比が前回と同じであ
るか小ざい)は、そのデータを棄Wする。
In other cases (the data sequence ratio is the same as the previous time or smaller), the data is discarded.

同様に、応答データ送信に対する応答として八〇 K 
/ N A CKデータを受は取った時、それに付加さ
れているデータシーケンス比がデータ受信時のデータジ
−ケンスト&に一致した場合、その処理を行ない、そう
でなければ△CK/NACKデータは棄却する。
Similarly, 80K as a response to the response data transmission.
/ When receiving ACK data, if the data sequence ratio added to it matches the data sequence ratio at the time of data reception, perform that processing, otherwise discard the △CK/NACK data. do.

F記の方式に基づく、伝送手順のブロック図が第4図に
示されている。
A block diagram of a transmission procedure based on the method described in F is shown in FIG.

第12図の従来方式に対しては、本方式は次の点におい
て相違する。
The present method differs from the conventional method shown in FIG. 12 in the following points.

なお、第4図において、12にはデータシーケンス陽子
一致によるデータ棄却、121はデータシーケンス鷹不
一致によるACK/NACK棄却、12nは応答データ
送信、120は応答データに対する八〇に応答送信、1
20は応答データに対するNACK応答送信、12pは
応答データに対する診断タイマセット、12Qは応答デ
ータに対する診断タイマリセット、12rは応答データ
に対するタイムアウト発生後リトライ、123はデータ
シーケンス出不一致による応答データ棄却、12【はデ
ータシーケンス陽子一致によるACK/NACK棄却で
ある。
In FIG. 4, 12 indicates data rejection due to data sequence proton matching, 121 indicates ACK/NACK rejection due to data sequence hawk mismatch, 12n indicates response data transmission, 120 indicates response transmission to 80 for response data, 1
20 is a NACK response transmission for response data, 12p is a diagnostic timer set for response data, 12Q is a diagnostic timer reset for response data, 12r is a retry after a timeout occurs for response data, 123 is response data discarded due to data sequence mismatch, 12[ is an ACK/NACK rejection due to a data sequence proton match.

従来においては、データ送信に対してそのACK/NA
CKデータ受信までを1ザイクルの伝送手順と定義して
いたが、本発明においては送信光層からの応答データを
受信するまでを1サイクルの伝送手順とする。
Conventionally, ACK/NA for data transmission
Although the period up to the reception of CK data was defined as one cycle of transmission procedure, in the present invention, the period up to reception of response data from the transmission optical layer is defined as one cycle of transmission procedure.

また、従来技術に対して、本発明では送信局側ではf−
タシーケンス陽不一致によるACK/N△CK棄M(1
2+)及びデータシーケンス文不敗による応答データ棄
f!I(12s)の処理手続か付加され、また受信局側
ではデータシーケンス陽子一致によるデータ棄却(12
k)及びデータシーケンス高年一致によるACK/NA
CK棄却(12d)の処理手続がイζ1加されている。
Furthermore, in contrast to the prior art, in the present invention, f-
ACK/N△CK rejected M(1
2+) and response data discarded due to failure of data sequence statement f! I (12s) processing procedure is added, and on the receiving station side, data is rejected due to data sequence proton matching (12s).
ACK/NA due to k) and data sequence seniority matching
A processing procedure for CK rejection (12d) is added by ζ1.

上)ホの特徴を1=+する結果、本発明方式では次のよ
うな作用を秦することができる。
As a result of adding 1 to the characteristic (e) above, the method of the present invention can achieve the following effects.

第3図は本発明による伝送タイミングチャートである。FIG. 3 is a transmission timing chart according to the present invention.

なお、同図において、6pは応答データ待ちアイドル状
態、6qはユーザタスクからの応答持ちアイドル状態、
6rはACK/NACに(吉らアイドル状態、6Sは応
答データを受は取る処理、6tは八GK/NΔCKを送
信し送イ3ステータスを受けとる処理、6uはユーザタ
スクへ応答データを渡す処理、6vはユーザタスクより
応答データを受は取る処理、6Wは応答データを送信し
送信スデータスを受【プ取る処理、6Xは△CK/NA
CKを受は取る処理、6yは受信したデータを棄却する
処理、6zは受信したACK/NACKを@fJ1する
処理、6aaは受信した応答データを棄却する処理、6
abは受信したACK/NACKを棄却する処理である
In the figure, 6p is an idle state waiting for response data, 6q is an idle state waiting for a response from the user task,
6r is in ACK/NAC (Yoshira idle state, 6S is a process of receiving and receiving response data, 6t is a process of transmitting 8GK/NΔCK and receiving Send I3 status, 6u is a process of passing response data to the user task, 6v is the process of receiving and receiving response data from the user task, 6W is the process of transmitting the response data and receiving the transmitted data, and 6X is the process of △CK/NA
6y is the process of rejecting the received data, 6z is the process of @fJ1 for the received ACK/NACK, 6aa is the process of rejecting the received response data, 6
ab is a process of rejecting the received ACK/NACK.

本発明方式の場合、第12図に示される従来技術に対し
て、送信局側では受信したACK/N△CKを棄却する
処fff!(6z)及び受信した応答データを棄却する
処理(6aa)が、また受信局側では受信データを棄却
する処理(6y)及び受信ΔCK/NACKを棄却する
処理(6ab)が追加されている。
In the case of the method of the present invention, unlike the conventional technique shown in FIG. 12, the transmitting station side discards the received ACK/N△CKffff! (6z) and a process (6aa) for rejecting received response data, and a process (6y) for rejecting received data and a process (6ab) for rejecting received ΔACK/NACK on the receiving station side.

すなわち、受信したデータを棄却する処理(6y)では
、受信したデータについて、データシーケンス陽を調べ
、それが前回受信したデータに対して1だけ増加してい
る場合のみそのデータを処理する。それ以外はそのデー
タを棄却する。
That is, in the process (6y) of discarding the received data, the positive data sequence is checked for the received data, and the data is processed only if it is increased by 1 compared to the previously received data. Otherwise, the data is rejected.

受信した八〇に/NACKを棄却する処理(61)では
、受信したACK/NACKについて、データシーケン
ス鴇を調べ、それがデータ送信時のデータシーケンス出
に一致した場合のみ、そのへGK/NACKデータを有
効と見做して、送信局は応答データ持ちのアイドル状態
に移行する。
In the process (61) of rejecting the received 80/NACK, the data sequence value of the received ACK/NACK is checked, and only if it matches the data sequence output at the time of data transmission, the GK/NACK data is sent to the received ACK/NACK. The transmitting station considers this to be valid and shifts to an idle state with response data.

それ以外はその八〇に/NACKを棄却して、八〇に/
NACK応答持ちの状態を継続する。
Otherwise, it's 80/NACK is rejected and it's 80/
The state with a NACK response continues.

また、受信した応答データを棄却する処理(6aa)で
は、受信した応答データについて、そのデータシーケン
ス掬を調べ、それがデータ送信時のデータシーケンス出
に一致した場合のみ、その応答データを有効と見做して
、送信11葛は応答データに対する八G K / N 
A CKの送信処理をfiなう。
In addition, in the process (6aa) of rejecting the received response data, the data sequence of the received response data is checked, and only if it matches the data sequence output at the time of data transmission, the response data is considered valid. In other words, the transmission 11 is 8G K/N for the response data.
Perform ACK transmission processing.

それ以外は、その受信した応答データを棄if) t、
て、再度応答データ待ちのアイドル状態を継続する。
Otherwise, discard the received response data if) t,
Then, it continues the idle state waiting for response data again.

また、受信したACK/NACKを東11する処理(t
3ab)t−は、受信したACK/NACKについて、
データシーケンス出を調べ、それが受イ8時のデータシ
ーケンス陽に一致して場合のみ、その八〇に/NACK
データを有効と見做して送信局はアイドル状態に移行す
る。それ以外は、A CK/NACKを棄却して、アイ
ドル持ら状態とする。
In addition, a process (t
3ab) t- is for the received ACK/NACK,
Examine the data sequence output and only if it matches the data sequence positive at 8 o'clock, then /NACK that 80 o'clock.
The transmitting station considers the data to be valid and shifts to an idle state. Otherwise, the ACK/NACK is rejected and the state is set to idle.

次に、以上の原理よりなる本発明方式を具体的に実施す
るための制御プログラムを第5図〜第10図の70−チ
17−トを参照しながら説明する。
Next, a control program for concretely implementing the system of the present invention based on the above principle will be explained with reference to charts 70-17 of FIGS. 5 to 10.

なお、以下の説明については、本発明の特徴部分につい
てのみ詳細な説明を行なうが、それらのフローチ17−
トは通常の文章で記述されているため、その理解tま当
業名であれば容易に行なうことができるであろう。
In the following explanation, only the characteristic parts of the present invention will be explained in detail, but the flowchart 17-1 will be explained in detail.
Since the instructions are written in ordinary sentences, those skilled in the art will be able to easily understand them.

第5図は、送信局におけるデータ送信時の処理を示すフ
ローチャ−トである。同図において、ステップ29の処
理により、送信データには必ずその時の送信データに固
有のデータシーケンス陽がイ」加される。
FIG. 5 is a flowchart showing the processing at the transmitting station when transmitting data. In the same figure, in the process of step 29, a data sequence unique to the transmission data at that time is always added to the transmission data.

第6図は、受信局におけるデータ受信時の処理を示づフ
ローチャートである。同図において、ステップ3k及び
ステップ31の処理により、データシーケンス爾が検証
され、それが前回受信時のデータシーケンス隔に対して
プラス1だけ増加しでいる場合、その受信データを有効
とする。それ以外の場合は、その受信データを棄却する
FIG. 6 is a flowchart showing the processing at the receiving station when receiving data. In the figure, the data sequence 2 is verified through the processes of steps 3k and 31, and if it has increased by +1 from the data sequence interval at the time of previous reception, the received data is validated. Otherwise, the received data is discarded.

第7図は送信局におけるACK/NACK受信時の処理
を示すフローチャートである。同図において、ステップ
411により、ACK/NACKにイー1加されたテ′
−タシーケンス臣がチエツクされ、データ送信時のシー
ケンス庵と比較され、不一致の場合はそのACK/NA
CKデータは棄却されろくステップ41)。
FIG. 7 is a flowchart showing the processing when receiving ACK/NACK at the transmitting station. In the same figure, in step 411, 1 is added to the ACK/NACK.
- The sequencer is checked and compared with the sequencer at the time of data transmission, and if there is a mismatch, its ACK/NA
The CK data is rejected (step 41).

第8図は、受信局におけるI、?5答データ送信時の処
理を示すフローチャートである。同図において、ステッ
プ50aの処理において、正常データ受信時のデータシ
ーケンス賜が取り出され、ステップ50bの処理により
応答データに付加され、その結果が送信される(ステッ
プ50C)。
FIG. 8 shows I, ? at the receiving station. 5 is a flowchart showing processing when transmitting 5-answer data. In the same figure, in the process of step 50a, the data sequence at the time of normal data reception is extracted, and in the process of step 50b, it is added to the response data, and the result is transmitted (step 50C).

第9図は送信局における応答データ受信時の処理を示す
フローチャートである。同図において、ステップ60b
及びステップ60Cの処理により、データシーケンス鳩
は検証され、それがデータ送信時のデータシーケンス陥
と一致している場合、その応答データを有効とする。そ
れ以外の場合はその受信した応答データを棄却する(ス
テップ6第’I 0図は、受信局における△CK/NA
CK受信時の処理を示すフローチャー1へである。同図
において、ステップ70tl及びステップ700により
、ACK/NACKにイ1加されたデータシーケンス賜
がチエツクされ、応答データ送信時のシーケンス庵と比
較され、不一致の場合にはACK/NACKデータは棄
却される(ステップ70f)以上の実施例によれば、エ
ラーの発生が型染の結果と逆方向にJ′3いて発生する
場合においても、伝送シーケンスの−1性を実現するこ
とができる。
FIG. 9 is a flowchart showing processing when response data is received at the transmitting station. In the figure, step 60b
Through the process of step 60C, the data sequence pigeon is verified, and if it matches the data sequence error at the time of data transmission, the response data is validated. Otherwise, the received response data is rejected (Step 6).
The process now advances to flowchart 1 showing the process when receiving CK. In the figure, in steps 70tl and 700, the data sequence added to the ACK/NACK is checked and compared with the sequence at the time of response data transmission, and if they do not match, the ACK/NACK data is discarded. (Step 70f) According to the above embodiment, even when an error occurs in the direction J'3 opposite to the pattern dyeing result, the -1 property of the transmission sequence can be realized.

以];に、それを前述した発明が解決しようとする課題
の10で示したパターン■の場合を例に挙げて説明する
This will be explained below by taking as an example the case of pattern (1) shown in item 10 of the problem to be solved by the above-mentioned invention.

送信局側は、データ送信が失敗したと判断するのでγ−
りの再送を行なう。一方、受信局側は、既に正常なデー
タを受信しているが、2回目のデータ受信においては、
そのデータシーケンス陽が前回の受イ8したデータと同
一であるので棄却される。
The transmitting station determines that the data transmission has failed, so γ−
Retransmits the next one. On the other hand, the receiving station side has already received normal data, but when receiving data for the second time,
Since the data sequence positive is the same as the previously received data, it is rejected.

従って、ACK/NACKの応答も1回しか実行しない
。ilなわら、このような伝送異常のパタンにおいてら
正常な伝送手順を継続することができる。
Therefore, the ACK/NACK response is executed only once. However, it is possible to continue normal transmission procedures despite such a pattern of transmission abnormalities.

更に、伝送手順の1サイクルとして、送信局はデータ送
信を必ず送信先月からの応答データの受信を必要とする
構造となっているので、仮に第11図に記載する伝送制
御CPU7mが一時的に機能停止してデータを失ったと
しても、再度スタートした時点で伝送手順を継続するこ
とができる。
Furthermore, as one cycle of the transmission procedure, the transmitting station is structured so that it must always receive response data from the previous month, so if the transmission control CPU 7m shown in FIG. Even if data is lost due to a stop, the transmission procedure can be continued when restarted.

[発明の効果1 以上の説明で明らかなように、本発明方式によれば、そ
れぞれのデータに対しデータシーケンス賜を付加し、送
信局及び受信局においてデニタシーケンスNo.の系列
を調べることによりデータの有効性をチエツクし、デー
タの棄却または処理実行を行なうことにより、エラーの
発生が事象の結果と逆方向において発生する場合におい
ても、伝送シーケンスの一員性を実現することができる
[Advantageous Effects of the Invention 1] As is clear from the above explanation, according to the method of the present invention, a data sequence number is added to each data, and the data sequence number is assigned at the transmitting station and the receiving station. By checking the validity of the data by examining the sequence of data, and discarding the data or executing processing, the integrity of the transmission sequence is achieved even when an error occurs in the opposite direction to the result of the event. be able to.

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

第1図は本発明における伝送データフォーマットを示す
図、第2図は従来技術における伝送データフォーマット
を示す図、第3図は本発明におけ゛る伝送タイミングチ
ャートを示す図、第4図は本発明による伝送手順を示す
ブロック図、第5図は送信局におけるデータ送信時の処
理を示すフローチャート、第6図は受信局におけるデー
タ受信時の処理を示す70−チ11−ト、第7図は送信
局におけるACK/N八〇にのへ理を示すフローチャー
ト、第8図は受信局における応答データ送信時の処理を
示すフローチャート、第9図は送信局における応答デー
タ受信時の処理を示すフローヂ11−ト、第10図は受
信局における△CK/NACK受信時の処理を示すフロ
ーチャート、第11図はこの種の方式が適用される伝送
に関する基本的な礪能構成を示すブロック図、第12図
は従来技術におtプる伝送手順を示すブロック図、第1
3図は第12図にL4づくタイミングチャート・を示乃
図、第14図は送信元層にお【プるデータ送信時の手順
を示すフローチャート、第15図は送信光層におけるデ
ータ受信時の手順を示すフローチャート、第16図は送
信元層におけるACK/NACK受信時の手順を示す一
フローチャート、第17図は診断タイマのタイムアウト
後の処理を示すフローチャート、第18図は送信局にお
ける伝送ステータスの相関図、第19図は受信局におけ
る伝送ステープラの相関図である。 11a・・・送信デークデキスト 111)・・・送信局データ送信 11c・・・送信局の△CK/NACK応答11d・・
・受信局の応答データアキスト11 f3 ・・・受信
局のACK/NACK応答11f・・・受信局の応答デ
ータ送信
Fig. 1 is a diagram showing the transmission data format in the present invention, Fig. 2 is a diagram showing the transmission data format in the prior art, Fig. 3 is a diagram showing a transmission timing chart in the present invention, and Fig. 4 is a diagram showing the transmission data format in the present invention. FIG. 5 is a block diagram showing the transmission procedure according to the invention, FIG. 5 is a flowchart showing the processing at the time of data transmission at the transmitting station, FIG. 6 is a flow chart showing the processing at the time of data reception at the receiving station, and FIG. Flowchart showing the procedure for ACK/N 80 at the transmitting station, FIG. 8 is a flowchart showing the process when transmitting response data at the receiving station, and FIG. 9 is a flowchart showing the process when receiving response data at the transmitting station. - Fig. 10 is a flowchart showing the processing when receiving △CK/NACK at the receiving station, Fig. 11 is a block diagram showing the basic functional configuration related to transmission to which this type of system is applied, Fig. 12 1 is a block diagram showing a transmission procedure based on the conventional technology.
Figure 3 shows the timing chart based on L4 in Figure 12, Figure 14 is a flowchart showing the procedure for transmitting data to the source layer, and Figure 15 shows the procedure for receiving data in the transmitting optical layer. Flowchart showing the procedure, FIG. 16 is a flowchart showing the procedure when receiving ACK/NACK in the source layer, FIG. 17 is a flowchart showing the process after the diagnostic timer times out, and FIG. Correlation Diagram FIG. 19 is a correlation diagram of the transmission stapler at the receiving station. 11a... Transmission data list 111)... Transmitting station data transmission 11c... △CK/NACK response of the transmitting station 11d...
・Receiving station response data Acquist 11 f3...Receiving station's ACK/NACK response 11f...Receiving station's response data transmission

Claims (1)

【特許請求の範囲】 複数のCPUが伝送路を介して相互に情報を交換する分
散処理システムにおいて、 送信局側では、送信データに対して各送信先局毎に固有
のデータシーケンスNo.を冗長化情報として付加し、 受信局側では、受信データのシーケンスNo.の系列を
調べることにより当該受信データの妥当性判定を行ない
、 送信局側においては、送信先局からの応答データを受信
した場合に限り、当該サイクルの伝送手順を終了してデ
ータシーケンスNo.の更新を行なうこと、 を特徴とする通信プロトコルの冗長化方式。
[Claims] In a distributed processing system in which a plurality of CPUs exchange information with each other via a transmission path, a transmitting station assigns a unique data sequence number for each destination station to transmitted data. is added as redundancy information, and on the receiving station side, the sequence number of the received data is added. The validity of the received data is determined by checking the sequence of data sequence No., and only when response data is received from the destination station, the transmitting station ends the transmission procedure of the cycle and assigns the data sequence No. A communication protocol redundancy method characterized by updating the communication protocol.
JP63270999A 1988-10-28 1988-10-28 System for making communication protocol into redundant structure Pending JPH02119336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63270999A JPH02119336A (en) 1988-10-28 1988-10-28 System for making communication protocol into redundant structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63270999A JPH02119336A (en) 1988-10-28 1988-10-28 System for making communication protocol into redundant structure

Publications (1)

Publication Number Publication Date
JPH02119336A true JPH02119336A (en) 1990-05-07

Family

ID=17493996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63270999A Pending JPH02119336A (en) 1988-10-28 1988-10-28 System for making communication protocol into redundant structure

Country Status (1)

Country Link
JP (1) JPH02119336A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005051713A (en) * 2003-07-31 2005-02-24 Mitsubishi Electric Corp Packet transmission method and communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005051713A (en) * 2003-07-31 2005-02-24 Mitsubishi Electric Corp Packet transmission method and communication device

Similar Documents

Publication Publication Date Title
EP0204449B1 (en) Method for multiprocessor communications
US7904576B2 (en) Reliable datagram via independent source destination resources
JP3709795B2 (en) Computer system and method for communication between modules in the computer system
EP0119039A2 (en) Token access controller protocol and architecture
CA2483197C (en) System, method, and product for managing data transfers in a network
WO2000072487A1 (en) Quality of service in reliable datagram
JPH02228147A (en) Data link control method
US20030182594A1 (en) Fault tolerant computer system
US6938091B2 (en) Static end to end retransmit apparatus and method
JPH01198130A (en) Method of reducing the number of check point frames
JPH02287858A (en) Restarting system for distributed processing system
JPH11502658A (en) Failure tolerance processing method
CA2464779A1 (en) Data processing apparatus and data processing method
JPS59144243A (en) Variable time division communication system station apparatus
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
US6922804B2 (en) Dynamic end to end retransmit apparatus and method
OPDERBECK et al. WE INFLUENCE OF CONTROL PROCEDURES ON THE PERFORMANCE OF PACKET-SWITCHED NETWORKS
JPH02199938A (en) Data transmission error detection system
JPH02119336A (en) System for making communication protocol into redundant structure
JP2904100B2 (en) Coordination method between multiple databases
JPH02100538A (en) Data communication method for local area network
JPH02135831A (en) Redundancy system for communication protocol
US5923831A (en) Method for coordinating membership with asymmetric safety in a distributed system
JPH10232704A (en) Duplex programmable controller