JP2009008444A - Time management server, time management program, and time management method - Google Patents

Time management server, time management program, and time management method Download PDF

Info

Publication number
JP2009008444A
JP2009008444A JP2007167970A JP2007167970A JP2009008444A JP 2009008444 A JP2009008444 A JP 2009008444A JP 2007167970 A JP2007167970 A JP 2007167970A JP 2007167970 A JP2007167970 A JP 2007167970A JP 2009008444 A JP2009008444 A JP 2009008444A
Authority
JP
Japan
Prior art keywords
time
client
internal clock
clients
side internal
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
JP2007167970A
Other languages
Japanese (ja)
Inventor
Yuji Miyamoto
裕司 宮本
Ryota Akiyama
良太 秋山
Yasuo Abe
康夫 阿部
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.)
Fujitsu Broad Solution and Consulting Inc
Original Assignee
Fujitsu Broad Solution and Consulting Inc
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 Fujitsu Broad Solution and Consulting Inc filed Critical Fujitsu Broad Solution and Consulting Inc
Priority to JP2007167970A priority Critical patent/JP2009008444A/en
Priority to PCT/JP2008/054274 priority patent/WO2009001583A1/en
Publication of JP2009008444A publication Critical patent/JP2009008444A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)
  • Electric Clocks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To detect precisely a computer having a failed internal timepiece. <P>SOLUTION: A time information collection means 1c acquires a local time shown by client side internal timepieces carried by clients 2, 3, 4. Then, a delay time calculation means 1d calculates a delay time in communication from a transmission time and an arrival time relative to each client 2, 3, 4. An obstacle detection means 1e corrects the local time by the delay time, and it is determined whether an error between a server side internal timepiece 1a and each client side internal timepiece is within a prescribed threshold or not relative to each client 2, 3, 4. When each error of all the clients 2, 3, 4 exceeds the threshold, it is determined that the server side internal timepiece 1a is failed. When the number of clients having each error exceeding the threshold is below a prescribed ratio, it is determined that each client side internal timepiece of the clients having each error exceeding the threshold is failed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明はネットワークで接続された複数の装置の時刻管理を行うための時刻管理サーバ、時刻管理プログラム、および時刻管理方法に関し、特に内部時計に障害がある装置を検出可能な時刻管理サーバ、時刻管理プログラム、および時刻管理方法に関する。   The present invention relates to a time management server, a time management program, and a time management method for performing time management of a plurality of devices connected via a network, and in particular, a time management server and time management capable of detecting a device having a failure in an internal clock. The present invention relates to a program and a time management method.

コンピュータを用いて処理を行う場合、処理を実行した時刻をタイムスタンプとして記録する場合がある。たとえば、文書の内容を承認した時刻を示すタイムスタンプを電子署名に付加する場合がある。これにより、タイムスタンプの偽造等が困難となる。   When processing is performed using a computer, the time at which the processing is performed may be recorded as a time stamp. For example, a time stamp indicating the time when the contents of the document are approved may be added to the electronic signature. This makes it difficult to forge a time stamp.

このように、タイムスタンプによって文書内容の信頼性を確保する場合、その前提として、コンピュータの内部時計が正確であることが望まれる。そこで、多くの場合、ネットワーク上に時刻を管理するサーバ(以下、時刻管理サーバと呼ぶ)を設置する。その時刻管理サーバは、正確な時刻を通知する電波を定期的に受信して、内部の時計を正確な時刻に合わせる。時刻を通知する電波としては、たとえば、標準時報局から送信される標準電波(コールサイン:JJY)やGPS(Global positioning system)における衛星から送られる電波がある。時刻管理サーバは正確な内部時計を有しており、取得した時刻情報を基準として、正確な時刻を管理する。そして、時刻管理サーバは他のコンピュータからの要求に応じて、時刻情報を送信する。   As described above, when the reliability of the document content is ensured by the time stamp, it is desired that the internal clock of the computer is accurate. Therefore, in many cases, a server for managing time (hereinafter referred to as a time management server) is installed on the network. The time management server periodically receives radio waves that notify the correct time, and adjusts the internal clock to the correct time. Examples of the radio wave for notifying the time include a standard radio wave (call sign: JJY) transmitted from a standard time signal station and a radio wave transmitted from a satellite in GPS (Global positioning system). The time management server has an accurate internal clock, and manages the accurate time based on the acquired time information. Then, the time management server transmits time information in response to a request from another computer.

時刻管理サーバにネットワークを介して接続された他の コンピュータは、NTP(Network Time Protocol)等の時刻合わせ用のプロトコルを用い、時刻管理サーバから時刻情報を取得する。時刻情報を取得したコンピュータは、自己の内部時計を、時刻管理サーバから取得した時刻に合わせる。   Other computers connected to the time management server via the network acquire time information from the time management server using a time adjustment protocol such as NTP (Network Time Protocol). The computer that has acquired the time information sets its own internal clock to the time acquired from the time management server.

ところが、時刻管理サーバのような特定のサーバで時刻情報を集中管理すると、時刻管理サーバにおける内部時計の異常に対処できない。すなわち、時刻管理サーバの内部時計に異常があっても、他のコンピュータでそれを検出することができない。その結果、ネットワーク上の全てのコンピュータの時刻が狂ってしまう。   However, if time information is centrally managed by a specific server such as a time management server, it is impossible to cope with an abnormality of the internal clock in the time management server. That is, even if there is an abnormality in the internal clock of the time management server, it cannot be detected by another computer. As a result, the time of all computers on the network will be out of order.

そこで、従来は、分散システムにおける全ての通信局が自局の時刻を他の通信局へ送信し、多数決によってシステムの基準時刻を選択することが考えられている(たとえば、特許文献1参照)。   Thus, conventionally, it has been considered that all communication stations in a distributed system transmit their own time to other communication stations and select a system reference time by majority (see, for example, Patent Document 1).

また、外部接続された時計装置から外部時刻データを入力し、外部時刻データを計算機のシステム時刻の取り込み、あるいは異常警報等の異常処理を行う技術がある(たとえば、特許文献2参照)。
特開平3−77114号公報 特開平5−165545号公報
In addition, there is a technique for inputting external time data from an externally connected clock device and taking external time data into the system time of a computer or performing abnormality processing such as an abnormality alarm (for example, see Patent Document 2).
JP-A-3-77114 JP-A-5-165545

しかし、特許文献1のような多数決方式では、多数のコンピュータの内部時計が同じ特性を有しているとき、過半数のコンピュータの時刻が正確な時刻から同じようにずれる可能性がある。たとえば、時刻が進みがちな内部時計を有するコンピュータが多数ある場合、多数決によって、正確な時刻よりも進んだ時刻が基準時刻として選択される場合が有り得る。   However, in the majority voting system as in Patent Document 1, when the internal clocks of a large number of computers have the same characteristics, the time of the majority of computers may be shifted in the same way from the exact time. For example, when there are a large number of computers having an internal clock whose time tends to advance, a time that is more advanced than the correct time may be selected as the reference time by majority vote.

このように、コンピュータシステムの時刻管理では、時刻管理サーバの時計が絶対に狂わないという保証が困難であるとともに、複数のコンピュータの多数決を取ったとしてもその時刻が正しいという保証はない。すなわち、サーバ時計の時刻がずれているか、クライアント時計の時刻がずれているかの判断は困難であった。   As described above, in the time management of the computer system, it is difficult to guarantee that the clock of the time management server is not upset, and there is no guarantee that the time is correct even if a majority vote of a plurality of computers is taken. That is, it is difficult to determine whether the time of the server clock is shifted or the time of the client clock is shifted.

しかも、コンピュータシステム全体での時刻情報の同期を頻繁に行っていたのでは、システムの処理効率を低下させてしまう。そのため、各コンピュータがある一定間隔で時刻情報の同期を行う場合、同期を行ってから次の同期タイミングまでは、内部時計によって時刻を管理する必要がある。すると、コンピュータの内部時計が正常に動作していない場合、次の時刻情報の同期までの間に大きく時刻が狂うことがある。その間、そのコンピュータで実行した処理のタイムスタンプは誤った時刻となる。このような事態を回避するには、内部時計が正常に動作していないコンピュータを的確に見つけ出し、そのコンピュータによる業務処理を停止する必要がある。   Moreover, if the time information is frequently synchronized in the entire computer system, the processing efficiency of the system is lowered. For this reason, when synchronizing time information at certain intervals, it is necessary to manage the time using an internal clock from the time of synchronization until the next synchronization timing. Then, when the internal clock of the computer is not operating normally, the time may be greatly distorted before the next time information is synchronized. In the meantime, the time stamp of the process executed by the computer becomes an incorrect time. In order to avoid such a situation, it is necessary to accurately find a computer in which the internal clock is not operating normally and stop the business processing by the computer.

なお、コンピュータの内部時計が正常に動作していない場合、特許文献2に示したような外部の時計装置との比較により、異常処理を行うことも可能である。ただし、この場合、外部の時計装置が正確であることが前提となっている。すなわち、外部の時計装置が異常動作した場合については、その障害を検出することができない。   If the internal clock of the computer is not operating normally, it is possible to perform an abnormality process by comparing with an external clock device as shown in Patent Document 2. In this case, however, it is assumed that the external clock device is accurate. That is, when an external clock device operates abnormally, the failure cannot be detected.

このように、時刻情報の同期を取る前提として、時刻同期の基準となる時刻が正確であることの保証に加え、各コンピュータの内部時計が正常に機能していることが必要である。時刻同期の基準となる時刻が正確であることの保証は、基準となる時刻を管理している時刻管理サーバの内部時計が正常に機能していることを確認することで担保できる。従って、誤った時刻のタイムスタンプが設定されることを防止するには、時刻管理サーバとクライアントとを含め、ネットワーク上の各コンピュータのうち内部時計に障害があるコンピュータを的確に検出することが必要となる。   As described above, in order to synchronize the time information, it is necessary to ensure that the internal clock of each computer is functioning normally in addition to ensuring that the time as a reference for time synchronization is accurate. Guaranteeing that the time that is the reference for time synchronization is accurate can be ensured by confirming that the internal clock of the time management server that manages the reference time is functioning normally. Therefore, in order to prevent setting a time stamp with an incorrect time, it is necessary to accurately detect a computer having a failure in the internal clock among the computers on the network including the time management server and the client. It becomes.

本発明はこのような点に鑑みてなされたものであり、内部時計に障害があるコンピュータを的確に検出することができる時刻管理サーバ、時刻管理プログラム、および時刻管理方法を提供することを目的とする。   The present invention has been made in view of these points, and an object thereof is to provide a time management server, a time management program, and a time management method that can accurately detect a computer having a failure in an internal clock. To do.

本発明では上記課題を解決するために、図1に示すような時刻管理サーバ1が提供される。時刻管理サーバ1は、ネットワークで接続された複数の装置の時刻管理を行うために、サーバ側内部時計1a、クライアント情報記憶手段1b、時刻情報収集手段1c、遅延時間算出手段1d、および障害検出手段1eを有している。サーバ側内部時計1aは、時刻同期の基準となる時刻を発生させる。クライアント情報記憶手段1bは、管理対象の複数のクライアント2,3,4が登録されている。時刻情報収集手段1cは、クライアント情報記憶手段1bに登録されたクライアント2,3,4それぞれに対して時刻情報の取得要求を送信し、クライアント2,3,4が有するクライアント側内部時計で示されたローカル時刻を取得し、取得要求の発信時のサーバ側内部時計1aの時刻である送出時刻、当該ローカル時刻、および当該ローカル時刻取得時の前記サーバ側内部時計の時刻である到着時刻を組にしてクライアント情報記憶手段1bに格納する。遅延時間算出手段1dは、クライアント情報記憶手段1bにクライアント2,3,4ごとに格納された送出時刻と到着時刻とから、時刻管理サーバ1とクライアント2,3,4との間の一方向分の通信における遅延時間を算出する。障害検出手段1eは、遅延時間算出手段1dで算出された遅延時間によってローカル時刻を補正し、補正されたローカル時刻と送出時刻または到着時刻との差をサーバ側内部時計1aとクライアント側内部時計との誤差とし、クライアント2,3,4ごとの誤差が所定の閾値以内か否かを判断し、全てのクライアント2,3,4の誤差が閾値を超えていた場合、サーバ側内部時計1aに障害があると判定し、誤差が閾値を超えているクライアントの数が所定の割合以下の場合、誤差が閾値を超えているクライアントのクライアント側内部時計に障害があると判定する。   In order to solve the above-described problems, the present invention provides a time management server 1 as shown in FIG. The time management server 1 performs server time management of a plurality of devices connected via a network. The server-side internal clock 1a, client information storage means 1b, time information collection means 1c, delay time calculation means 1d, and failure detection means 1e. The server-side internal clock 1a generates a time that is a reference for time synchronization. In the client information storage unit 1b, a plurality of managed clients 2, 3, and 4 are registered. The time information collecting unit 1c transmits a request for acquiring time information to each of the clients 2, 3 and 4 registered in the client information storage unit 1b, and is indicated by a client-side internal clock included in the clients 2, 3 and 4. The local time is acquired, and the sending time that is the time of the server-side internal clock 1a when the acquisition request is transmitted, the local time, and the arrival time that is the time of the server-side internal clock when the local time is acquired are paired. And stored in the client information storage means 1b. The delay time calculation means 1d is a one-way portion between the time management server 1 and the clients 2, 3, 4 from the transmission time and arrival time stored for each of the clients 2, 3, 4 in the client information storage means 1b. The delay time in communication is calculated. The failure detection unit 1e corrects the local time based on the delay time calculated by the delay time calculation unit 1d, and determines the difference between the corrected local time and the transmission time or arrival time between the server-side internal clock 1a and the client-side internal clock. It is determined whether the error for each of the clients 2, 3 and 4 is within a predetermined threshold. If the errors of all the clients 2, 3 and 4 exceed the threshold, the server-side internal clock 1a is faulty. If the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, it is determined that the client-side internal clock of the client whose error exceeds the threshold is faulty.

