JPH07210518A - Time synchronizing system for distributed processing system - Google Patents

Time synchronizing system for distributed processing system

Info

Publication number
JPH07210518A
JPH07210518A JP6007410A JP741094A JPH07210518A JP H07210518 A JPH07210518 A JP H07210518A JP 6007410 A JP6007410 A JP 6007410A JP 741094 A JP741094 A JP 741094A JP H07210518 A JPH07210518 A JP H07210518A
Authority
JP
Japan
Prior art keywords
time
processing device
transmission
information
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
JP6007410A
Other languages
Japanese (ja)
Inventor
Tomonari Tajima
智成 田島
Shinji Hori
眞司 堀
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 Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
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 Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP6007410A priority Critical patent/JPH07210518A/en
Publication of JPH07210518A publication Critical patent/JPH07210518A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To normally synchronize time even when any one of processors inside a distributed processing system is stopped by synchronizing the time between the respective processors of the system while considering transmission delay time. CONSTITUTION:In the time synchronizing system for distributed processing system, the synchronization of time is executed while considering the delay time of transmission by providing a function for transmitting time information onto a transmission line in a fixed cycle and a function for correcting time managing information inside a processor 11 corresponding to the time information possessed from the transmission line and the time of transmission up to the time information transmitting processor at each processor 11 at the distributed processing system composed of the transmission line and the plural processors 11 connected to that common transmission line by a transmission controller. Thus, the stable synchronization is enabled regardless of the length of the transmission line. At the same time, the synchronization of time is enabled regardless of the start/stop of any specified processor.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネットワークに関わ
り、特に分散型処理システムの応用システムに好適な時
刻同期方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network, and more particularly to a time synchronization method suitable for an application system of a distributed processing system.

【0002】[0002]

【従来の技術】従来の技術は、特開昭63−14214 号公報
に記載のように特定の処理装置より時刻情報を一定周期
で送信し、伝送路上の他の処理装置が時刻情報を受信時
し、時刻の同期を行っていた。しかし、伝送遅延時間が
考慮されておらず、時刻の同期時刻に誤差を生じるとい
う問題があり、また、特別な時刻の管理手段を設けてい
たため、その手段が処理装置の停止等で消滅すると時刻
の同期がなされない問題があった。
2. Description of the Related Art In the prior art, as described in Japanese Patent Laid-Open No. 63-14214, time information is transmitted from a specific processing device at a constant cycle, and when another processing device on the transmission line receives the time information. Then, the time was synchronized. However, there is a problem that the transmission delay time is not taken into consideration, and there is a problem that an error occurs in the time synchronization time. Also, because a special time management means is provided, if the means disappears due to the stop of the processing device, etc. There was a problem that was not synchronized.

【0003】[0003]

【発明が解決しようとする課題】時刻が処理装置間で同
期されていない場合、伝送路上の2つの処理装置間で伝
送時間を計測する場合、2つの処理装置間でのデータ送
信時刻とデータ受信時刻の差より伝送時間を求めるが、
同期時刻が違う場合、データ受信時刻がデータ送信時刻
より過去となり、負の伝送時間が得られるというような
可能性を含んでいる。
When the time is not synchronized between the processing devices, or when the transmission time is measured between the two processing devices on the transmission path, the data transmission time and the data reception between the two processing devices are performed. The transmission time is calculated from the time difference,
If the synchronization times are different, the data reception time is earlier than the data transmission time, and there is a possibility that a negative transmission time can be obtained.

【0004】上記従来技術では、上述の問題に対して、
以下の問題があった。
In the above-mentioned prior art, in order to solve the above problems,
There were the following problems.

【0005】1.処理装置間の伝送時間が考慮されてい
ないため、伝送路が長くなると、伝送遅延時間のため、
同期時刻が処理装置間で一致しなくなる。
1. Since the transmission time between processing devices is not taken into consideration, if the transmission path becomes long, the transmission delay time will cause
The synchronization time does not match between the processors.

【0006】2.専用の時刻同期用の処理装置が存在す
るため、その処理装置が停止すると時刻の同期が行われ
ない。
2. Since a dedicated processing device for time synchronization exists, time synchronization is not performed when the processing device stops.

【0007】3.時刻の同期を周期で行っているため、
伝送路上に一度停止し、復電した処理装置がある場合、
その処理装置に対する時刻の同期は、次の周期を待たね
ばならない。
3. Since the time is synchronized in a cycle,
If there is a processing device that has been stopped and then restored on the transmission line,
The synchronization of the time to the processing device must wait for the next cycle.

