JPS6242644A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPS6242644A
JPS6242644A JP60182227A JP18222785A JPS6242644A JP S6242644 A JPS6242644 A JP S6242644A JP 60182227 A JP60182227 A JP 60182227A JP 18222785 A JP18222785 A JP 18222785A JP S6242644 A JPS6242644 A JP S6242644A
Authority
JP
Japan
Prior art keywords
data
reception
transmission
transmitting
processing
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
JP60182227A
Other languages
Japanese (ja)
Inventor
Tetsuo Senbon
千本 哲男
Tadahide Komatsu
小松 唯英
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60182227A priority Critical patent/JPS6242644A/en
Publication of JPS6242644A publication Critical patent/JPS6242644A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To perform well-balanced transmission and reception operations without any bias by transmitting and receiving transmission data and reception data alternately when transmission data and reception data exist together. CONSTITUTION:When transmission data is generated in a central processing unit (CPU) 1, a communication controller 10 is interrupted through a line 13, and a transmission processing part 18 transmits transmission data 1 to a data transmitting and receiving device 12 of the other party if this interruption is concerned with the transmission processing. When transmission data 2 exists, the similar processing is performed. This processing is repeated until all transmission data are transmitted. If data is received from the device 12 during the processing of transmission data 2, the control is transferred to a reception reporting part 20 whose interruption level is higher than that of the transmission processing part 18. Then, reception data is connected to a reception processing part 19, and the communication controller 10 is restored from the interruption immediately to process transmission data 2, and the control is transferred to the reception processing part 19. The reception processing part 19 checks the existence of a reception data queue, and reception data is transferred to the CPU side if it exists.

Description

【発明の詳細な説明】 〔概要〕 通信制御装置に送信データ又は受信データのいずれか一
方しかない場合には、そのデータの通信制御装置からの
送出を継続して行なうが、送信又は受信中に受信データ
又は送信データの発生をみるならばそれに応答して送信
処理手段及び受信処理手段に交互の送受信を生ぜしめて
バランスのとれた送受信処理を遂行せしめ得るようにし
た。
[Detailed Description of the Invention] [Summary] If the communication control device has only either transmission data or reception data, the data continues to be sent from the communication control device, but during transmission or reception, When reception data or transmission data is generated, the transmission processing means and the reception processing means are caused to perform alternate transmission and reception in response to the occurrence of reception data or transmission data, so that balanced transmission and reception processing can be performed.

〔産業上の利用分野〕[Industrial application field]

本発明は通信制御装置に関し、更に詳しく云えば、送受
信処理の均衡化手段を備えた通信制御装置に関する。
The present invention relates to a communication control device, and more specifically, to a communication control device equipped with means for balancing transmission and reception processing.

データ通信システムの中には、中央処理装置(以下、C
PUと略称する。)が通信制御装置を介して相手方デー
タ送受信装置に接続されてデータ通信を行なう如きシス
テム、例えばLAN (ローカルエリアネットワーク)
がある。
In a data communication system, a central processing unit (hereinafter referred to as C
It is abbreviated as PU. ) is connected to the other party's data transmitting/receiving device via a communication control device to perform data communication, such as a LAN (local area network).
There is.

このようなシステムにおいて、大量のデータ伝送の交信
が行なわれる場合において、データ交信処理を円滑に遂
行するためにその送受データ間における均衡性が要求さ
れることがある。
In such a system, when a large amount of data is transmitted, balance may be required between the transmitted and received data in order to smoothly carry out the data communication process.

〔従来の技術〕[Conventional technology]

CPU側と相手方データ送受信装置との間のデータの送
受を行なう従来の通信制御装置は次のように構成されて
いた。
A conventional communication control device for transmitting and receiving data between a CPU side and a data transmitting/receiving device of the other party was configured as follows.

CPUに送信すべきデータが生ずると、CPUから通信
制御装置に対して割込みをかける。その割込み要求を受
は取った通信制御装置はその割込み要因を解析しその割
込み要因がデータの送信に関するものであれば、送信デ
ータが通信制御装置に転送された後そのデータは通信制
御装置から相手方データ送受信装置に送信される。
When data to be sent to the CPU occurs, the CPU issues an interrupt to the communication control device. The communication control device that received the interrupt request analyzes the interrupt cause, and if the interrupt factor is related to data transmission, the data is transferred from the communication control device to the other party. The data is sent to the data transmitting/receiving device.

