JP2011008629A - System for calculating time lag of computer network - Google Patents

System for calculating time lag of computer network Download PDF

Info

Publication number
JP2011008629A
JP2011008629A JP2009152832A JP2009152832A JP2011008629A JP 2011008629 A JP2011008629 A JP 2011008629A JP 2009152832 A JP2009152832 A JP 2009152832A JP 2009152832 A JP2009152832 A JP 2009152832A JP 2011008629 A JP2011008629 A JP 2011008629A
Authority
JP
Japan
Prior art keywords
time
message
computers
computer
time lag
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
JP2009152832A
Other languages
Japanese (ja)
Inventor
Yukitake Yatsu
如健 矢津
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.)
Nomura Research Institute Ltd
Original Assignee
Nomura Research Institute Ltd
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 Nomura Research Institute Ltd filed Critical Nomura Research Institute Ltd
Priority to JP2009152832A priority Critical patent/JP2011008629A/en
Publication of JP2011008629A publication Critical patent/JP2011008629A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To derive an accurate measurement result by calculating a time lag between computers.SOLUTION: Telegrams exchanged between a pair of adjacent computers are extracted for each pair of adjacent computers, each of the telegrams is classified into a plurality of grids partitioned at fixed time intervals, and a time difference of a minimum time difference telegram with the minimum time difference between transmission time and receiving time of each telegram in each grid unit is identified as a provisional time lag in the grid. Regression analysis is performed on a combination of the provisional time lag and the transmission time of the minimum time difference telegram in each grid to calculate an equation for regulating a relation between transition of time and change in time lag. When a specific time and a type of telegram are designated from a client terminal, a path of the telegram is identified, the time is substituted to the equation of each computer constituting the path to calculate a time lag between computers at the time, and the lags of all the computers constituting the path are integrated to determine an overall time lag of the path.

Description

この発明はコンピュータネットワークの時刻ずれ量算出システムに係り、特に、複数のコンピュータの協調動作によって一連の処理が実行されるシステムの処理性能計測等において、各コンピュータ間のシステム時刻のずれによる影響を排して正確な算出結果を導くのに好適な技術に関する。   The present invention relates to a computer network time lag calculation system, and in particular, eliminates the effects of system time lag between computers when measuring the performance of a system in which a series of processes are executed by the cooperative operation of a plurality of computers. Thus, the present invention relates to a technique suitable for deriving an accurate calculation result.

図6は、ネットワーク接続された複数のコンピュータが協調動作することによって一連の処理が実行されるコンピュータネットワーク20の概要を示すものであり、クライアント端末24から何らかの操作電文が入力されると、コンピュータAのプログラム22aによって必要な処理が実行され、その処理結果である電文XがコンピュータBに送信され、これを受けたコンピュータBのプログラム22bによって必要な処理が実行され、その処理結果である電文YがコンピュータCに送信され、これを受けたコンピュータCのプログラム22cによって必要な処理が実行され、最終的な処理結果である電文Zが外部コンピュータ26に送信される様子が描かれている。   FIG. 6 shows an outline of a computer network 20 in which a series of processing is executed by a plurality of computers connected to the network in cooperation. When an operation message is input from the client terminal 24, the computer A The necessary processing is executed by the program 22a, and the message X as the processing result is transmitted to the computer B. The necessary processing is executed by the program 22b of the computer B that receives the processing, and the message Y as the processing result is obtained. A state is shown in which a necessary process is executed by the program 22c of the computer C, which is transmitted to the computer C, and a message Z as a final processing result is transmitted to the external computer 26.

コンピュータA〜Cにおいては、受信した電文のID及び受信日時、これに対応した送信電文のID及び送信日時等のログデータが、ログデータ記憶部28a〜28cに逐一記録されている。
これに対し性能評価システム30は、各コンピュータのログデータを参照することにより、各コンピュータ間の処理性能を算出する。
例えば、コンピュータCのログデータに記録された電文Zの送信日時から、コンピュータAのログデータに記録された操作電文の受信日時を減算することにより、コンピュータネットワーク20全体の性能を計測可能となる。また、コンピュータBのログデータに記録された電文Yの送信日時から、コンピュータAのログデータに記録された操作電文の受信日時を減算することにより、コンピュータA及びBにおける処理性能を算出可能となる。
In the computers A to C, log data such as received message ID and received date and time, and corresponding transmission message ID and date and time are recorded in the log data storage units 28a to 28c.
On the other hand, the performance evaluation system 30 calculates the processing performance between the computers by referring to the log data of each computer.
For example, the performance of the entire computer network 20 can be measured by subtracting the reception date / time of the operation message recorded in the log data of the computer A from the transmission date / time of the message Z recorded in the log data of the computer C. Further, the processing performance in the computers A and B can be calculated by subtracting the reception date / time of the operation message recorded in the log data of the computer A from the transmission date / time of the message Y recorded in the log data of the computer B. .

しかしながら、この従来の計測方法の場合、異なったコンピュータによって刻印された日時情報を比較することが前提となっているため、各コンピュータのシステム時刻のずれに基づく影響(不正確さ)が算出結果に及ぶという問題があった。
すなわち、各コンピュータはマザーボードに搭載された時計回路からの出力信号に基づいてシステム時刻を得ているのであるが、時計回路を構成する素子の特性にバラツキが存するため、それぞれのシステム時刻にずれが生じることは避けられない。
株式の自動執行システムのように、一連の情報処理がミリ秒単位、マイクロ秒単位で実行される環境下においては、極僅かなずれであっても処理性能の算出結果に大きな影響が生じる結果となる。
However, in the case of this conventional measurement method, since it is premised on comparing date and time information stamped by different computers, the influence (inaccuracy) based on the system time shift of each computer is included in the calculation result. There was a problem of reaching.
In other words, each computer obtains the system time based on the output signal from the clock circuit mounted on the motherboard, but there is a variation in the characteristics of the elements that make up the clock circuit, so there is a shift in the system time. It cannot be avoided.
In an environment where a series of information processing is executed in milliseconds or microseconds, as in the case of an automatic execution system for stocks, even if there is a slight deviation, the calculation result of processing performance will be greatly affected. Become.