【0008】本発明は、上記課題を解決し、分散処理シ
ステムにおける信頼性の高い時刻同期方式を提供するこ
とにある。
An object of the present invention is to solve the above problems and provide a highly reliable time synchronization method in a distributed processing system.

【0009】[0009]

【課題を解決するための手段】上記目的は、以下の手段
をもって実現する。
The above object is realized by the following means.

【0010】1.伝送路上の処理装置間で伝送時間を処
理装置自身が計測することは、複数の処理装置の時刻が
同期されている事が前提となるため、不可能である。そ
のため、事前に各処理装置間の伝送時間を計測し、処理
装置内に記録しておく。この計測された伝送時間を時刻
同期用の情報の送信時刻に加えることにより現在時刻と
し、内部時計を校正する。
1. It is impossible for the processing devices themselves to measure the transmission time between the processing devices on the transmission line because it is premised that the times of the plurality of processing devices are synchronized. Therefore, the transmission time between each processing device is measured in advance and recorded in the processing device. The internal time is calibrated by adding the measured transmission time to the transmission time of the information for time synchronization to make it the current time.

【0011】2.時刻の同期は、専用の処理装置を設け
ず全ての処理装置が時刻の管理を行う。しかし、全ての
処理装置が時刻の管理処理装置となる訳にはいかないた
め、時刻の管理処理装置となるべき順位を処理装置に与
える。時刻の管理処理装置となるべき順位は、ネットワ
ーク内で精度の高い時計を備えているもの、負荷の軽い
ものを優先し、順位づける。ネットワーク内で稼働中の
処理装置の内、この順位が最も高いものが、時刻を管理
する処理装置となる。
2. For time synchronization, all the processing devices manage the time without providing a dedicated processing device. However, not all the processing devices can be the time management processing device, and therefore the processing devices are given an order in which they should be the time management processing device. The time management processing device should be prioritized by those having a highly accurate clock and those having a light load in the network. Of the processing devices operating in the network, the one having the highest rank is the processing device that manages the time.

【0012】[0012]

【作用】[Action]

1.伝送路上の処理装置が全て正常に稼働している場
合、伝送路上の処理装置の中で、精度の高い内部時計を
備えている処理装置の内、比較的負荷の軽いものをネッ
トワーク全体の時刻を管理する処理装置と定める。時刻
を管理する処理装置は、一定周期で時刻同期用の時刻情
報を伝送路上に同報する。その他の処理装置は、この情
報を伝送路上より各々の処理装置内へ取り込み、時刻を
管理する処理装置までの伝送時間を加えて現在時刻と
し、内部時計の校正を行うことで、時刻の同期が行われ
る。
1. If all the processing devices on the transmission line are operating normally, among the processing devices on the transmission line that have a relatively accurate internal clock, select the one with a relatively light load and set the time for the entire network. Defined as the processing device to manage. A processing device that manages time broadcasts time information for time synchronization on a transmission path at regular intervals. Other processing devices take this information into each processing device from the transmission path, add the transmission time to the processing device that manages the time to make it the current time, and calibrate the internal clock to synchronize the time. Done.

【0013】2.ネットワーク全体の時刻を管理する処
理装置が定められている時、時刻を管理する処理装置以
外の処理装置が停止し、再び稼働を開始した場合、ネッ
トワーク全体の時刻を管理する処理装置は、稼働を開始
した処理装置に対して時刻同期用の時刻情報を送信し、
時刻の同期が行われる。
2. When a processing device that manages the time of the entire network is defined, if a processing device other than the processing device that manages the time stops and then starts operating again, the processing device that manages the time of the entire network stops operating. Send time information for time synchronization to the started processing device,
Time synchronization is performed.

【0014】3.ネットワーク全体の時刻を管理する処
理装置が定められている時、ネットワーク全体の時刻を
管理する処理装置が停止した場合、ネットワーク内で稼
働している処理装置の内、優先順位が最も高い処理装置
がネットワーク全体の時刻の管理を行う。
3. When the processing device that manages the time of the entire network is defined and the processing device that manages the time of the entire network stops, the processing device with the highest priority among the processing devices operating in the network Manages the time of the entire network.

【0015】[0015]

【実施例】以下、本発明の一実施例を具体的に説明す
る。
EXAMPLE An example of the present invention will be specifically described below.

【0016】まず、本発明の適用対象である分散処理シ
ステムの構成について図2,図3を用いて説明する。
First, the configuration of the distributed processing system to which the present invention is applied will be described with reference to FIGS.

