JPH03140037A - Network time synchronizing equipment - Google Patents

Network time synchronizing equipment

Info

Publication number
JPH03140037A
JPH03140037A JP27952189A JP27952189A JPH03140037A JP H03140037 A JPH03140037 A JP H03140037A JP 27952189 A JP27952189 A JP 27952189A JP 27952189 A JP27952189 A JP 27952189A JP H03140037 A JPH03140037 A JP H03140037A
Authority
JP
Japan
Prior art keywords
time
section
message
request
computer
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
JP27952189A
Other languages
Japanese (ja)
Inventor
Kazuo Kibe
木部 和男
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 JP27952189A priority Critical patent/JPH03140037A/en
Publication of JPH03140037A publication Critical patent/JPH03140037A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To eliminate the need for the adjustment between computers by utilizing one clock in common so as to obtain a time in order to synchronize the time between the computers on a local area network. CONSTITUTION:The equipment consists of a time request section 10, a request reception section 20, a message control section 30, a request message transmission section 31, a reply message reception section 32, a reply message processing section 33, an end request section 34, a display section 35, a console 36, a clock calculation section 40, a time response section 50, a processing end section 60, communication sections 70, 71, a request message reception section 80, a message control section 90, a request message processing section 91, a reply message transmission section 92, an end request section 93, a time acquisition section 100, and a time generator 110. When the processing requiring the present time is caused, the same time is obtained for all computers on the network without adjustment between the computers by using one clock only.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ローカルエリアネットワークを構成している
計算機に対する時刻同期手段に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to time synchronization means for computers forming a local area network.

〔概要〕〔overview〕

本発明は、複数個の計算機に対する時刻同期手段におい
て、 1台の時計を共通に利用して時刻を得ることにより、 計算機間の調整を不要にすることができるようにしたも
のである。
The present invention is a time synchronization means for a plurality of computers, which makes it possible to eliminate the need for coordination between computers by commonly using one clock to obtain the time.

〔従来の技術〕[Conventional technology]

従来、ローカルエリアネットワーク上の時刻を同期させ
る場合に、おのおのの計算機内の時計を使用しているの
で、−台の計算機が各計算機と通信を行って時刻を合わ
せていた。
Conventionally, when synchronizing the time on a local area network, the clocks in each computer were used, so -1 computers communicated with each computer to synchronize the time.

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

このような従来例では、計算機間の時刻を同期させるの
に、時刻を少しずつ変更し、また常に通信を行って調整
し続けなけれならない欠点があった。
In such a conventional example, in order to synchronize the time between computers, the time has to be changed little by little and constant communication has to be carried out for adjustment.

本発明はこのような欠点を除去するもので、ネットワー
ク上にある計算機間で調整せずに同一時刻を得ることが
できるネットワーク時刻同期装置を提供することを目的
とする。
The present invention aims to eliminate such drawbacks, and aims to provide a network time synchronization device that can obtain the same time without adjustment between computers on a network.

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

本発明は、ローカルエリアネットワークを経由して相互
に通信を行う計算機の複数個を有する系に含まれるネッ
トワーク時刻同期装置において、上記計算機のひとつで
ある第一計算機は時刻発生装置を備え、この第一計算機
を除く計算機である第二計算機は、現在時刻を必要とす
る処理の発生時に時刻要求メツセージを上記第一計算機
に送信する要求メツセージ送信手段を備え、上記第一計
算機は、到来した時刻要求メツセージに応じて上記時刻
発生装置が発生する時刻データを含む応答メツセージを
生成してこの時刻要求メツセージを送信した計算機に送
信する応答メツセージ生成送信手段を備え、上記第二計
算機は、要求メツセージ送信後の所定時間内に到来した
応答メツセージから抽出した時刻データに基づき現在時
刻を計算する時刻計算手段および応答メツセージが所定
時間を経過時に未到来のときに上記現在時刻を必要とす
る処理を終了させる処理終了手段を備えたことを特徴と
する。
The present invention provides a network time synchronization device included in a system including a plurality of computers that communicate with each other via a local area network, in which a first computer, which is one of the computers, is equipped with a time generation device; The second computer, which is a computer other than the first computer, is equipped with a request message transmitting means for transmitting a time request message to the first computer when a process requiring the current time occurs, and the first computer The second computer includes a response message generating and transmitting means for generating a response message including time data generated by the time generating device in response to the message and transmitting the response message to the computer that transmitted the time request message, and the second computer transmits the response message after transmitting the request message. time calculation means for calculating the current time based on time data extracted from response messages that have arrived within a predetermined time; and processing for terminating the process that requires the current time when the response message has not arrived after the predetermined time has elapsed. It is characterized by having a termination means.

