JPH0690696B2 - Buffer management method - Google Patents

Buffer management method

Info

Publication number
JPH0690696B2
JPH0690696B2 JP62008002A JP800287A JPH0690696B2 JP H0690696 B2 JPH0690696 B2 JP H0690696B2 JP 62008002 A JP62008002 A JP 62008002A JP 800287 A JP800287 A JP 800287A JP H0690696 B2 JPH0690696 B2 JP H0690696B2
Authority
JP
Japan
Prior art keywords
transmission
data
buffer
frame
reception
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 - Lifetime
Application number
JP62008002A
Other languages
Japanese (ja)
Other versions
JPS63177244A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62008002A priority Critical patent/JPH0690696B2/en
Publication of JPS63177244A publication Critical patent/JPS63177244A/en
Publication of JPH0690696B2 publication Critical patent/JPH0690696B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理方式に係り、特に再送処理を行う
装置におけるバッファ管理方式に関するものである。
Description: TECHNICAL FIELD The present invention relates to a data processing system, and more particularly to a buffer management system in a device that performs retransmission processing.

〔従来の技術〕[Conventional technology]

従来のデータ記憶域におけるバッファ管理方式として
は、特公昭61−18786号のように、バッファを鎖の様に
つなげて管理するチェイニング方式と、固定されたテー
ブルにバッファアドレスを書いてバッファを管理するテ
ーブル方式が、一般的に用いられている。
As the conventional buffer management method in the data storage area, as in Japanese Patent Publication No. Sho 61-18786, there is a chaining method that manages the buffers by connecting them like a chain, and a buffer address is written in a fixed table to manage the buffers. The table method is generally used.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記従来技術は、チェイニング方式においてはバッファ
の更新やバッファのサーチ等を全て、アドレスのチェイ
ニングによって行っているため、更新,サーチを行う際
にはアドレスの書き換えが必要となり複雑であった。
In the above-mentioned conventional technique, in the chaining method, all of the buffer updating, the buffer searching, and the like are performed by the address chaining. Therefore, the address rewriting is required when performing the updating and searching, which is complicated.

他方、テーブル方式においては、最新のデータを、すで
に記憶しているデータの最後尾へセットする等のバッフ
ァの更新の際に、テーブル全体を書き換えることになる
ため、バッファの更新に時間がかかる欠点があった。
On the other hand, in the table method, when updating the buffer, such as setting the latest data to the end of the already stored data, the entire table is rewritten, so it takes time to update the buffer. was there.

本発明の目的は、簡潔かつ迅速なバッファ管理方式を提
供することにある。
It is an object of the present invention to provide a simple and quick buffer management scheme.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、サイクリックなバッファ管理カウンタを持
たせ、リング状の管理テーブルを構成しこの管理テーブ
ルにバッファアドレスを書き込む方式を用いることによ
り達成される。
The above object is achieved by using a system in which a cyclic buffer management counter is provided, a ring-shaped management table is formed, and a buffer address is written in this management table.

〔作用〕[Action]

送信処理装置は送信データを1フレーム毎に送信同期に
基づいて、送信を行う。これに伴って送信割込み信号発
生回路は、1フレームのデータの送信が完了した旨を、
割込み信号を発生することにより中央処理装置へ通知す
る。送信割込みを受けた中央処理装置は、再送処理に備
え、送信完了したデータをあらかじめ決められた一定個
数分、記憶しておくために、送信データのバッファリン
グを行う。この時、中央処理装置は、サイクリックカウ
ンタの示す格納番号に送信データのアドレスをセットす
る事でバッファの登録を終了する。登録終了すると次の
データ送信の準備のために、サイクリックカウンタ値を
インクリメントする。
The transmission processing device transmits the transmission data for each frame based on transmission synchronization. Along with this, the transmission interrupt signal generation circuit indicates that the transmission of one frame of data has been completed.
The central processing unit is notified by generating an interrupt signal. The central processing unit which has received the transmission interrupt buffers the transmission data in order to store a predetermined number of the transmission completed data in preparation for the retransmission processing. At this time, the central processing unit sets the address of the transmission data to the storage number indicated by the cyclic counter, thereby ending the registration of the buffer. When the registration is completed, the cyclic counter value is incremented in preparation for the next data transmission.

受信動作は、上記送信動作と並行して非同期に行われ
る。
The reception operation is performed asynchronously in parallel with the transmission operation.