【0017】図2は、本発明が適用されるシステムの全
体構成を示す図である。同図において11から14は、
その内部のメモリにアプリケーションプログラムを格納
し、これを実行する処理装置であり、31は、矢印方向
への一方向性ループ伝送路である。21から24は、処
理装置11から14と伝送路31との間のデータ交換制
御を行う伝送制御装置である。処理装置11から14の
処理結果は、メッセージとして伝送制御装置21から2
4を経て伝送路31に送信される。各伝送制御装置は、
伝送路31上のメッセージが事故の伝送制御装置に接続
されている処理装置に必要なものかどうかをメッセージ
に付加されている機能コードと呼ぶデータの内容を示す
コードをみて判定し、必要と判定したメッセージのみを
自己に接続されている処理装置に送る。各処理装置11
から14は、この受信したメッセージを用いて、所定の
プログラムの処理を実行し、その実行結果と機能コード
を付加したメッセージとして出力する。
FIG. 2 is a diagram showing the overall configuration of a system to which the present invention is applied. In the figure, 11 to 14 are
A processor 31 stores an application program in its internal memory and executes the application program. Reference numeral 31 denotes a unidirectional loop transmission line in the arrow direction. Reference numerals 21 to 24 are transmission control devices that perform data exchange control between the processing devices 11 to 14 and the transmission path 31. The processing results of the processing devices 11 to 14 are transmitted as a message from the transmission control devices 21 to 2
It is transmitted to the transmission line 31 via 4. Each transmission controller
Whether or not the message on the transmission line 31 is necessary for the processing device connected to the transmission control device of the accident is judged by looking at the code indicating the content of the data called the function code added to the message, and judged as necessary. Send only the specified message to the processing device connected to itself. Each processing device 11
From No. 14 to No. 14, the received message is used to execute the processing of the predetermined program, and the result of the execution and the function code are output as a message.

【0018】図3に伝送路を流れるメッセージのフォー
マット例を示す。図において、FC201は、機能コー
ドであり、データおよび機能に対応するコードである。
SA202は、メッセージを発生した伝送制御装置アド
レス、CC203は、通番でそれぞれ伝送制御上必要な
ものである。発信元処理装置番号は、メッセージを送信
した各処理装置の処理装置番号、DATA204は、各
アプリケーションプログラムの処理結果の内容を示すも
のである。また、FCS205は、誤り検知用データ,
F200,206は、それぞれメッセージの始めと終わ
りとを示すフラグである。各伝送制御装置は、処理装置
から送られてきたFCと発信元処理装置番号とDATA
フォーマットを元に図3に示すメッセージフォーマット
でメッセージを作成し送信する。また、自己に接続され
ている処理装置に必要な伝送路上のメッセージを取り込
みFCと発信元処理装置番号とDATAで構成するメッ
セージを各処理装置に送る。
FIG. 3 shows a format example of a message flowing through the transmission line. In the figure, FC201 is a function code, which is a code corresponding to data and a function.
SA202 is the address of the transmission control device that generated the message, and CC203 is a serial number that is necessary for transmission control. The sender processing device number indicates the processing device number of each processing device that has transmitted the message, and the DATA 204 indicates the content of the processing result of each application program. Further, the FCS 205 is for error detection data,
F200 and 206 are flags indicating the beginning and end of the message, respectively. Each transmission control device receives the FC sent from the processing device, the source processing device number, and DATA.
A message is created and transmitted in the message format shown in FIG. 3 based on the format. Also, it takes in a message on the transmission line necessary for the processing device connected to itself and sends a message composed of FC, the source processing device number and DATA to each processing device.

【0019】図1は、本発明の一構成例を示す図であ
り、図1の処理装置11の内部構成の中で、時刻の同期
に必要な部分を図示したものである。
FIG. 1 is a diagram showing an example of the configuration of the present invention, and illustrates a portion necessary for time synchronization in the internal configuration of the processing device 11 of FIG.

