JP2746207B2 - Emergency buffer reservation method - Google Patents

Emergency buffer reservation method

Info

Publication number
JP2746207B2
JP2746207B2 JP7139979A JP13997995A JP2746207B2 JP 2746207 B2 JP2746207 B2 JP 2746207B2 JP 7139979 A JP7139979 A JP 7139979A JP 13997995 A JP13997995 A JP 13997995A JP 2746207 B2 JP2746207 B2 JP 2746207B2
Authority
JP
Japan
Prior art keywords
buffer
connection
data transfer
data
emergency
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
JP7139979A
Other languages
Japanese (ja)
Other versions
JPH08314837A (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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP7139979A priority Critical patent/JP2746207B2/en
Publication of JPH08314837A publication Critical patent/JPH08314837A/en
Application granted granted Critical
Publication of JP2746207B2 publication Critical patent/JP2746207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は緊急用バッファ確保方式
に関し、特にデータ通信プロトコルに基づいて通信相手
とデータ通信を行う通信系ドライバにおけるバッファ資
源枯渇時の緊急用バッファ確保方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emergency buffer securing system, and more particularly to an emergency buffer securing system in a communication system driver for performing data communication with a communication partner based on a data communication protocol when buffer resources are exhausted.

【0002】[0002]

【従来の技術】従来の通信系ドライバには、異常事態通
知関数が設けられていて、自電子計算機システム上のユ
ーザプログラムで障害が発生する等の異常事態が発生し
た場合に、通信相手(通信先の電子計算機システム上の
通信系ドライバ)との間でデータ通信プロトコルに基づ
く制御データ(通信元アドレス,通信先アドレス,プロ
トコル種別,データ長等)をやりとりするためのバッフ
ァ(以下、制御データ用バッファという)を用いて、通
信相手に異常事態通知関数により異常事態の発生を通知
するとともにコネクション切断手段によりコネクション
切断要求を送信し、通信相手からコネクション切断応答
が返送されてくるとコネクションを正常な状態で切断す
るようになっていた。
2. Description of the Related Art A conventional communication system driver is provided with an abnormal situation notification function, and when an abnormal situation such as a failure occurs in a user program on a self-computer system, a communication partner (communication partner) is established. A buffer for exchanging control data (communication source address, communication destination address, protocol type, data length, etc.) based on a data communication protocol with a communication driver on the previous computer system (hereinafter referred to as control data). A buffer is used to notify the communication partner of the occurrence of an abnormal situation using the abnormal situation notification function, and a connection disconnection request is sent by the connection disconnecting means. It was to be cut in the state.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の通信系
ドライバでは、制御データ用バッファを用いて通信相手
に異常事態の発生を通知するとともにコネクション切断
要求を送信するようになっていたので、バッファ資源が
枯渇してデータ転送用バッファおよび制御データ用バッ
ファが確保できなかった場合には、通信相手に対して異
常事態の発生の通知およびコネクション切断要求の送信
を行おうとしても、通信相手に異常事態の発生を通知す
ることができないとともにコネクションを正常な状態で
切断することができないという問題点があった。
In the above-mentioned conventional communication system driver, a control data buffer is used to notify a communication partner of the occurrence of an abnormal situation and to transmit a connection disconnection request. If resources are exhausted and the data transfer buffer and control data buffer cannot be reserved, the communication partner will be notified of the occurrence of an abnormal situation and sending a connection disconnection request. There has been a problem that the occurrence of a situation cannot be notified and the connection cannot be disconnected in a normal state.

【0004】本発明の目的は、上述の点に鑑み、バッフ
ァ資源の枯渇時に異常事態通知関数のスタック(確保領
域)上に制御データ用バッファに相当する緊急用バッフ
ァを確保するようにして、通信相手に異常事態の発生を
通知できるとともにコネクションを正常な状態で切断で
きるようにした緊急用バッファ確保方式を提供すること
にある。
SUMMARY OF THE INVENTION In view of the foregoing, it is an object of the present invention to secure an emergency buffer corresponding to a control data buffer on a stack (securing area) of an abnormal event notification function when buffer resources are exhausted. It is an object of the present invention to provide an emergency buffer securing system capable of notifying a partner of occurrence of an abnormal situation and disconnecting a connection in a normal state.

【0005】なお、先行技術として、特開平4−181
349号公報に開示された送受信バッファの拡張方式が
あるが、この方式は拡張バッファを設け、データ転送量
の変化に対応して送信バッファまたは受信バッファのい
ずれかを拡張できるようにし、データ転送でオーバーラ
ンが生じることを未然に防止するようにしたものであ
り、本願発明のように、バッファ資源の枯渇時に異常事
態の発生およびコネクションの切断を通信相手に通知で
きるようにするためのものではない。
The prior art is disclosed in Japanese Patent Laid-Open No. 4-181.
No. 349 discloses an extension method of a transmission / reception buffer. In this method, an extension buffer is provided so that either a transmission buffer or a reception buffer can be extended in response to a change in the data transfer amount. This is intended to prevent overrun from occurring, and is not intended to notify a communication partner of occurrence of an abnormal situation and disconnection of a connection when buffer resources are exhausted, as in the present invention. .

【0006】[0006]

【課題を解決するための手段】本発明の緊急用バッファ
確保方式は、データ通信プロトコルに基づいて通信相手
とデータ通信を行う通信系ドライバにおいて、通信相手
との間でコネクションを接続するコネクション接続手段
と、このコネクション接続手段によるコネクション接続
後にデータ転送要求を受け付けるデータ転送要求受付手
段と、このデータ転送要求受付手段によりデータ転送要
求が受け付けられたときにデータ転送用バッファおよび
制御データ用バッファを確保するバッファ確保手段と、
このバッファ確保手段によりデータ転送用バッファおよ
び制御データ用バッファが確保されたときに通信相手に
対してデータを転送するデータ転送手段と、前記バッフ
ァ確保手段によりデータ転送用バッファおよび制御デー
タ用バッファが確保されなかったときに呼び出される異
常事態通知関数と、この異常事態通知関数内で前記制御
データ用バッファに相当する緊急用バッファを確保する
緊急用バッファ確保手段と、この緊急用バッファ確保手
段により確保された緊急用バッファを用いてコネクショ
ン切断要求を通信相手に通知するコネクション切断手段
とを有する。
According to a first aspect of the present invention, there is provided an emergency buffer securing system, comprising: a communication driver for performing data communication with a communication partner based on a data communication protocol; And a data transfer request receiving means for receiving a data transfer request after the connection by the connection connecting means, and a data transfer buffer and a control data buffer when the data transfer request is received by the data transfer request receiving means. Buffer securing means;
A data transfer means for transferring data to a communication partner when the data transfer buffer and the control data buffer are secured by the buffer securing means; and a data transfer buffer and a control data buffer secured by the buffer securing means. An abnormal situation notifying function called when not performed, an emergency buffer securing means for securing an emergency buffer corresponding to the control data buffer in the abnormal situation notifying function, and an emergency buffer securing means. Connection disconnection means for notifying a communication partner of a connection disconnection request using the emergency buffer.

【0007】[0007]

【作用】本発明の緊急用バッファ確保方式では、コネク
ション接続手段が通信相手との間でコネクションを接続
し、データ転送要求受付手段がコネクション接続手段に
よるコネクション接続後にデータ転送要求を受け付け、
バッファ確保手段がデータ転送要求受付手段によりデー
タ転送要求が受け付けられたときにデータ転送用バッフ
ァおよび制御データ用バッファを確保し、データ転送手
段がバッファ確保手段によりデータ転送用バッファおよ
び制御データ用バッファが確保されたときに通信相手に
対してデータを転送し、異常事態通知関数がバッファ確
保手段によりデータ転送用バッファおよび制御データ用
バッファが確保されなかったときに呼び出され、緊急用
バッファ確保手段が異常事態通知関数内で制御データ用
バッファに相当する緊急用バッファを確保し、コネクシ
ョン切断手段が緊急用バッファ確保手段により確保され
た緊急用バッファを用いてコネクション切断要求を通信
相手に通知する。
In the emergency buffer securing system of the present invention, the connection connection means connects a connection with the communication partner, and the data transfer request receiving means receives a data transfer request after the connection connection by the connection connection means.
The buffer securing means secures the data transfer buffer and the control data buffer when the data transfer request is accepted by the data transfer request accepting means, and the data transfer means secures the data transfer buffer and the control data buffer by the buffer securing means. When the data is transferred to the communication partner when the buffer is secured, the abnormal situation notification function is called when the buffer for data transfer and the buffer for control data are not secured by the buffer securing means. The emergency buffer corresponding to the control data buffer is secured in the event notification function, and the connection disconnecting unit notifies the communication partner of the connection disconnection request using the emergency buffer secured by the emergency buffer securing unit.

【0008】[0008]

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

【0009】図1は、本発明の一実施例に係る緊急用バ
ッファ確保方式が適用された通信系ドライバ10の構成
を示すブロック図である。この通信系ドライバ10は、
通信相手(図示せず)との間でコネクションを接続する
コネクション接続手段1と、自電子計算機システムのユ
ーザプログラム(図示せず)からのデータ転送要求を受
け付けるデータ転送要求受付手段2と、データ転送用バ
ッファ6および制御データ用バッファ7を確保するバッ
ファ確保手段3と、通信相手に対してデータを転送する
データ転送手段4と、制御データ用バッファ7または緊
急用バッファ7’を用いてコネクション切断要求を通信
相手に通知するコネクション切断手段5と、バッファ資
源の枯渇によりバッファ確保に失敗したときに通信相手
に異常事態を通知する異常事態通知関数8とを含んで構
成されている。
FIG. 1 is a block diagram showing the configuration of a communication driver 10 to which an emergency buffer securing system according to an embodiment of the present invention is applied. This communication driver 10
Connection connection means 1 for connecting a connection with a communication partner (not shown), data transfer request receiving means 2 for receiving a data transfer request from a user program (not shown) of the computer system, and data transfer Securing means 3 for securing a data buffer 6 and a control data buffer 7, a data transfer means 4 for transferring data to a communication partner, and a connection disconnection request using the control data buffer 7 or the emergency buffer 7 '. And an abnormal situation notification function 8 for notifying the communicating party of an abnormal situation when the buffer reservation has failed due to the exhaustion of buffer resources.

【0010】異常事態通知関数8には、緊急用バッファ
確保手段9が設けられており、緊急用バッファ確保手段
9により異常事態通知関数8のスタック上に制御データ
用バッファ7に相当する緊急用バッファ7’が確保され
るようになっている。
The emergency notification function 8 is provided with an emergency buffer securing means 9. The emergency buffer securing means 9 places an emergency buffer corresponding to the control data buffer 7 on the stack of the abnormal situation notification function 8. 7 'is secured.

【0011】図2を参照すると、通信系ドライバ10の
処理は、コネクション接続ステップS101と、データ
転送要求受付ステップS102と、バッファ確保ステッ
プS103と、データ転送ステップS104と、異常事
態通知関数呼出しステップS105と、コネクション切
断ステップS106とからなる。
Referring to FIG. 2, the processing of the communication driver 10 includes a connection connection step S101, a data transfer request receiving step S102, a buffer securing step S103, a data transfer step S104, and an abnormal situation notification function calling step S105. And a connection disconnection step S106.

【0012】次に、このように構成された本実施例の緊
急用バッファ確保方式の動作について説明する。
Next, the operation of the emergency buffer securing system of the present embodiment configured as described above will be described.

【0013】通信系ドライバ10は、自電子計算機シス
テムのユーザプログラムからデータ転送要求が出力され
ると、コネクション接続手段1によりコネクション接続
要求を通信相手の電子計算機システムに送信してコネク
ションを接続しようとする(ステップS101)。
When a data transfer request is output from a user program of its own computer system, the communication driver 10 transmits a connection connection request to the communication partner computer system by the connection connection means 1 and attempts to establish a connection. (Step S101).

【0014】通信相手の電子計算機システムからコネク
ション接続応答が返ってこず、コネクションの接続に失
敗すると、通信系ドライバ10は、ただちにユーザプロ
グラムに制御を戻す。
If the connection of the connection fails because no connection connection response is returned from the computer system of the communication partner, the communication driver 10 immediately returns the control to the user program.

【0015】通信相手の電子計算機システムからコネク
ション接続応答が返ってきてコネクションの接続に成功
すると、通信系ドライバ10は、データ転送要求受付手
段2によりデータ転送要求を受け付け(ステップS10
2)、バッファ確保手段3によりデータ転送用バッファ
6および制御データ用バッファ7を確保しようとする
(ステップS103)。
When a connection connection response is returned from the communication partner computer system and the connection is successfully established, the communication driver 10 receives the data transfer request by the data transfer request receiving means 2 (step S10).
2) Attempt to secure the data transfer buffer 6 and the control data buffer 7 by the buffer securing means 3 (step S103).

