JPH0964918A - Buffer management system in communication controller - Google Patents

Buffer management system in communication controller

Info

Publication number
JPH0964918A
JPH0964918A JP22042195A JP22042195A JPH0964918A JP H0964918 A JPH0964918 A JP H0964918A JP 22042195 A JP22042195 A JP 22042195A JP 22042195 A JP22042195 A JP 22042195A JP H0964918 A JPH0964918 A JP H0964918A
Authority
JP
Japan
Prior art keywords
buffer
area
communication
buf
data
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
JP22042195A
Other languages
Japanese (ja)
Inventor
Tetsuya Shinohara
哲也 篠原
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP22042195A priority Critical patent/JPH0964918A/en
Publication of JPH0964918A publication Critical patent/JPH0964918A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To optimize a main storage area on the occurrence of the shortage of areas for buffers by acquiring buffer areas requiring a capacity for a required data length from the main storage area and returning the acquired area capacity to the main storage area after the areas are used. SOLUTION: A dividing means divides a main storage area 107 into an M.BUF 108 used for usual data communication and an E.BUF 109 used for saving data tentatively on the occurrence of a fault at the start of a communication controller. A packet task 100 and a data link task 101 acquire areas for a buffer corresponding to each layer of a communication protocol at data communication from the M.BUF area in the case of data communication for the communication processing and when acquisition of areas for a buffer is failed, after the optimizing processing of the M.BUF area via an optimize-processing 103, areas for a buffer are acquired again from the M.BUF area to restart the communication processing. The optimize-processing 103 uses the E.BUF areas to apply optimize-processing to the M.BUF area by a predetermined method.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通信制御装置に関
し、特にパケット方式により通信を行う通信制御装置
と、ハイレベルデータリンク制御手順により通信を行う
通信制御装置におけるバッファ管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device, and more particularly to a communication control device that performs communication by a packet method and a buffer management method in the communication control device that performs communication by a high level data link control procedure.

【0002】[0002]

【従来の技術】従来の通信制御装置におけるバッファ管
理方式では、主記憶領域を送受信するデータ長にあらか
じめ分割し(以降バッファと称する)、通信時あるいは
上位通信プロトコル装置への事象報告時に1イベントに
対して1フレームを割り当て、使用後は再び空き領域と
して返却することにより共用するバッファ管理方式によ
りバッファ制御を行っていた。
2. Description of the Related Art In a conventional buffer management method in a communication control device, a main storage area is divided into data lengths for transmission and reception (hereinafter referred to as a buffer), and one event is generated during communication or when an event is reported to a higher-level communication protocol device. On the other hand, one frame is allocated, and after use, the buffer is controlled by the shared buffer management method by returning it as an empty area again.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のバッフ
ァ管理方式は、1フレームの長さが4キロバイト以上の
ロングフレームの通信を行うとデータの送受信だけでな
くデータ長が短い上位通信プロトコル装置への事象報告
の滞留が発生し、バッファがすぐに枯渇してしまい、通
信不可能となる問題点があった。これを回避するため外
部記憶装置による資源の増設を行う方法が考えられる
が、外部記憶装置が高価であるため経済性を損う欠点が
ある。
In the conventional buffer management method described above, when performing communication of a long frame in which the length of one frame is 4 kilobytes or more, not only data transmission / reception but also an upper communication protocol apparatus having a short data length is transmitted. There was a problem that the communication of the event reports of (1) and (2) occurred and the buffer was exhausted immediately, making communication impossible. In order to avoid this, a method of adding resources by an external storage device can be considered, but there is a drawback that the external storage device is expensive and impairs economic efficiency.

【0004】[0004]

【課題を解決するための手段】第1の発明は、パケット
交換回線を使用してデータ通信を行う通信制御装置にお
けるバッファ管理方式において、通信制御装置起動時に
主記憶領域を通常のデータ通信で使う第1のバッファ領
域と障害発生時にデータを緊急待避させる第2のバッフ
ァ領域に分割する分割手段と、前記データ通信時に通信
プロトコルの各レイヤ対応にバッファを前記第1のバッ
ファ領域から獲得して通信処理を行い、前記バッファの
獲得に失敗した場合はオプティマイズ手段を介して前記
第1のバッファ領域のオプティマイズ処理を行った後前
記第1のバッファ領域から前記バッファを再度獲得し前
記通信処理を再開する前記各レイヤ対応のタスク群と、
前記第2の領域を使用して予め決められた方法により前
記第1のバッファ領域のオプティマイズ処理を行う前記
オプティマイズ手段を備えたことを特徴とする。
According to a first aspect of the present invention, in a buffer management system in a communication control device for performing data communication using a packet switching line, a main storage area is used for normal data communication when the communication control device is activated. A dividing unit that divides data into a first buffer area and a second buffer area that evacuates data when a failure occurs, and a buffer for the respective layers of a communication protocol during the data communication is acquired from the first buffer area for communication. When the buffer is acquired, the process is performed, and when the buffer is failed to be acquired, the buffer is acquired from the first buffer region again and the communication process is restarted. Task group corresponding to each layer,
It is characterized by comprising the optimizer for performing the optimize process of the first buffer area by a predetermined method using the second area.