【0020】処理装置12,13,14も同様の構成を
内部に有する。時刻情報送信処理1は、自処理装置がネ
ットワーク全体の時刻を管理する処理装置(以下、マス
ター処理装置と称す)である場合、時刻同期用の情報を
伝送路上に送信する処理である。時刻情報受信処理2
は、時刻同期用の情報を受信し、受信した情報内の時刻
に伝送遅延時間を加えた時刻を現在時刻とし、内部時計
を校正する処理である。3は、伝送路上の各処理装置の
マスター処理装置となるべき順位とその稼働中/停止を
記録するファイル(以下、時刻管理順位ファイルと称
す)であり、時刻情報送信処理1は、このファイルの情
報より自処理装置がマスター処理装置かどうかを判断す
る。4は、伝送路上の他の処理装置までの伝送時間を記
録したファイル(以下、伝送時間ファイルと称す)であ
り、時刻情報受信処理2は、時刻の同期の際、このファ
イルより伝送遅延時間を求める。5は、内部時計、6
は、生存監視機能。7は、伝送路上の処理装置の稼働中
/停止を記録するファイルである。
The processing units 12, 13 and 14 also have the same structure inside. The time information transmission process 1 is a process of transmitting time synchronization information to the transmission path when the self processing device is a processing device that manages the time of the entire network (hereinafter referred to as a master processing device). Time information reception process 2
Is a process of receiving the information for time synchronization, calibrating the internal clock with the time obtained by adding the transmission delay time to the time in the received information as the current time. Reference numeral 3 is a file (hereinafter referred to as a time management order file) that records the order to be the master processing apparatus of each processing apparatus on the transmission path and the operating status / stoppage of the processing apparatus. It is determined from the information whether the self-processing device is the master processing device. Reference numeral 4 denotes a file in which the transmission time to another processing device on the transmission path is recorded (hereinafter referred to as a transmission time file). The time information reception processing 2 uses the transmission delay time from this file when synchronizing the times. Ask. 5 is an internal clock, 6
Is a survival monitoring function. Reference numeral 7 is a file that records whether the processing device on the transmission path is operating or stopped.

【0021】生存監視機能6は、数秒程度の短い周期
で、自処理装置の情報を伝送路上に同報する。また、他
の処理装置より同様の情報を受信することにより、伝送
路上の他の処理装置が稼働中であることを知るための機
能である。この情報が数周期連続して受信できない場
合、該当の処理装置は、停止中と判断する。処理装置の
稼働中/停止は、7のファイルへ記録する。
The survival monitoring function 6 broadcasts the information of its own processing device on the transmission line in a short cycle of about several seconds. Further, it is a function for knowing that another processing device on the transmission path is in operation by receiving similar information from another processing device. When this information cannot be received continuously for several cycles, the corresponding processing device determines that it is stopped. Whether the processing device is operating or stopped is recorded in a file 7.

【0022】101は、時刻情報送信処理1より時刻同
期用の時刻情報の送信の矢印、102は、時刻情報送信処
理2の周期起動及び、時刻情報取り込の矢印、103
は、時刻同期用の時刻情報を時刻情報受信処理3が受信
の矢印、104は、時刻情報受信処理による内部時計6
の校正の矢印、105は、マスター順位を取り込む矢
印、106は、各処理装置の稼働中/停止のフラグの更
新の矢印、107は、時刻情報受信処理3による伝送時
間取り込の矢印、108は、生存監視機能6による伝送
路上の処理装置の稼働中/停止を記録するファイル7の
更新の矢印、109は、時刻情報送信処理による伝送路
上の処理装置の稼働中/停止を監視する矢印を示す。
Reference numeral 101 denotes an arrow for transmitting time information for time synchronization from the time information transmitting process 1, 102 denotes an arrow for periodically activating the time information transmitting process 2 and fetching time information, 103.
Is an arrow indicating that the time information reception process 3 receives the time information for time synchronization, and 104 is the internal clock 6 by the time information reception process.
Of the calibration, 105 is an arrow for taking in the master order, 106 is an arrow for updating the flag of the operating / stopping of each processing device, 107 is an arrow for acquiring the transmission time by the time information reception processing 3, and 108 is The arrow for updating the file 7 for recording the operating / stopping of the processing device on the transmission path by the survival monitoring function 6 and the arrow 109 for monitoring the operating / stopping of the processing device on the transmission path by the time information transmission processing. .

【0023】本実施例の動作の説明に先立ち、本実施例
で使用する時刻管理順位ファイル3と伝送時間ファイル
4の構成、及び、時刻同期用の時刻情報のファーマット
を図4より図6を用いて説明する。
Prior to the description of the operation of this embodiment, the structure of the time management order file 3 and the transmission time file 4 used in this embodiment and the format of the time information for time synchronization are shown in FIGS. It demonstrates using.