このような時刻管理サーバ1によれば、まず、時刻情報収集手段1cにより、クライアント2,3,4が有するクライアント側内部時計で示されたローカル時刻が取得され、取得要求の送出時刻、当該ローカル時刻、およびローカル時刻の到着時刻が組にしてクライアント情報記憶手段1bに格納される。次に、遅延時間算出手段1dにより、クライアント2,3,4ごとの送出時刻と到着時刻とから、時刻管理サーバ1とクライアント2,3,4との間の一方向分の通信における遅延時間が算出される。そして、障害検出手段1eにより、遅延時間によってローカル時刻が補正され、クライアント2,3,4ごとに、サーバ側内部時計1aとクライアント側内部時計との誤差が所定の閾値以内か否かが判断される。全てのクライアント2,3,4の誤差が閾値を超えていた場合、障害検出手段1eにより、サーバ側内部時計1aに障害があると判定される。誤差が閾値を超えているクライアントの数が所定の割合以下の場合、障害検出手段1eにより、誤差が閾値を超えているクライアントのクライアント側内部時計に障害があると判定される。   According to such a time management server 1, first, the local time indicated by the client-side internal clocks of the clients 2, 3, 4 is acquired by the time information collecting unit 1 c, the acquisition request sending time, The time and the arrival time of the local time are stored in the client information storage unit 1b as a set. Next, the delay time calculating means 1d determines the delay time in one-way communication between the time management server 1 and the clients 2, 3, 4 from the transmission time and arrival time for each of the clients 2, 3, 4. Calculated. Then, the failure detection unit 1e corrects the local time based on the delay time, and determines whether the error between the server-side internal clock 1a and the client-side internal clock is within a predetermined threshold for each of the clients 2, 3, and 4. The When the errors of all the clients 2, 3, 4 exceed the threshold, the failure detection unit 1 e determines that there is a failure in the server-side internal clock 1 a. When the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the failure detection unit 1e determines that there is a failure in the client-side internal clock of the client whose error exceeds the threshold.

本発明では、全てのクライアントの誤差が閾値を超えていた場合、サーバ側内部時計に障害があると判定し、誤差が閾値を超えているクライアントの数が所定の割合以下の場合、誤差が閾値を超えているクライアントのクライアント側内部時計に障害があると判定するようにした。これにより、クライアントの内部時計に障害がある場合に加え、サーバ側内部時計に障害がある場合も、その障害を検出することが可能となる。   In the present invention, if the error of all clients exceeds the threshold, it is determined that the server-side internal clock has a failure, and if the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the error is the threshold The client side internal clock of a client exceeding the limit is judged to have a failure. As a result, it is possible to detect a failure when there is a failure in the server-side internal clock in addition to a failure in the client's internal clock.

以下、本発明の実施の形態を図面を参照して説明する。
図1は、発明の概要を示す図である。時刻管理サーバ1は、ネットワークを介して複数のクライアント2,3,4に接続されている。各クライアント2,3,4は内部時計を有しており、内部時計で示される時刻を用いた処理を実行している。内部時計は、たとえばクライアント2,3,4のマザーボードに実装されたRTC(Real Time Clock)と呼ばれる時計専用の電子回路である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing an outline of the invention. The time management server 1 is connected to a plurality of clients 2, 3, and 4 via a network. Each client 2, 3, 4 has an internal clock and executes processing using the time indicated by the internal clock. The internal clock is an electronic circuit dedicated to a clock called RTC (Real Time Clock) mounted on the mother boards of the clients 2, 3, and 4, for example.

時刻管理サーバ1は、ネットワークで接続された複数の装置の時刻管理を行うために、サーバ側内部時計1a、クライアント情報記憶手段1b、時刻情報収集手段1c、遅延時間算出手段1d、障害検出手段1e、時刻同期手段1f、およびサービス停止指示手段1gを有する。   The time management server 1 performs server time management of a plurality of devices connected via a network, and includes a server-side internal clock 1a, client information storage means 1b, time information collection means 1c, delay time calculation means 1d, and failure detection means 1e. , Time synchronization means 1f, and service stop instruction means 1g.

サーバ側内部時計1aは、時刻同期の基準となる時刻を発生させる。サーバ側内部時計1aは、たとえば、標準時報局から送信される標準電波やGPSの衛星からの時刻を通知する電波を定期的に受信して、時刻合わせをする機能を有する。また、サーバ側内部時計1aは、ルビジウム発信器等の正確な発信器を内蔵した精度の高い時計である。   The server-side internal clock 1a generates a time that is a reference for time synchronization. The server-side internal clock 1a has a function of periodically receiving, for example, a standard radio wave transmitted from a standard time signal station or a radio wave notifying a time from a GPS satellite. The server-side internal clock 1a is a highly accurate clock that incorporates an accurate transmitter such as a rubidium transmitter.

クライアント情報記憶手段1bは、管理対象の複数のクライアント2,3,4が登録されている。たとえば、クライアント情報記憶手段1bには、各クライアント2,3,4の識別情報として、IP(Internet Protocol)アドレスが設定される。   In the client information storage unit 1b, a plurality of managed clients 2, 3, and 4 are registered. For example, an IP (Internet Protocol) address is set in the client information storage unit 1b as identification information of each of the clients 2, 3, and 4.

時刻情報収集手段1cは、クライアント情報記憶手段1bに登録されたクライアント2,3,4それぞれに対して時刻情報の取得要求を送信する。その結果、時刻情報収集手段1cは、クライアント2,3,4が有するクライアント側内部時計で示されたローカル時刻を取得する。そして、時刻情報収集手段1cは、取得要求発信時のサーバ側内部時計1aの時刻である送出時刻、当該ローカル時刻、および当該ローカル時刻取得時の前記サーバ側内部時計の時刻である到着時刻を組にしてクライアント情報記憶手段1bに格納する。   The time information collecting unit 1c transmits a time information acquisition request to each of the clients 2, 3, and 4 registered in the client information storage unit 1b. As a result, the time information collecting unit 1c acquires the local time indicated by the client-side internal clock included in the clients 2, 3, and 4. Then, the time information collecting means 1c sets the sending time that is the time of the server-side internal clock 1a when the acquisition request is transmitted, the local time, and the arrival time that is the time of the server-side internal clock when the local time is acquired. And stored in the client information storage means 1b.

遅延時間算出手段1dは、クライアント情報記憶手段1bにクライアント2,3,4ごとに格納された送出時刻と到着時刻とから、時刻管理サーバ1とクライアント2,3,4との間の一方向分の通信における遅延時間を算出する。遅延時間は、クライアント2,3,4が応答パケットを送出してから、その応答パケットを時刻管理サーバ1が受信するまでの時間である。クライアント2,3,4それぞれに対する送出時刻から到着時刻までの時間差の平均を2で割ることで、一方向分の通信の遅延時間をクライアント2,3,4ごとに求めることができる。   The delay time calculation means 1d is a one-way portion between the time management server 1 and the clients 2, 3, 4 from the transmission time and arrival time stored for each of the clients 2, 3, 4 in the client information storage means 1b. The delay time in communication is calculated. The delay time is the time from when the clients 2, 3 and 4 send a response packet until the time management server 1 receives the response packet. By dividing the average time difference from the transmission time to the arrival time for each of the clients 2, 3, and 4 by 2, the communication delay time for one direction can be obtained for each of the clients 2, 3, and 4.

なお、遅延時間算出手段1dは、クライアント2,3,4ごとの遅延時間の平均値を求め、その平均値を各クライアント2,3,4との間の通信における遅延時間とすることもできる。   The delay time calculation means 1d can also obtain an average value of delay times for each of the clients 2, 3, and 4 and use the average value as a delay time in communication with each of the clients 2, 3, and 4.

障害検出手段1eは、遅延時間算出手段1dで算出された遅延時間によってローカル時刻を補正し、補正されたローカル時刻と送出時刻または到着時刻との差をサーバ側内部時計1aとクライアント側内部時計との誤差とする。   The failure detection unit 1e corrects the local time based on the delay time calculated by the delay time calculation unit 1d, and determines the difference between the corrected local time and the transmission time or arrival time between the server-side internal clock 1a and the client-side internal clock. Error.

ここで、補正されたローカル時刻と送出時刻との差を取る場合、障害検出手段1eは、ローカル時刻から遅延時間を減算することで補正を行う。また、補正されたローカル時刻と到着時刻との差を取る場合、障害検出手段1eは、ローカル時刻から遅延時間を減算することで補正を行う。このような補正を行うことにより、ネットワーク上のパケット伝送時間も考慮したうえで、サーバ側内部時計とクライアント側内部時計と誤差を正確に計算できる。   Here, when the difference between the corrected local time and the transmission time is taken, the failure detection unit 1e performs correction by subtracting the delay time from the local time. Further, when the difference between the corrected local time and the arrival time is taken, the failure detection means 1e performs correction by subtracting the delay time from the local time. By performing such correction, the error between the server-side internal clock and the client-side internal clock can be accurately calculated in consideration of the packet transmission time on the network.

さらに、障害検出手段1eは、クライアント2,3,4ごとの誤差が所定の閾値以内か否かを判断する。全てのクライアント2,3,4の誤差が閾値を超えていた場合、障害検出手段1eは、サーバ側内部時計1aに障害があると判定する。また、誤差が閾値を超えているクライアントの数が所定の割合以下の場合、障害検出手段1eは、誤差が閾値を超えているクライアントのクライアント側内部時計に障害があると判定する。   Further, the failure detection unit 1e determines whether or not the error for each of the clients 2, 3, and 4 is within a predetermined threshold. When the errors of all the clients 2, 3, and 4 exceed the threshold, the failure detection unit 1e determines that there is a failure in the server-side internal clock 1a. When the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the failure detection unit 1e determines that there is a failure in the client-side internal clock of the client whose error exceeds the threshold.

時刻同期手段1fは、障害検出手段1eによりサーバ側内部時計1aが正常と判定された場合、クライアント側内部時計が正常と判定されたクライアントとの間で、時刻を一致させるための時刻同期処理を実行する。図1の例では、時刻同期手段1fは、クライアント2,3との間で時刻同期処理を行っている。   When the server internal clock 1a is determined to be normal by the failure detection unit 1e, the time synchronization unit 1f performs time synchronization processing for matching the time with the client whose client internal clock is determined to be normal. Execute. In the example of FIG. 1, the time synchronization unit 1 f performs time synchronization processing with the clients 2 and 3.

サービス停止指示手段1gは、障害検出手段1eによりクライアント側内部時計に障害があると判定された前記クライアントに対して、クライアント側内部時計を用いたサービスの停止を指示する。図1の例では、サービス停止指示手段1gは、クライアント4に対してサービス停止の指示を出している。   The service stop instructing unit 1g instructs the client that has been determined to have a fault in the client-side internal clock by the fault detection unit 1e to stop the service using the client-side internal clock. In the example of FIG. 1, the service stop instruction unit 1 g issues a service stop instruction to the client 4.

このような時刻管理サーバ1によれば、まず、時刻情報収集手段1cにより、クライアント2,3,4が有するクライアント側内部時計で示されたローカル時刻が取得される。そして、時刻情報収集手段1cにより、取得要求の送出時刻、当該ローカル時刻、およびローカル時刻の到着時刻が組にしてクライアント情報記憶手段1bに格納される。   According to such a time management server 1, first, the local time indicated by the client-side internal clock of the clients 2, 3, 4 is acquired by the time information collecting unit 1 c. Then, the time information collection unit 1c stores the acquisition request transmission time, the local time, and the arrival time of the local time in pairs in the client information storage unit 1b.