〔作用〕[Effect]

現在時刻の取得の要求があったときにそれを受は付け、
時刻供給計算機に現在時刻を要求するメツセージを送信
する。要求メツセージを受信すると、その要求メツセー
ジから必要なデータを取り出し、それに従った処理を行
う。時刻発生装置から現在時刻を得てデータを要求元に
送信し、また、正常な要求メツセージを受信できなかっ
た場合に処理の終了を要求する。時刻供給計算機からの
応答メツセージを受信すると、その応答メツセージから
必要なデータを取り出して処理を行い、取り出したデー
タに基づき正確な時刻を計算し、この計算した時刻を時
刻要求元に返す。正常な応答メツセージを受信できなか
った場合または一定時間待っても応答メツセージが返っ
てこなかった場合に処理の終了を要求し、正常に終了で
きなかったことをコンソールに表示して処理を終了させ
る。
When there is a request to obtain the current time, it is accepted and
Sends a message requesting the current time to the time supply computer. When a request message is received, necessary data is extracted from the request message and processed accordingly. It obtains the current time from the time generator and sends the data to the request source, and also requests termination of the process if a normal request message cannot be received. When a response message is received from the time supply computer, necessary data is extracted from the response message and processed, an accurate time is calculated based on the extracted data, and the calculated time is returned to the time request source. When a normal response message cannot be received or when a response message is not returned even after waiting for a certain period of time, the process is requested to be terminated, and the process is terminated by displaying on the console that it could not be terminated normally.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づき説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は、この実施例の構成を示すブロック構成図であ
る。この実施例は、第1図に示すように、時刻要求部1
0と、要求受付部20と、メツセージ制御部30と、要
求メツセージ送信部31と、応答メツセージ受信部32
と、応答メツセージ処理部33と、終了要求部34と、
表示部35と1、コンソール36と、時刻計算部40と
、時刻応答部50と、処理終了部60と、通信部70お
よび71と、要求メツセージ受信部80と、メツセージ
制御部90と、要求メツセージ処理部91と、応答メツ
セージ送信部92と、終了要求部93と、時刻取得部1
00と、時刻発生装置110とからなる。すなわち、こ
の実施例は、ローカルエリアネットワークを経由して相
互に通信を行う計算機の複数個を有する系に含まれ、上
記計算機のひとつである第一計算機は時刻発生装置11
0を備え、この第一計算機を除く計算機である第二計算
機は、現在時刻を必要とする処理の発生時に時刻要求メ
ツセージを上記第一計算機に送信する要求メツセージ送
信手段である要求受付部20および要求メツセージ送信
部31を備え、上記第一計算機は、到来した時刻要求メ
ツセージに応じて時刻発生装置110が発生する時刻デ
ータを含む応答メツセージを生成してこの時刻要求メツ
セージを送信した計算機に送信する応答メツセージ生成
送信手段である要求メツセージ受信部80、要求メツセ
ージ処理部91、時刻取得部100および応答メツセー
ジ送信部92を備え、上記第二計算機は、要求メツセー
ジ送信後の所定時間内に到来した応答メツセージから抽
出した時刻データに基づき現在時刻を計算する時刻計算
手段である応答メツセージ受信部32、応答メツセージ
処理部33、時刻計算部40、時刻応答部50および応
答メツセージが所定時間を経過時に未到来のときに上記
現在時刻を必要とする処理を終了させる処理終了手段で
ある処理終了部60および終了要求部34を備える。
FIG. 1 is a block diagram showing the configuration of this embodiment. In this embodiment, as shown in FIG.
0, a request reception section 20, a message control section 30, a request message transmission section 31, and a response message reception section 32.
, a response message processing unit 33, a termination request unit 34,
Display units 35 and 1, console 36, time calculation unit 40, time response unit 50, processing termination unit 60, communication units 70 and 71, request message reception unit 80, message control unit 90, request message Processing section 91, response message transmitting section 92, termination request section 93, and time acquisition section 1
00 and a time generator 110. That is, this embodiment is included in a system having a plurality of computers that communicate with each other via a local area network, and the first computer, which is one of the computers, is connected to the time generator 11.
The second computer, which is a computer other than the first computer, is equipped with a request receiving unit 20, which is a request message transmitting means for transmitting a time request message to the first computer when a process requiring the current time occurs, and The first computer includes a request message transmitting section 31, and the first computer generates a response message containing time data generated by the time generator 110 in response to an incoming time request message, and transmits the response message to the computer that sent the time request message. The second computer includes a request message receiving unit 80, a request message processing unit 91, a time acquisition unit 100, and a response message transmitting unit 92, which are response message generation and transmission means, and is configured to receive a response that arrives within a predetermined time after transmitting the request message. The response message receiving unit 32, response message processing unit 33, time calculation unit 40, time response unit 50, which is a time calculation means that calculates the current time based on time data extracted from the message, and the response message has not arrived after a predetermined time has elapsed. A process termination unit 60 and a termination request unit 34 are provided as a process termination unit that terminates the process requiring the current time at the time of .

