JP6501138B2 - Delay measurement method, delay measurement device, and program - Google Patents

Delay measurement method, delay measurement device, and program Download PDF

Info

Publication number
JP6501138B2
JP6501138B2 JP2014148221A JP2014148221A JP6501138B2 JP 6501138 B2 JP6501138 B2 JP 6501138B2 JP 2014148221 A JP2014148221 A JP 2014148221A JP 2014148221 A JP2014148221 A JP 2014148221A JP 6501138 B2 JP6501138 B2 JP 6501138B2
Authority
JP
Japan
Prior art keywords
time
transmission
round trip
message
time difference
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.)
Active
Application number
JP2014148221A
Other languages
Japanese (ja)
Other versions
JP2016025474A (en
Inventor
幸治 岡本
幸治 岡本
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.)
Seiko Solutions Inc.
Original Assignee
Seiko Solutions Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Solutions Inc. filed Critical Seiko Solutions Inc.
Priority to JP2014148221A priority Critical patent/JP6501138B2/en
Publication of JP2016025474A publication Critical patent/JP2016025474A/en
Application granted granted Critical
Publication of JP6501138B2 publication Critical patent/JP6501138B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、遅延測定方法、遅延測定装置、及びプログラムに関する。   The present invention relates to a delay measurement method, a delay measurement device, and a program.

近年、2つの装置間でのパケット伝送の遅延を測定する遅延測定方法において、2つの装置間での往復パケット等の送受信時刻から装置間の時刻のオフセット値を算出し、当該オフセット値を用いて2つの装置間の時刻を同期させて伝送遅延を測定する方法が知られている(例えば、特許文献1を参照)。   In recent years, in a delay measurement method for measuring a delay of packet transmission between two devices, an offset value of time between devices is calculated from transmission / reception time of a round trip packet etc. between two devices, and the offset value is used There is known a method of measuring transmission delay by synchronizing time between two devices (see, for example, Patent Document 1).

米国特許出願公開第2014/0056318号明細書US Patent Application Publication No. 2014/0056318

しかしながら、各装置の時刻を計時するクロックの精度が、装置間で必ずしも同一ではないため、上述の遅延測定方法では、装置間の伝送遅延を正確に測定することができない場合があった。   However, since the accuracy of the clock for measuring the time of each device is not necessarily the same among the devices, the above-described delay measurement method may not be able to accurately measure the transmission delay between the devices.

本発明は、上記問題を解決すべくなされたもので、その目的は、装置間の伝送遅延をより正確に測定することができる遅延測定方法、遅延測定装置、及びプログラムを提供することにある。   The present invention has been made to solve the above problems, and an object thereof is to provide a delay measurement method, a delay measurement device, and a program capable of more accurately measuring a transmission delay between devices.

上記問題を解決するために、本発明の一態様は、第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップとを含み、前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合であることを特徴とする遅延測定方法である。 In order to solve the above-mentioned problems, one aspect of the present invention repeatedly transmits and receives a reciprocating message between a first device and a second device, and the first device and the second in the reciprocating message are repeatedly transmitted and received. A transmitting / receiving step of measuring each transmission time and reception time with the device, a time difference between the transmission times of each of two transmission messages transmitted from the first device, and a second device receiving Calculating a clock error per unit time between the first device and the second device based on the time difference between the reception times of the two transmission messages. Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and based on the extracted minimum value. There are a time difference calculating step of calculating a unit time difference indicating a time difference at the reference time of the first device and the second device, and the clock error per least unit time, based on said device time differences A correction step of correcting the transmission time and the reception time in the second device of the reciprocation message, and monitoring the reciprocation message periodically, and the reciprocation message indicates the clock error or the inter-device time difference when updating satisfies a predetermined condition, see contains an update step of updating the clock error, or the device time difference, and if the predetermined condition is satisfied, among the forward packet TTL (time to Live) is The first condition that the return messages are equal and the TTLs of return packets are equal, and the first condition The delay measurement method is characterized in that two round-trip messages satisfying the second condition that the back-transmission delay values are equal or close round-trip messages are obtained .

また、本発明の一態様は、上記の遅延測定方法において、前記補正ステップによって補正された前記第2の装置における前記送信時刻及び前記受信時刻に基づいて、前記第1の装置と前記第2の装置との間の伝送遅延を推定する推定ステップを含むことを特徴とする。 Further, according to one aspect of the present invention, in the delay measurement method described above, the first device and the second device may be determined based on the transmission time and the reception time of the second device corrected by the correction step. The method is characterized by including an estimation step of estimating a transmission delay between itself and the device.

また、本発明の一態様は、上記の遅延測定方法において、前記誤差算出ステップは、前記往復メッセージにおける往復の伝送遅延値の差が所定の範囲内である少なくとも2つの前記往復メッセージを選択する第1のステップと、前記第1のステップによって選択された少なくとも2つの前記往復メッセージのうちの2つの前記送信メッセージにおける前記送信時刻の時間差及び前記受信時刻の時間差に基づいて、前記クロック誤差を算出する第2のステップとを含むことを特徴とする。   Further, according to one aspect of the present invention, in the above delay measurement method, the error calculation step selects at least two of the round-trip messages in which a difference between round-trip transmission delay values in the round-trip messages is within a predetermined range. The clock error is calculated based on the time difference between the transmission time and the reception time in two transmission messages of at least two of the two round-trip messages selected by the first step and the first step. And the second step.

また、本発明の一態様は、上記の遅延測定方法において、前記第1のステップにおいて、複数の前記往復メッセージのうちから、前記往復の伝送遅延値の差が最小となる少なくとも2つの前記往復メッセージを選択することを特徴とする。   Further, according to one aspect of the present invention, in the delay measurement method described above, at least two of the two or more round trip messages in which the difference between the round trip transmission delay values is minimized among the plurality of round trip messages in the first step. To select.

また、本発明の一態様は、上記の遅延測定方法において、前記第2のステップにおいて、前記第1のステップによって選択された前記往復メッセージが3つ以上である場合に、前記送信時刻の時間差が最大になる2つの前記送信メッセージにおける前記送信時刻の時間差及び前記受信時刻の時間差に基づいて、前記クロック誤差を算出することを特徴とする。   Further, according to one aspect of the present invention, in the above-mentioned delay measurement method, in the second step, when there are three or more reciprocating messages selected by the first step, the time difference of the transmission time is The clock error may be calculated based on a time difference between the transmission times of the two transmission messages that are maximized and a time difference between the reception times.

また、本発明の一態様は、上記の遅延測定方法において、前記第2のステップにおいて、前記第1のステップによって選択された前記往復メッセージが3つ以上である場合に、3つ以上の前記送信メッセージに基づいて複数の前記クロック誤差を算出し、算出した複数の前記クロック誤差の平均値である平均クロック誤差を算出し、前記補正ステップにおいて、前記平均クロック誤差に基づいて、前記往復メッセージの前記送信時刻及び前記受信時刻を補正することを特徴とする。   Further, according to one aspect of the present invention, in the above-mentioned delay measurement method, in the second step, the three or more transmissions are performed when the number of round trip messages selected by the first step is three or more. A plurality of the clock errors are calculated based on the message, an average clock error which is an average value of the calculated plurality of clock errors is calculated, and the correction step calculates the round trip message based on the average clock error. A transmission time and the reception time are corrected.

また、本発明の一態様は、上記の遅延測定方法において、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップを含み、前記補正ステップにおいて、単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記送信時刻及び前記受信時刻を補正することを特徴とする。   Further, according to one aspect of the present invention, in the above-mentioned delay measurement method, the minimum value of the round trip transmission delay value, which is the round trip transmission delay value in the round trip message, is extracted based on the transmission time and the reception time. Calculating an inter-apparatus time difference indicating an inter-apparatus time difference between the first apparatus and the second apparatus based on the minimum value, and calculating the clock per unit time in the correcting step. The transmission time and the reception time of the reciprocating message may be corrected based on an error and the inter-device time difference.

また、本発明の一態様は、上記の遅延測定方法において、前記時間差算出ステップにおいて、複数の前記往復メッセージのうち、1つの前記往復メッセージにおける往復伝送遅延値が最小となる前記往復メッセージに対応する前記往復伝送遅延値を、前記最小値として抽出することを特徴とする。   Further, according to one aspect of the present invention, in the above-described delay measurement method, the time difference calculating step corresponds to the reciprocation message in which a reciprocation transmission delay value in one of the plurality of reciprocation messages is minimized among the plurality of the reciprocation messages. The round trip transmission delay value is extracted as the minimum value.

また、本発明の一態様は、上記の遅延測定方法において、前記時間差算出ステップにおいて、複数の前記往復メッセージに対応する複数の往路の伝送遅延値のうちの最小となる往路の伝送遅延値と、複数の前記往復メッセージに対応する複数の復路の伝送遅延値のうちの最小となる復路の伝送遅延値との加算値を前記最小値として抽出することを特徴とする。   Further, according to one aspect of the present invention, in the above-described delay measurement method, in the time difference calculation step, the transmission delay value of the forward path which becomes the minimum among the transmission delay values of the plurality of outward paths corresponding to the plurality of reciprocating messages; It is characterized in that an added value with a return transmission delay value which is the smallest among transmission delay values of a plurality of return paths corresponding to a plurality of the return messages is extracted as the minimum value.

また、本発明の一態様は、上記の遅延測定方法において、前記クロック誤差に基づき補正された前記送信時刻及び前記受信時刻に基づいて、前記最小値を抽出することを特徴とする。   Moreover, one aspect of the present invention is characterized in that, in the above-mentioned delay measurement method, the minimum value is extracted based on the transmission time and the reception time corrected based on the clock error.

また、本発明の一態様は、上記の遅延測定方法において、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップを含むことを特徴とする。   Further, according to one aspect of the present invention, in the above-described delay measurement method, the round trip message is periodically monitored, and the round trip message satisfies a predetermined condition for updating the clock error or the inter-device time difference. And updating the clock error or the inter-device time difference.

また、本発明の一態様は、第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて算出された、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を取得する誤差取得ステップと、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと、前記補正ステップによって補正された前記第2の装置における前記送信時刻及び前記受信時刻に基づいて、前記第1の装置と前記第2の装置との間の伝送遅延を推定する推定ステップと、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップとを含み、前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合であることを特徴とする遅延測定方法である。 Further, according to one aspect of the present invention, transmission and reception of reciprocating messages between the first device and the second device are repeatedly transmitted and received, and transmission of the first device and the second device in the reciprocating messages is performed. A transmitting / receiving step of measuring a time and a reception time, a time difference between each of the transmission times between two transmission messages transmitted from the first device, and two transmission messages received by the second device Acquiring a clock error per unit time between the first device and the second device, which is calculated based on the time difference between the reception times of each of the transmission time, and the transmission time And extracting the minimum value of the round trip transmission delay value, which is the round trip transmission delay value in the round trip message, based on the reception time, and based on the extracted minimum value, The reciprocation message based on a time difference calculating step of calculating an inter-device time difference indicating a time difference between a first device and the second device at a reference time, the clock error per unit time, and the inter-device time difference wherein the step of correcting the transmission time and the reception time of the second apparatus, based on the transmission time and the reception time of the corrected second device by said correction step, the first device Estimating the transmission delay between the second device and the second device, and monitoring the reciprocation message periodically, and the predetermined condition that the reciprocation message updates the clock error or the inter-device time difference. If meet, the clock error, or the saw including an updating step of updating the device time difference, and if the predetermined condition is satisfied A first condition that TTL (Time To Live) of forward packets are equal and a TTL of return packets is equal, and a second condition that the round trip transmission delay values are equal or close The delay measurement method is characterized in that two round trip messages to be satisfied are obtained .

また、本発明の一態様は、第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップとを含み、前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合であることを特徴とする遅延測定方法である。 Further, according to one aspect of the present invention, transmission and reception of reciprocating messages between the first device and the second device are repeatedly transmitted and received, and transmission of the first device and the second device in the reciprocating messages is performed. A transmitting / receiving step of measuring a time and a reception time, a time difference between each of the transmission times between two transmission messages transmitted from the first device, and two transmission messages received by the second device Calculating a clock error per unit time between the first device and the second device based on the time difference between the reception times of each of the transmission time and the reception time. The minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted based on the time, and the first parameter is extracted based on the extracted minimum value. Calculating an inter-apparatus time difference indicating a time difference between the first apparatus and the second apparatus at a reference time, and periodically monitoring the reciprocation message, and the reciprocation message indicates the clock error or the inter-apparatus time difference when updating satisfies a predetermined condition, see contains an update step of updating the clock error, or the device time difference, and if the predetermined condition is satisfied, among the forward packet TTL (time to Live) is When the two round trip messages having the first condition that the TTLs of the return packets are equal and the round-trip messages equal to each other and the second condition that the round-trip transmission delay values are equal or close round-trip messages are obtained It is a delay measurement method characterized by being.

また、本発明の一態様は、第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信させ、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を取得する取得部と、前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出部と、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出部と、少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正部と、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新部とを備え、前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合であることを特徴とする遅延測定装置である。 Further, according to one aspect of the present invention, a reciprocating message reciprocating between the first device and the second device is repeatedly transmitted and received, and transmission time of each of the first device and the second device in the reciprocating message is transmitted. And an acquisition unit for acquiring the reception time, a time difference between the transmission times of the two transmission messages transmitted from the first device, and two transmission messages of the two transmission messages received by the second device. An error calculator configured to calculate a clock error per unit time between the first device and the second device based on a time difference between the reception times of each of the transmission time and the reception time; Based on the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message, and the first apparatus and the second apparatus are extracted based on the extracted minimum value. A time difference calculating section for calculating a unit time difference indicating a time difference at the reference time of the location, and the clock error per least unit time, based on said inter-device time difference, the in the second device of the reciprocating message A correction unit that corrects the transmission time and the reception time, and monitoring the round trip message periodically, and the clock when the round trip message satisfies the clock error or a predetermined condition for updating the inter-device time difference, the clock An error, or an update unit for updating the inter-device time difference, and in the case where the predetermined conditions are satisfied, it is a round trip message in which TTL (Time To Live) of forward packets is equal and TTL of return packets is equal. That the first condition that there is, and that the round trip transmission delay values are equal or close round trip messages The second embodiment of the present invention is a delay measurement apparatus characterized in that two of the two round-trip messages that satisfy the second condition are obtained .

また、本発明の一態様は、コンピュータに、第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと、定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップとを実行させ、前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合であるプログラムである。 Further, according to one aspect of the present invention, a computer repeatedly transmits and receives a reciprocating message between a first device and a second device, and transmits and receives between a first device and a second device in the reciprocating message. A transmitting / receiving step of measuring each transmission time and reception time, a time difference between each of said transmission times between two transmission messages transmitted from said first device, and two received by said second device An error calculating step of calculating a clock error per unit time between the first device and the second device based on a time difference between the reception times of the transmission messages; and the transmission time And the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message based on the reception time, and based on the extracted minimum value , The first device and the time difference calculating step of calculating a unit time difference indicating a time difference at the reference time of the second device, and the clock error per least unit time, based on said inter-device time difference, A correction step of correcting the transmission time and the reception time in the second device of the reciprocation message, monitoring the reciprocation message periodically, and updating the clock error or the inter-device time difference of the reciprocation message And the update step of updating the clock error or the inter-device time difference is executed, and the TTL (Time To Live) of the forward packets is equal to the case where the predetermined condition is satisfied. And the first condition that the TTLs of return packets are equal to each other in the same round trip message, and It is a program which is a case where two said round-trip messages which satisfy the 2nd condition which are the same or near round-trip messages whose return transmission delay value is equal are obtained .

本発明によれば、装置間の伝送遅延をより正確に測定することができる。   According to the present invention, the transmission delay between devices can be measured more accurately.

第1の実施形態による遅延測定システム及び遅延測定装置の一例を示すブロック図である。FIG. 1 is a block diagram showing an example of a delay measurement system and a delay measurement device according to a first embodiment. 第1の実施形態の往復メッセージにおける送信時刻及び受信時刻を説明する図である。It is a figure explaining the transmission time in the reciprocation message of 1st Embodiment, and reception time. 第1の実施形態における時刻情報記憶部のデータ例を示す図である。It is a figure which shows the example of data of the time information storage part in 1st Embodiment. 第1の実施形態における補正情報記憶部のデータ例を示す図である。It is a figure which shows the example of data of the correction information storage part in 1st Embodiment. 第1の実施形態における装置間の時間差を説明する図である。It is a figure explaining the time difference between the devices in a 1st embodiment. 第1の実施形態におけるクロック誤差を説明する図である。It is a figure explaining the clock error in a 1st embodiment. 第1の実施形態におけるクロック誤差の算出処理の一例を示す図である。It is a figure which shows an example of calculation processing of the clock error in 1st Embodiment. 往復遅延法による往復伝送遅延値の最小値を抽出する一例を示す図である。It is a figure which shows an example which extracts the minimum value of the round trip transmission delay value by a round trip delay method. 片方向遅延法による往復伝送遅延値の最小値を抽出する一例を示す図である。It is a figure which shows an example which extracts the minimum value of the round trip transmission delay value by a one way delay method. 第1の実施形態における装置間時間差の算出処理の一例を示す図である。It is a figure which shows an example of the calculation process of the time difference between apparatuses in 1st Embodiment. 第1の実施形態の遅延測定システムによる遅延測定方法の一例を示すフローチャートである。It is a flowchart which shows an example of the delay measurement method by the delay measurement system of 1st Embodiment. 第1の実施形態によるクロック誤差の算出処理の一例を示すフローチャートである。It is a flowchart which shows an example of calculation processing of the clock error by 1st Embodiment. 第1の実施形態による装置間時間差の算出処理の一例を示すフローチャートである。It is a flowchart which shows an example of the calculation process of the time difference between apparatuses by 1st Embodiment. 第2の実施形態による遅延測定システム及び遅延測定装置の一例を示すブロック図である。It is a block diagram showing an example of a delay measurement system and a delay measurement device according to a second embodiment. 第2の実施形態の遅延測定システムによる遅延測定方法の一例を示すフローチャートである。It is a flowchart which shows an example of the delay measurement method by the delay measurement system of 2nd Embodiment.

以下、本発明の一実施形態による遅延想定方法、及び遅延測定システムについて、図面を参照して説明する。
[第1の実施形態]
図1は、本実施形態による遅延測定システム1及び遅延測定装置10の一例を示すブロック図である。
Hereinafter, a delay estimation method and a delay measurement system according to an embodiment of the present invention will be described with reference to the drawings.
First Embodiment
FIG. 1 is a block diagram showing an example of a delay measurement system 1 and a delay measurement apparatus 10 according to the present embodiment.

この図に示すように、遅延測定システム1は、ネットワークNW1を介して接続されているNW(ネットワーク)装置100と、NW装置200とを備えている。ここで、NW装置100(第1の装置の一例)は、NW装置200との間におけるパケットの伝送遅延を測定する装置であり、例えば、パーソナルコンピュータなどのコンピュータ装置、PDA(Personal Digital Assistant)や携帯電話等の携帯端末など、ネットワークNW1に接続可能な装置である。
また、NW装置200(第2の装置の一例)は、NW装置100と同様にネットワークNW1に接続可能な装置であり、伝送遅延を測定する対象の装置である。
As shown in this figure, the delay measurement system 1 includes an NW (network) device 100 and an NW device 200 connected via a network NW1. Here, the NW device 100 (an example of a first device) is a device that measures the transmission delay of packets with the NW device 200, and, for example, a computer device such as a personal computer, a PDA (Personal Digital Assistant), It is an apparatus that can be connected to the network NW1, such as a mobile terminal such as a mobile phone.
The NW device 200 (an example of a second device) is a device that can be connected to the network NW1 like the NW device 100, and is a device for which the transmission delay is to be measured.