受信処理装置は、直列デジタルデータを受信し1フレー
ム分のデータに構成する。受信割込み信号発生回路は、
この1フレーム分のデータの受信を完了すると、その旨
を中央処理装置に割込み信号により通知する。受信割込
みを受けた中央処理装置は受信処理を開始する。受信処
理では、受信データの解析を行い、再送要求フレーム受
信の場合には、送信時に記憶したバッファの中から要求
された送信データをサーチして再送のための送信処理を
行う。この際に中央処理装置は、サイクリックカウンタ
の示す格納番号がバッファ登録の最も古いデータである
ため、このデータから次々とサーチを行う。
The reception processing device receives the serial digital data and forms the data for one frame. The reception interrupt signal generation circuit
When the reception of the data for one frame is completed, the fact is notified to the central processing unit by an interrupt signal. The central processing unit which has received the reception interrupt starts the reception processing. In the reception process, the received data is analyzed, and in the case of the retransmission request frame reception, the requested transmission data is searched from the buffer stored at the time of transmission and the transmission process for retransmission is performed. At this time, since the storage number indicated by the cyclic counter is the oldest data registered in the buffer, the central processing unit sequentially searches from this data.

この様なサイクリックカウンタを具備することにより、
送信完了データの更新及び再送要求時のデータのサーチ
を容易に行うことができる。
By having such a cyclic counter,
It is possible to easily perform the update of the transmission completion data and the data search at the time of the retransmission request.

これにより、チェイニング方式のアドレス書き換えの煩
雑さやテーブル方式の更新時の処理時間の多さを解決
し、簡便なバッファ管理が行える。
As a result, it is possible to solve the complexity of address rewriting in the chaining method and the long processing time at the time of updating the table method, and perform simple buffer management.

〔実施例〕〔Example〕

次に本発明の一実施例を図面を参照して説明する。第2
図は、本発明の一実施例を示すデータ処理装置のブロッ
ク図である。符号1は中央処理装置、符号2は送信割込
み信号発生回路、符号3は受信割込み信号発生回路、符
号4は送信処理装置、符号5は受信処理装置、符号6は
記憶装置である。符号7,8は割込み信号線、符号10,11は
受信データ線、符号20,21は送信データ線となってい
る。
Next, an embodiment of the present invention will be described with reference to the drawings. Second
FIG. 1 is a block diagram of a data processing device showing an embodiment of the present invention. Reference numeral 1 is a central processing unit, reference numeral 2 is a transmission interrupt signal generation circuit, reference numeral 3 is a reception interrupt signal generation circuit, reference numeral 4 is a transmission processing device, reference numeral 5 is a reception processing device, and reference numeral 6 is a storage device. Reference numerals 7 and 8 are interrupt signal lines, reference numerals 10 and 11 are reception data lines, and reference numerals 20 and 21 are transmission data lines.

この様な構成の装置で第3図のフレーム構成のデータを
送受信する。第3図において、符号30は送信データ部、
符号40はフレームに順序を付与している順序番号部であ
り、順序番号により再送処理等を行う。第4図及び第5
図は、送信完了時及び受信完了時の中央処理装置1の動
作を表したフローチャート図である。
The data having the frame structure shown in FIG. 3 is transmitted and received by the device having such a structure. In FIG. 3, reference numeral 30 is a transmission data section,
Reference numeral 40 is a sequence number portion that gives a sequence to the frames, and performs resending processing and the like according to the sequence number. 4 and 5
The figure is a flow chart showing the operation of the central processing unit 1 upon completion of transmission and completion of reception.

以下、本発明の一実施例においての動作の特徴を第1図
に基づいて説明する。
The features of the operation in one embodiment of the present invention will be described below with reference to FIG.

送信処理装置4が送信データを送信完了すると送信割込
み信号発生回路2が完了した旨を中央処理装置1へ通知
する。中央処理装置1は第4図のシーケンスに基づき送
信後の処理を行う。
When the transmission processing device 4 completes the transmission of the transmission data, it notifies the central processing unit 1 that the transmission interrupt signal generation circuit 2 has completed. The central processing unit 1 performs post-transmission processing based on the sequence shown in FIG.

