JP2001051803A - Block data transfer mechanism - Google Patents

Block data transfer mechanism

Info

Publication number
JP2001051803A
JP2001051803A JP11230225A JP23022599A JP2001051803A JP 2001051803 A JP2001051803 A JP 2001051803A JP 11230225 A JP11230225 A JP 11230225A JP 23022599 A JP23022599 A JP 23022599A JP 2001051803 A JP2001051803 A JP 2001051803A
Authority
JP
Japan
Prior art keywords
data
transfer
block
block data
time
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
JP11230225A
Other languages
Japanese (ja)
Inventor
Takafumi Abe
孝文 安部
Shinji Aoki
信二 青木
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP11230225A priority Critical patent/JP2001051803A/en
Publication of JP2001051803A publication Critical patent/JP2001051803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a block data transfer mechanism which increases in transfer quantity per unit time and can shorten the transfer time when block data of small size and block data of unfixed size are transferred. SOLUTION: A transfer source recording device 10 is provided with a block composing means (CPU 11, local memory 12, and buffer memory 13 of transfer source recording device) which form composite variable-length block data by putting block data together and a variable-length block data transfer means which transfers the composite variable-length block data formed by the block composing means and a transfer destination recording device 20 is provided with a block restoring means (CPU 21, local memory 22, and buffer memory 23 of transfer destination recording device) which separates and puts the composite variable-length block data back into the original block data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ブロックデータ転
送機構に係り、特にブロックデータサイズが比較的小さ
いブロックデータを効率的に転送できるブロックデータ
転送機構に関するものである。
The present invention relates to a block data transfer mechanism, and more particularly to a block data transfer mechanism capable of efficiently transferring block data having a relatively small block data size.

【0002】[0002]

【従来の技術】従来のデータコピー機構では、記録媒体
に書かれたデータを別の記録媒体へコピーする場合、コ
ピー元およびコピー先の記録媒体に対してブロック毎に
データコピーを実施するように指示する。図7に、転送
元の記録媒体がハードディスク装置2で、転送先の記録
媒体がテープストリーマ装置3である場合のデータコピ
ーの例を示す。
2. Description of the Related Art In a conventional data copy mechanism, when data written on a recording medium is copied to another recording medium, data is copied block by block to a recording medium of a copy source and a copy destination. To instruct. FIG. 7 shows an example of data copying when the recording medium of the transfer source is the hard disk device 2 and the recording medium of the transfer destination is the tape streamer device 3.

【0003】図7の例の場合、ホストコンピュータ1が
ハードディスク装置2に対してデータをテープストリー
マ装置3にコピーするように命令を送り、ハードディス
ク装置2がデータをテープストリーマ装置3に送ってデ
ータコピーを実行する。このようにコピー命令を受けた
コピー元の機器は、媒体上に書かれているデータのブロ
ックの大きさを調べ、同じサイズにデータブロックとし
てデータを他の装置に転送する必要がある。
In the case of FIG. 7, the host computer 1 sends a command to the hard disk device 2 to copy data to the tape streamer device 3, and the hard disk device 2 sends data to the tape streamer device 3 to copy the data. Execute In this way, the copy source device that has received the copy instruction needs to check the size of the data block written on the medium and transfer the data to another device as a data block of the same size.

【0004】例として図8に、ブロックデータのコピー
の様子を示す。コピー命令を受けたコピー元の機器であ
るハードディスク装置2は、媒体上の記録ブロックデー
タを各ブロック毎に他の記録装置であるテープストリー
マ装置3に転送してコピーを実行する。
As an example, FIG. 8 shows how block data is copied. The hard disk device 2 that is the copy source device that has received the copy command transfers the recording block data on the medium to the tape streamer device 3 that is another recording device for each block and executes copying.

【0005】図9に、コピー元の機器がコピー命令を受
けてコピーを実行する場合のコピーシーケンスのフロー
チャートを示す。このフローチャートでは、ステップ4
00で転送元記録装置がコピー実行シーケンスに入り、
ステップ401でホストコンピュータよりコピー命令を
受信すると、ステップ402で媒体内にデータが残って
いるかどうかを確かめ、データが残っている場合には、
ステップ403で媒体から1ブロックのデータブロック
を読み込む。次に、ステップ404で読み込んだデータ
ブロックのブロックサイズを調べ、ステップ405で調
べたブロックサイズとともにデータを転送先に送出す
る。ステップ402で媒体内にデータが残っていなかっ
た場合には、ステップ406でコピー実行シーケンスを
終了する。
FIG. 9 shows a flowchart of a copy sequence when a copy source device executes a copy in response to a copy command. In this flowchart, step 4
At 00, the source recording device enters the copy execution sequence,
When a copy command is received from the host computer in step 401, it is checked in step 402 whether or not data remains in the medium.
In step 403, one data block is read from the medium. Next, the block size of the data block read in step 404 is checked, and data is sent to the transfer destination together with the block size checked in step 405. If no data remains in the medium in step 402, the copy execution sequence ends in step 406.