また、NW装置100は、遅延測定装置10と、送受信部20と、入力部30とを備えている。
送受信部20は、ネットワークNW1を介してNW装置200と通信する。送受信部20は、後述する遅延測定装置10の時刻取得部51の制御に基づいて、NW装置100とNW装置200との間で往復する往復メッセージを繰り返し送受信して、往復メッセージにおけるNW装置100とNW装置200とのそれぞれの送信時刻及び受信時刻を測定する。ここで、往復メッセージは、例えば、EOAM−DM(Ethernet Operations Administration and Maintenance−Delay Measurement)やTWAMP(Two−Way Active Measurement Protocol)などの伝送遅延を測定するためのメッセージである。往復メッセージ(往復フレーム又は往復パケット)は、往路パケットと復路パケットとにより構成され、NW装置100が受信するメッセージには、図2に示すように、NW装置100の送信時刻T1及び受信時刻T4と、NW装置200の受信時刻T2及び送信時刻T3とが含まれている。なお、NW装置100とNW装置200との間の通信において、往復メッセージの送受信の優先順位を他のメッセージの送受信より高く設定してもよい。
The NW device 100 further includes a delay measurement device 10, a transmission / reception unit 20, and an input unit 30.
The transmission / reception unit 20 communicates with the NW device 200 via the network NW1. The transmission / reception unit 20 repeatedly transmits and receives a reciprocating message between the NW device 100 and the NW device 200 based on the control of the time acquisition unit 51 of the delay measurement device 10 described later, Each transmission time and reception time with the NW device 200 are measured. Here, the round trip message is a message for measuring a transmission delay of, for example, Ethernet Operations Administration and Maintenance-Delay Measurement (EOAM-DM) or Two-Way Active Measurement Protocol (TWAMP). The round trip message (round trip frame or round trip packet) is composed of the forward packet and the backward packet, and the message received by the NW device 100 includes transmission time T1 and reception time T4 of the NW device 100 as shown in FIG. , Reception time T2 and transmission time T3 of the NW device 200 are included. In communication between the NW device 100 and the NW device 200, the priority of transmission and reception of the reciprocation message may be set higher than transmission and reception of other messages.

図2は、本実施形態の往復メッセージにおける送信時刻及び受信時刻を説明する図である。
図2に示すように、時刻T1は、NW装置100の送受信部20が送信した往路パケットの送信時刻を示し、時刻T2は、NW装置100の送受信部20が送信した往路パケットのNW装置200における受信時刻を示している。ここで、往路の伝送遅延値である往路伝送遅延値d1は、(T2−T1)となるが、NW装置100が備える時計とNW装置200が備える時計とが同一の時刻ではないために、往路伝送遅延値d1は、正確な往路の伝送遅延ではない。
FIG. 2 is a diagram for explaining transmission time and reception time in a round trip message according to the present embodiment.
As shown in FIG. 2, time T1 indicates the transmission time of the forward packet transmitted by the transmission / reception unit 20 of the NW device 100, and time T2 indicates the forward packet transmitted by the transmission / reception unit 20 of the NW device 100 in the NW device 200. It shows the reception time. Here, the forward pass transmission delay value d1 which is the forward pass transmission delay value is (T2−T1), but since the clock included in the NW device 100 and the clock included in the NW device 200 are not the same time, the forward pass The transmission delay value d1 is not an accurate forward transmission delay.

また、時刻T3は、NW装置200が送信した復路パケットの送信時刻を示し、時刻T4は、NW装置100の送受信部20が受信した復路パケットの受信時刻を示している。ここで、復路の伝送遅延値である復路伝送遅延値d2は、(T4−T3)となるが、NW装置100が備える時計とNW装置200が備える時計とが同一の時刻を示さないために、復路伝送遅延値d2は、正確な往路の伝送遅延ではない。
なお、時刻T2から時刻T3までの期間は、NW装置200の内部処理によって生じた遅延を示している。
本実施形態による遅延測定方法及び遅延測定装置10は、受信時刻T2及び送信時刻T3を補正して、往路の伝送遅延値及び復路の伝送遅延値を正確に測定(推定)するものである。
Further, time T3 indicates the transmission time of the return packet transmitted by the NW device 200, and time T4 indicates the reception time of the return packet received by the transmission / reception unit 20 of the NW device 100. Here, the return transmission delay value d2 which is the transmission delay value of the return path is (T4-T3), but since the clock included in the NW device 100 and the clock included in the NW device 200 do not indicate the same time, The return transmission delay value d2 is not an accurate forward transmission delay.
A period from time T2 to time T3 indicates a delay caused by internal processing of the NW device 200.
The delay measurement method and the delay measurement apparatus 10 according to the present embodiment corrects the reception time T2 and the transmission time T3 to accurately measure (estimate) the transmission delay value of the forward path and the transmission delay value of the backward path.

図1の説明に戻り、送受信部20は、通信部21と、タイムスタンプ付与部22とを備えている。
通信部21は、例えば、インターネットプロトコルによりデータ通信を行う。
タイムスタンプ付与部22は、伝送遅延を測定するための上述した往復メッセージに時刻情報(例えば、送信時刻T1及び受信時刻T4)を付与するとともに、往復メッセージに含まれる時刻情報(例えば、受信時刻T2及び送信時刻T3)を取得する。タイムスタンプ付与部22は、NW装置100の送信時刻T1及び受信時刻T4と、NW装置200の受信時刻T2及び送信時刻T3とを遅延測定装置10に出力する。
Returning to the description of FIG. 1, the transmission / reception unit 20 includes a communication unit 21 and a time stamp giving unit 22.
The communication unit 21 performs data communication by, for example, the Internet protocol.
The time stamp adding unit 22 adds time information (for example, transmission time T1 and reception time T4) to the above-mentioned round trip message for measuring the transmission delay, and time information (for example, reception time T2) included in the round trip message. And transmission time T3). The time stamp adding unit 22 outputs the transmission time T1 and the reception time T4 of the NW device 100, and the reception time T2 and the transmission time T3 of the NW device 200 to the delay measurement device 10.

入力部30は、例えば、キーボードやマウスなどの入力装置であり、ユーザからの各種入力を受け付けて、制御部50に出力する。入力部30は、例えば、後述する最小往復伝送遅延値を抽出する方法の指定を受け付ける。   The input unit 30 is, for example, an input device such as a keyboard and a mouse, receives various inputs from the user, and outputs the input to the control unit 50. The input unit 30 receives, for example, designation of a method for extracting a minimum round trip transmission delay value described later.

遅延測定装置10は、例えば、NW装置100とNW装置200との間の伝送遅延を測定するための装置であり、記憶部40と、制御部50とを備えている。
記憶部40は、NW装置100とNW装置200との間の伝送遅延を測定する際に利用される各種情報を記憶する。記憶部40は、時刻情報記憶部41と、補正情報記憶部42と、遅延情報記憶部43とを備えている。
The delay measurement device 10 is, for example, a device for measuring the transmission delay between the NW device 100 and the NW device 200, and includes a storage unit 40 and a control unit 50.
The storage unit 40 stores various information used when measuring the transmission delay between the NW device 100 and the NW device 200. The storage unit 40 includes a time information storage unit 41, a correction information storage unit 42, and a delay information storage unit 43.

時刻情報記憶部41は、NW装置200との間における往復メッセージの送受信により、送受信部20を介して取得(測定)した送信時刻(T1、T3)及び受信時刻(T2、T4)などを示す情報を記憶する。時刻情報記憶部41は、例えば、図3に示すように、往復メッセージの識別情報と、送信時刻(T1、T3)及び受信時刻(T2、T4)とを関連付けて記憶する。なお、時刻情報記憶部41は、例えば、図3に示すように、補正前の往路の伝送遅延値を示す往路伝送遅延値d1と、補正前の復路の伝送遅延値を示す復路伝送遅延値d2と、補正前の往復の伝送遅延値を示す往復伝送遅延値(RDT)とを、さらに往復メッセージの識別情報と関連付けて記憶してもよい。   The time information storage unit 41 is information indicating a transmission time (T1, T3) and a reception time (T2, T4) acquired (measured) via the transmission / reception unit 20 by transmitting / receiving a reciprocating message to / from the NW device 200. Remember. For example, as shown in FIG. 3, the time information storage unit 41 associates and stores identification information of a round trip message, a transmission time (T1, T3) and a reception time (T2, T4). For example, as shown in FIG. 3, the time information storage unit 41 has a forward transmission delay value d1 indicating the transmission delay value on the forward path before correction and a return transmission delay value d2 indicating the transmission delay value on the backward path before correction. And a round trip transmission delay value (RDT) indicating a round trip transmission delay value before correction may be further stored in association with identification information of the round trip message.

図3は、本実施形態における時刻情報記憶部41のデータ例を示す図である。
この図に示す例では、時刻情報記憶部41は、「NO.」と、「往路パケット」の「送信時刻T1」及び「受信時刻T2」と、「復路パケット」の「送信時刻T3」及び「受信時刻T4」と、「往路伝送遅延値d1」と、「復路伝送遅延値d2」と、「往復伝送遅延値RDT」とを関連付けて記憶する。ここで、「NO.」は、往復メッセージの番号(識別情報の一例)を示している。
FIG. 3 is a view showing an example of data of the time information storage unit 41 in the present embodiment.
In the example shown in this figure, the time information storage unit 41 sets “NO.”, “Transmission time T1” and “reception time T2” of “outbound packet”, “transmission time T3” of “return packet”, and The reception time T4, the "forward transmission delay value d1", the "return transmission delay value d2", and the "round trip transmission delay value RDT" are associated and stored. Here, “NO.” Indicates the number of the round trip message (an example of identification information).

再び図1の説明に戻り、補正情報記憶部42は、後述する受信時刻T2及び送信時刻T3を補正する際に利用する情報を記憶する。補正情報記憶部42は、例えば、図4に示すように、「基準時刻(T0)」と、「クロック誤差」と、「最小往復伝送遅延値」と、「装置間時間差(dt)」とを関連付けて記憶する。
図4は、本実施形態における補正情報記憶部42のデータ例を示す図である。
この図において、「基準時刻(T0)」は、後述するクロック誤差(クロックによる変動成分)を補正する際に、基準となる時刻を示し、「クロック誤差」は、後述するNW装置100から見たNW装置200の時間経過の傾き(CLKslope)の値を示している。また、「最小往復伝送遅延値」は、後述する往復伝送遅延値の最小値を示し、「装置間時間差(dt)」は、受信時刻T2及び送信時刻T3の固定成分(オフセット成分)を補正するための装置間の時間差を示している。
Returning to the explanation of FIG. 1 again, the correction information storage unit 42 stores information used when correcting a reception time T2 and a transmission time T3 described later. For example, as shown in FIG. 4, the correction information storage unit 42 includes “reference time (T0)”, “clock error”, “minimum round trip transmission delay value”, and “inter-device time difference (dt)”. Associate and store.
FIG. 4 is a view showing an example of data of the correction information storage unit 42 in the present embodiment.
In this figure, “reference time (T0)” indicates a time that is a reference when correcting a clock error (a fluctuation component due to a clock) described later, and “clock error” is viewed from the NW device 100 described later The value of the slope (CLKslope) of the passage of time of the NW device 200 is shown. The “minimum round trip transmission delay value” indicates the minimum value of the round trip transmission delay value described later, and the “inter-apparatus time difference (dt)” corrects fixed components (offset components) of the reception time T2 and the transmission time T3. Shows the time difference between the devices.

再び図1の説明に戻り、遅延情報記憶部43は、遅延測定装置10が測定した伝送遅延(例えば、片方向遅延)の結果を記憶する。遅延情報記憶部43が記憶する伝送遅延の結果は、ユーザから入力部30を介して受け付けた読み出し指示や各種アプリケーションにより読み出され、例えば、ユーザに提示(表示)するなどの処理に利用される。   Referring back to FIG. 1 again, the delay information storage unit 43 stores the result of the transmission delay (for example, one-way delay) measured by the delay measurement apparatus 10. The result of the transmission delay stored in the delay information storage unit 43 is read by a read instruction or various applications received from the user via the input unit 30, and used for processing such as presenting (displaying) to the user .

制御部50は、例えば、CPU(Central Processing Unit)などを含むプロセッサであり、NW装置100(遅延測定装置10)を統括的に制御する。制御部50は、時刻取得部51と、クロック誤差算出部52と、時間差算出部53と、時刻補正部54と、遅延算出部55とを備えている。   The control unit 50 is, for example, a processor including a CPU (Central Processing Unit) or the like, and centrally controls the NW device 100 (delay measurement device 10). The control unit 50 includes a time acquisition unit 51, a clock error calculation unit 52, a time difference calculation unit 53, a time correction unit 54, and a delay calculation unit 55.

時刻取得部51(取得部の一例)は、往復メッセージを繰り返し送受信させ、往復メッセージにおけるNW装置100とNW装置200とのそれぞれの送信時刻(T1、T3)及び受信時刻(T2、T4)を取得する。時刻取得部51は、取得した送信時刻(T1、T3)及び受信時刻(T2、T4)を、図3に示すように、往復メッセージの識別情報と関連付けて、時刻情報記憶部41に記憶させる。また、時刻取得部51は、取得した送信時刻(T1、T3)及び受信時刻(T2、T4)に基づいて、往路伝送遅延値d1と、復路伝送遅延値d2と、往復伝送遅延値RDTとを算出する。時刻取得部51は、図3に示すように、往復メッセージの識別情報と、算出した往路伝送遅延値d1と、復路伝送遅延値d2と、往復伝送遅延値RDTとを関連付けて時刻情報記憶部41に記憶させる。   The time acquisition unit 51 (an example of an acquisition unit) repeatedly transmits and receives a reciprocating message, and acquires the transmission time (T1, T3) and the reception time (T2, T4) of the NW device 100 and the NW device 200 in the reciprocating message. Do. The time acquisition unit 51 stores the acquired transmission times (T1, T3) and reception times (T2, T4) in the time information storage unit 41 in association with the identification information of the round trip message as shown in FIG. The time acquisition unit 51 also determines the forward transmission delay value d1, the return transmission delay value d2, and the round trip transmission delay value RDT based on the acquired transmission times (T1, T3) and reception times (T2, T4). calculate. The time acquisition unit 51 associates the identification information of the reciprocation message, the calculated forward transmission delay value d1, the return transmission delay value d2, and the reciprocation transmission delay value RDT, as shown in FIG. Remember.

クロック誤差算出部52(誤差算出部の一例)は、NW装置100から送信される2つの送信メッセージにおける送信時刻T1の時間差と、NW装置200で受信される2つの送信メッセージにおける受信時刻T2の時間差とに基づいて、NW装置100とNW装置200との間の単位時間当たりのクロック誤差(CLKslope)を算出する。なお、以下の説明において、単位時間当たりのクロック誤差(CLKslope)を単にクロック誤差(CLKslope)と表記することがある。クロック誤差算出部52は、例えば、時刻取得部51に送受信部20を介して往復メッセージを複数回(N回)送受信させ、複数(N個)の往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)を取得させる。クロック誤差算出部52は、時刻情報記憶部41が記憶するN個の往復メッセージの中から、往復伝送遅延値RDTの差が所定の範囲内である少なくとも2つの往復メッセージを選択する処理(第1の処理)を実行する。クロック誤差算出部52は、例えば、N個の往復メッセージのうちから、往復伝送遅延値RDTの差が最小となる少なくとも2つの往復メッセージを選択する。   The clock error calculation unit 52 (an example of the error calculation unit) is a time difference between transmission times T1 in two transmission messages transmitted from the NW device 100 and a time difference between reception times T2 in two transmission messages received by the NW device 200. And calculates the clock error (CLKslope) per unit time between the NW device 100 and the NW device 200. In the following description, the clock error (CLKslope) per unit time may be simply referred to as the clock error (CLKslope). The clock error calculation unit 52 causes, for example, the time acquisition unit 51 to transmit and receive a reciprocating message a plurality of times (N times) via the transmitting and receiving unit 20, and transmit time (T1, T3) and reception in a plurality of (N) reciprocating messages. The time (T2, T4) is acquired. The clock error calculation unit 52 is a process of selecting at least two reciprocation messages in which the difference between the reciprocation transmission delay value RDT is within a predetermined range from the N reciprocation messages stored in the time information storage unit 41 (first Process). The clock error calculation unit 52 selects, for example, at least two round-trip messages in which the difference between the round-trip transmission delay values RDT is minimized from the N round-trip messages.

また、クロック誤差算出部52は、選択された少なくとも2つの往復メッセージのうちの2つの送信メッセージにおける送信時刻T1の時間差及び受信時刻T2の時間差に基づいて、クロック誤差(CLKslope)を算出する処理(第2の処理)を実行する。クロック誤差算出部52は、例えば、上述の第1の処理によって選択された往復メッセージが3つ以上である場合に、送信時刻の時間差が最大になる2つの送信メッセージにおける送信時刻の時間差及び受信時刻の時間差に基づいて、クロック誤差(CLKslope)を算出する。ここで、クロック誤差とは、NW装置100から見たNW装置200の時間経過の傾き(CLKslope)である。クロック誤差算出部52は、算出したクロック誤差(CLKslope)を補正情報記憶部42に記憶させる。また、クロック誤差算出部52は、クロック誤差(CLKslope)を算出する際に用いた送信時刻T1を仮の基準時刻T0として補正情報記憶部42に記憶させる。
なお、クロック誤差(CLKslope)を算出する処理の詳細については、後述する。
Also, the clock error calculation unit 52 calculates the clock error (CLKslope) based on the time difference between the transmission time T1 and the reception time T2 in two transmission messages of the selected at least two round-trip messages ( Execute the second process). For example, when the number of round trip messages selected by the first process described above is three or more, the clock error calculation unit 52 determines the time difference between the transmission time and the reception time of the two transmission messages for which the time difference between the transmission times becomes maximum. The clock error (CLKslope) is calculated based on the time difference of Here, the clock error is a slope (CLKslope) of the passage of time of the NW device 200 viewed from the NW device 100. The clock error calculation unit 52 stores the calculated clock error (CLKslope) in the correction information storage unit 42. Also, the clock error calculation unit 52 stores the transmission time T1 used when calculating the clock error (CLKslope) in the correction information storage unit 42 as a temporary reference time T0.
The details of the process of calculating the clock error (CLKslope) will be described later.