【0024】図4は、図1の時刻管理順位ファイル4の
構成を示す。このファイルは、マスター処理装置となる
優先順位に処理装置の番号が並べられており、それぞれ
の処理装置に対応した処理装置の稼働中/停止のフラ
グ,マスター処理装置フラグで構成される。マスター処
理装置となる優先順位は、内部時計6の仕様による精度
の高いもの、ネットワーク内で比較的負荷の軽いものを
高位にして、順位を決定する。このファイル内のマスタ
ー処理装置となる優先順位の順位は、ネットワーク内の
処理装置全てに共通とする。処理装置の稼働中/停止の
フラグは、生存監視機能6により検出されたものを、時
刻情報送信処理1がチェックし、更新するものである。
マスター処理装置フラグは、現在のマスター処理装置を
示すフラグである。但し、内部時計6の精度が極端に悪
い処理装置は、マスター処理装置とならないよう最初か
ら除外のマークをつける。
FIG. 4 shows the structure of the time management order file 4 shown in FIG. In this file, the numbers of the processing devices are arranged in the order of priority to be the master processing device, and each processing device includes a flag indicating whether the processing device is operating / stopped and a master processing device flag. As for the priority order of the master processing device, the one having a high accuracy according to the specifications of the internal clock 6 and the one having a relatively light load in the network are set to the high order to determine the order. The priority order of the master processing devices in this file is common to all the processing devices in the network. The flag indicating whether the processing device is in operation / stopped is one that the time information transmission process 1 checks and updates what is detected by the survival monitoring function 6.
The master processor flag is a flag indicating the current master processor. However, a processing device in which the accuracy of the internal clock 6 is extremely poor is marked from the beginning so as not to be a master processing device.

【0025】図5は、図1の5の伝送時間ファイルの構
成を示す。このファイルは、自処理装置と他の処理装置
間の伝送時間を処理装置の番号順に並べ、構成される。
自処理装置と他の処理装置間の伝送時間は、予め数回計
測した平均値に時刻情報受信処理2の時刻情報の受信か
ら、内部時計6の校正までの処理時間を加えたものとす
る。本ファイルは、参照のみとし、書き換えは行わな
い。
FIG. 5 shows the structure of the transmission time file 5 of FIG. This file is constructed by arranging the transmission times between its own processing device and other processing devices in the order of the processing device numbers.
The transmission time between its own processing device and another processing device is the average value measured several times in advance, plus the processing time from the reception of the time information in the time information reception process 2 to the calibration of the internal clock 6. This file is for reference only and is not rewritten.

【0026】図6は、時刻同期用の時刻情報のフォーマ
ット例を示す。204は、図3に示すメッセージのフォ
ーマット例内のDATA部を示す。このフォーマットを
先に示した図3と組み合わせ時刻同期用の時刻情報(以
下、時刻同期情報と称す)とする。41は、時刻同期情
報を送信する処理装置番号、42は、時刻同期情報を受
信する処理装置番号、43は、時刻同期情報の送信時刻
を示す。
FIG. 6 shows a format example of time information for time synchronization. Reference numeral 204 denotes a DATA part in the format example of the message shown in FIG. This format is used as time information for time synchronization (hereinafter referred to as time synchronization information) in combination with FIG. 3 described above. Reference numeral 41 indicates a processing device number that transmits the time synchronization information, 42 indicates a processing device number that receives the time synchronization information, and 43 indicates a transmission time of the time synchronization information.

【0027】次に本実施例における時刻の同期の経過を
図2,図7を用いて示す。
Next, the progress of time synchronization in this embodiment will be described with reference to FIGS.

【0028】まず、図2では、通常時における時刻の同
期を示す。この例では、マスター処理装置となるべき優
先順位より処理装置11が、マスター処理装置になって
いる。処理装置11の時刻情報送信処理1は、内部時計
5より定周期に起動され、時刻同期情報を送信する処理
装置番号41に自処理装置の処理装置番号,時刻同期情
報を受信する処理装置番号42に0,時刻同期情報の送
信時刻43に現在時刻を内部時計5より編集し、時刻同
期情報とし、伝送路に同報する。処理装置12,13,
14の時刻情報受信処理2では、処理装置11が同報し
た時刻同期情報を伝送路上より受信する。受信した時刻
同期情報内の時刻同期情報を送信する処理装置番号41
を元に伝送時間ファイル4より伝送遅延時間を求め、時
刻同期情報の送信時刻43に伝送遅延時間を加え、現在
時刻とし、内部時計5を校正する。
First, FIG. 2 shows time synchronization in a normal time. In this example, the processing device 11 is the master processing device according to the priority order to be the master processing device. The time information transmission process 1 of the processing device 11 is activated at regular intervals by the internal clock 5, and the processing device number 41 for transmitting the time synchronization information to the processing device number of its own processing device and the processing device number 42 for receiving the time synchronization information. 0, and the current time is edited from the internal clock 5 at the time of transmission 43 of the time synchronization information to obtain the time synchronization information, which is broadcast to the transmission line. Processor 12, 13,
In the time information reception process 2 of 14, the time synchronization information broadcast by the processing device 11 is received from the transmission path. Processing device number 41 for transmitting the time synchronization information in the received time synchronization information
Then, the transmission delay time is obtained from the transmission time file 4, the transmission delay time is added to the transmission time 43 of the time synchronization information to obtain the current time, and the internal clock 5 is calibrated.