【0016】データ転送用バッファ6および制御データ
用バッファ7が正常に確保できた場合には、通信系ドラ
イバ10は、確保したデータ転送用バッファ6および制
御データ用バッファ7を用いてデータ転送手段4により
通信相手にデータ転送を行い(ステップS104)、デ
ータ転送終了後に制御データ用バッファ7を用いてコネ
クション切断手段5によりコネクション切断要求を通信
相手に通知する(ステップS106)。通信相手の電子
計算機システムからコネクション切断応答が返ってくる
と、通信系ドライバ10は、コネクションを正常な状態
で切断し、自電子計算機システムのユーザプログラムに
制御を戻す。
When the data transfer buffer 6 and the control data buffer 7 can be normally secured, the communication driver 10 uses the secured data transfer buffer 6 and control data buffer 7 to transmit data to the data transfer means 4. Then, data transfer is performed to the communication partner (step S104), and after the data transfer is completed, the connection disconnection unit 5 notifies the communication partner of a connection disconnection request using the control data buffer 7 (step S106). When a connection disconnection response is returned from the communication partner computer system, the communication driver 10 disconnects the connection in a normal state and returns control to the user program of the own computer system.

【0017】ステップS103でバッファ資源の枯渇に
よりデータ転送用バッファ6および制御データ用バッフ
ァ7が確保できなかった場合は、通信系ドライバ10
は、バッファ確保手段3から異常事態通知関数8を呼び
出す(ステップS105)。
If the data transfer buffer 6 and the control data buffer 7 cannot be secured due to the exhaustion of the buffer resources in step S103, the communication driver 10
Calls the abnormal situation notification function 8 from the buffer securing means 3 (step S105).