【0005】また、第2の発明は第1の発明において、
前記オプティマイズ処理が、前記第1のバッファ領域に
おける使用中のバッファを前記第2のバッファ領域に該
領域の最初から連続して配置した後、前記第2のバッフ
ァ領域に連続して配置された前記バッファをクリアされ
た前記第1のバッファ領域にコビーすることを特徴とす
る。
The second invention is the same as the first invention.
The optimize process arranges a buffer in use in the first buffer area in the second buffer area continuously from the beginning of the area, and then sequentially arranges the buffer in the second buffer area. It is characterized in that the buffer is copied to the cleared first buffer area.

【0006】さらに、第3の発明は、ハイレベルデータ
リンク制御手順を使用してデータ通信を行う通信制御装
置におけるバッファ管理方式において、通信制御装置起
動時に主記憶領域を通常のデータ通信で使う第1のバッ
ファ領域と障害発生時にデータを緊急待避させる第2の
バッファ領域に分割する分割手段と、前記データ通信時
に通信プロトコルの各レイヤ対応にバッファを前記第1
のバッファ領域から獲得して通信処理を行い、前記バッ
ファの獲得に失敗した場合はオプティマイズ手段を介し
て前記第1のバッファ領域のオプティマイズ処理を行っ
た後前記第1のバッファ領域から前記バッファを再度獲
得し前記通信処理を再開する前記各レイヤ対応のタスク
群と、前記第2の領域を使用して予め決められた方法に
より前記第1のバッファ領域のオプティマイズ処理を行
う前記オプティマイズ手段を備え、前記主記憶領域の前
記第1のバッファ領域の利用効率を向上させたことを特
徴とする。
A third aspect of the present invention is a buffer management method in a communication control device for performing data communication using a high level data link control procedure, wherein the main storage area is used for normal data communication when the communication control device is activated. A first buffer area and a dividing means for dividing the data into a second buffer area for urgently saving data when a failure occurs; and a buffer corresponding to each layer of the communication protocol during the data communication.
If the acquisition of the buffer is unsuccessful, the optimization process is performed on the first buffer region via the optimizer, and then the buffer is re-created from the first buffer region. The task group corresponding to each layer for acquiring and restarting the communication processing, and the optimizer for performing the optimize processing of the first buffer area by a predetermined method using the second area, The utilization efficiency of the first buffer area in the main storage area is improved.

【0007】[0007]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。
Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の通信制御装置におけるバッ
ファ管理方式の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a buffer management system in the communication control apparatus of the present invention.

【0009】本発明は、図1に示すように、通信制御装
置起動時に主記憶領域107を通常のデータの送信・受
信、上位通信プロトコル装置への事象報告時に使用する
メインバッファ領域(以降M・BUFと称する)108
とバッファ枯渇発生時に使用する緊急データ送受信用バ
ッファ領域(以降E・BUFと称する)109に分割す
る分割手段(図示せず)と、主記憶領域からバッファを
動的に確保するためにパケットレイヤの処理を行うパケ
ットタスク100と、データリンクレイヤの処理を行う
データリンクタスク101と、主記憶領域107とタス
クの間に位置するバッファヘッダキュー105と空きバ
ッファヘッダキュー106から構成される。
According to the present invention, as shown in FIG. 1, the main storage area 107 is used for normal data transmission / reception when the communication control apparatus is activated, and a main buffer area (hereinafter referred to as M Called BUF) 108
And a dividing means (not shown) for dividing into a buffer area for emergency data transmission / reception (hereinafter referred to as E / BUF) 109 used when a buffer exhaustion occurs, and a packet layer for dynamically securing a buffer from the main storage area. The packet task 100 performs processing, the data link task 101 performs data link layer processing, a buffer header queue 105 and a free buffer header queue 106 located between the main storage area 107 and the task.