もちろん、非特許文献1に示すように、各コンピュータを定期的にタイムサーバにアクセスさせることにより、それぞれのシステム時刻を修正することは行われているが、この場合にも通信環境のバラツキ等に起因し、各コンピュータのシステム時刻を完全に同期させることは困難である。   Of course, as shown in Non-Patent Document 1, each computer is periodically accessed by a time server to correct each system time. However, in this case as well, the communication environment varies. For this reason, it is difficult to completely synchronize the system time of each computer.

また、仮に完全な同期が実現できたとしても一時的なものであり、次の瞬間から各コンピュータの素子のバラツキに起因するずれが生じ始め、時刻の推移に伴って拡大していく。だからといって、タイムサーバを利用した時刻合わせの頻度を極端に高めることは、システム負荷の増大を招くばかりでなく、処理中に基準となる時間軸が頻繁に変動することとなり、同じコンピュータ上に起動している他のプログラムにも影響が及ぶため、採用できない。
NTPサーバー[時刻同期]/Server-ConfigインターネットURL: http://linux.kororo.jp/cont/server/ntp.php検索日:平成21年5月1日
Further, even if perfect synchronization is realized, it is temporary, and a shift due to variations in the elements of each computer starts to occur from the next moment and expands with time. However, extremely increasing the frequency of time adjustment using a time server not only increases the system load, but also causes the reference time axis to fluctuate frequently during processing, so it starts on the same computer. Other programs are also affected, so it cannot be adopted.
NTP server [time synchronization] / Server-Config Internet URL: http://linux.kororo.jp/cont/server/ntp.php Search date: May 1, 2009

この発明は、このような従来の問題を解決するために案出されたものであり、コンピュータネットワークを構成する個々のコンピュータのシステム時刻を同期させるのではなく、各コンピュータ間の時刻ずれ量を算出し、コンピュータネットワークの性能計測等において上記時刻ずれ量を反映させることにより、正確な計測結果を導出可能な技術の提供を企図している。   The present invention has been devised to solve such a conventional problem, and does not synchronize the system time of individual computers constituting a computer network, but calculates the amount of time lag between computers. However, it is intended to provide a technique capable of deriving an accurate measurement result by reflecting the amount of time lag in the performance measurement of a computer network.

上記の目的を達成するため、請求項1に記載したコンピュータネットワークの時刻ずれ量算出システムは、複数のコンピュータが接続され、一のコンピュータに入力された電文が、その種類に応じて他の必要なコンピュータを順々に必要数経由して外部に出力されるコンピュータネットワークの時刻ずれ量算出システムであって、各コンピュータは、電文の処理プログラムと、この処理プログラムによる動作の履歴情報が記録されるログデータ記憶手段とを備えており、上記ログデータ記憶手段には、少なくとも各電文のID、受信時刻及び送信時刻が記録されており、一対のコンピュータ毎に、それぞれのログデータ記憶手段を参照し、相互間で交換された電文を抽出する手段と、各電文の一のコンピュータによる送信時刻または他のコンピュータにおける受信時刻に基づき、一定の時間間隔で区切られた複数のグリッドに各電文を分類する手段と、各グリッド単位で、一のコンピュータからの電文送信と他のコンピュータにおける電文受信とが紐付いている電文を抽出する手段と、抽出した各電文の送信方向をチェックし、何れか一方向の電文のみを選別する手段と、選別された各電文の送信時刻と受信時刻との時間差を算出する手段と、グリッド単位でこの時間差の絶対値が最も小さい電文を特定し、この最小時間差電文の時間差を当該グリッドにおける両コンピュータ間の暫定時刻ずれ量と認定する手段と、各グリッドの暫定時刻ずれ量と当該最小時間差電文の送信時刻または受信時刻との組合せに対して回帰分析を実施し、時刻の推移と時刻ずれ量の変化との関係を規定する方程式を算出し、これを両コンピュータに関連付けて所定の記憶手段に格納する時刻ずれ関係式算出手段と、特定の時刻及び電文の種類が指定された場合に、当該電文の種類に対応した経路を特定する手段と、上記記憶手段を参照し、この電文の経路を構成する各コンピュータに係る方程式を取得する手段と、上記の各方程式に上記時刻を代入して、当該時刻における一対のコンピュータ間の時刻ずれ量を算出する手段と、この一対のコンピュータ間の時刻ずれ量を、上記経路を構成する全コンピュータ分積算して、上記時刻における当該経路全体での時刻ずれ量を算出する手段とを備えたことを特徴としている。この発明は、2台のコンピュータのみを接続したコンピュータネットワークにも適用可能である。この場合、上記「一対のコンピュータ間の時刻ずれ量」と、上記「経路を構成する全コンピュータ分積算」した経路全体での時刻ずれ量とが、結果的に等しくなる。   In order to achieve the above object, the computer network time lag calculation system according to claim 1 is configured such that a plurality of computers are connected, and a message inputted to one computer has other necessary depending on the type. A computer network time lag calculation system that outputs to a computer via a necessary number in order, each computer having a message processing program and a log in which history information of operations by the processing program is recorded The log data storage means, at least ID of each message, reception time and transmission time are recorded, for each pair of computers, refer to the respective log data storage means, Means for extracting messages exchanged between each other, transmission time by one computer of each message, or other compilation A means for classifying each message into a plurality of grids separated by a certain time interval based on the reception time in the data, and a message transmission from one computer and a message reception in another computer are associated with each grid unit. The means for extracting the current message, the transmission direction of each extracted message are checked, the means for selecting only one of the messages in one direction, and the time difference between the transmission time and the reception time of each selected message is calculated. A means for identifying a message having the smallest absolute value of this time difference in units of grids, a means for certifying the time difference of this minimum time difference message as a provisional time lag between both computers in the grid, and a provisional time lag for each grid A regression analysis is performed on the combination of the transmission time or the reception time of the minimum time difference message, and the relationship between the transition of time and the amount of time deviation is specified. A time offset relational expression calculating unit that calculates an equation and associates it with both computers and stores it in a predetermined storage unit, and when a specific time and type of message are specified, a route corresponding to the type of message A means for specifying, a means for obtaining an equation relating to each computer constituting the path of the electronic message with reference to the storage means, and substituting the time for each of the above equations, between a pair of computers at the time Means for calculating the amount of time lag, and means for calculating the amount of time lag between the pair of computers for all the computers constituting the route and calculating the amount of time lag for the entire route at the time. It is characterized by that. The present invention can also be applied to a computer network in which only two computers are connected. In this case, the “time lag amount between a pair of computers” and the time lag amount in the whole route obtained by “integrating all the computers constituting the route” are eventually equalized.