【0029】次に図7を用いて、処理装置の停止時、及
び、伝送路上の処理装置の稼働開始時の時刻の同期を示
す。同図では、各処理装置のマスター処理装置となる順
位を処理装置11から14の枠内にあるように定める。
また、処理装置12は、マスター処理装置とは、なりえ
ないものとする。
Next, with reference to FIG. 7, the time synchronization when the processing device is stopped and when the processing device on the transmission path is started is shown. In the figure, the order of becoming the master processing device of each processing device is determined so as to be within the frame of the processing devices 11 to 14.
Further, the processing device 12 cannot be a master processing device.

【0030】図2と同様に処理装置11がマスター処理
装置となっている場合に同処理装置が停止したとき、処
理装置12,13,14の生存監視機能6によって検出
される。時刻情報送信処理1は、処理装置11の停止に
より稼働中の処理装置中で最もマスター処理装置となる
順位の高い、処理装置13を次のマスター処理装置と定
める。マスター処理装置となった処理装置13の時刻情
報1は、内部時計5より定周期に起動された場合、上述
した処理装置11がマスター処理装置の場合と同様に時
刻同期情報を編集し、伝送路上に同報する。処理装置1
2,14の時間情報受信処理2も同様に内部時計5の校
正を行う。この場合、時刻同期情報内の時刻同期情報を
送信する処理装置番号41は、処理装置13の処理装置
番号となり、処理装置12,14で求める。伝送遅延時
間も処理装置13とのものとなる。この後、処理装置1
1が動作を開始した場合、処理装置11の時刻情報送信
処理1は、まず、自処理装置以外の処理装置にマスター
処理装置がいるかを検索する。自処理装置以外の処理装
置の稼働中/停止状態より処理装置13がマスター処理
装置と判断する。処理装置13は、処理装置11の稼働
開始を生存監視機能5で検出したため、時刻同期情報を
受信する処理装置番号42に処理装置11の処理装置番
号を編集した時刻同期情報を送信し、処理装置11の時
刻の同期が行われる。
As in the case of FIG. 2, when the processing device 11 is the master processing device and the processing device is stopped, it is detected by the survival monitoring function 6 of the processing devices 12, 13, and 14. In the time information transmission process 1, the processing device 13 having the highest rank as the master processing device among the processing devices in operation due to the stop of the processing device 11 is determined as the next master processing device. When the time information 1 of the processing device 13 that has become the master processing device is activated by the internal clock 5 in a fixed cycle, the time synchronization information is edited in the same way as when the processing device 11 described above is the master processing device, Broadcast to. Processor 1
In the time information reception processing 2 of 2 and 14, the internal clock 5 is similarly calibrated. In this case, the processing device number 41 that transmits the time synchronization information in the time synchronization information becomes the processing device number of the processing device 13 and is obtained by the processing devices 12 and 14. The transmission delay time also depends on the processing device 13. After this, the processing device 1
When 1 starts the operation, the time information transmission process 1 of the processing device 11 first searches the processing devices other than the own processing device for the master processing device. The processing device 13 determines that it is the master processing device based on the operating / stopped states of the processing devices other than the self processing device. Since the processing device 13 detects the start of operation of the processing device 11 by the survival monitoring function 5, the processing device 13 transmits the time synchronization information in which the processing device number of the processing device 11 is edited to the processing device number 42 which receives the time synchronization information, and the processing device 13 The time of 11 is synchronized.