【0018】異常事態通知関数8は、緊急用バッファ確
保手段9により異常事態通知関数8自身のスタック上に
制御データ用バッファ7に相当する緊急用バッファ7’
を確保し、データ転送中止という異常事態の発生を示す
情報(フラグ等)を設定して、緊急用バッファ7’をコ
ネクション切断手段5に引き渡す。
The abnormal situation notifying function 8 has an emergency buffer 7 'corresponding to the control data buffer 7 on its own stack by the emergency buffer securing means 9.
Is set, information (flag, etc.) indicating the occurrence of an abnormal situation such as data transfer suspension is set, and the emergency buffer 7 ′ is delivered to the connection disconnecting means 5.

【0019】通信系ドライバ10は、コネクション切断
手段5により緊急用バッファ7’を用いてデータ転送中
止という異常事態の発生およびコネクション切断要求を
通信相手に通知する(ステップS106)。通信相手の
電子計算機システムからコネクション切断応答が返って
くると、通信系ドライバ10は、コネクションを正常な
状態で切断し、自電子計算機システムのユーザプログラ
ムに制御を戻す。
The communication driver 10 uses the emergency buffer 7 'by the connection disconnecting means 5 to notify the communication partner of the occurrence of an abnormal situation such as the suspension of data transfer and a request for disconnecting the connection (step S106). When a connection disconnection response is returned from the communication partner computer system, the communication driver 10 disconnects the connection in a normal state and returns control to the user program of the own computer system.