次に、遅延時間算出手段1dにより、クライアント2,3,4ごとの送出時刻と到着時刻とから、時刻管理サーバ1とクライアント2,3,4との間の一方向分の通信における遅延時間が算出される。そして、障害検出手段1eにより、遅延時間によってローカル時刻が補正され、クライアント2,3,4ごとに、サーバ側内部時計1aとクライアント側内部時計との誤差が所定の閾値以内か否かが判断される。   Next, the delay time calculating means 1d determines the delay time in one-way communication between the time management server 1 and the clients 2, 3, 4 from the transmission time and arrival time for each of the clients 2, 3, 4. Calculated. Then, the failure detection unit 1e corrects the local time based on the delay time, and determines whether the error between the server-side internal clock 1a and the client-side internal clock is within a predetermined threshold for each of the clients 2, 3, and 4. The

全てのクライアント2,3,4の誤差が閾値を超えていた場合、障害検出手段1eにより、サーバ側内部時計1aに障害があると判定される。誤差が閾値を超えているクライアントの数が所定の割合以下の場合、障害検出手段1eにより、誤差が閾値を超えているクライアントのクライアント側内部時計に障害があると判定される。   When the errors of all the clients 2, 3, 4 exceed the threshold, the failure detection unit 1 e determines that there is a failure in the server-side internal clock 1 a. When the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the failure detection unit 1e determines that there is a failure in the client-side internal clock of the client whose error exceeds the threshold.

障害検出手段1eによりサーバ側内部時計1aが正常と判定された場合、時刻同期手段1fによって、クライアント側内部時計が正常と判定されたクライアントとの間で、時刻同期処理が実行される。また、障害検出手段1eによりクライアント側内部時計に障害があると判定された前記クライアントに対しては、サービス停止指示手段1gにより、クライアント側内部時計を用いたサービスの停止の指示が出される。   When the failure detection unit 1e determines that the server-side internal clock 1a is normal, the time synchronization unit 1f performs time synchronization processing with a client whose client-side internal clock is determined to be normal. In addition, for the client determined to have a fault in the client-side internal clock by the fault detection unit 1e, a service stop instruction using the client-side internal clock is issued by the service stop instruction unit 1g.

このようにして、クライアント2,3,4の内部時計に障害がある場合に加え、サーバ側内部時計1aに障害がある場合も、その障害を検出することが可能となる。
次に、本実施の形態の詳細を説明する。なお、以下の説明では、サーバの内部時計の略称をSTSとし、クライアントの内部時計の略称をSTCとする。
In this way, in addition to the case where the internal clocks of the clients 2, 3 and 4 have a failure, the failure can be detected also when there is a failure in the server-side internal clock 1a.
Next, details of the present embodiment will be described. In the following description, the abbreviation of the internal clock of the server is STS, and the abbreviation of the internal clock of the client is STC.

図2は、本実施の形態のシステム構成例を示す図である。本実施の形態に係るネットワークシステムでは、ネットワーク10を介して時刻管理サーバ100とクライアント200,200a,・・・,200mが接続されている。   FIG. 2 is a diagram illustrating a system configuration example of the present embodiment. In the network system according to the present embodiment, the time management server 100 and clients 200, 200a,..., 200m are connected via the network 10.

時刻管理サーバ100は、ネットワークにおける時刻を管理するコンピュータである。時刻管理サーバ100は、GPSにおける衛星(GPS衛星)21,22,23,・・・から時刻情報を含む電波を受信し、正確な時刻を取得する機能を有する。また、時刻管理サーバ100は、クライアント200,200a,・・・,200mから時刻情報(クライアントのローカル時刻)を収集し、時刻管理サーバ100およびクライアント200,200a,・・・,200mにおける内部時計の障害の有無を判定する。   The time management server 100 is a computer that manages time in the network. The time management server 100 has a function of receiving radio waves including time information from GPS satellites (GPS satellites) 21, 22, 23,. Further, the time management server 100 collects time information (client local time) from the clients 200, 200a,..., 200m, and the internal clock of the time management server 100 and the clients 200, 200a,. Determine if there is a failure.

そして、時刻管理サーバ100は、時刻管理サーバ100自身の内部時計が正常である場合、内部時計が正常であると判定されたクライアントとの間で時刻同期を行う。この時刻同期処理では、各クライアントの内部時計が、時刻管理サーバ100の内部時計と同じ時刻に修正される。なお、時刻管理サーバ100は、内部時計に障害があると判定されたクライアントに対しては、内部時計を利用したタイムスタンプ機能のサービス停止を指示する。   When the internal clock of the time management server 100 itself is normal, the time management server 100 performs time synchronization with a client that is determined to have a normal internal clock. In this time synchronization process, the internal clock of each client is corrected to the same time as the internal clock of the time management server 100. The time management server 100 instructs a client determined to have a failure in the internal clock to stop the service of the time stamp function using the internal clock.

クライアント200,200a,・・・,200mは、内部時計の時刻情報をタイムスタンプとして利用したサービスを実行するコンピュータである。本実施の形態では、時刻情報を利用したサービスとして、ファイルに対する署名処理を行っているものとする。なお、クライアント200,200a,・・・,200mの内部時計は、システム構築時に時刻管理サーバ100の内部時計との間で時刻同期が行われ、時刻管理サーバ100の内部時計と同じ時刻に修正される。   The clients 200, 200a,..., 200m are computers that execute a service that uses time information of the internal clock as a time stamp. In the present embodiment, it is assumed that signature processing is performed on a file as a service using time information. The internal clocks of the clients 200, 200a,..., 200m are synchronized with the internal clock of the time management server 100 at the time of system construction, and are corrected to the same time as the internal clock of the time management server 100. The

さらに、クライアント200,200a,・・・,200mは、電源投入時に時刻管理サーバ100に対して内部時計の時刻情報を送信し、内部時計が正常であることの認証を受ける。クライアント200,200a,・・・,200mは、時刻管理サーバ100において内部時計が正常であると判定された場合、時刻管理サーバ100との間で時刻同期を行い、内部時計を時刻管理サーバ100から通知された時刻情報に合わせる。また、クライアント200,200a,・・・,200mは、内部時計に障害がある場合、時刻管理サーバ100からタイムスタンプ機能のサービス停止指示を受け取り、タイムスタンプを利用した機能を停止する。   Furthermore, the clients 200, 200a,..., 200m transmit the time information of the internal clock to the time management server 100 when the power is turned on, and are authenticated that the internal clock is normal. When the time management server 100 determines that the internal clock is normal, the clients 200, 200a,..., 200m synchronize time with the time management server 100, and the internal clock is transferred from the time management server 100. Match the notified time information. When there is a failure in the internal clock, the clients 200, 200a,..., 200m receive a service stop instruction for the time stamp function from the time management server 100, and stop the function using the time stamp.

なお、本実施の形態では、時刻管理対象のクライアント200,200a,・・・,200mが全て起動されたときに、内部時計の障害判定および時刻同期が行われる。そのため、システムを運用する管理者は、毎朝、クライアント200,200a,・・・,200mの電源を投入するものとする。   In this embodiment, when all of the time management clients 200, 200a,..., 200m are activated, the failure determination of the internal clock and the time synchronization are performed. Therefore, it is assumed that the administrator who operates the system turns on the power of the clients 200, 200a,..., 200m every morning.

このようなシステム構成において、本実施の形態では、複数のクライアント200,200a,・・・,200mそれぞれに内部時計を準備し、システム構築時に時刻同期が行われる。これにより、クライアント200,200a,・・・,200mの内部時計が、時刻管理サーバ100の内部時計と同じ時刻に修正される。   In such a system configuration, in this embodiment, an internal clock is prepared for each of the plurality of clients 200, 200a,..., 200m, and time synchronization is performed when the system is constructed. As a result, the internal clocks of the clients 200, 200a,..., 200m are corrected to the same time as the internal clock of the time management server 100.

その後は、所定のタイミングで時刻管理サーバ100から複数のクライアント200,200a,・・・,200mに対して時刻情報(STS送出時刻)を含む時刻情報の取得要求を送る。時刻管理サーバ100は、応答されてきたクライアントの内部時計の時刻(STCローカル時刻)を取得する。また、時刻管理サーバ100は、各クライアント200,200a,・・・,200mからSTCローカル時刻を取得したときの時刻情報の取得要求の送出時刻と応答の到着時刻から平均路遅延時間を計算する。さらに、平均遅延時間でSTCローカル時刻を補正して、各クライアントの内部時計の時刻と時刻管理サーバの内部時計の時刻との誤差を求める。   Thereafter, a time information acquisition request including time information (STS transmission time) is sent from the time management server 100 to the plurality of clients 200, 200a,. The time management server 100 acquires the time of the internal clock of the client that has responded (STC local time). In addition, the time management server 100 calculates an average path delay time from the transmission time of the time information acquisition request and the response arrival time when the STC local time is acquired from each of the clients 200, 200a,. Further, the STC local time is corrected by the average delay time, and an error between the time of the internal clock of each client and the time of the internal clock of the time management server is obtained.

そして、時刻管理サーバ100は、クライアントごとに求められた誤差が閾値以下か否かによって、時刻管理サーバおよび各クライアントの内部時計が正常か否かの判別処理を行う。全てのクライアントに関する内部時計の誤差が一定の閾値内に収まるのであれば、時刻管理サーバ100と各クライアント200,200a,・・・,200mの内部時計が正常である。大多数のクライアントの内部時計の誤差が、一定の閾値内に収まらない場合、時刻管理サーバ100の内部時計に異常がある。この場合は、たとえば、時刻管理サーバ100の内部時計に異常があるとの警告を出すことができる。また、少数のクライアントの内部時計の誤差が閾値内に収まらない場合、誤差が閾値を超えるクライアントの内部時計に異常がある。この場合は、該当するクライアントの内部時計に関し、時刻異常と警告を出すことができる。   Then, the time management server 100 determines whether or not the time management server and the internal clock of each client are normal depending on whether or not the error obtained for each client is equal to or less than a threshold value. If the errors of the internal clocks for all clients fall within a certain threshold, the internal clocks of the time management server 100 and the clients 200, 200a,. If the error of the internal clock of the majority of clients does not fall within a certain threshold, the internal clock of the time management server 100 is abnormal. In this case, for example, a warning that there is an abnormality in the internal clock of the time management server 100 can be issued. Further, when the error of the internal clock of a small number of clients does not fall within the threshold value, there is an abnormality in the internal clock of the client whose error exceeds the threshold value. In this case, a time abnormality and warning can be issued regarding the internal clock of the corresponding client.

このようにして、本実施の形態では、複数のクライアント情報およびサーバ時刻情報を使って、信頼性の高い相互の時刻監視システムが提供される。
以下、このような処理を実現するための時刻管理サーバ100とクライアント200,200a,・・・,200mとの機能について具体的に説明する。
Thus, in this embodiment, a highly reliable mutual time monitoring system is provided using a plurality of client information and server time information.
The functions of the time management server 100 and the clients 200, 200a,..., 200m for realizing such processing will be specifically described below.

図3は、本実施の形態に用いる時刻管理サーバのハードウェア構成例を示す図である。時刻管理サーバ100は、CPU(Central Processing Unit)101によって装置全体が制御されている。CPU101には、バス108を介してRAM(Random Access Memory)102、ハードディスクドライブ(HDD:Hard Disk Drive)103、グラフィック処理装置104、入力インタフェース105、通信インタフェース106、および時刻管理回路107が接続されている。   FIG. 3 is a diagram illustrating a hardware configuration example of the time management server used in the present embodiment. The entire time management server 100 is controlled by a CPU (Central Processing Unit) 101. A random access memory (RAM) 102, a hard disk drive (HDD) 103, a graphic processing device 104, an input interface 105, a communication interface 106, and a time management circuit 107 are connected to the CPU 101 via a bus 108. Yes.

RAM102には、CPU101に実行させるOS(Operating System)のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、RAM102には、CPU101による処理に必要な各種データが格納される。HDD103には、OSやアプリケーションプログラムが格納される。   The RAM 102 temporarily stores at least part of an OS (Operating System) program and application programs to be executed by the CPU 101. The RAM 102 stores various data necessary for processing by the CPU 101. The HDD 103 stores an OS and application programs.

グラフィック処理装置104には、モニタ11が接続されている。グラフィック処理装置104は、CPU101からの命令に従って、画像をモニタ11の画面に表示させる。入力インタフェース105には、キーボード12とマウス13とが接続されている。入力インタフェース105は、キーボード12やマウス13から送られてくる信号を、バス108を介してCPU101に送信する。   A monitor 11 is connected to the graphic processing device 104. The graphic processing device 104 displays an image on the screen of the monitor 11 in accordance with a command from the CPU 101. A keyboard 12 and a mouse 13 are connected to the input interface 105. The input interface 105 transmits a signal sent from the keyboard 12 or the mouse 13 to the CPU 101 via the bus 108.

