JP2019101793A - Information processing device, cloud server, and time information conversion method - Google Patents
Information processing device, cloud server, and time information conversion method Download PDFInfo
- Publication number
- JP2019101793A JP2019101793A JP2017232446A JP2017232446A JP2019101793A JP 2019101793 A JP2019101793 A JP 2019101793A JP 2017232446 A JP2017232446 A JP 2017232446A JP 2017232446 A JP2017232446 A JP 2017232446A JP 2019101793 A JP2019101793 A JP 2019101793A
- Authority
- JP
- Japan
- Prior art keywords
- time
- time difference
- partner
- master
- change degree
- 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
Links
Images
Landscapes
- Electric Clocks (AREA)
Abstract
Description
本発明は、時差を有する相手装置に関する時刻情報を変換するための時刻情報変換技術に関する。 The present invention relates to a time information conversion technique for converting time information on a partner apparatus having a time difference.
クラウドシステムの事業モデルの1つとして、クラウドプラットフォーム提供者が提供するクラウド基盤の上に、仮想的なクラウドサーバによりエンドユーザー毎にクラウド実行環境を用意して各種のクラウドサービスを提供するものがある。図9は、実行環境に応じたサービスを提供するクラウド構成例である。図9に示すクラウド構成では、顧客毎にクラウド実行環境を用意しているが、同じ顧客で拠点が異なるエンドユーザーに対して独立したクラウド実行環境を用意する場合もあり、クラウド実行環境内にエンドユーザー向けのサービスを実行するソフトウェアやデータベースが存在する。 One of the business models of cloud systems is to provide various cloud services by preparing a cloud execution environment for each end user with a virtual cloud server on a cloud platform provided by a cloud platform provider. . FIG. 9 is an example of a cloud configuration that provides services according to the execution environment. In the cloud configuration shown in FIG. 9, the cloud execution environment is prepared for each customer, but there are also cases where an independent cloud execution environment is prepared for end users with different bases based on the same customer. There are software and databases that execute services for users.
このようなクラウド構成では、クラウド基盤が各クラウド実行環境の動作状況を把握・管理するために、クラウド基盤で統一した基準マスタ時刻を備えており、通常の場合は協定世界時(UTC:Universal Time Coordinated)で全ての事象の時刻を、基準マスタ時刻に基づく基準時刻情報を用いて記録している。したがって、クラウドサービスで時刻情報を提示する場合には、クラウドサービスを利用するエンドユーザーのサイトの時間帯地域に合わせた時刻情報に変換して提示している。 In such a cloud configuration, the cloud base has a standard master time that is unified with the cloud base in order to understand and manage the operation status of each cloud execution environment, and in the normal case, Universal Time Coordinated (UTC: Universal Time) In Coordinated), the times of all events are recorded using reference time information based on the reference master time. Therefore, when presenting time information with a cloud service, it is converted into time information adapted to the time zone area of the end user site using the cloud service and presented.
この際、クラウド基盤では、基準マスタ時刻を計時する時刻管理サーバがクラウド基盤内に設けられていることを想定し、クラウド実行環境を利用するエンドユーザーのサイトから提供される相手時刻情報も、UTCすなわちクラウド基盤と時刻同期していることを前提としている。このため、このようなクラウド構成では、特定の顧客のみ他とずれた時刻で管理することはできない。 At this time, in the cloud platform, assuming that a time management server for clocking the reference master time is provided in the cloud platform, the other party's time information provided from the site of the end user using the cloud execution environment is also UTC. That is, it is assumed that time is synchronized with the cloud platform. Therefore, in such a cloud configuration, it is not possible to manage only a specific customer at a different time.
しかし、図9に示すように、顧客サイトによっては、クラウド基盤と接続するローカルサイト上のシステムで計時した時刻をマスタ時刻として扱い、かつ、そのマスタ時刻がUTCと同期できないサイトがある。このような顧客サイトが存在する背景としては、顧客側が過去に独自に作り上げた企業活動管理のシステムが存在し、そのプラットフォームが古くて時刻同期に対応せず、かつ、古くから運用している事情から顧客側システムの時刻を訂正することが望ましくない場合がある。 However, as shown in FIG. 9, depending on the customer site, there is a site that handles the time clocked by the system on the local site connected to the cloud platform as the master time, and the master time can not be synchronized with UTC. The background of the existence of such a customer site is that there is a system for business activity management that the customer side created independently in the past, and the platform is old, does not correspond to time synchronization, and has been operating for a long time From time to time it may not be desirable to correct the time on the customer side system.
例えば、石油プラントなどのプロセスオートメーションシステムにおいては、そのマスタ時刻を運転中に変更することが許されず、何年も経過した後の定修時にのみ、その機会が与えられる。したがって、このような、マスタ時刻を独自に管理する顧客サイトと接続するクラウド実行環境では、次のような課題がある。 For example, in a process automation system such as an oil plant, it is not permitted to change its master time during operation, and the opportunity is given only at regular repair after many years have passed. Therefore, there are the following problems in such a cloud execution environment connected with a customer site that manages master time independently.
その1つは、顧客サイトから通知された時刻付の情報をそのままクラウド実行環境内に保存し、顧客サイトの事象履歴の情報とクラウド基盤が記録するクラウド環境内の事象履歴の情報とを単純に比較すると、両者の時刻情報に時差が存在するため、事象発生順序が正しく反映されずに誤った解析を行ってしまう場合がある。
また、もう1つの課題として、UTCと同じ時刻を持てない複数のサイトが同じクラウド環境に接続している場合も同様に、両方のサイトの情報を単純に比較すると、正しい時間関係を把握できずに誤った解析を行う場合がある。
One of them is to store the timed information notified from the customer site as it is in the cloud execution environment, and simply the information on the event history of the customer site and the information on the event history in the cloud environment recorded by the cloud platform In comparison, since there is a time difference between the time information of the two, there is a possibility that the analysis may be performed incorrectly without correctly reflecting the event occurrence order.
Also, as another problem, even when multiple sites that can not have the same time as UTC are connected to the same cloud environment, it is impossible to grasp the correct time relationship by simply comparing the information of both sites. May perform incorrect analysis.
従来、ネットワーク環境下の分散システム間でシステム時刻を統一するための技術が提案されている(例えば、特許文献1など参照)。この技術は、各システムと自システムの時差情報と相手システムの日程に関する時刻変換情報とに基づいて、相手システムから取得したデータの日時情報を自システムの日時に変換するようにしたものである。
これにより、ネットワークで一意な時刻を管理することなく、相手システムの時刻を自システムの時刻に変換することができる。
Conventionally, a technique for unifying system time among distributed systems in a network environment has been proposed (see, for example, Patent Document 1). This technology is configured to convert date and time information of data acquired from the other system into the date and time of the own system based on time difference information of each system and the own system and time conversion information on the schedule of the other system.
Thus, the time of the other system can be converted to the time of the own system without managing the time unique to the network.
しかしながら、このような従来技術では、時刻を変換する際、相手システムと自システムの時差情報として予め設定された固定的な情報を用いているため、顧客サイトで独自に関するマスタ時刻とクラウド基盤のマスタ時刻との時差が、時間経過とともに変化していくような場合には、顧客サイトから通知された時刻情報を、クラウド基盤の時刻情報へ、正確に変換することができないという問題点があった。 However, in such conventional techniques, when converting time, fixed information preset as time difference information between the partner system and the own system is used, so the master time on the customer site and the master of the cloud base are unique. When the time difference with the time changes with the passage of time, there is a problem that the time information notified from the customer site can not be accurately converted to the cloud-based time information.
例えば、顧客サイトのシステムが、前述したプロセスオートメーションシステムのために運転中の時刻変更が行えない場合、その顧客サイトのシステムのクロック周期が実際よりずれていると、長い時間経過と共に徐々にクラウド基盤との時差が変化していく場合もある。このときには、単純に固定した時差を参考情報として補正することはできない。 For example, if the system at the customer site can not change the operating time due to the process automation system described above, the clock base of the system at the customer site may deviate from the actual clock period, and the cloud infrastructure will gradually increase over time. The time difference with may change. At this time, it is impossible to correct the simply fixed time difference as reference information.
本発明はこのような課題を解決するためのものであり、時間経過とともに時差が変化するような相手装置からの時刻情報であっても、精度よく時刻情報を変換することができる時刻情報変換技術を提供することを目的としている。 The present invention is intended to solve such problems, and a time information conversion technology that can accurately convert time information even if it is time information from a partner apparatus whose time difference changes with time. The purpose is to provide.
このような目的を達成するために、本発明にかかる情報処理装置は、基準マスタ時刻を計時するように構成された時計部と、通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時計部の前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録するように構成された時差履歴記録部と、前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算するように構成された時差変化度合計算部と、前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換するように構成された時刻変換部とを備えている。 In order to achieve such an object, an information processing apparatus according to the present invention uses a clock unit configured to clock a reference master time, and a partner apparatus connected via a communication network, using the partner apparatus. The other time information indicating the other time master time measured is acquired, the time difference from the reference time information indicating the reference master time of the clock unit is calculated, and the time difference history data indicating the change of the obtained time difference Time difference between the other party master time relating to the other device and the reference master time based on the time difference history recording unit configured to record on the other device and the time difference history data relating to the other device acquired from the time difference history DB The phase of the other device is calculated based on a time difference change degree calculation unit configured to calculate a change degree and the time difference change degree obtained by the time difference change degree calculation unit. It includes a mating time information based on the master time, and a time conversion unit configured to convert the reference time information based on the reference master time.
また、本発明にかかる上記情報処理装置の一構成例は、前記時刻変換部が、前記相手装置から通知された処理データに、前記相手マスタ時刻に基づく相手時刻情報が含まれている場合、当該相手装置の時差変化度合に基づいて、前記相手時刻情報を前記基準マスタ時刻に基づく基準時刻情報に変換するようにしたものである。 Further, in a configuration example of the information processing apparatus according to the present invention, in the case where the time conversion unit includes the other party time information based on the other party master time in the processing data notified from the other party apparatus The counterpart time information is converted into reference time information based on the reference master time based on the time difference change degree of the counterpart apparatus.
また、本発明にかかる上記情報処理装置の一構成例は、前記時刻変換部が、前記相手装置へ通知する処理データに、前記基準マスタ時刻に基づく基準時刻情報が含まれている場合、当該相手装置の時差変化度合に基づいて、前記基準時刻情報を前記相手マスタ時刻に基づく相手時刻情報に変換するようにしたものである。 Further, in a configuration example of the information processing apparatus according to the present invention, in the case where processing data notified to the other device by the time conversion unit includes reference time information based on the reference master time, the other device The reference time information is converted into the other party time information based on the other party master time based on the time difference change degree of the device.
また、本発明にかかる上記情報処理装置の一構成例は、前記時差変化度合計算部が、前記相手マスタ時刻と前記基準マスタ時刻との新たな時差変化度合を定期的に計算して記憶部に保存し、前記時刻変換部は、前記相手時刻情報と前記基準時刻情報とを変換する際、前記記憶部から取得した、前記相手マスタ時刻と前記基準マスタ時刻との最新の時差変化度合に基づいて変換するようにしたものである。 Further, in a configuration example of the information processing apparatus according to the present invention, the time difference change degree calculation unit periodically calculates a new time difference change degree between the counterpart master time and the reference master time and stores the time in the storage unit. When the time conversion unit converts the other party time information and the reference time information, the time conversion unit stores the latest time difference change degree between the other party master time and the reference master time acquired from the storage unit. It is intended to convert.
また、本発明にかかる上記情報処理装置の一構成例は、前記時刻変換部が、前記相手時刻情報と前記基準時刻情報とを変換する際、前記時差変化度合計算部で前記相手マスタ時刻と前記基準マスタ時刻との時差変化度合を新たに計算し、得られた最新の時差変化度合に基づいて変換するようにしたものである。 Further, in a configuration example of the information processing apparatus according to the present invention, the time difference change degree calculation unit calculates the other party master time and the other time when the time conversion unit converts the other time information and the reference time information. The time difference change degree with the reference master time is newly calculated and converted based on the latest time difference change degree obtained.
また、本発明にかかるクラウドサーバは、基準マスタ時刻を計時する時刻管理サーバと、通信回線を介して前記時刻管理サーバから取得した前記基準マスタ時刻に基づく基準時刻情報に基づいて各種のアプリケーション処理を実行する複数のクラウドサーバとを備えるクラウド基盤で用いられる前記クラウドサーバであって、通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時刻管理サーバから取得した前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録するように構成された時差履歴記録部と、前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算するように構成された時差変化度合計算部と、前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換するように構成された時刻変換部とを備えている。 In addition, the cloud server according to the present invention includes a time management server that clocks a reference master time, and various application processing based on reference time information based on the reference master time acquired from the time management server via a communication line. The cloud server used on a cloud basis comprising a plurality of cloud servers to be executed, which acquires opponent's time information indicating an opponent's master time clocked by the opponent device from the opponent device connected via a communication network Time difference history with reference time information indicating the reference master time acquired from the time management server, and time difference history data indicating a change in the obtained time difference recorded in the time difference history DB The recording unit and the phase based on time difference history data regarding the other device acquired from the time difference history DB. Based on the time difference change degree calculation unit configured to calculate the time difference change degree of the time difference between the partner master time and the reference master time regarding the device, based on the time difference change degree obtained by the time difference change degree calculation unit A time conversion unit configured to convert partner time information based on the partner master time of the partner apparatus and reference time information based on the reference master time is provided.
また、本発明にかかる時刻情報変換方法は、通信ネットワークを介して相手装置と接続される情報処理装置で用いられる時刻情報変換方法であって、時計部が、基準マスタ時刻を計時する計時ステップと、時差履歴記録部が、通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時計部の前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録する時差記録ステップと、時差変化度合計算部が、前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算する時差推定ステップと、時刻変換部が、前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換する時刻変換ステップとを備えている。 Further, a time information conversion method according to the present invention is a time information conversion method used in an information processing apparatus connected to a partner apparatus via a communication network, and a clock unit measures a reference master time. The time difference history recording unit acquires, from the partner apparatus connected via the communication network, partner time information indicating the partner master time clocked by the partner apparatus, and a reference time indicating the reference master time of the clock unit. A time difference recording step of calculating a time difference from information and recording time difference history data indicating a change of the obtained time difference in the time difference history DB, and a time difference regarding the other device acquired from the time difference history DB A time difference estimation step of calculating a time difference change degree of the time difference between the partner master time and the reference master time relating to the partner apparatus based on history data And a time conversion unit, based on the time difference change degree obtained by the time difference change degree calculation unit, converts partner time information based on the partner master time of the partner apparatus and reference time information based on the reference master time. And a time conversion step.
本発明によれば、相手装置の相手クロック信号と時計部の基準クロック信号とのクロック周期がずれていて、時間経過とともに時差が変化するような場合であっても、相手装置の相手マスタ時刻に基づく相手時刻情報と、基準マスタ時刻に基づく基準時刻情報とを、精度よく変換することが可能となる。
したがって、相手装置から取得した取得データが示す事象と、アプリケーション処理部側の処理データが示す事象とを比較しても、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。また、任意の標準時刻との時刻同期を行う構成を備えていない相手装置や、常時運転中のプロセスオートメーションシステムのため任意の標準時刻との時刻同期を行えない相手装置であっても、これら相手装置から取得した取得データが示す事象について、上記と同様にして、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。
According to the present invention, even when the clock cycle of the other party's clock signal of the other party's device and the reference clock signal of the clock unit are offset and the time difference changes as time passes, It becomes possible to accurately convert the other party time information based on the reference time and the reference time information based on the reference master time.
Therefore, even if the events indicated by the acquired data acquired from the other device are compared with the events indicated by the processing data on the application processing unit side, the order of occurrence of these events can be correctly recognized, and these events can be analyzed correctly. can do. In addition, even if it is a partner device that does not have a configuration to perform time synchronization with any standard time, or a partner device that can not perform time synchronization with any standard time for a process automation system that is always operating, With respect to events indicated by acquired data acquired from the device, the occurrence order of these events can be correctly recognized in the same manner as described above, and these events can be correctly analyzed.
次に、本発明の実施の形態について図面を参照して説明する。
[第1の実施の形態]
まず、図1を参照して、本発明の第1の実施の形態にかかる情報処理装置10について説明する。図1は、第1の実施の形態にかかる情報処理装置の構成を示すブロック図である。
Next, embodiments of the present invention will be described with reference to the drawings.
First Embodiment
First, an
この情報処理装置10は、全体としてサーバなどの情報処理装置(コンピュータ)からなり、VPN(Virtual Private Network)、専用線網、インターネットなどの通信ネットワークNWを介して、各相手装置50(51,52,…,5N:Nは1以上の整数)との間で、各種のアプリケーション処理に用いる処理データをやり取りする機能を有している。
The
情報処理装置10の具体例としては、通信ネットワークNWを介した相手装置50からのアクセスに応じて、各種のWebサービスを相手装置50に提供するサービス提供サーバがある。
相手装置50の具体例としては、PC、サーバ、携帯情報端末などの情報処理装置(コンピュータ)があり、それぞれの相手クロック信号に基づき相手マスタ時刻TMi(i=1,2,…,N)を計時する機能を有している。
As a specific example of the
Specific examples of the
図1に示すように、情報処理装置10は、主な機能部として、時計部11、記憶部12、網I/F部13、時差履歴DB14、アプリケーションDB15、および演算処理部16を備えている。
As shown in FIG. 1, the
時計部11は、一般的な公知の時計回路からなり、基準クロック信号に基づいて情報処理装置10での処理動作の基準となる基準マスタ時刻TMsを計時する機能を有している。本実施の形態にかかる基準マスタ時刻TMsは、一般的には、協定世界時(UTC:Universal Time Coordinated)や日本標準時(JST:Japan Standard Time)などの標準時と同期しているが、これに限定されるものではなく、これら標準時と同期している必要はない。
The
記憶部12は、ハードディスクや半導体メモリなどの記憶装置からなり、演算処理部16での各種処理に用いるデータやプログラムを記憶する機能を有している。
網I/F部13は、通信ネットワークNWを介して相手装置50との間でデータ通信を行う機能を有している。
The
The network I /
時差履歴DB14は、ハードディスクや半導体メモリなどの記憶装置からなり、各相手装置50で計時した相手マスタ時刻TMiと情報処理装置10で計時した基準マスタ時刻TMsとの時刻差の変化を示す時差履歴データを記憶するデータベースである。
図2は、時差履歴DBの構成例である。ここでは、相手装置50を識別するための相手ID、相手マスタ時刻TMi、基準マスタ時刻TMs、および、時刻差の組が、時差履歴データとして登録されている。
The time
FIG. 2 is a configuration example of the time difference history DB. Here, a pair of the other party ID for identifying the
例えば、図2では、各月の初日に時差を計算した例が示されており、相手ID「001」の相手装置50に関する時差は、2か月経過しても一定の値「−02:30」を示している。これに対して、相手ID「002」の相手装置50に関する時差は、1か月ごとに1秒ずつ増加していることが分かる。
For example, FIG. 2 shows an example in which the time difference is calculated on the first day of each month, and the time difference regarding the
したがって、相手ID「001」の相手装置50の相手時刻情報については、固定的な補正値で基準時刻情報に変換することが可能であるが、相手ID「002」の相手装置50に関する相手時刻情報については、固定的な補正値で基準時刻情報に変換することはできない。本発明は、このような時差の時差変化度合を計算し、時差変化度合に基づいて、相手時刻情報と基準時刻情報とを変換するようにしたものである。
Therefore, the other party time information of the
アプリケーションDB15は、ハードディスクや半導体メモリなどの記憶装置からなり、相手装置50から取得した取得データや相手装置50へ提供する提供データなど、相手装置50が利用するアプリケーション処理で用いる各種処理データを記憶するデータベースである。
The
演算処理部16は、CPUとその周辺回路を備え、記憶部12からプログラムを読み出してCPUで実行することにより、ハードウェアとソフトウェアとを協働させて、各種の処理部を実現する機能を有している。
演算処理部16で実現される主な処理部として、時差履歴記録部16A、時差変化度合計算部16B、時刻変換部16C、およびアプリケーション処理部16Dがある。
The
As main processing units realized by the
時差履歴記録部16Aは、網I/F部13および通信ネットワークNWを介して接続される各相手装置50から、相手装置50で計時した相手マスタ時刻TMiを示す相手時刻情報を取得して、時計部11の基準マスタ時刻TMsを示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DB14に記録する機能を有している。
The time difference
時差変化度合計算部16Bは、時差履歴DB14から取得した、推定対象となる相手装置50に関する時差履歴データに基づいて、相手装置50に関する相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の時差変化度合を計算する機能を有している。
The time difference change
この際、時差変化度合計算部16Bは、推定対象となる相手装置50に関する複数の時差履歴データに基づいて、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の変化を示す、線形あるいは非線形の近似関数を、時差変化度合として計算するようにしてもよい。近似関数を求める手法については、公知の手法を用いればよい。
At this time, the time difference change
時刻変換部16Cは、時差変化度合計算部16Bで得られた時差変化度合に基づいて、変換対象となる相手装置50の相手マスタ時刻TMiに基づく時刻情報と、基準マスタ時刻TMsに基づく基準時刻情報とを変換する機能を有している。
The
具体的には、時刻変換部16Cは、相手装置50から通知された処理データに、相手マスタ時刻TMiに基づく相手時刻情報が含まれている場合、当該相手装置50の時差変化度合に基づいて、相手時刻情報を基準マスタ時刻TMsに基づく基準時刻情報に変換する機能と、相手装置50へ通知する処理データに、基準マスタ時刻TMsに基づく基準時刻情報が含まれている場合、当該相手装置50の時差変化度合に基づいて、基準時刻情報を相手マスタ時刻TMiに基づく相手時刻情報に変換する機能とを有している。
Specifically, when the processing data notified from the
時刻変換部16Cで相手時刻情報と基準時刻情報とを変換する際、時差変化度合計算部16Bが、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の新たな時差変化度合を定期的に計算して記憶部12に保存しておき、時刻変換部16Cが、相手時刻情報と基準時刻情報とを変換する際、記憶部12から取得した、相手マスタ時刻TMiと基準マスタ時刻TMsとの最新の時差変化度合に基づいて、相手時刻情報と基準時刻情報とを変換するようにしてもよい。
When converting the partner time information and the reference time information by the
また、時刻変換部16Cで相手時刻情報と基準時刻情報とを変換する際、時差変化度合計算部16Bが、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差変化度合を新たに計算し、得られた最新の時差変化度合に基づいて時刻変換部16Cが相手時刻情報と基準時刻情報とを変換するようにしてもよい。
Further, when the
アプリケーション処理部16Dは、通信ネットワークNWおよび網I/F部13を介して、相手装置50から通知された処理データをアプリケーションDB15に保存する機能と、アプリケーションDB15に保存されている処理データを読み出して、指定されたアプリケーション処理を実行し、アプリケーション処理で得られた処理データをアプリケーションDB15に保存する機能と、アプリケーションDB15に保存されている処理データを、網I/F部13および通信ネットワークNWを介して相手装置50へ通知する機能とを有している。
The
この際、アプリケーション処理部16Dにより、相手装置50から通知された処理データをアプリケーションDB15に保存する際、時刻変換部16Cで、相手時刻情報が基準時刻情報に変換された後の処理データが保存されることになる。また、アプリケーションDB15に保存されている処理データを相手装置50へ通知する際、時刻変換部16Cで、基準時刻情報相が手時刻情報に変換された後の処理データが通知されることになる。
At this time, when the processing data notified from the
[第1の実施の形態の動作]
次に、本実施の形態にかかる情報処理装置10の動作について説明する。
情報処理装置10の主な動作としては、時差履歴記録動作、時差変化度合計算動作、および時刻変換動作がある。以下、これら動作のそれぞれについて個別に説明する。
[Operation of First Embodiment]
Next, the operation of the
As main operations of the
[時差履歴記録動作]
まず、図3を参照して、情報処理装置10の時差履歴データ記録動作について説明する。図3は、時差履歴記録処理を示すフローチャートである。
情報処理装置10の時差履歴記録部16Aは、例えば予め設定された周期で図3の時差履歴記録処理を実行することにより、各相手装置50に関する時差履歴データを生成して時差履歴DB14へ記録する。
[Time difference history recording operation]
First, the time difference history data recording operation of the
The time difference
まず、時差履歴記録部16Aは、網I/F部13および通信ネットワークNWを介して、記録対象となる相手装置i(i=1,2,…,N)から、相手装置iで計時した相手マスタ時刻TMiを示す相手時刻情報Diを取得する(ステップ100)。この相手時刻情報Diは、時差履歴記録部16Aから送信した要求メッセージに応じて相手装置iから返送されたものを用いてもよく、相手装置iから周期的に通知されたものを用いてもよい。また、相手装置i側で、例えば定期修理などのタイミングで、相手マスタ時刻TMiを変更した場合には、それに合わせて新たな相手時刻情報Diを情報処理装置10へ通知するようにしてもよく、より高い時刻変換精度を得ることができる。
First, the time difference
次に、時差履歴記録部16Aは、相手時刻情報Diを取得すると同時に、時計部11から基準マスタ時刻TMsを示す基準時刻情報Dsを取得し(ステップ101)、これらDiとDsとの時差ΔTiを計算する(ステップ102)。
この後、時差履歴記録部16Aは、前述の図2に示したように、相手装置iを示す相手ID、Di、Ds、および時差ΔTiの組からなる時差履歴データHiを生成して、時差履歴DB14に記録し(ステップ103)、一連の処理を終了する。
Next, the time difference
After that, as shown in FIG. 2 described above, the time difference
[時差変化度合計算動作]
次に、図4を参照して、情報処理装置10の時差変化度合計算動作について説明する。図4は、時差変化度合計算処理を示すフローチャートである。
情報処理装置10の時差変化度合計算部16Bは、例えば予め設定された周期で図4の時差変化度合計算処理を実行することにより、各相手装置50に関する時差変化度合を計算して、その関数パラメータを記憶部12へ保存する。
[Time difference change calculation operation]
Next, the time difference change degree calculation operation of the
The time difference change
まず、時差変化度合計算部16Bは、処理対象となる相手装置i(50)に関する時差履歴データHiを時差履歴DB14から取得し(ステップ110)、これら時差履歴データHiから、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差変化度合Fi(t)を計算する(ステップ111)。
First, the time difference change
図5は、時差変化度合を示す説明図である。相手装置iの相手マスタ時刻TMiを計時するための相手クロック信号と、時計部11の基準マスタ時刻TMsを計時するための基準クロック信号とのクロック周期が等しい場合、時間経過してもTMiとTMsの時差ΔTiは変化しない。一方、相手クロック信号と基準クロック信号とのクロック周期がずれている場合、図5に示すように、時間経過してもTMiとTMsのΔTiが徐々に変化する。
FIG. 5 is an explanatory view showing the time difference change degree. If the clock cycle of the partner clock signal for clocking the partner master time TMi of the partner device i and the reference clock signal for clocking the reference master clock time TMs of the
相手クロック信号のクロック周期が一定である場合、基準クロック信号のクロック周期も一定であるとすると、ΔTiは、図5に示すように時間経過とともに線形的に増減する。したがって、少なくとも2つの異なる時刻ti,t2にΔTi(t1),ΔTi(t2)が得られれば、線形近似関数で表される時差変化度合Fi(t)を計算できる。これにより、Fi(t)から任意の時刻txにおけるΔTi(tx)を推定できる。 Assuming that the clock cycle of the other clock signal is constant, assuming that the clock cycle of the reference clock signal is also constant, ΔTi linearly increases or decreases with time as shown in FIG. Therefore, if ΔTi (t1) and ΔTi (t2) are obtained at at least two different times ti and t2, the time difference change degree Fi (t) represented by the linear approximation function can be calculated. Thereby, ΔTi (tx) at an arbitrary time tx can be estimated from Fi (t).
この際、t1,t2として相手マスタ時刻TMi(t1),TMi(t2)を用いれば、相手マスタ時刻TMiに関するΔTi(t)を求めるための時差変化度合Fis(t)を計算することができる。これにより、基準マスタ時刻TMs(tx)は、次の式(1)に基づき算出される。
TMs(tx)=TMi(tx)+Fis(tx) …(1)
これにより、相手装置iから取得した処理データに含まれるDiをDsに変換する際、式(1)に基づき容易に変換できる。
Under the present circumstances, if other party master time TMi (t1) and TMi (t2) are used as t1 and t2, the time difference change degree Fis (t) for calculating (DELTA) Ti (t) regarding the other party master time TMi can be calculated. Thereby, reference | standard master time TMs (tx) is calculated based on following Formula (1).
TMs (tx) = TMi (tx) + Fis (tx) (1)
Thereby, when Di included in the processing data acquired from the partner apparatus i is converted to Ds, conversion can be easily performed based on Expression (1).
この際、t1,t2として基準マスタ時刻TMs(t1),TMs(t2)を用いれば、基準マスタ時刻TMsに関するΔTS(t)を求めるための時差変化度合Fsi(t)を計算することができる。これにより、相手マスタ時刻TMi(tx)は、次の式(2)に基づき算出される。
TMi(tx)=TMs(tx)+Fsi(tx) …(2)
これにより、アプリケーションDB15に保存されている処理データに含まれるDsをDiに変換する際、式(2)に基づき容易に変換できる。
Under the present circumstances, if reference master time TMs (t1) and TMs (t2) are used as t1 and t2, the time difference change degree Fsi (t) for calculating (DELTA) TS (t) regarding reference master time TMs can be calculated. Thereby, the other party master time TMi (tx) is calculated based on the following equation (2).
TMi (tx) = TMs (tx) + Fsi (tx) (2)
Thereby, when converting Ds included in the processing data stored in the
このようにして、時差変化度合Fi(t)を計算した後、時差変化度合計算部16Bは、Fi(t)を示す関数パラメータPiを記憶部12に保存し(ステップ112)、一連の処理を終了する。
したがって、Fi(t)が線形近似関数Fi(t)=a×t+bで表される場合、Fi(t)の傾きaと切片bが関数パラメータPiとして記憶部12に保存される。なお、Fi(t)が非線形近似関数で表される場合、近似に用いられる関数に応じて、それぞれの関数パラメータPiを保存すればよい。
Thus, after calculating the time difference change degree Fi (t), the time difference change
Therefore, when Fi (t) is expressed by the linear approximation function Fi (t) = a × t + b, the gradient a and the intercept b of Fi (t) are stored in the
なお、以上では、時差変化度合を近似関数で表した場合を例として説明したが、これに限定されるものではない。例えば、単位時間当たりに変化する時差の変化量、すなわち図5のFi(t)の傾きで時差変化度合を表してもよい。これにより、例えば、図5の例では、TMiをTMsに変換する際、最新の時差履歴データに含まれる時刻TMs(t2)を、最新の時差履歴データが得られた時点t2から変換時点txまでの経過時間tx−t2と時差変化度合aとの乗算結果で補正すれば、TMi(tx)に相当するTMs(tx)が求められる。 In the above, although the case where the time difference change degree is represented by the approximation function has been described as an example, the present invention is not limited to this. For example, the amount of change in time difference may be expressed by the amount of change in time difference that changes per unit time, that is, the slope of Fi (t) in FIG. Thus, for example, in the example of FIG. 5, when converting TMi to TMs, time TMs (t2) included in the latest time difference history data from time t2 when the latest time difference history data is obtained to conversion time tx By correcting the multiplication result of the elapsed time tx−t2 and the time difference change degree a, TMs (tx) corresponding to TMi (tx) can be obtained.
[時刻変換動作]
次に、図6を参照して、情報処理装置10の時刻変換動作について説明する。図6は、時刻変換処理を示すフローチャートである。
情報処理装置10の時刻変換部16Cは、アプリケーション処理部16Dと連携して、図6の時刻変換処理を実行する。ここでは、処理対象となる相手装置i(50)に関する時差変化度合Fi(t)を示す関数パラメータPiが、予め記憶部12に保存されているものとする。
[Time conversion operation]
Next, the time conversion operation of the
The
まず、時刻変換部16Cは、入力された時刻変換の対象となる処理データDTiが、相手装置iから取得した取得データであるか確認する(ステップ120)。
ここで、DTiが取得データである場合(ステップ120:YES)、時刻変換部16Cは、相手装置iに関する最新の時差変化度合Fi(t)として、記憶部12から関数パラメータPiを取得する(ステップ121)
First, the
Here, when DTi is acquired data (step 120: YES), the
次に、時刻変換部16Cは、Piに基づいてDiをDsに変換し(ステップ122)、Piにより特定される時差変化度合Fi(t)に基づいて、DTiに含まれているDiをDsに置換する(ステップ123)。
この後、時刻変換後のDTiは、アプリケーション処理部16DによりアプリケーションDB15に保存され(ステップ124)、一連の処理が終了する。
Next, the
Thereafter, the DTi after time conversion is stored in the
また、ステップ120において、入力された時刻変換の対象となる処理データDTiが取得データでない場合(ステップ120:YES)、時刻変換部16Cは、DTiが相手装置iへ通知する通知データであるか確認し(ステップ130)、DTiが通知データでない場合(ステップ130:NO)、一連の処理を終了する。
一方、DTiが通知データである場合(ステップ130:YES)、時刻変換部16Cは、相手装置iに関する最新の時差変化度合Fi(t)として、記憶部12から関数パラメータPiを取得する(ステップ131)。
In addition, in
On the other hand, when DTi is notification data (step 130: YES), the
次に、時刻変換部16Cは、Piにより特定される時差変化度合Fi(t)に基づいて、DsをDiに変換し(ステップ132)、DTiに含まれているDsをDiに置換する(ステップ133)。
この後、時刻変換後のDTiは、網I/F部13から通信ネットワークNWを介して相手装置iへ通知され(ステップ134)、一連の処理が終了する。
Next, the
Thereafter, the DTi after time conversion is notified from the network I /
[第1の実施の形態の効果]
このように、本実施の形態は、時計部11が基準マスタ時刻TMsを計時し、時差履歴記録部16Aが、通信ネットワークNWを介して接続された相手装置iから、相手装置iで計時した相手マスタ時刻TMiを示す相手時刻情報Diを取得して、時計部11の基準マスタ時刻TMsを示す基準時刻情報Dsとの時差を計算し、得られた時差の変化を示す時差履歴データHiを時差履歴DB14に記録するようにしたものである。
[Effect of First Embodiment]
As described above, according to this embodiment, the
これに加えて、時差変化度合計算部16Bが、時差履歴DB14から取得した相手装置iに関する時差履歴データHiに基づいて、相手装置iに関する相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の時差変化度合Fiを計算し、時刻変換部16Cが、時差変化度合計算部16Bで得られた時差変化度合Fiに基づいて、相手装置iの相手マスタ時刻TMiに基づく相手時刻情報Diと、基準マスタ時刻TMsに基づく基準時刻情報Dsとを変換するようにしたものである。
In addition to this, based on the time difference history data Hi of the other device i acquired by the time difference change
これにより、相手装置iの相手クロック信号と時計部11の基準クロック信号とのクロック周期がずれていて、時間経過とともに時差が変化するような場合であっても、相手装置iの相手マスタ時刻TMiに基づく相手時刻情報Diと、基準マスタ時刻TMsに基づく基準時刻情報Dsとを、精度よく変換することが可能となる。
As a result, even if the clock cycle of the other party clock signal of the other party device i and the reference clock signal of the
したがって、相手装置iから取得した取得データが示す事象と、アプリケーション処理部16D側の処理データが示す事象とを比較しても、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。また、任意の標準時刻との時刻同期を行う構成を備えていない相手装置iや、常時運転中のプロセスオートメーションシステムのため任意の標準時刻との時刻同期を行えない相手装置iであっても、これら相手装置iから取得した取得データが示す事象について、上記と同様にして、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。
Therefore, even if the events indicated by the acquired data acquired from the other device i are compared with the events indicated by the processing data on the
また、本実施の形態において、時刻変換部16Cが、相手装置iから通知された処理データに、相手マスタ時刻TMiに基づく相手時刻情報Diが含まれている場合、当該相手装置iの時差変化度合Fiに基づいて、相手時刻情報Diを基準マスタ時刻TMsに基づく基準時刻情報Dsに変換するようにしてもよい。
また、本実施の形態において、時刻変換部16Cが、相手装置iへ通知する処理データに、基準マスタ時刻TMsに基づく基準時刻情報Dsが含まれている場合、当該相手装置iの時差変化度合Fiに基づいて、基準時刻情報Dsを相手マスタ時刻TMiに基づく相手時刻情報Diに変換するようにしてもよい。
In the present embodiment, when
Further, in the present embodiment, when the processing data notified to the other device i by the
これにより、相手装置iから取得した取得データDTiは、内部の相手時刻情報Diが自動的に基準時刻情報Dsに変換された後、アプリケーションDB15に保存され、相手装置iに通知する通知データDTiは、内部の基準時刻情報Dsが自動的に相手時刻情報Diに変換されて通知される。このため、アプリケーション処理部16Dは、アプリケーション処理ごとに、各相手装置iとの時差を考慮する必要がなくなるため、処理負担を大幅に軽減できる。
As a result, the acquired data DTi acquired from the counterpart device i is stored in the
また、本実施の形態において、時差変化度合計算部16Bが、相手マスタ時刻TMiと基準マスタ時刻TMsとの新たな時差変化度合Fiを定期的に計算して記憶部12に保存し、時刻変換部16Cが、相手時刻情報Diと基準時刻情報Dsとを変換する際、記憶部12から取得した、TMiと基準マスタ時刻TMsとの最新の時差変化度合Fiに基づいて変換するようにしてもよい。これにより、時差変化度合の計算に要する処理負担を削減することができる。
Further, in the present embodiment, the time difference change
また、実施の形態において、時刻変換部16Cが、相手時刻情報Diと基準時刻情報Dsとを変換する際、時差変化度合計算部16BでTMiと基準マスタ時刻TMsとの時差変化度合Fiを新たに計算し、得られた最新の時差変化度合Fiに基づいて変換するようにしてもよい。これにより、極めて高い精度で相手時刻情報Diと基準時刻情報Dsとを変換することができる。
In the embodiment, when the
[第2の実施の形態]
次に、図7を参照して、本発明の第2の実施の形態にかかるクラウドサーバ20について説明する。図7は、クラウド基盤の構成例である。
クラウド基盤CBは、VPN、専用線網、インターネットなどの通信ネットワークNWを介して、クラウドサービスを利用する各顧客が用いる相手装置50(51,52,…,5N:Nは1以上の整数)との間で、各種のアプリケーション処理に用いる処理データをやり取りすることにより、各種のクラウドサービスを相手装置50に提供する機能を有している。
Second Embodiment
Next, a
The cloud base CB is a partner device 50 (51, 52,..., 5N: N is an integer of 1 or more) used by each customer using a cloud service via a communication network NW such as VPN, dedicated line network, or the Internet. Among the above, it has a function of providing various types of cloud services to the
相手装置50の具体例としては、PC、サーバ、携帯情報端末などの情報処理装置(コンピュータ)があり、それぞれの相手クロック信号に基づき相手マスタ時刻TMi(i=1,2,…,N)を計時する機能を有している。
Specific examples of the
時刻管理サーバ30は、1つの物理サーバから構成されて、クラウド基盤CBの各クラウドサーバ20で用いる基準マスタ時刻TMsを計時する機能を有している。時刻管理サーバ30は、一般的な公知の時計回路を備え、基準クロック信号に基づいて基準マスタ時刻TMsを計時する機能を有している。本実施の形態にかかる基準マスタ時刻TMsは、一般的には、協定世界時(UTC:Universal Time Coordinated)や日本標準時(JST:Japan Standard Time)などの標準時と同期しているが、これに限定されるものではなく、これら標準時と同期している必要はない。
The
共通DB31は、1つの物理サーバから構成されて、通信回線Lを介して各クラウドサーバ20と接続されて、各クラウドサーバ20からの処理データを共通して保存する機能を有している。
The
クラウドサーバ20は、1つまたは複数の物理サーバから構成された仮想サーバであり、通信回線Lを介して時刻管理サーバ30から取得した基準マスタ時刻TMsに基づく基準時刻情報Dsに基づいて各種のアプリケーション処理を実行することにより、予め対応付けられている1つまたは複数の相手装置50に対して、予め設定されているクラウドサービスを提供する機能を有している。
The
[クラウドサーバ]
次に、図8を参照して、本実施の形態にかかるクラウドサーバ20の構成について説明する。図8は、第2の実施の形態にかかるクラウドサーバの構成を示すブロック図である。
図8に示すように、クラウドサーバ20は、主な機能部として、通信I/F部21、記憶部22、網I/F部23、時差履歴DB24、アプリケーションDB25、および演算処理部26を備えている。
[Cloud server]
Next, the configuration of the
As shown in FIG. 8, the
第1の実施の形態にかかる情報処理装置10と比較して、時計部11が時刻管理サーバ30に相当している。このため、クラウドサーバ20には、時計部11に代えて通信I/F部21が設けられている。その他構成については、情報処理装置10と同様である。すなわち、情報処理装置10の記憶部12、網I/F部13、時差履歴DB14、アプリケーションDB15、および演算処理部16が、クラウドサーバ20の記憶部22、網I/F部23、時差履歴DB24、アプリケーションDB25、および演算処理部26に相当している。
The
また、演算処理部16の時差履歴記録部16A、時差変化度合計算部16B、時刻変換部16C、およびアプリケーション処理部16Dが、後述する演算処理部26の時差履歴記録部26A、時差変化度合計算部26B、時刻変換部26C、およびアプリケーション処理部26Dに相当している。
Further, the time difference
通信I/F部21は、通信回線Lを介して時刻管理サーバ30との間でデータ通信を行う機能を有している。
記憶部22は、ハードディスクや半導体メモリなどの記憶装置からなり、演算処理部16での各種処理に用いるデータやプログラムを記憶する機能を有している。
網I/F部23は、通信ネットワークNWを介して相手装置50との間でデータ通信を行う機能を有している。
The communication I /
The
The network I /
時差履歴DB24は、ハードディスクや半導体メモリなどの記憶装置からなり、各相手装置50で計時した相手マスタ時刻TMiと情報処理装置10で計時した基準マスタ時刻TMsとの時刻差の変化を示す時差履歴データを記憶するデータベースである。
時差履歴DB24の構成例は、前述した図2と同様であり、ここでの詳細な説明は省略する。
The time
The example of composition of time difference history DB24 is the same as that of Drawing 2 mentioned above, and detailed explanation here is omitted.
アプリケーションDB25は、ハードディスクや半導体メモリなどの記憶装置からなり、相手装置50から取得した取得データや相手装置50へ提供する提供データなど、相手装置50が利用するアプリケーション処理で用いる各種処理データを記憶するデータベースである。
The
演算処理部26は、CPUとその周辺回路を備え、記憶部22からプログラムを読み出してCPUで実行することにより、ハードウェアとソフトウェアとを協働させて、各種の処理部を実現する機能を有している。
演算処理部26で実現される主な処理部として、時差履歴記録部26A、時差変化度合計算部26B、時刻変換部26C、およびアプリケーション処理部26Dがある。
The
As main processing units realized by the
時差履歴記録部26Aは、網I/F部23および通信ネットワークNWを介して接続される各相手装置50から、相手装置50で計時した相手マスタ時刻TMiを示す相手時刻情報Diを取得して、通信I/F部21および通信回線Lを介して時刻管理サーバ30から取得した、基準マスタ時刻TMsを示す基準時刻情報Dsとの時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DB24に記録する機能を有している。
The time difference
相手時刻情報Diについては、時差履歴記録部26Aから送信した要求メッセージに応じて相手装置iから返送されたものを用いてもよく、相手装置iから周期的に通知されたものを用いてもよい。また、相手装置i側で、例えば定期修理などのタイミングで、相手マスタ時刻TMiを変更した場合には、それに合わせて新たな相手時刻情報Diをクラウドサーバ20へ通知するようにしてもよく、より高い時刻変換精度を得ることができる。
As the other time information Di, the one returned from the other device i according to the request message sent from the time difference
時差変化度合計算部26Bは、時差履歴DB24から取得した、推定対象となる相手装置50に関する時差履歴データに基づいて、相手装置50に関する相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の時差変化度合を計算する機能を有している。
The time difference change
この際、時差変化度合計算部26Bは、推定対象となる相手装置50に関する複数の時差履歴データに基づいて、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の変化を示す、線形あるいは非線形の近似関数を、時差変化度合として計算するようにしてもよい。近似関数を求める手法については、公知の手法を用いればよい。
At this time, the time difference change
時刻変換部26Cは、時差変化度合計算部26Bで得られた時差変化度合に基づいて、変換対象となる相手装置50の相手マスタ時刻TMiに基づく時刻情報と、基準マスタ時刻TMsに基づく基準時刻情報とを変換する機能を有している。
The
具体的には、時刻変換部26Cは、相手装置50から通知された処理データに、相手マスタ時刻TMiに基づく相手時刻情報が含まれている場合、当該相手装置50の時差変化度合に基づいて、相手時刻情報を基準マスタ時刻TMsに基づく基準時刻情報に変換する機能と、相手装置50へ通知する処理データに、基準マスタ時刻TMsに基づく基準時刻情報が含まれている場合、当該相手装置50の時差変化度合に基づいて、基準時刻情報を相手マスタ時刻TMiに基づく相手時刻情報に変換する機能とを有している。
Specifically, when the processing data notified from the
時刻変換部26Cで相手時刻情報と基準時刻情報とを変換する際、時差変化度合計算部26Bが、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の新たな時差変化度合を定期的に計算して記憶部22に保存しておき、時刻変換部26Cが、相手時刻情報と基準時刻情報とを変換する際、記憶部22から取得した、相手マスタ時刻TMiと基準マスタ時刻TMsとの最新の時差変化度合に基づいて、相手時刻情報と基準時刻情報とを変換するようにしてもよい。
When the
また、時刻変換部26Cで相手時刻情報と基準時刻情報とを変換する際、時差変化度合計算部26Bが、相手マスタ時刻TMiと基準マスタ時刻TMsとの時差変化度合を新たに計算し、得られた最新の時差変化度合に基づいて時刻変換部26Cが相手時刻情報と基準時刻情報とを変換するようにしてもよい。
Further, when converting the partner time information and the reference time information in the
アプリケーション処理部26Dは、通信ネットワークNWおよび網I/F部23を介して、相手装置50から通知された処理データをアプリケーションDB25や共通DB31に保存する機能と、アプリケーションDB25や共通DB31に保存されている処理データを読み出して、指定されたアプリケーション処理を実行し、アプリケーション処理で得られた処理データをアプリケーションDB25や共通DB31に保存する機能と、アプリケーションDB25や共通DB31に保存されている処理データを、網I/F部23および通信ネットワークNWを介して相手装置50へ通知する機能とを有している。
The
この際、アプリケーション処理部26Dにより、相手装置50から通知された処理データをアプリケーションDB25や共通DB31に保存する際、時刻変換部26Cで、相手時刻情報が基準時刻情報に変換された後の処理データが保存されることになる。また、アプリケーションDB25や共通DB31に保存されている処理データを相手装置50へ通知する際、時刻変換部26Cで、基準時刻情報相が手時刻情報に変換された後の処理データが通知されることになる。
At this time, when processing data notified from the
[第2の実施の形態の動作]
次に、本実施の形態にかかるクラウドサーバ20の動作について説明する。クラウドサーバ20の主な動作としては、時差履歴記録動作、時差変化度合計算動作、および時刻変換動作がある。これら動作のそれぞれについては、情報処理装置10の時差履歴記録動作(図3参照)、時差変化度合計算動作(図4参照)、および時刻変換動作(図6参照)と同様であり、ここでの詳細な説明は省略する。なお、これら動作のうち、基準時刻情報を取得する場合、クラウドサーバ20は、通信I/F部21および通信回線Lを介して時刻管理サーバ30から基準時刻情報を取得する。
[Operation of Second Embodiment]
Next, the operation of the
[第2の実施の形態の効果]
このように、本実施の形態は、時刻管理サーバ30が基準マスタ時刻TMsを計時し、時差履歴記録部26Aが、通信ネットワークNWを介して接続された相手装置iから、相手装置iで計時した相手マスタ時刻TMiを示す相手時刻情報Diを取得して、時刻管理サーバ30から取得した基準マスタ時刻TMsを示す基準時刻情報Dsとの時差を計算し、得られた時差の変化を示す時差履歴データHiを時差履歴DB24に記録するようにしたものである。
[Effect of Second Embodiment]
As described above, in this embodiment, the
これに加えて、時差変化度合計算部26Bが、時差履歴DB24から取得した相手装置iに関する時差履歴データHiに基づいて、相手装置iに関する相手マスタ時刻TMiと基準マスタ時刻TMsとの時差の時差変化度合Fiを計算し、時刻変換部26Cが、時差変化度合計算部26Bで得られた時差変化度合Fiに基づいて、相手装置iの相手マスタ時刻TMiに基づく相手時刻情報Diと、基準マスタ時刻TMsに基づく基準時刻情報Dsとを変換するようにしたものである。
In addition to this, based on the time difference history data Hi related to the other device i acquired by the time difference change
これにより、クラウド基盤CBを構成するクラウドサーバ20であっても、前述した情報処理装置10と同様に、相手装置iの相手クロック信号と時刻管理サーバ30の基準クロック信号とのクロック周期がずれていて、時間経過とともに時差が変化するような場合であっても、相手装置iの相手マスタ時刻TMiに基づく相手時刻情報Diと、基準マスタ時刻TMsに基づく基準時刻情報Dsとを、精度よく変換することが可能となる。
Thereby, even in the
したがって、相手装置iから取得した取得データが示す事象と、アプリケーション処理部26D側の処理データが示す事象とを比較しても、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。また、任意の標準時刻との時刻同期を行う構成を備えていない相手装置iや、常時運転中のプロセスオートメーションシステムのため任意の標準時刻との時刻同期を行えない相手装置iであっても、これら相手装置iから取得した取得データが示す事象について、上記と同様にして、これら事象の発生順序を正しく認識することができ、これら事象を正確に解析することができる。
Therefore, even if the events indicated by the acquired data acquired from the other device i are compared with the events indicated by the processing data on the
[実施の形態の拡張]
以上、実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解しうる様々な変更をすることができる。また、各実施形態については、矛盾しない範囲で任意に組み合わせて実施することができる。
[Extension of the embodiment]
As mentioned above, although this invention was demonstrated with reference to embodiment, this invention is not limited to the said embodiment. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. Moreover, about each embodiment, it can combine arbitrarily and can be implemented in the not conflicting range.
10…情報処理装置、11…時計部、12…記憶部、13…網I/F部、14…時差履歴DB、15…アプリケーションDB、16…演算処理部、16A…時差履歴記録部、16B…時差変化度合計算部、16C…時刻変換部、16D…アプリケーション処理部、20…クラウドサーバ、21…通信I/F部、22…記憶部、23…網I/F部、24…時差履歴DB、25…アプリケーションDB、26…演算処理部、26A…時差履歴記録部、26B…時差変化度合計算部、26C…時刻変換部、26D…アプリケーション処理部、30…時刻管理サーバ、31…共通DB、50,51,52,5N…相手装置、CB…クラウド基盤、NW…通信ネットワーク、L…通信回線、TMs…基準マスタ時刻、TM1,TM2,TMi,TMN…相手マスタ時刻、Ds…基準時刻情報、Di…相手時刻情報、Hi…時差履歴データ、Fi…時差変化度合、Pi…関数パラメータ、DTi…処理データ。
DESCRIPTION OF
Claims (7)
通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時計部の前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録するように構成された時差履歴記録部と、
前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算するように構成された時差変化度合計算部と、
前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換するように構成された時刻変換部と
を備えることを特徴とする情報処理装置。 A clock unit configured to clock a reference master time;
Acquires the other party time information indicating the other party master time clocked by the other party device from the other party device connected via the communication network, and calculates the time difference from the reference time information indicating the reference master time of the clock unit. A time difference history recording unit configured to record time difference history data indicating a change in the obtained time difference in the time difference history DB;
Time difference change degree calculation configured to calculate a time difference change degree of time difference between the other device master time and the reference master time for the other device based on the time difference history data on the other device acquired from the time difference history DB Department,
It is configured to convert partner time information based on the partner master time of the partner apparatus and reference time information based on the reference master time based on the time difference change degree obtained by the time difference change degree calculation unit. An information processing apparatus comprising: a time converter.
前記時刻変換部は、前記相手装置から通知された処理データに、前記相手マスタ時刻に基づく相手時刻情報が含まれている場合、当該相手装置の時差変化度合に基づいて、前記相手時刻情報を前記基準マスタ時刻に基づく基準時刻情報に変換することを特徴とする情報処理装置。 In the information processing apparatus according to claim 1,
When the processing data notified from the partner apparatus includes partner time information based on the partner master time, the time conversion unit is configured to use the partner time information based on a time difference change degree of the partner apparatus. An information processing apparatus characterized by converting it into reference time information based on a reference master time.
前記時刻変換部は、前記相手装置へ通知する処理データに、前記基準マスタ時刻に基づく基準時刻情報が含まれている場合、当該相手装置の時差変化度合に基づいて、前記基準時刻情報を前記相手マスタ時刻に基づく相手時刻情報に変換することを特徴とする情報処理装置。 In the information processing apparatus according to claim 1,
When the processing data to be notified to the other device includes the reference time information based on the reference master time, the time conversion unit determines the reference time information as the other based on the time difference change degree of the other device. An information processing apparatus characterized by converting into other party time information based on a master time.
前記時差変化度合計算部は、前記相手マスタ時刻と前記基準マスタ時刻との新たな時差変化度合を定期的に計算して記憶部に保存し、
前記時刻変換部は、前記相手時刻情報と前記基準時刻情報とを変換する際、前記記憶部から取得した、前記相手マスタ時刻と前記基準マスタ時刻との最新の時差変化度合に基づいて変換する
ことを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 3.
The time difference change degree calculation unit periodically calculates a new time difference change degree between the counterpart master time and the reference master time, and stores the new time difference change degree in the storage unit.
The time conversion unit converts the other party time information and the reference time information based on the latest time difference change degree between the other party master time and the reference master time acquired from the storage unit. An information processing apparatus characterized by
前記時刻変換部は、前記相手時刻情報と前記基準時刻情報とを変換する際、前記時差変化度合計算部で前記相手マスタ時刻と前記基準マスタ時刻との時差変化度合を新たに計算し、得られた最新の時差変化度合に基づいて変換することを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 3.
When the time conversion unit converts the partner time information and the reference time information, the time difference change degree calculation unit newly calculates and obtains a time difference change degree between the partner master time and the reference master time. An information processing apparatus characterized by converting based on the latest time difference change degree.
通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時刻管理サーバから取得した前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録するように構成された時差履歴記録部と、
前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算するように構成された時差変化度合計算部と、
前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換するように構成された時刻変換部と
を備えることを特徴とするクラウドサーバ。 Cloud comprising a time management server for clocking a reference master time, and a plurality of cloud servers for executing various application processing based on reference time information based on the reference master time acquired from the time management server via a communication line The cloud server used in the infrastructure,
The time difference with the reference time information indicating the reference master time acquired from the time management server by acquiring the partner time information indicating the other party master time counted by the other apparatus from the partner apparatus connected via the communication network And a time difference history recording unit configured to record time difference history data indicating changes in the obtained time difference in the time difference history DB;
Time difference change degree calculation configured to calculate a time difference change degree of time difference between the other device master time and the reference master time for the other device based on the time difference history data on the other device acquired from the time difference history DB Department,
It is configured to convert partner time information based on the partner master time of the partner apparatus and reference time information based on the reference master time based on the time difference change degree obtained by the time difference change degree calculation unit. And a time conversion unit.
時計部が、基準マスタ時刻を計時する計時ステップと、
時差履歴記録部が、通信ネットワークを介して接続された相手装置から、前記相手装置で計時した相手マスタ時刻を示す相手時刻情報を取得して、前記時計部の前記基準マスタ時刻を示す基準時刻情報との時差を計算し、得られた時差の変化を示す時差履歴データを時差履歴DBに記録する時差記録ステップと、
時差変化度合計算部が、前記時差履歴DBから取得した前記相手装置に関する時差履歴データに基づいて、前記相手装置に関する前記相手マスタ時刻と前記基準マスタ時刻との時差の時差変化度合を計算する時差推定ステップと、
時刻変換部が、前記時差変化度合計算部で得られた時差変化度合に基づいて、前記相手装置の前記相手マスタ時刻に基づく相手時刻情報と、前記基準マスタ時刻に基づく基準時刻情報とを変換する時刻変換ステップと
を備えることを特徴とする時刻情報変換方法。 A time information conversion method used in an information processing apparatus connected to a partner apparatus via a communication network, comprising:
A clocking step in which a clock unit clocks a reference master time;
The time difference history recording unit acquires, from the partner apparatus connected via the communication network, partner time information indicating the partner master time clocked by the partner apparatus, and reference time information indicating the reference master time of the clock unit. Calculating a time difference between the time difference and the time difference recording step and recording time difference history data indicating a change in the obtained time difference in the time difference history DB;
Time difference estimation in which the time difference change degree calculation unit calculates the time difference change degree of the time difference between the other party master time and the reference master time for the other device based on the time difference history data regarding the other device acquired from the time difference history DB Step and
A time conversion unit converts, based on the time difference change degree obtained by the time difference change degree calculation unit, partner time information based on the partner master time of the partner device and reference time information based on the reference master time. And a time conversion step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017232446A JP2019101793A (en) | 2017-12-04 | 2017-12-04 | Information processing device, cloud server, and time information conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017232446A JP2019101793A (en) | 2017-12-04 | 2017-12-04 | Information processing device, cloud server, and time information conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019101793A true JP2019101793A (en) | 2019-06-24 |
Family
ID=66976994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017232446A Pending JP2019101793A (en) | 2017-12-04 | 2017-12-04 | Information processing device, cloud server, and time information conversion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019101793A (en) |
-
2017
- 2017-12-04 JP JP2017232446A patent/JP2019101793A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140258226A1 (en) | Asynchronous transaction management, systems and methods | |
CN111222089B (en) | Data processing method, data processing device, computer equipment and storage medium | |
JPWO2013094032A1 (en) | Information processing apparatus, information processing method, and program | |
US10410152B2 (en) | System and method for automatically and efficiently monitoring software development life cycles | |
US10701213B2 (en) | Dynamically generating an aggregation routine | |
JP2016532219A (en) | Automatic generation of certification documents | |
US10810332B2 (en) | Method, apparatus, and computer program product for simulating client and application interface integration | |
JP2022093593A (en) | Cost estimation system of industrial property right and method thereof | |
US8307120B2 (en) | Resource information managing device, system, method, and program | |
JP6329552B2 (en) | Reference data segmentation from single table to multiple tables | |
CN111857981A (en) | Data processing method and device | |
CN115827646B (en) | Index configuration method and device and electronic equipment | |
JP2019101793A (en) | Information processing device, cloud server, and time information conversion method | |
WO2023016069A1 (en) | Efficient circuit simulation method and apparatus, device, and storage medium | |
CN108897748A (en) | A kind of HBase system monitoring method and HBase system | |
CN112734404B (en) | Iterative man-hour statistical method and device in research and development process and computer equipment | |
KR20240004853A (en) | Information affiliate systems, information processing devices and programs that handle information on greenhouse gas emissions | |
JP6974219B2 (en) | Information processing equipment, cloud server, data processing terminal, and time information conversion method | |
WO2005088474A1 (en) | Service for verifying consistency of replicated data | |
WO2015190080A1 (en) | Associated information generation device, associated information generation method, and recording medium storing associated information generation program | |
CN113722315A (en) | Data generation method and device, electronic equipment and computer readable medium | |
JP5598089B2 (en) | Program, information processing apparatus and information processing method | |
US11023487B2 (en) | Data replication for cloud based in-memory databases | |
CN114365049B (en) | Method, system, and storage medium for rapid modeling using production data | |
CN110910083A (en) | Working hour statistical method, device, equipment and storage medium |