JP2010028684A - Client device and program - Google Patents

Client device and program Download PDF

Info

Publication number
JP2010028684A
JP2010028684A JP2008190387A JP2008190387A JP2010028684A JP 2010028684 A JP2010028684 A JP 2010028684A JP 2008190387 A JP2008190387 A JP 2008190387A JP 2008190387 A JP2008190387 A JP 2008190387A JP 2010028684 A JP2010028684 A JP 2010028684A
Authority
JP
Japan
Prior art keywords
time
samples
rtt
client device
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008190387A
Other languages
Japanese (ja)
Inventor
Kenji Kudome
賢治 久留
Mitsuhiro Tejima
光啓 手島
Akira Toyoshima
鑑 豊島
Hitoshi Uematsu
仁 上松
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2008190387A priority Critical patent/JP2010028684A/en
Publication of JP2010028684A publication Critical patent/JP2010028684A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To achieve stable and accurate time synchronization and clock frequency synchronization even in such a network environment that much jitter caused by congestion is present between a client device and a server device. <P>SOLUTION: The client device 1 for causing the server device 2 to synchronize their time or clock frequency by controlling the server device in such a manner that a difference in time between the client and the server 2 becomes constant, includes an RTT calculator 15 for extracting a plurality of signals transferred between the client 1 and the server 2 and calculating an RTTs (Round trip times) of such signals as samples, a variation determiner 16 for determining a variation in the RTTs calculated by the RTT calculator 15, and a samples count adjuster 17 for adjusting a samples count on the basis of a result determined by the variation determiner 16. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、クライアント装置およびプログラムに関する。   The present invention relates to a client device and a program.

パケット網における同期方式として標準的に用いられているNTP(Network Time Protocol、非特許文献1参照)やSNTP(Simple Network Time Protocol、非特許文献2参照)の基本原理を図11に示す。   FIG. 11 shows the basic principle of NTP (Network Time Protocol, see Non-Patent Document 1) and SNTP (Simple Network Time Protocol, see Non-Patent Document 2), which are standardly used as a synchronization method in a packet network.

クライアント装置50は同期要求パケット送信時刻T1を書き込んだ同期要求パケット51をサーバ装置52に送信する。サーバ装置52は同期要求パケット51を受信すると、同期応答パケット53をクライアント装置50に送信する。同期応答パケット53には同期要求パケット送信時刻T1の他、同期要求パケット受信時刻T2と同期応答パケット送信時刻T3とが書き込まれている。クライアント装置50が同期応答パケット53を受信した時刻を同期応答パケット受信時刻T4とする。   The client device 50 transmits a synchronization request packet 51 in which the synchronization request packet transmission time T1 is written to the server device 52. When the server apparatus 52 receives the synchronization request packet 51, the server apparatus 52 transmits a synchronization response packet 53 to the client apparatus 50. In addition to the synchronization request packet transmission time T1, the synchronization response packet reception time T2 and the synchronization response packet transmission time T3 are written in the synchronization response packet 53. The time when the client device 50 receives the synchronization response packet 53 is defined as a synchronization response packet reception time T4.

ここで、同期要求パケット送信時刻T1および同期応答パケット受信時刻T4はクライアント装置50で測った時刻であり、同期要求パケット受信時刻T2および同期応答パケット送信時刻T3はサーバ装置52で測った時刻である。クライアント装置50とサーバ装置52との間でパケットが往復するのに要した実効的な往復遅延時間(以下では、RTT(Round Trip Time)という)は、
RTT=(T4−T1)−(T3−T2)=T4−T3+T2−T1
で与えられる。
Here, the synchronization request packet transmission time T1 and the synchronization response packet reception time T4 are times measured by the client device 50, and the synchronization request packet reception time T2 and the synchronization response packet transmission time T3 are times measured by the server device 52. . An effective round-trip delay time (hereinafter referred to as RTT (Round Trip Time)) required for a packet to reciprocate between the client device 50 and the server device 52 is:
RTT = (T4-T1)-(T3-T2) = T4-T3 + T2-T1
Given in.

また、同期要求パケット51の遅延時間を同期要求パケット遅延時間D1、同期応答パケット53の遅延時間を同期応答パケット遅延時間D2とすると、
D1+D2=RTT
となる。同期要求パケット遅延時間D1と同期応答パケット遅延時間D2とが等しいと仮定すると、
D1=D2=RTT/2
となる。この場合には、クライアント装置50とサーバ装置52との間に時刻差dTが生じているとすると、その時刻差dTは、
dT=T4−(T3+D2)
=T4−T3−RTT/2
=T4−T3−(T4−T3+T2−T1)/2
=(T1−T2−T3+T4)/2
と推定できる。
Also, assuming that the delay time of the synchronization request packet 51 is the synchronization request packet delay time D1, and the delay time of the synchronization response packet 53 is the synchronization response packet delay time D2.
D1 + D2 = RTT
It becomes. Assuming that the synchronization request packet delay time D1 and the synchronization response packet delay time D2 are equal,
D1 = D2 = RTT / 2
It becomes. In this case, if there is a time difference dT between the client device 50 and the server device 52, the time difference dT is
dT = T4- (T3 + D2)
= T4-T3-RTT / 2
= T4-T3- (T4-T3 + T2-T1) / 2
= (T1-T2-T3 + T4) / 2
Can be estimated.

時刻差dTの値が“0”になるようにクライアント装置50を制御することにより、サーバ装置52に対してのクライアント装置50の時刻同期が確立できる。また、時刻同期が確立できることにより、クロック周波数同期も確立することができる。   By controlling the client device 50 so that the value of the time difference dT becomes “0”, time synchronization of the client device 50 with respect to the server device 52 can be established. In addition, since clock synchronization can be established, clock frequency synchronization can also be established.

D.W.Mills、“Network Time Protocol(Version3)Specification,Implementation and Analysis”、RFC1305,IETF.D. W. Mills, “Network Time Protocol (Version 3) Specification, Implementation and Analysis”, RFC 1305, IETF. D.Mills、“Simple Network Time Protocol(SNTP)Version4 for IPv4,IPv6 and OSI”,RFC2030,IETF.D. Mills, “Simple Network Time Protocol (SNTP) Version 4 for IPv4, IPv6 and OSI”, RFC 2030, IETF.

ネットワーク内において輻輳(Congestion)などにより同期要求パケット遅延時間D1と同期応答パケット遅延時間D2とがそれぞれΔD1、ΔD2だけ変化すると、クライアント装置50とサーバ装置52との時間差dTは、
dT=(T1−T2−T3+T4)/2+(ΔD2−ΔD1)/2
If the synchronization request packet delay time D1 and the synchronization response packet delay time D2 change by ΔD1 and ΔD2, respectively, due to congestion in the network, the time difference dT between the client device 50 and the server device 52 is
dT = (T1-T2-T3 + T4) / 2 + (ΔD2-ΔD1) / 2

すなわち、(ΔD2−ΔD1)/2だけ変化が生じたように見える。これをそのまま用いてクライアント装置50を制御すると、その影響を受けて時刻同期精度が劣化してしまう。そこで、複数のサンプルの中からRTTが最小となるT1〜T4や最小に近いT1〜T4を選択すれば、そのT1〜T4は輻輳などによるジッタの影響が小さいものであると推定できる。   That is, it appears that a change has occurred by (ΔD2−ΔD1) / 2. If this is used as it is and the client device 50 is controlled, the time synchronization accuracy deteriorates due to the influence. Therefore, if T1 to T4 that minimizes RTT or T1 to T4 that are close to the minimum is selected from a plurality of samples, it can be estimated that T1 to T4 are less influenced by jitter due to congestion or the like.

原理的にはサンプル数を多くすればジッタの影響が小さいサンプルがその中に入る確率が増加する。しかしながら、サンプル数が多過ぎると時刻同期の制御の応答時間が遅れてしまい、動作が不安定となるおそれがある。   In principle, if the number of samples is increased, the probability that a sample having a small influence of jitter will enter the sample increases. However, if the number of samples is too large, the response time of the time synchronization control is delayed, and the operation may become unstable.

本発明は、このような背景の下に行われたものであって、輻輳などによるジッタの多いネットワーク環境でも、安定して高精度な時刻同期またはクロック周波数同期を実現できるクライアント装置およびプログラムを提供することを目的とする。   The present invention has been made under such a background, and provides a client device and a program that can realize stable and highly accurate time synchronization or clock frequency synchronization even in a network environment where there is much jitter due to congestion or the like. The purpose is to do.

本発明では、サンプル数を適応的に変化させる。すなわち、RTTのバラツキが大きいときにはジッタの影響の少ないサンプルの割合が少なくなると予想されるので、サンプル数を増加させる。RTTのバラツキが小さいときにはジッタの影響の少ないサンプルの割合が多くなると予想されるのでサンプル数を減少させる。   In the present invention, the number of samples is adaptively changed. That is, when the variation in RTT is large, the proportion of samples with little influence of jitter is expected to decrease, so the number of samples is increased. When the variation in RTT is small, it is expected that the ratio of samples with little influence of jitter will increase, so the number of samples is reduced.

このように、サンプル数を適応的に変化させることにより、常にジッタの影響の小さいサンプルが含まれるようになるので、時刻同期またはクロック周波数同期の精度が劣化しにくくなる。   As described above, by adaptively changing the number of samples, a sample having a small influence of jitter is always included, so that the accuracy of time synchronization or clock frequency synchronization is unlikely to deteriorate.