通信インタフェース106は、ネットワーク10に接続されている。通信インタフェース106は、ネットワーク10を介して、他のコンピュータとの間でデータの送受信を行う。   The communication interface 106 is connected to the network 10. The communication interface 106 transmits / receives data to / from another computer via the network 10.

時刻管理回路107は、誤差の少ない内部時計を有し、時刻情報を管理している。さらに、時刻管理回路107にはGPSアンテナ20が接続されている。時刻管理回路107は、定期的に、GPS21,22,23,・・・から送信された時刻を示す電波を、GPSアンテナ20を介して受信する。時刻管理回路107は、受信した電波によって現在の時刻を認識し、内部時計をその時刻に合わせる。   The time management circuit 107 has an internal clock with little error and manages time information. Further, the GPS antenna 20 is connected to the time management circuit 107. The time management circuit 107 periodically receives a radio wave indicating the time transmitted from the GPS 21, 22, 23,... Via the GPS antenna 20. The time management circuit 107 recognizes the current time from the received radio wave, and adjusts the internal clock to that time.

図4は、本実施の形態に用いるクライアントのハードウェア構成例を示す図である。クライアント200は、CPU201によって装置全体が制御されている。CPU201には、バス208を介してRAM202、ハードディスクドライブ(HDD)203、グラフィック処理装置204、入力インタフェース205、PCカードインタフェース206、および通信インタフェース207が接続されている。   FIG. 4 is a diagram illustrating a hardware configuration example of a client used in the present embodiment. The entire apparatus of the client 200 is controlled by the CPU 201. A RAM 202, a hard disk drive (HDD) 203, a graphic processing device 204, an input interface 205, a PC card interface 206, and a communication interface 207 are connected to the CPU 201 via a bus 208.

RAM202には、CPU201に実行させるOSのプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、RAM202には、CPU201による処理に必要な各種データが格納される。HDD203には、OSやアプリケーションプログラムが格納される。   The RAM 202 temporarily stores at least a part of OS programs and application programs to be executed by the CPU 201. The RAM 202 stores various data necessary for processing by the CPU 201. The HDD 203 stores an OS and application programs.

グラフィック処理装置204には、モニタ31が接続されている。グラフィック処理装置204は、CPU201からの命令に従って、画像をモニタ31の画面に表示させる。入力インタフェース205には、キーボード32とマウス33とが接続されている。入力インタフェース205は、キーボード32やマウス33から送られてくる信号を、バス208を介してCPU201に送信する。   A monitor 31 is connected to the graphic processing device 204. The graphic processing device 204 displays an image on the screen of the monitor 31 in accordance with a command from the CPU 201. A keyboard 32 and a mouse 33 are connected to the input interface 205. The input interface 205 transmits a signal sent from the keyboard 32 or the mouse 33 to the CPU 201 via the bus 208.

PCカードインタフェース206は、PCカード34を接続することができる。そして、PCカードインタフェース206は、接続されたPCカード34との間でデータの送受信を行う。本実施の形態で使用するPCカード34は、時計回路34aを内蔵している。時計回路34aは、内部時計によって現在の時刻を管理している。PCカード34は、クライアント200からの要求に応じて、時計回路34aで示される時刻情報をクライアント200に渡す。   The PC card interface 206 can be connected to the PC card 34. The PC card interface 206 transmits / receives data to / from the connected PC card 34. The PC card 34 used in the present embodiment has a built-in clock circuit 34a. The clock circuit 34a manages the current time using an internal clock. The PC card 34 passes time information indicated by the clock circuit 34 a to the client 200 in response to a request from the client 200.

通信インタフェース207は、ネットワーク10に接続されている。通信インタフェース207は、ネットワーク10を介して、他のコンピュータとの間でデータの送受信を行う。   The communication interface 207 is connected to the network 10. The communication interface 207 transmits and receives data to and from other computers via the network 10.

以上のようなハードウェア構成によって、本実施の形態の処理機能を実現することができる。なお、図4では、クライアント200のハードウェア構成のみを示したが、他のクライアント200a,・・・,200mも同様のハードウェア構成で実現することができる。   With the hardware configuration as described above, the processing functions of the present embodiment can be realized. 4 shows only the hardware configuration of the client 200, other clients 200a,..., 200m can also be realized with the same hardware configuration.

次に、ネットワークを介した時計監視を行うために時刻管理サーバ100と各クライアント200,200a,・・・,200mとが有する機能について説明する。
図5は、時刻管理サーバとクライアントとの機能を示すブロック図である。時刻管理サーバ100は、クライアント情報記憶部110、時刻情報収集部120、平均遅延時間算出部130、障害判定部140、署名管理部150、および時刻同期処理部160を有している。
Next, functions of the time management server 100 and the clients 200, 200a,..., 200m for performing clock monitoring via the network will be described.
FIG. 5 is a block diagram illustrating functions of the time management server and the client. The time management server 100 includes a client information storage unit 110, a time information collection unit 120, an average delay time calculation unit 130, a failure determination unit 140, a signature management unit 150, and a time synchronization processing unit 160.

クライアント情報記憶部110は、時刻監視対処となるクライアントに関する情報が記憶されている。具体的には、クライアント情報記憶部110には、時刻監視対象のクライアントのIPアドレスが予め登録されている。そして、クライアント情報記憶部110には、各クライアントのIPアドレスに対応付けて時刻情報の登録領域が設けられている。   The client information storage unit 110 stores information about a client that is a time monitoring countermeasure. Specifically, in the client information storage unit 110, the IP address of the time monitoring target client is registered in advance. The client information storage unit 110 is provided with a time information registration area in association with the IP address of each client.

時刻情報収集部120は、予め決められた時刻になると、クライアント200,200a,・・・,200mからの時刻情報の収集を開始する。たとえば、時刻情報収集部120は、毎日午前7時になると、クライアント200,200a,・・・,200mが起動されるのを待ち、起動されたクライアントに対して時刻情報の取得要求を送信する。この取得要求には、その取得要求を送信した時刻(STS送出時刻)が含まれる。そして、時刻情報収集部120は、取得した時刻通知をクライアントから受け取る。受け取った時刻通知には、STS送出時刻、STCその時刻通知をクライアントが応答した時刻(STCローカル時刻)、およびSTS送出時刻が含まれる。時刻情報収集部120は、STS送出時刻、STCローカル時刻、および時刻通知を取得した時刻(STS到着時刻)を組にして、クライアント情報記憶部110内の該当するクライアントのIPアドレスに対応付けて登録する。   The time information collecting unit 120 starts collecting time information from the clients 200, 200a,..., 200m at a predetermined time. For example, at 7 am every day, the time information collecting unit 120 waits for the clients 200, 200a,..., 200m to be activated, and transmits a time information acquisition request to the activated clients. This acquisition request includes the time when the acquisition request is transmitted (STS transmission time). Then, the time information collection unit 120 receives the acquired time notification from the client. The received time notification includes the STS transmission time, the STC time when the client responded to the time notification (STC local time), and the STS transmission time. The time information collection unit 120 registers the STS transmission time, the STC local time, and the time (STS arrival time) at which the time notification is acquired, in association with the IP address of the corresponding client in the client information storage unit 110. To do.

平均遅延時間算出部130は、クライアント200,200a,・・・,200mから取得した時刻情報に基づいて、時刻管理サーバ100とクライアント200,200a,・・・,200mとの間の通信(一方向分)における各平均遅延時間を算出する。具体的には、平均遅延時間算出部130は、クライアント情報記憶部110を参照し、全てのクライアントのIPアドレスに対応付けて、時刻情報が登録されていることを確認する。そして、平均遅延時間算出部130は、クライアント情報記憶部110に登録された情報に基づいて、時刻管理サーバ100とクライアント200,200a,・・・,200mとの間の一方向分の通信における平均遅延時間を算出する。平均遅延時間は、クライアントごとの遅延時間を平均することで算出できる。具体的には、クライアントごとにSTS送出時刻とSTS到着時刻との差を2で除算し、クライアントごとの遅延時間を求める。クライアントごとに求められた遅延時間を合算し、時刻管理対象となっているクライアントの総数で除算すれば、通信の一方向分の平均遅延時間となる。   Based on the time information acquired from the clients 200, 200a,..., 200m, the average delay time calculation unit 130 communicates between the time management server 100 and the clients 200, 200a,. Each average delay time in minutes) is calculated. Specifically, the average delay time calculation unit 130 refers to the client information storage unit 110 and confirms that the time information is registered in association with the IP addresses of all clients. Then, the average delay time calculation unit 130 calculates the average in one-way communication between the time management server 100 and the clients 200, 200a,..., 200m based on the information registered in the client information storage unit 110. Calculate the delay time. The average delay time can be calculated by averaging the delay times for each client. Specifically, for each client, the difference between the STS transmission time and the STS arrival time is divided by 2 to obtain the delay time for each client. If the delay times obtained for each client are added together and divided by the total number of clients subject to time management, the average delay time for one direction of communication is obtained.

障害判定部140は、各クライアント200,200a,・・・,200mから取得した時刻情報に基づいて、時刻管理サーバ100自身、あるいはクライアント200,200a,・・・,200mの中から、内部時刻に障害があるコンピュータを検出する。具体的には、障害判定部140は、各クライアント200,200a,・・・,200mから取得したSTCローカル時刻に平均遅延時間を加算して、値を補正する。そして、障害判定部140は、STS到着時刻と、平均遅延時間で補正したSTCローカル時刻との差(誤差)をクライアントごと計算する。さらに、障害判定部140は、クライアントごとに計算した誤差が所定の閾値以下か否かを判断する。閾値は、たとえば50ms程度とする。   Based on the time information acquired from each of the clients 200, 200a,..., 200m, the failure determination unit 140 sets the time management server 100 itself or the clients 200, 200a,. Detect faulty computers. Specifically, the failure determination unit 140 corrects the value by adding the average delay time to the STC local time acquired from each of the clients 200, 200a,. Then, failure determination section 140 calculates the difference (error) between the STS arrival time and the STC local time corrected with the average delay time for each client. Furthermore, the failure determination unit 140 determines whether the error calculated for each client is equal to or less than a predetermined threshold. The threshold is about 50 ms, for example.

障害判定部140は、全てのクライアントにおいて誤差が閾値以下であれば、全てのコンピュータが正常であると判定する。障害判定部140は、全てのクライアントにおいて誤差が閾値を超えている場合、時刻管理サーバ100の内部時計に障害があると判定する。障害判定部140は、所定の数以下のクライアントにおいて誤差が閾値を超えていれば、誤差が閾値を超えたクライアントについては内部時計に障害があると判定する。それ以外のクライアントおよび時刻管理サーバ100については、内部時計が正常であると判断する。障害判定部140は、所定の数を超える数(全数の場合を除く)のクライアントにおいて誤差が閾値を超えていれば、システム全体において保証できる正確な時刻が不明であると判断する。障害判定部140は、判定結果を署名管理部150に渡す。   The failure determination unit 140 determines that all computers are normal if the error is less than or equal to the threshold value in all clients. The failure determination unit 140 determines that the internal clock of the time management server 100 has a failure when the error exceeds the threshold value in all clients. If the error exceeds a threshold value for a predetermined number of clients or less, the failure determination unit 140 determines that there is a failure in the internal clock for the client whose error exceeds the threshold value. For other clients and the time management server 100, it is determined that the internal clock is normal. The failure determination unit 140 determines that the exact time that can be guaranteed in the entire system is unknown if the error exceeds a threshold value in the number of clients (excluding the total number) exceeding a predetermined number. The failure determination unit 140 passes the determination result to the signature management unit 150.

署名管理部150は、障害判定部140において内部時計に障害有りと判定されたクライアントに対して、署名機能停止通知を送信する。また、署名管理部150は、時刻管理サーバ100自身の内部時計に障害有りと判定された場合、全てのクライアント200,200a,・・・,200mに対して、署名機能停止通知を送信する。すなわち、時刻管理サーバ100の内部時計が信用できない場合、クライアント200,200a,・・・,200mが時刻管理サーバ100と時刻同期を行っても、修正された時刻が正しいとは限らない。そのため、クライアント200,200a,・・・,200mの内部時計の時刻の正確性も保証できなくなる。そのため、時刻管理サーバ100の内部時計に障害があると判定されたときには、全てのクライアント200,200a,・・・,200mにおいて、署名処理を停止する必要がある。さらに、署名管理部150は、システム全体において保証できる正確な時刻が不明な場合にも、全てのクライアント200,200a,・・・,200mに対して、署名機能停止通知を送信する。   The signature management unit 150 transmits a signature function stop notification to the client determined by the failure determination unit 140 that the internal clock has a failure. Further, when it is determined that there is a failure in the internal clock of the time management server 100 itself, the signature management unit 150 transmits a signature function stop notification to all the clients 200, 200a,. That is, when the internal clock of the time management server 100 cannot be trusted, even if the clients 200, 200a,..., 200m perform time synchronization with the time management server 100, the corrected time is not always correct. Therefore, the accuracy of the time of the internal clock of the clients 200, 200a,. Therefore, when it is determined that there is a failure in the internal clock of the time management server 100, it is necessary to stop the signature processing in all the clients 200, 200a,. Further, the signature management unit 150 transmits a signature function stop notification to all clients 200, 200a,..., 200m even when the exact time that can be guaranteed in the entire system is unknown.