【0020】[0020]

【発明の効果】以上説明したように本発明は、異常事態
通知関数内に緊急用バッファ確保手段を設け、緊急用バ
ッファ確保手段により異常事態通知関数のスタック上に
制御データ用バッファに相当する緊急用バッファを確保
できるようにしたことにより、バッファ資源の枯渇時で
も通信相手に異常事態の発生およびコネクション切断要
求を通知してコネクションを正常な状態で切断すること
ができるという効果がある。
As described above, according to the present invention, the emergency buffer securing means is provided in the abnormal situation notifying function, and the emergency buffer securing means places the emergency buffer corresponding to the control data buffer on the stack of the abnormal situation notifying function. As a result, it is possible to disconnect the connection in a normal state by notifying the communication partner of the occurrence of an abnormal situation and a connection disconnection request even when the buffer resources are exhausted.

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

【図1】本発明の一実施例に係る緊急用バッファ確保方
式が適用された通信系ドライバの構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of a communication driver to which an emergency buffer securing system according to an embodiment of the present invention is applied.

【図2】図1の通信系ドライバの処理を示す流れ図であ
る。
FIG. 2 is a flowchart showing processing of a communication driver of FIG. 1;

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

1 コネクション接続手段 2 データ転送要求受付手段 3 バッファ確保手段 4 データ転送手段 5 コネクション切断手段 6 データ転送用バッファ 7 制御データ用バッファ 7’ 緊急用バッファ 8 緊急事態通知関数 9 緊急用バッファ確保手段 10 通信系ドライバ S101 コネクション接続ステップ S102 データ転送要求受付ステップ S103 バッファ確保ステップ S104 データ転送ステップ S105 異常事態通知関数呼出しステップ S106 コネクション切断ステップ Reference Signs List 1 connection connection means 2 data transfer request receiving means 3 buffer securing means 4 data transfer means 5 connection disconnecting means 6 data transfer buffer 7 control data buffer 7 'emergency buffer 8 emergency notification function 9 emergency buffer securing means 10 communication System driver S101 Connection connection step S102 Data transfer request acceptance step S103 Buffer reservation step S104 Data transfer step S105 Abnormality notification function calling step S106 Connection disconnection step

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 電子計算機上の通信系ドライバにおい1. A communication system driver on a computer.
て、hand, 自電子計算機上で実行されているユーザプログラムからFrom a user program running on your computer
のデータ転送要求に応じて、データ通信の相手である他Responding to a data transfer request from another
の電子計算機上の相手先通信系ドライバとコネクションCommunication driver and connection on another computer
を接続するコネクション接続手段と、Connection connection means for connecting 前記コネクション接続手段によるコネクション接続後After connection connection by the connection connection means
に、前記データ転送要求を受け付けるデータ転送要求受Receiving a data transfer request for receiving the data transfer request.
付手段と、Attachment means, 前記データ転送要求受付手段による前記データ転送要求The data transfer request by the data transfer request receiving means
の受け付けに応じて、前記ユーザプログラムから転送をTransfer from the user program in response to
要求されたデータを格納するためのデータ転送用バッフData transfer buffer to store requested data
ァと前記データ通信を制御する制御データを格納するたAnd control data for controlling the data communication.
めの制御データ用バッファとを確保するバッファ確保手To secure a buffer for control data for
段と、Steps and 前記バッファ確保手段による前記データ転送用バッファThe data transfer buffer by the buffer securing unit
と前記制御データ用バッファとの確保完了に応じて、該In response to the completion of securing the control data buffer and
データ転送用バッファと該制御データ用バッファとを用The data transfer buffer and the control data buffer are used.
いて前記相手先通信系ドライバへ前記データを転送するTo transfer the data to the destination communication system driver
データ転送手段と、Data transfer means; 前記バッファ確保手段が前記データ転送用バッファと前The buffer reserving means is in front of the data transfer buffer;
記制御データ用バッファとを確保できなかった場合に、If the control data buffer cannot be secured,
コネクションの切断を要求する切断要求制御データのみOnly disconnection request control data that requests disconnection of connection
を格納できる容量の緊急用バッファを自らのスタック上Emergency buffer with enough capacity to store
に動的に確保し、データ転送を中止する旨の通知を作成And dynamically create a notification to stop data transfer
する異常事態通知関数手段と、An abnormal situation notification function means, 前記異常事態通知関数手段から前記通知を受け、前記切Receiving the notification from the abnormal situation notification function means,
断要求制御データを作成し、前記緊急用バッファに格納Creates disconnection request control data and stores it in the emergency buffer
して前記相手先通信系ドライバへ通知するコネクションTo notify the destination communication system driver
切断手段とを有することを特徴とする緊急用バッファ確Emergency disconnection buffer
保方式。Preservation method.
JP7139979A 1995-05-15 1995-05-15 Emergency buffer reservation method Expired - Fee Related JP2746207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7139979A JP2746207B2 (en) 1995-05-15 1995-05-15 Emergency buffer reservation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7139979A JP2746207B2 (en) 1995-05-15 1995-05-15 Emergency buffer reservation method