請求項2に記載したコンピュータネットワークの時刻ずれ量算出システムは、請求項1のシステムを前提とし、さらに上記時刻ずれ関係式算出手段が、各グリッドの暫定時刻ずれ量と当該最小時間差電文の送信時刻または受信時刻との組合せに対して回帰分析を実施し、時刻の推移と時刻ずれ量の変化との関係を規定する上記方程式を算出した後、当該方程式に、各グリッドの最小時間差電文の送信時刻または受信時刻を代入し、当該時刻における時刻ずれ量を算出する処理と、この時刻ずれ量と上記の暫定時刻ずれ量との距離を算出する処理と、この距離の大きい順に最小時間差電文を整列させ、上位の所定数または所定比率の最小時間差電文を異例データとして破棄する処理と、残された最小時間差電文の暫定時刻ずれ量とその送信時刻または受信時刻との組合せについて回帰分析を再度実施し、時刻の推移と時刻ずれ量の変化との関係を規定する方程式を算出する処理と、この方程式を両コンピュータに関連付けて上記記憶手段に格納する処理とを実行することを特徴としている。   The time lag calculation system for a computer network according to claim 2 is based on the system of claim 1, and the time lag relational expression calculating means further includes a provisional time lag amount for each grid and a transmission time of the minimum time difference telegram. Alternatively, after performing regression analysis on the combination with the reception time and calculating the above equation defining the relationship between the transition of time and the amount of time lag, the transmission time of the minimum time difference message of each grid is calculated in the equation. Alternatively, the process of substituting the reception time and calculating the time lag amount at the time, the process of calculating the distance between the time lag amount and the provisional time lag amount, and arranging the minimum time difference messages in descending order of the distance. , A process of discarding the uppermost predetermined number or predetermined ratio of the minimum time difference message as exceptional data, the remaining temporary time difference amount of the minimum time difference message and its transmission time Alternatively, the regression analysis is performed again on the combination with the reception time, a process for calculating an equation that defines the relationship between the transition of the time and the change in the time lag, and the equation is stored in the storage means in association with both computers. It is characterized by executing the processing.

請求項1に記載のコンピュータネットワークの時刻ずれ量算出システムによれば、予め時刻の推移と時刻ずれ量の変化との関係を規定する方程式がコンピュータネットワークを構成する一対のコンピュータ毎に算出されており、電文の時刻及び種類が指定されると、自動的に電文の経路を構成するコンピュータが特定され、各コンピュータ間における時刻ずれ量が算出された後、経路全体の時刻ずれ量が算出される仕組みを備えているため、この時刻ずれ量を性能評価値に反映させることにより、各コンピュータのシステム時刻を修正することなく、正確な性能評価が可能となる。   According to the computer network time lag calculation system according to claim 1, an equation that prescribes a relationship between a time transition and a time lag change is calculated in advance for each pair of computers constituting the computer network. When the time and type of a message are specified, the computer that automatically configures the message path is automatically identified, the amount of time deviation between each computer is calculated, and then the amount of time deviation for the entire route is calculated Therefore, by reflecting this time lag amount on the performance evaluation value, it is possible to perform accurate performance evaluation without correcting the system time of each computer.

請求項2に記載のコンピュータネットワークの時刻ずれ量算出システムにあっては、時刻の推移と時刻ずれ量の変化との関係を規定する方程式が、異例データを排除する工程を経て導かれる仕組みを備えているため、最終的に算出される時刻ずれ量の精度を高めることが可能となる。   The time difference calculation system for a computer network according to claim 2, further comprising a mechanism in which an equation defining a relationship between a transition of time and a change in time difference is derived through a process of excluding unusual data. Therefore, it is possible to improve the accuracy of the finally calculated time lag amount.

図1は、この発明に係るコンピュータネットワークの時刻ずれ量算出システム10の全体構成を示すブロック図であり、時刻ずれ関係式算出部12、算出結果記憶部14、性能評価部16を備えた性能評価システム18と、性能評価の対象となるコンピュータネットワーク20とに大別される。   FIG. 1 is a block diagram showing the overall configuration of a time lag calculation system 10 for a computer network according to the present invention, which includes a time lag relational expression calculation unit 12, a calculation result storage unit 14, and a performance evaluation unit 16. The system 18 is broadly divided into a computer network 20 to be subjected to performance evaluation.

時刻ずれ関係式算出部12及び性能評価部16は、コンピュータのCPUが、OS及び専用のアプリケーションプログラムに従って必要な処理を実行することにより実現される。また、算出結果記憶部14は、同コンピュータのハードディスク内に設けられている。   The time lag relational expression calculation unit 12 and the performance evaluation unit 16 are realized by the CPU of the computer executing necessary processes according to the OS and a dedicated application program. The calculation result storage unit 14 is provided in the hard disk of the computer.

コンピュータネットワーク20は、プログラム22aを搭載したコンピュータAと、プログラム22bを搭載したコンピュータBと、プログラム22cを搭載したコンピュータCを備えている。
このコンピュータネットワーク20に対し、クライアント端末24から操作電文αが送信されると、コンピュータAのプログラム22aによって必要な処理が実行され、その処理結果である電文XがコンピュータBに送信され、これを受けたコンピュータBのプログラム22bによって必要な処理が実行され、その処理結果である電文YがコンピュータCに送信され、これを受けたコンピュータCのプログラム22cによって必要な処理が実行され、最終的な処理結果である電文Zが外部コンピュータ26に送信される。
The computer network 20 includes a computer A loaded with a program 22a, a computer B loaded with a program 22b, and a computer C loaded with a program 22c.
When the operation message α is transmitted from the client terminal 24 to the computer network 20, a necessary process is executed by the program 22a of the computer A, and a message X as a result of the process is transmitted to the computer B. Necessary processing is executed by the program B of the computer B, and the message Y as a result of the processing is transmitted to the computer C. Necessary processing is executed by the program 22c of the computer C and receives the final processing result. Is transmitted to the external computer 26.