時刻同期処理部160は、障害判定部140において内部時計が正常である旨の判定を受けたクライアントとの間で時刻同期処理を行う。具体的には、時刻同期処理部160は、内部時計が正常であると判定されたクライアントに対して、その旨を通知する(この通知を、時刻同期許可通知とする)。なお、通知先となるクライアントのIPアドレスは、クライアント情報記憶部110を参照して判断する。そして、時刻同期処理部160は、時刻同期許可通知を送信したクライアントからSTSの取得要求を受け取ると、時刻管理回路107で管理されている現在の内部時刻を参照し、その内部時刻をSTSとしてクライアントに送信する。なお、時刻同期処理部160が行うクライアントとの通信は、たとえばNTPを用いて行うことができる。   The time synchronization processing unit 160 performs time synchronization processing with the client that has received the determination that the internal clock is normal in the failure determination unit 140. Specifically, the time synchronization processing unit 160 notifies the client determined that the internal clock is normal (this notification is referred to as a time synchronization permission notification). Note that the IP address of the client to be notified is determined with reference to the client information storage unit 110. When the time synchronization processing unit 160 receives an STS acquisition request from the client that has transmitted the time synchronization permission notification, the time synchronization processing unit 160 refers to the current internal time managed by the time management circuit 107 and uses the internal time as the STS for the client. Send to. The communication with the client performed by the time synchronization processing unit 160 can be performed using NTP, for example.

クライアント200には、時刻情報送信部210、署名処理部220、および時刻同期処理部230を有している。
時刻情報送信部210は、時刻管理サーバ100から時刻情報の取得要求を受け取ると、クライアント200自身の内部時計を参照し、STCを取得する。本実施の形態では、PCカード34を用いたタイムスタンプ処理を伴うサービスを提供するための時刻管理であるため、PCカード34内の時計回路34aで示される時刻がSTCとして扱われる。時刻情報送信部210は、STCを取得すると、そのSTCと時刻情報の取得要求に含まれるSTSとを含む応答を時刻管理サーバ100に対して送信する。
The client 200 includes a time information transmission unit 210, a signature processing unit 220, and a time synchronization processing unit 230.
When receiving the time information acquisition request from the time management server 100, the time information transmission unit 210 refers to the internal clock of the client 200 itself and acquires the STC. In the present embodiment, since time management is performed for providing a service with time stamp processing using the PC card 34, the time indicated by the clock circuit 34a in the PC card 34 is handled as STC. When acquiring the STC, the time information transmission unit 210 transmits a response including the STC and the STS included in the time information acquisition request to the time management server 100.

署名処理部220は、クライアント200内で作成される所定のファイルに電子署名を付与する機能を有している。署名処理部220は、ファイルに電子署名を付与する際に、電子署名に対してタイムスタンプを施す。具体的には、署名処理部220は、操作入力等によりファイルへの署名を付与する処理要求を受け取ると、操作を行ったユーザの電子署名の作成をPCカード34に指示する。この際、署名対象のファイルもPCカード34に渡される。すると、PCカード34が、ファイルの内容とそのときの時刻(STC)に応じた電子署名を生成し、ファイルに付加する。そして、署名処理部220は、電子署名が付加されたファイルをHDD203等に格納する。以後、署名処理部220は、PCカード34を利用して、電子署名が付加されたファイルの改ざんチェック行うことができる。   The signature processing unit 220 has a function of giving an electronic signature to a predetermined file created in the client 200. The signature processing unit 220 applies a time stamp to the electronic signature when giving the electronic signature to the file. Specifically, when receiving a processing request for adding a signature to a file by an operation input or the like, the signature processing unit 220 instructs the PC card 34 to create an electronic signature of the user who performed the operation. At this time, the signature target file is also transferred to the PC card 34. Then, the PC card 34 generates an electronic signature corresponding to the content of the file and the time (STC) at that time, and adds it to the file. Then, the signature processing unit 220 stores the file with the electronic signature added in the HDD 203 or the like. Thereafter, the signature processing unit 220 can use the PC card 34 to check whether the file with the electronic signature has been tampered with.

また、署名処理部220は、時刻管理サーバ100から署名機能停止通知を受け取ると、署名処理を停止する。すなわち、署名処理部220は、時刻管理サーバ100によって、PCカード34内蔵の時計回路(STC)が異常と判定された場合、署名の付加、改ざんチェック機能を利用停止する。   When the signature processing unit 220 receives a signature function stop notification from the time management server 100, the signature processing unit 220 stops the signature processing. That is, when the time management server 100 determines that the clock circuit (STC) built in the PC card 34 is abnormal, the signature processing unit 220 stops using the signature addition / falsification check function.

時刻同期処理部230は、時刻管理サーバ100との間で時刻の同期処理を行う。具体的には、時刻同期処理部230は、時刻管理サーバ100による障害判定により、クライアント200の内部時計が正常である旨の通知(時刻同期許可通知)を受け取ると、時刻管理サーバ100と時刻同期処理を行う。時刻同期処理では、まず、時刻同期処理部230から時刻管理サーバ100に内部時刻(STS)の取得要求を送信する。そして、時刻同期処理部230は、取得したSTSを用いて、内部時計の時刻を更新する。本実施の形態では、PCカード34に内蔵された時計回路34aが示す時刻を内部時計として取り扱っている。従って、時刻同期処理部230は、時計回路34aの時刻をSTSに合わせる。   The time synchronization processing unit 230 performs time synchronization processing with the time management server 100. Specifically, when the time synchronization processing unit 230 receives a notification that the internal clock of the client 200 is normal (time synchronization permission notification) as a result of failure determination by the time management server 100, the time synchronization processing unit 230 performs time synchronization with the time management server 100. Process. In the time synchronization process, first, an internal time (STS) acquisition request is transmitted from the time synchronization processing unit 230 to the time management server 100. Then, the time synchronization processing unit 230 updates the time of the internal clock using the acquired STS. In the present embodiment, the time indicated by the clock circuit 34a built in the PC card 34 is handled as an internal clock. Therefore, the time synchronization processing unit 230 adjusts the time of the clock circuit 34a to STS.

なお、図5の例では、クライアント200の機能のみを示したが、他のクライアント200a,・・・,200mも同様の機能を有している。
図6は、クライアント情報記憶部のデータ構造例を示す図である。クライアント情報記憶部110には、クライアントIPアドレスと時刻情報との欄が設けられている。クライアントIPアドレスの欄には、管理対象のクライアントのIPアドレスが予め設定されている。
In the example of FIG. 5, only the function of the client 200 is shown, but the other clients 200a,..., 200m have the same function.
FIG. 6 is a diagram illustrating an example of a data structure of the client information storage unit. The client information storage unit 110 has columns for client IP address and time information. In the client IP address column, the IP address of the client to be managed is set in advance.

時刻情報の欄には、クライアントから取得した時刻情報が格納される。なお、時刻情報の欄は、時刻情報収集開始時点で、時刻情報収集部120によって全てクリア(無効なデータに初期化)される。   The time information acquired from the client is stored in the time information column. Note that the time information column is all cleared (initialized to invalid data) by the time information collection unit 120 at the start of time information collection.

時刻情報の欄は、STS送出時刻、STCローカル時刻、およびSTS到着時刻の欄に細分化されている。STS送出時刻の欄には、クライアントに対して時刻情報の取得要求を送信した時刻が設定される。STCローカル時刻の欄には、取得要求に対してクライアントが応答したときの、クライアントの内部時計の時刻が設定される。STS到着時刻の欄には、取得要求に対するクライアントからの応答を、時刻管理サーバ100が受信した時刻が設定される。   The time information column is subdivided into STS transmission time, STC local time, and STS arrival time columns. In the STS transmission time column, the time at which the time information acquisition request is transmitted to the client is set. In the STC local time column, the time of the internal clock of the client when the client responds to the acquisition request is set. In the STS arrival time column, the time at which the time management server 100 receives a response from the client to the acquisition request is set.

図6の例では、IPアドレスが「192.168.1.100」のクライアントからは時刻情報の収集が完了しているが、IPアドレスが「192.168.1.101」のクライアントからの時刻情報の収集は未完了である。   In the example of FIG. 6, the collection of time information from the client whose IP address is “192.168.1.100” has been completed, but the collection of time information from the client whose IP address is “192.168.1.101” has not been completed. .

次に、時刻管理処理の全体の手順を説明する。
図7は、時刻管理処理の手順を示すシーケンス図である。なお、図7では、代表的に時刻管理サーバ100とクライアント200との間の処理を示しているが、他のクライアント200a,・・・,200mと時刻管理サーバ100との間でも、同様の処理が行われる。以下、図7に示す処理をステップ番号に沿って説明する。
Next, the entire procedure of the time management process will be described.
FIG. 7 is a sequence diagram illustrating the procedure of the time management process. 7 representatively shows processing between the time management server 100 and the client 200, but similar processing is also performed between the other clients 200a,..., 200m and the time management server 100. Is done. In the following, the process illustrated in FIG. 7 will be described in order of step number.

[ステップS11]クライアント200が起動される。
[ステップS12]時刻管理サーバ100の時刻情報送信部210は、クライアント200が起動されたことを検知する。たとえば、時刻管理サーバ100は、管理対象のクライアントのうち、まだ時刻情報を収集していないクライアントに対して定期的に所定のコマンド(たとえば、ping)を送信し、その応答の有無によって、該当するクライアントが起動されたか否かを検知できる。なお、クライアント200の起動時に、クライアント200から時刻管理サーバ100に対して起動した旨の情報を通知することにより、時刻管理サーバ100においてクライアント200の起動を認識することもできる。
[Step S11] The client 200 is activated.
[Step S12] The time information transmission unit 210 of the time management server 100 detects that the client 200 is activated. For example, the time management server 100 periodically sends a predetermined command (for example, ping) to clients that have not yet collected time information among the clients to be managed. It can detect whether the client has been started. When the client 200 is activated, the time management server 100 can recognize the activation of the client 200 by notifying the time management server 100 of information indicating that the client 200 has been activated.

[ステップS13]時刻情報送信部210は、STS送出時刻を含む時刻情報の取得要求をクライアント200に送信する。
[ステップS14]クライアント200では、時刻情報の取得要求を時刻情報送信部210が受信する。
[Step S <b> 13] The time information transmission unit 210 transmits a request to acquire time information including the STS transmission time to the client 200.
[Step S14] In the client 200, the time information transmission unit 210 receives a time information acquisition request.

[ステップS15]時刻情報送信部210は、クライアント200の内部時計(本実施の形態では、PCカード34の時計回路34a)で示される時刻をSTCローカル時刻として、STS送出時刻とSTCローカル時刻とを含む応答を、時刻管理サーバ100に対して送信する。   [Step S15] The time information transmitter 210 uses the time indicated by the internal clock of the client 200 (in this embodiment, the clock circuit 34a of the PC card 34) as the STC local time, and calculates the STS transmission time and the STC local time. A response including this is transmitted to the time management server 100.

[ステップS16]時刻管理サーバ100の時刻情報収集部120は、クライアント200から送られた応答を受け取ると、その応答に含まれるSTS送出時刻、STCローカル時刻、および応答受信時の内部時計の時刻(STS到着時刻)をクライアント情報記憶部110に格納する。   [Step S16] When the time information collection unit 120 of the time management server 100 receives the response sent from the client 200, the STS transmission time, the STC local time, and the time of the internal clock at the time of receiving the response (included in the response) STS arrival time) is stored in the client information storage unit 110.

[ステップS17]平均遅延時間算出部130は、管理対象の全てのクライアントから時刻情報を取得すると、平均遅延時間を計算する。
[ステップS18]障害判定部140は、時刻管理サーバ100およびクライアント200の内部時計が正常か否かを判断する。正常か否かを判断するための障害判定処理の詳細は後述する(図10等参照)。
[Step S17] The average delay time calculation unit 130 calculates the average delay time after acquiring time information from all the clients to be managed.
[Step S18] The failure determination unit 140 determines whether the internal clocks of the time management server 100 and the client 200 are normal. Details of the failure determination process for determining whether or not it is normal will be described later (see FIG. 10 and the like).

