JPH01304561A - Level adding communication control system - Google Patents

Level adding communication control system

Info

Publication number
JPH01304561A
JPH01304561A JP63135113A JP13511388A JPH01304561A JP H01304561 A JPH01304561 A JP H01304561A JP 63135113 A JP63135113 A JP 63135113A JP 13511388 A JP13511388 A JP 13511388A JP H01304561 A JPH01304561 A JP H01304561A
Authority
JP
Japan
Prior art keywords
level
program
communication control
ready
ready queue
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.)
Granted
Application number
JP63135113A
Other languages
Japanese (ja)
Other versions
JP2655680B2 (en
Inventor
Toshihiko Hirabayashi
平林 利彦
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 JP63135113A priority Critical patent/JP2655680B2/en
Publication of JPH01304561A publication Critical patent/JPH01304561A/en
Application granted granted Critical
Publication of JP2655680B2 publication Critical patent/JP2655680B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To preferentially perform the protocol processing which frequently occurs by giving a level to each hierarchy and enqueuing this level in a corresponding ready queue and successively transferring the execution right to programs having high running levels. CONSTITUTION:At the time of start, level setting parts 4 of programs in respective hierarchies report running levels of hierarchies themselves to a ready queue control part 2-1. The ready queue control part 2-1 enqueues programs, whose execution request are received, in ready queues 2-2 of pertinent running levels in response to this report, and the execution right is transferred to the program enqueued in the ready queue of a higher running level to control the communication.

Description

【発明の詳細な説明】 〔概要〕 複数の階層にレベル付げを行って通信制御するレベル付
け通信制御方式に関し、 各階層がレベル設定を行い、これに対応したREADY
キューにエンキューして走行レベルの高いプログラムに
順次実行権を渡し、頻繁に発生する通信制御を優先的に
行うことを目的とし、自己の階層の走行レベルを予め設
定するレベル設定部と、走行レベルに対応づけた複数の
READYキューと、各階層のレベル設定部から通知さ
れた走行レベル情報に基づいて、実行要求のあったプロ
グラムを、対応する走行レベルの、上記READYキュ
ーに動的にエンキューL7て実行権の獲得順序を制御す
るREADYキュー制御部とを備え、これらのREAD
’/キューにエンキューされているより高い走行レベル
のプログラムに順次実行権を渡して通信制御するように
構成する。
[Detailed Description of the Invention] [Summary] Regarding a leveled communication control method in which communication is controlled by assigning levels to a plurality of hierarchies, each layer sets a level, and a corresponding READY
The purpose is to enqueue programs with higher running levels to sequentially pass execution rights to programs with higher running levels, and to prioritize communication control that occurs frequently. Based on the multiple READY queues associated with L7 and the running level information notified from the level setting section of each hierarchy, the program that has been requested to be executed is dynamically enqueued into the READY queue of the corresponding running level. and a READY queue control unit that controls the acquisition order of execution rights.
'/Configure the system to sequentially pass execution rights to programs at a higher running level enqueued in the queue to control communication.

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

本発明は、複数の階層にレベル付けを行って通信制御す
るレベル付け通信制御方式に関するものである。
The present invention relates to a leveling communication control method for controlling communication by leveling a plurality of hierarchies.

〔従来の技術と発明が解決しようとする課題〕従来の通
信制御アダプタは第5図に示すように構成されている。
[Prior art and problems to be solved by the invention] A conventional communication control adapter is constructed as shown in FIG.

ここで、プロトコル制御プログラムP1ないしP3は、
O3+のように階N(レイヤ)構造を持ち、夫々の階層
のプロトコル制御を行うものである。これらPlないし
P3の実行は、モニタプログラムが1つのREADYキ
ューにつないでその実行権を管理している。
Here, the protocol control programs P1 to P3 are
It has an N (layer) structure like O3+, and performs protocol control for each layer. The execution of these P1 to P3 is controlled by a monitor program by connecting them to one READY queue.

通信制御は、第6図に示すように、上位層レベル(例え
ばPl、トランスポート層)間でデータ転送を行うと、
下位層(例えばP2、ネットワークN)間ではそれに伴
う応答制御が図示のように行われる。このため、Plが
データ転送を1回行うと、P2、P3は数倍(2″、n
は階層数)のデータ転送(送受信)を行う必要があり、
下位層のプロトコル制御プログラムはど、頻繁に実行権
を獲得する必要がある。
Communication control is performed when data is transferred between upper layer levels (for example, Pl, transport layer) as shown in Figure 6.
Corresponding response control is performed between the lower layers (for example, P2 and network N) as shown in the figure. Therefore, when Pl performs one data transfer, P2 and P3 are transferred several times (2'', n
is the number of layers), it is necessary to transfer data (send and receive).
Lower layer protocol control programs must frequently obtain execution rights.

しかし、従来の第5図構成は、1つのREADYキュー
による実行権の獲得制御を行っていたため、先にREA
DYキューに接続されているプロトコル制御プログラム
が全ての処理を終わり、WAIT状態になるまで、新た
な事象(応答の受信、送信完了など)の処理に対して実
行権が渡らず、頻繁に動作すべき下位層のプロトコル制
御プログラムによる処理に遅延が生じてしまうという問
題があった。
However, in the conventional configuration shown in FIG. 5, acquisition of execution rights was controlled using one READY queue, so
Until the protocol control program connected to the DY queue finishes all processing and enters the WAIT state, execution rights are not handed over to process new events (reception of response, completion of transmission, etc.), and the program runs frequently. There was a problem in that a delay occurred in the processing by the lower layer protocol control program.

本発明は、各階層がレベル設定を行い、これに対応した
READYキューにエンキューして走行レベルの高いプ
ログラムに順次実行権を渡し、頻繁に動作すべき通信制
御を優先的に行うことを目的としてる。
The purpose of the present invention is to set the level of each layer, enqueue it to the corresponding READY queue, and sequentially pass execution rights to programs with a higher running level, thereby giving priority to communication control that should be executed frequently. Ru.

〔課題を解決する手段〕[Means to solve problems]

第1図を参照して課題を解決する手段を説明する。 Means for solving the problem will be explained with reference to FIG.

第1図において、READYキュー制御部2−1は、実
行要求のあったプログラム(タスク)について、J亥当
する走行レベルのREADYキューにエンキューして実
行権を渡す順序を管理するものである。
In FIG. 1, a READY queue control unit 2-1 manages the order in which programs (tasks) requested for execution are enqueued into the READY queue of the corresponding running level and handed over the execution right.

READYキュー2−2は、複数の走行レベルに対応し
て設けたREADYキューがら構成され、プログラムの
実行権の順序を管理するためのものである。
The READY queue 2-2 is composed of READY queues provided corresponding to a plurality of running levels, and is for managing the order of program execution rights.

レベル設定部4は、各階層のプログラムの実行権の走行
レベル(優先度)を設定するものである。
The level setting unit 4 sets the running level (priority) of the execution right of the program in each hierarchy.

〔作用〕[Effect]

本発明は、第1図に示すように、起動時に各階層のプロ
グラムのレベル設定部4が自己の階層の走行レベルをR
EADYキュー制御部2−1に通知したことに対応して
、READYキュー制御部2−1が実行要求を受けたプ
ログラム(タスク)について該当走行レベルのREAD
Yキュー2−2にエンキューし、走行レベルのより高い
READYキューにエンキューされているプログラムに
実行権を渡して通信制御するようにしている。
In the present invention, as shown in FIG.
In response to the notification to the EADY queue control unit 2-1, the READY queue control unit 2-1 executes READ at the corresponding running level for the program (task) for which the execution request has been requested.
The program is enqueued to the Y queue 2-2, and the execution right is passed to the program enqueued in the READY queue with a higher running level to control communication.

従って、各階層をレベル付けし、実行要求のあったプロ
グラム(タスク)について該当走行レベルのREADY
キューにエンキューし、走行レベルのより高いプログラ
ムに実行権を渡して通信処理を効率的に実行することが
可能となる。
Therefore, each hierarchy is leveled, and the READY of the corresponding running level is set for the program (task) that is requested to be executed.
It is possible to enqueue the program into a queue and hand over the execution right to a program with a higher running level to efficiently execute communication processing.

〔実施例〕〔Example〕

次に、第1図から第4図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 to 4.

第1図において、通信制御アダプタ1は、アプリケーシ
ョンプログラムからの通信要求に対応して、相手先にデ
ータを転送したり、あるいは相手先からデータ転送され
てきたデータをアプリケーションプログラムに渡したり
するものである。
In FIG. 1, a communication control adapter 1 transfers data to the other party in response to a communication request from an application program, or passes data transferred from the other party to the application program. be.

モニタプログラム2は、各階層の通信制御プログラムの
実行権を管理などするものであって、実行要求に対応し
て該当走行レベルのREADYキュー2−2にエンキュ
ーして実行権を渡す順序を管理するREADYキュー制
御部2−1、および各走行レベルに対して夫々設けたR
EADYキュー2−2などから構成されている。
The monitor program 2 manages the execution rights of communication control programs in each hierarchy, and manages the order in which the execution rights are handed over by enqueueing them to the READY queue 2-2 of the corresponding running level in response to execution requests. READY queue control unit 2-1 and R provided for each running level.
It consists of an EADY queue 2-2 and the like.

レベル設定部4は、各階層の通信制御プログラムの走行
レベルを起動時などにREADYキュー制御部2−1に
通知するものである。
The level setting section 4 notifies the READY queue control section 2-1 of the running level of the communication control program of each hierarchy at the time of startup and the like.

トンラスポート層(T層、4階層)5、ネットワーク層
(N層、3階層)6、データリンク層(D層、2階層)
7、物理層(1階層)8は、通信制御プログラムの階層
例を示す。
Transport layer (T layer, 4th layer) 5, Network layer (N layer, 3rd layer) 6, Data link layer (D layer, 2nd layer)
7. Physical layer (1st layer) 8 shows an example of the layer of the communication control program.

本体(端末)10は、通信制御アダプタlに対してデー
タを通信依頼したり、および受信したデータを受は取っ
たりする主体である。
The main body (terminal) 10 is a main body that requests data to be communicated to the communication control adapter l and receives and receives the received data.

次に、第2図および第3図を用いて、レベル設定部4が
起動時などに自己の階層の走行レベルの設定を行う手順
を説明する。
Next, with reference to FIGS. 2 and 3, a procedure in which the level setting unit 4 sets the running level of its own hierarchy at startup, etc. will be explained.

第2図において、■は、SGP (システム・ゼネレー
ション・パラメータ)を獲得する。これは、本体側のア
プリケーションプログラムが通信制御アダプタ1を起v
Jシたことに対応して、各階層であるトランスポート層
5などの各レベル設定部4が、自己の階層のSGPとし
てプロトコルタイマ値、リトライ値、および本実施例に
係わる走行レベルなどを獲得することを意味している。
In FIG. 2, ■ acquires SGP (system generation parameter). This means that the application program on the main unit starts the communication control adapter 1.
In response to this, each level setting unit 4 such as the transport layer 5 in each layer acquires a protocol timer value, a retry value, a running level related to this embodiment, etc. as the SGP of its own layer. It means to do.

■は、レベル設定部4がS、CHGLVL (S。In case of ■, the level setting section 4 is S, CHGLVL (S.

チェンジ・レベル)コマンドをモニタプログラム2に発
行して、各階層の走行レベルを通知する。
A change level) command is issued to the monitor program 2 to notify the running level of each hierarchy.

これに対応して、第3図■に示すように走行レベルを格
納したPCB (プログラム制御表)が静的に各階層毎
に作成される。この際、最も頻繁に動作すべきプログラ
ム(例えば物理N8の通信制御プログラム)の走行レベ
ルを最も高く、動作頻度の最も少ないプログラム(例え
ばトランスポート層5の通信制御プログラム)の走行レ
ベルを最も低くする。
Correspondingly, a PCB (program control table) storing driving levels is statically created for each hierarchy as shown in FIG. 3 (3). At this time, the running level of the program that operates most frequently (for example, the communication control program of the physical N8) is set to the highest, and the running level of the program that operates least frequently (for example, the communication control program of the transport layer 5) is set to the lowest. .

■は、各種初期化を行う。■ Performs various initializations.

以上の処理によって、モニタプログラム2を構成するR
EADYキュー制御部2−1が、トランスポート層5な
どの各階層の走行レベルを格納したPCBを静的に夫々
作成する。
Through the above processing, the R
The EADY queue control unit 2-1 statically creates PCBs storing the running levels of each layer such as the transport layer 5.

次に、第4図フローチャートを用いて本発明の通信制御
の動作を説明する。
Next, the communication control operation of the present invention will be explained using the flowchart of FIG.

第4図において、■は、現在走行中のプログラムがあれ
ば、その動作状態を退避し、READYキュー2−2の
先頭に残しておく。
In FIG. 4, if there is a program currently running, its operating state is saved and left at the head of the READY queue 2-2.

@は、該当プログラムに対応する走行レベルのREAD
Yキューに接続する。これら0、■は、例えばトンラス
ポート層5の通信制御プログラムが実行権を獲得して動
作中に、最も走行レベルの高い物理N8の通信制御プロ
グラムに対する実行要求(第3図■実行要求)が発生し
た場合(例えば回線より電文を受信し、待ち事象(WA
IT>が解決した場合)、当該物理層8の通信制御プロ
グラムを最も高いレベルのREADYキューに接続(第
3図◎エンキュー)した後、この最も高いレベルの物理
層8の通信制御プログラムに実行権を渡す。この時、走
行中であったトンラスポート層5の通信制御プログラム
はもとのREADYキ二一の先頭につないだままにして
おく。
@ indicates the driving level READ corresponding to the corresponding program.
Connect to Y queue. These 0 and ■ indicate that, for example, when the communication control program of the transport layer 5 acquires the execution right and is operating, an execution request (■ execution request in Figure 3) to the communication control program of the physical N8 with the highest running level is made. If this occurs (for example, when a message is received from the line, a waiting event (WA)
IT> is resolved), connect the communication control program of the physical layer 8 to the highest level READY queue (◎Enqueue in Figure 3), and then grant execution authority to the communication control program of the highest level physical layer 8. give. At this time, the communication control program of the tunnel port layer 5 which was running is left connected to the beginning of the original READY key 21.

■は、各走行レベルのREADYキューをチエツクし、
最も高い走行レベルのプログラムに実行権を渡す。
■Check the READY queue for each running level,
Pass execution rights to the program with the highest running level.

■は、各プログラムにおいて、発生したイベント(実行
要求)に対応したプロトコル処理を行う。
(2) In each program, protocol processing corresponding to the event (execution request) that occurs is performed.

■は、処理が終了したら、新たなイベント待ちのWAI
Tに入る。
■ is a WAI waiting for a new event after processing is completed.
Enter T.

[相]は、8亥当フ゛ログラムをREADYキュー力)
ら外す(デキューする)。そして、■以下を繰り返し実
行する。
[Phase] Ready the 8-digit program)
(dequeue). Then, repeat the steps below.