そして、外部コンピュータ26から処理結果である電文Z'が返信されると、コンピュータCのプログラム22cによって必要な処理が実行され、その処理結果である電文Y'がコンピュータBに送信され、これを受けたコンピュータBのプログラム22bによって必要な処理が実行され、その処理結果である電文X'がコンピュータAに送信され、これを受けたコンピュータAのプログラム22aによって必要な処理が実行され、最終的な処理結果の電文がクライアント端末24に送信される。   When a message Z ′ as a processing result is returned from the external computer 26, a necessary process is executed by the program 22c of the computer C, and a message Y ′ as a processing result is transmitted to the computer B. Necessary processing is executed by the program 22b of the computer B, and the electronic statement X ′ as a result of the processing is transmitted to the computer A. The necessary processing is executed by the program 22a of the computer A and receives the final processing. The resulting message is sent to the client terminal 24.

また、コンピュータA〜Cにおいては、受信した電文のID及び受信日時、これに対応した送信電文のID及び送信日時等のデータが、ログデータ記憶部28a〜28cに逐一記録される。   Further, in the computers A to C, data such as received message IDs and reception dates and times, transmission message IDs and transmission dates corresponding thereto are recorded in the log data storage units 28a to 28c one by one.

説明の便宜上、上記においては3台のコンピュータA〜Cをネットワーク接続させた極めて単純な構成のコンピュータネットワーク20を例示したが、実際のコンピュータネットワークはさらに多くのコンピュータをネットワーク接続させた構成を備えており、各コンピュータ上でも複数のプログラムが起動しているのが普通である。また、電文の伝達経路も複数存在しており、電文の種類やネットワークの負荷状況等に応じて最適な経路がその都度選択される。   For convenience of explanation, in the above description, the computer network 20 having a very simple configuration in which three computers A to C are network-connected is illustrated, but an actual computer network has a configuration in which more computers are network-connected. Usually, a plurality of programs are started on each computer. In addition, there are a plurality of electronic message transmission paths, and an optimal path is selected each time depending on the type of electronic message, the load state of the network, and the like.

以下、図2のフローチャートに従い、時刻ずれ関係式の算出に係る処理手順を説明する。まず時刻ずれ関係式算出部12は、各コンピュータのログデータ記憶部28a〜28cからログデータを取得する(S10)。   Hereinafter, a processing procedure related to the calculation of the time lag relational expression will be described with reference to the flowchart of FIG. First, the time lag relational expression calculation unit 12 acquires log data from the log data storage units 28a to 28c of each computer (S10).

つぎに時刻ずれ関係式算出部12は、取得したログデータの中から、一対の隣接コンピュータ毎に、相互間で交換された全電文を抽出する(S12)。ここで「一対の隣接コンピュータ」としては、「コンピュータAとコンピュータB」、「コンピュータBとコンピュータC」のように、ネットワークを介して直接に電文を交換し合うコンピュータの組合せが該当する。この「隣接コンピュータ」は、例えば定義ファイルによって予め設定されている。あるいは、電文に送信先サーバに関するデータが含まれる場合には、そのデータが指し示す送信先サーバが「隣接コンピュータ」となる。   Next, the time lag relational expression calculating unit 12 extracts all messages exchanged between the pair of adjacent computers from the acquired log data (S12). Here, “a pair of adjacent computers” corresponds to a combination of computers such as “computer A and computer B” and “computer B and computer C” that exchange messages directly via a network. This “adjacent computer” is set in advance by a definition file, for example. Or when the data regarding the transmission destination server is included in the message, the transmission destination server indicated by the data is the “neighboring computer”.

つぎに時刻ずれ関係式算出部12は、一対のコンピュータ間における各電文を、それぞれの送信時刻または受信時刻に基づいて、一定の時間間隔(例えば30分間隔)毎に、複数のグリッドに分類する(S14)。   Next, the time lag relational expression calculation unit 12 classifies each message between the pair of computers into a plurality of grids at certain time intervals (for example, every 30 minutes) based on the respective transmission time or reception time. (S14).

つぎに時刻ずれ関係式算出部12は、各グリッドに含まれる電文の中で、電文送信と電文受信とが紐付いているもの(両者間の対応関係が確認できるもの)を抽出する(S16)。
例えば、図3(a)に示すように、コンピュータAのログデータ中に電文Xの送信時刻の記録が存在し、コンピュータBのログデータ中に電文Xの受信時刻の記録が存在した場合、時刻ずれ関係式算出部12は、電文Xを「電文送信と電文受信とが紐付いているもの」として抽出する。なお、コンピュータAのログデータ中の「電文X」と、コンピュータBのログデータ中の「電文X」との同一性は、各電文に付与されているユニークな電文ID(IPアドレス+プロセスID+電文識別子等)によって認定される。
同様に、図3(b)に示すように、コンピュータBのログデータ中に電文Yの送信時刻の記録が存在し、コンピュータCのログデータ中に電文Yの受信時刻の記録が存在した場合、時刻ずれ関係式算出部12は、電文Yを「電文送信と電文受信とが紐付いているもの」として抽出する。
Next, the time lag relational expression calculation unit 12 extracts a message in which a message transmission and a message reception are linked (a message in which the correspondence between the two can be confirmed) among the messages included in each grid (S16).
For example, as shown in FIG. 3 (a), when there is a record of the transmission time of the message X in the log data of the computer A, and there is a record of the reception time of the message X in the log data of the computer B, The deviation relational expression calculation unit 12 extracts the message X as “the message transmission and the message reception are linked”. The identity of “message X” in the log data of computer A and “message X” in the log data of computer B is the unique message ID (IP address + process ID + message) assigned to each message. Identifier).
Similarly, as shown in FIG. 3 (b), when there is a record of the transmission time of the message Y in the log data of the computer B, and there is a record of the reception time of the message Y in the log data of the computer C, The time lag relational expression calculating unit 12 extracts the message Y as “the message transmission and the message reception are linked”.