時間差算出部53は、送信時刻及び受信時刻に基づいて、往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、NW装置100とNW装置200との基準時刻における時間差を示す装置間時間差を算出する。時間差算出部53は、例えば、時刻取得部51に送受信部20を介して往復メッセージを複数回送受信させ、複数の往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)を取得させる。時間差算出部53は、例えば、時刻情報記憶部41が記憶する送信時刻(T1、T3)及び受信時刻(T2、T4)に基づいて、往復伝送遅延値の最小値である最小往復伝送遅延値(RDTmin)を抽出(算出)し、この最小往復伝送遅延値(RDTmin)に基づいて、装置間時間差(dt)を算出する。また、時間差算出部53は、最小往復遅延抽出部531と、装置間時間差算出部532とを備えている。   The time difference calculation unit 53 extracts the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message based on the transmission time and the reception time, and based on the extracted minimum value, the NW device 100 and NW An inter-apparatus time difference indicating the time difference between the apparatus 200 and the reference time is calculated. The time difference calculation unit 53 causes, for example, the time acquisition unit 51 to transmit and receive a reciprocating message a plurality of times via the transmitting and receiving unit 20, and causes transmission time (T1, T3) and reception time (T2, T4) in a plurality of reciprocating messages to be acquired. . The time difference calculation unit 53 determines the minimum round trip transmission delay value (the minimum value of the round trip transmission delay value) based on, for example, the transmission times (T1 and T3) and the reception times (T2 and T4) stored in the time information storage unit 41. RDTmin) is extracted (calculated), and the inter-device time difference (dt) is calculated based on the minimum round trip transmission delay value (RDTmin). The time difference calculation unit 53 further includes a minimum round trip delay extraction unit 531 and an inter-apparatus time difference calculation unit 532.

最小往復遅延抽出部531は、時刻情報記憶部41が記憶する送信時刻(T1、T3)及び受信時刻(T2、T4)に基づいて、往復遅延法と、片方向遅延法との2つに方式により、最小往復伝送遅延値(RDTmin)を抽出する。ここで、往復遅延法とは、複数の往復メッセージのうち、1つの往復メッセージにおける往復伝送遅延値RDTが最小となる往復メッセージに対応する往復伝送遅延値RDTを、最小往復伝送遅延値(RDTmin)として抽出する方法である。また、片方向遅延法とは、複数の往路伝送遅延値d1のうちの最小となる往路伝送遅延値(d1min)と、複数の復路伝送遅延値d2のうちの最小となる復路伝送遅延値(d2min)との加算値を最小往復伝送遅延値(RDTmin)として抽出する方法である。なお、片方向遅延法では、後述する時刻補正部54によって、クロック誤差(CLKslope)に基づいて補正された受信時刻T2及び送信時刻T3を用いて、最小往復伝送遅延値(RDTmin)を抽出する。   The minimum round trip delay extraction unit 531 has two methods, a round trip delay method and a one-way delay method, based on the transmission times (T1 and T3) and the reception times (T2 and T4) stored in the time information storage unit 41. Thus, the minimum round trip transmission delay value (RDTmin) is extracted. Here, in the round trip delay method, a round trip transmission delay value RDT corresponding to a round trip message in which a round trip transmission delay value RDT in one round trip message is minimum among a plurality of round trip messages is a minimum round trip transmission delay value (RDTmin). It is a method to extract as. Also, with the one-way delay method, the forward transmission delay value (d1 min) that is the smallest of the plurality of forward transmission delay values d1 and the backward transmission delay value (d2 min) that is the minimum of the plurality of backward transmission delay values d2 ) Is extracted as the minimum round trip transmission delay value (RDTmin). In the one-way delay method, the minimum round trip transmission delay value (RDTmin) is extracted by using the reception time T2 and the transmission time T3 corrected based on the clock error (CLKslope) by the time correction unit 54 described later.

最小往復遅延抽出部531は、例えば、ユーザから入力部30を介して受け付けた最小往復伝送遅延値の抽出方法を指定する指定情報に基づいて、上述した2つに方式のうちの一方により、最小往復伝送遅延値(RDTmin)を抽出する。最小往復遅延抽出部531は、抽出した最小往復伝送遅延値(RDTmin)を補正情報記憶部42に記憶させる。
なお、上述した往復遅延法と、片方向遅延法との2つに方式の詳細については、後述する。
The minimum round trip delay extraction unit 531 is, for example, a minimum by one of the above two methods based on designation information specifying a method of extracting the minimum round trip transmission delay value received from the user via the input unit 30. The round trip transmission delay value (RDTmin) is extracted. The minimum round trip delay extraction unit 531 stores the extracted minimum round trip transmission delay value (RDTmin) in the correction information storage unit 42.
The details of the two methods of the round trip delay method described above and the one-way delay method will be described later.

装置間時間差算出部532は、最小往復遅延抽出部531が抽出した最小往復伝送遅延値(RDTmin)に基づいて、装置間時間差(dt)を算出する。装置間時間差算出部532は、算出した装置間時間差(dt)を補正情報記憶部42に記憶させる。
なお、装置間時間差(dt)の算出の詳細については、後述する。
The inter-apparatus time difference calculation unit 532 calculates an inter-apparatus time difference (dt) based on the minimum round trip transmission delay value (RDTmin) extracted by the minimum round trip delay extraction unit 531. The inter-apparatus time difference calculation unit 532 stores the calculated inter-apparatus time difference (dt) in the correction information storage unit 42.
The details of the calculation of the inter-device time difference (dt) will be described later.

時刻補正部54(補正部の一例)は、少なくともクロック誤差(CLKslope)に基づいて、往復メッセージの送信時刻T3及び受信時刻T2を補正する。時刻補正部54(補正部)は、上述した片方向遅延法を実行する際には、補正情報記憶部42が記憶する基準時刻(T0)と、クロック誤差(CLKslope)とに基づいて、受信時刻T2及び送信時刻T3を補正する。また、時刻補正部54は、後述する遅延算出部55により伝送遅延を算出する際には、補正情報記憶部42が記憶する基準時刻(T0)と、クロック誤差と、装置間時間差(dt)とに基づいて、受信時刻T2及び送信時刻T3を補正する。
なお、時刻補正部54による時刻補正の詳細については、後述する。
The time correction unit 54 (an example of the correction unit) corrects the transmission time T3 and the reception time T2 of the reciprocating message based on at least the clock error (CLKslope). When the time correction unit 54 (correction unit) executes the one-way delay method described above, the reception time is received based on the reference time (T0) stored in the correction information storage unit 42 and the clock error (CLKslope). T2 and transmission time T3 are corrected. Further, when the time correction unit 54 calculates the transmission delay by the delay calculation unit 55 described later, the reference time (T0) stored by the correction information storage unit 42, the clock error, and the inter-device time difference (dt) And correct the reception time T2 and the transmission time T3.
The details of the time correction by the time correction unit 54 will be described later.

遅延算出部55(推定部の一例)は、時刻補正部54によって補正された送信時刻T3及び受信時刻T2に基づいて、NW装置100とNW装置200との間の伝送遅延(例えば、片方向遅延値)を算出(推定)する。遅延算出部55は、例えば、時刻取得部51に送受信部20を介して往復メッセージを送受信させ、往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)を取得させる。遅延算出部55は、時刻取得部51が取得した送信時刻(T1、T3)及び受信時刻(T2、T4)を、時刻情報記憶部41から取得する。また、遅延算出部55は、送信時刻T3及び受信時刻T2を時刻補正部54に補正させて、補正された送信時刻T3及び受信時刻T2と、時刻情報記憶部41から取得した送信時刻T1及び受信時刻T4とに基づいて、往路の片方向遅延値及び復路の片方向遅延値とを算出する。遅延算出部55は、算出した片方向遅延値及び復路の片方向遅延値を遅延情報記憶部43に記憶させる。   The delay calculation unit 55 (an example of the estimation unit) determines the transmission delay between the NW device 100 and the NW device 200 based on the transmission time T3 and the reception time T2 corrected by the time correction unit 54 (for example, one-way delay). Value) (estimate). The delay calculation unit 55 causes, for example, the time acquisition unit 51 to transmit and receive the reciprocated message via the transmission and reception unit 20, and acquires the transmission time (T1, T3) and the reception time (T2, T4) in the reciprocated message. The delay calculation unit 55 acquires, from the time information storage unit 41, the transmission times (T1, T3) and the reception times (T2, T4) acquired by the time acquisition unit 51. The delay calculation unit 55 causes the time correction unit 54 to correct the transmission time T3 and the reception time T2, and the corrected transmission time T3 and reception time T2, and the transmission time T1 received from the time information storage unit 41 and the reception Based on the time T4, the one-way delay value of the forward path and the one-way delay value of the backward path are calculated. The delay calculating unit 55 causes the delay information storage unit 43 to store the calculated one-way delay value and the one-way delay value on the return path.

<受信時刻T2及び送信時刻T3の補正処理の動作原理>
次に、本実施形態による遅延測定装置10による受信時刻T2及び送信時刻T3の補正処理の動作原理について説明する。
図5は、本実施形態における装置間の時間差を説明する図である。
この図において、グラフは、基準時刻T0からの経過時間と、装置間の時間差であるNW装置100とNW装置200との間の時間差との関係を示している。このグラフにおいて、縦軸は、装置間の時間差を示し、横軸は、基準時刻T0からの経過時間を示している。また、波形W1は、装置間の時間差の経過時間に対する変化を示している。
<Operation principle of correction processing of reception time T2 and transmission time T3>
Next, the operation principle of the correction process of the reception time T2 and the transmission time T3 by the delay measurement device 10 according to the present embodiment will be described.
FIG. 5 is a diagram for explaining the time difference between the devices in the present embodiment.
In this figure, the graph shows the relationship between the elapsed time from the reference time T0 and the time difference between the NW device 100 and the NW device 200, which is the time difference between the devices. In this graph, the vertical axis indicates the time difference between the devices, and the horizontal axis indicates the elapsed time from the reference time T0. Further, the waveform W1 shows the change with respect to the elapsed time of the time difference between the devices.

この図に示すように、NW装置100とNW装置200との間の時間差には、基準時刻T0における時間差(dt)である固定成分(オフセット分)と、時間の経過に伴い増加する時間差(dclk)であるクロックによる変動成分とが含まれる。クロックによる変動成分は、時刻を計時するクロックの精度が、NW装置100とNW装置200と間で異なることから生じる誤差である。ある時刻の装置間の時間差は、下記の式(1)として表される。   As shown in this figure, in the time difference between the NW device 100 and the NW device 200, there is a fixed component (offset) which is a time difference (dt) at the reference time T0, and a time difference (dclk) which increases with the passage of time. And the clock fluctuation component. The fluctuation component due to the clock is an error that arises from the difference between the NW device 100 and the NW device 200 in the accuracy of the clock that counts time. The time difference between devices at a certain time is expressed as the following equation (1).

(ある時刻の装置間の時間差)=(クロック誤差による時間差)
+(基準時刻T0における時間差) ・・・ (1)
(Time difference between devices at a certain time) = (time difference due to clock error)
+ (Time difference at reference time T0) (1)

また、図6は、本実施形態におけるクロック誤差を説明する図である。
図6(a)は、正しい経過時間と、装置の経過時間との関係の一例を示している。このグラフにおいて、縦軸は、装置の経過時間を示し、横軸は、正しい経過時間を示している。また、波形W2は、NW装置100の経過時間を示し、波形W3は、NW装置200の経過時間を示している。なお、波形W4は、クロックの精度が規格値である場合の理想の経過時間を示しており、傾きが“1”となる。これに対して、図6(a)に示す例では、NW装置100は、クロックが規格値(理想値)よりも遅いために、波形W2に示すように、正しい経過時間よりも遅く時間が進むことを示している。また、NW装置200は、クロックが規格値(理想値)よりも速いために、波形W3に示すように、正しい経過時間よりも速く時間が進むことを示している。
FIG. 6 is a diagram for explaining clock errors in the present embodiment.
FIG. 6A shows an example of the relationship between the correct elapsed time and the elapsed time of the device. In this graph, the vertical axis shows the elapsed time of the device, and the horizontal axis shows the correct elapsed time. The waveform W2 indicates the elapsed time of the NW device 100, and the waveform W3 indicates the elapsed time of the NW device 200. The waveform W4 indicates an ideal elapsed time when the clock accuracy is a standard value, and the slope is "1". On the other hand, in the example shown in FIG. 6A, since the clock is slower than the standard value (ideal value) in the NW apparatus 100, as shown in the waveform W2, the time advances later than the correct elapsed time. It is shown that. Further, the NW device 200 indicates that the clock advances faster than the correct elapsed time, as shown by the waveform W3, because the clock is faster than the standard value (ideal value).

本実施形態では、NW装置100とNW装置200との経過時間を補正するために、図6(b)に示すように、NW装置100の経過時間に対するNW装置200の経過時間の関係を利用する。
図6(b)は、NW装置100の経過時間と、NW装置200の経過時間との関係の一例を示している。このグラフにおいて、縦軸は、NW装置200の経過時間を示し、横軸は、NW装置100の経過時間を示している。また、波形W5は、NW装置200の経過時間がNW装置100の経過時間よりも速い場合を示しており、この場合、傾き(CLKslope)は、“1”より大きい値となる(CLKslope>1)。また、波形W6は、NW装置200の経過時間がNW装置100の経過時間よりも遅い場合を示しており、この場合、傾き(CLKslope)は、“1”より小さい値となる(CLKslope<1)。なお、波形W7は、NW装置200の経過時間とNW装置100の経過時間とが一致している場合を示しており、傾き(CLKslope)が“1”となる(CLKslope=1)。
本実施形態では、時刻補正部54は、NW装置100の経過時間を基準にしたNW装置200の経過時間の傾き(CLKslope)を利用して、上述した図5のクロックによる変動成分(dclk)を含めて、受信時刻T2及び送信時刻T3を補正する。
In this embodiment, in order to correct the elapsed time of the NW device 100 and the NW device 200, as shown in FIG. 6B, the relationship between the elapsed time of the NW device 200 and the elapsed time of the NW device 100 is used. .
FIG. 6B illustrates an example of the relationship between the elapsed time of the NW device 100 and the elapsed time of the NW device 200. In this graph, the vertical axis indicates the elapsed time of the NW device 200, and the horizontal axis indicates the elapsed time of the NW device 100. The waveform W5 indicates that the elapsed time of the NW device 200 is faster than the elapsed time of the NW device 100. In this case, the slope (CLKslope) is a value larger than "1"(CLKslope> 1). . The waveform W6 shows the case where the elapsed time of the NW device 200 is later than the elapsed time of the NW device 100. In this case, the slope (CLKslope) becomes a value smaller than "1" (CLKslope <1). . The waveform W7 shows the case where the elapsed time of the NW device 200 and the elapsed time of the NW device 100 coincide, and the slope (CLKslope) becomes “1” (CLKslope = 1).
In the present embodiment, the time correction unit 54 uses the slope (CLKslope) of the elapsed time of the NW device 200 based on the elapsed time of the NW device 100 to calculate the fluctuation component (dclk) due to the clock in FIG. In addition, the reception time T2 and the transmission time T3 are corrected.

<クロック誤差の算出処理>
次に、図7を参照して、本実施形態におけるクロック誤差の算出処理の詳細について説明する。
図7は、本実施形態におけるクロック誤差の算出処理の一例を示す図である。
この図に示す例では、送受信部20を介して時刻取得部51が取得したN個の往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)の一例を示している。クロック誤差算出部52は、例えば、N個の往復メッセージのうちから次の2つの条件に合う少なくとも2つ以上の往復メッセージを抽出する。
<Calculation process of clock error>
Next, with reference to FIG. 7, the details of the calculation process of the clock error in the present embodiment will be described.
FIG. 7 is a diagram showing an example of clock error calculation processing in the present embodiment.
In the example shown in this figure, an example of transmission time (T 1, T 3) and reception time (T 2, T 4) in N round-trip messages acquired by the time acquisition unit 51 via the transmission / reception unit 20 is shown. The clock error calculation unit 52 extracts, for example, at least two or more round trip messages meeting the following two conditions from N round trip messages.

(条件1)往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージである。
これは、各TTLが等しい場合には、2つの往復メッセージが往路及び復路においてそれぞれ等しい経路を通って伝送された可能性が高いためである。2つの往復メッセージにおいて、経路が異なる場合、経路の違いによる誤差が生じてしまうためである。なお、この場合、1つの往復メッセージにおける往路パケットのTTLと復路パケットのTTLとが等しくてもよいし、異なっていてもよい。
(Condition 1) This is a round trip message in which TTL (Time To Live) of forward packets are equal and TTL of return packets is equal.
This is because when the TTLs are equal, it is likely that two round trip messages have been transmitted through equal paths on the forward and return paths respectively. This is because when the paths are different in the two round-trip messages, errors due to the differences in the paths occur. In this case, the TTL of the forward packet and the TTL of the return packet in one round-trip message may be equal to or different from each other.

(条件2)往復伝送遅延値RDTが等しい(又は近い)往復メッセージである。
すなわち、クロック誤差算出部52は、往復メッセージにおける往復の伝送遅延値の差が所定の範囲内である少なくとも2つの往復メッセージを選択する。
ここで、往復伝送遅延値RDTが等しい(又は近い)ということは、2つの往復メッセージにおける往路伝送遅延値と、復路伝送遅延値とか極めて近いことを示している。なお、厳密には、往路が増加した分、復路が減少したケース(または逆)もあり得るが、経路が同じで逆方向の遅延が打ち消す方向に同じ遅延量になることは稀である。そのため、ここでの往路、復路の伝送遅延値の変化は、クロック誤差による、装置間のズレの変化と考えることができる。
(Condition 2) Round-trip transmission delay value RDT is equal (or close) round-trip messages.
That is, the clock error calculation unit 52 selects at least two round trip messages in which the difference between the round trip transmission delay values in the round trip messages is within a predetermined range.
Here, that the round trip transmission delay value RDT is equal (or close) means that the forward path transmission delay value and the backward path transmission delay value in the two round trip messages are very close. Strictly speaking, although there may be cases (or vice versa) in which the return path is reduced by the amount of the forward path, it is rare that the path is the same and the delay amount is the same in the direction in which the backward delay cancels. Therefore, the change in the transmission delay value on the forward path and the return path here can be considered as a change in the deviation between the devices due to the clock error.

クロック誤差算出部52は、例えば、図7に示すように、N個の往復メッセージのうちから、往復の伝送遅延値の差が最小となる少なくとも2つの往復メッセージ(「測定1」と「測定N」)を選択する。クロック誤差算出部52は、この2つの往復メッセージを用いて、下記の式(2)により単位時間当たりのクロック誤差であるNW装置100の経過時間を基準にしたNW装置200の経過時間の傾き(CLKslope)を算出する。また、クロック誤差算出部52は、下記の式(3)に示すように、仮の基準時刻T0を設定する。   For example, as shown in FIG. 7, the clock error calculation unit 52 selects at least two round-trip messages (“measurement 1” and “measurement N”) that minimize the difference between the round-trip transmission delay values out of N round-trip messages. Choose "). The clock error calculation unit 52 uses the two round-trip messages to determine the slope of the elapsed time of the NW device 200 based on the elapsed time of the NW device 100 which is the clock error per unit time according to the following equation (2) Calculate CLKslope). Further, the clock error calculation unit 52 sets a temporary reference time T0 as shown in the following equation (3).

CLKslope=(T2−T2)/(T1−T1) ・・・ (2)
T0=T1 ・・・ (3)
CLKslope = (T2 N -T2 1 ) / (T1 N -T1 1 ) (2)
T0 = T1 1 (3)

