JP2581558B2 - Distributed processing system - Google Patents

Distributed processing system

Info

Publication number
JP2581558B2
JP2581558B2 JP62139411A JP13941187A JP2581558B2 JP 2581558 B2 JP2581558 B2 JP 2581558B2 JP 62139411 A JP62139411 A JP 62139411A JP 13941187 A JP13941187 A JP 13941187A JP 2581558 B2 JP2581558 B2 JP 2581558B2
Authority
JP
Japan
Prior art keywords
function code
processing
data
transmission
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62139411A
Other languages
Japanese (ja)
Other versions
JPS63303461A (en
Inventor
俊夫 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62139411A priority Critical patent/JP2581558B2/en
Publication of JPS63303461A publication Critical patent/JPS63303461A/en
Application granted granted Critical
Publication of JP2581558B2 publication Critical patent/JP2581558B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、一連のデータ処理を複数のデータ処理装置
に分散して処理させるデータ分散処理システムに関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data distribution processing system in which a series of data processing is distributed to a plurality of data processing devices and processed.

〔従来の技術〕[Conventional technology]

分散処理システムは、計算機を用いた複数のデータ処
理装置(以下、処理装置という)を種々の結合方式で共
通伝送路を介して接続し、一連のデータ処理を各処理装
置分散させて行うシステムである。
A distributed processing system is a system in which a plurality of data processing devices (hereinafter, referred to as processing devices) using a computer are connected via a common transmission line by various coupling methods, and a series of data processing is performed by distributing the processing devices. is there.

分散処理システムにおいては、各処理装置に分散され
た処理内容に対応するプログラムが設定されており、何
らかの情報に基づいて上記各処理装置のプログラムが起
動されて一連の処理が実行される。この各処理装置のプ
ログラムの起動方法の例として、当該自処理装置内に当
該プログラムを実行するのに必要なデータを共通伝送路
から取込み、それらのデータがそろつた時点でそのプロ
グラムを起動する方法が知られている(特開昭57−1463
61号)。また、この場合に共通伝送路上のデータが自処
理装置のプログラム起動に必要かどうかの判断を行う方
法の例として、機能コードを用いて判別する方法が知ら
れている(特開昭56−111353号)。これらの方法を用い
た分散処理システムは、システム全体を管理するための
管理用の処理装置を必要とすることなく、各処理装置に
よりそれぞれ自律分散して非同期的にフリーラン状態で
データ処理が可能である。
In the distributed processing system, a program corresponding to the processing content distributed to each processing device is set, and a program of each processing device is started based on some information to execute a series of processing. As an example of a method of activating a program of each processing device, a method of fetching data necessary for executing the program into the own processing device from a common transmission line and activating the program when the data is ready (Japanese Patent Laid-Open No. Sho 57-1463)
No. 61). In this case, as an example of a method of determining whether data on the common transmission path is necessary for starting a program of the processing device, a method of determining using a function code is known (Japanese Patent Application Laid-Open No. 56-111353). issue). A distributed processing system using these methods can autonomously distribute data and execute data processing in an asynchronous free-run state by each processing device without the need for a management processing device to manage the entire system. It is.

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

上記従来技術では、特定のプログラムの不具合等によ
り、機能コードが過度に発生したとき、機能コードの伝
送バツフアエリアが満杯となり、システムダウンとなる
可能性が高かつた。
In the prior art, when a function code is excessively generated due to a failure of a specific program or the like, there is a high possibility that the transmission buffer area of the function code becomes full and the system goes down.

本発明の目的は上記伝送バツフアが満杯となる確率を
低減させることにある。
It is an object of the present invention to reduce the probability that the transmission buffer will be full.

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

上記目的は、プログラムにて送出する機能コードの機
能コードごとの発生回数を常時記憶監視し、その発生回
数が一定値以下となるようにプログラム処理を遅延させ
ることにより達成される。
The above object is achieved by constantly storing and monitoring the number of occurrences of function codes transmitted by a program for each function code, and delaying the program processing so that the number of occurrences becomes a certain value or less.

