JPH087724B2 - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPH087724B2
JPH087724B2 JP5173525A JP17352593A JPH087724B2 JP H087724 B2 JPH087724 B2 JP H087724B2 JP 5173525 A JP5173525 A JP 5173525A JP 17352593 A JP17352593 A JP 17352593A JP H087724 B2 JPH087724 B2 JP H087724B2
Authority
JP
Japan
Prior art keywords
data
file
cumulative
serial number
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5173525A
Other languages
Japanese (ja)
Other versions
JPH0728722A (en
Inventor
直樹 森
文和 渡来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP5173525A priority Critical patent/JPH087724B2/en
Publication of JPH0728722A publication Critical patent/JPH0728722A/en
Publication of JPH087724B2 publication Critical patent/JPH087724B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ転送システムに関
し、特に送信装置側で発生し蓄積されている複数のデー
タを1つのファイルにまとめ通信回線を通して受信装置
側に一括転送するデータ転送システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system, and more particularly to a data transfer system which collects a plurality of data generated and accumulated in a transmitter into one file and transfers the data collectively to a receiver through a communication line.

【0002】[0002]

【従来の技術】従来のこの種のデータ転送システムは、
送信装置側でそれぞれ随時発生する複数のデータを蓄積
し所定の送信時刻になると1つのファイルに編成し通信
回線を通して受信装置側に転送しており、通信回線上の
データ伝送の誤まりを検出しその回復を図るため、送信
装置はファイルを送信するごとに受信装置からの正常受
信を示す情報を受信してファイル転送の正常終了を確認
し、ファイル転送が失敗した場合には同一内容のファイ
ルを送信し直していた。
2. Description of the Related Art A conventional data transfer system of this type is
The transmitting device accumulates multiple pieces of data that occur from time to time, and when a specified transmission time arrives, they are organized into one file and transferred to the receiving device through the communication line, and an error in data transmission on the communication line is detected. In order to recover it, the sending device receives information indicating normal reception from the receiving device every time it sends a file, and confirms the normal end of file transfer.If the file transfer fails, the file with the same contents is sent. I was sending again.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
転送システムでは、ファイル転送失敗時には送信装置が
次の送信機会に同一内容のファイルを再度転送するのみ
なので、一定の時間間隔でしか送信できない場合や送信
の機会が少ないときに新たなデータの送信が待たされて
しまい、通信効率の低下を招いていた。
In the above-mentioned conventional data transfer system, when the file transfer fails, the transmitting device only transfers the file having the same content again at the next transmission opportunity, so that the file can be transmitted only at a constant time interval. When there are few transmission opportunities, the transmission of new data is delayed, resulting in a decrease in communication efficiency.

【0004】また、受信装置側で正常にファイルを受信
したにもかかわらず通信回線上の通信手順の最終段階
(回線切断手順)で正常受信を伝える制御信号が誤った
場合、送信装置側は転送が失敗したと判断し同一ファイ
ルを再送する。このため、受信装置ですでに受信済であ
り再送する必要のないデータも再送することになり、送
信装置のデータ蓄積メモリの容量の増大を招いていた。
Further, when the receiving device side normally receives the file, but the control signal transmitting the normal reception is incorrect at the final stage of the communication procedure (line disconnection procedure) on the communication line, the transmitting device side transfers the file. It judges that has failed and resends the same file. For this reason, data that has already been received by the receiving device and does not need to be retransmitted is also retransmitted, which causes an increase in the capacity of the data storage memory of the transmitting device.

【0005】[0005]

【課題を解決するための手段】本発明は、送信装置側で
発生し蓄積されている複数のデータを1つのファイルに
まとめ通信回線を通して受信装置側に一括転送するデー
タ転送システムにおいて、入力される複数のデータを入
力順に一時蓄積するとともに、蓄積しているデータの数
量を累積データ数として計数するデータ蓄積手段と;前
記ファイルの内容を識別するためのシリアル番号を計数
するシリアル番号計数手段と;前記データ蓄積手段に蓄
積されているデータに前記累積データ数と前記シリアル
番号とを付加して前記ファイルに編成するファイル編成
手段と;前記通信回線を介して前記受信装置に接続し前
記ファイル編成手段で編成された前記ファイルを送信
し、前記受信装置からの該ファイルの正常受信を示す確
認情報を受信した場合に前記データ蓄積手段内の送信済
みのデータを消去し前記シリアル番号計数手段の計数値
を歩進させるファイル送信手段と;を前記送信装置に備
え、前記通信回線を介して前記送信装置と接続され前記
ファイルを受信し、正常に受信した場合に前記確認情報
を前記送信装置に返送するファイル受信手段と;前記フ
ァイル受信手段で受信したファイルを分解し前記シリア
ル番号,前記累積データ数および前記データをそれぞれ
求めるファイル分解手段と;前記ファイルの受信ごとに
前記シリアル番号および前記累積データ数を前回のシリ
アル番号および前回の累積データ数としてそれぞれ記憶
する記憶手段と;前記ファイル分解手段で求められた今
回のシリアル番号と前記記憶手段の前回のシリアル番号
とを比較し一致しているか否かを検出するシリアル番号
比較手段と;シリアル番号が一致する場合は前記ファイ
ル分解手段で求められた今回の累積データ数と前記記憶
手段の前回の累積データ数との差を、シリアル番号が一
致しない場合は前記今回の累積データ数を新規データ数
とする新規データ数算出手段と;前記ファイル分解手段
で求められたデータのうち最終データから前記新規デー
タ数分までのデータを有効なデータとして出力する受信
データ復元手段と;を前記受信装置に備えている。
The present invention is applied to a data transfer system for collectively collecting a plurality of data generated and accumulated on the transmitting device side into one file and transferring them collectively to a receiving device side through a communication line. A data accumulating means for temporarily accumulating a plurality of data in the order of input and for counting the quantity of accumulated data as a cumulative data number; a serial number counting means for counting a serial number for identifying the contents of the file; File organization means for adding the cumulative number of data and the serial number to the data stored in the data storage means to organize the file; and the file organization means connected to the receiving device via the communication line. If the confirmation information indicating the normal reception of the file is received from the receiving device, the file organized by A file transmitting means for erasing the transmitted data in the data accumulating means and incrementing the count value of the serial number counting means; and the file transmitting means is provided in the transmitting device, and is connected to the transmitting device via the communication line. File receiving means for receiving the file and returning the confirmation information to the transmitting device when the file is normally received; and for decomposing the file received by the file receiving means for decomposing the serial number, the accumulated data number and the data. A file decomposing means for obtaining each; a storage means for storing the serial number and the cumulative data number as a previous serial number and a previous cumulative data number each time the file is received; Detects whether the serial number and the previous serial number in the storage means match and matches If the serial numbers match, the difference between the current cumulative data number obtained by the file decomposing means and the previous cumulative data number stored in the storage means, and if the serial numbers do not match, New data number calculation means for making the cumulative data number this time the new data number; reception data restoration for outputting data from the last data to the new data number of the data obtained by the file decomposition means as valid data Means and; are provided in the receiving device.

【0006】また、上記構成において、前記送信装置
は、前記データ蓄積手段に蓄積可能な最大データ数を越
えてデータが入力されると、前記累積データ数の計数値
は歩進させながら最も古いデータを消去して新たなデー
タを蓄積し、前記ファイル編成手段による前記ファイル
編成時に前記最大データ数を付加し、前記受信装置は、
受信したファイルから前記最大データ数を求め前記新規
データ数と比較し該新規データ数が該最大データ数を越
えた場合は両者の差を欠落データ数として示すデータ欠
落通知を出力する手段を備え、前記受信データ復元手段
が前記新規データ数および前記最大データ数のいずれか
少ない数分のデータを有効なデータとして出力する構成
とすることができる。
Further, in the above structure, when the data is input in excess of the maximum number of data that can be stored in the data storage means, the transmission device increments the count value of the accumulated data by the oldest data. To store new data, add the maximum number of data when the file is organized by the file organizing means, and the receiving device
A means for outputting the data loss notification showing the maximum data number from the received file and comparing with the new data number, and when the new data number exceeds the maximum data number, indicating the difference between the two as the missing data number, The received data restoration means may be configured to output, as effective data, data corresponding to a smaller number of the new data number and the maximum data number.

【0007】[0007]

【実施例】次に、本発明を図面を用いて説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例のブロック構成図
である。複数のデータを収集しファイルとして一括送信
する送信装置10と、ファイルを受信しデータをそれぞ
れ復元する受信装置30とが、図示していない他のデー
タ送信装置・受信装置をも収容する通信網20を介して
接続されている。なお、本実施例のデータ転送システム
は、通信網に接続された複数のファクシミリ端末などの
通信装置で通信ごとに発生する一定量の通信管理データ
を遠隔の管理センタで定期的に収集し管理するシステム
に適用することができる。
FIG. 1 is a block diagram of an embodiment of the present invention. A communication network 20 in which a transmission device 10 that collects a plurality of data and collectively transmits them as a file and a reception device 30 that receives a file and restores each data also accommodates other data transmission devices / reception devices not shown. Connected through. The data transfer system according to the present embodiment periodically collects and manages a certain amount of communication management data generated for each communication in a communication device such as a plurality of facsimile terminals connected to a communication network at a remote management center. It can be applied to the system.

【0009】最初に送信装置10の詳細構成および機能
の説明をする。データ蓄積部11は、送信装置側で随時
発生する複数のデータSD1〜SDnを一時的に蓄積
し、データが1件蓄積されるごとにカウント指示Saを
出力する。また、ファイル送信制御部14からの要求に
より蓄積されているすべてのデータを蓄積された順番に
データ読み出し信号Sbとして出力し、送信完了通知S
gを受けると出力したデータをすべて廃棄する。また、
蓄積可能な最大のデータ数を示す最大データ数Shを出
力し、最大データ数Shを越えてデータが入力されると
(オーバフロー)、最も古いデータを廃棄して新しいデ
ータを蓄積する。累積データ数カウンタ12は、データ
蓄積部11からのカウント指示Saによりカウント値を
1ずつインクリメントし、ファイル送信制御部14から
の累積データ数減算指示Sfを受けるとカウント値を累
積データ数減算指示Sfで示される値分だけ減算し、現
在保持しているカウント値をデータ蓄積部11に蓄積さ
れているデータ数を示す累積データ数Seとして出力す
る。シリアル番号カウンタ13は、現在保持しているシ
リアル番号のカウント値をファイルの内容を識別するた
めのシリアル番号Scとして出力し、ファイル送信制御
部14からのシリアル番号更新指示Sdによりカウント
値を1ずつインクリメントする(ただし、カウント値が
最大の場合は“0”に戻す)。ファイル送信制御部14
は、送信装置側の図示していない主制御部からの指示に
より動作を開始し、データ蓄積部11からデータ読み出
し信号Sbにより蓄積されているデータSDi〜SDj
をすべて読みだし、これにシリアル番号Sc,累積デー
タ数Seおよび最大データ数Shを付加することにより
送信ファイルを作成し、回線インタフェース部15に対
して受信装置30へのファイル転送を指示する。図2に
ファイルの構成例を示す。回線インタフェース部15
は、回線21を通して通信網20に発呼し受信装置30
との接続要求を行い、接続後にファイルを転送し受信装
置30からのファイル正常受信を示す確認信号(AC
K)を監視しファイル転送の正常・異常を判定し転送結
果通知Sqとしてファイル送信制御部14へ出力し、そ
の後通信網20に対して受信装置30との接続解放要求
を行う。ファイル送信制御部14は、転送結果通知Sq
を参照しファイル転送が正常に終了した場合にはシリア
ル番号更新指示Sdと累積データ数減算指示Sf及び送
信完了通知Sgを出力する。この際、送信ファイルに付
加した累積データ数Seを累積データ数減算指示Sfに
セットする。ファイル転送に失敗した場合にはシリアル
番号更新指示Sd,累積データ数減算指示Sfおよび送
信完了通知Sgを出力しない。
First, the detailed structure and function of the transmitter 10 will be described. The data storage unit 11 temporarily stores a plurality of data SD1 to SDn generated on the transmission device side at any time, and outputs a count instruction Sa each time one piece of data is stored. Further, all the data stored in response to a request from the file transmission control unit 14 is output as a data read signal Sb in the order of storage, and a transmission completion notification S
When g is received, all output data is discarded. Also,
The maximum number of data Sh that indicates the maximum number of data that can be stored is output. When data exceeds the maximum number of data Sh (overflow), the oldest data is discarded and new data is stored. The cumulative data number counter 12 increments the count value by 1 in response to the count instruction Sa from the data storage unit 11, and when receiving the cumulative data number subtraction instruction Sf from the file transmission control unit 14, the count value is subtracted from the cumulative data number instruction Sf. The count value currently held is output as the cumulative data number Se indicating the number of data items stored in the data storage unit 11. The serial number counter 13 outputs the count value of the serial number currently held as the serial number Sc for identifying the contents of the file, and the count value is incremented by 1 in response to the serial number update instruction Sd from the file transmission control unit 14. Increment (however, if the count value is maximum, return to "0"). File transmission control unit 14
Starts operation in response to an instruction from a main control unit (not shown) on the transmitter side, and the data SDi to SDj stored in the data storage unit 11 by the data read signal Sb.
Is read out, and the serial number Sc, the accumulated data number Se, and the maximum data number Sh are added to this to create a transmission file, and the line interface unit 15 is instructed to transfer the file to the reception device 30. FIG. 2 shows an example of the file structure. Line interface unit 15
Makes a call to the communication network 20 through the line 21 and the receiving device 30
A connection request is made with the confirmation signal (AC
K) is monitored to determine whether the file transfer is normal or abnormal, and is output to the file transmission control unit 14 as a transfer result notification Sq, and then a connection release request with the receiving device 30 is issued to the communication network 20. The file transmission control unit 14 notifies the transfer result notification Sq.
If the file transfer is normally completed with reference to, the serial number update instruction Sd, the cumulative data number subtraction instruction Sf, and the transmission completion notification Sg are output. At this time, the cumulative data number Se added to the transmission file is set in the cumulative data number subtraction instruction Sf. When the file transfer fails, the serial number update instruction Sd, the cumulative data number subtraction instruction Sf, and the transmission completion notification Sg are not output.

【0010】次に、受信装置30の詳細構成および機能
の説明をする。回線インタフェース部31は、回線22
を通して通信網20からの着呼を受け送信装置10と接
続され、送信装置10からのファイルを正常に受信する
と確認信号(ACK)を返送するとともに受信ファイル
をファイル受信制御部32へ出力する。ファイル受信制
御部32は、受信が正常に完了した場合にのみ受信ファ
イルを分解し、シリアル番号Scを今回のシリアル番号
Rcpとし、累積データ数Seを今回の累積データ数R
epとし、最大データ数Shを最大データ数Rhとし、
データSDi〜SDjを受信データRDi〜RDjとし
てそれぞれ出力する。記憶部33は、ファイル受信制御
部32からの今回のシリアル番号Rcpおよび今回の累
積データ数Repを受け取るとこれらを記憶し、同時に
前回受け取った“今回のシリアル番号Rcp”および
“今回の累積データ数Rep”をそれぞれ“前回のシリ
アル番号Rcl”および“前回の累積データ数Rel”
として出力する。シリアル番号比較部34は、記憶部3
3からの前回のシリアル番号Rclとファイル受信制御
部32からの今回のシリアル番号Rcpとを比較し、両
者が異なっていた場合にシリアル番号更新通知Rkを
“更新あり”を示す値にして出力し、両者が同一であっ
た場合にはシリアル番号更新通知Rkを“更新なし”を
示す値にして出力する。累積データ数比較部35は、シ
リアル番号更新通知Rkが“更新なし”の場合はファイ
ル受信制御部32からの今回の累積データ数Repと記
憶部33からの前回の累積データ数Relとの差を算出
しその絶対値を、シリアル番号更新通知Rkが“更新あ
り”の場合は今回の累積データ数Repそのものを新規
データ数Rnとして出力する。最大データ数比較部36
は、ファイル受信制御部32からの最大データ数Rhと
累積データ数比較部35からの新規データ数Rnとを比
較し、新規データ数Rnが最大データ数Rhを越えてい
なければデータ欠落通知Rmを“欠落なし”を示す値に
設定し、新規データ数Rnが最大データ数Rhを越えて
いればデータ欠落通知Rmをその差とともに“欠落あ
り”を示す値に設定して出力する。受信データ復元部3
7は新規データ数Rnの信号を受取ると、受信データR
Di〜RDjの最終データから新規データ数Rn個分の
データを有効(ただし、データ欠落通知Rmが“欠落あ
り”ならばすべての受信データRDi〜RDjを有効)
として引取り、これら有効受信データをデータ欠落通知
Rmとともに受信装置側の図示していない主制御部へ出
力する。この受信装置30のデータ復元動作フローを図
3に示す。なお、データ欠落通知Rmが“欠落あり”の
場合は新規データ数Rnが最大データ数Rhを越えた場
合であり、受信データRDi〜RDjの全個数は最大デ
ータ数Rhに等しい。また、シリアル番号更新通知Rk
が“更新あり”の場合は、受信データRDi〜RDjの
全個数は新規データ数Rnと等しい。このようにして送
信装置10がファイルの作成・送信を繰返して入力デー
タSD1〜SDnをすべて転送し終えると、受信装置3
0は有効受信データRD1〜RDnとして受取ることが
でき、データの欠落があればその欠落位置および個数を
知ることができる。
Next, the detailed configuration and function of the receiving device 30 will be described. The line interface unit 31 uses the line 22.
When receiving a call from the communication network 20 through the transmission device 10, the device 10 is connected to the transmission device 10. When the file from the transmission device 10 is normally received, a confirmation signal (ACK) is returned and the received file is output to the file reception control unit 32. The file reception control unit 32 decomposes the received file only when the reception is normally completed, sets the serial number Sc as the current serial number Rcp, and sets the cumulative data number Se as the current cumulative data number R.
ep, the maximum data number Sh is the maximum data number Rh,
The data SDi to SDj are output as reception data RDi to RDj, respectively. When the storage unit 33 receives the current serial number Rcp and the current cumulative data number Rep from the file reception control unit 32, the storage unit 33 stores these and at the same time receives the “current serial number Rcp” and the “current cumulative data number” at the same time. Rep "is set to" previous serial number Rcl "and" previous accumulated data number Rel ", respectively.
Output as The serial number comparison unit 34 includes the storage unit 3
The previous serial number Rcl from 3 and the current serial number Rcp from the file reception control unit 32 are compared, and if they are different, the serial number update notification Rk is output as a value indicating "updated". If both are the same, the serial number update notification Rk is output with a value indicating "no update". When the serial number update notification Rk is “no update”, the cumulative data number comparison unit 35 determines the difference between the current cumulative data number Rep from the file reception control unit 32 and the previous cumulative data number Rel from the storage unit 33. If the serial number update notification Rk is "updated", the calculated absolute value is output as the current cumulative data number Rep itself as the new data number Rn. Maximum data number comparison unit 36
Compares the maximum data number Rh from the file reception control unit 32 with the new data number Rn from the cumulative data number comparison unit 35, and if the new data number Rn does not exceed the maximum data number Rh, issues a data loss notification Rm. When the new data number Rn exceeds the maximum data number Rh, the data loss notification Rm is set to a value indicating "missing" and output together with the difference. Received data restoration unit 3
When 7 receives the signal of the new data number Rn, the received data R
From the final data of Di to RDj, data for the new data number Rn is valid (however, if the data loss notification Rm is “missing”, all received data RDi to RDj are valid).
And outputs the valid reception data together with the data loss notification Rm to a main controller (not shown) on the receiving device side. FIG. 3 shows a data recovery operation flow of the receiving device 30. The case where the data loss notification Rm is "missing" means that the new data number Rn exceeds the maximum data number Rh, and the total number of received data RDi to RDj is equal to the maximum data number Rh. Also, serial number update notification Rk
Is "updated", the total number of received data RDi to RDj is equal to the new data number Rn. In this way, when the transmitting device 10 repeats the creation and transmission of the file to transfer all the input data SD1 to SDn, the receiving device 3
0 can be received as valid reception data RD1 to RDn, and if there is data loss, the position and number of the data loss can be known.

【0011】次に送信装置10および受信装置30間の
データ転送のシーケンスを示す図4も併せ参照して本実
施例の動作を説明する。
Next, the operation of this embodiment will be described with reference to FIG. 4 showing the sequence of data transfer between the transmitting device 10 and the receiving device 30.

【0012】初期設定時に、送信装置10のシリアル番
号カウンタ13のカウント値を“1”に、累積データ数
カウンタ12のカウント値を“0”に設定し、受信装置
30の記憶部33の前回のシリアル番号Rclの値を
“0”に、前回の累積データ数Relの値を“0”に設
定しておく。
At the time of initialization, the count value of the serial number counter 13 of the transmitter 10 is set to "1" and the count value of the cumulative data number counter 12 is set to "0", and the previous value of the storage unit 33 of the receiver 30 is set. The value of the serial number Rcl is set to "0" and the value of the previous cumulative data number Rel is set to "0".

【0013】送信装置10のデータ蓄積部11に時刻t
1〜t9ごとに所定ビット数のデータA〜Iがそれぞれ
入力される。データ蓄積部11は5つのデータを蓄積す
ることができ、オーバフロー時は最も古いデータから消
去される。また、データ蓄積部11にデータが蓄積され
るごとに累積データ数カウンタ12のカウント値が
“1”ずつ加算される。3つのデータA〜Cが入力され
た後の時刻T1において、ファイル送信制御部14は、
データ蓄積部11,シリアル番号カウンタ13および累
積データ数カウンタ12から必要な情報を読取り、デー
タA〜Cに対しシリアル番号SCを“1”,最大データ
数Shを“5”,累積データ数Seを“3”とした管理
情報部を付加したファイル410を編成する。回線イン
タフェース部15は通信網20を通して受信装置30の
回線インタフェース部31と接続され、所定のプロトコ
ルに従ってファイル410を転送する。受信側の回線イ
ンタフェース部31はファイル410を正常に受信する
と確認信号(ACK)411を送信側の回線インタフェ
ース部15へ返送する。受信装置30のファイル受信制
御部32は回線インタフェース部31を通してファイル
410を受信すると、今回のシリアル番号Rcpを
“1”,最大データ数Rhを“5”,今回の累積データ
数Repを“3”として出力する。シリアル番号比較部
34は今回のシリアル番号Rcpの“1”に対して記憶
部33内の前回のシリアル番号Rclが“0”であるこ
とからシリアル番号が更新されたことを認識しシリアル
番号更新通知Rkを“更新あり”に設定する。累積デー
タ数比較部35はシリアル番号更新通知Rkが“更新あ
り”であることを検出するとすべてのデータが新規デー
タであることを認識し新規データ数Rnを今回の累積デ
ータ数Repと同じ“3”に設定する。最大データ数比
較部36は新規データ数Rnの“3”が最大データ数R
hの“5”を越えていないことからデータ欠落がなかっ
たことを認識しデータ欠落通知Rmを“欠落なし”に設
定する。受信データ復元部37はファイル受信制御部3
2の受信データのうち最終データCから新規データ数R
nで指定される3個分のデータ、すなわちすべてのデー
タA〜Cを有効受信データとし、データ欠落通知Rmと
ともに出力する。一方、送信装置10の回線インタフェ
ース部15はACK411を受信するとファイル転送が
正常に終了したことを認識し転送結果通知Sqを“正常
終了”に設定してファイル送信制御部14に通知する。
ファイル送信制御部14はファイル転送が正常に終了し
たことを認識すると、送信完了通知Sgによりデータ蓄
積部11の蓄積データA〜Cをすべて消去させ、シリア
ル番号更新指示Sdによりシリアル番号カウンタ13の
カウント値を“1”から“2”へ進ませ、累積データ数
減算指示Sfにより累積データ数カウンタ12のカウン
ト値を“3”減算させる。したがって時刻t4にデータ
Dが入力されると、データ蓄積部11にはデータDのみ
が蓄積され累積データ数Seは“1”となる。
At the time t in the data storage unit 11 of the transmitter 10.
A predetermined number of bits of data A to I are input for each 1 to t9. The data storage unit 11 can store five pieces of data, and when overflowing, the oldest data is deleted. Also, every time data is stored in the data storage unit 11, the count value of the cumulative data number counter 12 is incremented by "1". At time T1 after the input of the three data A to C, the file transmission control unit 14
Necessary information is read from the data storage unit 11, the serial number counter 13 and the accumulated data number counter 12, and the serial number SC is set to "1", the maximum data number Sh is set to "5", and the accumulated data number Se is set to the data A to C. The file 410 to which the management information section of "3" is added is organized. The line interface unit 15 is connected to the line interface unit 31 of the receiving device 30 through the communication network 20 and transfers the file 410 according to a predetermined protocol. When the line interface unit 31 on the receiving side normally receives the file 410, the confirmation signal (ACK) 411 is returned to the line interface unit 15 on the transmitting side. When the file reception control unit 32 of the receiving device 30 receives the file 410 through the line interface unit 31, the current serial number Rcp is “1”, the maximum data number Rh is “5”, and the current cumulative data number Rep is “3”. Output as. The serial number comparison unit 34 recognizes that the serial number has been updated because the previous serial number Rcl in the storage unit 33 is “0” for “1” of the current serial number Rcp, and the serial number update notification is issued. Set Rk to "updated". When the cumulative data number comparison unit 35 detects that the serial number update notification Rk is “updated”, it recognizes that all the data are new data, and sets the new data number Rn to “3” which is the same as the current cumulative data number Rep. Set to ". The maximum data number comparison unit 36 indicates that the new data number Rn of “3” is the maximum data number Rn.
Since it does not exceed "5" of h, it recognizes that there is no data loss and sets the data loss notification Rm to "no loss". The reception data restoration unit 37 is the file reception control unit 3.
New data number R from the final data C of the received data of 2
Three pieces of data designated by n, that is, all the data A to C are set as valid reception data and output together with the data loss notification Rm. On the other hand, when the line interface unit 15 of the transmission device 10 receives the ACK 411, it recognizes that the file transfer is normally completed, sets the transfer result notification Sq to “normal end”, and notifies the file transmission control unit 14.
When the file transmission control unit 14 recognizes that the file transfer is normally completed, the transmission completion notification Sg is used to erase all the accumulated data A to C in the data accumulation unit 11, and the serial number update instruction Sd is used to count the serial number counter 13. The value is advanced from "1" to "2", and the count value of the cumulative data number counter 12 is decremented by "3" by the cumulative data number subtraction instruction Sf. Therefore, when the data D is input at time t4, only the data D is accumulated in the data accumulating unit 11 and the accumulated data number Se becomes "1".

【0014】次に時刻T2になると、送信装置10は、
シリアル番号Scが“2”,最大データ数Shが“5”
累積データ数Seが“3”の管理情報部をデータD〜F
に付加したファイル420を編成し受信装置30へ送出
する。何らかの障害によりこのファイル420に対する
ACK421が送信装置10に返送されないと、送信装
置10はファイル転送が失敗したと認識しそれに対する
何の処理も行なわずに次回の送信機会を待つ。ACK4
21が送信装置10に返送されない理由としては以下の
2通りが考えられ、それぞれ受信装置30の処理が異な
る。 (イ)受信装置30でファイル420の受信に成功した
が、ACK421の返送に失敗した場合。
Next, at time T2, the transmitter 10
Serial number Sc is "2", maximum data number Sh is "5"
Data D to F are stored in the management information section where the cumulative data number Se is "3".
The file 420 added to the above is organized and sent to the receiving device 30. If the ACK 421 for this file 420 is not returned to the transmission device 10 due to some failure, the transmission device 10 recognizes that the file transfer has failed and does not perform any processing for it and waits for the next transmission opportunity. ACK4
There are two possible reasons why 21 is not returned to the transmitting device 10, and the processing of the receiving device 30 is different. (B) When the receiving device 30 successfully receives the file 420 but fails to return the ACK 421.

【0015】この場合は、受信装置30は今回のシリア
ル番号Rcpが“2”であり前回のシリアル番号Rcl
の“1”と異なるのですべての受信データD〜Fを有効
とする。 (ロ)受信装置30でファイル420の受信に失敗し、
ACK421の返送を行わない場合。
In this case, the receiving device 30 determines that the serial number Rcp of this time is "2" and the serial number Rcl of the previous time is Rcl.
Is different from "1", all the received data D to F are valid. (B) The receiving device 30 fails to receive the file 420,
When ACK421 is not returned.

【0016】この場合は、受信装置30は何の処理も行
わず、前回の処理状態を維持する。
In this case, the receiving device 30 does not perform any processing and maintains the previous processing state.

【0017】送信装置10では、ファイル420の転送
失敗時にデータ蓄積部11の蓄積データD〜Fの消去は
行われず引続きデータG〜Iが蓄積され、次の送信機会
(時刻T3またはT4)が到来すると、シリアル番号S
cが前回と同一(“2”)のままで新たにファイルを編
成し直して受信装置30へ送信する。時刻T3にファイ
ル430を送信する場合は、データ蓄積部11にデータ
D〜Hが蓄積されており、累積データ数Seは“5”で
ありまだ最大データ数Shの“5”を越えていないので
データ欠落はない。時刻T4にファイル440を送信す
る場合は、データ蓄積部11にデータE〜Iが蓄積され
データDは消去されており、累積データ数Seは“6”
で最大データ数Shの“5”を越えているのでオーバフ
ローが発生したことを示す。
In the transmitting device 10, when the transfer of the file 420 fails, the accumulated data D to F in the data accumulating unit 11 are not erased, the data G to I are accumulated, and the next transmission opportunity (time T3 or T4) arrives. Then the serial number S
With c being the same as the previous time (“2”), a new file is reorganized and transmitted to the receiving device 30. When the file 430 is transmitted at time T3, since the data D to H are stored in the data storage unit 11 and the cumulative data number Se is “5”, which does not exceed the maximum data number Sh “5” yet. There is no data loss. When the file 440 is transmitted at time T4, the data E to I are stored in the data storage unit 11 and the data D is deleted, and the cumulative data number Se is “6”.
Indicates that an overflow has occurred because the maximum data number Sh exceeds “5”.

【0018】一方、受信装置30ではファイル430ま
たはファイル440を受信したときに、前回のファイル
420の受信に成功していたか(上記(イ)の場合)、
失敗していたか(上記(ロ)の場合)により受信データ
の有効範囲の決定処理が異なる。すなわち、今回のシリ
アル番号Rcpが“2”であるのに対して、(イ)の場
合は前回のシリアル番号Rclが“2”で同一であり、
新規データ数Rnは今回の累積データ数Repから前回
の累積データ数Relを引いた値となり、(ロ)の場合
は前回のシリアル番号Rclが“1”で異なっており、
新規データ数Rnは今回の累積データ数Repそのもの
となる。したがってファイル430に対しては、(イ)
の場合は新規データ数Rnは“2”となり受信データの
最後部の2つのデータG,Hが有効受信データとなり、
(ロ)の場合は新規データ数Rnは“5”となり受信デ
ータのすべてのデータD〜Hが有効受信データとなる。
また、ファイル440に対しては、(イ)の場合は新規
データ数Rnは“3”となり受信データの最後部の3つ
のデータG〜Iが有効受信データとなり、(ロ)の場合
は新規データ数Rnは“6”となり最大データ数Rhよ
り“1”だけ多くなるので受信データのすべてのデータ
E〜Iが有効受信データとなり、かつデータ欠落通知R
mにデータ1個(データD)が欠落したことを示す値が
設定される。
On the other hand, when the receiving device 30 receives the file 430 or the file 440, whether the previous reception of the file 420 was successful (in the case of (a) above),
The process of determining the effective range of the received data differs depending on whether or not it has failed (case (b) above). That is, the serial number Rcp of this time is "2", while the serial number Rcl of the previous time is "2" and the same in the case of (a),
The new data number Rn is a value obtained by subtracting the previous cumulative data number Rel from the current cumulative data number Rep. In the case of (b), the previous serial number Rcl is different by "1",
The new data count Rn is the current cumulative data count Rep itself. Therefore, for file 430, (a)
In the case of, the new data number Rn is “2”, and the last two data G and H of the received data are valid received data,
In the case of (b), the new data number Rn is "5", and all the data D to H of the received data are valid received data.
For the file 440, in the case of (a), the new data number Rn is “3”, and the last three data G to I of the received data are valid received data, and in the case of (b), the new data. Since the number Rn is "6", which is larger than the maximum data number Rh by "1", all the data E to I of the received data are valid received data, and the data loss notification R
A value indicating that one piece of data (data D) is missing is set in m.

【0019】以上述べたように受信装置30は、送信装
置10から重複を含んで送出されたすべてのデータを重
複することなく復元することができ、かつ送信装置10
側で送出すべきデータが消失した場合でもそのことを検
出することができる。
As described above, the receiving device 30 can restore all data transmitted from the transmitting device 10 including duplication without duplication, and the transmitting device 10
Even if the data to be transmitted is lost on the side, it can be detected.

【0020】[0020]

【発明の効果】以上述べたように本発明のデータ転送方
式は、送信装置が、発生順にデータ蓄積部に一時蓄積し
ている複数のデータをその累積データ数とシリアル番号
とを付加して1つのファイルにまとめ通信回線を介して
受信装置へ送信し、受信装置からの確認情報を受信した
場合にのみデータ蓄積部の消去とシリアル番号の歩進を
行い、受信装置が、前回受信したファイルのシリアル番
号および累積データ数を記憶しておき今回受信したファ
イルのシリアル番号および累積データ数とそれぞれ比較
し前回受信完了したデータ以降の新規データ数を算出し
今回の受信データのうち有効なデータを決定するので、
送信装置から受信装置へのファイル転送に失敗して再度
転送を行う際に、転送に失敗したファイルの内容にその
時点までに新たに発生しているデータを加えて送ること
ができ、一定の時間間隔でしか送れない場合や送信の機
会が少ないときに、次の機会にすべてのデータを転送す
ることが可能となり、通信効率を改善し通信回線上の他
の通信に与える影響を少なくすることができる。
As described above, according to the data transfer method of the present invention, the transmitting device adds a plurality of data temporarily stored in the data storage unit in the order of occurrence to the cumulative data number and the serial number. Collected in one file and sent to the receiving device via the communication line, the data storage unit is erased and the serial number is incremented only when the confirmation information from the receiving device is received. The serial number and cumulative data number are stored and compared with the serial number and cumulative data number of the file received this time, and the new data number after the last received data is calculated to determine the valid data of this received data. Because
When the file transfer from the sending device to the receiving device fails and the transfer is performed again, it is possible to add the newly generated data up to that point to the contents of the file that failed to transfer, and send it for a certain period of time. When data can be sent only at intervals or when there are few opportunities for transmission, all data can be transferred at the next opportunity, improving communication efficiency and reducing the effect on other communications on the communication line. it can.

【0021】また、送信装置がデータ蓄積手段の蓄積可
能な最大データ数をファイルに付加し、受信装置が最大
データ数を越えた新規データ数の差分を欠落データ数と
して検出することにより、万一送信装置側でデータ蓄積
手段がオーバフローしてデータが消えてしまっても受信
装置側で消えたデータの位置および個数を検出すること
ができ、特に前回のファイルを受信装置側で正常に受信
したにもかかわらず送信装置側で確認できずに再送する
場合でオーバフローしたデータが転送済みのデータの場
合は有効受信データに欠落を生じることはないので、デ
ータ転送および障害検出能力の信頼性を損なわずにデー
タ蓄積手段を構成するメモリの容量を低下させることが
できる。
In addition, in the unlikely event that the transmitter adds the maximum number of data that can be stored in the data storage means to the file and the receiver detects the difference in the number of new data exceeding the maximum number of data as the number of missing data. Even if the data storage means overflows on the transmitter side and the data disappears, the position and number of the disappeared data can be detected on the receiver side, especially when the previous file was normally received on the receiver side. Despite this, when the data cannot be confirmed by the transmitter and is retransmitted and the overflowed data is already transferred, no loss will occur in the effective received data, so the reliability of data transfer and failure detection capability will not be impaired. Moreover, it is possible to reduce the capacity of the memory that constitutes the data storage means.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】本発明で用いられるファイルの構成例を示す図
である。
FIG. 2 is a diagram showing a configuration example of a file used in the present invention.

【図3】図1の実施例の受信装置のデータ復元動作フロ
ーを示す図である。
FIG. 3 is a diagram showing a data restoration operation flow of the receiving apparatus of the embodiment of FIG.

【図4】図1の実施例のデータ転送のシーケンスを示す
図である。
4 is a diagram showing a sequence of data transfer in the embodiment of FIG.

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

10 送信装置 11 データ蓄積部 12 累積データ数カウンタ 13 シリアル番号カウンタ 14 ファイル送信制御部 15 回線インタフェース部 20 通信網 30 受信装置 31 回線インタフェース部 32 ファイル受信制御部 33 記憶部 34 シリアル番号比較部 35 累積データ数比較部 36 最大データ数比較部 37 受信データ復元部 10 Transmitting Device 11 Data Storage Unit 12 Cumulative Data Number Counter 13 Serial Number Counter 14 File Transmission Control Unit 15 Line Interface Unit 20 Communication Network 30 Receiving Device 31 Line Interface Unit 32 File Reception Control Unit 33 Storage Unit 34 Serial Number Comparison Unit 35 Cumulative Data count comparison unit 36 Maximum data count comparison unit 37 Received data restoration unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 送信装置側で発生し蓄積されている複数
のデータを1つのファイルにまとめ通信回線を通して受
信装置側に一括転送するデータ転送システムにおいて、 前記送信装置に、 入力される複数のデータを入力順に一時蓄積するととも
に、蓄積しているデータの数量を累積データ数として計
数するデータ蓄積手段と、 前記ファイルの内容を識別するためのシリアル番号を計
数するシリアル番号計数手段と、 前記データ蓄積手段に蓄積されているデータに前記累積
データ数と前記シリアル番号とを付加して前記ファイル
に編成するファイル編成手段と、 前記通信回線を介して前記受信装置に接続し前記ファイ
ル編成手段で編成された前記ファイルを送信し、前記受
信装置からの該ファイルの正常受信を示す確認情報を受
信した場合に前記データ蓄積手段内の送信済みのデータ
を消去し前記シリアル番号計数手段の計数値を歩進させ
るファイル送信手段と、 を備え、 前記受信装置に、 前記通信回線を介して前記送信装置と接続され前記ファ
イルを受信し、正常に受信した場合に前記確認情報を前
記送信装置に返送するファイル受信手段と、 前記ファイル受信手段で受信したファイルを分解し前記
シリアル番号,前記累積データ数および前記データをそ
れぞれ求めるファイル分解手段と、 前記ファイルの受信ごとに前記シリアル番号および前記
累積データ数を前回のシリアル番号および前回の累積デ
ータ数としてそれぞれ記憶する記憶手段と、 前記ファイル分解手段で求められた今回のシリアル番号
と前記記憶手段の前回のシリアル番号とを比較し一致し
ているか否かを検出するシリアル番号比較手段と、 シリアル番号が一致する場合は前記ファイル分解手段で
求められた今回の累積データ数と前記記憶手段の前回の
累積データ数との差を、シリアル番号が一致しない場合
は前記今回の累積データ数を新規データ数とする新規デ
ータ数算出手段と、 前記ファイル分解手段で求められたデータのうち最終デ
ータから前記新規データ数分までのデータを有効なデー
タとして出力する受信データ復元手段と、 を備えることを特徴とするデータ転送システム。
1. A data transfer system in which a plurality of data generated and accumulated at a transmitting device side are collected into one file and are collectively transferred to a receiving device side through a communication line, wherein a plurality of data input to the transmitting device. Data is temporarily stored in the order of input, and a data storage unit that counts the number of stored data as a cumulative number of data; a serial number counting unit that counts a serial number for identifying the contents of the file; File organization means for adding the cumulative number of data and the serial number to the data accumulated in the means to organize the file, and a file organization means connected to the receiving device via the communication line and organized by the file organization means. If the confirmation information indicating the normal reception of the file from the receiving device is received, File transmitting means for erasing transmitted data in the data accumulating means and incrementing the count value of the serial number counting means, wherein the receiving device is connected to the transmitting device via the communication line, and A file receiving unit that receives a file and returns the confirmation information to the transmitting device when the file is normally received, and a file received by the file receiving unit is decomposed into the serial number, the cumulative number of data, and the data, respectively. A file disassembling means to be obtained, a storage means for storing the serial number and the cumulative data number as the previous serial number and the previous cumulative data number each time the file is received, and the current serial number obtained by the file decomposing means. The number and the previous serial number in the storage means are compared to detect if they match. If the serial numbers match, the difference between the current cumulative data number obtained by the file disassembling means and the previous cumulative data number in the storage means is calculated if the serial numbers match. A new data number calculation means for setting the cumulative data number this time as the new data number, and a received data restoration for outputting the data from the final data to the new data number of the data obtained by the file decomposition means as valid data. A data transfer system comprising:
【請求項2】 前記送信装置は、前記データ蓄積手段に
蓄積可能な最大データ数を越えてデータが入力される
と、前記累積データ数の計数値は歩進させながら最も古
いデータを消去して新たなデータを蓄積し、前記ファイ
ル編成手段による前記ファイル編成時に前記最大データ
数を付加し、 前記受信装置は、受信したファイルから前記最大データ
数を求め前記新規データ数と比較し該新規データ数が該
最大データ数を越えた場合は両者の差を欠落データ数と
して示すデータ欠落通知を出力する手段を備え、前記受
信データ復元手段が前記新規データ数および前記最大デ
ータ数のいずれか少ない数分のデータを有効なデータと
して出力することを特徴とする請求項1記載のデータ転
送方式。
2. The transmitting device, when data exceeds the maximum number of data that can be stored in the data storing means, erases the oldest data while incrementing the count value of the cumulative data. New data is accumulated, the maximum data number is added when the file is organized by the file organization means, and the receiving device obtains the maximum data number from the received file and compares it with the new data number. Is greater than the maximum number of data, the means for outputting a data loss notification indicating the difference between the two as the number of missing data, the received data restoration means is the number of new data and the maximum number of data, whichever is smaller. 2. The data transfer method according to claim 1, wherein the data is output as valid data.
JP5173525A 1993-07-14 1993-07-14 Data transfer system Expired - Fee Related JPH087724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5173525A JPH087724B2 (en) 1993-07-14 1993-07-14 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5173525A JPH087724B2 (en) 1993-07-14 1993-07-14 Data transfer system

Publications (2)

Publication Number Publication Date
JPH0728722A JPH0728722A (en) 1995-01-31
JPH087724B2 true JPH087724B2 (en) 1996-01-29

Family

ID=15962144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5173525A Expired - Fee Related JPH087724B2 (en) 1993-07-14 1993-07-14 Data transfer system

Country Status (1)

Country Link
JP (1) JPH087724B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3296767B2 (en) 1997-11-13 2002-07-02 株式会社ジャストシステム Online merchandise management system, server system, terminal device, management method in online merchandise management system, and computer-readable recording medium storing program for causing a computer to execute the method

Also Published As

Publication number Publication date
JPH0728722A (en) 1995-01-31

Similar Documents

Publication Publication Date Title
US5596720A (en) Redundant message processing system featuring reception server controlling communication between client and server process, and stand-by server retransmitting message with information indicating the message being a retransmitted message
US4943963A (en) Data collection and transmission system with real time clock
EP0303830B1 (en) Multicast data distribution system
US5222061A (en) Data services retransmission procedure
AU746291B2 (en) System and method for transmitting and receiving data
JP3709289B2 (en) Data transmission / reception device and parallel processor system for performing data retransmission
JPH08213965A (en) Method and apparatus for relieving wireless line in SDH network
JPH07183905A (en) Remote monitor system
JPH087724B2 (en) Data transfer system
JPH05298215A (en) Omitted data detecting/retransmitting method
JPH07221789A (en) Continuous data transmission method and continuous data transmission system
JPH1127342A (en) Network information matching method and matching system
US20050083837A1 (en) Transmission system
CN117176808A (en) SCADA system data supplementary transmission method and SCADA system
JPH05204811A (en) Control information communication system
JPH10308932A (en) Data transmission method and data transmission device
KR100904085B1 (en) How to send sequence data
JP3114660B2 (en) Data transmission confirmation system
JPH0736811A (en) Information distribution method and information distribution system
JPH1051451A (en) Network management system and management method
JPH11234347A (en) Buffer management method and system in data communication
JPH09186780A (en) Network failure detection apparatus and method
AU762209B2 (en) System and method for transmitting and receiving data
JPH0620205B2 (en) Failure handling method for data communication
JP2003169041A (en) Asynchronous message communication method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19960716

LAPS Cancellation because of no payment of annual fees