【0031】図7で全ての処理装置が停止中で処理装置
12,13,14,11の順に稼働を開始する場合、処
理装置12が稼働を開始した時点では、処理装置12
は、マスター処理装置となり得ないので、何も起こらな
い。処理装置13が稼働を開始した場合、マスター処理
装置がネットワーク内にいないため、マスター処理装置
となり、処理装置12に対して、時刻の同期を行う。そ
の後、処理装置14,11が動作を開始した場合、処理
装置13がマスターとなっているため、処理装置13よ
り時刻の同期が行われる。
In the case where all the processing devices are stopped and the processing devices 12, 13, 14, 11 are started in this order in FIG. 7, when the processing device 12 starts operating, the processing device 12 is started.
Cannot be a master processor, so nothing happens. When the processing device 13 starts operating, it becomes the master processing device because the master processing device is not in the network, and the time is synchronized with the processing device 12. After that, when the processing devices 14 and 11 start operating, the processing device 13 is the master, so that the processing device 13 synchronizes the time.

【0032】[0032]

【発明の効果】本発明の効果は、以下の通りである。The effects of the present invention are as follows.

【0033】1.伝送路の長短に関わらず、安定した同
期を行える。
1. Stable synchronization can be performed regardless of the length of the transmission path.

【0034】2.特定の処理装置の稼働/停止に関わら
ず、時刻の同期が行える。
2. The time can be synchronized regardless of whether the specific processing device is operating or stopped.

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

【図1】本発明の実施例における構成要素の説明図であ
る。
FIG. 1 is an explanatory diagram of components in an embodiment of the present invention.

【図2】本発明を適応するネットワークの構成図であ
る。
FIG. 2 is a configuration diagram of a network to which the present invention is applied.

【図3】伝送路上を流れるデータのフォーマットであ
る。
FIG. 3 is a format of data flowing on a transmission path.

【図4】各処理装置のマスター処理装置となるべき順位
と生死を記録するファイルの概略構成図である。
FIG. 4 is a schematic configuration diagram of a file that records the order and life and death that should be the master processing device of each processing device.

【図5】各処理装置までの伝送時間を格納するファイル
の概略構成図である。
FIG. 5 is a schematic configuration diagram of a file that stores a transmission time to each processing device.

【図6】本発明の実施例における伝送データのフォーマ
ットである。
FIG. 6 is a format of transmission data in the embodiment of the present invention.

【図7】本発明の実施例に従い、処理装置の順位を表す
図である。
FIG. 7 is a diagram showing a ranking of processing devices according to an embodiment of the present invention.

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

1…時刻情報送信処理、2…時刻情報受信処理、3…各
処理装置の管理処理装置となるべき順位とその稼働中/
停止を記録するファイル、4…他の処理装置までの伝送
時間を記録したファイル、5…内部時計、6…生存監視
機能、7…他の処理装置の稼働中/停止を格納するファ
イル、11〜14…処理装置、21〜24…伝送制御装
置、31…伝送路、41…時刻情報の送信処理装置番
号、42…時刻情報の受信処理装置番号、43…時刻同
期情報の送信時刻、101…時刻同期時の時刻情報の送
信の矢印、102…時刻情報送信処理2の周期起動及
び、時刻情報取り込みの矢印、103…時刻同期時の時
刻情報の受信の矢印、104…内部時計6の校正の矢
印、105…マスター順位の取り込みの矢印、106…
他の処理装置の動作/停止による時刻管理順位ファイル
4の更新の矢印、107…他の処理装置までの伝送時間
を格納したファイル4より伝送時間の取り込みの矢印、
108…生存監視機能による他の処理装置の稼働中/停
止を格納するファイルの更新の矢印、109…時刻情報
送信処理1による他の処理装置の稼働中/停止の取り込
みの矢印。
1 ... Time information transmitting process, 2 ... Time information receiving process, 3 ... Management of each processing device
File for recording stoppage, 4 ... File for recording transmission time to other processing device, 5 ... Internal clock, 6 ... Survival monitoring function, 7 ... File for storing operating / stopping of other processing device, 11 to 11 14 ... Processing device, 21-24 ... Transmission control device, 31 ... Transmission path, 41 ... Time information transmission processing device number, 42 ... Time information receiving processing device number, 43 ... Time synchronization information transmission time, 101 ... Time Arrow for transmitting time information at the time of synchronization, 102 ... Arrow for activating the time information transmission process 2 and arrow for fetching the time information, 103 ... Arrow for receiving the time information at the time synchronization, 104 ... Arrow for calibrating the internal clock 6. , 105 ... Arrow for capturing master order, 106 ...
An arrow for updating the time management priority file 4 due to the operation / stop of another processing device, 107 ... An arrow for fetching the transmission time from the file 4 storing the transmission time to the other processing device,
108 ... Arrow for updating a file storing the operating / stopping of another processing device by the survival monitoring function, 109 ... Arrow for capturing the operating / stopping of another processing device by the time information transmission process 1.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】伝送路とその共通の伝送路に伝送制御装置
によって接続された複数の処理装置から成る分散型処理
システムにおいて、一定周期で伝送路上に時刻情報を送
出する機能と前記伝送路上より入手する時刻情報と時刻
情報送信処理装置までの伝送時間より処理装置内の時刻
管理情報を校正する機能を各処理装置に設けることによ
り伝送の遅延時間の補正を考慮した時刻の同期を特徴と
する分散型処理システムの時刻同期方式。
1. A distributed processing system comprising a transmission line and a plurality of processing devices connected to the common transmission line by a transmission control device, the function of transmitting time information on the transmission line at a constant cycle, and the transmission line. Characterizing time synchronization considering correction of transmission delay time by providing each processing device with a function to calibrate time management information in the processing device based on the time information to be acquired and the transmission time to the time information transmission processing device Time synchronization method for distributed processing system.
【請求項2】請求項1において、処理装置内に他の処理
装置の稼働中/停止中を検出する機能を有する分散型処
理システムにおいて、処理装置にレベルを設定し、自己
のレベルを判定する手段を設けることにより特定の時刻
管理用の処理装置を持つことなく時刻の同期を可能とす
ることを特徴とする分散型処理システムの時刻同期方
式。
2. A distributed processing system according to claim 1, wherein the processing apparatus has a function of detecting whether another processing apparatus is operating / stopped, the level is set in the processing apparatus, and the own level is determined. A time synchronization method for a distributed processing system, characterized in that means is provided to enable time synchronization without having a specific time management processing device.
JP6007410A 1994-01-27 1994-01-27 Time synchronizing system for distributed processing system Pending JPH07210518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6007410A JPH07210518A (en) 1994-01-27 1994-01-27 Time synchronizing system for distributed processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6007410A JPH07210518A (en) 1994-01-27 1994-01-27 Time synchronizing system for distributed processing system