すなわち、本発明のクライアント装置は、サーバ装置との間の時刻差を一定値となるように制御することでサーバ装置に時刻またはクロック周波数を同期させるクライアント装置において、クライアント装置とサーバ装置との間で送受信される信号のRTTを、この信号の複数をサンプルとして抽出して計算する手段と、計算する手段により計算されたRTTのバラツキを判定する手段と、この判定する手段の判定結果に基づきサンプル数を調整する手段と、を備えることを特徴とする。   That is, the client device of the present invention controls the time difference between the server device and the server device so that the time or clock frequency is synchronized with the server device by controlling the time difference between the client device and the server device. The RTT of the signal transmitted / received in the sample is calculated by extracting a plurality of the signals as samples, the RTT variation calculated by the calculating unit, and the sample based on the determination result of the determination unit And means for adjusting the number.

この調整する手段は、計算する手段により計算されたRTTにおける最小のRTTと二番目に小さいRTTとの差が第一の閾値よりも大きいか否かを判定する第一の判定条件と、この差が第一の閾値以下の値に設定される第二の閾値以下か否かを判定する第二の判定条件と、を有することができる。   The adjusting means includes a first determination condition for determining whether or not a difference between the smallest RTT and the second smallest RTT in the RTT calculated by the calculating means is larger than a first threshold, and the difference And a second determination condition for determining whether or not is less than or equal to a second threshold value that is set to a value that is less than or equal to the first threshold value.

あるいは、調整する手段は、計算する手段により計算されたRTTにおける最小のRTTに対する二番目に小さいRTTの比が第三の閾値よりも大きいか否かを判定する第三の判定条件と、この比が第三の閾値以下の値に設定される第四の閾値以下か否かを判定する第四の判定条件と、を有することができる。   Alternatively, the adjusting means includes a third determination condition for determining whether the ratio of the second smallest RTT to the minimum RTT in the RTT calculated by the calculating means is greater than a third threshold, and the ratio. And a fourth determination condition for determining whether or not is less than or equal to a fourth threshold value set to a value equal to or less than a third threshold value.

これにより、調整する手段は、第一または第三の判定条件に基づく判定結果として前記差または前記比が第一または第三の閾値よりも大きいときにはサンプル数を増加させ、第二または第四の判定条件に基づく判定結果として前記差または前記比が第二または第四の閾値以下のときにはサンプル数を減少させ、第一または第三の判定条件に基づく判定結果として前記差または前記比が第一または第三の閾値以下であり、第二または第四の判定条件に基づく判定結果として前記差または前記比が第二または第四の閾値より大きいときにはサンプル数を現状維持とする、ことができる。   Thereby, the adjusting means increases the number of samples when the difference or the ratio is larger than the first or third threshold as a determination result based on the first or third determination condition, and the second or fourth When the difference or the ratio is less than or equal to the second or fourth threshold as the determination result based on the determination condition, the number of samples is decreased, and the difference or the ratio is the first as the determination result based on the first or third determination condition. Alternatively, when the difference is less than or equal to the third threshold and the difference or the ratio is greater than the second or fourth threshold as a determination result based on the second or fourth determination condition, the number of samples can be maintained.

例えば、計算する手段により計算されたRTTの中で最小のRTTを適切なRTTとして選択する。   For example, the smallest RTT among the RTTs calculated by the calculating means is selected as an appropriate RTT.

また、本発明をプログラムとしての観点から観ることもできる。すなわち、本発明のプログラムは、情報処理装置にインストールすることにより、その情報処理装置に、サーバ装置との間の時刻差を一定値となるように制御することでサーバ装置に時刻またはクロック周波数を同期させるクライアント装置としての機能を実現するプログラムにおいて、クライアント装置とサーバ装置との間で送受信される信号のRTTを、この信号の複数をサンプルとして抽出して計算する機能と、計算する機能により計算されたRTTのバラツキを判定する機能と、この判定する機能の判定結果に基づきサンプル数を調整する機能と、を実現することを特徴とする。   The present invention can also be viewed from the viewpoint of a program. That is, the program of the present invention is installed in the information processing apparatus, and controls the information processing apparatus so that the time difference between the information processing apparatus and the server apparatus becomes a constant value, thereby setting the time or clock frequency in the server apparatus. In the program that realizes the function as the client device to be synchronized, the RTT of the signal transmitted / received between the client device and the server device is calculated by extracting a plurality of signals as samples and calculating the RTT. The present invention is characterized by realizing a function for determining the variation in the RTT and a function for adjusting the number of samples based on the determination result of the determination function.

輻輳などによるジッタの多いネットワーク環境でも、安定して高精度な時刻同期またはクロック周波数同期を実現できる。   Even in a network environment where there is much jitter due to congestion or the like, stable and highly accurate time synchronization or clock frequency synchronization can be realized.

(本発明の第一の実施の形態)
本発明の第一の実施の形態に係るクライアント装置1およびサーバ装置2を備える周波数・時刻同期システム3の構成を図1に示す。図1は、クライアント装置1およびサーバ装置2を含む周波数・時刻同期システム3のブロック構成図である。この周波数・時刻同期システム3は、クライアント装置1の時刻またはクロック周波数をサーバ装置2の時刻またはクロック周波数に同期させるものである。なお、クライアント装置1とサーバ装置2との間で時刻同期が確立されれば、クライアント装置1とサーバ装置2との間のクロック周波数同期も確立される。よって、以下では、時刻同期について説明し、クロック周波数同期についての説明は省略する。
(First embodiment of the present invention)
FIG. 1 shows a configuration of a frequency / time synchronization system 3 including the client device 1 and the server device 2 according to the first embodiment of the present invention. FIG. 1 is a block configuration diagram of a frequency / time synchronization system 3 including a client device 1 and a server device 2. The frequency / time synchronization system 3 synchronizes the time or clock frequency of the client device 1 with the time or clock frequency of the server device 2. If time synchronization is established between the client device 1 and the server device 2, clock frequency synchronization between the client device 1 and the server device 2 is also established. Therefore, hereinafter, time synchronization will be described, and description of clock frequency synchronization will be omitted.

クライアント装置1は、サーバ装置2に対し、図11に示す基本原理で説明したものと同様な同期要求パケット51を送信するための同期要求パケット送信部10と、サーバ装置2から送信される先に示したものと同様な同期応答パケット53を受信するための同期応答パケット受信部11とを備える。さらに、同期要求パケット送信部10および同期応答パケット受信部11に時刻情報を供給すると共に、クライアント装置1の外部に時刻情報を出力するためのクライアント時刻発生部12を備える。   The client device 1 transmits to the server device 2 a synchronization request packet transmitter 10 for transmitting a synchronization request packet 51 similar to that described in the basic principle shown in FIG. A synchronization response packet receiving unit 11 for receiving a synchronization response packet 53 similar to the one shown is provided. Furthermore, a client time generating unit 12 for supplying time information to the synchronization request packet transmitting unit 10 and the synchronization response packet receiving unit 11 and outputting the time information to the outside of the client device 1 is provided.

また、クライアント装置1とサーバ装置2との間の信号のRTTのバラツキの影響を吸収しつつRTTに基づきクライアント装置1とサーバ装置2との間の時刻差dTを計算する適応型フィルタリング部13を備える。さらに、適応型フィルタリング部13から伝達された時刻差dTが目標値となるように、クライアント時刻発生部12に対する位相・周波数制御を実施するクライアント時刻制御部14を備える。なお、時刻差dTの目標値としては“0”(時刻同期の場合であり、この場合はクロック周波数同期も達成)も有り得るし、“0”以外の値(周波数同期の場合)も有り得る。   In addition, an adaptive filtering unit 13 that calculates a time difference dT between the client device 1 and the server device 2 based on the RTT while absorbing the influence of the RTT variation of the signal between the client device 1 and the server device 2 is provided. Prepare. Furthermore, a client time control unit 14 that performs phase / frequency control on the client time generation unit 12 is provided so that the time difference dT transmitted from the adaptive filtering unit 13 becomes a target value. The target value of the time difference dT may be “0” (in the case of time synchronization, in which case clock frequency synchronization is also achieved), or may be a value other than “0” (in the case of frequency synchronization).

また、適応型フィルタリング部13は、RTTを、クライアント装置1とサーバ装置2との間で送受信される信号の複数をサンプルとして抽出して計算する手段としてのRTT計算部15と、RTT計算部15により計算されたRTTのバラツキを判定する手段としてのバラツキ判定部16と、このバラツキ判定部16の判定結果に基づきサンプル数を調整する手段としてのサンプル数調整部17と、を備える。   The adaptive filtering unit 13 also includes an RTT calculation unit 15 as a means for extracting and calculating a plurality of signals transmitted and received between the client device 1 and the server device 2 as samples, and an RTT calculation unit 15. And a sample number adjusting unit 17 as a unit for adjusting the number of samples based on the determination result of the variation determining unit 16.

また、時刻差計算部18は、RTT計算部15から出力されるRTTの値に基づいて時刻差dTを計算する。この時刻差dTは、クライアント時刻制御部14に伝達される。   The time difference calculator 18 calculates the time difference dT based on the RTT value output from the RTT calculator 15. This time difference dT is transmitted to the client time control unit 14.

また、サーバ装置2は、クライアント装置1から同期要求パケット51を受信するための同期要求パケット受信部20と、クライアント装置1に同期応答パケット53を送信するための同期応答パケット送信部21と、同期要求パケット受信部20および同期応答パケット送信部21に、時刻情報を供給するためのサーバ時刻発生部22とを備える。このサーバ時刻発生部22は、周波数・時刻同期システム3の基準時刻を発生する。   The server device 2 also includes a synchronization request packet receiving unit 20 for receiving the synchronization request packet 51 from the client device 1, a synchronization response packet transmitting unit 21 for transmitting the synchronization response packet 53 to the client device 1, and a synchronization A server time generator 22 for supplying time information to the request packet receiver 20 and the synchronization response packet transmitter 21 is provided. The server time generation unit 22 generates a reference time for the frequency / time synchronization system 3.