【0010】図2は、この二つのキュー105,106
に登録されるバッファヘッダレコード200の構成例を
示す図であり、次のバッファヘッダレコードを指すポイ
ンタを示すNEXT.P201、バッファをどのタスク
が使用しているかを示すタスクID202、各バッファ
に1〜nまでの一意の番号を付与しバッファの識別に使
用するバッファヘッダレコード番号203、バッファに
格納されるデータの長さを示すバッファ長204、実際
のデータが格納されているM・BUF上のアドレスを示
すバッファアドレス205で構成されている。
FIG. 2 shows the two queues 105 and 106.
5 is a diagram showing an example of the configuration of a buffer header record 200 registered in the NEXT. P201, task ID 202 indicating which task is using the buffer, buffer header record number 203 used to identify each buffer by assigning a unique number from 1 to n, and the length of data stored in the buffer A buffer length 204 indicating the length and a buffer address 205 indicating the address on the M.BUF where the actual data is stored.

【0011】図3は、M・BUF上のバッファの構成例
を示す図であり、M・BUF上のバッファはデータの内
容を識別するためのッファID301、バッファヘッダ
レコードと対応させるため1〜nまでの一意の番号であ
るバッファ番号302、実際のデータが格納されている
データ303とで構成されている。
FIG. 3 is a diagram showing an example of the structure of the buffer on the M.BUF. The buffer on the M.BUF is a buffer ID 301 for identifying the contents of the data, and 1 to n to correspond to the buffer header record. Up to a buffer number 302, which is a unique number, and data 303 in which actual data is stored.

【0012】次に、パケットタスク、データリンクタス
クで用いられるバッファ獲得処理102、バッファ解放
処理104、バッファ検索処理について図5〜図7を参
照しながら説明する。
Next, the buffer acquisition process 102, the buffer release process 104, and the buffer search process used in the packet task and the data link task will be described with reference to FIGS.

【0013】各タスクがバッファを獲得する場合、各タ
スクは図7(a)に示すバッファ獲得処理をコールす
る。
When each task acquires a buffer, each task calls the buffer acquisition process shown in FIG. 7 (a).

【0014】バッファ獲得処理は空きバッファヘッダキ
ュー106からバッファヘッダレコドを獲得し、バッフ
ァヘッダレコードにタスクIDとバッファ長を設定し、
バッファヘッダキュー105に登録されている全バッフ
ァヘッダレコードの情報からM・BUFの空き領域を探
し、その先頭アドレスをバッファヘッダレコードのバッ
ファアドレスに設定する。さらにバッファヘッダレコー
ド番号をバッファアドレスが指すバッファのバッファ番
号にコピーする。最後にバッファ獲得の成功・失敗を各
タスクに通知する(S51〜S54)。
In the buffer acquisition process, the buffer header record is acquired from the empty buffer header queue 106, the task ID and the buffer length are set in the buffer header record,
A free area of M / BUF is searched from the information of all buffer header records registered in the buffer header queue 105, and the start address thereof is set to the buffer address of the buffer header record. Further, the buffer header record number is copied to the buffer number of the buffer pointed to by the buffer address. Finally, the success / failure of buffer acquisition is notified to each task (S51 to S54).

【0015】各タスクがバッファを解放する場合、各タ
スクは図7(b)に示すバッファ解放処理をコールす
る。バッファ解放処理は、図7(c)に示すバッファ検
索処理をコールした後、検索されたバッファヘッダレコ
ードの情報をバッファヘッダレコード番号を除き全て消
去して空きバッファヘッダキュー106にバッファヘッ
ダレコードを返却する。最後にバッファ解放の成功、失
敗を各タスクに通知する(S61〜S63)。
When each task releases the buffer, each task calls the buffer releasing process shown in FIG. 7 (b). In the buffer release process, after calling the buffer search process shown in FIG. 7C, all the information of the searched buffer header record except the buffer header record number is erased and the buffer header record is returned to the empty buffer header queue 106. To do. Finally, each task is notified of the success and failure of the buffer release (S61 to S63).

【0016】バッファを検索する場合、各タスクは図7
(c)に示すバッファ検索処理をコールする。バッファ
検索処理は、バッファヘッダキュー105からバッファ
ヘッダレコード番号をキーにしてバッファヘッダレコー
ドを検索し、そのバッファヘッダレコードへのポインタ
を各タスクに返却する(S71〜S73)。
When searching the buffer, each task is executed as shown in FIG.
The buffer search process shown in (c) is called. In the buffer search process, the buffer header record number is searched from the buffer header queue 105 as a key to search for a buffer header record, and a pointer to the buffer header record is returned to each task (S71 to S73).