ここで、送信時刻T1は、「測定1」の往復メッセージにおけるNW装置100の送信時刻T1を示し、送信時刻T1は、「測定N」の往復メッセージにおけるNW装置100の送信時刻T1を示している。また、受信時刻T2は、「測定1」の往復メッセージにおけるNW装置200の受信時刻T2を示し、受信時刻T2は、「測定N」の往復メッセージにおけるNW装置200の受信時刻T2を示している。
このように、クロック誤差算出部52は、NW装置100から送信される2つの送信メッセージにおける送信時刻の時間差(T1−T1)と、NW装置200で受信される2つの送信メッセージにおける受信時刻の時間差(T2−T2)とに基づいて、単位時間当たりのクロック誤差(CLKslope)を算出する。
Here, transmission time T1 1 shows the transmission time T1 of the NW device 100 in reciprocating message "measurement 1", transmission time T1 N denotes the transmission time T1 of the NW device 100 in reciprocating message "Measurement N" ing. Further, the reception time T2 1 shows a reception time T2 of the NW device 200 in reciprocating message "measurement 1", the reception time T2 N is shows a reception time T2 NW device 200 in reciprocating message "Measurement N" There is.
As described above, the clock error calculation unit 52 calculates the time difference between the transmission times of the two transmission messages transmitted from the NW device 100 (T1 N- T1 1 ) and the reception time of the two transmission messages received by the NW device 200. The clock error (CLKslope) per unit time is calculated based on the time difference (T2 N- T2 1 ) of

なお、クロック誤差算出部52は、選択された往復メッセージが3つ以上である場合に、送信時刻の時間差が最大になる2つの送信メッセージにおける送信時刻の時間差及び受信時刻の時間差に基づいて、クロック誤差を算出する。また、クロック誤差算出部52は、選択された往復メッセージが3つ以上である場合に、3つ以上の送信メッセージに基づいて複数のクロック誤差(CLKslope)を算出し、算出した複数のクロック誤差(CLKslope)の平均値である平均クロック誤差を上述した単位時間当たりのクロック誤差(CLKslope)の代わりに算出してもよい。   The clock error calculation unit 52 generates the clock based on the time difference between the transmission time and the reception time of the two transmission messages that maximizes the time difference between the transmission times when the number of selected round trip messages is three or more. Calculate the error. Further, when the number of selected round trip messages is three or more, the clock error calculation unit 52 calculates a plurality of clock errors (CLKslope) based on three or more transmission messages, and calculates a plurality of clock errors ( An average clock error which is an average value of CLKslope may be calculated instead of the clock error per unit time (CLKslope) described above.

<往復遅延法による最小往復伝送遅延値の抽出処理>
次に、図8を参照して、本実施形態における往復遅延法による往復伝送遅延値RDTの最小値を抽出する処理の詳細について説明する。
図8は、本実施形態における往復遅延法による往復伝送遅延値RDTの最小値を抽出する一例を示す図である。
この図に示す例では、送受信部20を介して時刻取得部51が取得したN個の往復メッセージにおける送信時刻(T1、T3)、受信時刻(T2、T4)、往路伝送遅延値d1、及び復路伝送遅延値d2の一例を示している。時間差算出部53の最小往復遅延抽出部531は、往復遅延法において、下記の式(4)により、往復伝送遅延値RDTを算出する。
<Extraction process of minimum round trip transmission delay value by round trip delay method>
Next, details of the process of extracting the minimum value of the round trip transmission delay value RDT according to the round trip delay method in the present embodiment will be described with reference to FIG.
FIG. 8 is a diagram showing an example of extracting the minimum value of the round trip transmission delay value RDT by the round trip delay method in the present embodiment.
In the example shown in this figure, the transmission time (T1, T3), the reception time (T2, T4), the forward transmission delay value d1, and the return in the N round-trip messages acquired by the time acquisition unit 51 via the transmission / reception unit 20. An example of the transmission delay value d2 is shown. The minimum round trip delay extraction unit 531 of the time difference calculation unit 53 calculates the round trip transmission delay value RDT by the following equation (4) in the round trip delay method.

RDT=d1+d2 ・・・ (4)   RDT = d1 + d2 (4)

最小往復遅延抽出部531は、「測定1」〜「測定N」のうちで、往復伝送遅延値RDTが最小の往復伝送遅延値を最小往復伝送遅延値(RDTmin)として抽出する。図8に示す例では、「測定3」の往復伝送遅延値RDTが最小値であり、最小往復遅延抽出部531は、この「測定3」の往復伝送遅延値RDTを最小往復伝送遅延値(RDTmin)として抽出する。
なお、最小往復遅延抽出部531は、時刻情報記憶部41が記憶する各往復メッセージに対応する往復伝送遅延値RDTを取得して、最小往復伝送遅延値(RDTmin)を抽出してもよい。
The minimum round trip delay extraction unit 531 extracts, as the minimum round trip transmission delay value (RDTmin), the round trip transmission delay value having the minimum round trip transmission delay value RDT among “measurement 1” to “measurement N”. In the example shown in FIG. 8, the round trip transmission delay value RDT of “measurement 3” is the minimum value, and the minimum round trip delay extraction unit 531 determines the round trip transmission delay value RDT of “measurement 3” as the minimum round trip transmission delay value (RDT min Extracted as).
The minimum round trip delay extraction unit 531 may extract the minimum round trip transmission delay value (RDTmin) by obtaining the round trip transmission delay value RDT corresponding to each round trip message stored in the time information storage unit 41.

<片方向遅延法による最小往復伝送遅延値の抽出処理>
次に、図9を参照して、本実施形態における片方向遅延法による往復伝送遅延値RDTの最小値を抽出する処理の詳細について説明する。
図9は、本実施形態における片方向遅延法による往復伝送遅延値RDTの最小値を抽出する一例を示す図である。
この図に示す例では、送受信部20を介して時刻取得部51が取得したN個の往復メッセージにおける送信時刻(T1、T3r)、受信時刻(T2r、T4)、往路伝送遅延値d1、及び復路伝送遅延値d2の一例を示している。なお、ここでの受信時刻T2r及び送信時刻T3rは、時刻補正部54によって、上述した単位時間当たりのクロック誤差(CLKslope)を利用した下記の式(5)及び式(6)により補正した時刻である。
<Extraction of minimum round trip transmission delay value by one-way delay method>
Next, with reference to FIG. 9, the details of the process of extracting the minimum value of the round trip transmission delay value RDT by the one-way delay method in the present embodiment will be described.
FIG. 9 is a diagram showing an example of extracting the minimum value of the round trip transmission delay value RDT according to the one-way delay method in the present embodiment.
In the example shown in this figure, the transmission time (T1, T3r), the reception time (T2r, T4), the forward transmission delay value d1, and the return in the N round-trip messages acquired by the time acquisition unit 51 via the transmission / reception unit 20. An example of the transmission delay value d2 is shown. Here, the reception time T2r and the transmission time T3r are the times corrected by the time correction unit 54 according to the following equations (5) and (6) using the clock error (CLKslope) per unit time described above. is there.

T2r=T2+(T1−T0)×CLKslope ・・・ (5)
T3r=T3+(T1−T0)×CLKslope ・・・ (6)
T2r = T2 + (T1-T0) × CLKslope (5)
T3r = T3 + (T1−T0) × CLKslope (6)

ここで、変数T0は、基準時刻である。
時間差算出部53の最小往復遅延抽出部531は、片方向遅延法において、時刻補正部54に上記の式(5)及び式(6)により補正した受信時刻T2r及び送信時刻T3rを各往復メッセージに対して算出させる。そして、最小往復遅延抽出部531は、下記の式(7)及び式(8)により、往路伝送遅延値d1、及び復路伝送遅延値d2を各往復メッセージに対して算出する。
Here, the variable T0 is a reference time.
In the one-way delay method, the minimum round trip delay extraction unit 531 of the time difference calculation unit 53 causes the time correction unit 54 to use the reception time T2r and the transmission time T3r corrected by the above equations (5) and (6) Calculate it against. Then, the minimum round trip delay extraction unit 531 calculates the forward path transmission delay value d1 and the backward path transmission delay value d2 for each round trip message according to the following equations (7) and (8).

d1=T2r−T1 ・・・ (7)
d2=T4−T3r ・・・ (8)
d1 = T2r-T1 (7)
d2 = T4-T3r (8)

最小往復遅延抽出部531は、「測定1」〜「測定N」のうちで、往路伝送遅延値d1が最小の往路伝送遅延値を最小往路伝送遅延値(d1min)として抽出する。図9に示す例では、最小往復遅延抽出部531は、「測定3」の往路伝送遅延値d1を最小往路伝送遅延値(d1min)として抽出する。
また、最小往復遅延抽出部531は、「測定1」〜「測定N」のうちで、復路伝送遅延値d2が最小の復路伝送遅延値を最小復路伝送遅延値(d2min)として抽出する。図9に示す例では、最小往復遅延抽出部531は、「測定1」の復路伝送遅延値d2を最小復路伝送遅延値(d2min)として抽出する。
最小往復遅延抽出部531は、抽出した最小往路伝送遅延値(d1min)と、最小復路伝送遅延値(d2min)とに基づいて、下記の式(9)により、最小往復伝送遅延値(RDTmin)を算出する。
The minimum round trip delay extraction unit 531 extracts the forward path transmission delay value having the smallest forward path transmission delay value d1 as the minimum forward path transmission delay value (d1 min) among “measurement 1” to “measurement N”. In the example illustrated in FIG. 9, the minimum round trip delay extraction unit 531 extracts the forward transmission delay value d1 of "measurement 3" as the minimum forward transmission delay value (d1 min).
Further, the minimum round trip delay extraction unit 531 extracts a return transmission delay value with the smallest return path transmission delay value d2 among the “measurement 1” to “measurement N” as the minimum return path transmission delay value (d2 min). In the example shown in FIG. 9, the minimum round trip delay extraction unit 531 extracts the return transmission delay value d2 of “measurement 1” as the minimum return transmission delay value (d2 min).
The minimum round trip delay extraction unit 531 calculates the minimum round trip transmission delay value (RDTmin) according to the following equation (9) based on the extracted minimum forward path transmission delay value (d1 min) and the minimum return path transmission delay value (d2 min) calculate.

RDTmin=d1min+d2min ・・・ (9)   RDTmin = d1min + d2min (9)

<装置間時間差の算出処理>
次に、図10を参照して、最小往復伝送遅延値(RDTmin)から装置間時間差(dt)を算出する処理について説明する。
図10は、本実施形態における装置間時間差の算出処理の一例を示す図である。
この図では、受信時刻T2から送信時刻T3までのNW装置200の内部処理期間を除外して往復メッセージを表現しており、最小往復伝送遅延値(RDTmin)は、往路伝送遅延値d1と復路伝送遅延値d2との和として表される。
時間差算出部53の装置間時間差算出部532は、最小往復伝送遅延値(RDTmin)に基づいて、下記の式(10)により、往路伝送遅延値d1と復路伝送遅延値d2とが等しいと仮定した場合の仮定片方向遅延値dxを算出する。
<Calculation processing of inter-device time difference>
Next, with reference to FIG. 10, a process of calculating the inter-device time difference (dt) from the minimum round trip transmission delay value (RDTmin) will be described.
FIG. 10 is a diagram showing an example of the process of calculating the inter-device time difference in the present embodiment.
In this figure, the round trip message is expressed excluding the internal processing period of the NW apparatus 200 from the reception time T2 to the transmission time T3, and the minimum round trip transmission delay value (RDTmin) is the forward transmission delay value d1 and the return transmission It is expressed as the sum of the delay value d2.
The inter-device time difference calculation unit 532 of the time difference calculation unit 53 assumed that the forward transmission delay value d1 and the backward transmission delay value d2 are equal by the following equation (10) based on the minimum round trip transmission delay value (RDTmin) The hypothetical one-way delay value dx of the case is calculated.

dx=RDTmin/2 ・・・ (10)   dx = RDTmin / 2 ... (10)

また、装置間時間差算出部532は、算出した仮定片方向遅延値dxに基づいて、下記の式(11)により、装置間時間差(dt)を算出する。   Further, the inter-device time difference calculation unit 532 calculates an inter-device time difference (dt) according to the following equation (11) based on the calculated one-way delay value dx.

dt=(d1−dx)又は(dx−d2) ・・・ (11)   dt = (d1−dx) or (dx−d2) (11)

なお、装置間時間差(dt)の算出に、最小往復伝送遅延値(RDTmin)を用いる理由は、伝送遅延による仮定片方向遅延値dxの計算誤差を小さくするためである。
装置間時間差算出部532は、算出した装置間時間差(dt)を補正情報記憶部42に記憶させる。なお、装置間時間差算出部532は、装置間時間差(dt)を算出する一連の処理で用いた送信時刻T1(例えば、図8の「測定3」の送信時刻T1など)を基準時刻T0として再設定して、補正情報記憶部42に記憶させる。
The reason for using the minimum round trip transmission delay value (RDTmin) to calculate the inter-device time difference (dt) is to reduce the calculation error of the assumed one-way delay value dx due to the transmission delay.
The inter-apparatus time difference calculation unit 532 stores the calculated inter-apparatus time difference (dt) in the correction information storage unit 42. The inter-device time difference calculation unit 532 uses the transmission time T1 (for example, the transmission time T1 of "measurement 3" in FIG. 8) used in the series of processes for calculating the inter-device time difference (dt) as the reference time T0. The setting is made to be stored in the correction information storage unit 42.

<時刻補正処理、及び片方向遅延の算出処理>
次に、時刻補正部54による時刻補正処理、及び遅延算出部55による片方向遅延の算出処理の詳細について説明する。
時刻補正部54は、補正情報記憶部42が記憶する基準時刻T0、クロック誤差(CLKslope)、及び装置間時間差(dt)に基づいて、下記の式(12)及び式(13)により、NW装置200の受信時刻T2及び送信時刻T3を補正する。
<Time correction processing and calculation processing of one-way delay>
Next, the details of the time correction process by the time correction unit 54 and the calculation process of the one-way delay by the delay calculation unit 55 will be described.
The time correction unit 54 uses the NW device according to the following equation (12) and (13) based on the reference time T0 stored in the correction information storage unit 42, the clock error (CLKslope), and the inter-device time difference (dt). The reception time T2 and the transmission time T3 of 200 are corrected.

T2s=T2+(T1−T0)×CLKslope+dt ・・・ (12)
T3s=T3+(T1−T0)×CLKslope+dt ・・・ (13)
T2s = T2 + (T1-T0) × CLKslope + dt (12)
T3s = T3 + (T1−T0) × CLKslope + dt (13)

ここで、変数T2sは、補正した受信時刻T2を示し、変数T3sは、補正した送信時刻T3を示している。
次に、遅延算出部55は、時刻補正部54が補正した受信時刻T2s及び送信時刻T3sと、補正していないNW装置100の送信時刻T1及び受信時刻T4とに基づいて、下記の式(14)及び式(15)により、往路の片方向遅延値及び復路の片方向遅延値を算出する。
Here, the variable T2s indicates the corrected reception time T2, and the variable T3s indicates the corrected transmission time T3.
Next, based on the reception time T2s and the transmission time T3s corrected by the time correction unit 54, and the transmission time T1 and the reception time T4 of the NW device 100 not corrected, the delay calculation unit 55 And the one-way delay value of the return path and the one-way delay value of the return path are calculated by the equation (15).

(往路の片方向遅延値)=T2s−T1 ・・・ (14)
(復路の片方向遅延値)=T4−T3s ・・・ (15)
(One way delay value of the outward path) = T2s−T1 (14)
(One-way delay value of return path) = T4-T3s (15)

次に、図11〜図13を参照して、本実施形態による遅延測定システム1の動作について説明する。
図11は、本実施形態の遅延測定システム1による遅延測定方法の一例を示すフローチャートである。
この図において、まず、遅延測定装置10は、クロック誤差の算出処理を実行する(ステップS101)。遅延測定装置10のクロック誤差算出部52は、上述したように、単位時間当たりのクロック誤差(CLKslope)を算出し、算出したクロック誤差(CLKslope)を補正情報記憶部42に記憶させる。なお、ステップS101の処理の詳細については、図12を参照して後述する。
The operation of the delay measurement system 1 according to the present embodiment will now be described with reference to FIGS.
FIG. 11 is a flowchart showing an example of a delay measurement method by the delay measurement system 1 of the present embodiment.
In this figure, first, the delay measurement apparatus 10 executes a process of calculating a clock error (step S101). As described above, the clock error calculation unit 52 of the delay measurement device 10 calculates the clock error (CLKslope) per unit time, and stores the calculated clock error (CLKslope) in the correction information storage unit 42. The details of the process of step S101 will be described later with reference to FIG.

次に、遅延測定装置10は、装置間時間差の算出処理を実行する(ステップS102)。遅延測定装置10の時間差算出部53は、上述したように、装置間時間差(dt)を算出し、算出した装置間時間差(dt)を補正情報記憶部42に記憶させる。なお、ステップS102の処理の詳細については、図13を参照して後述する。   Next, the delay measuring device 10 executes an inter-device time difference calculation process (step S102). As described above, the time difference calculation unit 53 of the delay measurement device 10 calculates the inter-device time difference (dt), and stores the calculated inter-device time difference (dt) in the correction information storage unit 42. The details of the process of step S102 will be described later with reference to FIG.

次に、遅延測定装置10は、NW装置100とNW装置200との間の往復メッセージを送受信させる(ステップS103)。遅延測定装置10の送受信部20は、例えば、ネットワークNW1を介してNW装置200との間で往復メッセージを送受信する。   Next, the delay measuring device 10 transmits and receives a round trip message between the NW device 100 and the NW device 200 (step S103). The transmission and reception unit 20 of the delay measurement device 10 transmits and receives, for example, a round trip message to and from the NW device 200 via the network NW1.

次に、遅延測定装置10は、送信時刻と受信時刻とを取得する(ステップS104)。すなわち、遅延測定装置10の時刻取得部51が、往復メッセージにおける送信時刻(T1、T3)と受信時刻(T2、T4)とを取得し、時刻情報記憶部41に記憶させる。   Next, the delay measuring device 10 acquires the transmission time and the reception time (step S104). That is, the time acquisition unit 51 of the delay measurement device 10 acquires the transmission time (T 1, T 3) and the reception time (T 2, T 4) in the reciprocation message and stores the time in the time information storage unit 41.

次に、遅延測定装置10は、送信時刻と受信時刻とを補正する(ステップS105)。すなわち、遅延測定装置10の時刻補正部54は、補正情報記憶部42が記憶するクロック誤差(CLKslope)、基準時刻T0、及び装置間時間差(dt)に基づいて、NW装置200の受信時刻T2及び送信時刻T3をNW装置200の時刻に一致(同期)させる補正する。時刻補正部54は、例えば、上述した式(12)及び式(13)に基づいて、受信時刻T2及び送信時刻T3を補正する。   Next, the delay measuring device 10 corrects the transmission time and the reception time (step S105). That is, the time correction unit 54 of the delay measurement device 10 receives the reception time T2 of the NW device 200, based on the clock error (CLKslope) stored in the correction information storage unit 42, the reference time T0, and the inter-device time difference (dt). The transmission time T3 is corrected to match (synchronize) with the time of the NW device 200. The time correction unit 54 corrects, for example, the reception time T2 and the transmission time T3 based on the above-described equations (12) and (13).

次に、遅延測定装置10は、片方向遅延値を算出する(ステップS106)。すなわち、遅延測定装置10の遅延算出部55は、例えば、上述した式(14)及び式(15)に基づいて、往路の片方向遅延値、及び復路の片方向遅延値を算出する。   Next, the delay measuring device 10 calculates a one-way delay value (step S106). That is, the delay calculation unit 55 of the delay measurement device 10 calculates the one-way delay value of the forward path and the one-way delay value of the backward path, for example, based on the above-mentioned equations (14) and (15).

次に、遅延算出部55は、算出した片方向遅延値が有効であるか否かを判定する(ステップS107)。遅延算出部55は、例えば、算出した片方向遅延値が有効な値(正の値)になるか否かにより、片方向遅延値が有効であるか否かを判定する。遅延算出部55は、例えば、片方向遅延値が正の値である場合に、片方向遅延値が有効であると判定し(ステップS107:YES)、処理をステップS108に進める。また、遅延算出部55は、例えば、片方向遅延値が負の値又は“0”である場合に、片方向遅延値が有効でないと判定し(ステップS107:NO)、処理をステップS101に戻し、クロック誤差及び装置間時間差の補正情報の算出を再度実行させる。   Next, the delay calculating unit 55 determines whether the calculated one-way delay value is valid (step S107). The delay calculation unit 55 determines, for example, whether or not the one-way delay value is valid, based on whether or not the calculated one-way delay value becomes a valid value (positive value). For example, when the one-way delay value is a positive value, the delay calculation unit 55 determines that the one-way delay value is valid (step S107: YES), and the process proceeds to step S108. Further, for example, when the one-way delay value is a negative value or “0”, the delay calculation unit 55 determines that the one-way delay value is not valid (step S107: NO), and returns the process to step S101. Calculation of the correction information of the clock error and the inter-device time difference is executed again.

ステップS108において、遅延算出部55は、算出した片方向遅延値(往路の片方向遅延値、及び復路の片方向遅延値)を遅延情報記憶部43に記憶させる。
次に、遅延算出部55は、測定終了であるか否かを判定する(ステップS109)。遅延算出部55は、測定終了である場合(ステップS109:YES)に、処理を終了する。また、遅延算出部55は、測定終了でない場合(ステップS109:NO)に、処理をステップS103に戻し、所定の時間間隔で(定期的に)片方向遅延値を算出する処理を実行させる。
In step S108, the delay calculation unit 55 stores the calculated one-way delay values (one-way delay value for forward pass and one-way delay value for return pass) in the delay information storage unit 43.
Next, the delay calculating unit 55 determines whether the measurement is completed (step S109). The delay calculating unit 55 ends the process when the measurement is ended (step S109: YES). In addition, when the measurement is not completed (step S109: NO), the delay calculation unit 55 returns the process to step S103, and executes the process of calculating the one-way delay value (periodically) at predetermined time intervals.

次に、図12を参照して、上述した図11のステップS101の処理について詳細に説明する。
図12は、本実施形態によるクロック誤差の算出処理の一例を示すフローチャートである。
図12に示すように、遅延測定装置10は、往復メッセージの送受信(N回測定)を行う(ステップS201)。すなわち、遅延測定装置10のクロック誤差算出部52は、例えば、時刻取得部51に送受信部20を介して往復メッセージをN回送受信させる。
Next, the process of step S101 of FIG. 11 described above will be described in detail with reference to FIG.
FIG. 12 is a flowchart showing an example of the calculation process of the clock error according to the present embodiment.
As shown in FIG. 12, the delay measuring device 10 performs transmission and reception (N times of measurement) of the round trip message (step S201). That is, for example, the clock error calculation unit 52 of the delay measurement device 10 causes the time acquisition unit 51 to transmit and receive the round trip message N times via the transmission and reception unit 20.

次に、クロック誤差算出部52は、時刻取得部51を介してN個の往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)を取得する(ステップS202)。具体的には、クロック誤差算出部52は、時刻取得部51が時刻情報記憶部41に記憶させた送信時刻(T1、T3)及び受信時刻(T2、T4)を取得する。   Next, the clock error calculation unit 52 acquires the transmission time (T1, T3) and the reception time (T2, T4) in the N round-trip messages via the time acquisition unit 51 (step S202). Specifically, the clock error calculation unit 52 acquires the transmission time (T1, T3) and the reception time (T2, T4) stored in the time information storage unit 41 by the time acquisition unit 51.