以上のように、新たなイベントが発生した場合にl亥当
しベルのREADYキューにエンキューし、より高いレ
ベルのREADYキューにエンキューされているプログ
ラムに実行権を優先的に与えて、該当プロトコル処理を
効率的に行うことが可能となる。
As described above, when a new event occurs, it is enqueued to the READY queue of the appropriate bell, and the execution right is given priority to the program enqueued to the READY queue at a higher level, and the corresponding protocol is processed. can be carried out efficiently.

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

以上説明したように、本発明によれば、各階層をレベル
付けし、実行要求のあったイヘントについて言亥当走行
しベルのREADYキューにエンキューし、走行レベル
のより高い階層の通信制御プログラムに実行権を渡す構
成を採用しているため、頻繁に発生ずるプロトコル処理
を優先的に処理することができる。また、各通信制御プ
ログラムのプロトコル処理に要する時間が自己の階層以
下のプログラムの動作時間を考慮するだけでよくなるた
め、各階層毎のタイマ値を独立かつ容易に決定すること
が可能となる。
As explained above, according to the present invention, each hierarchy is leveled, an event that is requested to be executed is executed and enqueued to the READY queue of the bell, and the communication control program of the hierarchy with a higher execution level is executed. Because it uses a configuration that passes execution rights, frequently occurring protocol processing can be processed preferentially. Furthermore, since the time required for protocol processing of each communication control program only needs to take into account the operating time of programs below its own hierarchy, it becomes possible to independently and easily determine the timer value for each hierarchy.

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

