JPH0689123A - Time synchronization system - Google Patents

Time synchronization system

Info

Publication number
JPH0689123A
JPH0689123A JP4240232A JP24023292A JPH0689123A JP H0689123 A JPH0689123 A JP H0689123A JP 4240232 A JP4240232 A JP 4240232A JP 24023292 A JP24023292 A JP 24023292A JP H0689123 A JPH0689123 A JP H0689123A
Authority
JP
Japan
Prior art keywords
time
standard
computer
message
time synchronization
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
JP4240232A
Other languages
Japanese (ja)
Other versions
JP2842076B2 (en
Inventor
Katsuji Chiba
勝二 千葉
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 JP4240232A priority Critical patent/JP2842076B2/en
Publication of JPH0689123A publication Critical patent/JPH0689123A/en
Application granted granted Critical
Publication of JP2842076B2 publication Critical patent/JP2842076B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

PURPOSE:To provide a simple time synchronization system using a task processing function. CONSTITUTION:This system is equipped with an interface part 2 equipped with a time stamp function, which communicates with the other computer, time synchronization control part 3 which calculates the transmitting time of a message with the other computer, time difference holding area 4 which stores the value of a difference between the machine time of its own device and an obtained standard time, standard time generating part 5 which generates the standard time of its own device after receiving the communication of the corrected value of the machine time and the standard time, and task processing part 6 which transmits time synchronization request and response messages to the other computer.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、複数のコンピュータ
間における共通の標準時刻と個個のコンピュータのマシ
ン時刻とを一致させる時刻同期システムに関し、特に、
特別な時刻同期装置を用いずに、コンピュータの業務処
理機能によって一致をとる時刻同期システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time synchronization system for matching a standard time common to a plurality of computers with a machine time of each computer, and more particularly to a time synchronization system.
The present invention relates to a time synchronization system that achieves coincidence by a business processing function of a computer without using a special time synchronization device.

【0002】[0002]

【従来の技術】従来、複数のコンピュータ間の時刻を一
致させる時刻同期は、コンピュータに時刻同期装置をそ
れぞれの備えて時刻を一致させる手法や、標準とするコ
ンピュータのマシン時刻を他のコンピュータに通知し、
他のコンピュータはその通知された時刻をそれぞれの標
準時刻とみなすことにより行なわれている。
2. Description of the Related Art Conventionally, the time synchronization for synchronizing the times among a plurality of computers is performed by equipping each computer with a time synchronizing device or by notifying other computers of the machine time of a standard computer. Then
Other computers operate by considering the notified time as their standard time.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の時刻同
期手法では、時刻同期用装置を使用する場合、各各のコ
ンピュータに時刻同期装置が必要であるので、時刻同期
装置を装備する費用が莫大になる。また、標準とするコ
ンピュータのマシン時刻を各各のコンピュータに通知す
る場合、標準となるコンピュータと、各各のコンピュー
タ間での通知を伝送する時間が一様でないため、時刻同
期の精度を保つことができない。
In the above-mentioned conventional time synchronization method, when the time synchronization device is used, each computer needs a time synchronization device, so that the cost of equipping the time synchronization device is enormous. become. Also, when notifying each computer of the machine time of the standard computer, keep the accuracy of time synchronization because the time for transmitting the notification between the standard computer and each computer is not uniform. I can't.

【0004】[0004]

【課題を解決するための手段】この発明の時刻同期シス
テムは、第1および第2のコンピュータが共通に基準と
する標準時刻と、前記第1および第2のコンピュータが
それぞれ有する自身のマシン時刻とを一致させるための
時刻同期システムにおいて、前記第1および第2のコン
ピュータの各各には、前記標準時刻と前記マシン時刻と
の時刻差を記憶する記憶手段と、メッセージをデータ伝
送するときに生ずる時間遅れを計測する計測手段と、前
記計測手段によって計測した前記時間遅れと前記標準時
刻と前記マシン時刻とに基づいて、受信した前記標準時
刻を補正する補正値の計算手段と、前記標準時刻をメッ
セージとして生成する業務処理手段と、前記メッセージ
を送受信し、かつ送受信時刻を前記メッセージにタイム
スタンプする通信手段と、を備える。
According to the time synchronization system of the present invention, a standard time commonly used by the first and second computers and its own machine time possessed by the first and second computers are provided. In the time synchronization system for matching the time, a storage means for storing the time difference between the standard time and the machine time is provided in each of the first and second computers, and when the message is data-transmitted. Measuring means for measuring a time delay, means for calculating a correction value for correcting the received standard time based on the time delay measured by the measuring means, the standard time and the machine time, and the standard time. Business processing means for generating a message, and communication for transmitting / receiving the message and time stamping the transmission / reception time on the message It includes a stage, a.

【0005】[0005]

【実施例】次に、この発明の実施例を図面を参照し説明
する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】この発明の一実施例の構成を示す図1を参
照すると、この時刻同期システム1を搭載するコンピュ
ータ(図示せず)の各各には、他のコンピュータとメッ
セージの送受信を行い、かつ送受信時刻をメッセージに
スタンプする機能を有するインタフェ−ス部2と、他の
コンピュータとメッセージの伝送および処理時間を計算
するための時刻同期制御部3と、自身のマシン時刻と入
手した標準時刻との差の値を記憶する時刻差保持領域4
と、データ伝送による時刻補正値および標準時刻を含む
メッセージを受けて、自身の標準時刻を生成する標準時
刻生成部5と、他のコンピュータとの時刻同期要求メッ
セージおよびその応答メッセージを生成する業務処理部
6と、を備える。
Referring to FIG. 1 showing the configuration of an embodiment of the present invention, each computer (not shown) equipped with the time synchronization system 1 transmits / receives a message to / from another computer, and An interface unit 2 having a function of stamping a transmission / reception time on a message, a time synchronization control unit 3 for calculating a transmission and processing time of a message with another computer, a machine time of itself, and an acquired standard time. Time difference holding area 4 for storing the value of the difference
And a standard time generation unit 5 that generates a standard time of itself by receiving a message including a time correction value and standard time due to data transmission, and a business process that generates a time synchronization request message with another computer and its response message. And a section 6.

【0007】この実施例の構成を示す図1に、時刻同期
メッセージの構成を示す図2と時刻同期をとるメッセー
ジの流れを説明する図3とを併用し、動作を説明する。
The operation will be described with reference to FIG. 1 showing the structure of this embodiment and FIG. 2 showing the structure of the time synchronization message and FIG. 3 explaining the flow of the message for time synchronization.

【0008】まず、標準時刻を有する標準側コンピュー
タ20から標準時刻の送付を受ける従属側コンピュータ
21に対して時刻同期要求メッセージ(図2の10およ
び図3の31)を標準側コンピュータ20の時刻同期制
御部(図1の3)から、従属側コンピュータ21へイン
タフェース部(図1の2)を経由し送信する(図3の3
1)。標準側および従属側コンピュータ20および21
のインタフェース部(図1の2)は時刻同期用メッセー
ジ31の送受信時に自コンピュータのマシン時刻をタイ
ムスタンプする機能によって、時刻同期要求メッセージ
の標準側送信時刻(図2の12)に時刻同期要求送信時
刻(図3のt1 )がタイムスタンプされる。
First, a time synchronization request message (10 in FIG. 2 and 31 in FIG. 3) is sent to the subordinate computer 21 that receives the standard time from the standard computer 20 having the standard time by the standard computer 20. Transmission from the control unit (3 in FIG. 1) to the subordinate computer 21 via the interface unit (2 in FIG. 1) (3 in FIG. 3)
1). Standard and subordinate computers 20 and 21
The interface unit (2 in FIG. 1) transmits the time synchronization request at the standard transmission time (12 in FIG. 2) of the time synchronization request message by the function of time stamping the machine time of the own computer when the time synchronization message 31 is transmitted and received. The time (t 1 in FIG. 3) is time stamped.