次に、クロック誤差算出部52は、N個の往復メッセージのうちから2つの往復メッセージを抽出する(ステップS203)。クロック誤差算出部52は、例えば、図7を参照して上述したように、往復伝送遅延値RDTの差が最小となる少なくとも2つの往復メッセージを選択する。   Next, the clock error calculation unit 52 extracts two round trip messages from the N round trip messages (step S203). For example, as described above with reference to FIG. 7, the clock error calculation unit 52 selects at least two round-trip messages in which the difference between the round-trip transmission delay values RDT is minimized.

次に、クロック誤差算出部52は、クロック誤差(CLKslope)を算出する(ステップS204)。クロック誤差算出部52は、例えば、上述した式(2)に基づいて、単位時間当たりのクロック誤差(CLKslope)を算出する。
次に、クロック誤差算出部52は、算出したクロック誤差(CLKslope)を補正情報記憶部42に記憶させる(ステップS205)。ステップS205の処理後に、クロック誤差算出部52は、図11のステップS101の処理を終了する。
Next, the clock error calculation unit 52 calculates a clock error (CLKslope) (step S204). The clock error calculation unit 52 calculates a clock error (CLKslope) per unit time based on, for example, the above-mentioned equation (2).
Next, the clock error calculation unit 52 stores the calculated clock error (CLKslope) in the correction information storage unit 42 (step S205). After the process of step S205, the clock error calculation unit 52 ends the process of step S101 of FIG.

次に、図13を参照して、上述した図11のステップS102の処理について詳細に説明する。
図13は、本実施形態による装置間時間差の算出処理の一例を示すフローチャートである。
図13に示すように、遅延測定装置10は、往復メッセージの送受信(N回測定)を行う(ステップS301)。すなわち、遅延測定装置10の時間差算出部53は、例えば、時刻取得部51に送受信部20を介して往復メッセージをN回送受信させる。
Next, the process of step S102 in FIG. 11 described above will be described in detail with reference to FIG.
FIG. 13 is a flowchart showing an example of the process of calculating the inter-device time difference according to the present embodiment.
As shown in FIG. 13, the delay measuring device 10 performs transmission and reception (N times of measurement) of the round trip message (step S301). That is, for example, the time difference calculation unit 53 of the delay measurement device 10 causes the time acquisition unit 51 to transmit and receive the round trip message N times via the transmission and reception unit 20.

次に、時間差算出部53は、時刻取得部51を介してN個の往復メッセージにおける送信時刻(T1、T3)及び受信時刻(T2、T4)を取得する(ステップS302)。具体的には、時間差算出部53は、時刻取得部51が時刻情報記憶部41に記憶させた送信時刻(T1、T3)及び受信時刻(T2、T4)を取得する。   Next, the time difference calculation unit 53 acquires the transmission time (T1, T3) and the reception time (T2, T4) in the N round trip messages via the time acquisition unit 51 (step S302). Specifically, the time difference calculation unit 53 acquires the transmission time (T1, T3) and the reception time (T2, T4) stored in the time information storage unit 41 by the time acquisition unit 51.

次に、時間差算出部53の最小往復遅延抽出部531は、指定測定方法により処理を分岐させる(ステップS303)。最小往復遅延抽出部531は、ユーザから入力部30を介して受け付けた指定測定方法が“往復遅延法”である場合に、処理をステップS304に進める。また、最小往復遅延抽出部531は、ユーザから入力部30を介して受け付けた指定測定方法が“片方向遅延法”である場合に、処理をステップS305に進める。   Next, the minimum round trip delay extraction unit 531 of the time difference calculation unit 53 branches the process according to the designated measurement method (step S303). The minimum round trip delay extraction unit 531 advances the process to step S304 when the designated measurement method received from the user via the input unit 30 is the “round trip delay method”. In addition, when the designated measurement method received from the user via the input unit 30 is the “one-way delay method”, the minimum round trip delay extraction unit 531 proceeds to step S305.

ステップS304(“往復遅延法”の場合)において、最小往復遅延抽出部531は、1つの往復メッセージによる往復伝送遅延値RDTの最小値(最小往復伝送遅延値(RDTmin))を抽出する。すなわち、最小往復遅延抽出部531は、例えば、図8を参照して上述したように、最小往復伝送遅延値(RDTmin)を抽出する。ステップS304の処理後に、最小往復遅延抽出部531は、処理をステップS309に進める。   In step S304 (in the case of the “round trip delay method”), the minimum round trip delay extraction unit 531 extracts the minimum value (minimum round trip transmission delay value (RDTmin)) of the round trip transmission delay value RDT based on one round trip message. That is, the minimum round trip delay extraction unit 531 extracts the minimum round trip transmission delay value (RDTmin), for example, as described above with reference to FIG. After the process of step S304, the minimum round trip delay extraction unit 531 advances the process to step S309.

ステップS305(“片方向遅延法”の場合)において、最小往復遅延抽出部531は、取得した送信時刻T3と受信時刻T2とのクロック誤差を補正する。すなわち、最小往復遅延抽出部531は、例えば、図9を参照して上述したように、式(5)及び式(6)により、受信時刻T2及び送信時刻T3を補正する。   In step S305 (in the case of the “one-way delay method”), the minimum round trip delay extraction unit 531 corrects the clock error between the acquired transmission time T3 and reception time T2. That is, the minimum round trip delay extraction unit 531 corrects the reception time T2 and the transmission time T3 according to Equations (5) and (6), for example, as described above with reference to FIG.

次に、最小往復遅延抽出部531は、往路伝送遅延値d1の最小値を抽出する(ステップS306)。最小往復遅延抽出部531は、例えば、補正した受信時刻T2である受信時刻T2rと送信時刻T1とに基づいて、上述した式(7)により、各往復メッセージに対応する往路伝送遅延値d1を算出する。最小往復遅延抽出部531は、算出したN個の往路伝送遅延値d1の中から往路伝送遅延値の最小値(d1min)を抽出する。   Next, the minimum round trip delay extraction unit 531 extracts the minimum value of the forward transmission delay value d1 (step S306). The minimum round trip delay extraction unit 531 calculates the forward transmission delay value d1 corresponding to each round trip message according to the above-described equation (7), for example, based on the reception time T2r and the transmission time T1 which are corrected reception time T2. Do. The minimum round trip delay extraction unit 531 extracts the minimum value (d1 min) of the forward transmission delay value from among the calculated N forward transmission delay values d1.

次に、最小往復遅延抽出部531は、復路伝送遅延値d2の最小値を抽出する(ステップS307)。最小往復遅延抽出部531は、例えば、補正した送信時刻T3である送信時刻T3rと受信時刻T4とに基づいて、上述した式(8)により、各往復メッセージに対応する復路伝送遅延値d2を算出する。最小往復遅延抽出部531は、算出したN個の復路伝送遅延値d2の中から復路伝送遅延値の最小値(d2min)を抽出する。   Next, the minimum round trip delay extraction unit 531 extracts the minimum value of the return transmission delay value d2 (step S307). The minimum round trip delay extraction unit 531 calculates, for example, the return transmission delay value d2 corresponding to each round trip message according to the above-described equation (8) based on the transmission time T3r that is the corrected transmission time T3 and the reception time T4. Do. The minimum round trip delay extraction unit 531 extracts the minimum value (d2 min) of the return transmission delay value from among the calculated N return transmission delay values d2.

次に、最小往復遅延抽出部531は、最小往復伝送遅延値(RDTmin)を抽出する(ステップS308)。すなわち、最小往復遅延抽出部531は、上述した式(9)により、往路伝送遅延値の最小値(d1min)と復路伝送遅延値の最小値(d2min)と加算して、最小往復伝送遅延値(RDTmin)を算出する。ステップS308の処理後に、最小往復遅延抽出部531は、処理をステップS309に進める。   Next, the minimum round trip delay extraction unit 531 extracts the minimum round trip transmission delay value (RDTmin) (step S308). That is, the minimum round trip transmission delay value (D1min) and the minimum value (d2min) of the return path transmission delay value are added by the minimum round trip delay extraction unit 531 according to the above-described equation (9) Calculate RDTmin). After the process of step S308, the minimum round trip delay extraction unit 531 advances the process to step S309.

ステップS309において、時間差算出部53の装置間時間差算出部532は、仮定の片方向遅延値(仮定片方向遅延値dx)を算出する。すなわち、装置間時間差算出部532は、上述した式(10)に基づいて、仮定片方向遅延値dxを算出する。
なお、最小往復遅延抽出部531は、各方法を用いて、最小往復伝送遅延値(RDTmin)を抽出する際、各伝送遅延値の最小値を複数抽出した場合に、その中から往路パケットのTTLと復路パケットのTTLとが等しい往復メッセージから各最小値を抽出してもよい。例えば、ステップS304において、最小往復遅延抽出部531は、複数の往復メッセージから往復伝送遅延値の最小値が抽出された場合に、往路パケットのTTLと復路パケットのTTLとが等しい往復メッセージの往復伝送遅延値を往復伝送遅延値の最小値として抽出してもよい。これにより、遅延測定装置10は、装置間の伝送遅延をより精度よく測定することができる。
In step S309, the inter-apparatus time difference calculation unit 532 of the time difference calculation unit 53 calculates an assumed one-way delay value (hypothesis one-way delay value dx). That is, the inter-device time difference calculation unit 532 calculates the hypothetical one-way delay value dx based on the above-described equation (10).
When extracting the minimum round trip transmission delay value (RDTmin) using each method, the minimum round trip delay extraction unit 531 extracts TTL of the minimum value of each transmission delay value, and the TTL of the forward packet is selected from among them. Each minimum value may be extracted from the round trip message in which the TTL of the return packet and the return packet are equal. For example, in step S304, when the minimum value of the round trip transmission delay value is extracted from the plurality of round trip messages, the minimum round trip delay extraction unit 531 round trip transmission of the round trip message in which the TTL of the forward packet and the TTL of the return packet are equal. The delay value may be extracted as the minimum value of the round trip transmission delay value. Thereby, the delay measurement device 10 can measure the transmission delay between devices more accurately.

次に、装置間時間差算出部532は、装置間時間差(dt)を算出する(ステップS310)。すなわち、装置間時間差算出部532は、上述した式(11)に基づいて、装置間時間差(dt)を算出する。   Next, the inter-device time difference calculation unit 532 calculates an inter-device time difference (dt) (step S310). That is, the inter-device time difference calculation unit 532 calculates the inter-device time difference (dt) based on the above-mentioned equation (11).

次に、装置間時間差算出部532は、算出した装置間時間差(dt)を補正情報記憶部42に記憶させる(ステップS311)。ステップS311の処理後に、装置間時間差算出部532は、図11のステップS102の処理を終了する。   Next, the inter-apparatus time difference calculation unit 532 stores the calculated inter-apparatus time difference (dt) in the correction information storage unit 42 (step S311). After the process of step S311, the inter-apparatus time difference calculation unit 532 ends the process of step S102 of FIG.

以上説明したように、本実施形態による遅延測定方法は、送受信ステップと、誤差算出ステップと、補正ステップとを含んでいる。送受信ステップにおいて、送受信部20が、NW装置100(第1の装置)とNW装置200(第2の装置)との間で往復する往復メッセージを繰り返し送受信して、往復メッセージにおけるNW装置100とNW装置200とのそれぞれの送信時刻及び受信時刻を測定する。誤差算出ステップにおいて、クロック誤差算出部52が、NW装置100から送信される2つの送信メッセージにおける送信時刻の時間差と、NW装置200で受信される2つの送信メッセージにおける受信時刻の時間差とに基づいて、NW装置100とNW装置200との間の単位時間当たりのクロック誤差(CLKslope)を算出する。補正ステップにおいて、時刻補正部54が、少なくとも単位時間当たりのクロック誤差に基づいて、往復メッセージの送信時刻及び受信時刻を補正する。
これにより、NW装置100が計時する時刻と、NW装置200が計時する時刻との誤差が低減されるので、本実施形態による遅延測定方法は、例えば、NW装置100とNW装置200との間の伝送遅延(例えば、片方向遅延値)を測定する際に、より正確に測定することができる。すなわち、本実施形態による遅延測定方法は、装置間の伝送遅延をより正確に測定することができる。
As described above, the delay measurement method according to the present embodiment includes the transmission / reception step, the error calculation step, and the correction step. In the transmitting and receiving step, the transmitting and receiving unit 20 repeatedly transmits and receives a reciprocating message reciprocating between the NW device 100 (first device) and the NW device 200 (second device), and the NW device 100 and NW in the reciprocating message Each transmission time and reception time with the device 200 are measured. In the error calculation step, the clock error calculation unit 52 calculates the difference between the transmission time of the two transmission messages transmitted from the NW device 100 and the time difference of the reception times of the two transmission messages received by the NW device 200. The clock error (CLKslope) per unit time between the NW device 100 and the NW device 200 is calculated. In the correction step, the time correction unit 54 corrects the transmission time and the reception time of the round trip message based on at least the clock error per unit time.
As a result, an error between the time measured by the NW device 100 and the time measured by the NW device 200 is reduced, so that the delay measurement method according to the present embodiment is, for example, between the NW device 100 and the NW device 200. When measuring transmission delay (e.g., one-way delay value), it can be measured more accurately. That is, the delay measurement method according to the present embodiment can more accurately measure the transmission delay between devices.

なお、本実施形態による遅延測定方法では、継続して遅延測定を行う場合に、遅延測定の度に毎回、装置間のオフセット値(装置間時間差(dt))を測定する必要がないので、処理負荷(計算量)を軽減して、伝送遅延を測定することができる。   In the delay measurement method according to the present embodiment, when performing delay measurement continuously, it is not necessary to measure the offset value (inter-device time difference (dt)) between devices each time delay measurement is performed. The load (computation amount) can be reduced to measure the transmission delay.

また、本実施形態による遅延測定方法は、補正ステップによって補正された送信時刻及び受信時刻に基づいて、NW装置100とNW装置200との間の伝送遅延を推定する推定ステップを含む。
これにより、本実施形態による遅延測定方法は、装置間の伝送遅延をより正確に推定することができる。
In addition, the delay measurement method according to the present embodiment includes an estimation step of estimating a transmission delay between the NW device 100 and the NW device 200 based on the transmission time and the reception time corrected by the correction step.
Thus, the delay measurement method according to the present embodiment can more accurately estimate the transmission delay between devices.