【0006】ブロックデータのコピーでは、各ブロック
毎にデータサイズとデータを転送元から転送先に送るよ
うにしているが、転送元と転送先の媒体装置間ではさら
に、ブロックデータ以外のデータ(例えば転送元装置か
ら転送先装置へのコマンドや通信手段に必要な手順など
の情報)もブロックデータとは別にやり取りする必要が
ある。この場合、各ブロックのデータサイズが大きけれ
ば、コマンドなどの転送時間は、時間あたりのデータ転
送量に比べて比較的小さなものになるが、ブロックのデ
ータサイズが小さい場合にはコマンドのやり取りが比較
的多くなり、コマンドなどの転送時間量は、時間あたり
のデータ転送量に比べて大きく、結果的に時間あたりの
データ転送量が低下することになる。
In copying block data, the data size and data are sent from the transfer source to the transfer destination for each block. However, data other than the block data (for example, It is also necessary to exchange commands from the transfer source device to the transfer destination device and information such as procedures necessary for communication means) separately from the block data. In this case, if the data size of each block is large, the transfer time of commands etc. is relatively small compared to the data transfer amount per time, but if the data size of the block is small, the exchange of commands will be compared. As a result, the amount of transfer time for commands and the like is larger than the amount of data transfer per time, and as a result, the amount of data transfer per time is reduced.

【0007】ここで示すコマンドなどの転送時間には、
情報伝達経路を確保するための時間、コマンドをやり取
りするための手順時間、コマンドデータそのものをやり
取りする時間およびデータ転送終了確認手順時間等が含
まれる。例えば、コマンドなどの転送時間をn秒、小さ
いサイズのブロックサイズをMバイト、その転送時間を
m秒、大きいサイズのブロックサイズを(1000×
M)バイトとすると、総データ量(10000×M)バ
イトのデータを、小さいブロックサイズで転送する転送
時間Tsと、大きいブロックサイズで転送する転送時間
Tmとは以下の式(1)および式(2)で表される。
[0007] The transfer time of the command and the like shown here is
It includes a time for securing an information transmission path, a procedure time for exchanging commands, a time for exchanging command data itself, and a procedure time for confirming completion of data transfer. For example, the transfer time of a command or the like is n seconds, the small block size is M bytes, the transfer time is m seconds, and the large block size is (1000 ×
M) bytes, the transfer time Ts for transferring data of the total data amount (10000 × M) bytes in a small block size and the transfer time Tm for transferring in a large block size are represented by the following equations (1) and ( It is represented by 2).

【0008】[0008]

【数1】 Ts=(n+m)×(10000M÷M) =10000n+10000m (1)Ts = (n + m) × (10000M ÷ M) = 10000n + 10000m (1)

【0009】[0009]

【数2】 Tm=(n+1000m)×(10000M÷1000M) =10n+10000m (2)Tm = (n + 1000m) × (10000M ÷ 1000M) = 10n + 10000m (2)

【0010】これにより、コマンドなどの転送時間が大
きいブロックサイズで転送する場合は10n秒、小さい
ブロックサイズで転送する場合は10000n秒とな
り、小さいブロックサイズで転送する場合は大きいブロ
ックサイズで転送する場合よりも10000n−10n
=9990n(秒)多くかかることになる。
[0010] Accordingly, when the transfer time of a command or the like is transferred in a large block size, the transfer time is 10 ns, in the case of transfer in a small block size is 10000 ns, and in the case of transfer in a small block size, the transfer time is large. 10,000n-10n than
= 9990 n (seconds).

【0011】他の例として、ブロックサイズの小さなデ
ータと、ブロックサイズの大きなデータとを転送する場
合の単位時間あたりの総転送量を計算して示す。図10
にこの場合のデータ転送形式の概念図を示す。ここで、
コマンド転送時間、小さいブロックデータサイズ、大き
いブロックデータサイズ、データ転送周波数を以下のよ
うに定めた場合の1秒間あたりの小さいブロックデータ
の場合の転送時間Ts、1秒間に転送されるブロック数
Nsおよびサイズデータ転送量Ss、大きいブロックデ
ータの場合の転送時間Tm、1秒間に転送されるブロッ
ク数Nmおよびサイズデータ転送量Smを示す。
As another example, a total transfer amount per unit time when data of a small block size and data of a large block size are transferred is calculated and shown. FIG.
FIG. 1 shows a conceptual diagram of the data transfer format in this case. here,
When the command transfer time, the small block data size, the large block data size, and the data transfer frequency are determined as follows, the transfer time Ts for small block data per second, the number Ns of blocks transferred per second, The size data transfer amount Ss, the transfer time Tm for large block data, the number Nm of blocks transferred per second, and the size data transfer amount Sm are shown.