送信完了バッファは第1図に示すように、サイクリック
カウンタ9で管理されるリング状テーブル15に記憶され
る。この時サイクリックカウンタ9が指し示している格
納番号には、記憶されている送信完了バッファのうちで
最も古い順序番号を持ったバッファ30aが格納されてい
る。第4図の101で示すように送信完了バッファを登録
するとこの最も古いバッファ30aはリング状テーブル15
からはずれて、そのかわりに送信を完了したバッファ30
zが登録されなおされる。この後第4図の102で示すよう
に次の登録に備えてサイクリックカウンタ9をインクリ
メントする。この処理をくり返すことにより、常に決め
られた1定数個の送信完了バッファが記憶されているこ
とになる。
The transmission completion buffer is stored in the ring-shaped table 15 managed by the cyclic counter 9 as shown in FIG. At this time, the storage number pointed to by the cyclic counter 9 stores the buffer 30a having the oldest sequence number among the stored transmission completion buffers. When the transmission completion buffer is registered as indicated by 101 in FIG. 4, the oldest buffer 30a becomes the ring table 15.
Buffer 30 that has gone off and completed the transmission instead
z is re-registered. Thereafter, as indicated by 102 in FIG. 4, the cyclic counter 9 is incremented in preparation for the next registration. By repeating this process, one fixed number of transmission completion buffers that have been determined are always stored.

一方、受信処理は、第5図のシーケンスで行われる。On the other hand, the reception process is performed in the sequence shown in FIG.

1フレーム受信するとその旨を受信割込み信号発生回路
3が中央処理装置1へ通知する。中央処理装置1は受信
データを解析して、正常データか再送要求データかを判
定する。第5図の200で示される本発明に関係する再送
要求フレーム受信時のみを以下説明する。
When one frame is received, the reception interrupt signal generation circuit 3 notifies the central processing unit 1 of that fact. The central processing unit 1 analyzes the received data and determines whether it is normal data or resend request data. Only when a retransmission request frame related to the present invention, which is indicated by 200 in FIG. 5, is received will be described below.

再送要求を受けると、要求された順序番号から再送を行
うため、記憶している送信済バッファから当該する順序
番号のフレームをサーチする必要がある。このため中央
処理装置1は、第5図の201で示す如くサイクリックカ
ウンタ9をリードしてくる。先に述べた様にこの時サイ
クリックカウンタ9が指し示す値は、記憶されているう
ちで最も古い送信完了バッファ30aであるので、202で示
すようにこれをサーチカウンタ値としてサーチを開始す
る。サーチは203で示すようにバッファ内の順序番号と
再送を要求された順序番号との比較で行う。この比較の
結果、等しいかどうかで、サーチが終了したかどうかを
判定する。比較結果が等しくない場合206,207で示すよ
うにサーチカウンタ値をインクリメントして次のバッフ
ァのサーチを行う。この203〜207の動作をくり返すこと
で記憶している最も古い送信完了バッファから新しい送
信完了バッファへと順にサーチが行える。先の比較でサ
ーチが完了すると、205で示すようにその送信完了バッ
ファの再送処理を行い、データの欠損を防止する。
When a resending request is received, resending is performed from the requested sequence number, so it is necessary to search the frame of the sequence number concerned from the stored transmitted buffer. Therefore, the central processing unit 1 reads the cyclic counter 9 as indicated by 201 in FIG. As described above, since the value indicated by the cyclic counter 9 at this time is the oldest transmission completion buffer 30a stored, the search is started using this as the search counter value, as indicated by 202. The search is performed by comparing the sequence number in the buffer with the sequence number requested to be retransmitted, as indicated by 203. As a result of this comparison, it is determined whether or not the search is completed depending on whether or not they are equal. If the comparison results are not equal, the search counter value is incremented as indicated by 206 and 207 to search the next buffer. By repeating the operations of 203 to 207, the search can be performed in order from the stored oldest transmission completion buffer to the newest transmission completion buffer. When the search is completed in the above comparison, the transmission completion buffer is retransmitted as indicated by 205 to prevent data loss.

〔発明の効果〕〔The invention's effect〕

以上の様に本発明によれば、サイクリックカウンタを持
たせる事だけで、バッファの更新及びバッファサーチが
容易にできるので、処理速度も速い、簡便なバッファ管
理ができる利点がある。
As described above, according to the present invention, the buffer can be easily updated and searched by only providing the cyclic counter, so that there is an advantage that the processing speed is fast and the simple buffer management can be performed.

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