また、本実施形態では、誤差算出ステップは、次の第1のステップ(第1の処理)と、第2のステップ(第2の処理)とを含んでいる。第1のステップにおいて、クロック誤差算出部52が、往復メッセージにおける往復の伝送遅延値(往復伝送遅延値RDT)の差が所定の範囲内である少なくとも2つの往復メッセージを選択する。第2のステップにおいて、クロック誤差算出部52が、第1のステップによって選択された少なくとも2つの往復メッセージのうちの2つの送信メッセージにおける送信時刻の時間差及び受信時刻の時間差に基づいて、クロック誤差(CLKslope)を算出する。
これにより、本実施形態による遅延測定方法は、往復伝送遅延値RDTが近い2つの往復メッセージに基づいて、クロック誤差(CLKslope)を算出する。往復伝送遅延値RDTが近い2つの往復メッセージは、ネットワークNW1上の同一の経路を通過した可能性が高く、さらに、両往復メッセージ間で、往路の伝送遅延値(d1)と、復路の伝送遅延値(d2)が近いことを意味している。そのため、本実施形態による遅延測定方法は、より正確にクロック誤差(CLKslope)を算出することができる。したがって、本実施形態による遅延測定方法は、装置間の伝送遅延をより正確に測定することができる。
Further, in the present embodiment, the error calculation step includes the following first step (first process) and the second step (second process). In the first step, the clock error calculation unit 52 selects at least two round trip messages in which the difference between the round trip transmission delay value (round trip transmission delay value RDT) in the round trip message is within a predetermined range. In the second step, the clock error calculation unit 52 calculates the clock error (based on the time difference between the transmission time and the reception time of the two transmission messages of the at least two round-trip messages selected in the first step). Calculate CLKslope).
Thus, the delay measurement method according to the present embodiment calculates a clock error (CLKslope) based on two round-trip messages having close round-trip transmission delay values RDT. The two round-trip messages whose round-trip transmission delay value RDT is close are likely to have passed the same path on the network NW1, and further, between the two round-trip messages, the forward path transmission delay value (d1) and the backward path transmission delay It means that the value (d2) is close. Therefore, the delay measurement method according to the present embodiment can calculate the clock error (CLKslope) more accurately. Therefore, the delay measurement method according to the present embodiment can more accurately measure the transmission delay between devices.

また、本実施形態では、上述した第1のステップにおいて、クロック誤差算出部52が、複数の往復メッセージのうちから、往復の伝送遅延値の差が最小となる少なくとも2つの往復メッセージを選択する。
これにより、クロック誤差算出部52は、往復伝送遅延値RDTが最も近い2つの往復メッセージに基づいて、クロック誤差(CLKslope)を算出する。そのため、本実施形態による遅延測定方法は、さらに正確にクロック誤差(CLKslope)を算出することができる。
Further, in the present embodiment, in the first step described above, the clock error calculation unit 52 selects at least two round-trip messages of which the difference between the round-trip transmission delay values is minimum from the plurality of round-trip messages.
Thereby, the clock error calculation unit 52 calculates the clock error (CLKslope) based on the two round trip messages having the closest round trip transmission delay value RDT. Therefore, the delay measurement method according to the present embodiment can calculate the clock error (CLKslope) more accurately.

また、本実施形態では、上述した第2のステップにおいて、クロック誤差算出部52が、第1のステップによって選択された往復メッセージが3つ以上である場合に、送信時刻の時間差が最大になる2つの送信メッセージにおける送信時刻の時間差及び受信時刻の時間差に基づいてクロック誤差(CLKslope)を算出する。
送信時刻の時間差が大きい程、クロック誤差(CLKslope)を正確に算出することができるので、これにより、本実施形態による遅延測定方法は、より正確にクロック誤差(CLKslope)を算出することができる。
Further, in the present embodiment, in the second step described above, when the number of round trip messages selected in the first step is three or more, the clock error calculation unit 52 maximizes the time difference between transmission times 2 A clock error (CLKslope) is calculated based on the time difference between the transmission time and the reception time in one transmission message.
Since the clock error (CLKslope) can be calculated more accurately as the time difference between the transmission times is larger, the delay measurement method according to the present embodiment can calculate the clock error (CLKslope) more accurately.

なお、上述した第2のステップにおいて、クロック誤差算出部52は、第1のステップによって選択された往復メッセージが3つ以上である場合に、3つ以上の送信メッセージに基づいて複数のクロック誤差(CLKslope)を算出し、算出した複数のクロック誤差の平均値である平均クロック誤差を算出してもよい。この場合、上述した補正ステップにおいて、時刻補正部54が、平均クロック誤差に基づいて、往復メッセージの送信時刻及び受信時刻を補正する。
これにより、本実施形態による遅延測定方法は、より正確にクロック誤差(CLKslope)を算出することができ、往復メッセージの送信時刻及び受信時刻をより精度よく補正することができる。
In the second step described above, when the number of round trip messages selected in the first step is three or more, the clock error calculation unit 52 generates a plurality of clock errors (based on three or more transmission messages). CLKslope) may be calculated, and an average clock error which is an average value of the calculated plurality of clock errors may be calculated. In this case, in the correction step described above, the time correction unit 54 corrects the transmission time and reception time of the reciprocation message based on the average clock error.
Thus, the delay measurement method according to the present embodiment can calculate the clock error (CLKslope) more accurately, and can correct the transmission time and reception time of the reciprocation message more accurately.

また、本実施形態による遅延測定方法は、時間差算出ステップを含んでいる。時間差算出ステップにおいて、時間差算出部53が、送信時刻及び受信時刻に基づいて、往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値(最小往復伝送遅延値(RDTmin))を抽出する。さらに、時間差算出部53は、時間差算出ステップにおいて、抽出した当該最小値に基づいて、NW装置100とNW装置200との基準時刻における時間差を示す装置間時間差(dt)を算出する。そして、上述した補正ステップにおいて、時刻補正部54が、クロック誤差(CLKslope)と、装置間時間差(dt)とに基づいて、往復メッセージの送信時刻及び受信時刻を補正する。
これにより、本実施形態による遅延測定方法は、往復メッセージの送信時刻及び受信時刻をさらに精度よく補正することができる。したがって、本実施形態による遅延測定方法は、装置間の伝送遅延をさらに正確に測定することができる。
In addition, the delay measurement method according to the present embodiment includes a time difference calculation step. In the time difference calculation step, the time difference calculation unit 53 extracts the minimum value (minimum round trip transmission delay value (RDTmin)) of the round trip transmission delay value, which is the round trip transmission delay value in the round trip message, based on the transmission time and reception time. . Furthermore, in the time difference calculation step, the time difference calculation unit 53 calculates an inter-apparatus time difference (dt) indicating the time difference between the NW device 100 and the NW device 200 at the reference time, based on the extracted minimum value. Then, in the correction step described above, the time correction unit 54 corrects the transmission time and the reception time of the reciprocation message based on the clock error (CLKslope) and the inter-device time difference (dt).
Thus, the delay measurement method according to the present embodiment can more accurately correct the transmission time and reception time of the reciprocation message. Therefore, the delay measurement method according to the present embodiment can more accurately measure the transmission delay between devices.

また、本実施形態では、上述した時間差算出ステップにおいて、時間差算出部53は、複数の往復メッセージのうち、1つの往復メッセージにおける往復伝送遅延値が最小となる往復メッセージに対応する往復伝送遅延値を、最小往復伝送遅延値(RDTmin)として抽出する(往復遅延法)。
これにより、本実施形態による遅延測定方法は、簡易な手段により精度よく最小往復伝送遅延値(RDTmin)を抽出することができる。
Further, in the present embodiment, in the above-described time difference calculation step, the time difference calculation unit 53 determines the round trip transmission delay value corresponding to the round trip message with the smallest round trip transmission delay value in one round trip message among the plurality of round trip messages. , As the minimum round trip transmission delay value (RDTmin) (round trip delay method).
Thus, the delay measurement method according to the present embodiment can extract the minimum round trip transmission delay value (RDTmin) with high accuracy by a simple means.

また、本実施形態では、上述した時間差算出ステップにおいて、時間差算出部53は、複数の往復メッセージに対応する複数の往路の伝送遅延値のうちの最小となる往路の伝送遅延値(d1min)と、複数の往復メッセージに対応する複数の復路の伝送遅延値のうちの最小となる復路の伝送遅延値(d2min)との加算値を最小往復伝送遅延値(RDTmin)として抽出する。
これにより、本実施形態による遅延測定方法は、往路と復路とのそれぞれの伝送遅延値の最小値に基づいて、最小往復伝送遅延値(RDTmin)を抽出するので、より正確に最小往復伝送遅延値(RDTmin)として抽出することができる。
Further, in the present embodiment, in the above-described time difference calculation step, the time difference calculation unit 53 determines the forward transmission delay value (d1 min) among the plurality of forward transmission delay values corresponding to the plurality of reciprocating messages, The sum of the transmission delay value (d2min) of the return path which is the minimum among the transmission delay values of the plurality of return paths corresponding to the plurality of return messages is extracted as the minimum roundtrip transmission delay value (RDTmin).
Thus, the delay measurement method according to the present embodiment extracts the minimum round trip transmission delay value (RDTmin) based on the minimum value of the transmission delay value for each of the forward path and the return path. It can be extracted as (RDTmin).

また、本実施形態では、上述した時間差算出ステップにおいて、時間差算出部53は、クロック誤差(CLKslope)に基づき補正された送信時刻及び受信時刻に基づいて、最小往復伝送遅延値(RDTmin)を抽出する。
これにより、本実施形態による遅延測定方法は、補正された精度の良い送信時刻及び受信時刻に基づいて最小往復伝送遅延値(RDTmin)を抽出するので、さらに正確に最小往復伝送遅延値(RDTmin)として抽出することができる。
Further, in the present embodiment, in the above-described time difference calculating step, the time difference calculating unit 53 extracts the minimum round trip transmission delay value (RDTmin) based on the transmission time and the reception time corrected based on the clock error (CLKslope). .
Thus, the delay measurement method according to the present embodiment extracts the minimum round trip transmission delay value (RDTmin) based on the corrected accurate transmission time and reception time, so that the minimum round trip transmission delay value (RDTmin) can be more accurately determined. Can be extracted as

また、本実施形態による遅延測定装置10は、時刻取得部51と、クロック誤差算出部52と、時刻補正部54とを備えている。時刻取得部51は、NW装置100とNW装置200との間で往復する往復メッセージを繰り返し送受信させ、往復メッセージにおけるNW装置100とNW装置200とのそれぞれの送信時刻及び受信時刻を取得する。クロック誤差算出部52は、NW装置100から送信される2つの送信メッセージにおける送信時刻の時間差と、NW装置200で受信される2つの送信メッセージにおける受信時刻の時間差とに基づいて、NW装置100とNW装置200との間の単位時間当たりのクロック誤差(CLKslope)を算出する。そして、時刻補正部54は、少なくとも単位時間当たりのクロック誤差(CLKslope)に基づいて、往復メッセージの送信時刻及び受信時刻を補正する。
これにより、本実施形態による遅延測定装置10は、上述した本実施形態による遅延測定方法と同様の効果を奏し、装置間の伝送遅延をより正確に測定することができる。また、本実施形態による遅延測定システム1は、遅延測定装置10を備えているので、遅延測定装置10と同様の効果を奏し、装置間の伝送遅延をより正確に測定することができる。
Further, the delay measurement device 10 according to the present embodiment includes a time acquisition unit 51, a clock error calculation unit 52, and a time correction unit 54. The time acquisition unit 51 repeatedly transmits and receives a reciprocating message between the NW device 100 and the NW device 200, and acquires transmission time and reception time of the NW device 100 and the NW device 200 in the reciprocating message. The clock error calculation unit 52 calculates the difference between the transmission time of the two transmission messages transmitted from the NW device 100 and the time difference of the reception times of the two transmission messages received by the NW device 200, The clock error (CLKslope) per unit time with the NW device 200 is calculated. Then, the time correction unit 54 corrects the transmission time and the reception time of the round trip message based on at least the clock error (CLKslope) per unit time.
As a result, the delay measurement apparatus 10 according to the present embodiment has the same effects as the above-described delay measurement method according to the present embodiment, and can more accurately measure the transmission delay between the apparatuses. Moreover, since the delay measurement system 1 according to the present embodiment includes the delay measurement device 10, the same effect as the delay measurement device 10 can be obtained, and the transmission delay between the devices can be measured more accurately.

[第2の実施形態]
次に、第2の実施形態による遅延想定方法、及び遅延測定システムについて、図面を参照して説明する。
図14は、本実施形態による遅延測定システム1a及び遅延測定装置10aの一例を示すブロック図である。
Second Embodiment
Next, a delay estimation method and a delay measurement system according to a second embodiment will be described with reference to the drawings.
FIG. 14 is a block diagram showing an example of the delay measurement system 1a and the delay measurement device 10a according to the present embodiment.

この図に示すように、遅延測定システム1aは、ネットワークNW1を介して接続されているNW装置100a(第1の装置の一例)と、NW装置200(第1の装置の一例)とを備えている。また、NW装置100aは、遅延測定装置10aと、送受信部20と、入力部30とを備えている。
なお、この図において、図1に示す構成と同一の構成については同一の符号を付し、その説明を省略する。
As shown in this figure, the delay measurement system 1a includes the NW device 100a (an example of a first device) connected via the network NW1 and the NW device 200 (an example of a first device) There is. The NW device 100 a further includes a delay measurement device 10 a, a transmitting / receiving unit 20, and an input unit 30.
In addition, in this figure, the same code | symbol is attached | subjected about the structure same as the structure shown in FIG. 1, The description is abbreviate | omitted.

遅延測定装置10aは、例えば、NW装置100aとNW装置200との間の伝送遅延を測定するための装置であり、記憶部40と、制御部50aとを備えている。
制御部50aは、例えば、CPUなどを含むプロセッサであり、NW装置100a(遅延測定装置10a)を統括的に制御する。制御部50aは、時刻取得部51と、クロック誤差算出部52と、時間差算出部53と、時刻補正部54と、遅延算出部55と、補正情報更新部56とを備えている。
本実施形態では、遅延測定装置10aが、補正情報更新部56を備える点が、第1の実施形態と異なる。
The delay measurement device 10a is, for example, a device for measuring the transmission delay between the NW device 100a and the NW device 200, and includes a storage unit 40 and a control unit 50a.
The control unit 50a is, for example, a processor including a CPU, and centrally controls the NW device 100a (the delay measurement device 10a). The control unit 50a includes a time acquisition unit 51, a clock error calculation unit 52, a time difference calculation unit 53, a time correction unit 54, a delay calculation unit 55, and a correction information update unit 56.
The present embodiment is different from the first embodiment in that the delay measurement device 10 a includes a correction information update unit 56.

補正情報更新部56は、定期的に往復メッセージを監視して、補正情報記憶部42が記憶する補正情報(クロック誤差(CLKslope)、基準時刻T0、装置間時間差(dt))を更新する。補正情報更新部56は、例えば、片方向遅延値を測定する際の往復メッセージに、クロック誤差測定の条件(上述した(条件1)、及び(条件2))に一致する往復メッセージがあるか否かを判定する。補正情報更新部56は、クロック誤差の測定条件に一致する往復メッセージがある場合に、当該往復メッセージを上述した図7の「測定N」として用いて、クロック誤差算出部52に単位時間当たりのクロック誤差(CLKslope)の算出をさせる。補正情報更新部56は、クロック誤差算出部52によって算出されたクロック誤差(CLKslope)を、補正情報記憶部42に記憶させる。   The correction information updating unit 56 periodically monitors the round trip message, and updates the correction information (clock error (CLKslope), reference time T0, inter-device time difference (dt)) stored in the correction information storage unit 42. For example, the correction information updating unit 56 determines whether or not there is a round-trip message that matches the conditions for clock error measurement ((condition 1) and (condition 2) above) in the round-trip message when measuring the one-way delay value. Determine if When there is a round trip message matching the measurement condition of the clock error, the correction information update unit 56 uses the round trip message as the “measurement N” of FIG. Calculate the error (CLKslope). The correction information update unit 56 stores the clock error (CLKslope) calculated by the clock error calculation unit 52 in the correction information storage unit 42.

また、補正情報更新部56は、上述した再計算したクロック誤差(CLKslope)が、前回のクロック誤差(CLKslope)と比較して所定の値(例えば、±20%)以上変動した場合には、NTP(Network Time Protocol)などによりNW装置200の時刻が再設定されたものと判定する。補正情報更新部56は、この場合、クロック誤差算出部52及び時間差算出部53に、クロック誤差(CLKslope)、基準時刻T0、装置間時間差(dt)を再び算出及び設定させて、補正情報記憶部42に記憶させる。   The correction information updating unit 56 also changes the NTP when the recalculated clock error (CLKslope) changes by a predetermined value (for example, ± 20%) or more as compared with the previous clock error (CLKslope). It is determined that the time of the NW device 200 has been reset by (Network Time Protocol) or the like. In this case, the correction information update unit 56 causes the clock error calculation unit 52 and the time difference calculation unit 53 to calculate and set again the clock error (CLKslope), the reference time T0, and the inter-apparatus time difference (dt). Make it memorize in 42.

また、補正情報更新部56は、例えば、片方向遅延値を測定する際の往復メッセージに、現在の装置間時間差(dt)を算出した際の最小往復伝送遅延値(RDTmin)より短い往復メッセージがあるか否かを判定する。補正情報更新部56は、最小往復伝送遅延値(RDTmin)より短い往復メッセージがある場合に、当該往復メッセージの往復伝送遅延値を最小往復伝送遅延値(RDTmin)として、時間差算出部53に装置間時間差(dt)を算出させる。補正情報更新部56は、時間差算出部53によって算出された装置間時間差(dt)を補正情報記憶部42に記憶させて更新する。また、補正情報更新部56は、当該往復メッセージの送信時刻T1を基準時刻T0として、補正情報記憶部42に記憶させて更新する。   In addition, for example, the correction information updating unit 56 uses a round-trip message shorter than the minimum round-trip transmission delay value (RDTmin) when calculating the current inter-device time difference (dt) in the round-trip message when measuring the one-way delay value. Determine if there is. When there is a round trip message shorter than the minimum round trip transmission delay value (RDTmin), the correction information update unit 56 sets the round trip transmission delay value of the round trip message as the minimum round trip transmission delay value (RDTmin) Calculate the time difference (dt). The correction information update unit 56 stores the inter-device time difference (dt) calculated by the time difference calculation unit 53 in the correction information storage unit 42 and updates it. Further, the correction information update unit 56 stores the transmission time T1 of the reciprocation message as the reference time T0 in the correction information storage unit 42 and updates it.

なお、補正情報更新部56は、最小往復伝送遅延値(RDTmin)より短い往復メッセージがある場合に、時間差算出部53に再度、装置間時間差(dt)を算出させる代わりに、以下のような補正により、装置間時間差(dt)を算出してもよい。この場合、補正情報更新部56は、当該往復メッセージの往復伝送遅延値と、現在の装置間時間差(dt)を算出した際の最小往復伝送遅延値(RDTmin)との差分を、往路伝送遅延値d1と、復路伝送遅延値d2とに均等割り付けして減算する補正を行う。そして、補正情報更新部56は、補正した往路伝送遅延値d1及び復路伝送遅延値d2に基づいて、装置間時間差(dt)を算出してもよい。   When there is a round trip message shorter than the minimum round trip transmission delay value (RDTmin), the correction information updating unit 56 performs the following correction instead of causing the time difference calculation unit 53 to calculate the inter-apparatus time difference (dt) again. The inter-device time difference (dt) may be calculated by In this case, the correction information updating unit 56 determines the difference between the round-trip transmission delay value of the round-trip message and the minimum round-trip transmission delay value (RDTmin) at the time of calculating the current inter-device time difference (dt) A correction is performed by equally allocating d1 and the return transmission delay value d2 and subtracting them. Then, the correction information updating unit 56 may calculate the inter-device time difference (dt) based on the corrected forward transmission delay value d1 and the backward transmission delay value d2.