つぎに時刻ずれ関係式算出部12は、抽出した各電文の送信方向をチェックし、一方向の電文のみを分析対象として選別する(S18)。例えば、コンピュータA−B間には「A→B」方向の電文と「A←B」方向の電文がグリッド毎に混在しているが、「A→B」方向の電文のみを分析対象として抽出することが該当する。   Next, the time lag relational expression calculation unit 12 checks the transmission direction of each extracted message, and selects only one direction of messages as an analysis target (S18). For example, between A and B, messages in the direction “A → B” and messages in the direction “A ← B” are mixed for each grid, but only messages in the direction “A → B” are extracted as analysis targets. This is true.

つぎに時刻ずれ関係式算出部12は、各電文の受信時刻から送信時刻を減算することにより、その時間差を算出する(S20)。
図3(a)では、電文Xの時間差として「0.000010(秒)」が求められることが例示されている。また図3(b)では、電文Yの時間差として「0.000001(秒)」が求められることが例示されている。
Next, the time lag relational expression calculation unit 12 calculates the time difference by subtracting the transmission time from the reception time of each message (S20).
FIG. 3A illustrates that “0.000010 (seconds)” is obtained as the time difference of the message X. FIG. 3B illustrates that “0.000001 (seconds)” is obtained as the time difference of the message Y.

つぎに時刻ずれ関係式算出部12は、グリッド単位で上記の時間差の絶対値が最小となる電文(以下「最小時間差電文」)を探索し、その時間差を当該グリッドにおける両コンピュータ間の「暫定時刻ずれ量」と認定する(S22)。
もちろん、電文の容量が一定以上大きい場合には、その伝送自体に時間を要するため、「受信時刻−送信時刻=システム時刻のずれ量」と認定することはできない。しかしながら、本発明の対象とするようなミリ秒・マイクロ秒レベルの計測が必要となるシステムにおいては、一対のコンピュータ間では伝送時間が限りなく0に近くなる小容量の電文が無数にやり取りされていることが多いため、「受信時刻−送信時刻」が最小となる電文の「時間差」を、両コンピュータ間の時刻ずれ量と暫定的に認定している。また、仮に上記のような小容量の電文があまりやり取りされないような場合には、計測用に若干の小容量電文をやり取りするプログラムを並行で稼働させることで、時刻ずれの算出に必要となるデータを揃えることができる。
Next, the time lag relational expression calculation unit 12 searches for a message (hereinafter, “minimum time difference message”) in which the absolute value of the time difference is minimum in grid units, and calculates the time difference between the two computers in the grid as “provisional time”. The amount of displacement is recognized (S22).
Of course, when the capacity of the message is larger than a certain level, it takes time for the transmission itself, so it cannot be recognized that “the reception time−the transmission time = the amount of deviation of the system time”. However, in a system that requires measurement at the millisecond / microsecond level as the object of the present invention, an infinite number of small-capacity messages whose transmission time is almost zero are exchanged between a pair of computers. Since there are many cases, the “time difference” of the message having the smallest “reception time−transmission time” is tentatively recognized as the time lag amount between the two computers. In addition, if the above small-capacity messages are not often exchanged, the data required for calculating the time lag can be obtained by running a program that exchanges some small-capacity messages for measurement in parallel. Can be aligned.

つぎに時刻ずれ関係式算出部12は、(x, y)=(システム時刻, 暫定時刻ずれ量)として、システム時刻と暫定時刻ずれ量の全グリッド分の組合せに基づいて単回帰分析を実行し、システム時刻の推移と時刻ずれ量の変化との関係を規定する1次方程式を導き出す(S24)。
ここで「システム時刻」には、最小時間差電文の送信時刻または受信時刻の何れかが代入される。
Next, the time lag relational expression calculation unit 12 performs a single regression analysis based on a combination of the system time and the tentative time lag amount for all grids as (x, y) = (system time, tentative time lag amount). Then, a linear equation that defines the relationship between the transition of the system time and the change of the time lag is derived (S24).
Here, either the transmission time or the reception time of the minimum time difference message is substituted for “system time”.

つぎに時刻ずれ関係式算出部12は、グリッド毎に暫定時刻ずれ量と上記1次方程式に基づく単回帰線との距離を算出する(S26)。図4は、単回帰線と各グリッドの値(暫定時刻ずれ量)との位置関係を例示するイメージ図である。   Next, the time lag relational expression calculation unit 12 calculates the distance between the provisional time lag amount and the single regression line based on the linear equation for each grid (S26). FIG. 4 is an image diagram illustrating the positional relationship between a single regression line and the value of each grid (provisional time lag amount).

この距離は、具体的には以下の手順で算出される。
(1)上記の1次方程式に、各グリッドの最小時間差電文の送信時刻または受信時刻を代入し、当該時刻における時刻ずれ量を算出する。
(2)この時刻ずれ量から、各グリッドの暫定時刻ずれ量を減算し、その差(絶対値)を求める。
この差が、各グリッドの暫定時刻ずれ量と単回帰線との距離に該当する。
Specifically, this distance is calculated by the following procedure.
(1) The transmission time or reception time of the minimum time difference telegram of each grid is substituted into the above linear equation, and the time lag amount at the time is calculated.
(2) The provisional time lag amount of each grid is subtracted from this time lag amount to obtain the difference (absolute value).
This difference corresponds to the distance between the provisional time shift amount of each grid and the single regression line.