【0012】 小さいブロックデータサイズ:512バイト 大きいブロックデータサイズ:262144バイト コマンド転送時間:100マイクロ秒 データ転送周波数:10MzSmall block data size: 512 bytes Large block data size: 262144 bytes Command transfer time: 100 microseconds Data transfer frequency: 10 Mz

【0013】[0013]

【数3】 Ts=512÷10000000 =0.0000512(秒) (3)## EQU00003 ## Ts = 512/1000000 = 0.0051212 (seconds) (3)

【0014】[0014]

【数4】 Tm=262144÷10000000 =0.0262144(秒) (4)Tm = 262144 ÷ 10000000 = 0.0262144 (seconds) (4)

【0015】[0015]

【数5】 Ns=1(秒)÷(0.0001+0.0000512)(秒) =6613(ブロック) (5)Ns = 1 (second) ÷ (0.0001 + 0.0000512) (second) = 6613 (block) (5)

【0016】[0016]

【数6】 Nm=1(秒)÷(0.0001+0.0262144)(秒) =38(ブロック) (6)Nm = 1 (second) ÷ (0.0001 + 0.0262144) (second) = 38 (block) (6)

【0017】[0017]

【数7】 Ss=6613×512 =3385856(バイト) (7)Ss = 6613 × 512 = 3385856 (bytes) (7)

【0018】[0018]

【数8】 Sm=38×262144 =9961472(バイト) (8)Sm = 38 × 262144 = 9961472 (bytes) (8)

【0019】このように、小さいサイズのブロックデー
タや、サイズが固定されていないブロックデータをコピ
ーする場合、ブロックデータ以外のコマンドなどの転送
に時間が費やされるため、時間当たりの総転送データ量
が、サイズの大きいブロックデータをコピーする場合の
総転送データ量に比べて少なくなってしまう。
As described above, when copying block data having a small size or block data having a fixed size, it takes time to transfer commands other than the block data, so that the total transfer data amount per time is reduced. However, the amount of data to be transferred is smaller than the total transfer data amount when copying large block data.

【0020】[0020]

【発明が解決しようとする課題】上述のごとく、従来の
ブロックデータ転送機構では、小さいサイズのブロック
データやサイズが固定されていないブロックデータの転
送を行う場合、ブロックデータ以外のコマンドなどの転
送に時間が費やされるため、時間当たりの総転送データ
量がサイズの大きいブロックデータを転送する場合に比
べて少なくなってしまうという問題があった。本発明
は、比較的簡単な方法でこの問題を解決して、小さいサ
イズのブロックデータやサイズが固定されていないブロ
ックデータの転送を行う際に単位時間当たりの転送量が
増え、転送時間の短縮が可能なブロックデータ転送機構
の実現を課題とする。
As described above, in the conventional block data transfer mechanism, when transferring small block data or block data having an unfixed size, it is necessary to transfer commands other than block data. Since time is consumed, there is a problem in that the total amount of transfer data per unit time is reduced as compared with the case of transferring large block data. The present invention solves this problem in a relatively simple manner, and when transferring small-sized block data or block data having an unfixed size, the transfer amount per unit time increases, and the transfer time is reduced. It is an object of the present invention to realize a block data transfer mechanism capable of performing the above.

【0021】[0021]

【課題を解決するための手段】上記課題を達成するた
め、本発明は、転送元にブロックデータとして記憶され
ているデータを対応するコマンドと共に転送先に転送す
るブロックデータ転送機構において、前記転送元に設け
られ複数の前記ブロックデータを集めて複合可変長ブロ
ックデータを形成するブロック複合手段と、前記転送元
に設けられ前記ブロック複合手段で形成された前記複合
可変長ブロックデータを転送する可変長ブロックデータ
転送手段と、前記転送先に設けられ前記複合可変長ブロ
ックデータを分離して元の前記ブロックデータに戻すブ
ロック復原手段とを具備することを特徴とする。
According to the present invention, there is provided a block data transfer mechanism for transferring data stored as block data at a transfer source to a transfer destination together with a corresponding command. And a variable-length block provided at the transfer source and configured to transfer the composite variable-length block data formed by the block composite means. It is characterized by comprising a data transfer means and a block restoration means provided at the transfer destination for separating the composite variable-length block data and returning to the original block data.

【0022】これにより、転送に際してデータブロック
の大きさを大きくして、データサイズに対するコマンド
サイズの割合を小さくし、単位時間当たりの転送量を増
大することができる。
Thus, the size of the data block can be increased at the time of transfer, the ratio of the command size to the data size can be reduced, and the transfer amount per unit time can be increased.