次に、図15を参照して、本実施形態による遅延測定システム1aの動作について説明する。
図15は、本実施形態の遅延測定システム1aによる遅延測定方法の一例を示すフローチャートである。
この図において、ステップS401からステップS408までの処理は、図11に示すステップS101からステップS108までの処理と同様であるので、ここではその説明を省略する。なお、ステップS401の処理は、上述した図12に示す処理と同様であり、ステップS402の処理は、上述した図13に示す処理と同様である。
Next, with reference to FIG. 15, the operation of the delay measurement system 1a according to the present embodiment will be described.
FIG. 15 is a flowchart showing an example of a delay measurement method by the delay measurement system 1a of the present embodiment.
In this figure, the processing from step S401 to step S408 is the same as the processing from step S101 to step S108 shown in FIG. 11, so the description thereof is omitted here. In addition, the process of step S401 is the same as the process shown in FIG. 12 mentioned above, and the process of step S402 is the same as the process shown in FIG. 13 mentioned above.

ステップS409において、遅延測定装置10aの補正情報更新部56は、往復メッセージがクロック誤差測定の条件(上述した(条件1)、及び(条件2))に一致するか否かを判定する。補正情報更新部56は、クロック誤差測定の条件に一致する場合(ステップS409:YES)に、処理をステップS410に進める。また、補正情報更新部56は、クロック誤差測定の条件に一致しない場合(ステップS409:NO)に、処理をステップS412に進める。   In step S409, the correction information updating unit 56 of the delay measuring device 10a determines whether or not the round trip message matches the clock error measurement conditions ((condition 1) and (condition 2) described above). If the correction information update unit 56 matches the conditions for clock error measurement (step S409: YES), the process proceeds to step S410. Further, when the correction information update unit 56 does not match the conditions for clock error measurement (step S409: NO), the process proceeds to step S412.

ステップS410において、補正情報更新部56は、クロック誤差(CLKslope)を更新する。すなわち、補正情報更新部56は、当該往復メッセージを用いて、クロック誤差算出部52に単位時間当たりのクロック誤差(CLKslope)の算出をさせる。補正情報更新部56は、クロック誤差算出部52によって算出されたクロック誤差(CLKslope)を、補正情報記憶部42に記憶させる。   In step S410, the correction information update unit 56 updates the clock error (CLKslope). That is, the correction information update unit 56 causes the clock error calculation unit 52 to calculate the clock error (CLKslope) per unit time using the round trip message. The correction information update unit 56 stores the clock error (CLKslope) calculated by the clock error calculation unit 52 in the correction information storage unit 42.

次に、補正情報更新部56は、クロック誤差(CLKslope)が所定の値以上変動したか否かを判定する(ステップS411)。すなわち、補正情報更新部56は、クロック誤差算出部52によって算出されたクロック誤差(CLKslope)が、例えば、±20%以上変動したか否かを判定する。補正情報更新部56は、クロック誤差(CLKslope)が所定の値以上変動した場合(ステップS411:YES)に、処理をステップS401に戻し、クロック誤差(CLKslope)及び装置間時間差(dt)を再び算出させて、補正情報(クロック誤差(CLKslope)、基準時刻T0、装置間時間差(dt))を更新させる。また、補正情報更新部56は、クロック誤差(CLKslope)が所定の値以上変動していない場合(ステップS411:NO)に、処理をステップS412に進める。   Next, the correction information updating unit 56 determines whether or not the clock error (CLKslope) has fluctuated by a predetermined value or more (step S411). That is, the correction information update unit 56 determines whether the clock error (CLKslope) calculated by the clock error calculation unit 52 has fluctuated by, for example, ± 20% or more. If the clock error (CLKslope) fluctuates by a predetermined value or more (step S411: YES), the correction information updating unit 56 returns the process to step S401 and calculates the clock error (CLKslope) and the inter-device time difference (dt) again. Then, the correction information (clock error (CLKslope), reference time T0, inter-device time difference (dt)) is updated. Further, if the clock error (CLKslope) has not changed by a predetermined value or more (step S411: NO), the correction information updating unit 56 advances the process to step S412.

ステップS412において、補正情報更新部56は、往復メッセージの往復伝送遅延値が最小値であるか否かを判定する。すなわち、補正情報更新部56は、片方向遅延値を測定する際の往復メッセージに、現在の装置間時間差(dt)を算出した際の最小往復伝送遅延値(RDTmin)より短い往復メッセージがあるか否かを判定する。補正情報更新部56は、往復メッセージの往復伝送遅延値が最小値である場合(ステップS412:YES)に、処理をステップS413に進める。また、補正情報更新部56は、往復メッセージの往復伝送遅延値が最小値でない場合(ステップS412:NO)に、処理をステップS414に進める。   In step S412, the correction information updating unit 56 determines whether the round-trip transmission delay value of the round-trip message is the minimum value. That is, is whether the correction information updating unit 56 has a round-trip message shorter than the minimum round-trip transmission delay value (RDTmin) when calculating the current inter-device time difference (dt) in the round-trip message when measuring the one-way delay value? It is determined whether or not. If the round trip transmission delay value of the round trip message is the minimum value (step S412: YES), the correction information updating unit 56 advances the process to step S413. Further, if the round-trip transmission delay value of the round-trip message is not the minimum value (step S412: NO), the correction information updating unit 56 advances the process to step S414.

ステップS413において、補正情報更新部56は、装置間時間差(dt)を更新する。すなわち、補正情報更新部56は、当該往復メッセージの往復伝送遅延値を最小往復伝送遅延値(RDTmin)として、時間差算出部53に装置間時間差(dt)を算出させる。補正情報更新部56は、時間差算出部53によって算出された装置間時間差(dt)を補正情報記憶部42に記憶させて更新する。また、補正情報更新部56は、当該往復メッセージの送信時刻T1を基準時刻T0として、補正情報記憶部42に記憶させて更新する。   In step S413, the correction information updating unit 56 updates the inter-device time difference (dt). That is, the correction information updating unit 56 causes the time difference calculating unit 53 to calculate the inter-device time difference (dt) with the round-trip transmission delay value of the round-trip message as the minimum round-trip transmission delay value (RDTmin). The correction information update unit 56 stores the inter-device time difference (dt) calculated by the time difference calculation unit 53 in the correction information storage unit 42 and updates it. Further, the correction information update unit 56 stores the transmission time T1 of the reciprocation message as the reference time T0 in the correction information storage unit 42 and updates it.

ステップS414において、遅延測定装置10aの制御部50aは、測定終了であるか否かを判定する。制御部50aは、測定終了である場合(ステップS414:YES)に、処理を終了する。また、遅延算出部55は、測定終了でない場合(ステップS414:NO)に、処理をステップS403に戻し、所定の時間間隔で(定期的に)片方向遅延値を算出する処理を実行させる。   In step S414, the control unit 50a of the delay measurement device 10a determines whether the measurement is completed. The control unit 50a ends the process when the measurement is ended (step S414: YES). In addition, when the measurement is not completed (step S414: NO), the delay calculation unit 55 returns the process to step S403, and executes the process of calculating the one-way delay value (periodically) at predetermined time intervals.