つぎに時刻ずれ関係式算出部12は、上記距離の大きい順に最小時間差電文を整列させ、上位の一定割合(例えば上位5%)の最小時間差電文を異例データとして破棄する(S28)。時刻ずれ関係式算出部12は、上位の一定数(例えば上位5件)の最小時間差電文を、異例データとして破棄することもできる。   Next, the time lag relational expression calculating unit 12 arranges the minimum time difference messages in the descending order of the distance, and discards the minimum time difference messages of a certain upper order (for example, the upper 5%) as exceptional data (S28). The time lag relational expression calculating unit 12 can also discard the uppermost constant (for example, the upper five) minimum time difference telegrams as exceptional data.

つぎに時刻ずれ関係式算出部12は、残された最小時間差電文のシステム時刻(送信時刻または受信時刻)と暫定時刻ずれ量の組合せに基づいて単回帰分析を再度実行し、時刻の推移と時刻ずれ量の変化との関係を規定する1次方程式を導き出す(S30)。
最後に時刻ずれ関係式算出部12は、この1次方程式を両コンピュータに関連付けて算出結果記憶部14に格納する(S32)。
Next, the time lag relational expression calculating unit 12 executes the single regression analysis again based on the combination of the system time (transmission time or reception time) of the remaining minimum time difference telegram and the provisional time lag amount, and the time transition and time A linear equation that defines the relationship with the change in deviation is derived (S30).
Finally, the time lag relational expression calculation unit 12 associates this linear equation with both computers and stores it in the calculation result storage unit 14 (S32).

つぎに、図5のフローチャートに従い、性能評価部16による処理手順を説明する。
まず性能評価部16は、クライアント端末24から性能評価のリクエストを受信すると(S40)、当該性能評価の対象となる電文の経路を特定する(S42)。
例えば、クライアント端末24から「13:01:15.0012に発した特定種類の操作電文αの処理時間」を求めるリクエストがなされた場合、性能評価部16は電文の種類と経路(コンピュータの組合せ)との対応関係を定義した情報を参照し、「コンピュータA→コンピュータB→コンピュータC」を電文の経路として認定する。
Next, a processing procedure by the performance evaluation unit 16 will be described according to the flowchart of FIG.
First, when the performance evaluation unit 16 receives a performance evaluation request from the client terminal 24 (S40), the performance evaluation unit 16 specifies a path of a message to be subjected to the performance evaluation (S42).
For example, when a request for “processing time of a specific type of operation message α issued at 13: 01: 15.0012” is made from the client terminal 24, the performance evaluation unit 16 sets the message type and route (combination of computers). With reference to the information defining the correspondence relationship, “computer A → computer B → computer C” is recognized as a message path.

つぎに性能評価部16は、上記経路に含まれる各コンピュータ間の1次方程式(コンピュータA−B間の1次方程式、コンピュータB−C間の1次方程式)を算出結果記憶部14から取得する(S44)。
つぎに性能評価部16は、コンピュータA〜Cの各ログデータ記憶部28a〜28cを参照し、該当の操作電文αのコンピュータAにおける受信日時、その処理結果である電文XのコンピュータAにおける送信日時、この電文XのコンピュータBにおける受信日時、その処理結果である電文YのコンピュータBにおける送信日時、この電文YのコンピュータCにおける受信日時、その処理結果である電文ZのコンピュータCにおける送信日時を取得する(S46)。
つぎに性能評価部16は、電文Zの送信日時から操作電文αの受信日時を減算することにより、第1の処理時間を算出する(S48)。
Next, the performance evaluation unit 16 acquires a linear equation between the computers included in the path (a linear equation between the computers A and B and a linear equation between the computers B and C) from the calculation result storage unit 14. (S44).
Next, the performance evaluation unit 16 refers to the log data storage units 28a to 28c of the computers A to C, receives the date and time when the corresponding operation message α is received by the computer A, and the transmission date and time of the message X that is the processing result of the computer A. The reception date and time of the message X at the computer B, the transmission date and time of the message Y as the processing result at the computer B, the reception date and time of the message Y at the computer C, and the transmission date and time of the message Z as the processing result at the computer C are acquired. (S46).
Next, the performance evaluation unit 16 calculates the first processing time by subtracting the reception date / time of the operation message α from the transmission date / time of the message Z (S48).

つぎに性能評価部16は、上記経路全体に係る時刻ずれ量を算出する(S50)。
このために性能評価部16は、まずコンピュータA−B間のずれ量を規定した1次方程式に電文Xの受信日時を代入し、当該時刻におけるコンピュータA−B間における時刻ずれ量を算出する。
つぎに性能評価部16は、コンピュータB−C間の時刻ずれ量を規定した1次方程式に電文Yの受信日時を代入し、当該時刻におけるコンピュータB−C間における時刻ずれ量を算出する。
つぎに性能評価部16は、各コンピュータ間における時刻ずれ量を積算し、コンピュータA−C間における時刻ずれ量(=経路全体の時刻ずれ量)を求める。
Next, the performance evaluation unit 16 calculates a time lag amount relating to the entire route (S50).
For this purpose, the performance evaluation unit 16 first substitutes the reception date and time of the message X into a linear equation that defines the amount of deviation between the computers A and B, and calculates the amount of time deviation between the computers A and B at that time.
Next, the performance evaluation unit 16 substitutes the reception date and time of the electronic message Y into a linear equation that defines the amount of time difference between the computers BC, and calculates the amount of time difference between the computers BC at that time.
Next, the performance evaluation unit 16 integrates the time lag amounts between the computers, and obtains the time lag amount between the computers A and C (= time lag amount of the entire route).

つぎに性能評価部16は、上記第1の処理時間から経路全体の時刻ずれ量を減算することにより、第2の処理時間を算出する(S52)。例えば、第1の処理時間が1秒であり、経路全体の時刻ずれ量が+0.1秒であった場合、「1−0.1=0.9」秒が第2の処理時間となる。あるいは、第1の処理時間が1秒であり、経路全体の時刻ずれ量が−0.1秒であった場合、「1−(−0.1)=1.1」秒が第2の処理時間となる。   Next, the performance evaluation unit 16 calculates the second processing time by subtracting the time lag amount of the entire route from the first processing time (S52). For example, when the first processing time is 1 second and the time shift amount of the entire route is +0.1 seconds, “1−0.1 = 0.9” seconds is the second processing time. Alternatively, when the first processing time is 1 second and the time shift amount of the entire route is −0.1 seconds, “1 − (− 0.1) = 1.1” seconds is the second processing time.