【0017】しかし、上記のバッファ解放処理はバッフ
ァヘッダレコードとM・BUF108上のバッファアド
レスを切り離すだけなので、M・BUFが長さが異なる
バッファ使用領域とバッファ未使用領域とで煩雑になり
バッファの枯渇が頻繁に発生する可能性がある。
However, since the above buffer release processing only separates the buffer header record and the buffer address on the M.BUF 108, the buffer used area and the buffer unused area having different lengths in the M.BUF are complicated and the buffer is not used. Depletion can occur frequently.

【0018】この問題を最小限に抑えるため、M・BU
Fオプティマイズ処理103を行う。図4はM・BUF
オプティマイズ処理の説明図であり、図6(b)はM・
BUFオプティマイズ処理の動作フローチャートであ
る。M・BUFオプティマイズ処理はバッファヘッダキ
ュー105に登録されている全バッファヘッダレコード
を調べ、現在使用中のバッファを確認し、次にM・BU
F108で使用中の第2バッファ402、第5バッファ
405、第7バッファ407を全てE・BUF109に
待避させM・BUF108を一時、空の状態にし、次に
E・BUF109から第2バッファを1個取り出し、M
・BUFに復旧させ、その時のバッファ格納アドレスを
バッファ番号と同値のバッファヘッダレコード番号をも
つバッファヘッダレコードのバッファアドレスに書き込
み、これら一連の処理をE・BUFが空になるまで行う
(S40〜S43)。以上の処理によりM・BUFはバ
ッファ使用領域とバッファ未使用領域が完全に二分さ
れ、バッファ未使用領域に対して動的にバッファ確保で
きるようになる。
In order to minimize this problem, MBU
F-optimize processing 103 is performed. Figure 4 shows M-BUF
It is explanatory drawing of the optimization process, FIG.6 (b) is M *.
It is an operation | movement flowchart of a BUF optimize process. The M.BUF optimization process checks all the buffer header records registered in the buffer header queue 105 to check the buffer currently in use, and then the M.BU.
The second buffer 402, the fifth buffer 405, and the seventh buffer 407 that are being used in F108 are all saved to E / BUF109, and M / BUF108 is temporarily emptied, and then one second buffer from E / BUF109. Take out, M
-Restore to BUF, write the buffer storage address at that time to the buffer address of the buffer header record having the same buffer header record number as the buffer number, and perform the series of these processes until E-BUF becomes empty (S40 to S43). ). By the above processing, the buffer used area and the buffer unused area of the M · BUF are completely divided into two, and the buffer can be dynamically secured for the buffer unused area.

【0019】以上説明してきたオプティマイズ処理を使
用し、バッファ枯渇発生時に各タスクがどのように動作
するかを、パケットレイヤでバッファの枯渇が発生した
場合、データリンクレイヤでバッファの枯渇が発生した
場合に分けて図5〜図7のフローチャートを参照しなが
ら説明する。
Using the optimization processing described above, how each task operates when a buffer is exhausted, when the buffer is exhausted in the packet layer, and when the buffer is exhausted in the data link layer Will be described separately with reference to the flowcharts of FIGS.

【0020】まず、パケットレイヤの処理を行うタスク
(以降パケットタスクと称する)でバッファの枯渇が発
生した場合について説明する。パケットタスク処理でバ
ッファ獲得処理(S1)に失敗するとM・BUFのオプ
ティマイズ処理をコールする(S2)。M・BUFオプ
ティマイズ処理はタスクのメモリ制御対象をM・BUF
からE・BUFに切り替えて制御をタスクに戻す(S4
4,S45)。パケットタスクは回線をビジー状態にし
てからパケットレイヤの下位層であるデータリンクレイ
ヤの処理を行っているタスク(以降データリンクタスク
と称する)に対して通信中でなければバッファビジーを
通知し(S3、S6)、通信中ならばRNRパケットの
送信要求をする(S5、S6)。尚、各タスク間通信時
にはE・BUFのバッファを使用する。
First, a case where a buffer is exhausted in a task (hereinafter, referred to as a packet task) for processing a packet layer will be described. When the buffer acquisition process (S1) fails in the packet task process, the M.BUFF optimize process is called (S2). In the M / BUF optimization process, the memory control target of the task is M / BUF.
To E-BUF and control is returned to the task (S4
4, S45). The packet task notifies the task (hereinafter referred to as the data link task), which is a lower layer of the packet layer, of processing the data link layer, which is a lower layer of the packet layer, if the packet task is not in communication (S3). , S6), and if communication is in progress, an RNR packet transmission request is made (S5, S6). An E / BUF buffer is used during communication between tasks.