以上説明したように、本実施形態による遅延測定方法は、第1の実施形態による遅延測定方法に加えて更新ステップを含んでいる。更新ステップにおいて、遅延測定装置10a(補正情報更新部56)は、定期的に往復メッセージを監視して、当該往復メッセージが所定の条件を満たす場合に、補正情報記憶部42が記憶する補正情報(クロック誤差(CLKslope)、基準時刻T0、装置間時間差(dt))を更新する。ここで、所定の条件とは、補正情報を更新する条件であり、例えば、上述したクロック誤差測定の条件(上述した(条件1)、及び(条件2))、往復メッセージの往復伝送遅延値が最小値であるなどの条件である。
これにより、本実施形態による遅延測定方法は、第1の実施形態による遅延測定方法と同様の効果を奏するとともに、さらに、NW装置200の送信時刻及び受信時刻の補正精度を高めることができる。また、定期的に、クロック誤差(CLKslope)が更新されるので、本実施形態による遅延測定方法は、例えば、温度変化などにより、NW装置100a及びNW装置200のクロック周波数が変化した場合であっても、装置間の伝送遅延をより正確に測定することができる。
また、本実施形態による遅延測定方法は、例えば、NTPなどによりNW装置200の時刻が再設定された場合であっても、補正情報を適切に更新するので、装置間の伝送遅延をより正確に測定することができる。
As described above, the delay measurement method according to the present embodiment includes an update step in addition to the delay measurement method according to the first embodiment. In the updating step, the delay measuring device 10a (correction information updating unit 56) periodically monitors the reciprocation message, and if the reciprocation message satisfies a predetermined condition, the correction information stored in the correction information storage unit 42 ( The clock error (CLKslope), the reference time T0, and the inter-apparatus time difference (dt) are updated. Here, the predetermined condition is a condition for updating the correction information, and, for example, the condition of the clock error measurement described above ((condition 1) and (condition 2) described above), the round trip transmission delay value of the round trip message is It is a condition such as being a minimum value.
Thus, the delay measurement method according to the present embodiment can achieve the same effect as the delay measurement method according to the first embodiment, and can further improve the correction accuracy of the transmission time and reception time of the NW device 200. In addition, since the clock error (CLKslope) is periodically updated, the delay measurement method according to the present embodiment is, for example, a case where the clock frequency of the NW device 100a and the NW device 200 changes due to a temperature change or the like. Also, the transmission delay between devices can be measured more accurately.
Further, in the delay measurement method according to the present embodiment, for example, even when the time of the NW device 200 is reset by NTP or the like, the correction information is appropriately updated, so that the transmission delay between the devices can be made more accurately. It can be measured.

なお、本実施形態において、遅延測定方法と更新ステップとを一連の処理で行ったが、別々の処理で行ってもよい。例えば、更新ステップにおいて、ステップS401からステップS402、及びステップS409からステップS413までの処理を、バックグラウンドで継続的に行ってもよい。その場合、ステップS402で装置間時間差の算出処理を行った後、ステップS409でクロック誤差測定の条件に一致するか否かを判定する。すなわち、遅延測定方法とは、別の処理として更新ステップを継続的に行う。この場合、更新ステップの処理の優先順位を他の処理より高く設定してもよい。これにより、遅延測定装置10aは、補正情報をより正確に算出することができ、補正情報を適切に更新することができる。   In the present embodiment, the delay measurement method and the update step are performed in a series of processes, but may be performed in different processes. For example, in the updating step, the processing from step S401 to step S402 and the processing from step S409 to step S413 may be continuously performed in the background. In this case, after calculation processing of inter-device time difference is performed in step S402, it is determined in step S409 whether or not the conditions for clock error measurement are met. That is, the update step is continuously performed as a separate process from the delay measurement method. In this case, the priority of the process of the update step may be set higher than that of the other processes. Thereby, the delay measuring device 10a can calculate the correction information more accurately, and can appropriately update the correction information.

なお、本発明は、上記の各実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で変更可能である。
例えば、上記の各実施形態において、NW装置100(100a)が遅延測定装置10(10a)を備える例を説明したが、これに限定されるものではない。例えば、遅延測定装置10(10a)は、NW装置100(100a)の外部に備えられ、NW装置100とNW装置200との間の伝送遅延を外部から測定してもよい。
In addition, this invention is not limited to said each embodiment, It can change in the range which does not deviate from the meaning of this invention.
For example, in each of the above-described embodiments, the example in which the NW device 100 (100a) includes the delay measurement device 10 (10a) has been described, but the present invention is not limited to this. For example, the delay measurement device 10 (10a) may be provided outside the NW device 100 (100a), and externally measure the transmission delay between the NW device 100 and the NW device 200.

また、遅延測定装置10(10a)が備える構成の一部をNW装置100の外部に備えてもよい。例えば、制御部50(50a)の一部を、ネットワークNW1上の処理装置として、外部に備えてもよい。また、記憶部40の一部又は全部を、ネットワークNW1上の記憶装置として、外部に備えてもよい。また、この場合、遅延測定装置10(10a)は、予め生成(算出)された補正情報(クロック誤差(CLKslope)、基準時刻T0、装置間時間差(dt))を記憶する外部の記憶装置から、補正情報を取得して送信時刻及び受信時刻を補正してもよい。例えば、遅延測定方法は、送受信ステップと、誤差取得ステップと、時間差算出ステップと、補正ステップと、推定ステップとを含んでいてもよい。この場合、誤差取得ステップにおいて、遅延測定装置10(10a)が、NW装置100(100a)とNW装置200との間の単位時間当たりのクロック誤差を取得するようにしてもよい。   Further, part of the configuration of the delay measurement device 10 (10a) may be provided outside the NW device 100. For example, part of the control unit 50 (50a) may be provided outside as a processing device on the network NW1. Alternatively, part or all of the storage unit 40 may be provided externally as a storage device on the network NW1. Also, in this case, the delay measurement device 10 (10a) receives the correction information (clock error (CLKslope), reference time T0, inter-device time difference (dt)) generated (calculated) in advance from an external storage device, The transmission time and the reception time may be corrected by acquiring the correction information. For example, the delay measurement method may include a transmission / reception step, an error acquisition step, a time difference calculation step, a correction step, and an estimation step. In this case, in the error acquisition step, the delay measurement device 10 (10a) may acquire a clock error per unit time between the NW device 100 (100a) and the NW device 200.

また、上記の各実施形態において、遅延測定装置10(10a)は、入力部30及び送受信部20を含まない例を説明したが、入力部30又は送受信部20を含むように構成してもよい。
また、上記の各実施形態において、クロック誤差算出部52は、送信時刻T1と受信時刻T2とに基づいて、クロック誤差(CLKslope)を算出する例を説明したが、送信時刻T3と受信時刻T4とに基づいて、クロック誤差(CLKslope)を算出してもよい。
また、上記の各実施形態において、クロック誤差算出部52は、NW装置100(100a)から見たNW装置200の時間経過の傾きとして、クロック誤差(CLKslope)を算出する例を説明したが、これに限定されるものではない。例えば、クロック誤差算出部52は、NW装置200から見たNW装置100(100a)の時間経過の傾きとして、クロック誤差(CLKslope)を算出してもよい。また、クロック誤差算出部52は、例えば、正規分布や最小二乗法などの統計的手法を用いて、クロック誤差を算出してもよい。
In each of the above-described embodiments, the delay measuring device 10 (10a) has been described as an example not including the input unit 30 and the transmitting / receiving unit 20, but may be configured to include the input unit 30 or the transmitting / receiving unit 20. .
In each of the above embodiments, the clock error calculation unit 52 calculates the clock error (CLKslope) based on the transmission time T1 and the reception time T2, but the transmission time T3 and the reception time T4 are described. The clock error (CLKslope) may be calculated based on
In each of the above embodiments, the clock error calculation unit 52 has described an example in which the clock error (CLKslope) is calculated as the slope of the passage of time of the NW device 200 viewed from the NW device 100 (100a). It is not limited to For example, the clock error calculation unit 52 may calculate the clock error (CLKslope) as the slope of the passage of time of the NW device 100 (100a) viewed from the NW device 200. Also, the clock error calculation unit 52 may calculate the clock error using a statistical method such as normal distribution or the least square method, for example.

また、上記の各実施形態において、時間差算出部53は、往復遅延法の際に、クロック誤差(CLKslope)による補正を行わずに、最小往復伝送遅延値(RDTmin)を抽出する例を説明したが、クロック誤差(CLKslope)による補正を行ってもよい。この場合、遅延測定装置10(10a)は、送信時刻及び受信時刻の補正精度をさらに高めることができる。
また、時間差算出部53は、片方向遅延法の際に、クロック誤差(CLKslope)による補正を行って、最小往復伝送遅延値(RDTmin)を抽出する例を説明したが、クロック誤差(CLKslope)による補正を行わなくてもよい。この場合、遅延測定装置10(10a)は、片方向遅延法において、最小往復伝送遅延値(RDTmin)を抽出する処理を簡略化することができ、処理負荷(計算量)を軽減することができる。
In each of the above-described embodiments, the time difference calculation unit 53 has described an example in which the minimum round trip transmission delay value (RDTmin) is extracted without performing correction by the clock error (CLKslope) in the round trip delay method. The correction by the clock error (CLKslope) may be performed. In this case, the delay measurement device 10 (10a) can further enhance the correction accuracy of the transmission time and the reception time.
The time difference calculation unit 53 corrects the clock error (CLKslope) to extract the minimum round trip transmission delay value (RDTmin) in the one-way delay method, but the clock difference (CLKslope) It is not necessary to make corrections. In this case, the delay measuring apparatus 10 (10a) can simplify the process of extracting the minimum round trip transmission delay value (RDTmin) in the one-way delay method, and can reduce the processing load (calculation amount). .

また、上記の各実施形態において、ユーザから入力部30を介して受け付けた最小往復伝送遅延値の抽出方法により、往復遅延法と片方向遅延法とを切り替える例を説明したが、これに限定されるものではない。例えば、時間差算出部53は、クロック誤差(CLKslope)の精度に不安があるなどのクロック誤差の信頼度(安定度)に応じて、往復遅延法と片方向遅延法とを切り替えて実行してもよい。また、時間差算出部53は、往復遅延法と片方向遅延法とのいずれか一方の方式により、装置間時間差(dt)を算出するようにしてもよい。   In each of the above embodiments, although the example of switching between the round trip delay method and the one-way delay method has been described according to the method of extracting the minimum round trip transmission delay value received from the user via the input unit 30, the invention is limited thereto. It is not a thing. For example, even if the time difference calculation unit 53 switches and executes the round trip delay method and the one-way delay method according to the reliability (stability) of the clock error, such as uncertainty about the accuracy of the clock error (CLKslope). Good. In addition, the time difference calculation unit 53 may calculate the inter-device time difference (dt) by any one method of the round trip delay method and the one-way delay method.

なお、上述した遅延測定システム1(1a)が備える各構成は、内部に、コンピュータシステムを有している。そして、上述した遅延測定システム1(1a)が備える各構成の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより上述した遅延測定システム1(1a)が備える各構成における処理を行ってもよい。ここで、「記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行する」とは、コンピュータシステムにプログラムをインストールすることを含む。ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
また、「コンピュータシステム」は、インターネットやWAN、LAN、専用回線等の通信回線を含むネットワークを介して接続された複数のコンピュータ装置を含んでもよい。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。このように、プログラムを記憶した記録媒体は、CD−ROM等の非一過性の記録媒体であってもよい。
In addition, each structure with which the delay measurement system 1 (1a) mentioned above is equipped has a computer system inside. Then, a program for realizing the function of each component included in the delay measurement system 1 (1a) described above is recorded in a computer readable recording medium, and the computer system reads the program recorded in the recording medium. Processing may be performed in each configuration provided in the above-described delay measurement system 1 (1a) by performing the processing. Here, "to read and execute the program recorded on the recording medium into the computer system" includes installing the program on the computer system. The “computer system” mentioned here includes an OS and hardware such as peripheral devices.
Also, the “computer system” may include a plurality of computer devices connected via a network including communication lines such as the Internet, WAN, LAN, and dedicated lines. The term "computer-readable recording medium" refers to a storage medium such as a flexible disk, a magneto-optical disk, a ROM, a portable medium such as a ROM or a CD-ROM, or a hard disk built in a computer system. As described above, the recording medium storing the program may be a non-transitory recording medium such as a CD-ROM.

また、記録媒体には、当該プログラムを配信するために配信サーバからアクセス可能な内部又は外部に設けられた記録媒体も含まれる。なお、プログラムを複数に分割し、それぞれ異なるタイミングでダウンロードした後に遅延測定システム1(1a)が備える各構成で合体される構成や、分割されたプログラムのそれぞれを配信する配信サーバが異なっていてもよい。さらに「コンピュータ読み取り可能な記録媒体」とは、ネットワークを介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。また、上記プログラムは、上述した機能の一部を実現するためのものであってもよい。さらに、上述した機能をコンピュータシステムに既に記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。   The recording medium also includes a recording medium provided internally or externally accessible from the distribution server for distributing the program. It should be noted that the program is divided into a plurality of parts, and after downloading at different timings, the configurations combined in each configuration provided in the delay measurement system 1 (1a), and the distribution servers that distribute each of the divided programs are different. Good. Furthermore, "computer-readable recording medium" holds a program for a certain period of time, such as a volatile memory (RAM) in a computer system serving as a server or a client when the program is transmitted via a network. We shall include things. Further, the program may be for realizing a part of the functions described above. Furthermore, it may be a so-called difference file (difference program) that can realize the above-described functions in combination with a program already recorded in the computer system.

また、上述した機能の一部又は全部を、LSI(Large Scale Integration)等の集積回路として実現してもよい。上述した各機能は個別にプロセッサ化してもよいし、一部、又は全部を集積してプロセッサ化してもよい。また、集積回路化の手法はLSIに限らず専用回路、又は汎用プロセッサで実現してもよい。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いてもよい。   In addition, part or all of the above-described functions may be realized as an integrated circuit such as LSI (Large Scale Integration). Each function mentioned above may be processor-ized separately, and part or all may be integrated and processor-ized. Further, the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. In the case where an integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology, integrated circuits based on such technology may also be used.

1,1a…遅延測定システム、10,10a…遅延測定装置、20…送受信部、21…通信部、22…タイムスタンプ付与部、30…入力部、40…記憶部、41…時刻情報記憶部、42…補正情報記憶部、43…遅延情報記憶部、50,50a…制御部、51…時刻取得部、52…クロック誤差算出部、53…時間差算出部、54…時刻補正部、55…遅延算出部、56…補正情報更新部、531…最小往復遅延抽出部、532…装置間時間差算出部、100,100a,200…NW装置、NW1…ネットワーク   1, 1a: delay measurement system, 10, 10a: delay measurement device, 20: transmission / reception unit, 21: communication unit, 22: time stamp giving unit, 30: input unit, 40: storage unit, 41: time information storage unit, 42: Correction information storage unit, 43: Delay information storage unit, 50, 50a: Control unit, 51: Time acquisition unit, 52: Clock error calculation unit, 53: Time difference calculation unit, 54: Time correction unit, 55: Delay calculation , 56: correction information update unit, 531: minimum round trip delay extraction unit, 532: inter-device time difference calculation unit, 100, 100a, 200: NW device, NW1: network

Claims (13)

第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、
前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、
前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、
少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと
定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップと
を含み、
前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合である
とを特徴とする遅延測定方法。
A transmitting and receiving step of repeatedly transmitting and receiving a reciprocating message reciprocating between the first device and the second device, and measuring transmission time and reception time of the first device and the second device in the reciprocating message, respectively; When,
The time difference between the respective transmission times between two transmission messages transmitted from the first device, and the time difference between the respective reception times between the two transmission messages received by the second device Calculating a clock error per unit time between the first device and the second device based on
Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and the first device and the first device are extracted based on the extracted minimum value. A time difference calculating step of calculating an inter-apparatus time difference indicating a time difference between the second apparatus and the second apparatus at a reference time;
Correcting the transmission time and the reception time of the second message of the reciprocated message based on at least the clock error per unit time and the inter-device time difference ;
Updating the clock error or the inter-apparatus time difference when the reciprocation message is monitored periodically and the clock error or the inter-apparatus time difference is satisfied a predetermined condition satisfying the reciprocation message; only including,
In the case where the predetermined condition is satisfied, the first condition that the TTL (Time To Live) of the forward packets is equal and the TTL of the return packets is equal, and the round-trip transmission delay value is equal or It is a case where two said round trip messages which satisfy the second condition that they are close round trip messages are obtained.
Delay measurement wherein a call.
前記補正ステップによって補正された前記第2の装置における前記送信時刻及び前記受信時刻に基づいて、前記第1の装置と前記第2の装置との間の伝送遅延を推定する推定ステップを含む
ことを特徴とする請求項1に記載の遅延測定方法。
Estimating the transmission delay between the first device and the second device based on the transmission time and the reception time of the second device corrected by the correction step. The delay measurement method according to claim 1, characterized in that
前記誤差算出ステップは、
前記往復メッセージにおける往復の伝送遅延値の差が所定の範囲内である少なくとも2つの前記往復メッセージを選択する第1のステップと、
前記第1のステップによって選択された少なくとも2つの前記往復メッセージのうちの2つの前記送信メッセージにおける前記送信時刻の時間差及び前記受信時刻の時間差に基づいて、前記クロック誤差を算出する第2のステップと
を含むことを特徴とする請求項1又は請求項2に記載の遅延測定方法。
The error calculation step is
A first step of selecting at least two of said round trip messages whose difference between round trip transmission delay values in said round trip messages is within a predetermined range;
A second step of calculating the clock error based on a time difference between the transmission times of the transmission messages of two of the at least two round-trip messages selected by the first step and a time difference between the reception times The delay measurement method according to claim 1 or 2, further comprising:
前記第1のステップにおいて、
複数の前記往復メッセージのうちから、前記往復の伝送遅延値の差が最小となる少なくとも2つの前記往復メッセージを選択する
ことを特徴とする請求項3に記載の遅延測定方法。
In the first step,
The delay measurement method according to claim 3, wherein at least two of the plurality of round trip messages for which the difference between the round trip transmission delay values is minimized are selected from the plurality of round trip messages.
前記第2のステップにおいて、
前記第1のステップによって選択された前記往復メッセージが3つ以上である場合に、前記送信時刻の時間差が最大になる2つの前記送信メッセージにおける前記送信時刻の時間差及び前記受信時刻の時間差に基づいて、前記クロック誤差を算出する
ことを特徴とする請求項3又は請求項4に記載の遅延測定方法。
In the second step,
When there are three or more reciprocating messages selected in the first step, based on the time difference between the transmission times of the two transmission messages and the reception time among the two transmission messages for which the time difference between the transmission times is maximized. The delay measurement method according to claim 3, wherein the clock error is calculated.
前記第2のステップにおいて、
前記第1のステップによって選択された前記往復メッセージが3つ以上である場合に、3つ以上の前記送信メッセージに基づいて複数の前記クロック誤差を算出し、算出した複数の前記クロック誤差の平均値である平均クロック誤差を算出し、
前記補正ステップにおいて、
前記平均クロック誤差に基づいて、前記往復メッセージの前記送信時刻及び前記受信時刻を補正する
ことを特徴とする請求項3又は請求項4に記載の遅延測定方法。
In the second step,
When the number of round trip messages selected in the first step is three or more, a plurality of the clock errors are calculated based on the three or more transmission messages, and the average value of the calculated plurality of clock errors is calculated. Calculate the average clock error, which is
In the correction step,
The delay measurement method according to claim 3 or 4, wherein the transmission time and the reception time of the round trip message are corrected based on the average clock error.
前記時間差算出ステップにおいて、
複数の前記往復メッセージのうち、1つの前記往復メッセージにおける往復伝送遅延値が最小となる前記往復メッセージに対応する前記往復伝送遅延値を、前記最小値として抽出する
ことを特徴とする請求項1から請求項6のいずれか一項に記載の遅延測定方法。
In the time difference calculating step,
Among the plurality of the reciprocating message, the round-trip transmission delay value round-trip transmission delay value in one of the reciprocating message corresponding to said reciprocating message becomes minimum claim 1, wherein the extracting as the minimum value The delay measurement method according to any one of claims 6 .
前記時間差算出ステップにおいて、
複数の前記往復メッセージに対応する複数の往路の伝送遅延値のうちの最小となる往路の伝送遅延値と、複数の前記往復メッセージに対応する複数の復路の伝送遅延値のうちの最小となる復路の伝送遅延値との加算値を前記最小値として抽出する
ことを特徴とする請求項1から請求項6のいずれか一項に記載の遅延測定方法。
In the time difference calculating step,
Among the transmission delay values of a plurality of forward paths corresponding to a plurality of the reciprocating messages, the transmission delay value of the forward path which is the smallest, and the return path which is the minimum of the transmission delay values of a plurality of return paths corresponding to the plurality of the reciprocating messages The delay measurement method according to any one of claims 1 to 6, wherein an addition value with the transmission delay value of is extracted as the minimum value.
前記クロック誤差に基づき補正された前記送信時刻及び前記受信時刻に基づいて、前記最小値を抽出する
ことを特徴とする請求項から請求項のいずれか一項に記載の遅延測定方法。
And based on the corrected transmission time and the reception time on the basis of the clock error, the delay measuring method as claimed in any one of claims 8, characterized in that extracting the minimum value.
第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、
前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて算出された、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を取得する誤差取得ステップと、
前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、
単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと、
前記補正ステップによって補正された前記第2の装置における前記送信時刻及び前記受信時刻に基づいて、前記第1の装置と前記第2の装置との間の伝送遅延を推定する推定ステップと
定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップと
を含み、
前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合である
とを特徴とする遅延測定方法。
A transmitting and receiving step of repeatedly transmitting and receiving a reciprocating message reciprocating between the first device and the second device, and measuring transmission time and reception time of the first device and the second device in the reciprocating message, respectively; When,
The time difference between the respective transmission times between two transmission messages transmitted from the first device, and the time difference between the respective reception times between the two transmission messages received by the second device Obtaining a clock error per unit time between the first device and the second device, which is calculated based on
Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and the first device and the first device are extracted based on the extracted minimum value. A time difference calculating step of calculating an inter-apparatus time difference indicating a time difference between the second apparatus and the second apparatus at a reference time;
Correcting the transmission time and the reception time of the second message of the round trip message based on the clock error per unit time and the inter-device time difference;
Estimating a transmission delay between the first device and the second device based on the transmission time and the reception time of the second device corrected by the correction step ;
Updating the clock error or the inter-apparatus time difference when the reciprocation message is monitored periodically and the clock error or the inter-apparatus time difference is satisfied a predetermined condition satisfying the reciprocation message; only including,
In the case where the predetermined condition is satisfied, the first condition that the TTL (Time To Live) of the forward packets is equal and the TTL of the return packets is equal, and the round-trip transmission delay value is equal or It is a case where two said round trip messages which satisfy the second condition that they are close round trip messages are obtained.
Delay measurement wherein a call.
第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、
前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、
前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、
定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップと
を含み、
前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合である
とを特徴とする遅延測定方法。
A transmitting and receiving step of repeatedly transmitting and receiving a reciprocating message reciprocating between the first device and the second device, and measuring transmission time and reception time of the first device and the second device in the reciprocating message, respectively; When,
The time difference between the respective transmission times between two transmission messages transmitted from the first device, and the time difference between the respective reception times between the two transmission messages received by the second device Calculating a clock error per unit time between the first device and the second device based on
Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and the first device and the first device are extracted based on the extracted minimum value. A time difference calculating step of calculating an inter-apparatus time difference indicating a time difference between the second apparatus and the second apparatus at a reference time;
Updating the clock error or the inter-apparatus time difference when the reciprocation message is monitored periodically and the clock error or the inter-apparatus time difference is satisfied a predetermined condition satisfying the reciprocation message; only including,
In the case where the predetermined condition is satisfied, the first condition that the TTL (Time To Live) of the forward packets is equal and the TTL of the return packets is equal, and the round-trip transmission delay value is equal or It is a case where two said round trip messages which satisfy the second condition that they are close round trip messages are obtained.
Delay measurement wherein a call.
第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信させ、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を取得する取得部と、
前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出部と、
前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出部と、
少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正部と
定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新部と
を備え
前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合である
とを特徴とする遅延測定装置。
An acquisition unit that repeatedly transmits and receives a reciprocating message reciprocating between the first device and the second device, and acquires transmission time and reception time of the first device and the second device in the reciprocating message; ,
The time difference between the respective transmission times between two transmission messages transmitted from the first device, and the time difference between the respective reception times between the two transmission messages received by the second device An error calculation unit that calculates a clock error per unit time between the first device and the second device based on
Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and the first device and the first device are extracted based on the extracted minimum value. A time difference calculating unit that calculates an inter-apparatus time difference indicating a time difference between the second apparatus and the second apparatus at a reference time;
A correction unit that corrects the transmission time and the reception time of the second message of the reciprocating message based on at least the clock error per unit time and the inter-device time difference ;
An updating unit that periodically monitors the round trip message and updates the clock error or the inter-apparatus time difference when the round-trip message satisfies the clock error or a predetermined condition for updating the inter-apparatus time difference; Equipped with
In the case where the predetermined condition is satisfied, the first condition that the TTL (Time To Live) of the forward packets is equal and the TTL of the return packets is equal, and the round-trip transmission delay value is equal or It is a case where two said round trip messages which satisfy the second condition that they are close round trip messages are obtained.
Delay measurement device comprising a call.
コンピュータに、
第1の装置と第2の装置との間で往復する往復メッセージを繰り返し送受信して、前記往復メッセージにおける第1の装置と第2の装置とのそれぞれの送信時刻及び受信時刻を測定する送受信ステップと、
前記第1の装置から送信される2つの送信メッセージの間におけるそれぞれの前記送信時刻の時間差と、前記第2の装置で受信される2つの前記送信メッセージの間におけるそれぞれの前記受信時刻の時間差とに基づいて、前記第1の装置と前記第2の装置との間の単位時間当たりのクロック誤差を算出する誤差算出ステップと、
前記送信時刻及び前記受信時刻に基づいて、前記往復メッセージにおける往復の伝送遅延値である往復伝送遅延値の最小値を抽出し、抽出した当該最小値に基づいて、前記第1の装置と前記第2の装置との基準時刻における時間差を示す装置間時間差を算出する時間差算出ステップと、
少なくとも単位時間当たりの前記クロック誤差と、前記装置間時間差とに基づいて、前記往復メッセージの前記第2の装置における前記送信時刻及び前記受信時刻を補正する補正ステップと
定期的に前記往復メッセージを監視して、当該往復メッセージが前記クロック誤差、又は前記装置間時間差を更新する所定の条件を満たす場合に、前記クロック誤差、又は前記装置間時間差を更新する更新ステップと
を実行させ
前記所定の条件を満たす場合とは、往路パケット同士のTTL(Time To Live)が等しいとともに、復路パケット同士のTTLが等しい往復メッセージであるという第1条件、及び、前記往復伝送遅延値が等しい又は近い往復メッセージであるという第2条件を満たす2つの前記往復メッセージが得られた場合である
ログラム。
On the computer
A transmitting and receiving step of repeatedly transmitting and receiving a reciprocating message reciprocating between the first device and the second device, and measuring transmission time and reception time of the first device and the second device in the reciprocating message, respectively; When,
The time difference between the respective transmission times between two transmission messages transmitted from the first device, and the time difference between the respective reception times between the two transmission messages received by the second device Calculating a clock error per unit time between the first device and the second device based on
Based on the transmission time and the reception time, the minimum value of the round trip transmission delay value which is the round trip transmission delay value in the round trip message is extracted, and the first device and the first device are extracted based on the extracted minimum value. A time difference calculating step of calculating an inter-apparatus time difference indicating a time difference between the second apparatus and the second apparatus at a reference time;
Correcting the transmission time and the reception time of the second message of the reciprocated message based on at least the clock error per unit time and the inter-device time difference ;
Updating the clock error or the inter-apparatus time difference when the reciprocation message is monitored periodically and the clock error or the inter-apparatus time difference is satisfied a predetermined condition satisfying the reciprocation message; was executed,
In the case where the predetermined condition is satisfied, the first condition that the TTL (Time To Live) of the forward packets is equal and the TTL of the return packets is equal, and the round-trip transmission delay value is equal or It is a case where two said round trip messages which satisfy the second condition that they are close round trip messages are obtained.
Program.
JP2014148221A 2014-07-18 2014-07-18 Delay measurement method, delay measurement device, and program Active JP6501138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014148221A JP6501138B2 (en) 2014-07-18 2014-07-18 Delay measurement method, delay measurement device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014148221A JP6501138B2 (en) 2014-07-18 2014-07-18 Delay measurement method, delay measurement device, and program

Publications (2)

Publication Number Publication Date
JP2016025474A JP2016025474A (en) 2016-02-08
JP6501138B2 true JP6501138B2 (en) 2019-04-17

Family

ID=55271895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014148221A Active JP6501138B2 (en) 2014-07-18 2014-07-18 Delay measurement method, delay measurement device, and program

Country Status (1)

Country Link
JP (1) JP6501138B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6834642B2 (en) * 2017-03-21 2021-02-24 株式会社明電舎 Time correction method
JP7173058B2 (en) * 2020-01-14 2022-11-16 株式会社デンソー COMMUNICATION DEVICE, AND PROGRAM AND METHOD USED FOR COMMUNICATION DEVICE
JP7047164B1 (en) * 2021-05-17 2022-04-04 セイコーソリューションズ株式会社 Clock processing equipment and programs
JP7123228B1 (en) * 2021-09-06 2022-08-22 セイコーソリューションズ株式会社 Clock processor and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3480701B2 (en) * 1999-08-06 2003-12-22 日本電気株式会社 Packet network transmission delay measuring method and machine-readable recording medium recording program
EP1990938A1 (en) * 2007-05-10 2008-11-12 Deutsche Thomson OHG Method for synchronizing a clock of a network component with a clock of a further network component and network component therefor
EP2627040B1 (en) * 2012-02-12 2018-02-28 Hochschule Anhalt (FH) Method for eliminating systematical error components in a set of one-way delay measurement results for communications between two or more computing systems in a communication network, apparatus for performing the method and computer program product

Also Published As

Publication number Publication date
JP2016025474A (en) 2016-02-08

Similar Documents

Publication Publication Date Title
JP6546357B2 (en) Sensing system and time synchronization method
JP6501138B2 (en) Delay measurement method, delay measurement device, and program
US9634782B2 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
US9838196B2 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
WO2018151202A1 (en) Sensing system and time stamp correction method
JP2015139074A (en) time synchronization client, system, and program
JP6605863B2 (en) Electronic device, method, program, and protection system
US11252687B2 (en) Remote signal synchronization
US9544211B2 (en) Measuring apparatus and method
RU2012154446A (en) METHOD AND DEVICE FOR CARRYING OUT THE SYNCHRONIZATION OF THE CLOCK BETWEEN THE DEVICES
JP6457340B2 (en) Estimation apparatus, system, method, and program
JPWO2019003320A1 (en) Communication system and slave device
JP6254028B2 (en) Slave node and time synchronization method
JP6010802B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
US9882705B2 (en) Communication apparatus, communication method, and computer readable medium using propagation delay for time synchronization
JP6170456B2 (en) Slave node, control server, time synchronization destination determination method and computer program
JP6499018B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, ESTIMATION METHOD, AND PROGRAM
JP6461718B2 (en) Management apparatus, system and method
JP6523058B2 (en) Communication system and estimation method
JP6581254B1 (en) Clock adjustment apparatus and program
JP6085864B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
JP2016174215A (en) Synchronization control device, synchronous system, and synchronization control method
JP2006340078A (en) Flow control method and apparatus thereof
JP6694794B2 (en) Control device, time setting method, and program
KR20170058629A (en) Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180306

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180425

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20180911

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181207

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20181213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190307

R150 Certificate of patent or registration of utility model

Ref document number: 6501138

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250