周波数・時刻同期システム3におけるクライアント装置1およびサーバ装置2は、それぞれ図示せぬメモリ、CPU(Central Processing Unit)、入出力ポートなどを有する。このCPUは、メモリなどから図示せぬ制御プログラムを読み込んで実行する。これにより、クライアント装置1には、同期要求パケット送信部10、同期応答パケット受信部11、クライアント時刻発生部12、適応型フィルタリング部13、クライアント時刻制御部14が実現される。また、サーバ装置2には、同期要求パケット受信部20、同期応答パケット送信部21、サーバ時刻発生部22が実現される。   The client device 1 and the server device 2 in the frequency / time synchronization system 3 each have a memory, a CPU (Central Processing Unit), an input / output port, and the like (not shown). The CPU reads and executes a control program (not shown) from a memory or the like. Thus, the client device 1 implements the synchronization request packet transmission unit 10, the synchronization response packet reception unit 11, the client time generation unit 12, the adaptive filtering unit 13, and the client time control unit 14. Further, the server device 2 includes a synchronization request packet receiver 20, a synchronization response packet transmitter 21, and a server time generator 22.

なお、CPUが実行する制御プログラムは、クライアント装置1、サーバ装置2の出荷前に、メモリなどに記憶されたものであっても、クライアント装置1、サーバ装置2の出荷後に、メモリなどに記憶されたものであってもよい。また、制御プログラムの一部がクライアント装置1、サーバ装置2の出荷後に、メモリに記憶されたものであってもよい。クライアント装置1、サーバ装置2の出荷後に、メモリなどに記憶される制御プログラムは、例えば、CD−ROMなどのコンピュータ読取可能な記録媒体に記憶されているものをインストールしたものであっても、インターネットなどの伝送媒体を介してダウンロードしたものをインストールしたものであってもよい。   Even if the control program executed by the CPU is stored in a memory or the like before shipment of the client device 1 or the server device 2, it is stored in a memory or the like after the client device 1 or the server device 2 is shipped. It may be. A part of the control program may be stored in the memory after the client device 1 and the server device 2 are shipped. The control program stored in the memory or the like after the client device 1 or the server device 2 is shipped may be, for example, an installed program stored in a computer-readable recording medium such as a CD-ROM or the Internet. What was downloaded via transmission media, such as, may be installed.

次に、周波数・時刻同期システム3の動作について説明する。クライアント装置1は、同期要求パケット送信部10から同期要求パケット送信時刻T1を書き込んだ同期要求パケット51をサーバ装置2に送信する。基準時刻を発生するサーバ装置2は、同期要求パケット受信部20で同期要求パケットを受信し、同期応答パケット送信部21から同期応答パケット53をクライアント装置1に送信する。   Next, the operation of the frequency / time synchronization system 3 will be described. The client device 1 transmits the synchronization request packet 51 in which the synchronization request packet transmission time T1 is written from the synchronization request packet transmitter 10 to the server device 2. The server device 2 that generates the reference time receives the synchronization request packet at the synchronization request packet reception unit 20 and transmits the synchronization response packet 53 from the synchronization response packet transmission unit 21 to the client device 1.

同期応答パケット53には同期要求パケット送信時刻T1の他、同期要求パケット受信部20が同期要求パケットを受信した同期要求パケット受信時刻T2と同期応答パケット送信部21が同期応答パケット53を送信した同期応答パケット送信時刻T3とが書き込まれている。また、クライアント装置1が同期応答パケット受信部11で同期応答パケット53を受信した時刻を同期応答パケット受信時刻T4とする。   In addition to the synchronization request packet transmission time T1, the synchronization response packet 53 includes the synchronization request packet reception time T2 at which the synchronization request packet reception unit 20 has received the synchronization request packet, and the synchronization at which the synchronization response packet transmission unit 21 has transmitted the synchronization response packet 53. Response packet transmission time T3 is written. The time when the client apparatus 1 receives the synchronization response packet 53 at the synchronization response packet receiver 11 is defined as a synchronization response packet reception time T4.

なお、同期要求パケット送信部10および同期応答パケット受信部11が、同期要求パケット51の送信および同期応答パケット53の受信を行った時点において、クライアント時刻発生部12から供給されている時刻情報を、それぞれ同期要求パケット送信時刻T1および同期応答パケット受信時刻T4として決定する。   Note that the time information supplied from the client time generation unit 12 at the time when the synchronization request packet transmission unit 10 and the synchronization response packet reception unit 11 transmit the synchronization request packet 51 and receive the synchronization response packet 53, They are determined as a synchronization request packet transmission time T1 and a synchronization response packet reception time T4, respectively.

同様に、同期要求パケット受信部20および同期応答パケット送信部21が、同期要求パケット51の受信および同期応答パケット53の送信を行った時点において、サーバ時刻発生部22から供給されている時刻情報を、それぞれ同期要求パケット受信時刻T2および同期応答パケット送信時刻T3として決定する。   Similarly, the time information supplied from the server time generating unit 22 at the time when the synchronization request packet receiving unit 20 and the synchronization response packet transmitting unit 21 receive the synchronization request packet 51 and transmit the synchronization response packet 53. The synchronization request packet reception time T2 and the synchronization response packet transmission time T3 are determined, respectively.

次に、適応型フィルタリング部13の動作を図2および図3を参照して説明する。図2および図3は、適当型フィルタリング部13の動作を説明するフローチャートである。適応型フィルタリング部13は、各時刻T1〜T4に対し、図2および図3に示すステップS1〜ステップS15の処理を行ってクライアント時刻発生部12のサーバ時刻発生部22に対する時刻差dTをクライアント時刻制御部14に対して出力する。   Next, the operation of the adaptive filtering unit 13 will be described with reference to FIGS. 2 and 3 are flowcharts for explaining the operation of the appropriate type filtering unit 13. The adaptive filtering unit 13 performs the processing of steps S1 to S15 shown in FIGS. 2 and 3 for each of the times T1 to T4 to obtain the time difference dT of the client time generating unit 12 with respect to the server time generating unit 22 as the client time. Output to the control unit 14.

ここで、
N:サンプル数
N_init:サンプル数の初期値
N_min:サンプル数の下限
N_max:サンプル数の上限
M:インデックスの現在値
t1[],t2[],t3[],t4[]:T1〜T4のサンプル値を格納する配列
r[]:RTTを格納する配列
K:r[]の最小値、すなわちRTTが最小値となる配列のインデックス
F_min(r[]):配列{r[0],r[1],…,r[N−1]}の中からRTTが最小値となる配列のインデックスを返す関数
F_inc(r[],N):配列{r[0],r[1],…,r[N−1]}のバラツキが「大きい」と判定する関数
F_dec(r[],N):配列{r[0],r[1],…,r[N−1]}のバラツキが「小さい」と判定する関数
とする。
here,
N: number of samples N_init: initial value of the number of samples N_min: lower limit of the number of samples N_max: upper limit of the number of samples M: current value of the index t1 [], t2 [], t3 [], t4 []: samples of T1 to T4 Array for storing values r []: Array for storing RTT K: Minimum value of r [], that is, index of array for which RTT is minimum F_min (r []): array {r [0], r [1 ],..., R [N-1]} that returns the index of the array with the smallest RTT F_inc (r [], N): array {r [0], r [1],. A function for determining that the variation of [N−1]} is “large” F_dec (r [], N): The variation of the array {r [0], r [1],..., R [N−1]} is “ It is assumed that the function is “small”.

図2に示すように、まず、適応型フィルタリング部13は、RTT計算部15におけるサンプル数およびインデックスを初期化する(ステップS1:N=N_init;M=0;)。RTT計算部15は、T1,T2,T3,T4を読み込む(ステップS2)。RTT計算部15は、読み込んだT1〜T4を配列に格納する(ステップS3:t1[M]=T1;t2[M]=T2;t3[M]=T3;t4[M]=T4;)。RTT計算部15は、RTTを求めてこれを配列に格納する(ステップS4:r[M]=t4[M]−t3[M]+t2[M]−t1[M];)。RTT計算部15は、インデックスを1つ増加させる(ステップS5:M+1;)。このときに、RTT計算部15は、配列長を示すインデックスMが所定のサンプル数Nに満たない場合は(ステップS6のNo)、ステップS2に戻る(ステップS6:if(M<N)then{S2;})。   As shown in FIG. 2, first, the adaptive filtering unit 13 initializes the number of samples and the index in the RTT calculation unit 15 (step S1: N = N_init; M = 0;). The RTT calculation unit 15 reads T1, T2, T3, and T4 (step S2). The RTT calculation unit 15 stores the read T1 to T4 in the array (Step S3: t1 [M] = T1; t2 [M] = T2; t3 [M] = T3; t4 [M] = T4;). The RTT calculator 15 obtains the RTT and stores it in the array (step S4: r [M] = t4 [M] −t3 [M] + t2 [M] −t1 [M];). The RTT calculator 15 increments the index by one (step S5: M + 1;). At this time, if the index M indicating the array length is less than the predetermined number of samples N (No in step S6), the RTT calculation unit 15 returns to step S2 (step S6: if (M <N) then { S2;}).

RTT計算部15は、配列長を示すインデックスMが所定のサンプル数N以上であれば(ステップS6のYes)、配列{r[0],r[1],…,r[N−1]}の中でRTTが最小値となるインデックスをKとする(ステップS7:K=F_min(r[]);)。時刻差計算部18は、RTT計算部15により計算されたRTT最小値に対する時刻差dTを求める(ステップS8:dT={t1[K]−t2[K]−t3[K]+t4[K]}/2;)。   If the index M indicating the array length is equal to or greater than the predetermined number of samples N (Yes in step S6), the RTT calculator 15 array {r [0], r [1], ..., r [N-1]}. The index at which the RTT has the minimum value is defined as K (step S7: K = F_min (r []);). The time difference calculation unit 18 obtains a time difference dT with respect to the RTT minimum value calculated by the RTT calculation unit 15 (step S8: dT = {t1 [K] −t2 [K] −t3 [K] + t4 [K]}). / 2;).