【0009】次に従属側コンピュータ21は、自身のイ
ンタフェース部2から受信した時刻同期要求メッセージ
31の従属側受信時刻(図2の13)に時刻同期要求メ
ッセージに受信時刻(図3のT)をタイムスタンプ
し、従属側コンピュータ21の時刻同期制御部(図1の
3)へ通知する。このとき従属側コンピュータ21の時
刻同期制御部(図1の3)は受信した時刻同期要求メッ
セージ31のメッセージ情報(標準側送信時刻12,受
信側受信時刻13)を、送信する時刻同期応答メッセー
ジ32に継承させ、更に、インタフェース部2で、時刻
同期応答メッセージ32の送信時刻(図3,T2 )を、
時刻同期応答メッセージ10の従属側送信時刻(図2の
14)にタイムスタンプし標準側コンピュータへ送信す
る(図3の32)。
Next, the subordinate computer 21 receives the time synchronization request message (T 1 in FIG. 3) at the subordinate reception time (13 in FIG. 2) of the time synchronization request message 31 received from its own interface unit 2. Is time-stamped and notified to the time synchronization control unit (3 in FIG. 1) of the subordinate computer 21. At this time, the time synchronization control unit (3 in FIG. 1) of the subordinate computer 21 transmits the message information (standard side transmission time 12, reception side reception time 13) of the received time synchronization request message 31 to the time synchronization response message 32. In addition, the interface unit 2 further sets the transmission time of the time synchronization response message 32 (T 2 in FIG. 3) to
The time synchronization response message 10 is time stamped at the subordinate transmission time (14 in FIG. 2) and transmitted to the standard computer (32 in FIG. 3).