【0021】データリンクタスクはパケットタスクから
バッファビジー通知を受けるとRNRパケットを送信し
(S33)、データリンクレイヤをビジー状態にするた
めRNRフレームを送信する(S34)。回線ビジー設
定完了後、パケットタスクに回線ビジー設定完了を通知
する(S35,S36)。パケットタスクは回線ビジー
設定完了の通知を受けると(S12)、再度、M・BU
Fオプティマイズ処理を実行する(S14)。M・BU
Fオプティマイズ処理はバッファ使用領域をバッファヘ
ッダキューに登録されているバッファヘッダレコードを
チェックし、E・BUF領域を使用して再配置を行う
(S40〜S42)。再配置完了後、パケットタスクに
M・BUF再配置完了を通知する。パケットタスクはM
・BUF再配置完了の通知を受けると回線ビジーを解除
するためデータリンクタスクに対しバッファビジー解除
を通知し、RRパケットを送信要求する(S15,S1
7)。データリンクタスクはパケットタスクから回線ビ
ジー解除の通知を受けるとRRパケットを送信し、パケ
ットレイヤのビジー状態を解除する(S38〜S3
9)。さらにデータリンクレイヤのビジー状態も解除す
るためRRフレームを送信し、データリンクタスクは回
線ビジー解除完了をパケットタスクに通知する(S31
0〜S312)。パケットタスクは回線ビジー解除完了
の通知を受けると再度バッファを獲得し、通信を続行す
る(S11)。
When the data link task receives the buffer busy notification from the packet task, it transmits an RNR packet (S33), and transmits an RNR frame to put the data link layer in a busy state (S34). After the line busy setting is completed, the packet task is notified of the line busy setting completion (S35, S36). When the packet task receives the notification that the line busy setting is completed (S12), the M.BU is restarted.
The F optimize process is executed (S14). M ・ BU
In the F optimization process, the buffer use area is checked for the buffer header record registered in the buffer header queue, and the E / BUF area is used for relocation (S40 to S42). After the relocation is completed, the packet task is notified of the completion of the M.BUF relocation. Packet task is M
When the BUF relocation completion notification is received, the buffer busy cancellation is notified to the data link task in order to cancel the circuit busy, and the RR packet is requested to be transmitted (S15, S1).
7). When the data link task receives the line busy cancellation notification from the packet task, it transmits an RR packet to cancel the busy state of the packet layer (S38 to S3).
9). Further, an RR frame is transmitted to release the busy state of the data link layer, and the data link task notifies the packet task of completion of releasing the line busy (S31).
0-S312). When the packet task is notified that the line busy is released, the packet task acquires the buffer again and continues the communication (S11).

【0022】データリンクタスク処理でバッファの枯渇
が発生した場合について説明する。データリンクタスク
はバッファ獲得に失敗するとM・BUFオプティマイズ
処理をコールする(S21)。M・BUFオプティマイ
ズ処理はタスクのメモリ制御対象をM・BUFからE・
BUFに切り替えて制御をタスクに戻す(S44〜S4
5)。データリンクタスクは回線をビジー状態にしてか
らパケットタスクに対してバッファビジーを通知し、通
信中ならばRNRフレームを送信する(S22〜S2
3)。尚、各タスク間通信時にはE・BUFのバッファ
を使用する。パケットタスクはデータリンクタスクから
バッファビジー通知を受け取るとパケットデータの送信
を一時、停止する。データリンクタスクは回線ビジーの
設定を完了すると再度、M・BUFオプティマイズ処理
をコールする(S24)。M・BUFオプティマイズ処
理はバッファ使用領域をバッファヘッダキューに登録さ
れている全バッファヘッダレコードをチェックし、E・
BUFを使用して再配置する(S40〜S43)。オプ
ティマイズ処理を実行後もバッファ獲得に失敗する場合
はバッファ不足を上位プロトコル装置へ通知し、回線を
切断する(S27)。再配置完了後、データリンクタス
クにM・BUF再配置完了を通知する。データリンクタ
スクはM・BUF再配置完了の通知を受けると回線ビジ
ーを解除するためRRフレームを送信し、その応答確認
後、パケットタスクにバッファビジー解除を通知する
(S25〜S26)。データリンクタスクはM・BUF
オプティマイズ処理を終了し、再度、バッファを獲得す
る。バケットタスクはバッファビジー解除通知を受ける
とデータの送受信を再開する。
A case where the buffer is exhausted in the data link task processing will be described. If the data link task fails to acquire the buffer, it calls the M.BUF optimization process (S21). In the M / BUF optimization process, the memory control target of the task is changed from M / BUF to E.
Switch to BUF and return control to task (S44-S4
5). The data link task notifies the packet task of buffer busy after making the line busy, and transmits an RNR frame if communication is in progress (S22 to S2).
3). An E / BUF buffer is used during communication between tasks. When the packet task receives the buffer busy notification from the data link task, it temporarily stops the packet data transmission. When the data link task completes the line busy setting, it again calls the M.BUF optimization process (S24). The M.BUF optimization process checks the buffer used area for all buffer header records registered in the buffer header queue, and E.
Rearrangement is performed using BUF (S40 to S43). If the buffer acquisition fails even after the optimization process is executed, the lack of buffer is notified to the upper protocol device and the line is disconnected (S27). After the relocation is completed, the data link task is notified of the completion of the M.BUF relocation. When the data link task receives the notification of the completion of the M / BUF relocation, it transmits an RR frame to release the line busy, and after confirming the response, notifies the packet task of the buffer busy release (S25 to S26). Data link task is M-BUF
The optimize process ends, and the buffer is acquired again. When the bucket task receives the buffer busy cancellation notification, it resumes data transmission and reception.