バラツキ判定部16は、RTT計算部15によるRTTの計算結果から配列{r[0],r[1],…,r[N−1]}のバラツキを判定する。このバラツキの判定は、上述したように所定の関数によって判定しているが、その関数は、過去の経験値から導かれるものとなっている。例えば、使用するネットワークで輻輳が生じていない状態における平均的なRTTと、そのときの標準偏差を実験データから求め、その各値と、配列{r[0],r[1],…,r[N−1]}の平均値と標準偏差とを比較するなどを採用する。バラツキ判定の結果、バラツキ判定部16がバラツキは「大きい」と判定し、かつ、サンプル数が上限に達していない場合は(ステップS9のYes)、サンプル数調整部17は、サンプル数を1つ増加させる(ステップS10)。その後、処理はステップS2に戻る(ステップS9、S10:if((F_inc(r[],N)=1)&(N<N_max))then{N+1;S2})。   The variation determination unit 16 determines the variation of the array {r [0], r [1],..., R [N−1]} from the RTT calculation result by the RTT calculation unit 15. This variation is determined by a predetermined function as described above, and the function is derived from past experience values. For example, an average RTT in a state where congestion does not occur in the network to be used and a standard deviation at that time are obtained from experimental data, and each value and an array {r [0], r [1],. The average value of [N-1]} is compared with the standard deviation. As a result of the variation determination, when the variation determination unit 16 determines that the variation is “large” and the number of samples has not reached the upper limit (Yes in step S9), the sample number adjustment unit 17 increases the number of samples by one. Increase (step S10). Thereafter, the processing returns to step S2 (steps S9, S10: if ((F_inc (r [], N) = 1) & (N <N_max)) then {N + 1; S2}).

ステップS10において、サンプル数調整部17がサンプル数を1つ増加させる様子を図4に示す。図4は、横軸に、例えば、サーバ時刻発生部22による第1の時刻T3aが、さらに所定時間後の第2の時刻T3b、などの時刻からなる経過時間をとり、縦軸にその時刻を有するRTTをとる。図4の黒丸は、経過時間に対応するRTTの値を示すものである。図4では、黒丸の配置位置の上下幅、すなわちRTTの最小値と最大値との差が後述する図5、図6よりも大きく、RTTのバラツキが大きい様子がわかる。図4の下部に示す両端に矢印を有する線分は、その線分の長さがサンプル範囲を示す。すなわち、線分が長いほどサンプル数が多いことを意味する。図4の例で、線分が下に行くほど長くなっている様子がわかる。図4では、最も上の1本目の線分のサンプル範囲で4つのRTTが計算され、そのバラツキが「大きく」かつサンプル数が上限でないため、次の2本目の線分のサンプル範囲に拡大され、5つ目のRTTが計算(算出)されている。このようにしてサンプル数が上限(=8)となるまでサンプル範囲が拡大されて行き、上から5本目の線分のサンプル範囲で上限に達したことを示している。なお、5本目の線分からは長さが一定となっているのは、上述したように、5本目の線分の時点でサンプル数が上限(ここではN_max=8とした)に達しているためである。また、5本目の線分までスタート位置が同じであるのは、バラツキが「大きい」場合(かつ、サンプル数が上限に達していない場合)は、最も古いサンプル{t1[0],t2[0],t3[0],t[0]}を廃棄しないためである。   FIG. 4 shows how the sample number adjustment unit 17 increases the number of samples by one in step S10. In FIG. 4, for example, the first time T3a by the server time generation unit 22 is an elapsed time including a second time T3b after a predetermined time, and the vertical axis indicates the time. Take the RTT you have. The black circles in FIG. 4 indicate the RTT value corresponding to the elapsed time. In FIG. 4, the vertical width of the arrangement position of the black circles, that is, the difference between the minimum value and the maximum value of the RTT is larger than those shown in FIGS. In the line segment having arrows at both ends shown in the lower part of FIG. 4, the length of the line segment indicates the sample range. That is, the longer the line segment, the greater the number of samples. In the example of FIG. 4, it can be seen that the line becomes longer as it goes down. In FIG. 4, four RTTs are calculated in the sample range of the uppermost first line segment. Since the variation is “large” and the number of samples is not the upper limit, it is expanded to the sample range of the next second line segment. The fifth RTT is calculated (calculated). In this way, the sample range is expanded until the number of samples reaches the upper limit (= 8), and the upper limit is reached in the sample range of the fifth line segment from the top. The reason why the length is constant from the fifth line segment is that, as described above, the number of samples reaches the upper limit (N_max = 8 here) at the time of the fifth line segment. It is. Also, the start position is the same up to the fifth line segment when the variation is “large” (and the number of samples has not reached the upper limit), the oldest sample {t1 [0], t2 [0 ], T3 [0], t [0]} are not discarded.

ステップS9において、バラツキ判定部16がバラツキが「大きい」と判定しなかった場合は(ステップS9のNo:F_inc(r[],N)=0)、図3に示すステップS11に移行する。   In step S9, when the variation determination unit 16 does not determine that the variation is “large” (No in step S9: F_inc (r [], N) = 0), the process proceeds to step S11 illustrated in FIG.

ステップS11において、バラツキ判定部16が配列{r[0],r[1],…,r[N−1]}のばらつきが「小さい」と判定した場合(かつ、サンプル数が下限数に比べ大きく、下限に達していない場合)は(ステップS11のYes:if((F_dec(r[],N)=1)&(N>Nmin))then S12 else S14)、最も古いサンプル{t1[0],t2[0],t3[0],t4[0]}および2番目に古いサンプル{t1[1],t2[1],t3[1],t4[1]}を廃棄する(ステップS12)。
S12:for(i=0;i<N−2;i+){
t1[i]=t1[i+2]
t2[i]=t2[i+2]
t3[i]=t3[i+2]
t4[i]=t4[i+2]
r[i]=r[i+2]

ステップS12の後、インデックスを2つ増加させ、かつ、サンプル数を1つ減少させてステップS2に戻る(ステップS13:M=M+2;N−1;S2)。
In step S11, when the variation determination unit 16 determines that the variation of the array {r [0], r [1],..., R [N−1]} is “small” (and the number of samples is smaller than the lower limit number). If it is large and has not reached the lower limit (Yes in step S11: if ((F_dec (r [], N) = 1) &(N> Nmin)) then S12 else S14), the oldest sample {t1 [0 ], T2 [0], t3 [0], t4 [0]} and the second oldest sample {t1 [1], t2 [1], t3 [1], t4 [1]} are discarded (step S12). ).
S12: for (i = 0; i <N-2; i +) {
t1 [i] = t1 [i + 2]
t2 [i] = t2 [i + 2]
t3 [i] = t3 [i + 2]
t4 [i] = t4 [i + 2]
r [i] = r [i + 2]
}
After step S12, the index is increased by 2 and the number of samples is decreased by 1 and the process returns to step S2 (step S13: M = M + 2; N-1; S2).

ステップS13において、サンプル数調整部17がサンプル数を1つ減少させる様子を図5に示す。図5は、図4と同様に、横軸に経過時間をとり、縦軸にRTTをとる。図5の黒丸は、経過時間に対応するRTTの値を示すものである。図5では、黒丸の配置位置の上下幅が図4と比べると小さく、RTTのバラツキが小さい様子がわかる。図5の下部に示す両端に矢印を有する線分は、その線分の長さがサンプル範囲を示す。すなわち、線分が短いほどサンプル数が少ないことを意味する。図5の例で、線分が下に行くほど短くなっている様子がわかる。最も上の1本目に線分のサンプル範囲では6つのRTTが算出されているが、そのRTTのバラツキが小さく、かつ、サンプル数が下限(例えば4つ)に到達していないため、次の2本目の線分のサンプル範囲のサンプル数は5つとなり、時刻T3cから時刻T3gのサンプル範囲となっている。この2番目のサンプル範囲は「M+2」、すなわち最初のサンプル範囲のスタートから2番目にくるもの(=時刻T3c)からスタートしている。この5つのRTTのバラツキも小さく、かつ、サンプル数は下限でないため、3番目のサンプル範囲へ移行して行く。なお、3本目の線分からは長さが一定となっているのは、3本目の線分の時点でサンプル数が下限(ここではN_min=4とした)に達しているためである。   FIG. 5 shows how the sample number adjusting unit 17 decreases the sample number by 1 in step S13. In FIG. 5, as in FIG. 4, the horizontal axis represents elapsed time and the vertical axis represents RTT. The black circles in FIG. 5 indicate RTT values corresponding to the elapsed time. In FIG. 5, it can be seen that the vertical width of the arrangement position of the black circle is smaller than that in FIG. 4, and the variation in RTT is small. In the line segment having arrows at both ends shown in the lower part of FIG. 5, the length of the line segment indicates the sample range. That is, the shorter the line segment, the smaller the number of samples. In the example of FIG. 5, it can be seen that the line segment becomes shorter as it goes down. Six RTTs are calculated in the sample range of the line segment in the uppermost line, but since the variation of the RTT is small and the number of samples has not reached the lower limit (for example, four), the following 2 The number of samples in the sample range of the main line segment is 5, which is the sample range from time T3c to time T3g. The second sample range starts from “M + 2”, that is, the second sample range (= time T3c) that comes second from the start of the first sample range. Since the variation of these five RTTs is small and the number of samples is not the lower limit, the process proceeds to the third sample range. The length is constant from the third line segment because the number of samples has reached the lower limit (N_min = 4 in this case) at the time of the third line segment.