この第2の処理時間が、最終的な性能評価の結果としてクライアント端末24に返される(S54)。
この第2の処理時間からは、経路全体の時刻ずれ量が除去されているため、コンピュータネットワーク20の処理性能を極めて正確に表しているものと評価できる。
This second processing time is returned to the client terminal 24 as a result of the final performance evaluation (S54).
From this second processing time, since the time lag amount of the entire route is removed, it can be evaluated that the processing performance of the computer network 20 is expressed very accurately.

上記においては、コンピュータネットワーク20がコンピュータA〜Cの3台によって構成される極めて単純な例を挙げたが、実際のコンピュータネットワークは多数のコンピュータが複雑に絡んだ構成を備えているため、電文の伝達経路が複数想定される場合がある。
この場合、性能評価部16は介在するコンピュータの数が最も少ない経路を対象経路として認定し、時刻ずれ量の算出処理を実行する。また、介在するコンピュータの数が最も少ない経路が複数存在する場合、性能評価部16は一定のルールに従って一の経路を選定する。
In the above, a very simple example in which the computer network 20 is composed of three computers A to C has been given. However, since an actual computer network has a configuration in which a large number of computers are complicatedly involved, Multiple transmission paths may be assumed.
In this case, the performance evaluation unit 16 recognizes a route with the smallest number of intervening computers as a target route, and executes a time shift amount calculation process. When there are a plurality of routes having the smallest number of intervening computers, the performance evaluation unit 16 selects one route according to a certain rule.

この発明に係るコンピュータネットワークの時刻ずれ量算出システムの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the time difference calculation system of the computer network which concerns on this invention. 時刻ずれ関係式の算出に係る処理手順を示すフローチャートである。It is a flowchart which shows the process sequence which concerns on calculation of a time gap relational expression. 電文送信の記録と電文受信の記録との関係を示す説明図である。It is explanatory drawing which shows the relationship between the record of message transmission, and the record of message reception. 単回帰線と各グリッドの暫定時刻ずれ量との位置関係を示す説明図である。It is explanatory drawing which shows the positional relationship of a single regression line and the provisional time shift amount of each grid. 性能評価に係る処理手順を示すフローチャートである。It is a flowchart which shows the process sequence which concerns on performance evaluation. コンピュータネットワークに対する従来の性能評価の手法を示すブロック図である。It is a block diagram which shows the method of the conventional performance evaluation with respect to a computer network.

10 コンピュータネットワークの時刻ずれ量算出システム
12 時刻ずれ関係式算出部
14 算出結果記憶部
16 性能評価部
18 性能評価システム
20 コンピュータネットワーク
22a〜22c プログラム
24 クライアント端末
26 外部コンピュータ
28a〜28c ログデータ記憶部
A コンピュータ
B コンピュータ
C コンピュータ
α 操作電文
X 電文
Y 電文
Z 電文
10 Computer network time lag calculation system
12 Time offset relational expression calculator
14 Calculation result storage
16 Performance Evaluation Department
18 Performance evaluation system
20 computer network
22a-22c program
24 client terminals
26 External computer
Log data storage unit A Computer B Computer C Computer α Operation message X Message Y Message Z Message

Claims (2)