次に、この実施例の処理の詳細を説明する。第2図に時
刻要求部10の処理手続きを示す。
Next, details of the processing of this embodiment will be explained. FIG. 2 shows the processing procedure of the time requesting section 10.

時刻供給計算機が起動されると、時刻供給プログラムが
起動されて時刻の要求メツセージ待ちになる。ひとつの
計算機に現在時刻を必要とする処理が生じると、その計
算機上で時刻要求プログラムを実行する。まず、要求受
付部20で現在時刻の要求部は付けを行う(ステップ3
1)。次に、その要求をメツセージ制御部30に渡す。
When the time supply computer is activated, the time supply program is activated and waits for a time request message. When a process that requires the current time occurs on one computer, a time request program is executed on that computer. First, the request reception section 20 adds the request section of the current time (step 3
1). Next, the request is passed to the message control section 30.

メツセージ制御部30は、要求メツセージ送信部31に
命令を出し、時刻要求メツセージを作成し、(ステップ
S2)、メツセージを時刻供給計算機に送信する(ステ
ップS3)。この後に、要求側は時刻供給計算機からの
応答メツセージ受信待ちになる(ステップ34)。
The message control unit 30 issues a command to the request message transmitting unit 31 to create a time request message (step S2), and transmits the message to the time supply computer (step S3). After this, the requesting side waits to receive a response message from the time supply computer (step 34).

時刻供給計算機では、送られてきた時刻要求メツセージ
を要求メツセージ受信部80で受信しくステップ512
) 、メツセージ制御部90に渡す。メツセージ制御部
90は要求メツセージ処理部91に命令を出してメツセ
ージ取り出しを行う(ステップ513)。そのメツセー
ジが正しければ(ステップ514)、時刻取得部100
に命令を出して時刻発生装置100から時刻取り出しを
行う(ステップ515)。
In the time supply computer, the request message receiving unit 80 receives the sent time request message (step 512).
), and passes it to the message control unit 90. The message control unit 90 issues a command to the request message processing unit 91 to retrieve the message (step 513). If the message is correct (step 514), the time acquisition unit 100
A command is issued to extract the time from the time generator 100 (step 515).