【0023】[0023]

【発明の実施の形態】以下、本発明にかかるブロックデ
ータ転送機構を添付図面を参照にして詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a block data transfer mechanism according to the present invention will be described in detail with reference to the accompanying drawings.

【0024】本発明では、ブロックデータを転送元記録
装置から転送先記録装置に転送してコピーを行う場合、
まず、転送元および転送先の記録装置を共に、可変ブロ
ックサイズデータを高速に読み書きする転送モードに設
定する。可変ブロックサイズのデータを高速に読み書き
する転送モードについては、ここではとくに触れないが
従来からある幾つかの方法の内の1つを用いるものとす
る。
According to the present invention, when the block data is transferred from the source recording apparatus to the destination recording apparatus and copied,
First, both the transfer source and transfer destination recording devices are set to a transfer mode for reading and writing variable block size data at high speed. A transfer mode for reading / writing data of a variable block size at a high speed is not particularly mentioned here, but one of several conventional methods is used.

【0025】モード設定は、例えば、ホストコンピュー
タがコピーを実行させる際には、図1に示すようなコピ
ー実行シーケンスを実行させる。このコピー実行シーケ
ンスでは、ステップ100でコピー実行シーケンスに入
ると、ステップ101で転送先記録装置に、ステップ1
02で転送元記録装置に、可変ブロックサイズを高速に
読み書きする転送モードを設定する。設定後、ホストコ
ンピュータはステップ103で転送元または転送先の記
録装置に対してコピーコマンドを送って命令する。ステ
ップ104でのコピー終了で、シーケンスは終了する。
In the mode setting, for example, when the host computer executes a copy, a copy execution sequence as shown in FIG. 1 is executed. In this copy execution sequence, when the copy execution sequence starts in step 100, the transfer destination recording apparatus in step 101
In 02, a transfer mode for reading and writing a variable block size at high speed is set in the transfer source recording apparatus. After the setting, the host computer sends a copy command to the transfer source or transfer destination recording device in step 103 to instruct it. When the copying is completed in step 104, the sequence ends.

【0026】コピーコマンドを受けた装置が、転送元記
録装置の場合の転送元記録装置が行うコピー実行シーケ
ンスを図2に示す。ステップ200で転送元記録装置が
コピー実行シーケンスに入り、ステップ201でホスト
コンピュータよりコピー命令を受信すると、ステップ2
02で媒体内にデータが残っているかどうかを確かめ、
データが残っている場合には、ステップ203で媒体か
ら2個以上のデータブロックを読み込む。
FIG. 2 shows a copy execution sequence performed by the transfer source recording device when the device that has received the copy command is the transfer source recording device. In step 200, the transfer source recording apparatus enters a copy execution sequence. In step 201, when a copy command is received from the host computer, step 2 is executed.
02 to check whether data remains in the medium,
If data remains, at step 203 two or more data blocks are read from the medium.

【0027】次に、ステップ204で読み込んだ2個以
上のデータブロックを1つにまとめる。このとき、各ブ
ロックのステータス、シーケンシャル番号、バイト数な
どを制御データとして各ブロックに付加してデータブロ
ックをまとめる。そうしてステップ205でまとめたデ
ータを転送先に送出する。ステップ202で媒体内にデ
ータが残っていなかった場合には、ステップ206でホ
ストコンピュータと転送先にコピー終了を知らせ、ステ
ップ207でコピー実行シーケンスを終了する。
Next, two or more data blocks read in step 204 are combined into one. At this time, the status, the sequential number, the number of bytes, and the like of each block are added as control data to each block to collect the data blocks. Then, the data compiled in step 205 is sent to the transfer destination. If no data remains in the medium in step 202, the host computer and the transfer destination are notified of the end of the copy in step 206, and the copy execution sequence ends in step 207.

【0028】このように、転送元記録装置がコピーコマ
ンドを受信すると、媒体上の複数のデータブロックを1
つのデータにまとめ、1つの書き込みコマンドで転送先
に送る。例えば、転送元記録装置の記録媒体がテープス
トリーマ装置であれば、テープ上の複数のブロックを1
つのブロックにまとめ、転送先にこのまとめたブロック
をWRITEコマンドで転送する。
As described above, when the transfer source recording apparatus receives the copy command, a plurality of data blocks on the medium are
The data is combined into one data and sent to the transfer destination by one write command. For example, if the recording medium of the transfer source recording device is a tape streamer device, a plurality of blocks on the tape are
These blocks are combined into one block, and the combined blocks are transferred to the transfer destination by a WRITE command.