Publications (2)

Publication Number Publication Date
JPH08314837A JPH08314837A (en) 1996-11-29
JP2746207B2 true JP2746207B2 (en) 1998-05-06

Family

ID=15258126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7139979A Expired - Fee Related JP2746207B2 (en) 1995-05-15 1995-05-15 Emergency buffer reservation method

Country Status (1)

Country Link
JP (1) JP2746207B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04181349A (en) * 1990-11-15 1992-06-29 Nec Ibaraki Ltd Extension system for transmitting and receiving buffer

Also Published As

Publication number Publication date
JPH08314837A (en) 1996-11-29

Similar Documents

Publication Publication Date Title
US6147987A (en) Supporting load sharing across multiple network access servers
US6026085A (en) Architecture to support a single system image across multiple network access servers
JP3574493B2 (en) Line switching control method and apparatus
US6233232B1 (en) Supporting multilink connections across multiple network access servers
JP3608905B2 (en) Data communication system and data communication method
JP2746207B2 (en) Emergency buffer reservation method
JP2626622B2 (en) OSI communication system
JPH114259A (en) Virtual connection communication equipment and communication method
JPH0556057B2 (en)
JPH0473178B2 (en)
JP3088683B2 (en) Data communication system
JP2000090024A (en) Www gateway and www communication system
JP2820942B2 (en) Communication protocol processing method
JP3351866B2 (en) Transmission control method for communication terminal device
KR100437145B1 (en) Method and system for PDSN duplexing in wireless packet data network
JP3430628B2 (en) Communication control device, communication system, and communication control method
JPH11327938A (en) Flow control method
JP3070213B2 (en) Distributed packet switch
JP2812767B2 (en) Packet terminal device and communication system
JPS61257043A (en) High speed frame transmission system
JP3322748B2 (en) Communication path re-establishment method and communication device therefor
JP2654524B2 (en) LAN connection port switching method
JPS62183239A (en) Multiple address communication system
JP2783637B2 (en) Terminal status notification method
US6526040B1 (en) Exchange network system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970902

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980113

LAPS Cancellation because of no payment of annual fees