第1図は本発明の一実施例の概念図、第2図は本発明の
一実施例のブロック図、第3図は送受信データのフォー
マットの例を示す図、第4図は送信後のバッファリング
処理のフローチャート、第5図は再送要求フレーム受信
時の中央処理装置の動作フローチャートである。 1……中央処理装置、 2……送信割込み信号発生回路、 3……受信割込み信号発生回路、 4……送信処理装置、5……受信処理装置、 6……記憶装置、 9……サイクリックカウンタ、 15……リング状テーブル、 30……送信データ、40……順序番号部。
FIG. 1 is a conceptual diagram of an embodiment of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a diagram showing an example of a format of transmission / reception data, and FIG. 4 is a buffer after transmission. FIG. 5 is a flowchart of the ring processing, and FIG. 5 is an operation flowchart of the central processing unit when the retransmission request frame is received. 1 ... Central processing unit, 2 ... Transmission interrupt signal generation circuit, 3 ... Reception interrupt signal generation circuit, 4 ... Transmission processing device, 5 ... Reception processing device, 6 ... Storage device, 9 ... Cyclic Counter, 15 ... Ring table, 30 ... Transmission data, 40 ... Sequence number part.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】外部装置より、1フレームのデータを受信
する受信処理装置と、1フレーム受信完了毎に割込み信
号を発生する受信割込み信号発生回路と、1フレームの
送信を行う送信処理装置と、1フレームの送信完了を知
らせる送信割込み信号発生回路と、受信データを解析し
て、伝送路上の状態の良否により再送処理を行う中央処
理装置と、データを保持しておく記憶装置とからなるデ
ータ伝送装置において、サイクリックなバッファ管理カ
ウンタとバッファ管理カウンタによるバッファアドレス
が書き込まれたリング状の管理テーブルとを設け、再送
要求を受けた場合には前記管理テーブルのバッファアド
レスの順番に従って再送処理すべきデータをサーチする
ことを特徴とするバッファ管理方式。
1. A reception processing device for receiving data of one frame from an external device, a reception interrupt signal generation circuit for generating an interrupt signal each time reception of one frame is completed, and a transmission processing device for transmitting one frame. Data transmission including a transmission interrupt signal generation circuit that notifies completion of transmission of one frame, a central processing unit that analyzes received data and performs retransmission processing depending on the quality of the transmission path, and a storage device that holds the data In the device, a cyclic buffer management counter and a ring-shaped management table in which buffer addresses by the buffer management counter are written are provided, and when a retransmission request is received, retransmission processing should be performed according to the order of the buffer addresses in the management table. A buffer management method characterized by searching data.
JP62008002A 1987-01-19 1987-01-19 Buffer management method Expired - Lifetime JPH0690696B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62008002A JPH0690696B2 (en) 1987-01-19 1987-01-19 Buffer management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62008002A JPH0690696B2 (en) 1987-01-19 1987-01-19 Buffer management method

Publications (2)

Publication Number Publication Date
JPS63177244A JPS63177244A (en) 1988-07-21
JPH0690696B2 true JPH0690696B2 (en) 1994-11-14

Family

ID=11681165

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62008002A Expired - Lifetime JPH0690696B2 (en) 1987-01-19 1987-01-19 Buffer management method

Country Status (1)

Country Link
JP (1) JPH0690696B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097107A (en) * 2006-10-06 2008-04-24 Seiko Epson Corp Data recording device and its control method
JP6273664B2 (en) 2012-08-31 2018-02-07 富士通株式会社 Data transmission apparatus and data transmission method
CN111177042A (en) * 2019-12-10 2020-05-19 中国航空工业集团公司西安航空计算技术研究所 Frame processing method and frame storage device

Also Published As

Publication number Publication date
JPS63177244A (en) 1988-07-21

Similar Documents

Publication Publication Date Title
JPS60137169A (en) Facsimile equipment
JP2873044B2 (en) Signal message processing device in asynchronous time division communication network.
JPH0690696B2 (en) Buffer management method
JP2778373B2 (en) Buffer device with retransmission function
JP2001045056A (en) Communication system
JPH09298578A (en) Method and system for insuring data for digital communication
JPH0746869B2 (en) Pseudo video transmission method
KR920007392A (en) Data processing method of LAN with multiple NOS
JP6838791B2 (en) Storage system
JPH11215185A (en) Device and method for transmitting data
JP2590742B2 (en) Online message arrival management processing unit and online message arrival management method
JPH06252895A (en) Data transmission system
JPH0344704B2 (en)
EP1150449A1 (en) A method and apparatus for reducing data communication in an RDS TMC message environment
JPH0758807A (en) Time setting device
JPH05502767A (en) Packet handling method
JPS61100043A (en) Transmitter for multiple address communication
JPH04215343A (en) Transmission/reception sequence control system
JP3003349B2 (en) Computer Network Data Relay Method
JPH0740240B2 (en) Information processing apparatus and information processing system
JPS6196844A (en) Receiver for multiple address communication
JPS63238743A (en) Data link control device
JPH04107660A (en) File transfer system
JPH0831844B2 (en) Error recovery device
JPS61225947A (en) System of retransmitting data to unreached destination

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term