【0023】尚、ハイレベルデータリンク制御手順を使
用した場合のM・BUFオプティマイズ処理は、パケッ
トタスクへの処理を全て除外したものと同等なので省略
する。
The M.BUF optimization process in the case of using the high level data link control procedure is the same as the process in which all the processes for the packet task are excluded, and will be omitted.

【0024】[0024]

【発明の効果】以上説明したように本発明によれば、主
記憶領域から必要なデータ長だけ動的にバッファを獲得
し、使用後は主記憶領域に返却する。さらに、バッファ
の枯渇が発生した場合、通信回線を一時的にビジー状態
にした後で主記憶領域をオプティマイズすることにより
資源を有効に使用することができる効果を有する。
As described above, according to the present invention, a buffer is dynamically acquired from the main storage area by the required data length and returned to the main storage area after use. Further, when the buffer is exhausted, the resources can be effectively used by optimizing the main storage area after temporarily setting the communication line in a busy state.

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

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

【図2】本実施例におけるバッファヘッダレコード20
0の構成例を示す図である。
FIG. 2 is a buffer header record 20 in this embodiment.
FIG. 9 is a diagram illustrating a configuration example of a zero.

【図3】本実施例におけるM・BUF上のバッファの構
成例を示す図である。
FIG. 3 is a diagram showing a configuration example of a buffer on an M · BUF in the present embodiment.

【図4】本発明のM・BUFオプティマイズ処理の説明
図である。
FIG. 4 is an explanatory diagram of M / BUF optimization processing of the present invention.

【図5】(a)はパケットタスク・バッファ獲得処理の
動作フロー図、(b)はデータリンク・バッファ獲得処
理の動作フロー図、(c)はパケットタスク・パケット
受信処理の動作フロー図である。
5A is an operation flow chart of packet task / buffer acquisition processing, FIG. 5B is an operation flow chart of data link / buffer acquisition processing, and FIG. 5C is an operation flow chart of packet task / packet reception processing. .

【図6】(a)はデータリンクタスク受信処理の動作フ
ロー図、(b)はM・BUFオプティマイズ処理の動作
フロー図である。
6A is an operation flow diagram of a data link task reception process, and FIG. 6B is an operation flow diagram of an M.BUF optimization process.

【図7】(a)はバッファ獲得処理の動作フロー図、
(b)はバッファ解放処理の動作フロー図、(c)はバ
ッファ検索処理の動作フロー図である。
FIG. 7A is an operation flow chart of buffer acquisition processing,
(B) is an operation flow diagram of a buffer release process, and (c) is an operation flow diagram of a buffer search process.

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