Publications (1)

Publication Number Publication Date
JPH07210518A true JPH07210518A (en) 1995-08-11

Family

ID=11665102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6007410A Pending JPH07210518A (en) 1994-01-27 1994-01-27 Time synchronizing system for distributed processing system

Country Status (1)

Country Link
JP (1) JPH07210518A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832326B2 (en) 2000-08-02 2004-12-14 Fujitsu Limited Multiprocessor clock synchronization with adjustment based on measuring propagation delay between a processor and a plurality of processors

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832326B2 (en) 2000-08-02 2004-12-14 Fujitsu Limited Multiprocessor clock synchronization with adjustment based on measuring propagation delay between a processor and a plurality of processors

Similar Documents

Publication Publication Date Title
KR101109980B1 (en) Facilitating synchronization of servers in a coordinated timing network
US20050108385A1 (en) Method and system for managing a discovery-related process in a network
JP2002522845A (en) Fault tolerant computer system
JPH0576654B2 (en)
WO2017188109A1 (en) Vehicle control device and vehicle system
US20180039552A1 (en) Distributed baseboard management controller for multiple devices on server boards
JPH06101732B2 (en) Communication control method
JP4920567B2 (en) Equipment network system and data access control method
JPH07210518A (en) Time synchronizing system for distributed processing system
US11930292B2 (en) Device state monitoring method and apparatus
CN110134632B (en) Timing processing method and device and computer storage medium
CN115604286A (en) Method, device, equipment and storage medium for synchronizing master and standby state information of nodes
US7085948B2 (en) Method, apparatus, and computer program product for implementing time synchronization correction in computer systems
JPH05189385A (en) Timer synchronization system in distributed processing environment system
JP2850637B2 (en) Time synchronization device for supervisory control system
JP2010124138A (en) Cyclic transmission system and its transmission method
JPH1125057A (en) Inter-subsystem time correction system
JP2002135284A (en) Line concentrator
JP3318926B2 (en) Time synchronization method
JP2002032258A (en) Job operation system
JPH03253945A (en) Abnormality recovery processing function confirming system for data processing system
CN116126094A (en) Time synchronization information processing method and architecture
JP2676609B2 (en) Data transmission method
JP3114504B2 (en) Communication data diagnostic device for unidirectional loop transmission line
CN115309328A (en) Parameter processing method and device, electronic equipment and storage medium