また、ステップS11で、バラツキ判定部16が配列{r[0],r[1],…,r[N−1]}のばらつきが「中程度(大きくもなく小さくもない)」と判定した場合(あるいはサンプル数が上限または下限に達した場合)は(ステップS11のNo:if((F_dec(r[],N)=1)&(N>Nmin))then S12 else S14)、最も古いサンプル{t1[0],t2[0],t3[0],t4[0]}を廃棄する(ステップS14)。
S14:for(i=0;i<N−1;i+){
t1[i]=t1[i+1]
t2[i]=t2[i+1]
t3[i]=t3[i+1]
t4[i]=t4[i+1]
r[i]=r[i+1]

この場合には、インデックスを1つ増加させサンプル数は現状維持としてステップS2に戻る(ステップS15:M+1;S2)。
In step S11, the variation determination unit 16 determines that the variation of the array {r [0], r [1],..., R [N-1]} is “medium (not large or small)”. If (or if the number of samples has reached the upper limit or lower limit) (No in step S11: if ((F_dec (r [], N) = 1) &(N> Nmin)) then S12 else S14), the oldest The samples {t1 [0], t2 [0], t3 [0], t4 [0]} are discarded (step S14).
S14: for (i = 0; i <N−1; i +) {
t1 [i] = t1 [i + 1]
t2 [i] = t2 [i + 1]
t3 [i] = t3 [i + 1]
t4 [i] = t4 [i + 1]
r [i] = r [i + 1]
}
In this case, the index is incremented by 1, and the number of samples is maintained as it is, and the process returns to step S2 (step S15: M + 1; S2).

ステップS15において、サンプル数調整部17がサンプル数を現状維持とする様子を図6に示す。図6は、図4と同様に、横軸に経過時間をとり、縦軸にRTTをとる。図6の黒丸は、経過時間に対応するRTTの値を示すものである。図6では、黒丸の配置位置の上下幅が図4と比べると小さく、また、図5と比べると大きく、バラツキが「中程度」である様子がわかる。図6の下部に示す両端に矢印を有する線分は、その線分の長さがサンプル範囲を示す。図6の例では、時間が経過しても線分の長さは同じである様子がわかる。   FIG. 6 shows how the sample number adjusting unit 17 maintains the current number of samples in step S15. In FIG. 6, as in FIG. 4, the horizontal axis represents elapsed time and the vertical axis represents RTT. The black circles in FIG. 6 indicate RTT values corresponding to the elapsed time. In FIG. 6, it can be seen that the vertical width of the arrangement position of the black circle is smaller than that in FIG. 4 and larger than that in FIG. 5, and the variation is “medium”. In the line segment having arrows at both ends shown in the lower part of FIG. 6, the length of the line segment indicates the sample range. In the example of FIG. 6, it can be seen that the length of the line segment remains the same even when time elapses.

クライアント時刻制御部14は、適応型フィルタリング部13が出力した時刻差dTの値が目標値に近づくようにクライアント時刻発生部12の位相・周波数の制御を実施する。時刻差dTの目標値としては“0”(時刻同期の場合)も有り得るし、“0”以外の値(周波数同期の場合)も有り得る。また、本発明の実施の形態ではサンプル中からRTTの最小値を選択しているが、この他の選択アルゴリズムも有り得る。例えば、RTTに対するフィルタリングを行い、遅延時間の平均値から大きく外れるパケットを除去し、遅延時間の平均値の近傍のデータだけをサンプルとして用いてもよい。または、RTTに対するフィルタリングを行い、前回のRTTから推定される誤差範囲に収まるデータだけをサンプルとして用いてもよい。   The client time control unit 14 controls the phase and frequency of the client time generation unit 12 so that the value of the time difference dT output from the adaptive filtering unit 13 approaches the target value. The target value of the time difference dT can be “0” (in the case of time synchronization) or can be a value other than “0” (in the case of frequency synchronization). In the embodiment of the present invention, the minimum value of RTT is selected from the samples, but other selection algorithms are possible. For example, RTT filtering may be performed to remove packets that greatly deviate from the average delay time, and only data in the vicinity of the average delay time may be used as a sample. Alternatively, RTT filtering may be performed, and only data that falls within the error range estimated from the previous RTT may be used as a sample.

このように、本発明の第一の実施の形態では、バラツキ判定部16に2種類の関数(F_inc(r[],N),F_dec(r[],N))を設け、バラツキ判定部16がRTTのサンプル配列{r[0],r[1],…,r[N−1]}のバラツキを判定することにより、バラツキを「大きい」、「中程度」、「小さい」の3段階に分類している。   Thus, in the first embodiment of the present invention, the variation determination unit 16 is provided with two types of functions (F_inc (r [], N), F_dec (r [], N)), and the variation determination unit 16 Determines the variation of the RTT sample array {r [0], r [1],..., R [N−1]}, and thus the variation is classified into three stages of “large”, “medium”, and “small”. It is classified into.

サンプル数調整部17は、バラツキ判定部16によりサンプル配列{r[0],r[1],…,r[N−1]}のバラツキが「大きい」と判定された場合には、新しいサンプル1個を追加することにより、サンプル数を1つ増加させる。   When the variation determination unit 16 determines that the variation of the sample array {r [0], r [1],..., R [N−1]} is “large”, the sample number adjustment unit 17 By adding one, the number of samples is increased by one.

また、サンプル数調整部17は、バラツキ判定部16によりサンプル配列{r[0],r[1],…,r[N−1]}のバラツキが「中程度」と判定された場合には、新しいサンプル1個を追加し、かつ古いサンプル1個を廃棄することにより、サンプル数を現状維持とする。   The sample number adjusting unit 17 also determines that the variation of the sample array {r [0], r [1],..., R [N−1]} is “medium” by the variation determining unit 16. The number of samples is maintained as it is by adding one new sample and discarding one old sample.

また、サンプル数調整部17は、バラツキ判定部16によりサンプル配列{r[0],r[1],…,r[N−1]}のバラツキが「小さい」と判定された場合には、新しいサンプル1個を追加し、かつ古いサンプル2個を廃棄することにより、サンプル数を1つ減少させる。   In addition, when the variation determination unit 16 determines that the variation of the sample array {r [0], r [1],..., R [N−1]} is “small”, the sample number adjustment unit 17 Decrease the number of samples by one by adding one new sample and discarding two old samples.

(本発明の第二の実施の形態)
本発明の第二の実施の形態として、バラツキ判定部16がRTTのバラツキを「大きい」「小さい」「中程度」と判定するアルゴリズムを有する周波数・時刻同期システム3について説明する。図7は、判定関数F_inc(x[],N)の定義を説明するためのフローチャートである。図8は、判定関数F_dec(x[],N)の定義を説明するためのフローチャートである。なお、第一の実施の形態と同一部材については、同一符号を用いて説明する。
(Second embodiment of the present invention)
As a second embodiment of the present invention, a frequency / time synchronization system 3 having an algorithm in which the variation determination unit 16 determines that the variation in RTT is “large”, “small”, and “medium” will be described. FIG. 7 is a flowchart for explaining the definition of the determination function F_inc (x [], N). FIG. 8 is a flowchart for explaining the definition of the determination function F_dec (x [], N). In addition, about the same member as 1st embodiment, it demonstrates using the same code | symbol.

F_min(x[],N):配列{x[0],x[1],…,x[N−1]}の中からRTTが最小値となる配列のインデックスを返す関数
F_2nd(x[],N):配列{x[0],x[1],…,x[N−1]}の中からRTTが2番目に小さい値となる配列のインデックスを返す関数
K:x[]の中でRTTが最小値のインデックス
L:x[]の中でRTTが2番目に小さい値のインデックス
Δr_inc:第1の閾値
Δr_dec:第2の閾値
(Δr_dec≦Δr_inc)
として、上述の判定関数を次のように定義する。
F_min (x [], N): a function that returns an index of an array in which the RTT has the minimum value out of the array {x [0], x [1],..., X [N−1]} F_2nd (x [] , N): function that returns the index of the array whose RTT is the second smallest value in the array {x [0], x [1],..., X [N−1]} K: in the x [] Index with minimum RTT value L: Index with the second smallest value of RTT in x [] Δr_inc: first threshold value Δr_dec: second threshold value (Δr_dec ≦ Δr_inc)
The above-mentioned determination function is defined as follows.

図7に示すように、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中から最小のRTTを有するもの、すなわちRTTが最小値となる配列を求める(ステップS20:K=F_min(x[],N);)。次に、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中から2番目に小さいRTTの値を有する配列を求める(ステップS21:L=F_2nd(x[],N);)。次に、バラツキ判定部16は、これら2つのRTTの差分を求める(ステップS22)。バラツキ判定部16は、その差分が第1の閾値Δr_incより大きい場合は(ステップS22のYes)、判定関数F_inc(x[],N)の値を「1」とする(ステップS23)。また、バラツキ判定部16は、その差分がΔr_inc以下の場合は(ステップS22のNo)、判定関数F_inc(x[],N)の値を「0」とする(ステップS24)。判定関数F_inc(x[],N)は以上のように定義されるものである。   As shown in FIG. 7, the variation determination unit 16 has the smallest RTT from the array {x [0], x [1],..., X [N−1]}, that is, the RTT is the minimum value. (Step S20: K = F_min (x [], N);). Next, the variation determination unit 16 obtains an array having the second smallest RTT value from the array {x [0], x [1],..., X [N−1]} (step S21: L = F_2nd (x [], N);). Next, the variation determination unit 16 obtains a difference between these two RTTs (step S22). When the difference is larger than the first threshold Δr_inc (Yes in step S22), the variation determination unit 16 sets the value of the determination function F_inc (x [], N) to “1” (step S23). Further, when the difference is equal to or less than Δr_inc (No in step S22), the variation determination unit 16 sets the value of the determination function F_inc (x [], N) to “0” (step S24). The determination function F_inc (x [], N) is defined as described above.

また、図8に示すように、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中から最小のRTTを有するもの、すなわちRTTが最小値となる配列を求める(ステップS30:K=F_min(x[],N);)。次に、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中から2番目に小さいRTTの値を有する配列を求める(ステップS31:L=F_2nd(x[],N);)。次に、バラツキ判定部16は、これら2つのRTTの差分を求める(ステップS32)。バラツキ判定部16は、その差分が第2の閾値Δr_dec以下の場合は(ステップS32のYes)、判定関数F_dec(x[],N)の値を「1」とする(ステップS33)。また、バラツキ判定部16は、その差分が第2の閾値Δr_decより大きい場合は(ステップS32のNo)、判定関数F_dec(x[],N)の値を「0」とする(ステップS34)。   As shown in FIG. 8, the variation determination unit 16 has the smallest RTT from the array {x [0], x [1],..., X [N−1]}, that is, the RTT is the smallest. An array of values is obtained (step S30: K = F_min (x [], N);). Next, the variation determination unit 16 obtains an array having the second smallest RTT value from the array {x [0], x [1],..., X [N−1]} (step S31: L = F_2nd (x [], N);). Next, the variation determination unit 16 obtains a difference between these two RTTs (step S32). When the difference is equal to or smaller than the second threshold Δr_dec (Yes in Step S32), the variation determination unit 16 sets the value of the determination function F_dec (x [], N) to “1” (Step S33). Further, when the difference is larger than the second threshold Δr_dec (No in step S32), the variation determination unit 16 sets the value of the determination function F_dec (x [], N) to “0” (step S34).

第1の閾値Δr_incおよび第2の閾値Δr_decの値は、使用するネットワークで輻輳が生じていない状態における平均的なジッタに基づいて設定する。例えば、そのような平均的なジッタの値の+20%の値を第1の閾値Δr_incとし、−20%を第2の閾値Δr_decとする。この他、ジッタを統計処理し、標準偏差σを求め、+σを第1の閾値Δr_incとし、−σを第2の閾値Δr_decとしてもよい。バラツキ判定部16は、F_inc(x[],N)=1であり、F_dec(x[],N)=0であればバラツキが「大きい」と判定する。また、バラツキ判定部16は、F_inc(x[],N)=0であり、F_dec(x[],N)=1であればバラツキが「小さい」と判定する。また、バラツキ判定部16は、F_inc(x[],N)=0であり、F_dec(x[],N)=0であればバラツキが「中程度」と判定する。   The values of the first threshold value Δr_inc and the second threshold value Δr_dec are set based on average jitter in a state where congestion does not occur in the network to be used. For example, a value of + 20% of the average jitter value is set as the first threshold value Δr_inc, and −20% is set as the second threshold value Δr_dec. In addition, the jitter may be statistically processed to obtain the standard deviation σ, + σ may be the first threshold Δr_inc, and −σ may be the second threshold Δr_dec. The variation determination unit 16 determines that the variation is “large” if F_inc (x [], N) = 1 and F_dec (x [], N) = 0. The variation determination unit 16 determines that the variation is “small” if F_inc (x [], N) = 0 and F_dec (x [], N) = 1. The variation determination unit 16 determines that the variation is “medium” if F_inc (x [], N) = 0 and F_dec (x [], N) = 0.

(本発明の第三の実施の形態)
本発明の第三の実施の形態として、バラツキ判定部16がRTTのバラツキを「大きい」「小さい」「中程度」と判定する本発明の第二の実施の形態とは異なるアルゴリズムを有する周波数・時刻同期システム3について説明する。図9は、判定関数F_inc(x[],N)の定義を説明するためのフローチャートである。図10は、判定関数F_dec(x[],N)の定義を説明するためのフローチャートである。なお、第一の実施の形態と同一部材については同一の符号を用いて説明する。
(Third embodiment of the present invention)
As a third embodiment of the present invention, the frequency determination unit 16 has a different algorithm from that of the second embodiment of the present invention in which the variation determination unit 16 determines that the RTT variation is “large”, “small”, and “medium”. The time synchronization system 3 will be described. FIG. 9 is a flowchart for explaining the definition of the determination function F_inc (x [], N). FIG. 10 is a flowchart for explaining the definition of the determination function F_dec (x [], N). The same members as those in the first embodiment will be described using the same reference numerals.

F_min(x[],N):配列{x[0],x[1],…,x[N−1]}の中からRTTが最小値となる配列のインデックスを返す関数
F_2nd(x[],N):配列{x[0],x[1],…,x[N−1]}の中からRTTが2番目に小さい値となる配列のインデックスを返す関数
K:x[]の中でRTTが最小値のインデックス
L:x[]の中でRTTが2番目に小さい値のインデックス
δ_inc:第3の閾値(>1)
δ_dec:第4の閾値(>1)
(δ_dec≦δ_inc)
として、上述の判定関数を次のように定義する。
F_min (x [], N): a function that returns an index of an array in which the RTT has the minimum value out of the array {x [0], x [1],..., X [N−1]} F_2nd (x [] , N): function that returns the index of the array whose RTT is the second smallest value in the array {x [0], x [1],..., X [N−1]} K: in the x [] Index with the smallest value of RTT L: index with the second smallest value of RTT in x [] δ_inc: third threshold (> 1)
δ_dec: fourth threshold (> 1)
(Δ_dec ≦ δ_inc)
The above-mentioned determination function is defined as follows.

図9に示すように、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中からRTTが最小値となる配列を求める(ステップS40:K=F_min(x[],N);)。次に、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中からRTTが2番目に小さい値となる配列を求める(ステップS41:L=F_2nd(x[],N);)。次に、バラツキ判定部16は、これらの値の比となる「x[L]/x[K]」を求める(ステップS42)。バラツキ判定部16は、その比が第3の閾値δ_incより大きい場合は(ステップS42のYes)、判定関数F_inc(x[],N)の値を「1」とする(ステップS43)。また、バラツキ判定部16は、その比が第3の閾値δ_inc以下の場合は(ステップS42のNo)、判定関数F_inc(x[],N)の値を「0」とする(ステップS44)。   As illustrated in FIG. 9, the variation determination unit 16 obtains an array in which the RTT has the minimum value from the array {x [0], x [1],..., X [N−1]} (step S40: K = F_min (x [], N);). Next, the variation determination unit 16 obtains an array in which RTT is the second smallest value from the array {x [0], x [1],..., X [N−1]} (step S41: L = F_2nd (x [], N);). Next, the variation determination unit 16 obtains “x [L] / x [K]” which is a ratio of these values (step S42). When the ratio is larger than the third threshold δ_inc (Yes in step S42), the variation determination unit 16 sets the value of the determination function F_inc (x [], N) to “1” (step S43). Further, when the ratio is equal to or smaller than the third threshold value δ_inc (No in step S42), the variation determination unit 16 sets the value of the determination function F_inc (x [], N) to “0” (step S44).

また、図10に示すように、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中からRTTが最小値となる配列を求める(ステップS50:K=F_min(x[],N);)。次に、バラツキ判定部16は、配列{x[0],x[1],…,x[N−1]}の中からRTTが2番目に小さい値となる配列を求める(ステップS51:L=F_2nd(x[],N);)。次に、バラツキ判定部16は、これらの値の比となる「x[L]/x[K]」を求める(ステップS52)。バラツキ判定部16は、その比が第4の閾値δ_dec以下の場合は(ステップS52のYes)、判定関数F_dec(x[],N)の値を「1」とする(ステップS53)。また、バラツキ判定部16は、その比が第4の閾値δ_decより大きい場合は(ステップS52のNo)、判定関数F_dec(x[],N)の値を「0」とする(ステップS54)。   Also, as shown in FIG. 10, the variation determination unit 16 obtains an array in which the RTT has the minimum value from the array {x [0], x [1],..., X [N−1]} (step S50: K = F_min (x [], N);). Next, the variation determination unit 16 obtains an array in which RTT is the second smallest value from the array {x [0], x [1],..., X [N−1]} (step S51: L = F_2nd (x [], N);). Next, the variation determination unit 16 obtains “x [L] / x [K]” as a ratio of these values (step S52). When the ratio is equal to or smaller than the fourth threshold δ_dec (Yes in Step S52), the variation determination unit 16 sets the value of the determination function F_dec (x [], N) to “1” (Step S53). Further, when the ratio is larger than the fourth threshold δ_dec (No in step S52), the variation determination unit 16 sets the value of the determination function F_dec (x [], N) to “0” (step S54).

第3の閾値δ_incおよび第4の閾値δ_decの値は、使用するネットワークで輻輳が生じていない状態における平均的なジッタに基づいて設定する。具体的に設定値を求める方法としては、第二の実施の形態における各閾値を求める方法やその他の方法を採用することができる。バラツキ判定部16は、F_inc(x[],N)=1であり、F_dec(x[],N)=0であればバラツキが「大きい」と判定する。また、バラツキ判定部16は、F_inc(x[],N)=0であり、F_dec(x[],N)=1であればバラツキが「小さい」と判定する。また、バラツキ判定部16は、F_inc(x[],N)=0であり、F_dec(x[],N)=0であればバラツキが「中程度」と判定する。   The values of the third threshold value δ_inc and the fourth threshold value δ_dec are set based on average jitter in a state where congestion does not occur in the network to be used. Specifically, as a method for obtaining the set value, a method for obtaining each threshold value in the second embodiment and other methods can be employed. The variation determination unit 16 determines that the variation is “large” if F_inc (x [], N) = 1 and F_dec (x [], N) = 0. The variation determination unit 16 determines that the variation is “small” if F_inc (x [], N) = 0 and F_dec (x [], N) = 1. The variation determination unit 16 determines that the variation is “medium” if F_inc (x [], N) = 0 and F_dec (x [], N) = 0.

(プログラムの実施例)
情報処理装置にインストールすることにより、その情報処理装置に、本発明の実施の形態のクライアント装置1の機能を実現するプログラム(以下、本プログラムという)の実施例を説明する。ここで、情報処理装置とは、例えば、汎用のコンピュータ装置である。
(Example of the program)
An example of a program (hereinafter referred to as this program) that realizes the function of the client device 1 according to the embodiment of the present invention by installing in the information processing device will be described. Here, the information processing apparatus is, for example, a general-purpose computer apparatus.

本プログラムは記録媒体に記録されることにより、情報処理装置は、この記録媒体を用いて本プログラムをインストールすることができる。あるいは、本プログラムを保持するサーバからネットワークを介して直接、情報処理装置に本プログラムをインストールすることもできる。   By recording the program on a recording medium, the information processing apparatus can install the program using the recording medium. Alternatively, the program can be directly installed in the information processing apparatus from the server holding the program via the network.

これにより、情報処理装置を用いて、本発明の実施の形態のクライアント装置1における同期要求パケット送信部10、同期応答パケット受信部11、クライアント時刻発生部12、適応型フィルタリング部13、クライアント時刻制御部14の機能を実現することができる。なお、これ以外の機能についてもソフトウェアによって実現可能な機能については、本プログラムによって実現してもよい。また、サーバ装置2の機能についてもソフトウェアによって実現可能な機能については、本プログラムによって実現してもよい。   Accordingly, using the information processing apparatus, the synchronization request packet transmission unit 10, the synchronization response packet reception unit 11, the client time generation unit 12, the adaptive filtering unit 13, and the client time control in the client device 1 according to the embodiment of the present invention. The function of the unit 14 can be realized. Note that other functions that can be realized by software may be realized by this program. Also, the functions of the server apparatus 2 may be realized by this program for functions that can be realized by software.

なお、上述した本プログラムの実施例は、情報処理装置によって直接実行可能なものだけでなく、ハードディスクなどにインストールすることによって実行可能となるものも含む。また、圧縮されたり、暗号化されたりしたものも含む。   The above-described embodiments of the program include not only those that can be directly executed by the information processing apparatus but also those that can be executed by being installed on a hard disk or the like. Also included are those that are compressed or encrypted.

(その他の実施の形態)
本発明の実施の形態は、本発明の要旨を逸脱しない限り、様々に変更が可能である。例えば、図1に示す周波数・時刻同期システム3は、クライアント装置1とサーバ装置2との間を、有線回線であるかのように図示した。しかしながら、クライアント装置1とサーバ装置2との間の回線は、有線回線であっても無線回線であってもよい。また、ステップS22、S42の「>」を「≧」とし、ステップS32、S52の「≦」を「<」としてもよい。さらに、この符号の一方のみを変更し、他方をそのままとしてもよい。
(Other embodiments)
The embodiment of the present invention can be variously modified without departing from the gist of the present invention. For example, the frequency / time synchronization system 3 illustrated in FIG. 1 is illustrated as if it is a wired line between the client device 1 and the server device 2. However, the line between the client apparatus 1 and the server apparatus 2 may be a wired line or a wireless line. Also, “>” in steps S22 and S42 may be “≧”, and “≦” in steps S32 and S52 may be “<”. Furthermore, only one of the symbols may be changed and the other may be left as it is.

また、上述の各実施の形態では、往復遅延時間RTTの最小値を適切な往復遅延時間として選択しているが最小値がバラツキの標準偏差σ外であるときは、最小値ではなく2番目に小さい値を採用するようにしてもよい。さらには、常に2番目に小さい値または3番目に小さい値など他の値を適切な往復遅延時間RTTとしてもよい。また、第二、第三の実施の形態ではRTTが2番目に小さいものを利用しているが、2番目ではなく、3番目に小さいものや4番目に小さいものなどを利用して最小値のものと併せて利用するようにしてもよい。また、第二、第三の実施の形態では、RTTが最小値のものと2番目に小さいものの2つを利用しているが、利用する配列としては3つ以上としてもよい。   Further, in each of the above-described embodiments, the minimum value of the round trip delay time RTT is selected as an appropriate round trip delay time. However, when the minimum value is outside the standard deviation σ of variation, it is not the minimum value but the second value. A small value may be adopted. Furthermore, other values such as the second smallest value or the third smallest value may always be used as the appropriate round trip delay time RTT. In the second and third embodiments, the RTT having the second smallest value is used. However, the minimum value is not obtained by using the third smallest value or the fourth smallest value. You may make it use together with a thing. In the second and third embodiments, two RTTs having the smallest value and the second smallest are used, but three or more arrays may be used.

上述の実施の形態では、クライアント装置1が出力する時刻情報の用途については述べていない。例えば、この時刻情報を図示外の他のクライアント装置に供給することにより、そのクライアント装置もサーバ装置2の時刻と同期が可能になる。また、サーバ装置2が時刻T4を入手できるようにすることで、サーバ装置2のサーバ時刻発生部22の位相または周波数を制御するようにしてもよい。また、各実施の形態では、RTTを利用しているが、RTTではなく、片側の遅延時間D1、D2の一方のみを利用して制御するようにしてもよい。   In the above-described embodiment, the use of the time information output from the client device 1 is not described. For example, by supplying this time information to another client device (not shown), the client device can be synchronized with the time of the server device 2. Moreover, you may make it control the phase or frequency of the server time generation part 22 of the server apparatus 2 by enabling the server apparatus 2 to acquire time T4. In each embodiment, the RTT is used. However, the control may be performed using only one of the delay times D1 and D2 on one side instead of the RTT.

また、図1では、説明を分り易くするために、クライアント時刻発生部12、適応型フィルタリング部13、クライアント時刻制御部14をそれぞれ異なる機能ブロックとして図示した。しかしながら、これらの機能ブロックを1つの機能ブロックに集約してもよい。また、クロック周波数同期を行うときは、時刻差dtを「0」あるいは適当な値とし、その値を目標として制御することとなる。   In FIG. 1, for easy understanding, the client time generation unit 12, the adaptive filtering unit 13, and the client time control unit 14 are illustrated as different functional blocks. However, these functional blocks may be integrated into one functional block. Further, when clock frequency synchronization is performed, the time difference dt is set to “0” or an appropriate value, and the control is performed with that value as a target.

本発明の第一の実施の形態に係る周波数・時刻同期システムの構成図である。1 is a configuration diagram of a frequency / time synchronization system according to a first embodiment of the present invention. FIG. 図1に示すクライアント装置の適応型フィルタリング部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the adaptive type filtering part of the client apparatus shown in FIG. 図2に示すフローチャートの続きとなるフローチャートである。FIG. 3 is a flowchart that is a continuation of the flowchart shown in FIG. 2. FIG. 図1に示すクライアント装置の適応型フィルタリング部におけるサンプル数増加処理を説明するための図である。It is a figure for demonstrating the sample number increase process in the adaptive type filtering part of the client apparatus shown in FIG. 図1に示すクライアント装置の適応型フィルタリング部におけるサンプル数減少処理を説明するための図である。It is a figure for demonstrating the sample number reduction process in the adaptive type filtering part of the client apparatus shown in FIG. 図1に示すクライアント装置の適応型フィルタリング部におけるサンプル数維持処理を説明するための図である。It is a figure for demonstrating the sample number maintenance process in the adaptive filtering part of the client apparatus shown in FIG. 本発明の第二の実施の形態に係る周波数・時刻同期システム中の適応型フィルタリング部におけるバラツキ判定手順を示すフローチャートであり、判定関数F_inc(x[],N)の定義を説明するためのフローチャートである。It is a flowchart which shows the variation determination procedure in the adaptive filtering part in the frequency and time synchronous system which concerns on 2nd embodiment of this invention, and is a flowchart for demonstrating the definition of determination function F_inc (x [], N) It is. 本発明の第二の実施の形態に係る周波数・時刻同期システム中の適応型フィルタリング部におけるバラツキ判定手順を示すフローチャートであり、判定関数F_dec(x[],N)の定義を説明するためのフローチャートである。It is a flowchart which shows the variation determination procedure in the adaptive filtering part in the frequency / time synchronous system which concerns on 2nd embodiment of this invention, and is a flowchart for demonstrating the definition of determination function F_dec (x [], N) It is. 本発明の第三の実施の形態に係る周波数・時刻同期システム中の適応型フィルタリング部におけるバラツキ判定手順を示すフローチャートであり、判定関数F_inc(x[],N)の定義を説明するためのフローチャートである。It is a flowchart which shows the variation determination procedure in the adaptive filtering part in the frequency / time synchronous system which concerns on 3rd embodiment of this invention, and is a flowchart for demonstrating the definition of determination function F_inc (x [], N) It is. 本発明の第三の実施の形態に係る周波数・時刻同期システム中の適応型フィルタリング部におけるバラツキ判定手順を示すフローチャートであり、判定関数F_dec(x[],N)の定義を説明するためのフローチャートである。It is a flowchart which shows the variation determination procedure in the adaptive filtering part in the frequency / time synchronous system which concerns on 3rd embodiment of this invention, and is a flowchart for demonstrating the definition of determination function F_dec (x [], N) It is. 従来例を示す図で、パケット網における同期方式として標準的に用いられているNTPやSNTPの基本原理を説明するための図である。It is a figure which shows a prior art example, and is a figure for demonstrating the basic principle of NTP and SNTP which are used normally as a synchronous system in a packet network.

符号の説明Explanation of symbols

1 クライアント装置、2 サーバ装置、3 周波数・時刻同期システム、10 同期要求パケット送信部、11 同期応答パケット受信部、12 クライアント時刻発生部、13 適応型フィルタリング部(計算する手段、判定する手段、調整する手段)、14 クライアント時刻制御部、15 RTT計算部(計算する手段)、16 バラツキ判定部(判定する手段)、17 サンプル数調整部(調整する手段)、18 時刻差計算部、20 同期要求パケット受信部、21 同期応答パケット送信部、22 サーバ時刻発生部、51 同期要求パケット、53 同期応答パケット 1 client device, 2 server device, 3 frequency / time synchronization system, 10 synchronization request packet transmission unit, 11 synchronization response packet reception unit, 12 client time generation unit, 13 adaptive filtering unit (calculation unit, determination unit, adjustment 14) client time control unit, 15 RTT calculation unit (calculation unit), 16 variation determination unit (determination unit), 17 sample number adjustment unit (adjustment unit), 18 time difference calculation unit, 20 synchronization request Packet receiver, 21 synchronization response packet transmitter, 22 server time generator, 51 synchronization request packet, 53 synchronization response packet

Claims (6)

サーバ装置との間の時刻差を一定値となるように制御することで上記サーバ装置に時刻またはクロック周波数を同期させるクライアント装置において、
上記クライアント装置とサーバ装置との間で送受信される信号の往復遅延時間を、この信号の複数をサンプルとして抽出して計算する手段と、
上記計算する手段により計算された上記往復遅延時間のバラツキを判定する手段と、
この判定する手段の判定結果に基づき上記サンプル数を調整する手段と、
を備えることを特徴とするクライアント装置。
In the client device that synchronizes the time or clock frequency with the server device by controlling the time difference with the server device to be a constant value,
Means for calculating a round trip delay time of a signal transmitted and received between the client device and the server device by extracting a plurality of the signals as samples;
Means for determining variations in the round trip delay time calculated by the means for calculating;
Means for adjusting the number of samples based on the determination result of the determination means;
A client device comprising:
前記調整する手段は、
前記計算する手段により計算された前記往復遅延時間における最小の往復遅延時間と二番目に小さい往復遅延時間との差が第一の閾値よりも大きいか否かを判定する第一の判定条件と、
上記差が上記第一の閾値以下の値に設定される第二の閾値以下か否かを判定する第二の判定条件と、
を有することを特徴とする請求項1記載のクライアント装置。
The means for adjusting is
A first determination condition for determining whether a difference between a minimum round-trip delay time in the round-trip delay time calculated by the calculating unit and a second smallest round-trip delay time is greater than a first threshold;
A second determination condition for determining whether the difference is equal to or less than a second threshold set to a value equal to or less than the first threshold;
The client apparatus according to claim 1, further comprising:
前記調整する手段は、
前記計算する手段により計算された前記往復遅延時間における最小の往復遅延時間に対する二番目に小さい往復遅延時間の比が第三の閾値よりも大きいか否かを判定する第三の判定条件と、
上記比が上記第三の閾値以下の値に設定される第四の閾値以下か否かを判定する第四の判定条件と、
を有することを特徴とする請求項1記載のクライアント装置。
The means for adjusting is
A third determination condition for determining whether a ratio of a second smallest round-trip delay time to a minimum round-trip delay time in the round-trip delay time calculated by the calculating unit is greater than a third threshold;
A fourth determination condition for determining whether the ratio is equal to or less than a fourth threshold set to a value equal to or less than the third threshold;
The client apparatus according to claim 1, further comprising:
前記調整する手段は、
前記第一または第三の判定条件に基づく判定結果として前記差または前記比が前記第一または第三の閾値よりも大きいときには前記サンプル数を増加させ、
前記第二または第四の判定条件に基づく判定結果として前記差または前記比が前記第二または第四の閾値以下のときには前記サンプル数を減少させ、
前記第一または第三の判定条件に基づく判定結果として前記差または前記比が前記第一または第三の閾値以下であり、前記第二または第四の判定条件に基づく判定結果として前記差または前記比が前記第二または第四の閾値より大きいときには前記サンプル数を現状維持とする、
ことを特徴とする請求項2または3記載のクライアント装置。
The means for adjusting is
When the difference or the ratio is larger than the first or third threshold as a determination result based on the first or third determination condition, increase the number of samples,
When the difference or the ratio is less than or equal to the second or fourth threshold as a determination result based on the second or fourth determination condition, the number of samples is decreased,
The difference or the ratio is less than or equal to the first or third threshold as a determination result based on the first or third determination condition, and the difference or the ratio as a determination result based on the second or fourth determination condition When the ratio is greater than the second or fourth threshold, the number of samples is maintained as it is,
The client device according to claim 2 or 3, wherein
前記計算する手段により計算された前記往復遅延時間の中で最小の往復遅延時間を適切な往復遅延時間として選択する請求項1から4のいずれか1項記載のクライアント装置。   5. The client device according to claim 1, wherein a minimum round-trip delay time among the round-trip delay times calculated by the calculating unit is selected as an appropriate round-trip delay time. 情報処理装置にインストールすることにより、その情報処理装置に、サーバ装置との間の時刻差を一定値となるように制御することで上記サーバ装置に時刻またはクロック周波数を同期させるクライアント装置としての機能を実現するプログラムにおいて、
クライアント装置とサーバ装置との間で送受信される信号の往復遅延時間を、この信号の複数をサンプルとして抽出して計算する機能と、
上記計算する機能により計算された上記往復遅延時間のバラツキを判定する機能と、
この判定する機能の判定結果に基づき上記サンプル数を調整する機能と、
を実現することを特徴とするプログラム。
Function as a client device that synchronizes the time or clock frequency with the server device by controlling the time difference between the information processing device and the server device to be a constant value by installing the information processing device. In the program that realizes
A function of calculating a round-trip delay time of a signal transmitted and received between the client device and the server device by extracting a plurality of the signals as samples;
A function for determining variation in the round-trip delay time calculated by the function for calculating;
A function of adjusting the number of samples based on the determination result of the determination function;
A program characterized by realizing.
JP2008190387A 2008-07-24 2008-07-24 Client device and program Pending JP2010028684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008190387A JP2010028684A (en) 2008-07-24 2008-07-24 Client device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008190387A JP2010028684A (en) 2008-07-24 2008-07-24 Client device and program

Publications (1)

Publication Number Publication Date
JP2010028684A true JP2010028684A (en) 2010-02-04

Family

ID=41734048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008190387A Pending JP2010028684A (en) 2008-07-24 2008-07-24 Client device and program

Country Status (1)

Country Link
JP (1) JP2010028684A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014165582A (en) * 2013-02-22 2014-09-08 Nippon Telegraph & Telephone East Corp Time synchronization system, time synchronization method, slave node and computer program
JP2016517196A (en) * 2013-03-05 2016-06-09 クゥアルコム・インコーポレイテッドQualcomm Incorporated Reduce the effects of clock drift in wireless devices
JP2016225880A (en) * 2015-06-01 2016-12-28 日本電気通信システム株式会社 Time synchronization device, time synchronization method, and time synchronization program
CN112714353A (en) * 2020-12-28 2021-04-27 杭州电子科技大学 Distributed synchronization method for multimedia stream
JP7123228B1 (en) * 2021-09-06 2022-08-22 セイコーソリューションズ株式会社 Clock processor and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014165582A (en) * 2013-02-22 2014-09-08 Nippon Telegraph & Telephone East Corp Time synchronization system, time synchronization method, slave node and computer program
JP2016517196A (en) * 2013-03-05 2016-06-09 クゥアルコム・インコーポレイテッドQualcomm Incorporated Reduce the effects of clock drift in wireless devices
JP2016225880A (en) * 2015-06-01 2016-12-28 日本電気通信システム株式会社 Time synchronization device, time synchronization method, and time synchronization program
CN112714353A (en) * 2020-12-28 2021-04-27 杭州电子科技大学 Distributed synchronization method for multimedia stream
CN112714353B (en) * 2020-12-28 2022-08-30 杭州电子科技大学 Distributed synchronization method for multimedia stream
JP7123228B1 (en) * 2021-09-06 2022-08-22 セイコーソリューションズ株式会社 Clock processor and program
WO2023032351A1 (en) * 2021-09-06 2023-03-09 セイコーソリューションズ株式会社 Clock processing device and program

Similar Documents

Publication Publication Date Title
US11057136B1 (en) Time correction using extension fields
JP4810520B2 (en) Client device and synchronization system
US10142088B2 (en) Network clock skew estimation and calibration
US20100020909A1 (en) Synchronizing apparatus and method in packet network
JP2010527193A (en) Method and network component for synchronizing a clock of a network component to a clock of another network component
US9781474B2 (en) Content playback information estimation apparatus and method and program
US8948037B1 (en) Checksum trailer in timing protocols
JP2009538101A (en) Network time protocol precision time stamp service
KR20150143801A (en) Timestamp generating method, device and system
JP5008041B2 (en) Propagation delay time measurement system
WO2001050674A1 (en) Synchronization in packet-switched telecommunications system
JP2010028684A (en) Client device and program
JP2017529806A (en) Distribution of dynamic accuracy information in IEEE 1588 clock network
JP2014238357A (en) Reception device, time difference calculation method and program
JP5675703B2 (en) Communication device, control device, and program
JP2014202734A (en) Slave unit, master slave system, and time synchronization method
JP2007214670A (en) Client device and program
JP2007282093A (en) Apparatus and method for clock signal generation
JP4467478B2 (en) Transmission apparatus and time synchronization method
JP6254028B2 (en) Slave node and time synchronization method
JP2006340078A (en) Flow control method and apparatus thereof
JP2018125768A (en) Data transmission device and program
JP6572136B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, SECOND DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP2009272800A (en) Quality measurement system, reception device, quality measuring method, and program
JP4678046B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, DELAY TIME MEASUREMENT TIME SETTING METHOD, DELAY TIME CALCULATION METHOD, AND PROGRAM