第1図は本発明の1実施例構成図、第2図は本発明に係
わる前処理フローチャート、第3図は本発明の動作説明
図、第4図は本発明の動作フローチャート、第5図は従
来技術の構成図、第6図はデータ転送のプロトコルシー
ケンス例を示す。 図中、1は通信制御アダプタ、2はモニタプログラム、
2−1はREADYキュー制御部、2−2はREADY
キュー、4はレベル設定部、5ないし8は各階層の通信
制御プログラム、10は本体く端末)、11はアプリケ
ーションプログラムを表す。
FIG. 1 is a configuration diagram of one embodiment of the present invention, FIG. 2 is a preprocessing flowchart according to the present invention, FIG. 3 is an explanatory diagram of the operation of the present invention, FIG. 4 is an operation flowchart of the present invention, and FIG. FIG. 6, a configuration diagram of the prior art, shows an example of a protocol sequence for data transfer. In the figure, 1 is a communication control adapter, 2 is a monitor program,
2-1 is READY queue control unit, 2-2 is READY
4 is a level setting section, 5 to 8 are communication control programs for each layer, 10 is a main body (main unit or terminal), and 11 is an application program.

Claims (1)

【特許請求の範囲】 複数の階層にレベル付けを行って通信制御するレベル付
け通信制御方式において、 自己の階層の走行レベルを予め設定するレベル設定部(
4)と、 走行レベルに対応づけた複数のREADYキュー(2−
2)と、 各階層のレベル設定部(4)から通知された走行レベル
情報に基づいて、実行要求のあったプログラムを、対応
する走行レベルの上記READYキュー(2−2)に動
的にエンキューして実行権の獲得順序を制御するREA
DYキュー制御部(2−1)とを備え、 これらのREADYキュー(2−2)にエンキューされ
ているより高い走行レベルのプログラムに順次実行権を
渡して通信制御するように構成したことを特徴とするレ
ベル付け通信制御方式。
[Claims] In a leveling communication control method for leveling a plurality of hierarchies and controlling communication, there is provided a level setting unit (
4) and multiple READY queues (2-
2), and dynamically enqueues the program requested for execution into the READY queue (2-2) of the corresponding driving level based on the driving level information notified from the level setting unit (4) of each hierarchy. REA that controls the acquisition order of execution rights.
DY queue control unit (2-1), and is configured to sequentially pass execution rights to higher running level programs enqueued in these READY queues (2-2) to control communication. A leveled communication control method.
JP63135113A 1988-06-01 1988-06-01 Communication control method with level Expired - Lifetime JP2655680B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63135113A JP2655680B2 (en) 1988-06-01 1988-06-01 Communication control method with level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63135113A JP2655680B2 (en) 1988-06-01 1988-06-01 Communication control method with level