【0029】コピーコマンドを受けた装置が、転送先記
録装置の場合の転送先記録装置が行うコピー実行シーケ
ンスを図3に示す。ステップ300で転送先記録装置が
コピー実行シーケンスに入り、ステップ301でホスト
コンピュータよりコピー命令を受信すると、ステップ3
02で転送元記録装置に読み込みコマンドを送り、転送
元で2個以上のデータブロックをまとめたデータを受信
入力する。このとき、送られた信号にデータが残ってい
るかどうかをステップ303で確かめ、データが残って
いる場合には、ステップ304でまとめられている2個
以上のデータブロックを元のデータブロックに戻す。そ
うしてステップ305で戻されたデータブロックを記録
媒体に書き込む。ステップ303で受信した信号にデー
タが残っていなかった場合には、ステップ306でホス
トコンピュータにコピー終了を知らせ、ステップ307
でコピー実行シーケンスを終了する。
FIG. 3 shows a copy execution sequence performed by the transfer destination recording apparatus when the apparatus that has received the copy command is the transfer destination recording apparatus. In step 300, the transfer destination recording apparatus enters a copy execution sequence. In step 301, when a copy command is received from the host computer, step 3
In step 02, a read command is sent to the transfer source recording device, and data in which two or more data blocks are collected at the transfer source is received and input. At this time, it is checked in step 303 whether or not data remains in the transmitted signal. If data remains, two or more data blocks combined in step 304 are returned to the original data blocks. Then, the data block returned in step 305 is written to the recording medium. If no data remains in the received signal in step 303, the end of the copy is notified to the host computer in step 306, and step 307 is executed.
Ends the copy execution sequence.

【0030】このように、コピーコマンドを受信した装
置が転送先記録装置の場合は、転送元に対して読み込み
コマンドを送り、これに応じた転送元から送られる複数
のデータブロックをまとめたデータを受けとり、送られ
たデータを元の複数のデータブロックに分解して戻し、
記録媒体に書き込む。例えば、転送先記録装置の記録媒
体がハードディスク装置であれば、転送元の記録装置に
対してREADコマンドを送り、転送元でまとめられた
ブロックデータを受けとって、これを元の複数ブロック
データに分解してハードディスクに書き込む。
As described above, when the apparatus that has received the copy command is the transfer destination recording apparatus, the read command is sent to the transfer source, and the data obtained by combining a plurality of data blocks sent from the transfer source according to the read command is transmitted. Receives and sends the data back into its original data blocks,
Write to the recording medium. For example, if the recording medium of the destination recording device is a hard disk device, a READ command is sent to the source recording device to receive the block data compiled by the source and decompose it into the original multiple block data. And write it to the hard disk.

【0031】図4は、本発明にかかるブロックデータコ
ピー機構のハードウェア構成の一実施の形態を示すブロ
ック図である。図4で、符号10は転送元記録装置、符
号11は転送元記録装置のCPU、符号12は転送元記
録装置のローカルメモリ、符号13は転送元記録装置の
バッファメモリ、符号14は転送元記録装置のオリジナ
ルデータの記録されている記録媒体、符号20は転送先
記録装置、符号21は転送先記録装置のCPU、符号2
2は転送先記録装置のローカルメモリ、符号23は転送
先記録装置のバッファメモリ、符号24は転送先記録装
置のコピーデータが記録される記録媒体、符号30は情
報伝達経路である。
FIG. 4 is a block diagram showing one embodiment of the hardware configuration of the block data copy mechanism according to the present invention. In FIG. 4, reference numeral 10 denotes a source recording device, reference numeral 11 denotes a CPU of the source recording device, reference numeral 12 denotes a local memory of the source recording device, reference numeral 13 denotes a buffer memory of the source recording device, and reference numeral 14 denotes source recording. A recording medium on which the original data of the device is recorded, reference numeral 20 denotes a destination recording device, reference numeral 21 denotes a CPU of the destination recording device, and reference numeral 2
Reference numeral 2 denotes a local memory of the destination recording device, reference numeral 23 denotes a buffer memory of the destination recording device, reference numeral 24 denotes a recording medium on which copy data of the destination recording device is recorded, and reference numeral 30 denotes an information transmission path.

【0032】転送元記録装置10は、記録媒体14に記
録されているオリジナルデータから2個以上のブロック
データをバッファメモリ13に読み込み、読み込んだデ
ータをまとめて、書き込み/読み込みコマンドを使用し
て情報伝達経路30を経由して転送先記録装置20に送
信する。
The transfer source recording device 10 reads two or more block data from the original data recorded on the recording medium 14 into the buffer memory 13, collects the read data, and uses the write / read command to write The data is transmitted to the transfer destination recording device 20 via the transmission path 30.