【0010】次に、時刻同期応答メッセージ32を受信
した標準側コンピュータ20は、インタフェース部2
(図1の2)で、時刻同期応答メッセージ32の受信時
刻(図3のt2 )を時刻同期応答メッセージ10の標準
側受信時刻(図2の15)にタイムスタンプし、時刻同
期制御部(図1の3)に送付される。
Next, the standard side computer 20 which has received the time synchronization response message 32, the interface unit 2
In (2 in FIG. 1), the reception time (t 2 in FIG. 3) of the time synchronization response message 32 is time-stamped to the standard reception time (15 in FIG. 2) of the time synchronization response message 10, and the time synchronization control unit ( It is sent to 3) of FIG.

【0011】時刻同期応答メッセージ32の受信時点
で、標準側コンピュータ20および従属側コンピュータ
21との間のメッセージ送信によるデータ伝送時間と従
属側コンピュータ21での処理に要した内部時間を受信
した時刻同期応答メッセージ10の標準側送信時刻1
2,従属側受信時刻13,従属側送信時刻14,標準側
受信時刻15とに基づいて、時刻同期の補正値を計算す
る。
At the time of receiving the time synchronization response message 32, the time synchronization when the data transmission time by the message transmission between the standard side computer 20 and the subordinate side computer 21 and the internal time required for processing in the subordinate side computer 21 are received. Standard side transmission time 1 of response message 10
2, a correction value for time synchronization is calculated based on the subordinate reception time 13, the subordinate transmission time 14, and the standard reception time 15.

【0012】41.メッセージのデータ伝送時間(片道
分) データ伝送時間=(t −t)−(T−T)/
2 42.従属側コンピュータの内部処理時間 内部処理時間=T−T 43.システムの伝送時間 システムの伝送時間=データ伝送時間+内部処理時間 44.メッセージ受信時の標準時間(補正標準時刻) 受信時の標準時間=標準時間+システム伝送時間 45.標準時刻との差 時刻差=標準時刻−従属側マシン時刻 46.標準時刻 従属側標準時刻=従属側マシン時刻+時刻差 標準側コンピュータ20は自身の標準時刻でもって、従
属側コンピュータ21のマシン時刻を標準時刻に一致さ
せる補正値の計算を算出式41乃至46から計算する。
そして、標準側コンピュータ20はシステム伝送時間
(式43)を求め、時刻同期要求メッセージ33のシス
テム伝送時間(図2の17)に格納し、また、その時点
での標準側コンピュータ20の標準時刻を標準側の標準
時刻(図2の16)に格納し、従属側コンピュータ21
へ送信する(図3の33)。次に、時刻同期要求メッセ
ージ33を受信した従属側コンピュータ21は、同メッ
セージ33の標準側の標準時刻(図2の16)とシステ
ム伝送時間(図の17)と受信した時点での従属側コン
ピュータ21のマシン時刻と時刻同期のための時刻補正
を計算式(44,45)による標準時刻との時刻差を求
める。そして、従属側コンピュータ21はその差を時刻
差保持領域(図1の4)にセットし、標準側コンピュー
タ20に時刻同期応答メッセージ34を送信し、標準側
コンピュータ20が同メッセージ34を受信した時点で
時刻同期動作を完了する。
41. Data transmission time of message (one-way portion) Data transmission time = (t 2 −t 1 ) − (T 2 −T 1 ) /
2 42. Internal processing time of subordinate computer Internal processing time = T 2 −T 1 43. System transmission time System transmission time = data transmission time + internal processing time 44. Standard time at message reception (corrected standard time) Standard time at reception = standard time + system transmission time 45. Difference with standard time Time difference = standard time-dependent machine time 46. Standard time Dependent side standard time = Dependent side machine time + time difference The standard side computer 20 uses its own standard time to calculate the correction value for matching the machine time of the dependent side computer 21 with the standard time from the formulas 41 to 46. calculate.
Then, the standard computer 20 obtains the system transmission time (equation 43), stores it in the system transmission time (17 in FIG. 2) of the time synchronization request message 33, and also sets the standard time of the standard computer 20 at that time. It is stored at the standard time (16 in FIG. 2) on the standard side, and the subordinate computer 21
(33 in FIG. 3). Next, the subordinate computer 21 that has received the time synchronization request message 33 receives the standard time (16 in FIG. 2) and the system transmission time (17 in FIG. 2) of the standard of the message 33, and the subordinate computer at the time of reception. The time difference between the machine time of 21 and the standard time is calculated by the formula (44, 45) for time correction for time synchronization. Then, the subordinate computer 21 sets the difference in the time difference holding area (4 in FIG. 1), transmits the time synchronization response message 34 to the standard side computer 20, and when the standard side computer 20 receives the message 34. The time synchronization operation is completed with.