[ステップS19]障害判定部140は、障害判定により、時刻管理サーバ100とクライアント200との内部時計が共に正常か否かを判断する。時刻管理サーバ100とクライアント200との内部時計が共に正常であれば、処理がステップS20に進められる。少なくとも一方に異常(システム全体の信用できる時刻情報が不明な場合も含む)が検出された場合、処理がステップS22に進められる。   [Step S19] The failure determination unit 140 determines whether both the internal clocks of the time management server 100 and the client 200 are normal based on the failure determination. If both the internal clocks of time management server 100 and client 200 are normal, the process proceeds to step S20. If an abnormality (including a case where reliable time information of the entire system is unknown) is detected in at least one of the processes, the process proceeds to step S22.

[ステップS20]時刻管理サーバ100とクライアント200との内部時計が正常であれば、時刻同期処理部160は、クライアント200に対して現在の内部時計の時刻を送信する。   [Step S <b> 20] If the internal clocks of the time management server 100 and the client 200 are normal, the time synchronization processing unit 160 transmits the time of the current internal clock to the client 200.

[ステップS21]クライアント200の時刻同期処理部230は、時刻管理サーバ100から送られた時刻に自己の内部時計を合わせる。
[ステップS22]また、時刻管理サーバ100とクライアント200との少なくとも一方の内部時計が異常であれば、署名管理部150からクライアントに対して署名機能停止通知を送信する。
[Step S21] The time synchronization processor 230 of the client 200 sets its own internal clock to the time sent from the time management server 100.
[Step S22] If at least one of the internal clocks of the time management server 100 and the client 200 is abnormal, the signature management unit 150 transmits a signature function stop notification to the client.

[ステップS23]クライアント200の署名処理部220は、時刻同期処理部160は、クライアント200に対して現在の内部時計の時刻を送信する。
図7に示した処理が、時刻管理サーバ100と他のクライアント200a,・・・,200mとの間でも同様に行われる。その結果、時刻管理サーバ100および各クライアント200,200a,・・・,200mの内部時計が正常か否かが判定される。そして、内部時計に障害があるクライアントでの電子署名の処理が停止する。また、時刻管理サーバ100の内部時計に障害があるか、あるいは正しい時刻が不明となったときは、全てのクライアント200,200a,・・・,200mにおいて、電子署名の処理が停止する。
[Step S23] In the signature processing unit 220 of the client 200, the time synchronization processing unit 160 transmits the time of the current internal clock to the client 200.
The process shown in FIG. 7 is similarly performed between the time management server 100 and the other clients 200a,. As a result, it is determined whether or not the internal clocks of the time management server 100 and the clients 200, 200a,. Then, the processing of the electronic signature at the client having a failure in the internal clock stops. When the internal clock of the time management server 100 is faulty or when the correct time is unknown, the processing of the electronic signature is stopped in all clients 200, 200a,.

次に、時刻情報の収集処理について詳細に説明する。
図8は、時刻情報収集処理を示す図である。図8に示すように、時刻管理サーバ100の時刻情報収集部120から各クライアント200,200a,・・・,200mへ、時刻管理サーバ100の内部時計(STS)情報を含む時刻情報の取得要求が送信される。図8では、クライアント200,200a,・・・,200mに対して1,2,・・・,n(nは、2以上の整数)の識別番号を付与している。そして、i番目(i=1,2,・・・,n)のクライアントに対して時刻情報の取得要求を送信したときの時刻管理サーバ100の内部時計の値(STS送出時刻)を「Tst i」とする。
Next, time information collection processing will be described in detail.
FIG. 8 is a diagram illustrating time information collection processing. As shown in FIG. 8, a time information acquisition request including the internal clock (STS) information of the time management server 100 is sent from the time information collection unit 120 of the time management server 100 to each of the clients 200, 200 a,. Sent. In FIG. 8, identification numbers 1, 2,..., N (n is an integer of 2 or more) are assigned to the clients 200, 200a,. Then, the value (STS transmission time) of the internal clock of the time management server 100 when the time information acquisition request is transmitted to the i-th (i = 1, 2,..., N) client is expressed as “Tst i. "

時刻情報の取得要求を受け取った各クライアント200,200a,・・・,200mは、クライアント自身の内部時計から時刻(STCローカル時刻)を取得し、時刻管理サーバ100に応答する。その応答には、STS送出時刻とSTCローカル時刻が含まれる。ここで、i番目のクライアントのSTCローカル時刻を「Tc i」とする。   Receiving the time information acquisition request, each client 200, 200a,..., 200m acquires the time (STC local time) from the client's own internal clock and responds to the time management server 100. The response includes the STS transmission time and the STC local time. Here, the STC local time of the i-th client is assumed to be “Tc i”.

時刻管理サーバ100の時刻情報収集部120では、クライアント200,200a,・・・,200mからの応答を受け取ると、その応答の受信時の時刻管理サーバ100の内部時計の時刻(STS到着時刻)を取得する。ここで、i番目のクライアントからの応答の受信時のSTS到着時刻を「Tsr i」とする。   When the time information collection unit 120 of the time management server 100 receives a response from the clients 200, 200a,..., 200m, the time of the internal clock of the time management server 100 (STS arrival time) when the response is received. get. Here, it is assumed that the STS arrival time when receiving a response from the i-th client is “Tsri”.

時刻管理サーバ100の時刻情報収集部120は、STS送出時刻、STCローカル時刻、およびSTS到着時刻を組にして、クライアント情報記憶部110に格納する。
図9は、時刻情報収集処理の手順を示すフローチャートである。以下、図9に示す処理をステップ番号に沿って説明する。
The time information collection unit 120 of the time management server 100 stores the STS transmission time, the STC local time, and the STS arrival time as a set in the client information storage unit 110.
FIG. 9 is a flowchart showing a procedure of time information collection processing. In the following, the process illustrated in FIG. 9 will be described in order of step number.

[ステップS31]時刻情報収集部120は、時刻情報収集開始時刻か否かを判断する。時刻情報収集開始時刻は、予め時刻情報収集部120に設定され、RAM102等の記憶媒体に記憶されている。たとえば、月曜日から金曜日の間の毎日7時が、時刻情報収集開始時刻として設定される。   [Step S31] The time information collection unit 120 determines whether it is a time information collection start time. The time information collection start time is set in advance in the time information collection unit 120 and stored in a storage medium such as the RAM 102. For example, 7 o'clock every day between Monday and Friday is set as the time information collection start time.

時刻情報収集部120は、時刻情報収集開始時刻になった場合、処理をステップS32に進める。時刻情報収集開始時刻になっていなければ、ステップS31の処理が繰り返され、時刻情報収集開始時刻になるのを待つ。   When the time information collection start time comes, the time information collection unit 120 advances the process to step S32. If the time information collection start time has not been reached, the process of step S31 is repeated to wait for the time information collection start time.

[ステップS32]時刻情報収集部120は、クライアント情報記憶部110の時刻情報の欄を初期化する。具体的には、時刻情報収集部120は、クライアント情報記憶部110の時刻情報の欄の全てに、無効なデータを設定する。   [Step S32] The time information collection unit 120 initializes the time information column of the client information storage unit 110. Specifically, the time information collection unit 120 sets invalid data in all the time information fields of the client information storage unit 110.

[ステップS33]時刻情報収集部120は、処理対象クライアントが起動されたか否かを確認する。たとえば、時刻情報収集部120は、クライアント情報記憶部110のクライアントIPアドレスの欄に登録されているIPアドレスのうち、時刻情報が未取得のクライアントのIPアドレスに対して、ネットワークの疎通を確認するコマンド(ping)をマルチキャストで送信する。時刻情報収集部120は、送信したコマンドに対して応答があった場合、管理対象のクライアントが起動されたと判断することができる。   [Step S33] The time information collection unit 120 confirms whether or not the processing target client has been activated. For example, the time information collection unit 120 confirms network communication with respect to an IP address of a client whose time information has not been acquired among IP addresses registered in the client IP address column of the client information storage unit 110. Send the command (ping) by multicast. When there is a response to the transmitted command, the time information collection unit 120 can determine that the managed client has been activated.

[ステップS34]時刻情報収集部120は、時刻情報を未取得のクライアントが新たに起動されたか否かを判断する。新たにクライアントが起動された場合、処理がステップS35に進められる。新たに起動されたクライアントが無い場合、処理がステップS33に進められる。   [Step S34] The time information collection unit 120 determines whether a client that has not acquired time information has been newly activated. If a new client is activated, the process proceeds to step S35. If there is no newly activated client, the process proceeds to step S33.

[ステップS35]時刻情報収集部120は、新たに起動されたクライアントに対して、時刻情報の取得要求を送信する。
[ステップS36]時刻情報収集部120は、時刻情報の取得要求に対するクライアントからの応答により、クライアントの時刻情報(STCローカル時刻)を取得する。
[Step S35] The time information collection unit 120 transmits a time information acquisition request to the newly activated client.
[Step S36] The time information collection unit 120 acquires the time information (STC local time) of the client in response to the time information acquisition request from the client.

[ステップS37]時刻情報収集部120は、クライアント情報記憶部110内の時刻情報の欄に、新たに起動されたクライアントのIPアドレスに対応付けて時刻情報(STS発信時刻、STCローカル時刻、STS到着時刻)を登録する。   [Step S37] The time information collection unit 120 stores time information (STS transmission time, STC local time, STS arrival) in the time information column in the client information storage unit 110 in association with the IP address of the newly activated client. Time).

[ステップS38]時刻情報収集部120は、全ての管理対象のクライアントから時刻情報を収集したか否かを判断する。全ての管理対象のクライアントからの時刻情報の収集が完了していれば、処理が終了する。時刻情報の収集が完了していないクライアントがあれば、処理がステップS33に進められる。   [Step S38] The time information collection unit 120 determines whether time information has been collected from all clients to be managed. If the collection of time information from all managed clients is complete, the process ends. If there is a client whose time information has not been collected, the process proceeds to step S33.

このようにして、各クライアント200,200a,・・・,200mから時刻情報を収集することができる。このようにして収集した時刻情報に基づいて、平均遅延時間算出部130は以下の式により平均遅延時間τAVEを算出する。 In this way, time information can be collected from each of the clients 200, 200a,. Based on the time information collected in this way, the average delay time calculation unit 130 calculates the average delay time τ AVE by the following formula.

Figure 2009008444
Figure 2009008444

次に、障害判定部140が、時刻管理サーバ100や各クライアント200,200a,・・・,200mの内部時計が正常か否かを判定する。
障害判定部140は、STCローカル時刻を平均遅延時間τAVEで補正する。そして、障害判定部140は、全てのクライアントに関して、補正されたSTCローカル時刻とSTS到着時刻との差(誤差)が、所定の閾値ε以下でれば、時刻管理サーバ100および全てのクライアント200,200a,・・・,200mの内部時計が正常であると判定する。具体的には、以下の条件が満たされたときには、各コンピュータの内部時計が正常と判定される。
Next, the failure determination unit 140 determines whether or not the time management server 100 and the internal clocks of the clients 200, 200a,.
The failure determination unit 140 corrects the STC local time with the average delay time τ AVE . If the difference (error) between the corrected STC local time and the STS arrival time is less than or equal to a predetermined threshold value ε for all clients, the failure determination unit 140 determines that the time management server 100 and all clients 200, It is determined that the internal clocks 200a, ..., 200m are normal. Specifically, when the following conditions are satisfied, it is determined that the internal clock of each computer is normal.

Figure 2009008444
Figure 2009008444

また、障害判定部140は、全てのクライアントに関して、補正されたSTCローカル時刻とSTS到着時刻との差(誤差)が、所定の閾値εを超えていれば、時刻管理サーバ100の内部時計が異常であると判定する。具体的には、以下の条件が満たされたときには、各コンピュータの内部時計が正常と判定される。   Also, the failure determination unit 140 determines that the internal clock of the time management server 100 is abnormal if the difference (error) between the corrected STC local time and the STS arrival time exceeds a predetermined threshold ε for all clients. It is determined that Specifically, when the following conditions are satisfied, it is determined that the internal clock of each computer is normal.

Figure 2009008444
Figure 2009008444

さらに、障害判定部140は、所定の割合(たとえば、数パーセント)以下のクライアントに関して、補正されたSTCローカル時刻とSTS到着時刻との差(誤差)が、所定の閾値εを超えていれば、誤差が閾値εを超えたクライアントの内部時計が異常であると判定する。具体的には、以下の条件が満たされたときには、各コンピュータの内部時計が正常と判定される。   Furthermore, if the difference (error) between the corrected STC local time and the STS arrival time is greater than a predetermined threshold ε for the failure determination unit 140 for a client having a predetermined ratio (for example, several percent) or less, It is determined that the internal clock of the client whose error exceeds the threshold ε is abnormal. Specifically, when the following conditions are satisfied, it is determined that the internal clock of each computer is normal.