すなわち、本発明は自己のデータ処理装置内で発生す
る伝送データに当該データ内容を示す機能コードを付加
して送出する複数のデータ処理装置が共通伝送路を介し
て接続されてなる分散処理システムにおいて、前記各デ
ータ処理装置は、機能コードが発生するごとに該機能コ
ードの発生回数をカウントするカウント手段と、テーブ
ルに記憶された制限値と前記カウント手段によりカウン
トされた値を比較する比較手段と、該比較手段により前
記機能コードの発生回数が制限値以上の場合に前記機能
コードの送出を遅延させる遅延手段と、前記カウント手
段によりカウントされた値を一定周期でクリアする手段
とを備えたことを特徴とする。
That is, the present invention relates to a distributed processing system in which a plurality of data processing devices for transmitting transmission data generated in its own data processing device with a function code indicating the data content added thereto and connected through a common transmission path. Wherein each of the data processing devices includes a counting unit that counts the number of occurrences of the function code each time a function code is generated, and a comparing unit that compares a limit value stored in a table with a value counted by the counting unit. A delay means for delaying the transmission of the function code when the number of occurrences of the function code is equal to or greater than a limit value by the comparison means, and a means for clearing the value counted by the counting means at a constant cycle. It is characterized by.

より具体的な態様では、前記発生回数制限値は前記共
通伝送路の伝送能力および他処理装置の処理能力に応じ
て設定される。
In a more specific aspect, the occurrence count limit value is set according to the transmission capacity of the common transmission path and the processing capacity of another processing device.

〔作用〕[Action]

上記本発明の構成によれば、各データ処理装置におい
ては自己の機能コード発生回数を一定に抑制するため、
伝送バツフアのオーバフローの発生確率を低減させるこ
とができ、また各データ処理装置相互間でデータの伝送
頻度を平均化することができ、したがつてデータの分散
処理上の各処理を平均的に行うことが可能となる。
According to the configuration of the present invention, in each data processing device, in order to suppress the number of occurrences of its own function code to be constant,
The probability of occurrence of transmission buffer overflow can be reduced, and the frequency of data transmission can be averaged between the data processing devices, so that each processing in the data distribution processing is performed on average. It becomes possible.

〔実施例〕 次に、本発明に係る分散処理システムの実施例を図面
に基づいて説明する。
Embodiment Next, an embodiment of the distributed processing system according to the present invention will be described with reference to the drawings.

分散処理システムの概要構成 まず、第2図により分散処理システムの概要構成につ
いて説明する。なお、以下の実施例において各処理装置
の結合方式としてループ伝送路によるものを示したが係
合方式は他の方式のものであつても本発明の適用が可能
である。
First, a schematic configuration of a distributed processing system will be described with reference to FIG. In the following embodiments, a method using a loop transmission line is shown as a method of coupling the respective processing devices, but the present invention can be applied to other types of engagement methods.