【0033】このとき、転送元の記録装置10から転送
されるデータブロックの構成を図5に示す。図5に示す
オリジナルデータの間を埋める制御データには、各ブロ
ックのステータス、シーケンシャル番号、バイト数など
が付加されている。コピー命令を受けた装置は、オリジ
ナルデータの記録されている記録媒体14上のデータが
終了するまで、データ転送を繰り返し、コピー終了後、
ホストコンピュータにコピー終了を通知する。
FIG. 5 shows the configuration of a data block transferred from the transfer source recording device 10 at this time. The control data that fills the space between the original data shown in FIG. 5 is added with the status, sequential number, number of bytes, and the like of each block. The apparatus that has received the copy instruction repeats the data transfer until the data on the recording medium 14 on which the original data is recorded is completed.
Notifies the host computer of the end of copying.

【0034】このように、可変ブロックサイズを高速に
読み書きする方法を用いてブロックデータのコピーを行
うと、各ブロック毎に必要であったコマンドなどのデー
タ転送時間が2個以上(複数)のブロックに対して1つ
で済み、時間当たりの情報転送量が多くなる。このと
き、制御データの転送時間と制御データの解析時間とを
合わせた時間が、コマンドの転送時間とコマンドの解析
時間などとを合わせた時間と比較して比較的小さい場合
に本発明が有効になる。
As described above, when block data is copied using the method of reading / writing a variable block size at high speed, the data transfer time of commands and the like required for each block is two or more (plural). And the amount of information transferred per time increases. At this time, the present invention is effective when the time obtained by adding the transfer time of the control data and the analysis time of the control data is relatively small as compared with the time obtained by adding the transfer time of the command and the analysis time of the command. Become.

【0035】次に、通常のコピーを実行する場合と、本
発明の可変ブロックサイズのデータを高速に読み書きす
る方法でコピーする場合を比較して考えてみる。情報伝
達経路を確保するための時間、コマンドをやり取りする
ための手順時間、コマンドデータそのものをやり取りす
るための時間およびデータ転送終了確認時間などの合計
をコマンド転送時間(N秒)とし、可変データブロック
内に含まれた制御データの転送時間および制御データの
解析時間の合計を制御データ転送時間(M秒)とした場
合、Pブロックを転送して短縮できる時間Tcは次のよ
うになる。
Next, a comparison will be made between a case where normal copying is performed and a case where data of a variable block size according to the present invention is read and written at high speed. The total of the time for securing the information transmission path, the procedure time for exchanging commands, the time for exchanging command data itself, and the time for confirming the end of data transfer is defined as the command transfer time (N seconds), and the variable data block If the total of the control data transfer time and the control data analysis time included in the control data is the control data transfer time (M seconds), the time Tc that can be reduced by transferring the P block is as follows.

【0036】[0036]

【数9】 Tc=コマンド転送時間×P −(コマンド転送時間+制御データ転送時間×P) =PN−(N+PM) =(P−1)N−PM (9)Tc = command transfer time × P− (command transfer time + control data transfer time × P) = PN− (N + PM) = (P−1) N−PM (9)

【0037】仮に、図6に示した場合のように、コマン
ド転送時間Nが制御データ転送時間Mの2倍の時間がか
かる場合、すなわち、コマンド転送時間が2Mの場合の
4ブロック転送で短縮できる時間Tcを計算すると、
If the command transfer time N takes twice as long as the control data transfer time M as in the case shown in FIG. 6, that is, if the command transfer time is 2M, it can be shortened by four block transfer. When calculating the time Tc,

【0038】[0038]

【数10】 Tc=4×2M−(2M+4M)=2M(秒) (10)Tc = 4 × 2M− (2M + 4M) = 2M (sec) (10)

【0039】となる。## EQU1 ##

【0040】[0040]

【発明の効果】以上説明したように本発明の請求項1の
発明は、転送元にブロックデータとして記憶されている
データを対応するコマンドと共に転送先に転送するブロ
ックデータ転送機構において、転送元に設けられ複数の
ブロックデータを集めて複合可変長ブロックデータを形
成するブロック複合手段と、転送元に設けられブロック
複合手段で形成された複合可変長ブロックデータを転送
する可変長ブロックデータ転送手段と、転送先に設けら
れ複合可変長ブロックデータを分離して元のブロックデ
ータに戻すブロック復原手段とを具備することを特徴と
する。これにより、小さいサイズのブロックデータやサ
イズが固定されていないブロックデータを、ブロックサ
イズを大きくして転送することができ、データサイズに
対するコマンドサイズの割合を小さくし、単位時間当た
りの転送量を増大することができる。従って、異なる記
録媒体間データコピーを行う際にはコピー時間を短縮で
き、同じ記録媒体間でデータを複製する場合は記録時間
を短縮することができる。
As described above, according to the first aspect of the present invention, there is provided a block data transfer mechanism for transferring data stored as block data at a transfer source to a transfer destination together with a corresponding command. A block combining means provided to collectively form a plurality of block data to form composite variable-length block data; a variable-length block data transfer means provided at a transfer source to transfer the composite variable-length block data formed by the block combining means; And a block restoring means provided at the transfer destination to separate the composite variable-length block data and return to the original block data. This makes it possible to transfer small block data or block data having an unfixed size with a larger block size, thereby reducing the ratio of the command size to the data size and increasing the transfer amount per unit time. can do. Therefore, when copying data between different recording media, the copying time can be reduced, and when copying data between the same recording media, the recording time can be reduced.