【0013】従属側コンピュータ21内で標準時刻を参
照する場合、その時点の従属側コンピュータ21のマシ
ン時刻と時間差保持領域の値とによって、計算式46を
用い標準時刻を算出する機能を持つ標準時刻生成部5に
アクセスして、その時点の従属側コンピュータの標準時
刻を参照することができる。また、標準側コンピュータ
においても時刻差保持領域4の時刻値をゼロに設定する
ことにより、従属側と同一の処理で標準時刻を参照でき
る。
When the standard time is referred to in the subordinate computer 21, the standard time having the function of calculating the standard time using the calculation formula 46 according to the machine time of the subordinate computer 21 at that time and the value of the time difference holding area. By accessing the generation unit 5, the standard time of the subordinate computer at that time can be referred to. In addition, by setting the time value of the time difference holding area 4 to zero also in the standard side computer, the standard time can be referred to by the same processing as the subordinate side.

【0014】[0014]

【発明の効果】以上説明したように、この発明によれ
ば、複数コンピュータの時刻同期が、コンピュータ間の
メッセージ授受のためのロス時間および内部処理時間を
補正した精度の高い標準時刻の送受によって実現でき
る。また、特別な時刻同期装置を用いることなく、通常
の業務処理機能を利用して、簡易に実現できる。
As described above, according to the present invention, time synchronization of a plurality of computers is realized by highly accurate standard time transmission / reception in which loss time and internal processing time for message exchange between computers are corrected. it can. Further, it can be easily realized by using a normal business processing function without using a special time synchronization device.

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

【図1】各コンピュータに備える時刻同期システムの一
実施例の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an embodiment of a time synchronization system provided in each computer.

【図2】時刻同期メッセージの構成を示す図である。FIG. 2 is a diagram showing a structure of a time synchronization message.

【図3】時刻同期の動作を説明する図である。FIG. 3 is a diagram illustrating an operation of time synchronization.

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