相手方データ送受信装置からのデータ受信に際して、通
信制御装置内の受信処理部にデータを受信した旨の割込
みが起こり、しかもCPU側がデータを受は取ることの
可能な状態にあると、CPU側に受信データが転送され
、CPUに対し゛ζ通信制御装置から受信データの転送
終了割込みを送ってそのデータ受信を終了する。
When receiving data from the other party's data transmitting/receiving device, if an interrupt occurs in the reception processing unit in the communication control device indicating that the data has been received, and the CPU side is in a state where it can receive or receive data, the CPU side receives the data. The data is transferred, and the communication control device sends a received data transfer end interrupt to the CPU to end the data reception.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した通信制御装置における送信処理と受信処理とは
独立して行なわれているため、次のような問題が生ずる
Since the transmission processing and reception processing in the communication control device described above are performed independently, the following problem occurs.

送信処理と受信処理とを同じ処理順位レベルで遂行する
と、送信データ、受信データがあまり多くない場合には
送受信間のアンバランスは問題となってクローズアップ
して来ない。しかしながら、大量のデータの送信或いは
受信処理を行なうと、その送信の場合は送信処理のみが
行なわれ、受信データがあっても受信処理は行なわれな
いという事態が発生する。又、受信の場合においては、
逆に送信処理が行なわれ難くなるということが生ずる。
If transmission processing and reception processing are performed at the same processing order level, the imbalance between transmission and reception will become a problem and will not be taken into consideration if there is not much transmission data or reception data. However, when transmitting or receiving a large amount of data, a situation arises in which only the transmitting process is performed and no receiving process is performed even if there is received data. In addition, in the case of reception,
Conversely, it may become difficult to perform the transmission process.

又、送信処理順位レベルを受信処理順位レベルより高く
すると、送信処理が優先的に行なわれることになり、送
信データが多い場合には受信処理がなかなか行なわれな
いこととなる。
Furthermore, if the transmission processing order level is set higher than the reception processing order level, the transmission processing will be performed preferentially, and if there is a large amount of transmission data, the reception processing will not be performed easily.

これとは逆に、受信処理順位レベルを送信処理順位レベ
ルより高くすると、送信処理順位レベルを受信処理順位
レベルより高くした場合と逆の状態が生ずる。
On the contrary, if the reception processing priority level is made higher than the transmission processing priority level, the opposite situation will occur when the transmission processing priority level is made higher than the reception processing priority level.

本発明は上述した問題点に鑑みて創作されたもので、バ
ランスのとれた送受信処理を遂行し得る通信制御装置を
提供することを目的とする。
The present invention was created in view of the above-mentioned problems, and an object of the present invention is to provide a communication control device that can perform balanced transmission and reception processing.

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

第1図は本発明の原理ブロック図を示す。この図におい
て、1は第1のデータ送受信装置2と第2のデータ送受
信装置3との間のデータ送受信を制御する通信制御装置
である。この通信制御装置1は送信側となるデータ送受
信装置から受信側となるデータ送受信装置へデータ送信
を行なうためのデータ送信処理手段4と、受信側となる
データ送受信装置から送信側となるデータ送受信装置へ
データ受信を行なうためのデータ受信処理手段5と、送
信又は受信途中において受信データ又は送信データの発
生に応答して送信処理手段及び受信処理手段に交互にそ
の動作を生ぜしめる制御手段6とをその要部として設け
ている。
FIG. 1 shows a block diagram of the principle of the present invention. In this figure, reference numeral 1 denotes a communication control device that controls data transmission and reception between a first data transmission and reception device 2 and a second data transmission and reception device 3. This communication control device 1 includes a data transmission processing means 4 for transmitting data from a data transmitting/receiving device on the transmitting side to a data transmitting/receiving device on the receiving side, and a data transmitting/receiving device from the data transmitting/receiving device on the receiving side to the data transmitting/receiving device on the transmitting side. a data reception processing means 5 for receiving data, and a control means 6 for causing the transmission processing means and the reception processing means to operate alternately in response to generation of reception data or transmission data during transmission or reception. It is provided as the main part.