Figure 2009008444
Figure 2009008444

なお、式(4)における「Tsr k」および「Tc k」の「k」は、1以上n以下の整数である。
次に、障害判定部140における障害判定処理を詳細に説明する。
Note that “Tsr k” and “k” of “Tc k” in Equation (4) are integers of 1 or more and n or less.
Next, the failure determination process in the failure determination unit 140 will be described in detail.

図10は、障害判定処理の手順を示すフローチャートである。以下、図10に示す処理をステップ番号に沿って説明する。なお、以下の処理は、平均遅延時間算出部130から平均遅延時間を受け取ったときに実行される。   FIG. 10 is a flowchart illustrating the procedure of the failure determination process. In the following, the process illustrated in FIG. 10 will be described in order of step number. The following processing is executed when the average delay time is received from the average delay time calculation unit 130.

[ステップS41]障害判定部140は、クライアント情報記憶部110から未処理のクライアントを1つ選択する。
[ステップS42]障害判定部140は、選択したクライアントのSTCローカル時刻を平均遅延時間で補正する。具体的には、STCローカル時刻に平均遅延時間を加算する。
[Step S41] The failure determination unit 140 selects one unprocessed client from the client information storage unit 110.
[Step S42] The failure determination unit 140 corrects the STC local time of the selected client with the average delay time. Specifically, the average delay time is added to the STC local time.

[ステップS43]障害判定部140は、補正されたSTCローカル時刻と、対応するSTS到着時刻との差を計算し、時刻管理サーバ100と該当するクライアントとの内部時刻の誤差とする。   [Step S43] The failure determination unit 140 calculates a difference between the corrected STC local time and the corresponding STS arrival time, and sets it as an error in internal time between the time management server 100 and the corresponding client.

[ステップS44]障害判定部140は、予め設定されている閾値と、ステップS43で算出した誤差とを比較する。そして、障害判定部140は、比較結果をクライアントの識別情報(たとえば、IPアドレス)に対応付けてRAM102内に記憶する。比較結果は、誤差が閾値以下か、あるいは誤差が閾値を超えているかの二通りである。   [Step S44] The failure determination unit 140 compares a preset threshold value with the error calculated in Step S43. Then, the failure determination unit 140 stores the comparison result in the RAM 102 in association with the identification information (for example, IP address) of the client. There are two comparison results: whether the error is less than or equal to the threshold or whether the error exceeds the threshold.

[ステップS45]障害判定部140は、監視対象の全てのクライアントを選択したか否かを判断する。監視対象の全てのクライアントを選択した場合、処理がステップS46に進められる。未選択のクライアントがある場合、処理がステップS41に進められる。   [Step S45] The failure determination unit 140 determines whether or not all clients to be monitored have been selected. If all the clients to be monitored have been selected, the process proceeds to step S46. If there is an unselected client, the process proceeds to step S41.

[ステップS46]障害判定部140は、ステップS44での比較結果に基づいて、各クライアントの誤差が全て閾値以下か否かを判断する。全てのクライアントに関する誤差が閾値以下であれば、処理がステップS47に進められる。少なくとも1台のクライアントの誤差が閾値を超えていれば、処理がステップS48に進められる。   [Step S46] The failure determination unit 140 determines whether all the errors of each client are equal to or less than a threshold based on the comparison result in Step S44. If the errors regarding all clients are equal to or smaller than the threshold value, the process proceeds to step S47. If the error of at least one client exceeds the threshold, the process proceeds to step S48.

[ステップS47]障害判定部140は、クライアントの誤差が全て閾値以下の場合、時刻管理サーバ100および監視対象の全てのクライアントの内部時計が正常であると判定する。その後、処理が終了する。   [Step S47] When all of the client errors are equal to or smaller than the threshold value, the failure determination unit 140 determines that the internal clocks of the time management server 100 and all the clients to be monitored are normal. Thereafter, the process ends.

[ステップS48]障害判定部140は、少なくとも1台のクライアントの誤差が閾値を超えていた場合、全てのクライアントの誤差が閾値を超えているか否かを判断する。全てのクライアントの誤差が閾値を超えている場合、処理がステップS49に進められる。少なくとも1台のクライアントの誤差が閾値以下であれば、処理がステップS50に進められる。   [Step S48] When the error of at least one client exceeds the threshold, the failure determination unit 140 determines whether the errors of all the clients exceed the threshold. If the errors of all clients exceed the threshold, the process proceeds to step S49. If the error of at least one client is less than or equal to the threshold, the process proceeds to step S50.

[ステップS49]障害判定部140は、全てのクライアントの誤差が閾値を超えている場合、サーバの内部時計に障害があると判定する。その後、処理が終了する。
[ステップS50]障害判定部140は、少なくとも1台のクライアントの誤差が閾値以下であれる場合、誤差が閾値を超えるクライアント数が所定の割合以下か否かを判断する。所定の割合を超えるクライアントにおいて誤差が閾値を超えていた場合、処理がステップS51に進められる。誤差が閾値を超えたクライアント数が所定の割合以下の場合、処理がステップS52に進められる。
[Step S49] The failure determination unit 140 determines that there is a failure in the internal clock of the server when the errors of all clients exceed the threshold. Thereafter, the process ends.
[Step S50] When the error of at least one client is equal to or less than the threshold, the failure determination unit 140 determines whether the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio. If the error exceeds the threshold in the client exceeding the predetermined ratio, the process proceeds to step S51. If the number of clients whose error exceeds the threshold is equal to or less than the predetermined ratio, the process proceeds to step S52.

[ステップS51]障害判定部140は、誤差が閾値を超えるクライアント数が所定の割合を超える場合、システム内での正確な時刻が不明と判定する。その後、処理が終了する。   [Step S51] When the number of clients whose error exceeds the threshold exceeds a predetermined ratio, the failure determination unit 140 determines that the exact time in the system is unknown. Thereafter, the process ends.

[ステップS52]障害判定部140は、誤差が閾値を超えるクライアント数が所定の割合以下の場合、誤差が閾値を超えたクライアントの内部時計を異常と判定する。その後、処理が終了する。その後、処理が終了する。   [Step S52] When the number of clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the failure determination unit 140 determines that the internal clock of the client whose error exceeds the threshold is abnormal. Thereafter, the process ends. Thereafter, the process ends.

以上のようにして、異常のある内部時計を有するコンピュータを的確に検出し、サービスを停止させることができる。その結果、誤った時刻がタイムスタンプとして含まれた電子署名が生成されることを未然に防止できる。   As described above, it is possible to accurately detect a computer having an abnormal internal clock and stop the service. As a result, it is possible to prevent the generation of an electronic signature including an incorrect time as a time stamp.

ところで、上記実施の形態では、平均遅延時間によってSTCローカル時刻を補正している。これは、時刻管理サーバ100とクライアント200,200a,・・・,200mとの間の通信品質が良好であることが前提となっている。たとえば、VoIP(Voice over IP)に関しては、ネットワーク全体の遅延が150ms未満であれば、加入電話並みの通話品質を保つことができる。本実施の形態のネットワークも、原則として通信の遅延は150ms未満であるものとする。このように、通信の遅延がある程度以下に抑えられているネットワーク環境であれば、全てのクライアントについて計算した遅延時間の平均を取った方が現実の遅延時間に近くなる。   In the above embodiment, the STC local time is corrected by the average delay time. This is based on the premise that the communication quality between the time management server 100 and the clients 200, 200a,. For example, with respect to VoIP (Voice over IP), if the delay of the entire network is less than 150 ms, it is possible to maintain call quality equivalent to that of a subscriber telephone. In principle, the network of this embodiment also assumes that the communication delay is less than 150 ms. In this way, in a network environment in which the communication delay is suppressed to a certain extent, the average of the delay times calculated for all clients is closer to the actual delay time.

なお、上記の処理機能は、コンピュータによって実現することができる。その場合、時刻管理サーバおよびクライアントが有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリなどがある。磁気記録装置には、ハードディスク装置(HDD)、フレキシブルディスク(FD)、磁気テープなどがある。光ディスクには、DVD(Digital Versatile Disc)、DVD−RAM、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)などがある。光磁気記録媒体には、MO(Magneto-Optical disk)などがある。   The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the time management server and the client should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Examples of the magnetic recording device include a hard disk device (HDD), a flexible disk (FD), and a magnetic tape. Optical discs include DVD (Digital Versatile Disc), DVD-RAM, CD-ROM (Compact Disc Read Only Memory), CD-R (Recordable) / RW (ReWritable), and the like. Magneto-optical recording media include MO (Magneto-Optical disk).

プログラムを流通させる場合には、たとえば、そのプログラムが記録されたDVD、CD−ROMなどの可搬型記録媒体が販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。   When distributing the program, for example, portable recording media such as a DVD and a CD-ROM in which the program is recorded are sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.

プログラムを実行するコンピュータは、たとえば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送される毎に、逐次、受け取ったプログラムに従った処理を実行することもできる。   The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. In addition, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

なお、本発明は、上述の実施の形態にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変更を加えることができる。   The present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.

発明の概要を示す図である。It is a figure which shows the outline | summary of invention. 本実施の形態のシステム構成例を示す図である。It is a figure which shows the system configuration example of this Embodiment. 本実施の形態に用いる時刻管理サーバのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the time management server used for this Embodiment. 本実施の形態に用いるクライアントのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the client used for this Embodiment. 時刻管理サーバとクライアントとの機能を示すブロック図である。It is a block diagram which shows the function of a time management server and a client. クライアント情報記憶部のデータ構造例を示す図である。It is a figure which shows the example of a data structure of a client information storage part. 時刻管理処理の手順を示すシーケンス図である。It is a sequence diagram which shows the procedure of a time management process. 時刻情報収集処理を示す図である。It is a figure which shows a time information collection process. 時刻情報収集処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a time information collection process. 障害判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a failure determination process.

符号の説明Explanation of symbols

1 時刻管理サーバ
1a サーバ側内部時計
1b クライアント情報記憶手段
1c 時刻情報収集手段
1d 遅延時間算出手段
1e 障害検出手段
1f 時刻同期手段
1g サービス停止指示手段
2,3,4 クライアント
DESCRIPTION OF SYMBOLS 1 Time management server 1a Server side internal clock 1b Client information storage means 1c Time information collection means 1d Delay time calculation means 1e Failure detection means 1f Time synchronization means 1g Service stop instruction means 2, 3, 4 Client

Claims (8)