1 時刻同期システム 2 インターフェイス部 3 時刻同期制御部 4 時刻差保持領域 5 標準時刻生成部 6 業務処理部 10 時刻同期要求メッセージ 11 宛先コード 12 標準側送信時刻 13 従属側受信時刻 14 従属側送信時刻 15 標準側受信時刻 16 標準側標準時刻 17 システム伝送時間 20 標準側コンピュータ 21 従属側コンピュータ 31 時刻同期要求メッセージ 32 時刻同期応答メッセージ 33 時刻同期要求メッセージ 34 時刻同期応答メッセージ 1 time synchronization system 2 interface section 3 time synchronization control section 4 time difference holding area 5 standard time generation section 6 business processing section 10 time synchronization request message 11 destination code 12 standard side transmission time 13 dependent side reception time 14 dependent side transmission time 15 Standard side reception time 16 Standard side standard time 17 System transmission time 20 Standard side computer 21 Subordinate side computer 31 Time synchronization request message 32 Time synchronization response message 33 Time synchronization request message 34 Time synchronization response message

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 第1および第2のコンピュータが共通に
基準とする標準時刻と、前記第1および第2のコンピュ
ータがそれぞれ有する自身のマシン時刻とを一致させる
ための時刻同期システムにおいて、 前記第1および第2のコンピュータの各各には、 前記標準時刻と前記マシン時刻との時刻差を記憶する記
憶手段と、メッセージをデータ伝送するときに生ずる時
間遅れを計測する計測手段と、前記計測手段によって計
測した前記時間遅れと前記標準時刻と前記マシン時刻と
に基づいて、受信した前記標準時刻を補正する補正値の
計算手段と、前記標準時刻をメッセージとして生成する
業務処理手段と、前記メッセージを送受信し、かつ送受
信時刻を前記メッセージにタイムスタンプする通信手段
と、を備えて、 前記第1のコンピュータの前記マシン時刻を前記標準時
刻とするとき、前記第1のコンピュータが前記補正値を
含む標準時刻メーセージを前記第2のコンピュータに送
信し、共通に基準とする前記標準時刻を前記第1および
第2のコンピュータがそれぞれ保持することを特徴とす
る時刻同期システム。
1. A time synchronization system for matching a standard time, which is commonly used as a reference by first and second computers, with its own machine time, which is possessed by each of the first and second computers. In each of the first and second computers, a storage unit that stores a time difference between the standard time and the machine time, a measurement unit that measures a time delay that occurs when transmitting a message data, and the measurement unit A correction value calculating means for correcting the received standard time based on the time delay, the standard time, and the machine time measured by, a business processing means for generating the standard time as a message, and the message. Communication means for transmitting and receiving and time stamping the transmission and reception time to the message, in front of the first computer When the machine time is set to the standard time, the first computer transmits a standard time message including the correction value to the second computer, and the standard time that is a common reference is set to the first and second standard times. A time synchronization system characterized by being held by each computer.
JP4240232A 1992-09-09 1992-09-09 Time synchronization system Expired - Lifetime JP2842076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4240232A JP2842076B2 (en) 1992-09-09 1992-09-09 Time synchronization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4240232A JP2842076B2 (en) 1992-09-09 1992-09-09 Time synchronization system

Publications (2)

Publication Number Publication Date
JPH0689123A true JPH0689123A (en) 1994-03-29
JP2842076B2 JP2842076B2 (en) 1998-12-24

Family

ID=17056420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4240232A Expired - Lifetime JP2842076B2 (en) 1992-09-09 1992-09-09 Time synchronization system

Country Status (1)

Country Link
JP (1) JP2842076B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5035416B2 (en) * 2008-06-03 2012-09-26 富士通株式会社 Information processing apparatus, information processing apparatus control method, and semiconductor device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5035416B2 (en) * 2008-06-03 2012-09-26 富士通株式会社 Information processing apparatus, information processing apparatus control method, and semiconductor device

Also Published As

Publication number Publication date
JP2842076B2 (en) 1998-12-24

Similar Documents

Publication Publication Date Title
US7023816B2 (en) Method and system for time synchronization
US9053106B2 (en) Time monitor
EP3284217B1 (en) Methods, systems, and computer readable medium for synchronizing timing among network interface cards (nics) in a network equipment test device
US8160835B2 (en) Method for measuring unidirectional transmission characteristics such as packet propagation time, fluctuations in propagation time and results derivable therefrom, in a telecommunications network
US7475272B2 (en) Method for calculating clock offset and skew
EP1961186B1 (en) Using travel-time as means for improving the accuracy of simple network time protocol
US8370675B2 (en) Precise clock synchronization
US7191354B2 (en) Method for synchronizing a first clock to a second clock, processing unit and synchronization system
US8335173B2 (en) Inserting time of departure information in frames to support multi-channel location techniques
EP1239620A2 (en) Relative time synchronization between three or more systems
US20170126526A1 (en) Method, a computer program product, and a carrier for indicating one-way latency in a data network
US20080141058A1 (en) System, method, and article of manufacture for synchronizing time of day clocks on first and second computers
WO2005029780A3 (en) Systems and methods for measuring the distance between devices
US20220248353A1 (en) Synchronization method and device
US8289963B2 (en) Process and system for calculating distances between wireless nodes
JPH0689123A (en) Time synchronization system
JP2001244932A (en) Method and system for measuring network delay
CN113259039A (en) Time synchronization method and device, computer equipment and storage medium
JP2002135284A (en) Line concentrator
JP2003098280A (en) System and method for providing time information
CN116707695A (en) PTP time synchronization method, network equipment and storage medium
JP2001281368A (en) Standard time supplying service system
JP2001021676A (en) Standard time-setting method and device therefor
JPH09162861A (en) Communication controller
JPS616758A (en) Synchronizing method of timer

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: 19980922