第2図において、11〜13は、その内部にアプリケーシ
ヨンプログラムを格納しており、このプログラムを実行
する処理装置である。21〜23は伝送路上のデータ伝送制
御を行う伝送制御装置(以下、NCP(Network Control P
rocessor)と呼ぶ)である。各NCP21〜23と各処理装置1
1〜13は、それぞれ双方向伝送媒体24,25,26で構成され
ている。処理装置11〜13の処理結果はメツセージ(第3
図)として各NCP21〜23を経て伝送路1に送出される。
各NCP21〜23は伝送路1上を流れるメツセージが自己に
接続されている処理装置11,12,13に必要がどうかをメツ
セージに付加されている機能コードにより判定し、必要
と設定したメツセージを自己に接続されている処理装置
に送る。各装置11〜13は、当該処理装置内で実際の処理
を行うためにその内部に記憶したアプリケーシヨンプロ
グラムの実行に必要な全てのメツセージがそろつた時点
でこのプログラムを起動する。起動されたプログラムは
上記メツセージを用いて処理を行い実行結果に機能コー
ドFC32を付加してメツセージとして出力する。
In FIG. 2, reference numerals 11 to 13 denote processing devices which store application programs therein and execute the programs. Reference numerals 21 to 23 denote transmission control devices (hereinafter referred to as NCPs (Network Control P
rocessor). Each NCP 21 to 23 and each processing unit 1
Reference numerals 1 to 13 each include a bidirectional transmission medium 24, 25, 26. The processing results of the processing units 11 to 13 are stored in messages (third
As shown in the figure, the data is transmitted to the transmission line 1 via the respective NCPs 21 to 23.
Each of the NCPs 21 to 23 determines whether or not the message flowing on the transmission line 1 is necessary for the processing devices 11, 12, and 13 connected thereto by the function code added to the message, and determines that the message set as necessary is To the processing unit connected to the Each of the devices 11 to 13 starts this program when all the messages necessary for executing the application program stored therein for performing the actual processing in the processing device are prepared. The activated program performs a process using the message, adds a function code FC32 to the execution result, and outputs the result as a message.

メツセージの信号フオーマツト 第3図に伝送路1上に流れるメツセージの信号フオー
マツト例を示す。第3図において、F31はメツセージの
始めを示すフラグである。FC32は自処理装置が送出する
伝送データの内容や機能を示す機能コードである。この
機能コードFC32に基づいて各NCP21〜23は伝送路1の伝
送データが自らに接続されている処理装置11〜13に必要
か否かを判断する。DT36は各処理装置11〜13のアプリケ
ーシヨンプログラムによる処理結果を示すデータ領域、
FCS37は誤り検出用データ、F38はメツセージの終りを示
すフラグである。
Message Format of Message FIG. 3 shows an example of a signal format of a message flowing on the transmission line 1. In FIG. 3, F31 is a flag indicating the start of a message. FC32 is a function code indicating the content and function of the transmission data transmitted by the own processing device. Based on the function code FC32, each of the NCPs 21 to 23 determines whether the transmission data of the transmission path 1 is necessary for the processing devices 11 to 13 connected thereto. DT36 is a data area indicating a processing result of each processing device 11 to 13 by an application program,
FCS37 is error detection data, and F38 is a flag indicating the end of the message.

処理装置の内部構成 第1図は第2図に示した処理装置11の内部構成を示す
ブロツク図である。他の処理装置12,13も同様の構成を
とる。伝送制御ユニツト101は、NCP21,処理装置11間で
のデータ転送を行うユニツトであり、NCP21より受信し
たメツセージを受信バツフア102に格納する。また送信
バツフア103のメツセージをNCP21に送出する。さらに、
そのメツセージが処理装置自体のアプリケーシヨンプロ
グラムで必要な場合には受信バツフア102に格納する。
FIG. 1 is a block diagram showing the internal configuration of the processing apparatus 11 shown in FIG. The other processing devices 12, 13 also have the same configuration. The transmission control unit 101 is a unit for transferring data between the NCP 21 and the processing device 11, and stores a message received from the NCP 21 in a reception buffer 102. Further, the message of the transmission buffer 103 is transmitted to the NCP 21. further,
When the message is required by the application program of the processing apparatus itself, the message is stored in the reception buffer 102.

処理ユニツト104は後述するアプリケーシヨンプログ
ラム1081〜108mの実行を管理制御するユニツトであり、
具体的な装置としてはいわゆるCPUを用いて構成され
る。この処理ユニツト104は処理装置自体の統括的制御
の他に、第4図に示すように、制御コード発生手段(プ
ログラム)、機能コードの発生回数カウント手段(プロ
グラム)401、その発生回数算出手段(プログラム)、
発生回数データ格納メモリエリア201,発生回数制限値テ
ーブル格納メモリエリア202,前記発生回数制限値と現在
の機能コード発生回数との比較手段(プログラム)40
2、発生回数が制限値以上の場合に当該機能コードの送
出タイミングを遅延させる手段(プログラム)403およ
び送信機能コードを送信バツフア103にセツトする手段4
04を備えている。発生回数制限値テーブル内の制限値は
各データ処理装置11〜13の各受信バツフア102の容量、
伝送路1の伝送能力、あるいはNCPの負荷容量等に基づ
いて設定される。
The processing unit 104 is a unit for managing and controlling the execution of application programs 1081 to 108m to be described later.
A specific device is configured using a so-called CPU. As shown in FIG. 4, the processing unit 104 includes a control code generation means (program), a function code generation number counting means (program) 401, and a generation number calculation means (program) as shown in FIG. program),
Occurrence count data storage memory area 201, Occurrence count limit value table storage memory area 202, means (program) 40 for comparing the occurrence count limit value with the current function code occurrence count
2. Means (program) 403 for delaying the transmission timing of the function code when the number of occurrences is equal to or greater than the limit value, and means 4 for setting the transmission function code in the transmission buffer 103
04 is equipped. The limit value in the occurrence count limit value table indicates the capacity of each reception buffer 102 of each data processing device 11 to 13,
It is set based on the transmission capacity of the transmission path 1 or the load capacity of the NCP.

次に、入出力データ格納エリア105の詳細内容を第5
図に示す。この入出力データ格納エリア1行目の1051
は、アプリケーシヨン1081に対する入出力メツセージ格
納エリアである。10511には入力メツセージが、10513に
は出力メツセージが格納される。10511には、初期値と
して入力メツセージの機能コードが格納されている。ま
た起動プログラムエリア10512は、エリア10511に格納さ
れた入力メツセージにより起動すべきプログラム(すな
わち、1081)を示すエリアである。2行目1052は、アプ
リケーシヨンプログラム1082の入出力メツセージを格納
するエリアであり、以下同様にアプリケーシヨンプログ
ラムごとに入出力メツセージエリアがとられている。
Next, the detailed contents of the input / output data storage area 105 are described in the fifth section.
Shown in the figure. 1051 in the first line of this input / output data storage area
Is an input / output message storage area for the application 1081. 10511 stores an input message, and 10513 stores an output message. 10511 stores an input message function code as an initial value. The startup program area 10512 is an area indicating a program to be started by the input message stored in the area 10511 (that is, 1081). The second line 1052 is an area for storing input / output messages of the application program 1082. Similarly, an input / output message area is provided for each application program.

処理動作 第6図は、第1図の104で示した処理ユニツトのメツ
セージ入力時の処理フローを示す図である。受信バツフ
ア102よりメツセージを取り込み、当該入力データ格納
エリア105mlにセツトした処理装置は、まず、実行可能
プログラムが存在するか否か、すなわちプログラムの実
行に必要な入力メツセージが全て入出力メツセージ格納
エリア105内に格納されているか否かをチエツクする(6
02)。実行可能なプログラムが存在しない場合はそのま
ま処理を終了する。実行可能プログラムが存在する場合
には、該当プログラムを起動する。
Processing Operation FIG. 6 is a diagram showing a processing flow at the time of inputting a message of the processing unit shown by 104 in FIG. The processing device that fetches the message from the reception buffer 102 and sets it in the input data storage area 105 ml first determines whether or not an executable program exists, that is, all input messages necessary for executing the program are stored in the input / output message storage area 105. Check whether it is stored in (6
02). If there is no executable program, the process ends. If an executable program exists, the program is started.

起動されたアプリケーシヨンプログラムは、入力メツ
セージを用いて自らの処理を実行後、処理結果を出力デ
ータ格納エリアデータ部(DT)に設定する。
The started application program executes its own processing using the input message, and then sets the processing result in the output data storage area data section (DT).

また、処理ユニツト104は、出力データ格納エリア105
内DT部にデータが設定されている場合は、FC部,DT部内
容を伝送バツフア103内該当エリアに設定する。このエ
リアへのデータ設定の検知は当該エリア内に制御用フラ
グを設け、エリアへの設定時当該フラグを設定したり、
あるいはバツフアへの転送時に当該エリアをクリアす
る、等の事前に定めた方法により行う。
Further, the processing unit 104 includes an output data storage area 105.
When data is set in the internal DT section, the contents of the FC section and the DT section are set in the corresponding area in the transmission buffer 103. For detection of data setting in this area, a control flag is provided in the area, and the flag is set when the area is set,
Alternatively, this area is cleared by a predetermined method such as clearing the area at the time of transfer to the buffer.

次に、第4図に処理ユニット104において入出力デー
タ格納エリア105内のDT部,FC部の内容を送信バツフア10
3内の該当エリアにセツトする場合の処理フローを示
す。送信要求があつたとき、機能コードごとの発生回数
格納エリア201を“+1"インクリメントする(401)。次
に、この発生回数が制限値以上になつていないか、制限
値テーブル202を参照して判定する(402)。この発生回
数が制限値以上の場合は、一定時間経過後、すなわち機
能コードの発生タイミングを遅延させて(403)、入出
力データ格納エリア105内のDT部,FC部の内容、送信バツ
フア103内の該当エリアにセツトする(404)。機能コー
ドごとの発生回数格納エリア201は一定周期で0にクリ
アされる。
Next, in FIG. 4, the contents of the DT section and the FC section in the input / output data storage area 105 in the processing unit 104 are transmitted by the transmission buffer 10.
3 shows a processing flow when setting is performed in a corresponding area in 3. When a transmission request is received, the generation count storage area 201 for each function code is incremented by "+1" (401). Next, it is determined with reference to the limit value table 202 whether the number of occurrences is equal to or greater than the limit value (402). If the number of occurrences is equal to or greater than the limit value, after a lapse of a certain time, that is, by delaying the generation timing of the function code (403), the contents of the DT and FC sections in the input / output data storage area 105 and the transmission buffer 103 (404). The occurrence count storage area 201 for each function code is cleared to 0 at a constant cycle.

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

以上に述べた通り、本発明によれば、各処理装置ごと
の機能コード発生回数がプログラムの不具合等が生じた
としても機能コードごとに一定値以下に抑制されるの
で、各処理装置の受信バツフアがオバーフローとなる確
率を低減することができる。
As described above, according to the present invention, the number of occurrences of function codes for each processing device is suppressed to a fixed value or less for each function code even if a program defect or the like occurs. Can be reduced in probability of becoming overflow.

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

第1図は本発明に係るデータ処理装置の構成を示すブロ
ツク図、第2図は分散処理システムの概要構成図、第3
図は伝送情報のフオーマツト例を示す説明図、第4図は
本発明に係るデータ処理を示すフローチヤート、第5図
は処理装置内の出力データ格納エリアの詳細を示す説明
図、第6図は受信バツフアからデータを取り込んだとき
の処理フローを示すフローチヤートである。 1……共通伝送路、11〜13……処理装置、21〜23……伝
送制御装置、101……伝送制御ユニツト、102……受信バ
ツフア、103……送信バツフア、104……処理ユニツト、
105……入出力データ格納エリア、201……機能コード発
生回数格納メモリエリア、202……発生回数制限値テー
ブル格納メモリエリア、401……機能コード発生回数カ
ウント手段、402……比較手段、403……遅延手段、1081
〜108n……アプリケーシヨンプログラム。
FIG. 1 is a block diagram showing the configuration of a data processing apparatus according to the present invention, FIG. 2 is a schematic configuration diagram of a distributed processing system, and FIG.
FIG. 4 is an explanatory diagram showing an example of the format of transmission information, FIG. 4 is a flowchart showing data processing according to the present invention, FIG. 5 is an explanatory diagram showing details of an output data storage area in the processing device, and FIG. 5 is a flowchart showing a processing flow when data is fetched from a reception buffer. 1 common transmission line, 11-13 processing device, 21-23 transmission control device, 101 transmission control unit, 102 reception buffer, 103 transmission buffer, 104 processing unit,
105: Input / output data storage area, 201: Function code generation count storage memory area, 202: Generation count limit value table storage memory area, 401: Function code generation count counting means, 402: Comparison means, 403 ... ... Delay means, 1081
~ 108n …… Application program.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】自己のデータ処理装置内で発生する伝送デ
ータに当該データ内容を示す機能コードを付加して送出
する複数のデータ処理装置が共通伝送路を介して接続さ
れてなる分散処理システムにおいて、 前記各データ処理装置は、機能コードが発生するごとに
該機能コードの発生回数をカウントするカウント手段
と、テーブルに記憶された制限値と前記カウント手段に
よりカウントされた値を比較する比較手段と、該比較手
段により前記機能コードの発生回数が制限値以上の場合
に前記機能コードの送出を遅延させる遅延手段と、前記
カウント手段によりカウントされた値を一定周期でクリ
アする手段とを備えたことを特徴とする分散処理システ
ム。
1. A distributed processing system in which a plurality of data processing apparatuses for transmitting transmission data generated in its own data processing apparatus with a function code indicating the data content added thereto and connected thereto through a common transmission path. Each of the data processing devices includes a counting unit that counts the number of occurrences of the function code each time a function code is generated, and a comparison unit that compares a limit value stored in a table with a value counted by the counting unit. A delay means for delaying the transmission of the function code when the number of occurrences of the function code is equal to or greater than a limit value by the comparison means, and a means for clearing the value counted by the counting means at a constant cycle. A distributed processing system characterized by the following.
【請求項2】特許請求の範囲第1項のシステムにおい
て、 前記制限値は前記共通伝送路の伝送能力および他処理装
置の処理能力に応じて設定されることを特徴とする分散
処理システム。
2. The distributed processing system according to claim 1, wherein said limit value is set according to the transmission capacity of said common transmission path and the processing capacity of another processing device.
JP62139411A 1987-06-03 1987-06-03 Distributed processing system Expired - Lifetime JP2581558B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62139411A JP2581558B2 (en) 1987-06-03 1987-06-03 Distributed processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62139411A JP2581558B2 (en) 1987-06-03 1987-06-03 Distributed processing system

Publications (2)

Publication Number Publication Date
JPS63303461A JPS63303461A (en) 1988-12-12
JP2581558B2 true JP2581558B2 (en) 1997-02-12

Family

ID=15244615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62139411A Expired - Lifetime JP2581558B2 (en) 1987-06-03 1987-06-03 Distributed processing system

Country Status (1)

Country Link
JP (1) JP2581558B2 (en)

Also Published As

Publication number Publication date
JPS63303461A (en) 1988-12-12

Similar Documents

Publication Publication Date Title
CN109255057B (en) Block generation method, device, equipment and storage medium
CN110955461B (en) Processing method, device, system, server and storage medium for computing task
JP2581558B2 (en) Distributed processing system
CN112579396A (en) Dynamic current limiting method, device and equipment for software system
JP3127880B2 (en) Method of detecting abnormality of monitored device, device thereof, and machine-readable recording medium storing program
JP2001067299A (en) Interface controller and computer system
JP2001022718A (en) Parallel processor
JPH03147157A (en) Information processor
JPH02245860A (en) Data transfer sysem
KR100237395B1 (en) Fault collecting and managing method
CN113824651B (en) Market data caching method and device, storage medium and electronic equipment
JPH02207364A (en) Data transfer system
JPH1049344A (en) Buffer busy control system
JPH0281158A (en) Inter-computer program on-line reallocation system
JPH0936853A (en) Data exchange system on network
JP2770797B2 (en) Page Descriptor Update Control Method for Multiprocessor System
JPS6314270A (en) Distributed processing system by function code
JPH10133997A (en) Dma controller
JPH0697984A (en) Network communication method
CN116016349A (en) Message scheduling method, device and system
JPH0358158A (en) Data processor
JPS62105243A (en) Recovery device for system fault
JP2002278917A (en) Image data transfer system
JP2002091837A (en) Method and device for processing monitor data and recording medium having monitor data processing program recorded thereon
JPH0218656A (en) Priority control system