【0041】本発明の請求項2の発明は、ブロック複合
手段はコマンドの情報の一部を含めて複合可変長ブロッ
クデータを形成することを特徴とする。これにより、コ
マンド情報の一部を制御データとしてブロックデータに
含めて転送することができ、データサイズに対するコマ
ンドサイズの割合を一層小さくし、単位時間当たりの転
送量を増大することができる。
The invention according to claim 2 of the present invention is characterized in that the block compounding means forms compound variable-length block data including a part of command information. As a result, a part of the command information can be included in the block data as the control data and transferred, so that the ratio of the command size to the data size can be further reduced, and the transfer amount per unit time can be increased.

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

【図1】本発明でホストコンピュータが装置に実行させ
るコピー実行シーケンスを示すフローチャート。
FIG. 1 is a flowchart showing a copy execution sequence that a host computer causes an apparatus to execute in the present invention.

【図2】コピーコマンドを受けた装置が転送元記録装置
の場合のコピー実行シーケンスを示すフローチャート。
FIG. 2 is a flowchart showing a copy execution sequence in a case where a device that has received a copy command is a transfer source recording device.

【図3】コピーコマンドを受けた装置が転送先記録装置
の場合のコピー実行シーケンスを示すフローチャート。
FIG. 3 is a flowchart illustrating a copy execution sequence in a case where a device that has received a copy command is a transfer destination recording device.

【図4】本発明にかかるブロックデータコピー機構のハ
ードウェア構成を示すブロック図。
FIG. 4 is a block diagram showing a hardware configuration of a block data copy mechanism according to the present invention.

【図5】転送元記録装置から転送されるデータブロック
の構成を示す図。
FIG. 5 is a diagram showing a configuration of a data block transferred from a transfer source recording device.

【図6】コマンド転送時間が制御データ転送時間の2倍
の場合のデータブロックの転送経緯を示す図。
FIG. 6 is a diagram showing the history of data block transfer when the command transfer time is twice the control data transfer time.

【図7】ハードディスク装置からテープストリーマ装置
へのデータコピーを実行する際の従来のハードウェア構
成図。
FIG. 7 is a conventional hardware configuration diagram when data is copied from a hard disk device to a tape streamer device.

【図8】従来のブロックデータのコピーの様子を示す説
明図。
FIG. 8 is an explanatory diagram showing a conventional state of copying block data.

【図9】コピー元の機器がコピー命令を受けてコピーを
実行する場合の従来のコピーシーケンスのフローチャー
ト。
FIG. 9 is a flowchart of a conventional copy sequence when a copy source device executes a copy in response to a copy instruction.

【図10】従来のデータ転送形式の概念図。FIG. 10 is a conceptual diagram of a conventional data transfer format.

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

1…ホストコンピュータ、2…ハードディスク装置、3
…テープストリーマ装置、10…転送元記録装置、11
…転送元記録装置のCPU、12…転送元記録装置のロ
ーカルメモリ、13…転送元記録装置のバッファメモ
リ、14…オリジナルデータの記録されている記録媒
体、20…転送先記録装置、21…転送先記録装置のC
PU、22…転送先記録装置のローカルメモリ、23…
転送先記録装置のバッファメモリ、24…転送先記録装
置の記録媒体、30…情報伝達経路。
1. Host computer, 2. Hard disk device, 3.
... tape streamer device, 10 ... transfer source recording device, 11
... CPU of the transfer source recording device, 12 ... Local memory of the transfer source recording device, 13 ... Buffer memory of the transfer source recording device, 14 ... Recording medium on which original data is recorded, 20 ... Transfer destination recording device, 21 ... Transfer C of destination recording device
PU, 22 ... local memory of the destination recording device, 23 ...
Buffer memory of the destination recording device, 24: recording medium of the destination recording device, 30: information transmission path.