また正しくなければ(ステップ314) 、応答メツセ
ージにエラーを入力する(ステップ519)。取り出し
た時刻が正しければ(ステップ516) 、その時刻を
元に応答メツセージを作成する(ステップ517)。正
しくなければ(ステップ816)、応答メツセージにエ
ラーを人力して(ステップ520)、応答メツセージを
作成する(ステップ517)。次に、応答メツセージ送
信部92で応答メツセージ制御部する(ステップ818
)。その後に、時刻供給プログラムが再び要求メツセー
ジ受信部80で要求メツセージ受信待ちになる。
If it is not correct (step 314), an error is input in the response message (step 519). If the retrieved time is correct (step 516), a response message is created based on that time (step 517). If it is not correct (step 816), an error is manually entered into the response message (step 520), and a response message is created (step 517). Next, the response message transmitter 92 controls the response message (step 818).
). Thereafter, the time supply program again waits for the request message receiving section 80 to receive the request message.

時刻要求プログラム側で応答メツセージを受信するとく
ステップS4)、正常に時刻を取得して受信が完了した
かどうかをチエツクしくステップS5)、正常であれば
応答メツセージ処理部33でデータを取り出しくステッ
プS6)、時刻計算部50で時刻を計算する(ステップ
37)。また、エラーメツセージを受信しまたは制限時
間内に応答が無ければエラーメツセージが出力され(ス
テップ510)、プログラムを終了する。次に、計算し
た時刻が正しければ(ステップS8)、時刻応答部50
で時刻をリターンしくステップS9)、処理終了部60
で処理を終了する。また、計算結果が異常であれば、終
了要求部34から終了要求を出し、表示部35でエラー
メツセージをコンソール36に出力しくステップ511
)、終了する。
When the time request program receives the response message (step S4), it checks whether the time has been successfully acquired and the reception has been completed (step S5), and if it is normal, the response message processing section 33 extracts the data. S6), the time calculation unit 50 calculates the time (step 37). Further, if an error message is received or there is no response within the time limit, an error message is output (step 510) and the program is terminated. Next, if the calculated time is correct (step S8), the time response unit 50
to return the time (step S9), processing end section 60
Terminates the process. If the calculation result is abnormal, the termination request section 34 issues a termination request, and the display section 35 outputs an error message to the console 36 (step 511).
),finish.

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

本発明は、以上説明したように、現在時刻を必要とする
処理が生じた場合にすべて1台の時計を使用するので、
ネットワーク上にあるすべての計算機で計算機間で調整
せずに同一の時刻を得ることができる効果がある。
As explained above, the present invention uses one clock for all processes that require the current time.
This has the effect that all computers on the network can obtain the same time without having to make adjustments between computers.

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

第1図は本発明実施例の構成を示すブロック構成図。 第2図は第1図の時刻要求部の処理手続きを示すフロー
チャート。 10・・・時刻要求部、20・・・要求受付部、30・
・・メツセージ制御部、31・・・要求メツセージ送信
部、32・・・応答メツセージ受信部、33・・・応答
メツセージ処理部、34・・・終了要求部、35・・・
表示部、36・・・コンソール、40・・・時刻計算部
、50・・・時刻応答部、60・・・処理終了部、70
.71・・・通信部、80・・・要求メツセージ受信部
、90・・・メツセージ制御部、91・・・要求メツセ
ージ処理部、92・・・応答メツセージ送信部、93・
・・終了要求部、100・・・時刻取得部、110・・
・時刻発生装置。
FIG. 1 is a block configuration diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a flowchart showing the processing procedure of the time request unit in FIG. 1. 10... Time request section, 20... Request reception section, 30.
...Message control section, 31..Request message transmission section, 32..Response message reception section, 33..Response message processing section, 34.. Termination request section, 35..
Display section, 36... Console, 40... Time calculation section, 50... Time response section, 60... Processing end section, 70
.. 71... Communication unit, 80... Request message receiving unit, 90... Message control unit, 91... Request message processing unit, 92... Response message transmitting unit, 93...
... Termination request section, 100... Time acquisition section, 110...
・Time generator.

Claims (1)