ネットワークで接続された複数の装置の時刻管理を行う時刻管理サーバにおいて、
時刻同期の基準となる時刻を発生させるサーバ側内部時計と、
管理対象の複数のクライアントが登録されたクライアント情報記憶手段と、
前記クライアント情報記憶手段に登録された前記クライアントそれぞれに対して時刻情報の取得要求を送信し、前記クライアントが有するクライアント側内部時計で示されたローカル時刻を取得し、前記取得要求の発信時の前記サーバ側内部時計の時刻である送出時刻、当該ローカル時刻、および当該ローカル時刻取得時の前記サーバ側内部時計の時刻である到着時刻を組にして前記クライアント情報記憶手段に格納する時刻情報収集手段と、
前記クライアント情報記憶手段に格納された前記クライアントそれぞれの前記送出時刻と前記到着時刻とから、前記時刻管理サーバと前記クライアントそれぞれとの間の一方向分の通信における遅延時間を算出する遅延時間算出手段と、
前記遅延時間算出手段で算出された前記遅延時間によって前記ローカル時刻を補正し、補正された前記ローカル時刻と前記送出時刻または前記到着時刻との差を前記サーバ側内部時計と前記クライアント側内部時計との誤差とし、前記クライアントごとの誤差が所定の閾値以内か否かを判断し、全ての前記クライアントの誤差が前記閾値を超えていた場合、前記サーバ側内部時計に障害があると判定し、誤差が前記閾値を超えている前記クライアントの数が所定の割合以下の場合、誤差が前記閾値を超えている前記クライアントの前記クライアント側内部時計に障害があると判定する障害検出手段と、
を有することを特徴とする時刻管理サーバ。
In a time management server that performs time management of multiple devices connected via a network,
A server-side internal clock that generates a time that is a reference for time synchronization;
Client information storage means in which a plurality of managed clients are registered,
A time information acquisition request is transmitted to each of the clients registered in the client information storage unit, the local time indicated by the client-side internal clock of the client is acquired, and the acquisition request is transmitted when the acquisition request is transmitted. Time information collecting means for storing in the client information storage means a set of a sending time that is the time of the server-side internal clock, the local time, and an arrival time that is the time of the server-side internal clock when the local time is acquired; ,
Delay time calculating means for calculating a delay time in one-way communication between the time management server and each of the clients from the transmission time and the arrival time of each of the clients stored in the client information storage means When,
The local time is corrected by the delay time calculated by the delay time calculating means, and the difference between the corrected local time and the sending time or the arrival time is calculated between the server-side internal clock and the client-side internal clock. It is determined whether or not the error for each client is within a predetermined threshold value, and if all the client errors exceed the threshold value, it is determined that there is a failure in the internal clock on the server side. Fault detection means for determining that there is a fault in the client-side internal clock of the client whose error exceeds the threshold when the number of the clients whose threshold exceeds the threshold is less than or equal to a predetermined percentage;
A time management server comprising:
前記遅延時間算出手段は、前記クライアント情報記憶手段に格納された前記クライアントごとの前記送出時刻と前記到着時刻とから、前記時刻管理サーバと前記クライアントそれぞれとの間の一方向分の通信における遅延時間の平均値を算出し、算出された平均値を前記クライアントそれぞれとの通信における遅延時間とすることを特徴とする請求項1記載の時刻管理サーバ。   The delay time calculating means is a delay time in one-way communication between the time management server and each of the clients from the sending time and the arrival time for each of the clients stored in the client information storage means. 2. The time management server according to claim 1, wherein an average value is calculated, and the calculated average value is used as a delay time in communication with each of the clients. 前記障害検出手段により前記サーバ側内部時計が正常と判定された場合、前記クライアント側内部時計が正常と判定された前記クライアントとの間で、時刻を一致させるための時刻同期処理を実行することを特徴とする時刻同期手段をさらに有することを特徴とする請求項1記載の時刻管理サーバ。   When the server-side internal clock is determined to be normal by the failure detection means, a time synchronization process is performed for matching the time with the client for which the client-side internal clock is determined to be normal. 2. The time management server according to claim 1, further comprising time synchronization means. 前記障害検出手段により前記クライアント側内部時計に障害があると判定された前記クライアントに対して、前記クライアント側内部時計を用いたサービスの停止を指示するサービス停止指示手段をさらに有することを特徴とする請求項1記載の時刻管理サーバ。   The apparatus further comprises a service stop instruction means for instructing the client determined to have a failure in the client side internal clock by the fault detection means to stop the service using the client side internal clock. The time management server according to claim 1. 前記障害検出手段は、誤差が前記閾値を超えている前記クライアントの数が所定の割合を超えている場合、正確な時刻が不明であると判定することを特徴とする請求項1記載の時刻管理サーバ。   The time management according to claim 1, wherein the failure detection unit determines that an accurate time is unknown when the number of the clients whose error exceeds the threshold exceeds a predetermined ratio. server. 前記障害検出手段により正確な時刻が不明であると判定された場合、全ての前記クライアントに対して、前記クライアント側内部時計を用いたサービスの停止を指示するサービス停止指示手段をさらに有することを特徴とする請求項5記載の時刻管理サーバ。   And a service stop instructing unit for instructing all the clients to stop the service using the client-side internal clock when it is determined by the failure detecting unit that the exact time is unknown. The time management server according to claim 5. ネットワークで接続された複数の装置の時刻管理を、時刻同期の基準となる時刻を発生させるサーバ側内部時計を有するコンピュータで行うための時刻管理プログラムにおいて、
前記コンピュータを、
管理対象の複数のクライアントが登録されたクライアント情報記憶手段、
前記クライアント情報記憶手段に登録された前記クライアントそれぞれに対して時刻情報の取得要求を送信し、前記クライアントが有するクライアント側内部時計で示されたローカル時刻を取得し、前記取得要求の発信時の前記サーバ側内部時計の時刻である送出時刻、当該ローカル時刻、および当該ローカル時刻取得時の前記サーバ側内部時計の時刻である到着時刻を組にして前記クライアント情報記憶手段に格納する時刻情報収集手段、
前記クライアント情報記憶手段に格納された前記クライアントそれぞれの前記送出時刻と前記到着時刻とから、前記時刻管理サーバと前記クライアントそれぞれとの間の一方向分の通信における遅延時間を算出する遅延時間算出手段、
前記遅延時間算出手段で算出された前記遅延時間によって前記ローカル時刻を補正し、補正された前記ローカル時刻と前記送出時刻または前記到着時刻との差を前記サーバ側内部時計と前記クライアント側内部時計との誤差とし、前記クライアントごとの誤差が所定の閾値以内か否かを判断し、全ての前記クライアントの誤差が前記閾値を超えていた場合、前記サーバ側内部時計に障害があると判定し、誤差が前記閾値を超えている前記クライアントの数が所定の割合以下の場合、誤差が前記閾値を超えている前記クライアントの前記クライアント側内部時計に障害があると判定する障害検出手段、
として機能させることを特徴とする時刻管理プログラム。
In a time management program for performing time management of a plurality of devices connected by a network with a computer having a server-side internal clock that generates a time serving as a reference for time synchronization,
The computer,
Client information storage means in which a plurality of managed clients are registered,
A time information acquisition request is transmitted to each of the clients registered in the client information storage unit, the local time indicated by the client-side internal clock of the client is acquired, and the acquisition request is transmitted when the acquisition request is transmitted. Time information collecting means for storing in the client information storage means a set of a sending time that is the time of the server-side internal clock, the local time, and an arrival time that is the time of the server-side internal clock at the time of acquisition of the local time;
Delay time calculating means for calculating a delay time in one-way communication between the time management server and each of the clients from the transmission time and the arrival time of each of the clients stored in the client information storage means ,
The local time is corrected by the delay time calculated by the delay time calculating means, and the difference between the corrected local time and the sending time or the arrival time is calculated between the server-side internal clock and the client-side internal clock. It is determined whether or not the error for each client is within a predetermined threshold value, and if all the client errors exceed the threshold value, it is determined that there is a failure in the internal clock on the server side. Failure detection means for determining that there is a failure in the client-side internal clock of the client whose error exceeds the threshold when the number of the clients whose threshold exceeds the threshold is less than or equal to a predetermined percentage;
A time management program characterized by functioning as
ネットワークで接続された複数の装置の時刻管理を、時刻同期の基準となる時刻を発生させるサーバ側内部時計を有するコンピュータで行うための時刻管理方法において、
時刻情報収集手段が、管理対象の複数のクライアントが登録されたクライアント情報記憶手段に登録された前記クライアントそれぞれに対して時刻情報の取得要求を送信し、前記クライアントが有するクライアント側内部時計で示されたローカル時刻を取得し、前記取得要求の発信時の前記サーバ側内部時計の時刻である送出時刻、当該ローカル時刻、および当該ローカル時刻取得時の前記サーバ側内部時計の時刻である到着時刻を組にして前記クライアント情報記憶手段に格納し、
遅延時間算出手段が、前記クライアント情報記憶手段に格納された前記クライアントそれぞれの前記送出時刻と前記到着時刻とから、前記時刻管理サーバと前記クライアントそれぞれとの間の一方向分の通信における遅延時間を算出し、
障害検出手段が、前記遅延時間算出手段で算出された前記遅延時間によって前記ローカル時刻を補正し、補正された前記ローカル時刻と前記送出時刻または前記到着時刻との差を前記サーバ側内部時計と前記クライアント側内部時計との誤差とし、前記クライアントごとの誤差が所定の閾値以内か否かを判断し、
前記障害検出手段が、全ての前記クライアントの誤差が前記閾値を超えていた場合、前記サーバ側内部時計に障害があると判定し、
前記障害検出手段が、誤差が前記閾値を超えている前記クライアントの数が所定の割合以下の場合、誤差が前記閾値を超えている前記クライアントの前記クライアント側内部時計に障害があると判定する、
ことを特徴とする時刻管理方法。
In a time management method for performing time management of a plurality of devices connected via a network with a computer having a server-side internal clock that generates a time serving as a reference for time synchronization,
The time information collecting means transmits a request for obtaining time information to each of the clients registered in the client information storage means in which a plurality of clients to be managed are registered, and is indicated by a client-side internal clock possessed by the client. The local time is acquired, and the sending time that is the time of the server-side internal clock when the acquisition request is transmitted, the local time, and the arrival time that is the time of the server-side internal clock when the local time is acquired are set. And stored in the client information storage means,
A delay time calculating means calculates a delay time in one-way communication between the time management server and each of the clients from the transmission time and the arrival time of each of the clients stored in the client information storage means. Calculate
A failure detection unit corrects the local time by the delay time calculated by the delay time calculation unit, and calculates a difference between the corrected local time and the transmission time or the arrival time and the server-side internal clock and the An error with the internal clock on the client side is determined, and it is determined whether the error for each client is within a predetermined threshold,
When the failure detection means determines that there is a failure in the server-side internal clock when the error of all the clients exceeds the threshold,
When the number of the clients whose error exceeds the threshold is equal to or less than a predetermined ratio, the failure detection means determines that the client-side internal clock of the client whose error exceeds the threshold is faulty.
A time management method characterized by the above.
JP2007167970A 2007-06-26 2007-06-26 Time management server, time management program, and time management method Pending JP2009008444A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2007167970A JP2009008444A (en) 2007-06-26 2007-06-26 Time management server, time management program, and time management method
PCT/JP2008/054274 WO2009001583A1 (en) 2007-06-26 2008-03-10 Time management server, time management program, and time management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007167970A JP2009008444A (en) 2007-06-26 2007-06-26 Time management server, time management program, and time management method

Publications (1)

Publication Number Publication Date
JP2009008444A true JP2009008444A (en) 2009-01-15

Family

ID=40185407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007167970A Pending JP2009008444A (en) 2007-06-26 2007-06-26 Time management server, time management program, and time management method

Country Status (2)

Country Link
JP (1) JP2009008444A (en)
WO (1) WO2009001583A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012234275A (en) * 2011-04-28 2012-11-29 Nec System Technologies Ltd Real time clock correction circuit and real time clock correction method
JP2013040840A (en) * 2011-08-15 2013-02-28 Nec Corp Apparatus and method for detecting deterioration of oscillator
JP2014029292A (en) * 2012-07-31 2014-02-13 Casio Comput Co Ltd Time information acquisition device, and electromagnetic wave clock

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612788B (en) * 2017-11-07 2020-09-18 中国电子科技集团公司第二十八研究所 Time server fault detection method, equipment and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2658962B2 (en) * 1995-03-15 1997-09-30 日本電気株式会社 Network time information synchronization method
JPH10160873A (en) * 1996-12-04 1998-06-19 Nec Corp Time synchronization method
JP2004170139A (en) * 2002-11-18 2004-06-17 Hitachi Electronics Service Co Ltd Method for automatically correcting tod of terminal and system for automatic correction
JP2007068087A (en) * 2005-09-02 2007-03-15 Nippon Telegr & Teleph Corp <Ntt> Method and apparatus for estimating subjective quality in multipoint connection communication service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012234275A (en) * 2011-04-28 2012-11-29 Nec System Technologies Ltd Real time clock correction circuit and real time clock correction method
JP2013040840A (en) * 2011-08-15 2013-02-28 Nec Corp Apparatus and method for detecting deterioration of oscillator
JP2014029292A (en) * 2012-07-31 2014-02-13 Casio Comput Co Ltd Time information acquisition device, and electromagnetic wave clock

Also Published As

Publication number Publication date
WO2009001583A1 (en) 2008-12-31

Similar Documents

Publication Publication Date Title
US11953938B1 (en) Generating globally coherent timestamps
KR101109980B1 (en) Facilitating synchronization of servers in a coordinated timing network
EP1702423B1 (en) Time synchronizing device and process and associated products
US9141489B2 (en) Failover procedure for server system
US7350115B2 (en) Device diagnostic system
JP5120860B2 (en) Method, system, and computer program for facilitating recovery within an agreement timing network
US20140032173A1 (en) Information processing apparatus, and monitoring method
EP2378718A1 (en) Method, node and system for controlling version in distributed system
CN105680973A (en) A method of time synchronization of free running nodes in an avionics network
US20130103642A1 (en) Method, apparatus and system for updating metadata file
CN101765198B (en) Clock synchronization method, clock synchronization device and clock synchronization system
CN104981742A (en) Distribution device, distribution system, and distribution method
WO2012111112A1 (en) Information processing device, time setting method, and time setting program
JP2009008444A (en) Time management server, time management program, and time management method
CN111130951B (en) Equipment state detection method, device and storage medium
US8327028B1 (en) Method and apparatus for providing time synchronization in a data protection system
US8369308B2 (en) Remote I/O system and synchronization method in the same
CN107547160A (en) A kind of method for synchronizing time and device
CN116131984A (en) Reference time determining method and device, electronic equipment and storage medium
JP4021689B2 (en) Time authentication apparatus and program
US12019467B2 (en) Estimation of event generation times to synchronize recordation data
KR102106320B1 (en) CCTV managing system capable of time synchronization
US11860689B2 (en) Time synchronization method, service board, and network device
CN112235426B (en) Data sampling time optimization method and device and electronic equipment
KR102366070B1 (en) Methods for synchronizing heterogeneous systems and the systems