100 パケットタスク 101 データリンクタスク 102 バッファ獲得処理 103 M・BUFオプティマイズ処理 104 バッファ解放処理 105 バッファヘッダキュー 106 空きバッファヘッダキュー 107 主記憶領域 108 M・BUF 109 E・BUF 200 バッファヘッダレコード 201 NEXT.P 202 タスクID 203 バッファヘッダレコード番号 204 バッファ長 205 バッファアドレス 300 バッファ 301 バッファID 302 バッファ番号 303 データ 401 第1バッファ 402 第2バッファ 403 第3バッファ 404 第4バッファ 405 第5バッファ 406 第6バッファ 407 第7バッファ 408 第8バッファ 100 packet task 101 data link task 102 buffer acquisition processing 103 M / BUF optimization processing 104 buffer release processing 105 buffer header queue 106 empty buffer header queue 107 main storage area 108 M / BUF 109 E / BUF 200 buffer header record 201 NEXT. P 202 task ID 203 buffer header record number 204 buffer length 205 buffer address 300 buffer 301 buffer ID 302 buffer number 303 data 401 first buffer 402 second buffer 403 third buffer 404 fourth buffer 405 fifth buffer 406 sixth buffer 407 7th buffer 408 8th buffer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 パケット交換回線を使用してデータ通信
を行う通信制御装置におけるバッファ管理方式におい
て、通信制御装置起動時に主記憶領域を通常のデータ通
信で使う第1のバッファ領域と障害発生時にデータを緊
急待避させる第2のバッファ領域に分割する分割手段
と、前記データ通信時に通信プロトコルの各レイヤ対応
にバッファを前記第1のバッファ領域から獲得して通信
処理を行い、前記バッファの獲得に失敗した場合はオプ
ティマイズ手段を介して前記第1のバッファ領域のオプ
ティマイズ処理を行った後前記第1のバッファ領域から
前記バッファを再度獲得し前記通信処理を再開する前記
各レイヤ対応のタスク群と、前記第2の領域を使用して
予め決められた方法により前記第1のバッファ領域のオ
プティマイズ処理を行う前記オプティマイズ手段を備
え、前記主記憶領域の前記第1のバッファ領域の利用効
率を向上させたことを特徴とする通信制御装置における
バッファ管理方式。
1. A buffer management method in a communication control device for performing data communication using a packet-switched line, comprising: a first buffer region that uses a main storage area for normal data communication when the communication control device is activated; and a data buffer when a failure occurs. And a dividing means for dividing into a second buffer area for emergency saving, and a buffer corresponding to each layer of the communication protocol during the data communication is acquired from the first buffer area for communication processing, and acquisition of the buffer fails. In that case, the task group corresponding to each layer for re-acquiring the buffer from the first buffer area and resuming the communication processing after performing the optimization processing of the first buffer area through the optimizer, Optimize the first buffer area by a predetermined method using the second area A buffer management method in a communication control device, comprising: the optimizer, wherein utilization efficiency of the first buffer area of the main storage area is improved.
【請求項2】 前記オプティマイズ処理が、前記第1の
バッファ領域における使用中のバッファを前記第2のバ
ッファ領域に該領域の最初から連続して配置した後、前
記第2のバッファ領域に連続して配置された前記バッフ
ァをクリアされた前記第1のバッファ領域にコビーする
ことを特徴とする請求項1記載の通信制御装置における
バッファ管理方式。
2. The optimizing process allocates a buffer in use in the first buffer area to the second buffer area continuously from the beginning of the area and then continues to the second buffer area. 2. The buffer management method in the communication control device according to claim 1, wherein the buffer arranged as described above is copied to the cleared first buffer area.
【請求項3】 ハイレベルデータリンク制御手順を使用
してデータ通信を行う通信制御装置におけるバッファ管
理方式において、通信制御装置起動時に主記憶領域を通
常のデータ通信で使う第1のバッファ領域と障害発生時
にデータを緊急待避させる第2のバッファ領域に分割す
る分割手段と、前記データ通信時に通信プロトコルの各
レイヤ対応にバッファを前記第1のバッファ領域から獲
得して通信処理を行い、前記バッファの獲得に失敗した
場合はオプティマイズ手段を介して前記第1のバッファ
領域のオプティマイズ処理を行った後前記第1のバッフ
ァ領域から前記バッファを再度獲得し前記通信処理を再
開する前記各レイヤ対応のタスク群と、前記第2の領域
を使用して予め決められた方法により前記第1のバッフ
ァ領域のオプティマイズ処理を行う前記オプティマイズ
手段を備え、前記主記憶領域の前記第1のバッファ領域
の利用効率を向上させたことを特徴とする通信制御装置
におけるバッファ管理方式。
3. A buffer management method in a communication control device for performing data communication using a high-level data link control procedure, wherein a main storage area is used as a first buffer area for normal data communication when the communication control device is activated, and a failure. When the data is generated, a dividing unit that divides the data into a second buffer area for emergency saving, and a buffer for the respective layers of the communication protocol during the data communication are acquired from the first buffer area to perform communication processing, When the acquisition fails, the optimization processing of the first buffer area is performed through the optimization means, and then the buffer is acquired again from the first buffer area and the communication processing is restarted. And an optimizer for the first buffer area according to a predetermined method using the second area. A buffer management system in a communication control device, comprising: the optimizer for performing an equalizing process to improve utilization efficiency of the first buffer area of the main storage area.
JP22042195A 1995-08-29 1995-08-29 Buffer management system in communication controller Pending JPH0964918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22042195A JPH0964918A (en) 1995-08-29 1995-08-29 Buffer management system in communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22042195A JPH0964918A (en) 1995-08-29 1995-08-29 Buffer management system in communication controller