Publications (2)

Publication Number Publication Date
JPH01304561A true JPH01304561A (en) 1989-12-08
JP2655680B2 JP2655680B2 (en) 1997-09-24

Family

ID=15144136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63135113A Expired - Lifetime JP2655680B2 (en) 1988-06-01 1988-06-01 Communication control method with level

Country Status (1)

Country Link
JP (1) JP2655680B2 (en)

Also Published As

Publication number Publication date
JP2655680B2 (en) 1997-09-24

Similar Documents

Publication Publication Date Title
US5247671A (en) Scalable schedules for serial communications controller in data processing systems
KR100509794B1 (en) Method of scheduling jobs using database management system for real-time processing
EP0362107B1 (en) Method to manage concurrent execution of a distributed application program by a host computer and a large plurality of intelligent work stations on an SNA network
KR100762388B1 (en) Low-overhead processor interfacing
EP0362105A2 (en) Method for processing program threads of a distributed application program by a host computer and an intelligent work station in an SNA LU 6.2 network environment
KR20000004988A (en) Method and apparatus for client managed flow control on a limited memorycomputer system
US4376982A (en) Protocol for inter-processor dialog over a communication network
CN104102548A (en) Task resource scheduling processing method and task resource scheduling processing system
US5506988A (en) Program-controlled communication installation
US8090801B1 (en) Methods and apparatus for performing remote access commands between nodes
JPH01304561A (en) Level adding communication control system
JPS62172840A (en) Transferring system for data
JPS62126457A (en) Distributed data processing system
JPH1196108A (en) Computer system and bus control device
JPH06243077A (en) Distributed transaction processing system
JPH11353197A (en) Shared pool resource control system
JP2001014266A (en) Dma transfer circuit and dma transfer method
JPH06332848A (en) Data transfer system
JPS63121342A (en) Reception buffer control system for communication processing equipment
JPH0789323B2 (en) Multiple interrupt control method
JPS63145550A (en) Processing system for file transfer
JPH0322067A (en) Information processor
JPH0381856A (en) Data transfer control system
JPS62214456A (en) Data transfer schedule system
JPH04274524A (en) System for controlling inter-process communication