JP2570096B2 - System time matching method and system time matching device - Google Patents

System time matching method and system time matching device

Info

Publication number
JP2570096B2
JP2570096B2 JP5124006A JP12400693A JP2570096B2 JP 2570096 B2 JP2570096 B2 JP 2570096B2 JP 5124006 A JP5124006 A JP 5124006A JP 12400693 A JP12400693 A JP 12400693A JP 2570096 B2 JP2570096 B2 JP 2570096B2
Authority
JP
Japan
Prior art keywords
time
computer
system clock
difference
clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5124006A
Other languages
Japanese (ja)
Other versions
JPH06332568A (en
Inventor
圭吾 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5124006A priority Critical patent/JP2570096B2/en
Publication of JPH06332568A publication Critical patent/JPH06332568A/en
Application granted granted Critical
Publication of JP2570096B2 publication Critical patent/JP2570096B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はネットワークにより接続
された複数コンピュータから構成されるネットワークシ
ステムにおいて、コンピュータがもつシステム時刻を他
のコンピュータのシステム時刻に反映し、一致させる方
法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for reflecting a system time of a computer in a system of a plurality of computers connected by a network in a system time of another computer to make them coincide with each other.

【0002】[0002]

【従来の技術】従来、ネットワークシステムを構成する
複数コンピュータ間のシステム時刻を一致させるようと
する場合、ネットワークシステムの任意のコンピュータ
のもつシステム時計の時刻を時刻データとして他のコン
ピュータに送信し、前記他のコンピュータでは受け取っ
た前記時刻データに前記時刻データの伝送に要した時間
を加味し、システム運転中に前記他のコンピュータのも
つシステム時計に設定するようになっている。
2. Description of the Related Art Conventionally, in order to match the system time between a plurality of computers constituting a network system, the time of a system clock of an arbitrary computer of the network system is transmitted as time data to another computer. In another computer, the time required for transmitting the time data is added to the received time data, and the system clock of the other computer is set during system operation.

【0003】例えば特開昭63−213013号公報で
は、前記時刻データの伝送時間に最大伝送遅延時間を採
用、前記他のコンピュータのシステム時計への設定時刻
は、伝送電文中に指定した時刻に、ネットワーク全体で
同期をとって行う。
For example, in Japanese Patent Application Laid-Open No. 63-213013, a maximum transmission delay time is adopted as the transmission time of the time data, and the time set in the system clock of the other computer is set to the time specified in the transmission message. Synchronize throughout the network.

【0004】また特開平1−250119号公報では、
前記時刻データの伝送時間として時刻データ伝送直前に
実測した値を採用し、前記他のコンピュータのシステム
時計への設定時刻は、前記データの伝送終了後、即座に
行う。
In Japanese Patent Application Laid-Open No. 1-250119,
As the transmission time of the time data, a value measured immediately before the transmission of the time data is employed, and the time set in the system clock of the other computer is immediately performed after the transmission of the data.

【0005】[0005]

【発明が解決しようとする課題】従来のシステム時刻一
致方法では、通信回線を介して接続された複数コンピュ
ータにより構成されたネットワークシステムにおいて、
コンピュータ間でそのシステム時計の時刻を一致させる
方法では、各コンピュータがシステム運転中にシステム
時刻の修正を行うため、時刻の流れがとぎれたりまた二
重となる状態が発生する。この時、時刻により起動が行
われる処理が存在していると処理が起動されなかった
り、二度起動されたりすることになる。
In the conventional system time matching method, in a network system constituted by a plurality of computers connected via a communication line,
In the method of matching the time of the system clock between computers, since each computer corrects the system time while the system is operating, the time flow may be interrupted or duplicated. At this time, if there is a process that is activated depending on the time, the process is not activated or activated twice.

【0006】本発明の課題は、このような問題を解決
し、時間の流れに矛盾を発生させず無理なくシステム時
刻を修正する方法及び装置を提供することにある。
An object of the present invention is to solve such a problem and to provide a method and apparatus for correcting the system time without causing inconsistency in the flow of time.

【0007】[0007]

【課題を解決するための手段】本発明によれば、通信回
線を介して接続された第1のコンピュータと第2のコン
ピュータとにより構成されるコンピュータネットワーク
システムに用いられ、前記第1のコンピュータがもつ第
1のシステム時計の時刻に前記第2のコンピュータがも
つ第2のシステム時計の時刻を一致させるシステム時刻
一致方法において、前記第1のコンピュータは、前記通
信回線を介して、前記第1のコンピュータがもつ前記第
1のシステム時計の任意の時点での第1の時刻を前記第
2のコンピュータに送信し、前記第2のコンピュータ
は、前記第1の時刻と前記第2のコンピュータがもつ前
記第2のシステム時計から読み取った第2の時刻との差
を求め、この差を前記第1のシステム時計と前記第2の
システム時計との差分時間として記憶し、前記第2のコ
ンピュータのシステム再起動時の起動処理中に、前記差
分時間と前記第2のシステム時計から読み取った第3の
時刻との和を求め、この和を新システム時刻とし、前記
新システム時刻を前記第2のシステム時計に対して設定
し、さらに起動処理を継続し、無理なくコンピュータ間
の時刻を一致させることを特徴とするシステム時刻一致
方法が得られる。
According to the present invention, there is provided a computer network system comprising a first computer and a second computer connected via a communication line, wherein the first computer is used. In the system time matching method for matching the time of the second system clock of the second computer with the time of the first system clock of the first computer, the first computer is connected to the first computer via the communication line. A first time at an arbitrary time of the first system clock of the computer is transmitted to the second computer, and the second computer transmits the first time and the second time of the second computer. A difference between a second time read from the second system clock and a second time read from the second system clock is obtained, and this difference is calculated as the difference between the first system clock and the second system clock. During a start-up process at the time of restarting the system of the second computer, a sum of the difference time and a third time read from the second system clock is obtained. The new system time is set for the second system clock, the startup process is continued, and the time between the computers is reasonably matched with each other.

【0008】更に本発明によれば、通信回線を介して接
続された第1のコンピュータと第2のコンピュータとに
より構成されるコンピュータネットワークシステムに用
いられ、前記第1のコンピュータがもつ第1のシステム
時計の時刻に前記第2のコンピュータがもつ第2のシス
テム時計の時刻を一致させるシステム時刻一致装置にお
いて、前記第1のコンピュータは、前記通信回線を介し
て、前記第1のコンピュータがもつ前記第1のシステム
時計の任意の時点での第1の時刻を前記第2のコンピュ
ータに送信する手段を有し、前記第2のコンピュータ
は、前記第1の時刻と前記第2のコンピュータがもつ前
記第2のシステム時計から読み取った第2の時刻との差
を求める手段と、この差を前記第1のシステム時計と前
記第2のシステム時計との差分時間として記憶する手段
と、前記第2のコンピュータのシステム再起動時の起動
処理中に、前記差分時間と前記第2のシステム時計から
読み取った第3の時刻との和を求める手段と、この和を
新システム時刻とし、前記新システム時刻を前記第2の
システム時計に対して設定し、さらに起動処理を継続す
る手段とを有し、無理なくコンピュータ間の時刻を一致
させることを特徴とするシステム時刻一致装置が得られ
る。
Further, according to the present invention, a first system used in a computer network system constituted by a first computer and a second computer connected via a communication line, wherein the first computer has In a system time matching device that matches the time of a second system clock of the second computer with the time of a clock, the first computer is configured to control the second computer of the first computer via the communication line. Means for transmitting a first time at an arbitrary time of the first system clock to the second computer, wherein the second computer has the first time and the second time held by the second computer. Means for determining a difference between the second system clock and the second time read from the second system clock, and calculating the difference between the first system clock and the second system clock. Means for storing the difference time as a difference time between the second computer and a third time read from the second system clock during a startup process at the time of restarting the system of the second computer. Means for setting the sum as a new system time, setting the new system time with respect to the second system clock, and further continuing the start-up processing, so that the time between the computers can be made to match without difficulty. Is obtained.

【0009】[0009]

【実施例】以下、本発明の1実施例について図面を参照
して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0010】図1は本発明の1実施例のブロック図であ
り、通信回線18を介して接続された第1のコンピュー
タ1と第2のコンピュータ2とはそれぞれ、システム時
計11−1,11−2と、時刻読取手段12−1,12
−2と、差分時間計算手段13−1,13−2と、差分
時間記憶手段14−1,14−2と、設定時刻計算手段
15−1,15−2と、時刻設定手段16−1,16−
2と時刻送受信手段17−1,17−2とを有してい
る。
FIG. 1 is a block diagram of one embodiment of the present invention. 2 and time reading means 12-1 and 12
-2, difference time calculation means 13-1, 13-2, difference time storage means 14-1, 14-2, set time calculation means 15-1, 15-2, time setting means 16-1, 16-
2 and time transmission / reception means 17-1 and 17-2.

【0011】図2はコンピュータ2が有しているシステ
ム時計11−2の時刻をコンピュータ1が有しているシ
ステム時計11−1の時刻に合わせる際の処理の流れを
示した時系列処理説明図であり、以下各図を参照して本
実施例の動作を説明する。
FIG. 2 is a time-series processing explanatory diagram showing the flow of processing when adjusting the time of the system clock 11-2 of the computer 2 to the time of the system clock 11-1 of the computer 1. The operation of this embodiment will be described below with reference to the drawings.

【0012】コンピュータ2が有しているシステム時計
11−2の時刻をコンピュータ1が有しているシステム
時計11−1の時刻と一致させる場合、まずコンピュー
タ1の有しているシステム時計11−1より時刻読取手
段12−1により読み取り、これを標準システム時刻T
11とし時刻送受信手段17−1によりコンピュータ2に
対して、この標準システム時刻T11を送信する。
In order to match the time of the system clock 11-2 of the computer 2 with the time of the system clock 11-1 of the computer 1, first, the system clock 11-1 of the computer 1 is set. The time is read by the time reading means 12-1 and is read as the standard system time T.
The standard system time T11 is transmitted to the computer 2 by the time transmitting / receiving means 17-1.

【0013】コンピュータ2では標準システム時刻T11
を時刻送受信手段17−2により受信し、差分時間計算
手段13−2において、時刻読取手段12−2により読
み取った時刻T21と時刻送受信手段17−2との差を求
め、これを差分時間ΔTと呼ぶ。
In the computer 2, the standard system time T11
Is received by the time transmitting / receiving means 17-2, and the difference time calculating means 13-2 obtains the difference between the time T21 read by the time reading means 12-2 and the time transmitting / receiving means 17-2, and calculates the difference time ΔT Call.

【0014】 ΔT=T21−T11 …(1) さらに差分時間記憶手段14−2において、差分時間計
算手段13−2で求めた差分時間ΔTを次回、システム
起動時まで記憶する。
ΔT = T 21 −T 11 (1) Further, the difference time storage unit 14-2 stores the difference time ΔT obtained by the difference time calculation unit 13-2 until the next system startup.

【0015】システム停止を行い、再度システムを起動
する場合の起動処理時に行われる設定時刻計算手段15
−2において、時刻読取手段12−2読み取った時刻T
22と差分時間記憶手段14−2により記憶した誤差時間
ΔTの和を求め、これを新システム時刻T22′とする。
Set time calculation means 15 performed at the time of start processing when the system is stopped and the system is started again
-2, the time reading means 12-2 reads the time T
The sum of the error time ΔT and the error time ΔT stored by the difference time storage means 14-2 is obtained, and this is set as a new system time T22 ′.

【0016】 T22′=T22+ΔT …(2) 時刻設定手段16−2において、設定時刻計算手段15
−2により求めた新システム時刻T22′をシステム時計
11−2に対して設定し、起動処理を継続する。
T22 ′ = T22 + ΔT (2) In the time setting means 16-2, the set time calculation means 15
-2, the new system time T22 'is set in the system clock 11-2, and the startup processing is continued.

【0017】[0017]

【発明の効果】以上説明したように、本発明は、ネット
ワークシステムを構成するコンピュータ間のシステム時
刻を、時間の流れに矛盾を発生させず、またシステム運
転中の処理に影響を与えることなく修正することができ
るので、システムの信頼性が飛躍的に向上する。
As described above, the present invention corrects the system time between the computers constituting the network system without causing inconsistency in the flow of time and without affecting the processing during system operation. And the reliability of the system is greatly improved.

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

【図1】本発明の実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】本発明の実施例のフローチャート図。FIG. 2 is a flowchart of an embodiment of the present invention.

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

1,2 コンピュータ 11−1,11−2 システム時計 12−1,12−2 時刻読取手段 13−1,13−2 差分時間計算手段 14−1,14−2 差分時間記憶手段 15−1,15−2 設定時刻計算手段 16−1,16−2 時刻設定手段 17−1,17−2 時刻送受信手段 18 通信回線 1, 2 Computer 11-1, 11-2 System clock 12-1, 12-2 Time reading means 13-1, 13-2 Difference time calculation means 14-1, 14-2 Difference time storage means 15-1, 15 -2 set time calculating means 16-1, 16-2 time setting means 17-1, 17-2 time transmitting / receiving means 18 communication line

フロントページの続き (56)参考文献 特開 昭61−194940(JP,A) 特開 昭59−72547(JP,A) 特開 平2−59809(JP,A) 特開 平2−226410(JP,A) 特開 平4−175913(JP,A) 特開 平2−41513(JP,A) 特開 昭62−49555(JP,A) 特開 昭58−19587(JP,A) 特開 昭59−9732(JP,A) 特開 平4−182806(JP,A)Continuation of the front page (56) References JP-A-61-194940 (JP, A) JP-A-59-72547 (JP, A) JP-A-2-59809 (JP, A) JP-A-2-226410 (JP) JP-A-4-175913 (JP, A) JP-A-2-41513 (JP, A) JP-A-62-49555 (JP, A) JP-A-58-19587 (JP, A) 59-9732 (JP, A) JP-A-4-182806 (JP, A)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 通信回線を介して接続された第1のコン
ピュータと第2のコンピュータとにより構成されるコン
ピュータネットワークシステムに用いられ、前記第1の
コンピュータがもつ第1のシステム時計の時刻に前記第
2のコンピュータがもつ第2のシステム時計の時刻を一
致させるシステム時刻一致方法において、 前記第1のコンピュータは、前記通信回線を介して、前
記第1のコンピュータがもつ前記第1のシステム時計の
任意の時点での第1の時刻を前記第2のコンピュータに
送信し、 前記第2のコンピュータは、前記第1の時刻と前記第2
のコンピュータがもつ前記第2のシステム時計から読み
取った第2の時刻との差を求め、この差を前記第1のシ
ステム時計と前記第2のシステム時計との差分時間とし
て記憶し、前記第2のコンピュータのシステム再起動時
の起動処理中に、前記差分時間と前記第2のシステム時
計から読み取った第3の時刻との和を求め、この和を新
システム時刻とし、前記新システム時刻を前記第2のシ
ステム時計に対して設定し、さらに起動処理を継続し、
無理なくコンピュータ間の時刻を一致させることを特徴
とするシステム時刻一致方法。
1. A computer network system comprising a first computer and a second computer connected via a communication line, wherein the first computer has the first system clock at the time. In a system time matching method for matching the time of a second system clock of a second computer, the first computer is connected to the first system clock of the first computer via the communication line. Transmitting a first time at an arbitrary point in time to the second computer, wherein the second computer transmits the first time and the second
Calculating the difference between the second time read from the second system clock of the computer, and storing the difference as the difference time between the first system clock and the second system clock. During a start-up process at the time of restarting the system of the computer, a sum of the difference time and a third time read from the second system clock is obtained, the sum is set as a new system time, and the new system time is set as the new system time. Set for the second system clock, continue the startup process,
A system time matching method wherein the time between computers is reasonably matched.
【請求項2】 通信回線を介して接続された第1のコン
ピュータと第2のコンピュータとにより構成されるコン
ピュータネットワークシステムに用いられ、前記第1の
コンピュータがもつ第1のシステム時計の時刻に前記第
2のコンピュータがもつ第2のシステム時計の時刻を一
致させるシステム時刻一致装置において、 前記第1のコンピュータは、前記通信回線を介して、前
記第1のコンピュータがもつ前記第1のシステム時計の
任意の時点での第1の時刻を前記第2のコンピュータに
送信する手段を有し、 前記第2のコンピュータは、前記第1の時刻と前記第2
のコンピュータがもつ前記第2のシステム時計から読み
取った第2の時刻との差を求める手段と、この差を前記
第1のシステム時計と前記第2のシステム時計との差分
時間として記憶する手段と、前記第2のコンピュータの
システム再起動時の起動処理中に、前記差分時間と前記
第2のシステム時計から読み取った第3の時刻との和を
求める手段と、この和を新システム時刻とし、前記新シ
ステム時刻を前記第2のシステム時計に対して設定し、
さらに起動処理を継続する手段とを有し、無理なくコン
ピュータ間の時刻を一致させることを特徴とするシステ
ム時刻一致装置。
2. A computer network system comprising a first computer and a second computer connected via a communication line, wherein the first computer has the first system clock at the time. In a system time matching device for matching the time of a second system clock of a second computer, the first computer is connected to the first system clock of the first computer via the communication line. Means for transmitting a first time at an arbitrary time to the second computer, wherein the second computer transmits the first time and the second time
Means for determining a difference between the second time read from the second system clock of the computer, and means for storing the difference as a difference time between the first system clock and the second system clock. Means for obtaining a sum of the difference time and a third time read from the second system clock during a startup process at the time of restarting the system of the second computer; and setting the sum as a new system time. Setting the new system time with respect to the second system clock;
A system time matching apparatus, further comprising means for continuing a start-up process, wherein the time between computers is reasonably matched with each other without difficulty.
JP5124006A 1993-05-26 1993-05-26 System time matching method and system time matching device Expired - Fee Related JP2570096B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5124006A JP2570096B2 (en) 1993-05-26 1993-05-26 System time matching method and system time matching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5124006A JP2570096B2 (en) 1993-05-26 1993-05-26 System time matching method and system time matching device

Publications (2)

Publication Number Publication Date
JPH06332568A JPH06332568A (en) 1994-12-02
JP2570096B2 true JP2570096B2 (en) 1997-01-08

Family

ID=14874703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5124006A Expired - Fee Related JP2570096B2 (en) 1993-05-26 1993-05-26 System time matching method and system time matching device

Country Status (1)

Country Link
JP (1) JP2570096B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155629B2 (en) 2003-04-10 2006-12-26 International Business Machines Corporation Virtual real time clock maintenance in a logically partitioned computer system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5972547A (en) * 1982-10-20 1984-04-24 Hitachi Ltd Correcting system for internal timepiece of computer
JPS61194940A (en) * 1985-02-22 1986-08-29 Nec Corp Data communication equipment
JPH0259809A (en) * 1988-08-25 1990-02-28 Toshiba Corp Time control system for multi-computer system
JPH02226410A (en) * 1989-02-28 1990-09-10 Fujitsu Ltd Time compensating and controlling system for electronic computer
JPH04175913A (en) * 1990-11-09 1992-06-23 Hitachi Ltd Time synchronous setting method for plural system devices in same network

Also Published As

Publication number Publication date
JPH06332568A (en) 1994-12-02

Similar Documents

Publication Publication Date Title
JP2658962B2 (en) Network time information synchronization method
JP3420006B2 (en) Data transmission device and communication system using the same
JP2570096B2 (en) System time matching method and system time matching device
JP2002156477A (en) Time correction system
US4545029A (en) Remote correlation of sequence of events
JP3436846B2 (en) Communication method with packet order information
JP2000148563A (en) System having plurality of server computers
JP2690284B2 (en) Data signal error correction method
JP2002111901A (en) Communication terminal unit
JPH05314030A (en) Time adjusting method through communication line
JP3775115B2 (en) Standard time setting method and apparatus
JPH0344704B2 (en)
JP3178505B2 (en) Transmission playback device
JPH05257837A (en) Information processing system
JPH08287020A (en) Time adjusting device for distributed system
JPH1097505A (en) Information transmitting method and system therefor
JP3311568B2 (en) Center device malfunction prevention method
JPH0758807A (en) Time setting device
JP3446459B2 (en) Received data processing method for tele-combiner
JP2830771B2 (en) Data collation method
JP2000056049A (en) Information processing device
JPH07131544A (en) Remote monitoring system
JP2834006B2 (en) Failure recovery processing method and method
JPH10104373A (en) Time adjustment method
JPH11177543A (en) Serial communication equipment and its method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19960820

LAPS Cancellation because of no payment of annual fees