複数のコンピュータが接続され、一のコンピュータに入力された電文が、その種類に応じて他の必要なコンピュータを順々に必要数経由して外部に出力されるコンピュータネットワークの時刻ずれ量算出システムであって、
各コンピュータは、電文の処理プログラムと、この処理プログラムによる動作の履歴情報が記録されるログデータ記憶手段とを備えており、
上記ログデータ記憶手段には、少なくとも各電文のID、受信時刻及び送信時刻が記録されており、
一対のコンピュータ毎に、それぞれのログデータ記憶手段を参照し、相互間で交換された電文を抽出する手段と、
各電文の一のコンピュータによる送信時刻または他のコンピュータにおける受信時刻に基づき、一定の時間間隔で区切られた複数のグリッドに各電文を分類する手段と、
各グリッド単位で、一のコンピュータからの電文送信と他のコンピュータにおける電文受信とが紐付いている電文を抽出する手段と、
抽出した各電文の送信方向をチェックし、何れか一方向の電文のみを選別する手段と、
選別された各電文の送信時刻と受信時刻との時間差を算出する手段と、
グリッド単位でこの時間差の絶対値が最も小さい電文を特定し、この最小時間差電文の時間差を当該グリッドにおける両コンピュータ間の暫定時刻ずれ量と認定する手段と、
各グリッドの暫定時刻ずれ量と当該最小時間差電文の送信時刻または受信時刻との組合せに対して回帰分析を実施し、時刻の推移と時刻ずれ量の変化との関係を規定する方程式を算出し、これを両コンピュータに関連付けて所定の記憶手段に格納する時刻ずれ関係式算出手段と、
特定の時刻及び電文の種類が指定された場合に、当該電文の種類に対応した経路を特定する手段と、
上記記憶手段を参照し、この電文の経路を構成する各コンピュータに係る方程式を取得する手段と、
上記の各方程式に上記時刻を代入して、当該時刻における一対のコンピュータ間の時刻ずれ量を算出する手段と、
この一対のコンピュータ間の時刻ずれ量を、上記経路を構成する全コンピュータ分積算して、上記時刻における当該経路全体での時刻ずれ量を算出する手段と、
を備えたことを特徴とするコンピュータネットワークの時刻ずれ量算出システム。
A computer network time lag calculation system in which a plurality of computers are connected, and a message input to one computer is output to the outside via the necessary number of other necessary computers in sequence according to the type. There,
Each computer includes a message processing program, and log data storage means for recording history information of operations by this processing program,
In the log data storage means, at least ID of each message, reception time and transmission time are recorded,
Means for referring to each log data storage means for each pair of computers and extracting messages exchanged between each other;
Means for classifying each message into a plurality of grids separated by a certain time interval based on a transmission time by one computer of each message or a reception time by another computer;
Means for extracting, in each grid unit, a message in which a message transmission from one computer is associated with a message reception in another computer;
Means for checking the transmission direction of each extracted message and selecting only one of the messages;
Means for calculating a time difference between the transmission time and the reception time of each selected message;
Means for identifying a message having the smallest absolute value of this time difference in units of grids, and certifying the time difference of this minimum time difference message as a provisional time lag between the computers in the grid;
Perform regression analysis on the combination of the provisional time lag amount of each grid and the transmission time or reception time of the minimum time difference message, and calculate an equation that defines the relationship between time transition and time lag amount, A time lag relational expression calculating means for associating it with both computers and storing it in a predetermined storage means;
Means for specifying a route corresponding to the type of message when a specific time and type of message are specified;
Means for referring to the storage means and obtaining an equation relating to each computer constituting the path of the message;
Means for substituting the time into each of the above equations and calculating a time lag between a pair of computers at the time;
Means for integrating the time lag between the pair of computers for all computers constituting the path, and calculating a time lag for the entire path at the time;
A time shift amount calculation system for a computer network, comprising:
上記時刻ずれ関係式算出手段が、各グリッドの暫定時刻ずれ量と当該最小時間差電文の送信時刻または受信時刻との組合せに対して回帰分析を実施し、時刻の推移と時刻ずれ量の変化との関係を規定する上記方程式を算出した後、
当該方程式に、各グリッドの最小時間差電文の送信時刻または受信時刻を代入し、当該時刻における時刻ずれ量を算出する処理と、
この時刻ずれ量と上記の暫定時刻ずれ量との距離を算出する処理と、
この距離の大きい順に最小時間差電文を整列させ、上位の所定数または所定比率の最小時間差電文を異例データとして破棄する処理と、
残された最小時間差電文の暫定時刻ずれ量とその送信時刻または受信時刻との組合せについて回帰分析を再度実施し、時刻の推移と時刻ずれ量の変化との関係を規定する方程式を算出する処理と、
この方程式を両コンピュータに関連付けて上記記憶手段に格納する処理と、
を実行することを特徴とする請求項1に記載のコンピュータネットワークの時刻ずれ量算出システム。
The time lag relational expression calculating means performs a regression analysis on the combination of the provisional time lag amount of each grid and the transmission time or reception time of the minimum time difference message, and the time transition and the time lag amount change After calculating the above equation that defines the relationship,
Substituting the transmission time or reception time of the minimum time difference message of each grid into the equation, and calculating the amount of time deviation at the time,
A process for calculating the distance between the time lag and the provisional time lag,
A process of arranging the minimum time difference messages in descending order of the distance and discarding the upper predetermined number or the predetermined ratio of the minimum time difference messages as exceptional data;
A process of performing regression analysis again on the combination of the provisional time lag amount of the remaining minimum time difference message and its transmission time or reception time, and calculating an equation that defines the relationship between the time transition and the time lag amount; ,
A process of associating this equation with both computers and storing it in the storage means;
The time difference calculation system for a computer network according to claim 1, wherein:
JP2009152832A 2009-06-26 2009-06-26 System for calculating time lag of computer network Pending JP2011008629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009152832A JP2011008629A (en) 2009-06-26 2009-06-26 System for calculating time lag of computer network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009152832A JP2011008629A (en) 2009-06-26 2009-06-26 System for calculating time lag of computer network

Publications (1)

Publication Number Publication Date
JP2011008629A true JP2011008629A (en) 2011-01-13

Family

ID=43565182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009152832A Pending JP2011008629A (en) 2009-06-26 2009-06-26 System for calculating time lag of computer network

Country Status (1)

Country Link
JP (1) JP2011008629A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3879794A1 (en) * 2020-03-09 2021-09-15 Fujitsu Limited Execution control method, information processing apparatus, and execution control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3879794A1 (en) * 2020-03-09 2021-09-15 Fujitsu Limited Execution control method, information processing apparatus, and execution control program
US11196813B2 (en) 2020-03-09 2021-12-07 Fujitsu Limited Execution control method and information processing apparatus
JP7425300B2 (en) 2020-03-09 2024-01-31 富士通株式会社 Execution control method and execution control program

Similar Documents

Publication Publication Date Title
EP3376326B1 (en) Control apparatus and information processing method
JP4347082B2 (en) Time correction device, time correction method, and time correction program for event trace data
CN109600186B (en) Clock synchronization method and device
US20140297852A1 (en) Information processing apparatus and method therefor
CN112134762B (en) Testing method, device, terminal and storage medium for block chain network structure
Ferrari et al. Experimental characterization of uncertainty sources in a software-only synchronization system
KR20130103781A (en) Master device and slave device and time synchronization method
EP3667534A1 (en) Time stamping of data in an offline node
US20160006640A1 (en) Management computer, allocation management method, and non-transitory computer readable storage medium
JP6457340B2 (en) Estimation apparatus, system, method, and program
CN111555860A (en) Block link point consensus method and device, electronic equipment and storage medium
JP5093099B2 (en) Resource information management apparatus, system, method, and program
CN112332941B (en) Time error correction method based on distributed system
JP2011008629A (en) System for calculating time lag of computer network
US20220173884A1 (en) Using time protocol messages for passive time synchronization
JP2016174215A (en) Synchronization control device, synchronous system, and synchronization control method
CN114143226A (en) Dynamic cost calibration method and system for network delay of distributed database
CN109286461B (en) Method for adapting time stamps in the detection of sensor data
CN114003252A (en) Method, system, terminal and storage medium for automatically updating configuration file
US8625446B2 (en) Setup of measurement period of time and method for setting
CN117273811B (en) Enterprise power consumption prediction data processing method based on power consumption data
JP4291641B2 (en) Time difference measuring method and apparatus, and time difference measuring program
CN117318871B (en) Time protection method, equipment and medium for power monitoring system
CN115204083B (en) Chip static time sequence analysis method and device, electronic equipment and storage medium
JP6070102B2 (en) Deviation calculation program, program, information processing apparatus, and information processing method