フロントページの続き Fターム(参考) 5B014 GC14 5B065 BA01 BA07 CE04 CE07 CE21 EA33 5K034 AA01 CC01 DD01 FF01 FF15 FF18 GG06 HH01 HH02 HH12 HH17 HH18 HH26 HH38 MM14 MM25 MM32 Continued on the front page F term (reference) 5B014 GC14 5B065 BA01 BA07 CE04 CE07 CE21 EA33 5K034 AA01 CC01 DD01 FF01 FF15 FF18 GG06 HH01 HH02 HH12 HH17 HH18 HH26 HH38 MM14 MM25 MM32

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 転送元にブロックデータとして記憶され
ているデータを対応するコマンドと共に転送先に転送す
るブロックデータ転送機構において、 前記転送元に設けられ複数の前記ブロックデータを集め
て複合可変長ブロックデータを形成するブロック複合手
段と、 前記転送元に設けられ前記ブロック複合手段で形成され
た前記複合可変長ブロックデータを転送する可変長ブロ
ックデータ転送手段と、 前記転送先に設けられ前記複合可変長ブロックデータを
分離して元の前記ブロックデータに戻すブロック復原手
段とを具備することを特徴とするブロックデータ転送機
構。
1. A block data transfer mechanism for transferring data stored as block data at a transfer source to a transfer destination together with a corresponding command, wherein a plurality of the block data provided at the transfer source are collected to form a composite variable length block. A block combining means for forming data; a variable length block data transfer means provided at the transfer source for transferring the complex variable length block data formed by the block combining means; and the complex variable length provided at the transfer destination. A block restoring means for separating block data and returning the block data to the original block data.
【請求項2】 前記ブロック複合手段は前記コマンドの
情報の一部を含めて前記複合可変長ブロックデータを形
成することを特徴とする請求項1に記載のブロックデー
タ転送機構。
2. The block data transfer mechanism according to claim 1, wherein said block compounding means forms said compound variable-length block data including a part of information of said command.
JP11230225A 1999-08-17 1999-08-17 Block data transfer mechanism Pending JP2001051803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11230225A JP2001051803A (en) 1999-08-17 1999-08-17 Block data transfer mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11230225A JP2001051803A (en) 1999-08-17 1999-08-17 Block data transfer mechanism

Publications (1)

Publication Number Publication Date
JP2001051803A true JP2001051803A (en) 2001-02-23

Family

ID=16904518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11230225A Pending JP2001051803A (en) 1999-08-17 1999-08-17 Block data transfer mechanism

Country Status (1)

Country Link
JP (1) JP2001051803A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1710983A1 (en) * 2005-04-08 2006-10-11 Canon Kabushiki Kaisha Wireless communication device and information processing method
JP2012150611A (en) * 2011-01-18 2012-08-09 Ricoh Co Ltd Data processing device and data processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1710983A1 (en) * 2005-04-08 2006-10-11 Canon Kabushiki Kaisha Wireless communication device and information processing method
US8275904B2 (en) 2005-04-08 2012-09-25 Canon Kabushiki Kaisha Wireless communication device and information processing method
JP2012150611A (en) * 2011-01-18 2012-08-09 Ricoh Co Ltd Data processing device and data processing method

Similar Documents

Publication Publication Date Title
JP3997061B2 (en) Storage subsystem and storage subsystem control method
JP4186537B2 (en) Disk array system backup method
US7461201B2 (en) Storage control method and system for performing backup and/or restoration
US7007129B2 (en) Tape management method by which a virtual tape file emulated on a disk drive is copied between disk drives
WO2019181949A1 (en) Recording device, reading device, recording method, recording program, reading method, reading program and magnetic tape
JP3877519B2 (en) System recovery method, computer system for implementing the method, and recording medium recording the processing program
US7610461B2 (en) Storage system with mainframe and open host performing remote copying by setting a copy group
EP1253520B1 (en) Apparatus for issuing command for high-speed serial interface
JP2001051803A (en) Block data transfer mechanism
JPH1153123A (en) Backup system
CN114077517A (en) Data processing method, equipment and system
CA2337677A1 (en) Distributed memory type parallel computer and write data transfer end confirming method thereof
JP2004288147A (en) Xip system to serial memory and its method
US8549221B2 (en) RAID management apparatus, RAID management method, and computer product
JP2001356883A (en) Data recording/reproducing system and data recording/ reproducing method
KR100388612B1 (en) Method of Compressing Packing In Switching System
JP2000305719A (en) Method for backing-up data in information processing system
JP3794322B2 (en) Data copy system
JP6802304B2 (en) Storage control device, storage control system, storage control method, and storage control program
JP2007079942A (en) Data recording/reproducing device
JP4457440B2 (en) Data recording / reproducing system and data recording / reproducing method
JPH0713943A (en) Parallel computer
JPH06223009A (en) Method for design data transfer between computers
JP3226157B2 (en) Operation method of non-impact printer for mainframe
JP3309575B2 (en) Data recorder