〔作用〕[Effect]

第1のデータ送受信装置2と第2のデータ送受信装置3
との間でデータが送信又は受信されている途中において
、受信データ又は送信データが発生すると、その発生に
応答する制御手段、6は送信処理手段4及び受信処理手
段5に交互にその動作を生ぜしめる。
First data transmitting/receiving device 2 and second data transmitting/receiving device 3
When received data or transmitted data is generated while data is being transmitted or received between them, the control means 6 responds to the occurrence and causes the transmitting processing means 4 and the receiving processing means 5 to perform the same operation alternately. Close.

このような交互の送受信動作により、送受信動作に片寄
りが生ずることはないから、バランスのとれた送受信処
理を遂行し得る。
Due to such alternating transmission and reception operations, no imbalance occurs in the transmission and reception operations, so that balanced transmission and reception processing can be performed.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示す。この図において、1
0は通信制御装置でこれは中央処理装置(CPU)11
と相手側データ送受信装置12との間のデータ送受信制
御を行なうものである。13はCPUIIからの割込み
信号のための線で、14はCPUI 1への割込み要求
信号のための線である。15はデータを転送するための
バスである。16はデータ送信線で、17はデータ受信
線である。18,19,20.21は夫々、通信制御装
置10に設けられる送信処理部、受信処理部。
FIG. 2 shows an embodiment of the invention. In this figure, 1
0 is the communication control unit and this is the central processing unit (CPU) 11
It controls data transmission and reception between the data transmission and reception device 12 of the other party. 13 is a line for an interrupt signal from CPUII, and 14 is a line for an interrupt request signal to CPUI1. 15 is a bus for transferring data. 16 is a data transmission line, and 17 is a data reception line. 18, 19, 20, and 21 are a transmission processing section and a reception processing section provided in the communication control device 10, respectively.

受信通知部及びバッファである。送信処理部18及び受
信処理部19はCPUl0からの割込みにより起動され
るように構成されており、受信通知部20は相手側デー
タ送受信装置12からデータを受信したとき起動される
ものであって、送信処理部18及び受信処理部19より
高い優先順位で動作するように構成されている。バッフ
ァ21は受信データを受信データキュー(受信データ待
ち行列)として一時貯えるものである。
This is a reception notification section and a buffer. The transmission processing section 18 and the reception processing section 19 are configured to be activated by an interrupt from the CPU10, and the reception notification section 20 is activated when data is received from the data transmission/reception device 12 on the other side. It is configured to operate with a higher priority than the transmission processing section 18 and the reception processing section 19. The buffer 21 temporarily stores received data as a received data queue.

このように構成される本発明装置の動作を以下に説明す
る。
The operation of the apparatus of the present invention configured as described above will be explained below.

CPUIIにおいて送信データが作成されると、CPU
IIは線13を介して通信制御装置10に対し割込みを
かける。この割込みを受けた通信制御装置10は割込み
要因を解析し、送信処理に関する割込みであれば、送信
処理部18はCPUl1から送信データ1を受は取って
これを相手側データ送受信装置12へ送信する。送信デ
ータ2が存在すると、同様の処理を行なう。このような
処理は送信データがなくなるまで繰り返す。
When transmission data is created in the CPU II, the CPU
II interrupts the communication control unit 10 via line 13. The communication control device 10 that received this interrupt analyzes the cause of the interrupt, and if the interrupt is related to transmission processing, the transmission processing unit 18 receives and receives the transmission data 1 from the CPU11 and transmits it to the data transmission/reception device 12 on the other side. . If transmission data 2 exists, similar processing is performed. Such processing is repeated until there is no more data to send.