【特許請求の範囲】 1、ローカルエリアネットワークを経由して相互に通信
を行う計算機の複数個を有する系に含まれるネットワー
ク時刻同期装置において、 上記計算機のひとつである第一計算機は時刻発生装置を
備え、 この第一計算機を除く計算機である第二計算機は、現在
時刻を必要とする処理の発生時に時刻要求メッセージを
上記第一計算機に送信する要求メッセージ送信手段を備
え、 上記第一計算機は、到来した時刻要求メッセージに応じ
て上記時刻発生装置が発生する時刻データを含む応答メ
ッセージを生成してこの時刻要求メッセージを送信した
計算機に送信する応答メッセージ生成送信手段を備え、 上記第二計算機は、要求メッセージ送信後の所定時間内
に到来した応答メッセージから抽出した時刻データに基
づき現在時刻を計算する時刻計算手段および応答メッセ
ージが所定時間を経過時に未到来のときに上記現在時刻
を必要とする処理を終了させる処理終了手段を備えた ことを特徴とするネットワーク時刻同期装置。
[Claims] 1. In a network time synchronization device included in a system including a plurality of computers that communicate with each other via a local area network, a first computer that is one of the computers has a time generation device. The second computer, which is a computer other than the first computer, includes request message sending means for sending a time request message to the first computer when a process requiring the current time occurs; The second computer includes a response message generation and transmission means for generating a response message including time data generated by the time generation device in response to an incoming time request message and transmitting the response message to the computer that has transmitted the time request message, the second computer comprising: A time calculation means that calculates the current time based on time data extracted from a response message that has arrived within a predetermined time after sending the request message, and a process that requires the current time when the response message has not arrived after the predetermined time has elapsed. A network time synchronization device characterized by comprising a process termination means for terminating the process.
JP27952189A 1989-10-26 1989-10-26 Network time synchronizing equipment Pending JPH03140037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27952189A JPH03140037A (en) 1989-10-26 1989-10-26 Network time synchronizing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27952189A JPH03140037A (en) 1989-10-26 1989-10-26 Network time synchronizing equipment

Publications (1)

Publication Number Publication Date
JPH03140037A true JPH03140037A (en) 1991-06-14

Family

ID=17612186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27952189A Pending JPH03140037A (en) 1989-10-26 1989-10-26 Network time synchronizing equipment

Country Status (1)

Country Link
JP (1) JPH03140037A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100545805B1 (en) * 1998-03-04 2006-04-14 엘지전자 주식회사 How to display time during communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100545805B1 (en) * 1998-03-04 2006-04-14 엘지전자 주식회사 How to display time during communication

Similar Documents

Publication Publication Date Title
US20010047420A1 (en) System and method for the operator control and for the monitoring of an automation system over the internet using an asymmetric internet connection
EP0613271B1 (en) Method and apparatus for time synchronization of bus type local area networks including hierarchical networks
US4199662A (en) Hybrid control of time division multiplexing
JPH03140037A (en) Network time synchronizing equipment
JP2001305256A (en) Time synchronization method in computer system
JPH0644763B2 (en) Data transfer method
JPS62186634A (en) Host-terminal communication system by terminal protocol conversion system
JPS59161956A (en) Transmission controller
JPH0581153A (en) On-line terminal equipment with time control function
JPH0160853B2 (en)
JPS60180244A (en) Cyclic data transmission system
KR100435791B1 (en) A remote-measuring data display system which transmitted from satellite and the display method thereof
JPS6245245A (en) Polling method in lighting line carrier communication
JPS63213013A (en) Time point designating system for computer network system
JPH0582617B2 (en)
JPH02212911A (en) Timing method for digital time unit
JPH05143507A (en) System for transferring inter-computer data synchronization
JPH01297591A (en) Setting and processing system for system timepiece
JPS63244156A (en) Message transmitting method
JPH02214398A (en) Remote monitor controller
JPH0395660A (en) System time setting method for plural central processing unit method
JPH0371360A (en) Communication controlling system
JP2000261523A (en) Method and system for data transmission in multi-link communication and medium recording program to execute this method
JPH02171946A (en) Communication control equipment for personal computer
JPH07129205A (en) Method for communication between programmable controller and monitor device