Publications (1)

Publication Number Publication Date
JPH0964918A true JPH0964918A (en) 1997-03-07

Family

ID=16750850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22042195A Pending JPH0964918A (en) 1995-08-29 1995-08-29 Buffer management system in communication controller

Country Status (1)

Country Link
JP (1) JPH0964918A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59119386A (en) * 1982-12-25 1984-07-10 富士通株式会社 Buffer area controlling system
JPS59176952A (en) * 1983-03-26 1984-10-06 Ricoh Co Ltd Communication control system
JPS61262339A (en) * 1985-05-16 1986-11-20 Fujitsu Ltd Buffer management system
JPS63232544A (en) * 1987-03-19 1988-09-28 Fujitsu Ltd Multi-channel packeting system
JPS63250245A (en) * 1987-04-06 1988-10-18 Mitsubishi Electric Corp Communication control system
JPH01296740A (en) * 1988-05-25 1989-11-30 Hitachi Ltd Packet data transmission and memory storage system
JPH04112249A (en) * 1990-09-03 1992-04-14 Matsushita Electric Ind Co Ltd Memory managing system
JPH0543246B2 (en) * 1986-03-03 1993-07-01 Oji Paper Co
JPH06202936A (en) * 1992-10-29 1994-07-22 Internatl Business Mach Corp <Ibm> Computer main storage area management system and method thereof
JPH07262079A (en) * 1994-03-16 1995-10-13 Fujitsu Ltd Buffer reallotment system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59119386A (en) * 1982-12-25 1984-07-10 富士通株式会社 Buffer area controlling system
JPS59176952A (en) * 1983-03-26 1984-10-06 Ricoh Co Ltd Communication control system
JPS61262339A (en) * 1985-05-16 1986-11-20 Fujitsu Ltd Buffer management system
JPH0543246B2 (en) * 1986-03-03 1993-07-01 Oji Paper Co
JPS63232544A (en) * 1987-03-19 1988-09-28 Fujitsu Ltd Multi-channel packeting system
JPS63250245A (en) * 1987-04-06 1988-10-18 Mitsubishi Electric Corp Communication control system
JPH01296740A (en) * 1988-05-25 1989-11-30 Hitachi Ltd Packet data transmission and memory storage system
JPH04112249A (en) * 1990-09-03 1992-04-14 Matsushita Electric Ind Co Ltd Memory managing system
JPH06202936A (en) * 1992-10-29 1994-07-22 Internatl Business Mach Corp <Ibm> Computer main storage area management system and method thereof
JPH07262079A (en) * 1994-03-16 1995-10-13 Fujitsu Ltd Buffer reallotment system

Similar Documents

Publication Publication Date Title
US5386512A (en) System for deriving and testing mutual capability set after receiving updated capability from other processors and before requesting service information
US8032786B2 (en) Information-processing equipment and system therefor with switching control for switchover operation
WO1986001018A1 (en) Database backup method
US6654880B1 (en) Method and apparatus for reducing system down time by restarting system using a primary memory before dumping contents of a standby memory to external storage
JP4984814B2 (en) Communication management apparatus and communication management method
KR100323255B1 (en) Job taking-over system
JPH04234240A (en) Method and apparatus for auditing communication session
JPH0964918A (en) Buffer management system in communication controller
CN112000449B (en) Asynchronous task processing method and system
JP2003058435A (en) Service control application execution method and system
JP2003298624A (en) Communication path securing method in service control application execution program
CN101616025B (en) Method for determining active-standby of services on control panel and a device
JP2003258997A (en) Standby system for service control node system
JP3528298B2 (en) Image communication device
JPH07177543A (en) Uninterruptible file update processing system
JP2002149439A (en) Method for switching server and server device in distributed processing system
US20230185602A1 (en) Long Running Operations Implementation
JPH08190528A (en) System management device
JP2003037727A (en) Facsimile transmission controller and program recording medium therefor
JP2002057712A (en) Memory leakage recovery method for packet memory and buffer processing unit
KR100436658B1 (en) Method for managing a buffer by data link layer controlling module installed in a mobile telecommunications terminal
JP2645134B2 (en) Message transmission control method to restoration signal link
JPH02139630A (en) Online task exchange device
JP2003037693A (en) Facsimile transmission controller and its program recording medium
CN113687986A (en) Recovery method for chip and processing unit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980609