上述のような送信データ2の送信処理中に相手側データ
送受信装置12からデータを受信すると、割込みレベル
が送信処理部18より高い受信通知部20に制御が移さ
れる。受信通知部20は受信データを受信処理部19の
受信データキューにつなぐと、直ちに割込みから復帰し
て送信データ2についての処理が終了すると、受信処理
部19に制御が移る。受信処理部19は受信データキュ
ーの存在を調べ、そこに受信データがあるならば、受信
データを1個、受信データキューから外しその受信デー
タをCPU側に転送する。
When data is received from the other party's data transmitting/receiving device 12 during the transmission process of the transmission data 2 as described above, control is transferred to the reception notification section 20 whose interrupt level is higher than that of the transmission processing section 18 . When the reception notification section 20 connects the received data to the reception data queue of the reception processing section 19, it immediately returns from the interrupt and when the processing for the transmission data 2 is completed, control is transferred to the reception processing section 19. The reception processing unit 19 checks the existence of the reception data queue, and if there is reception data there, removes one piece of reception data from the reception data queue and transfers the reception data to the CPU side.

そして、CPUI 1から割込みが無くなっている状態
においてデータを受信すると、この場合にも受信通知部
20が起動されて受信データが受信データキューにつな
げられた後、CPUI 1に対し割込み要求が出される
。割込み要求を受は取ったCPUI 1は通信制御装置
10に対して割込みをかける。この割込みが生ずると、
送信処理部18は送信要求がないので何も処理を行なわ
ず受信処理部19に制御が移る。受信データキューは存
在しているので、その受信データはCPUI 1へ転送
される。
Then, when data is received from CPU 1 in a state where there are no interrupts, the reception notification unit 20 is activated in this case as well, and after the received data is connected to the reception data queue, an interrupt request is issued to CPU 1. . The CPU 1 that receives the interrupt request issues an interrupt to the communication control device 10 . When this interrupt occurs,
Since there is no transmission request, the transmission processing section 18 performs no processing and control is transferred to the reception processing section 19. Since the receive data queue exists, the received data is transferred to CPUI1.

上述の如く、送受信データが存在している状態になると
、送信処理と受信処理とは交互に生ぜしめられる。従っ
て、複数の送信データ処理中であっても、データの受信
処理を行なうことができるし、又多量の受信データの受
信中にあっても、Cpuioからの送信要求を受は付け
ることができる。これはバランスの良いデータ送受信を
遂行することを可能にする。
As described above, when transmission and reception data exist, transmission processing and reception processing occur alternately. Therefore, data reception processing can be performed even when a plurality of transmission data are being processed, and transmission requests from the CPU can be accepted even when a large amount of reception data is being received. This makes it possible to perform balanced data transmission and reception.

なお、上記実施例においては、受信側のみにデータキュ
ーを設ける場合について説明したが、送信側にもデータ
キューを設ける構成にしてもよい。
In the above embodiment, a case has been described in which a data queue is provided only on the receiving side, but a configuration may also be adopted in which a data queue is provided on the transmitting side as well.

又、上述したシステム構成以外のシステムで用いられる
通信制御装置にも本発明を適用し得る。
Further, the present invention can also be applied to communication control devices used in systems other than the system configuration described above.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、送信データ及び受
信データの併存状態になると、それらデータの交互送受
信が行なわれるから、バランスのとれた送受信処理を遂
行し得る。
As described above, according to the present invention, when transmission data and reception data coexist, the data are alternately transmitted and received, so that balanced transmission and reception processing can be performed.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す図である。 第1図及び第2図において、 1は通信制御装置、 2.3はデータ送受信装置、 4は送信処理手段、 5は受信処理手段、 6は制御手段、 21はバッファである。 Figure 1 is a block diagram of the principle of the present invention. FIG. 2 is a diagram showing an embodiment of the present invention. In Figures 1 and 2, 1 is a communication control device; 2.3 is a data transmitting and receiving device, 4 is a transmission processing means; 5 is a reception processing means; 6 is a control means; 21 is a buffer.

Claims (2)

【特許請求の範囲】[Claims] (1)第1のデータ送受信装置(2)と第2のデータ送
受信装置(3)との間のデータ送受信を制御する通信制
御装置(1)において、 送信側となるデータ送受信装置から受信側となるデータ
送受信装置へデータ送信を行なうためのデータ送信処理
手段(4)と、 受信側となるデータ送受信装置から送信側となるデータ
送受信装置へデータ受信を行なうためのデータ受信処理
手段(5)と、 送信又は受信途中において受信データ又は送信データの
発生に応答して前記送信処理手段(4)及び受信処理手
段(5)に交互にその動作を生ぜしめる制御手段(6)
とを備えて構成したことを特徴とする通信制御装置。
(1) In a communication control device (1) that controls data transmission and reception between a first data transmitting/receiving device (2) and a second data transmitting/receiving device (3), from the data transmitting/receiving device on the transmitting side to the receiving side. a data transmission processing means (4) for transmitting data to a data transmission/reception device serving as a receiver; and a data reception processing means (5) for receiving data from a data transmitting/receiving device serving as a receiving side to a data transmitting/receiving device serving as a transmitting side; , control means (6) for causing the transmission processing means (4) and the reception processing means (5) to perform their operations alternately in response to the generation of reception data or transmission data during transmission or reception;
A communication control device comprising:
(2)前記制御手段は前記送信処理手段(4)及び受信
処理手段(5)より高い割込みレベルを割り当てられて
おり、送信中の受信データの発生による割込みに応答し
て受信データの受信処理手段内の受信データ待ち行列格
納部(21)への格納を生ぜしめた後送信データと受信
データ待ち行列格納部(21)の受信データとの交互の
送出を生ぜしめるように構成されたことを特徴とする特
許請求の範囲第1項記載の通信制御装置。
(2) The control means is assigned a higher interrupt level than the transmission processing means (4) and the reception processing means (5), and the control means is assigned a higher interrupt level than the transmission processing means (4) and the reception processing means (5), and the reception processing means for the reception data responds to an interrupt caused by the generation of reception data during transmission. characterized in that it is configured to cause the sending data to be alternately sent out and the received data in the receive data queue store (21) after causing the storage in the receive data queue store (21) in the receive data queue store (21). A communication control device according to claim 1.
JP60182227A 1985-08-20 1985-08-20 Communication controller Pending JPS6242644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60182227A JPS6242644A (en) 1985-08-20 1985-08-20 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60182227A JPS6242644A (en) 1985-08-20 1985-08-20 Communication controller

Publications (1)

Publication Number Publication Date
JPS6242644A true JPS6242644A (en) 1987-02-24

Family

ID=16114564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60182227A Pending JPS6242644A (en) 1985-08-20 1985-08-20 Communication controller

Country Status (1)

Country Link
JP (1) JPS6242644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0856220A (en) * 1994-08-12 1996-02-27 Nec Shizuoka Ltd Time division multiplexer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0856220A (en) * 1994-08-12 1996-02-27 Nec Shizuoka Ltd Time division multiplexer

Similar Documents

Publication Publication Date Title
US6693880B2 (en) System of controlling the flow of information between senders and receivers across links being used as channels
US6854017B2 (en) Method of controlling the flow of information between senders and receivers across links being used as channels
JPS6242644A (en) Communication controller
JP3149047B2 (en) Redundant data processor
JP2564499B2 (en) Transmission data flow control method
JPS62152252A (en) Communicating control system
JPH0511341B2 (en)
JPH0561820B2 (en)
JPH0923285A (en) Controller for multiplex transmission line
JPH04362835A (en) Data transfer method
JPH0256149A (en) Communication processor
JPS61260350A (en) Parallel processing control system
JPH04278732A (en) Device switching system
JPH0581213A (en) Distributed processing system
JPS588008B2 (en) Transmission control method
JPH0484531A (en) Communication system for local network system
JPS6074836A (en) Data transfer system
JPS5826866B2 (en) Communication control device
JPH01241660A (en) Communication system between processor
JPS63234649A (en) Communication control system
JPS5952947A (en) Bi-directional communicating system
JPH01314326A (en) Communication control system in data processing system
JPH01239661A (en) Bus repeater
JPH04360342A (en) Buffer deficiency avoidance system for host computer system and communication processor
JPS63149938A (en) Packet transfer method