JP2016225880A - Time synchronization device, time synchronization method, and time synchronization program - Google Patents

Time synchronization device, time synchronization method, and time synchronization program Download PDF

Info

Publication number
JP2016225880A
JP2016225880A JP2015111503A JP2015111503A JP2016225880A JP 2016225880 A JP2016225880 A JP 2016225880A JP 2015111503 A JP2015111503 A JP 2015111503A JP 2015111503 A JP2015111503 A JP 2015111503A JP 2016225880 A JP2016225880 A JP 2016225880A
Authority
JP
Japan
Prior art keywords
time
packet
clock
master device
stamped
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.)
Granted
Application number
JP2015111503A
Other languages
Japanese (ja)
Other versions
JP6198075B2 (en
Inventor
高橋 正行
Masayuki Takahashi
正行 高橋
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.)
NEC Communication Systems Ltd
Original Assignee
NEC Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP2015111503A priority Critical patent/JP6198075B2/en
Publication of JP2016225880A publication Critical patent/JP2016225880A/en
Application granted granted Critical
Publication of JP6198075B2 publication Critical patent/JP6198075B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a time synchronization device and the like that can improve time precision in communication by a particular protocol.SOLUTION: A packet filter processing unit 100 corrects packet transmission time (t1) on the basis of the minimum value (minimum PDV) of time difference (t2'-t1) between the packet transmission time (t1) from a time master apparatus 600 and packet reception time (t2') stamped by a first clock 250, and corrects packet reception time (t4) on the basis of the minimum value (minimum PDV) of time difference (t4-t3') between packet transmission time (t3') stamped by the first clock 250 and the packet reception time (t4) at the time master apparatus 600.SELECTED DRAWING: Figure 1

Description

本発明は、特定のプロトコル(例えばIEEE1588v2)に好適な時刻同期装置等に関する。この種の技術は、例えば特許文献1〜3に開示されている。   The present invention relates to a time synchronization apparatus suitable for a specific protocol (for example, IEEE1588v2). This type of technology is disclosed in Patent Documents 1 to 3, for example.

図6に、関連技術1の時刻同期装置50を示す。時刻同期装置50はIEEE1588v2プロトコルを使用する。IEEE1588v2は、一般的に「PTP(Precision Time Protocol)」と称されることから、本明細書では「PTP」で統一する。   FIG. 6 shows a time synchronization device 50 of the related technique 1. The time synchronizer 50 uses the IEEE 1588v2 protocol. Since IEEE1588v2 is generally called “PTP (Precision Time Protocol)”, it is unified with “PTP” in this specification.

時刻同期装置50は、t1パケット受信部1、フォローアップパケット受信部2、t3パケット送信部3、t4パケット受信部4、XO(Crystal Oscillator)10、時計11、t2打刻部20、t2−t1算出部21、加算器22、t3打刻部30、t4−t3算出部31、補数化部32、PI(Proportional/Integrator)制御器40などを備えている。   The time synchronizer 50 includes a t1 packet receiving unit 1, a follow-up packet receiving unit 2, a t3 packet transmitting unit 3, a t4 packet receiving unit 4, an XO (Crystal Oscillator) 10, a clock 11, a t2 stamping unit 20, and t2-t1. A calculation unit 21, an adder 22, a t3 marking unit 30, a t4-t3 calculation unit 31, a complementing unit 32, a PI (Proportional / Integrator) controller 40, and the like are provided.

t1パケット受信部1は「t1(Sync. Message) Packet only」、フォローアップパケット受信部2は「Follow-up Message Packet only」、t3パケット送信部3は「t3(Delay Request) Packet only」、t4パケット受信部4は「t4(Delay Response) Packet only」、時計11は「Servo PTP Epoch Counter」、t2打刻部20は「t2 Time to stamp (for T/Servo)」、t2−t1算出部21は「t2−t1 cal. (MTSD)」、加算器22は「ADDER」、t3打刻部30は「t3 Time to stamp (for T/Servo)」、t4−t3算出部31は「t4-t3 cal. (STMD)」、補数化部32は「2's Complement」、PI制御器40は「PI Controller」と、それぞれ表記することもできる。   The t1 packet receiver 1 is “t1 (Sync. Message) Packet only”, the follow-up packet receiver 2 is “Follow-up Message Packet only”, the t3 packet transmitter 3 is “t3 (Delay Request) Packet only”, t4 The packet receiving unit 4 is “t4 (Delay Response) Packet only”, the clock 11 is “Servo PTP Epoch Counter”, the t2 stamping unit 20 is “t2 Time to stamp (for T / Servo)”, and the t2-t1 calculating unit 21 Is “t2-t1 cal. (MTSD)”, the adder 22 is “ADDER”, the t3 stamping unit 30 is “t3 Time to stamp (for T / Servo)”, and the t4-t3 calculating unit 31 is “t4-t3”. cal. (STMD) ”, the complementing unit 32 can be expressed as“ 2's Complement ”, and the PI controller 40 can be expressed as“ PI Controller ”.

時刻同期装置50による時刻同期の動作は次のとおりである。まず、装置内の基準発振源であるXO10を元にして、装置内の時計11を構築する。そして、t1パケット受信時の時刻を時計11によってt2打刻部20で打刻(受信パケット到着時間を計測)し、その時刻をt2時刻とする。同様に、t1パケット受信後、t3パケット送信時の時刻をt3打刻部30で打刻し、t3パケット内にその時刻を挿入し、t3パケット送信部3から時刻マスタ機器へ送信する。ここで、時刻同期するためには、t2−t1(以下「MTSD(Master to Slave Delay)」ということもある。)及びt4−t3(以下「STMD(Slave to Master Delay)」ということもある。)をそれぞれ算出し、各々の値が同じになるようにPLL制御すれば良い。そのためには、STMDの2の補数(−STMD)を補数化部32で算出し、MTSDと−STMDとを加算器22で加算し、その結果をPI制御器40で比例・積分処理し、PI制御器40で生成された位相(時刻)データを元に時計11内のディジタル発振器(DCO:Digitally Controlled Oscillator)を制御する。その制御信号は「Actuate to Digital Oscillator」と表記することもできる。この一連の処理は、PTPでは時刻サーボ処理として知られている。t2パケット及びt4パケットについても周知技術のとおりである。   The operation of time synchronization by the time synchronization apparatus 50 is as follows. First, the timepiece 11 in the apparatus is constructed based on the reference oscillation source XO10 in the apparatus. Then, the time at which the t1 packet is received is stamped by the clock 11 at the t2 stamping unit 20 (the received packet arrival time is measured), and the time is defined as t2 time. Similarly, after receiving the t1 packet, the time at the time of transmitting the t3 packet is stamped by the t3 stamping unit 30, the time is inserted into the t3 packet, and transmitted from the t3 packet transmitting unit 3 to the time master device. Here, in order to synchronize the time, it may be t2-t1 (hereinafter also referred to as “MTSD (Master to Slave Delay)”) and t4-t3 (hereinafter referred to as “STMD (Slave to Master Delay)”). ), And PLL control may be performed so that the respective values are the same. For this purpose, the two's complement of STMD (-STMD) is calculated by the complementing unit 32, MTSD and -STMD are added by the adder 22, and the result is subjected to proportional / integral processing by the PI controller 40, and PI Based on the phase (time) data generated by the controller 40, a digital oscillator (DCO: Digitally Controlled Oscillator) in the timepiece 11 is controlled. The control signal can also be expressed as “Actuate to Digital Oscillator”. This series of processing is known as time servo processing in PTP. The t2 packet and the t4 packet are also known in the art.

特開2014−027381号公報JP 2014-027381 A 特開2010−212945号公報JP 2010-212945 A 特開2014−147105号公報JP 2014-147105 A

PTPでは、MTSD方向(下り)とSTMD方向(上り)との遅延が必ずしも同一になるとは限らないため、マスタ・スレーブ間で時刻差が発生する。これを回避するためには、MTSD方向(下り)とSTMD方向(上り)の遅延を常時同一にすればよいが、パケットネットワークで上り・下りの遅延が同一になることは皆無に等しい。このように、PTPは、上り・下りの遅延が同一という条件でのプロトコルであるため、その遅延の条件が崩れると、時刻精度がそのまま悪化する。この点がPTPの最大の課題である。   In PTP, the delay between the MTSD direction (downstream) and the STMD direction (upstream) is not always the same, so a time difference occurs between the master and the slave. In order to avoid this, the delay in the MTSD direction (downlink) and the STMD direction (uplink) need only be always the same, but in the packet network, the uplink and downlink delays are never the same. Thus, since PTP is a protocol under the condition that the upstream and downstream delays are the same, if the delay condition is broken, the time accuracy deteriorates as it is. This is the biggest problem with PTP.

この課題を解決するためには、イーサネット(登録商標)をSyncE(Synchronous Ethernet:同期イーサネット)とし、マスタ・スレーブ間の周波数同期は行わず、時刻同期のみ行う技術が挙げられる。ただし、この場合は、SyncEが必須となるため、新規ネットワークでは適用できても、既存ネットワークでは導入メリットが全く出ない。   In order to solve this problem, there is a technology in which Ethernet (registered trademark) is SyncE (Synchronous Ethernet), and frequency synchronization between master and slave is not performed, and only time synchronization is performed. However, in this case, since SyncE is essential, even if it can be applied in a new network, there is no merit in introducing it in an existing network.

また、パケットフィルタを用いて遅延時間の大きいパケットを廃棄することにより、時刻精度を向上させようとする技術も知られている(例えば特許文献2参照)。しかし、関連技術1にパケットフィルタ機能を実装しても、時刻サーボ処理されたクロックをパケットの良否判定に用いることになるため、ネットワークの負荷変動によってパケットの良否判定が正常に行われないことがある。その理由は、時刻サーボでは、ネットワーク負荷変動に同期したクロックしか抽出できないことにより、パケットの良否判定に使われるクロックに揺らぎ成分が加わるので、正確な時刻が打刻できないためである。   In addition, a technique for improving time accuracy by discarding a packet having a large delay time using a packet filter is also known (see, for example, Patent Document 2). However, even if the packet filter function is implemented in the related technique 1, the time servo-processed clock is used for the packet quality determination, and therefore the packet quality determination may not be performed normally due to a change in the network load. is there. The reason is that the time servo can extract only the clock synchronized with the network load fluctuation, and the fluctuation component is added to the clock used for determining the quality of the packet, so that the accurate time cannot be stamped.

そこで、本発明の目的は、特定のプロトコルによる通信において時刻精度を向上し得る時刻同期装置等を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a time synchronization apparatus and the like that can improve time accuracy in communication using a specific protocol.

本発明に係る時刻同期装置は、
第一の時計を有するとともに、時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期部と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ部と、
第二の時計を有するとともに、前記パケットフィルタ部で補正された前記時刻マスタ機器からのパケット送信時刻と前記第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ部で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期部と、
を備えたものである。
The time synchronization apparatus according to the present invention is
In addition to having a first clock, the operation of the first clock is controlled so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant. A frequency synchronization unit;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter unit that corrects the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Having a second clock, calculating a downstream delay time from a packet transmission time from the time master device corrected by the packet filter unit and a packet reception time stamped by the second clock, Calculating an upstream delay time from a packet transmission time stamped by a second clock and a packet reception time at the time master device corrected by the packet filter unit, and the downstream delay time and the upstream delay time, A time synchronizer that controls the operation of the second timepiece so that
It is equipped with.

本発明に係る時刻同期方法は、
時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期ステップと、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタステップと、
前記パケットフィルタステップで補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタステップで補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期ステップと、
を含むものである。
The time synchronization method according to the present invention includes:
A frequency synchronization step for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter step for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected in the packet filter step and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An uplink delay time is calculated from the time and the packet reception time at the time master device corrected in the packet filter step, and the second delay time and the second delay time are made equal to each other. A time synchronization step for controlling the operation of the clock;
Is included.

本発明に係る時刻同期プログラムは、
時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期手段と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ手段と、
前記パケットフィルタ手段で補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ手段で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期手段と、
をコンピュータに機能させるためのものである。
The time synchronization program according to the present invention is:
Frequency synchronization means for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first Packet filter means for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected by the packet filter means and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An upstream delay time is calculated from the time and the packet reception time at the time master device corrected by the packet filter means, and the second delay time and the upstream delay time are made equal to each other. Time synchronization means for controlling the operation of the watch;
Is to make the computer function.

本発明によれば、時刻同期用の時計ではなくSyncE相当の周波数同期用の時計を用いてパケットフィルタを動作させることにより、パケット送信時刻及びパケット受信時刻を正確に補正できるので、特定のプロトコルによる通信において時刻精度を向上できる。   According to the present invention, the packet transmission time and the packet reception time can be accurately corrected by operating the packet filter using a frequency synchronization clock equivalent to SyncE instead of a time synchronization clock. Time accuracy can be improved in communication.

実施形態1の時刻同期装置を示すブロック図である。It is a block diagram which shows the time synchronizer of Embodiment 1. FIG. 実施形態1の時刻同期装置におけるIIRフィルタを示すブロック図である。FIG. 3 is a block diagram illustrating an IIR filter in the time synchronization apparatus of the first embodiment. 比較例1の時刻同期装置における負荷時間と時刻オフセットとの関係を示すグラフである。6 is a graph showing a relationship between a load time and a time offset in the time synchronization apparatus of Comparative Example 1; 実施形態1の時刻同期装置における負荷時間と時刻オフセットとの関係を示すグラフである。It is a graph which shows the relationship between the load time and the time offset in the time synchronizer of Embodiment 1. 実施形態1の時刻同期装置における負荷時間と時刻オフセットとの関係(拡大)を示すグラフである。It is a graph which shows the relationship (expansion) of the load time and time offset in the time synchronizer of Embodiment 1. 関連技術1の時刻同期装置を示すブロック図である。It is a block diagram which shows the time synchronizer of related technology 1.

以下、本発明を実施するための形態(以下「実施形態」という。)について説明する。まず、本実施形態1の概要を説明する。   Hereinafter, modes for carrying out the present invention (hereinafter referred to as “embodiments”) will be described. First, the outline | summary of this Embodiment 1 is demonstrated.

関連技術1にパケットフィルタ機能を実装した場合の前述の課題を解決するには、時刻サーボとは独立した周波数サーボを設け、周波数サーボでSyncE相当のクロックを生成し、そのクロックをパケット良否判定に使えば良い。ただし、周波数サーボを独立化しても、ITU-T G.8261で定義されているテストケース13や14の場合は、負荷変動が一定ではなく、過負荷のときもあれば負荷がないときもある。この場合に、周波数サーボでは、平均化フィルタの時定数を大きくすれば、安定したクロックがいずれ生成可能であるが、基地局装置特有の規格である電源立ち上げ後30分以内の時刻同期引き込みを満足しにくくなる。本実施形態1は、この場合でも、ある区間の平均値を基準とし、その後の周波数偏差を算出・補正することで、短時間でも高精度な時刻同期を可能とするものである。   In order to solve the above-mentioned problem when the packet filter function is implemented in Related Technology 1, a frequency servo independent of the time servo is provided, a clock equivalent to SyncE is generated by the frequency servo, and the clock is used for packet pass / fail judgment. Use it. However, even if the frequency servo is made independent, in the test cases 13 and 14 defined in ITU-T G.8261, the load fluctuation is not constant, and there may be an overload or no load. . In this case, the frequency servo can eventually generate a stable clock if the time constant of the averaging filter is increased, but the time synchronization pull-in within 30 minutes after the power-on, which is a standard specific to the base station device, is possible. It becomes difficult to be satisfied. Even in this case, the first embodiment enables high-precision time synchronization even in a short time by calculating and correcting the frequency deviation after that based on the average value of a certain section.

本実施形態1では、ITU-T G.8261で定義されているパケットネットワーク上の負荷モデルであるテストケース13(トラフィックモデル2)が印加された場合、時刻精度を±200ns以内にすることを可能とするものである。なお、本実施形態1は、IEEE1588v2プロトコル自体の変更は不要であり、かつ、時刻精度安定化のための外部ソフトウェアアルゴリズムも不要であることから、非常にシンプルな回路構成で実現することができる。更に、本実施形態1では、SyncEを使わなくとも、高精度な時刻同期が可能である。   In the first embodiment, when the test case 13 (traffic model 2), which is a load model on the packet network defined in ITU-T G.8261, is applied, the time accuracy can be within ± 200 ns. It is what. The first embodiment can be realized with a very simple circuit configuration because the IEEE1588v2 protocol itself does not need to be changed and an external software algorithm for stabilizing the time accuracy is also unnecessary. Furthermore, in the first embodiment, highly accurate time synchronization is possible without using SyncE.

本実施形態1は、LTE(Long Term Evolution)など、無線基地局間同期をIEEE1588v2で実現した場合の時刻同期安定化のためのスレーブシステムあり、具体的には、理想的な時刻パケットのみを使い、高精度な時刻同期が可能であることを特徴としている。   The first embodiment is a slave system for stabilizing time synchronization when synchronization between wireless base stations is realized by IEEE 1588v2, such as LTE (Long Term Evolution). Specifically, only an ideal time packet is used. It is characterized by being capable of highly accurate time synchronization.

次に、本実施形態1の詳細について、図面を参照しつつ説明する。図1は、本実施形態1の時刻同期装置を示すブロック図である。図2は、本実施形態1の時刻同期装置におけるIIRフィルタを示すブロック図である。   Next, details of the first embodiment will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a time synchronization apparatus according to the first embodiment. FIG. 2 is a block diagram showing an IIR filter in the time synchronization apparatus of the first embodiment.

本実施形態1の時刻同期装置400は、パケットフィルタ処理部100、PTP周波数同期部200及びPTP時刻同期部300を備えている。PTP周波数同期部200は「PTP Frequency Servo」、PTP時刻同期部300は「PTP Time Servo」と、それぞれ表記することもできる。   The time synchronization apparatus 400 according to the first embodiment includes a packet filter processing unit 100, a PTP frequency synchronization unit 200, and a PTP time synchronization unit 300. The PTP frequency synchronization unit 200 can be expressed as “PTP Frequency Servo”, and the PTP time synchronization unit 300 can be expressed as “PTP Time Servo”.

パケットフィルタ処理部100は、t1パケット受信部111、フォローアップパケット受信部112、t3パケット送信部113、t4パケット受信部114、t2’打刻部130、t2’−t1算出部131、t2’−t1最小時間選択部132、t2’−t1補正部133、t1補正値更新部134、t3’打刻部140、t4−t3’算出部141、t4−t3’最小時間選択部142、t4−t3’補正部143、t4補正値更新部144などを備えている。t2’打刻部130は「t2' Time to stamp (for Packet Filter)」、t2’−t1最小時間選択部132は「t2'-t1 min. PDV(Packet Delay Variation) Search & Keephold」、t2’−t1補正部133は「t2'-t1 Correction」、t1補正値更新部134は「Update to PTP t1 Correction Field」、t3’打刻部140は「t3' Time to stamp (for Packet Filter)」、t4−t3’最小時間選択部142は「t4-t3' min. PDV Search & Keephold」、t4−t3’補正部143は「t4-t3' Correction」、t4補正値更新部144は「Update to PTP t4 Correction Field」と、それぞれ表記することもできる。   The packet filter processing unit 100 includes a t1 packet receiving unit 111, a follow-up packet receiving unit 112, a t3 packet transmitting unit 113, a t4 packet receiving unit 114, a t2 ′ stamping unit 130, a t2′-t1 calculating unit 131, and a t2′−. t1 minimum time selection unit 132, t2'-t1 correction unit 133, t1 correction value update unit 134, t3 'stamping unit 140, t4-t3' calculation unit 141, t4-t3 'minimum time selection unit 142, t4-t3 'A correction unit 143 and a t4 correction value update unit 144 are provided. The t2 'stamping unit 130 is "t2' Time to stamp (for Packet Filter)", the t2'-t1 minimum time selecting unit 132 is "t2'-t1 min. PDV (Packet Delay Variation) Search & Keephold", t2 ' -T1 correction unit 133 is "t2'-t1 Correction", t1 correction value update unit 134 is "Update to PTP t1 Correction Field", t3 'stamping unit 140 is "t3' Time to stamp (for Packet Filter)", The t4-t3 ′ minimum time selection unit 142 is “t4-t3 ′ min. PDV Search & Keephold”, the t4-t3 ′ correction unit 143 is “t4-t3 ′ Correction”, and the t4 correction value update unit 144 is “Update to PTP”. t4 Correction Field "can also be written.

PTP周波数同期部200は、t2’打刻部210、位相比較器220、IIR(Infinite Impulse Response)フィルタ230、PI制御器240、第一の時計250などを備えている。t2’打刻部210は「t2' Time to stamp (for F/Servo)」、位相比較器220は「PD(Phase Detector) (for F/Servo)」、IIRフィルタ230は「IIR Filter W/ Smoothing Algorithm」、第一の時計250は「Servo t1 Epoch Counter」と、それぞれ表記することもできる。第一の時計250からt2’打刻部210へ出力されるローカルタイムは、「t1 time (recovered)」と表記することもできる。   The PTP frequency synchronization unit 200 includes a t2 ′ stamping unit 210, a phase comparator 220, an IIR (Infinite Impulse Response) filter 230, a PI controller 240, a first clock 250, and the like. The t2 ′ stamping section 210 is “t2 ′ Time to stamp (for F / Servo)”, the phase comparator 220 is “PD (Phase Detector) (for F / Servo)”, and the IIR filter 230 is “IIR Filter W / Smoothing”. The “Algorithm” and the first clock 250 can be written as “Servo 1 Epoch Counter”, respectively. The local time output from the first clock 250 to the t2 ′ stamping unit 210 can also be expressed as “t1 time (recovered)”.

IIRフィルタ230は、フィルタ部510及びディザリング部520を備えている。フィルタ部510は、加算器511、分周器512、加算器513及び積分器514を備えている。ディザリング部520は、最大時間選択部521、データ出力部522、ディザリング処理部523及び加算器524を備えている。分周器512は「Divider (1/N) N-Average」、積分器514は「Integrator (Z^-1)」、最大時間選択部521は「MAX Time Search & Keephold」、データ出力部522は「=N Count Filter data Keephold, >N Count Filter data」、ディザリング処理部523は「Dithering (x-∞)/abs (MAX Time)」と、それぞれ表記することもできる。   The IIR filter 230 includes a filter unit 510 and a dithering unit 520. The filter unit 510 includes an adder 511, a frequency divider 512, an adder 513, and an integrator 514. The dithering unit 520 includes a maximum time selection unit 521, a data output unit 522, a dithering processing unit 523, and an adder 524. The frequency divider 512 is “Divider (1 / N) N-Average”, the integrator 514 is “Integrator (Z ^ -1)”, the maximum time selection unit 521 is “MAX Time Search & Keephold”, and the data output unit 522 is “= N Count Filter data Keephold,> N Count Filter data”, and the dithering processing unit 523 can also be expressed as “Dithering (x−∞) / abs (MAX Time)”.

PTP時刻同期部300は、OCXO(Oven Controlled Crystal Oscillator)310、第二の時計311、t2打刻部320、t2−t1算出部321、加算器322、t3打刻部330、t4−t3算出部331、補数化部332、PI制御器340などを備えている。   The PTP time synchronization unit 300 includes an OCXO (Oven Controlled Crystal Oscillator) 310, a second clock 311, a t2 stamping unit 320, a t2-t1 calculation unit 321, an adder 322, a t3 stamping unit 330, and a t4-t3 calculation unit. 331, a complementing unit 332, a PI controller 340, and the like.

PTP時刻同期部300、並びに、パケットフィルタ処理部100のt1パケット受信部111、フォローアップパケット受信部112、t3パケット送信部113及びt4パケット受信部114は、図6に示す関連技術1の時刻同期装置50の構成に準ずる。時刻マスタ機器600は一般的な構成である。   The PTP time synchronization unit 300, and the t1 packet reception unit 111, the follow-up packet reception unit 112, the t3 packet transmission unit 113, and the t4 packet reception unit 114 of the packet filter processing unit 100 are time synchronization of the related technique 1 illustrated in FIG. According to the configuration of the device 50. The time master device 600 has a general configuration.

次に、本実施形態1の時刻同期装置400の特徴について説明する。前述したように、時刻同期装置400は、パケットフィルタ処理部100、PTP周波数同期部200及びPTP時刻同期部300を備えている。   Next, features of the time synchronization apparatus 400 according to the first embodiment will be described. As described above, the time synchronization apparatus 400 includes the packet filter processing unit 100, the PTP frequency synchronization unit 200, and the PTP time synchronization unit 300.

PTP周波数同期部200は、第一の時計250を有するとともに、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)が一定になるように、第一の時計250の動作を制御する。つまり、PTP周波数同期部200は、時刻マスタ機器600の出力信号(時刻)の周波数に、第一の時計250の出力信号(時刻)の周波数を同期させる。   The PTP frequency synchronization unit 200 includes a first clock 250 and a time difference between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250 ( The operation of the first timepiece 250 is controlled so that t2′−t1) is constant. That is, the PTP frequency synchronization unit 200 synchronizes the frequency of the output signal (time) of the first timepiece 250 with the frequency of the output signal (time) of the time master device 600.

パケットフィルタ処理部100は、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)の最小値(最小PDV)に基づき、パケット送信時刻(t1)を補正するとともに、第一の時計250によって打刻したパケット送信時刻(t3’)と時刻マスタ機器600でのパケット受信時刻(t4)との時刻差(t4−t3’)の最小値(最小PDV)に基づき、パケット受信時刻(t4)を補正する。ここで「補正する」には、各パケットの補正フィールド(Correction Field)に補正値を加算することも含まれる。   The packet filter processing unit 100 determines the minimum value (t2′−t1) of the time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. Based on the minimum PDV), the packet transmission time (t1) is corrected, and the time difference between the packet transmission time (t3 ′) stamped by the first clock 250 and the packet reception time (t4) at the time master device 600 Based on the minimum value (minimum PDV) of (t4-t3 ′), the packet reception time (t4) is corrected. Here, “correcting” includes adding a correction value to the correction field of each packet.

PTP時刻同期部300は、第二の時計311を有するとともに、パケットフィルタ処理部100で補正されたパケット送信時刻(t1)と、第二の時計311によって打刻したパケット受信時刻(t2)とから下り方向遅延時間(t2−t1)を算出し、第二の時計311によって打刻したパケット送信時刻(t3)と、パケットフィルタ処理部100で補正されたパケット受信時刻(t4)とから上り方向遅延時間(t4−t3)を算出し、下り方向遅延時間(t4−t3)と上り方向遅延時間(t2−t1)とが等しくなるように第二の時計311の動作を制御する。つまり、PTP時刻同期部300は、時刻マスタ機器600の出力信号(時刻)に、第二の時計311の出力信号(時刻)を同期させる。   The PTP time synchronization unit 300 includes a second clock 311, and from the packet transmission time (t 1) corrected by the packet filter processing unit 100 and the packet reception time (t 2) stamped by the second clock 311. The downstream delay time (t2−t1) is calculated and the upstream delay is calculated from the packet transmission time (t3) stamped by the second clock 311 and the packet reception time (t4) corrected by the packet filter processing unit 100. The time (t4-t3) is calculated, and the operation of the second timepiece 311 is controlled so that the downstream delay time (t4-t3) is equal to the upstream delay time (t2-t1). That is, the PTP time synchronization unit 300 synchronizes the output signal (time) of the second timepiece 311 with the output signal (time) of the time master device 600.

パケット送信時刻(t1)は受信パケット(フォローアップパケット)に含まれ、パケット受信時刻(t2’)は受信パケット(t1パケット)に対応し、パケット送信時刻(t3’)は送信パケット(t3パケット)に対応し、パケット受信時刻(t4)は受信パケット(t4パケット)に含まれる。   The packet transmission time (t1) is included in the reception packet (follow-up packet), the packet reception time (t2 ′) corresponds to the reception packet (t1 packet), and the packet transmission time (t3 ′) is the transmission packet (t3 packet). And the packet reception time (t4) is included in the received packet (t4 packet).

本実施形態1によれば、時刻同期用の時計311ではなくSyncE相当の周波数同期用の時計250を用いてパケットフィルタ処理部100を動作させることにより、パケット送信時刻(t1)及びパケット受信時刻(t4)を正確に補正できるので、特定のプロトコルによる通信において時刻精度を向上できる。   According to the first embodiment, the packet transmission processing unit 100 is operated by using the frequency synchronization clock 250 equivalent to SyncE instead of the time synchronization clock 311, so that the packet transmission time (t 1) and the packet reception time ( Since t4) can be accurately corrected, time accuracy can be improved in communication using a specific protocol.

また、本実施形態1の時刻同期装置400は、次のように言い換えることも可能である。   In addition, the time synchronization apparatus 400 according to the first embodiment can be paraphrased as follows.

時刻同期装置400は、IEEE1588プレシジョンタイムプロトコルを用いた時刻同期装置であって、パケットフィルタ処理部100、PTP周波数同期部200及びPTP時刻同期部300を備える。   The time synchronization apparatus 400 is a time synchronization apparatus using the IEEE 1588 precision time protocol, and includes a packet filter processing unit 100, a PTP frequency synchronization unit 200, and a PTP time synchronization unit 300.

PTP周波数同期部200は、第一の時計250を有するとともに、時刻マスタ機器600からのパケット送信時刻t1と第一の時計250によって打刻したパケット受信時刻t2’との時刻差t2’−t1が一定になるように、第一の時計250に対してPLL制御を実行する。   The PTP frequency synchronization unit 200 includes the first clock 250, and the time difference t2′−t1 between the packet transmission time t1 from the time master device 600 and the packet reception time t2 ′ stamped by the first clock 250 is PLL control is executed on the first timepiece 250 so as to be constant.

パケットフィルタ処理部100は、パケット送信時刻t1とパケット受信時刻t2’との時刻差t2’−t1の最小値に基づき、パケット送信時刻t1に対する補正フィールドに補正値を加算するとともに、第一の時計250によって打刻したパケット送信時刻t3’と時刻マスタ機器600でのパケット受信時刻t4との時刻差t4−t3’の最小値に基づき、パケット受信時刻t4に対する補正フィールドに補正値を加算する。   The packet filter processing unit 100 adds the correction value to the correction field for the packet transmission time t1 based on the minimum value of the time difference t2′−t1 between the packet transmission time t1 and the packet reception time t2 ′, and the first clock Based on the minimum value of the time difference t4-t3 ′ between the packet transmission time t3 ′ stamped by 250 and the packet reception time t4 at the time master device 600, the correction value is added to the correction field for the packet reception time t4.

PTP時刻同期部300は、第二の時計311を有するとともに、パケットフィルタ処理部100で補正フィールドに補正値が加算されたパケット送信時刻t1と第二の時計311によって打刻したパケット受信時刻t2とから下り方向遅延時間t2−t1を算出し、第二の時計311で打刻したパケット送信時刻t3とパケットフィルタ処理部100で補正フィールドに補正値が加算されたパケット受信時刻t4とから上り方向遅延時間t4−t3を算出し、下り方向遅延時間t2−t1と上り方向遅延時間t4−t3とが等しくなるように第二の時計311に対してPLL制御を実行する。   The PTP time synchronization unit 300 includes a second clock 311, a packet transmission time t 1 in which the correction value is added to the correction field by the packet filter processing unit 100, and a packet reception time t 2 stamped by the second clock 311. Is calculated from the packet transmission time t3 stamped by the second clock 311 and the packet reception time t4 in which the correction value is added to the correction field by the packet filter processing unit 100. Time t4-t3 is calculated, and PLL control is performed on the second timepiece 311 so that the downlink delay time t2-t1 and the uplink delay time t4-t3 are equal.

詳しく言えば、関連技術1では、時刻サーボ部が周波数サーボ相当の機能を担うことにより、ネットワークの負荷変動に同期したクロックしか抽出できないので、この揺らぎ成分が加わったクロックをパケットの良否判定に使おうとすると、正確な時刻を打刻できない。これに対し、本実施形態1によれば、時刻サーボ部(PTP時刻同期部300)とは独立した周波数サーボ部(PTP周波数同期部200)を設けることにより、ネットワークの負荷変動に影響されない正確なクロックを抽出できるので、このクロックをパケットの良否判定に使うことによって正確な時刻を打刻できる。   More specifically, in Related Art 1, since the time servo unit has a function equivalent to a frequency servo, only the clock synchronized with the fluctuation in the network load can be extracted. Therefore, the clock to which the fluctuation component is added is used for the packet pass / fail judgment. When trying to do so, the exact time cannot be stamped. On the other hand, according to the first embodiment, by providing the frequency servo unit (PTP frequency synchronization unit 200) independent of the time servo unit (PTP time synchronization unit 300), it is possible to accurately avoid the influence of fluctuations in network load. Since the clock can be extracted, the accurate time can be stamped by using this clock for the packet pass / fail judgment.

また、PTP周波数同期部200は、時刻マスタ機器600からのパケット送信時刻(t1)と、第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)について、Nを2以上の自然数かつ定数、Mを自然数かつ1から1ずつ増加する変数としたとき、1番目からN番目までのサンプリングデータの平均値に基づくデータを基準値とし、M番目からN+M番目までのサンプリングデータの平均値に基づくデータを検出値とし、基準値に検出値が等しくなるように、第一の時計250へ制御信号を出力する、ようにしてもよい。この場合は、ある区間の平均値を基準とし、その後の周波数偏差を算出・補正することにより、短時間でも高精度な時刻同期が可能である。   In addition, the PTP frequency synchronization unit 200 determines the time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. , N is a natural number of 2 or more and a constant, M is a natural number and a variable that increases from 1 to 1, and data based on the average value of the first to Nth sampling data is used as a reference value, and Mth to N + Mth The control signal may be output to the first timepiece 250 so that the detection value is the data based on the average value of the sampling data up to the detection value and the detection value becomes equal to the reference value. In this case, highly accurate time synchronization is possible even in a short time by calculating and correcting the subsequent frequency deviation based on the average value of a certain section.

更に、PTP周波数同期部200は、時刻マスタ機器600からのパケット送信時刻(t1)と、第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)の最大値を検出し、その最大値が大きいほど第一の時計250の周波数の変化が少なくなるよう制御信号を補正する、としてもよい。この場合は、時刻差(t2’−t1)の大きな変動に対しても、第一の時計250の周波数を安定化できる。   Further, the PTP frequency synchronization unit 200 determines the time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. The maximum value may be detected, and the control signal may be corrected so that the change in the frequency of the first timepiece 250 decreases as the maximum value increases. In this case, the frequency of the first timepiece 250 can be stabilized even when the time difference (t2'-t1) varies greatly.

次に、本実施形態1の時刻同期装置400について、更に詳細に説明する。   Next, the time synchronization apparatus 400 according to the first embodiment will be described in more detail.

PTP周波数同期部200及びPTP時刻同期部300は、それぞれ独立した第一及び第二の時計(PTP Epoch Counter)250,311を配備している。それぞれが独立した時計を持つ理由は、各時計の用途が異なるからである。PTP周波数同期部200の第一の時計250は、前述したように受信パケットの良否判定用の時計であり、OCXO310から出力されたジッタ・ワンダフリーのクリーンなクロックを元に生成されている。PTP時刻同期部300の第二の時計311は、その名の通りマスタ時刻と同一時刻にするための時計である。この第二の時計311が、いわゆる時刻同期用の時計であり、装置内の時計となる。   The PTP frequency synchronization unit 200 and the PTP time synchronization unit 300 are provided with independent first and second clocks (PTP Epoch Counters) 250 and 311, respectively. The reason why each has an independent clock is that the usage of each clock is different. As described above, the first clock 250 of the PTP frequency synchronization unit 200 is a clock for determining the quality of a received packet, and is generated based on a jitter / wander-free clean clock output from the OCXO 310. As the name suggests, the second clock 311 of the PTP time synchronization unit 300 is a clock for setting the same time as the master time. The second timepiece 311 is a so-called time synchronization timepiece, which is a timepiece in the apparatus.

パケットフィルタ処理部100は、時刻同期用の4種類のメッセージを送受信する。まず、t1パケット受信部111は、時刻マスタ機器600からt1(Sync message)パケットを受信する。t2’打刻部130は、その受信時刻をt2’時刻として、PTP周波数同期部200で生成された第一の時計250のローカルタイムによって打刻する。t2’−t1算出部131は、t2’時刻とt1時刻との差を算出する。   The packet filter processing unit 100 transmits and receives four types of messages for time synchronization. First, the t1 packet receiving unit 111 receives a t1 (Sync message) packet from the time master device 600. The t2 'stamping unit 130 stamps the received time as the t2' time according to the local time of the first clock 250 generated by the PTP frequency synchronization unit 200. The t2'-t1 calculation unit 131 calculates the difference between the t2 'time and the t1 time.

本実施形態1では、IEEE1588v2で一般的な2STEP方式で説明しているため、フォローアップパケット受信部112で得たt2(Follow-up Message)パケットに含まれる値をt1時刻としている。なお、本実施形態1は、1STEP方式・2STEP方式のどちらでも採用できる。1STEP方式は、t1時刻の情報がt1パケットに入っている点を除き、2STEP方式に準ずる。   In the first embodiment, IEEE 1588v2 describes a general 2STEP method, and therefore, a value included in a t2 (Follow-up Message) packet obtained by the follow-up packet receiving unit 112 is a time t1. The first embodiment can employ either the 1STEP method or the 2STEP method. The 1 STEP method is the same as the 2 STEP method except that the t1 time information is included in the t1 packet.

t2’−t1最小時間選択部132は、t2’−t1算出部131で算出された時刻差から最小時間を探し、それを保持する。つまり、t2’−t1最小時間選択部132は、その最小時間を保持する機能と、最小時間以外を分離する機能とを有する。t2’−t1補正部133は、t2’−t1最小時間選択部132の結果に基づいて、下り方向時刻の補正値を生成する。t1補正値更新部134は、その補正値をt1パケットのCorrection Fieldに加算する。   The t2'-t1 minimum time selection unit 132 searches for the minimum time from the time difference calculated by the t2'-t1 calculation unit 131 and holds it. That is, the t2'-t1 minimum time selection unit 132 has a function of holding the minimum time and a function of separating other than the minimum time. The t2'-t1 correction unit 133 generates a correction value for the downlink time based on the result of the t2'-t1 minimum time selection unit 132. The t1 correction value update unit 134 adds the correction value to the Correction Field of the t1 packet.

例えば、最小PDV(min.PDV)が「2」であるとする。これが基準となるので、「3」以上のPDVは他のPDV(other min.PDV)として扱う。つまり、他のPDV(other min.PDV)が「3」の場合は、「3−2=1」を補正フィールドに加算することになる。ただし、減算はあり得ない。なぜなら、最小PDV(min.PDV)が「1」になった場合は、それ以前の最小PDVである「2」は他のPDV(other min.PDV)になるからである。   For example, it is assumed that the minimum PDV (min. PDV) is “2”. Since this is the standard, PDVs of “3” or more are handled as other PDVs (other min.PDV). That is, when the other PDV (other min. PDV) is “3”, “3-2 = 1” is added to the correction field. However, subtraction is not possible. This is because, when the minimum PDV (min. PDV) becomes “1”, the previous minimum PDV “2” becomes another PDV (other min. PDV).

上り方向では、PTP時刻同期部300から送信されるt3パケットについて、下り方向と同様に、PTP周波数同期部200で生成された第一の時計250のローカルタイムを用いて、t3’打刻部140がその送信時刻を打刻する。打刻されたt3’時刻は、パケットフィルタ処理部100のみで使用し、元のt3パケット内のt3時刻の上書きには用いない。よって、t3パケット送信部113は、t3(Delay Request Message)パケットをそのまま時刻マスタ機器600へ送信する。t4パケット受信部114は、時刻マスタ機器600から送信されたt4(Delay Response Message)パケットを受信する。t4−t3’算出部141は、そのt4時刻とt3’時刻との時刻差を算出する。   In the upstream direction, with respect to the t3 packet transmitted from the PTP time synchronization unit 300, the t3 ′ stamping unit 140 uses the local time of the first clock 250 generated by the PTP frequency synchronization unit 200 in the same manner as in the downstream direction. Stamps the transmission time. The stamped t3 'time is used only by the packet filter processing unit 100, and is not used for overwriting the t3 time in the original t3 packet. Therefore, the t3 packet transmission unit 113 transmits a t3 (Delay Request Message) packet to the time master device 600 as it is. The t4 packet receiving unit 114 receives a t4 (Delay Response Message) packet transmitted from the time master device 600. The t4-t3 'calculating unit 141 calculates the time difference between the t4 time and the t3' time.

t4−t3’最小時間選択部142は、t4−t3’算出部141で算出された時刻差から最小時間を探し、それを保持する。つまり、t4−t3’最小時間選択部142は、その最小時間を保持する機能と、最小時間以外を分離する機能とを有する。t4−t3’補正部143は、t4−t3’最小時間選択部142の結果に基づいて、上り方向時刻の補正値を生成する。t4補正値更新部144は、その補正値をt4パケットのCorrection Fieldに加算する。   The t4-t3 ′ minimum time selection unit 142 finds the minimum time from the time difference calculated by the t4-t3 ′ calculation unit 141 and holds it. That is, the t4-t3 ′ minimum time selection unit 142 has a function of holding the minimum time and a function of separating other than the minimum time. The t4-t3 ′ correction unit 143 generates an upward time correction value based on the result of the t4-t3 ′ minimum time selection unit 142. The t4 correction value updating unit 144 adds the correction value to the Correction Field of the t4 packet.

以上説明したように、最小時間パケットを取得し、そのパケットを元に時刻を補正することで、上り・下りの遅延差を最小限に抑えることができ、結果、高精度な時刻精度を得ることが可能となる。更に、最小時間パケットは常時更新されるため、時刻精度が前回から悪くなるということがなく、本実施形態1では、必ず、精度が良くなる方向にしかならない。ここで、最小時間パケットを取得すると、上り・下りの遅延差が最小になる理由は、最小時間パケットには正確なネットワーク伝搬遅延が反映されているからである。   As described above, by acquiring the minimum time packet and correcting the time based on the packet, the difference in upstream and downstream delays can be minimized, and as a result, high time accuracy can be obtained. Is possible. Furthermore, since the minimum time packet is constantly updated, the time accuracy does not deteriorate from the previous time, and in the first embodiment, the accuracy is always in the direction of improving the accuracy. Here, when the minimum time packet is acquired, the reason why the uplink / downlink delay difference is minimized is that an accurate network propagation delay is reflected in the minimum time packet.

以上の説明から、パケットフィルタ処理部100のt2’打刻部130及びt3’打刻部140では、時刻マスタ機器600に周波数同期し、かつジッタ・ワンダフリーなクロックが必要である。その理由は、周波数同期していない場合は毎回の打刻時刻に誤差が発生することにより、また、ジッタ・ワンダがある場合は周波数同期していても誤った時刻を打刻してしまうことにより、最小時刻パケットを正確に得られないので、パケットフィルタとして正常に機能しないからである。   From the above description, the t2 'stamping unit 130 and the t3' stamping unit 140 of the packet filter processing unit 100 require a clock that is frequency-synchronized with the time master device 600 and that is jitter-wander-free. The reason is that if the frequency is not synchronized, there will be an error in the time of each time. If there is jitter wander, the time will be imprinted even if the frequency is synchronized. This is because the minimum time packet cannot be obtained accurately and does not function normally as a packet filter.

そのような問題は、SyncEを使えば解決するが、全ネットワークをSyncEに張り替える必要があるため、実現性が低い。したがって、本実施形態1では、SyncEではなく、Asyncイーサネットをベースした周波数同期方式を採用する。   Such a problem can be solved by using SyncE, but it is not feasible because the entire network needs to be replaced with SyncE. Therefore, the first embodiment employs a frequency synchronization method based on Async Ethernet instead of SyncE.

具体的には、PTP周波数同期部200を実装することで、時刻マスタ機器600との周波数同期と、ジッタ・ワンダフリーなクロック再生とを実現する。詳細を説明すると、まず、t2’打刻部210は、t1パケット受信部111でt1パケットを受信した時刻を時計250によって打刻し、これをt2’時刻とする。続いて、位相比較器220は、フォローアップパケット受信部112で受信したフォローアップメッセージからt1時刻を取り出し、t1時刻とt2’時刻とを比較(すなわち位相比較)する。その比較結果である差分信号は、IIRフィルタ230でフィルタ処理されることにより、ジッタやノイズが除去され平滑化された差分信号となる。そして、その平滑化された差分信号は、PI制御器240で比例・積分処理されることにより、その差分信号を最終的に一定に収束させる制御信号として、時計250内のDCOへ出力される。これにより、周波数同期が行われる。   Specifically, by implementing the PTP frequency synchronization unit 200, frequency synchronization with the time master device 600 and jitter / wander-free clock recovery are realized. More specifically, first, the t2 'stamping unit 210 stamps the time at which the t1 packet receiving unit 111 receives the t1 packet with the clock 250, and sets this as the t2' time. Subsequently, the phase comparator 220 extracts the t1 time from the follow-up message received by the follow-up packet receiving unit 112, and compares the t1 time with the t2 'time (that is, phase comparison). The difference signal, which is the comparison result, is filtered by the IIR filter 230 to be a smoothed difference signal from which jitter and noise have been removed. Then, the smoothed difference signal is subjected to proportional / integral processing by the PI controller 240 to be output to the DCO in the timepiece 250 as a control signal for finally converging the difference signal to be constant. Thereby, frequency synchronization is performed.

なお、時計250内のDCOで使用するクロックCLKは、外部のOCXO310とする。OCXOにした理由は、DCOの周波数ドリフトを限りなく小さくすることにより、PTP周波数同期部200の直流ループゲインを下げられるので、高精度なクロックを再生できるためである。ここで、なぜ、DCOを使うのか、なぜ、PI制御が必要なのか、更にDCOに対するPI制御方法などについては、通常のディジタルPLLと同様である。本実施形態1の特徴は、PTP周波数同期部200そのものではなく、パケットフィルタ処理部100の基準クロック用としてPTP周波数同期部200が必須であること、更に次項に述べることである。   Note that the clock CLK used by the DCO in the watch 250 is the external OCXO 310. The reason for using OCXO is that the DC loop gain of the PTP frequency synchronization unit 200 can be lowered by reducing the frequency drift of the DCO as much as possible, so that a highly accurate clock can be reproduced. Here, the reason why the DCO is used, why the PI control is necessary, and the PI control method for the DCO are the same as those of a normal digital PLL. The feature of the first embodiment is that the PTP frequency synchronization unit 200 is essential for the reference clock of the packet filter processing unit 100, not the PTP frequency synchronization unit 200 itself, and further described in the next section.

IIRフィルタ230の詳細ブロック図を図2に示す。IIRフィルタ230内は、大きく分けてフィルタ部510とディザリング部520で構成されている。フィルタ部510は分周器512を除き一般的なIIRフィルタであるので、分周器512についてのみ説明する。分周器512に設定される分母Nは、User Settableであるため外部制御によって変えられる。このN値が、PTP周波数同期部200の学習時間となる。パケットネットワークの遅延分布が正規分布の場合は、分母Nを小さくしてもよい。しかし、その分布が一定でない場合は、周波数の正確な平均化処理のために、N値を大きくする必要がある。N値は、実際にパケットネットワーク運用者が、そのパケットネットワークに適した値にすることが望ましい。また、パケットネットワークによっては、急激に負荷変動が発生する場合や段階的に負荷が増減する場合があり、それらの場合はN値を大きくすれば解決する。しかし、基地局などでは、運用上、電源起動後30分以内に時刻同期している必要があるので、N値をあまり大きくできない。そのような場合に、ディザリング部520が有効である。   A detailed block diagram of the IIR filter 230 is shown in FIG. The inside of the IIR filter 230 is roughly composed of a filter unit 510 and a dithering unit 520. Since the filter unit 510 is a general IIR filter except for the frequency divider 512, only the frequency divider 512 will be described. Since the denominator N set in the frequency divider 512 is a user settable, it can be changed by external control. This N value becomes the learning time of the PTP frequency synchronization unit 200. When the delay distribution of the packet network is a normal distribution, the denominator N may be reduced. However, when the distribution is not constant, it is necessary to increase the N value for accurate frequency averaging. It is desirable that the N value is actually a value suitable for the packet network by the packet network operator. Also, depending on the packet network, there may be a case where the load fluctuates suddenly or the load increases or decreases step by step. In these cases, the problem can be solved by increasing the N value. However, since the base station and the like need to be synchronized in time within 30 minutes after the power is turned on, the N value cannot be increased so much. In such a case, the dithering unit 520 is effective.

ディザリング部520では、PTP周波数同期部200内の位相比較器220から出力された比較結果の最大値を検出し、その最大値を保持し(最大時間選択部521)、フィルタ部510でNカウントした結果を基準とするために保持しておく(データ出力ブロック522)。N<カウントした結果は、フィルタ部510のサンプリング周期単位で、「Nカウント値(基準値)−N<カウント値」を算出し、その結果を最大時間選択部521で保持しておいた最大時刻差で除算する(ディザリング処理部523)。   The dithering unit 520 detects the maximum value of the comparison result output from the phase comparator 220 in the PTP frequency synchronization unit 200, holds the maximum value (maximum time selection unit 521), and the filter unit 510 counts N. This result is retained for reference (data output block 522). The result of N <count is the maximum time at which “N count value (reference value) −N <count value” is calculated in the sampling period unit of the filter unit 510 and the result is held in the maximum time selection unit 521. Divide by the difference (dithering processing unit 523).

基本的に「Nカウント値(基準値)−N<カウント値」のみで動作させても良い。しかし、そのようにすると、時刻マスタ機器600で時刻が変化した場合(第一の問題)や、PTP周波数同期部200が不感帯動作した場合(第二の問題)に、正常な周波数同期ができなくなるおそれがある。そこで、加算器524では、フィルタ部510からのNカウント結果に、「(Nカウント値(基準値)−N<カウント値)/最大時刻差」の補数を加算することで、前記二つの問題を解決している。   Basically, the operation may be performed only by “N count value (reference value) −N <count value”. However, in such a case, normal frequency synchronization cannot be performed when the time changes in the time master device 600 (first problem) or when the PTP frequency synchronization unit 200 operates in the dead zone (second problem). There is a fear. Therefore, the adder 524 adds the complement of “(N count value (reference value) −N <count value) / maximum time difference” to the N count result from the filter unit 510 to solve the above two problems. It has been solved.

次に、ディザリング部520の有効性について、図3乃至図5に基づき説明する。図3乃至図5は、ディザリング部520の有無について、ITU-T G.8261に示されるテストケースTC13_TM2を印加した場合のシミュレーション結果である。   Next, the effectiveness of the dithering unit 520 will be described with reference to FIGS. 3 to 5 show simulation results when the test case TC13_TM2 shown in ITU-T G.8261 is applied with respect to the presence or absence of the dithering unit 520. FIG.

図3は、ディザリング部520を実装しない場合(比較例1)における時刻オフセット量の変動グラフである。比較例1では、フィルタ部510は実装しており、N=300sとしている。図3からわかるように、ほぼ、時刻オフセットの生データ(黒色点)に従って、移動平均データ(灰色点)が遷移している。この状態では、PTP周波数同期部200からのローカルタイムを、パケットフィルタ処理部100の基準クロックに使うことは難しくなる。なぜなら、時刻オフセットの変動が約±10μsになると、パケットフィルタ処理部100が誤動作しがちになるからである。   FIG. 3 is a fluctuation graph of the time offset amount when the dithering unit 520 is not mounted (Comparative Example 1). In the first comparative example, the filter unit 510 is mounted, and N = 300 s. As can be seen from FIG. 3, the moving average data (gray point) transitions almost in accordance with the raw data (black point) of the time offset. In this state, it becomes difficult to use the local time from the PTP frequency synchronization unit 200 as the reference clock of the packet filter processing unit 100. This is because the packet filter processing unit 100 tends to malfunction when the fluctuation of the time offset is about ± 10 μs.

図4は、ディザリング部520を実装した場合(本実施形態1)の時刻オフセット結果である。この結果を見ると、時刻オフセットはほぼ4μsに収束していることがわかる。図4を拡大した図5からわかるように、厳密には、時刻オフセットの変動が、約±200ns以下であり、LTE-A規格である±500ns以下を満たす。このように、ディザリング部520の効果は、十分にあると考えられる。   FIG. 4 shows a time offset result when the dithering unit 520 is mounted (the first embodiment). From this result, it can be seen that the time offset converges to approximately 4 μs. As can be seen from FIG. 5 in which FIG. 4 is enlarged, strictly speaking, the fluctuation of the time offset is about ± 200 ns or less and satisfies the LTE-A standard of ± 500 ns or less. Thus, it is considered that the effect of the dithering unit 520 is sufficient.

以上説明したように、本実施形態1によれば、ITU-T G.8261で定義されているパケットネットワーク上の負荷モデルであるテストケース13(トラフィックモデル2)が印加された場合、時刻精度を±200ns以内にできる。なお、本実施形態1は、IEEE1588v2プロトコル自体の変更は不要であり、かつ、時刻精度安定化のための外部ソフトウェアアルゴリズムも不要であることから、非常にシンプルな回路構成で実現することができる。更にSyncEも不要である。   As described above, according to the first embodiment, when test case 13 (traffic model 2), which is a load model on the packet network defined in ITU-T G.8261, is applied, time accuracy is improved. Can be done within ± 200ns. The first embodiment can be realized with a very simple circuit configuration because the IEEE1588v2 protocol itself does not need to be changed and an external software algorithm for stabilizing the time accuracy is also unnecessary. There is also no need for SyncE.

次に、本実施形態1の時刻同期方法及び時刻同期プログラムについて説明する。   Next, a time synchronization method and a time synchronization program according to the first embodiment will be described.

本実施形態1の時刻同期方法は、本実施形態1の時刻同期装置400の動作を方法の発明として捉えたものである。すなわち本実施形態1の時刻同期方法は、パケットフィルタ処理ステップ、PTP周波数同期ステップ及びPTP時刻同期ステップを含む。   The time synchronization method according to the first embodiment captures the operation of the time synchronization apparatus 400 according to the first embodiment as a method invention. That is, the time synchronization method of the first embodiment includes a packet filter processing step, a PTP frequency synchronization step, and a PTP time synchronization step.

PTP周波数同期ステップでは、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)が一定になるように、第一の時計250の動作を制御する。   In the PTP frequency synchronization step, the time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250 is constant. In addition, the operation of the first timepiece 250 is controlled.

パケットフィルタ処理ステップでは、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)の最小値(最小PDV)に基づき、パケット送信時刻(t1)を補正するとともに、第一の時計250によって打刻したパケット送信時刻(t3’)と時刻マスタ機器600でのパケット受信時刻(t4)との時刻差(t4−t3’)の最小値(最小PDV)に基づき、パケット受信時刻(t4)を補正する。   In the packet filter processing step, the minimum value (minimum) of the time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. PDV), the packet transmission time (t1) is corrected, and the time difference between the packet transmission time (t3 ′) stamped by the first clock 250 and the packet reception time (t4) at the time master device 600 ( Based on the minimum value (minimum PDV) of t4−t3 ′), the packet reception time (t4) is corrected.

PTP時刻同期ステップでは、パケットフィルタ処理ステップで補正されたパケット送信時刻(t1)と第二の時計311によって打刻したパケット受信時刻(t2)とから下り方向時刻差(t2−t1)を算出し、第二の時計311によって打刻したパケット送信時刻(t3)とパケットフィルタ処理ステップで補正されたパケット受信時刻(t4)とから上り方向時刻差(t4−t3)を算出し、下り方向時刻差(t4−t3)と上り方向時刻差(t2−t1)とが等しくなるように第二の時計311の動作を制御する。   In the PTP time synchronization step, a downstream time difference (t2−t1) is calculated from the packet transmission time (t1) corrected in the packet filter processing step and the packet reception time (t2) stamped by the second clock 311. The upstream time difference (t4−t3) is calculated from the packet transmission time (t3) stamped by the second clock 311 and the packet reception time (t4) corrected in the packet filtering step, and the downstream time difference is calculated. The operation of the second timepiece 311 is controlled so that (t4−t3) and the time difference in the upward direction (t2−t1) are equal.

本実施形態1の時刻同期プログラムは、本実施形態1の時刻同期装置400の各手段(各部)をコンピュータに機能させるためのものである。すなわち本実施形態1の時刻同期方法は、パケットフィルタ処理部手段(100)、PTP周波数同期手段(200)及びPTP時刻同期手段(300)を含む。   The time synchronization program of the first embodiment is for causing a computer to function each unit (each unit) of the time synchronization apparatus 400 of the first embodiment. That is, the time synchronization method of the first embodiment includes a packet filter processing unit (100), a PTP frequency synchronization unit (200), and a PTP time synchronization unit (300).

PTP周波数同期手段(200)は、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)が一定になるように、第一の時計250の動作を制御する。   The PTP frequency synchronization means (200) has a constant time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. The operation of the first timepiece 250 is controlled so that

パケットフィルタ処理手段(100)は、時刻マスタ機器600からのパケット送信時刻(t1)と第一の時計250によって打刻したパケット受信時刻(t2’)との時刻差(t2’−t1)の最小値(最小PDV)に基づき、パケット送信時刻(t1)を補正するとともに、第一の時計250によって打刻したパケット送信時刻(t3’)と時刻マスタ機器600でのパケット受信時刻(t4)との時刻差(t4−t3’)の最小値(最小PDV)に基づき、パケット受信時刻(t4)を補正する。   The packet filter processing means (100) determines the minimum time difference (t2′−t1) between the packet transmission time (t1) from the time master device 600 and the packet reception time (t2 ′) stamped by the first clock 250. The packet transmission time (t1) is corrected based on the value (minimum PDV), and the packet transmission time (t3 ′) stamped by the first clock 250 and the packet reception time (t4) at the time master device 600 are The packet reception time (t4) is corrected based on the minimum value (minimum PDV) of the time difference (t4−t3 ′).

PTP時刻同期手段(300)は、パケットフィルタ手段(100)で補正されたパケット送信時刻(t1)と第二の時計311によって打刻したパケット受信時刻(t2)とから下り方向遅延時間(t2−t1)を算出し、第二の時計311によって打刻したパケット送信時刻(t3)とパケットフィルタ手段(100)で補正されたパケット受信時刻(t4)とから上り方向遅延時間(t4−t3)を算出し、下り方向遅延時間(t4−t3)と上り方向遅延時間(t2−t1)とが等しくなるように第二の時計311の動作を制御する。   The PTP time synchronization means (300) calculates the downstream delay time (t2−) from the packet transmission time (t1) corrected by the packet filter means (100) and the packet reception time (t2) stamped by the second clock 311. t1) is calculated, and the upstream delay time (t4-t3) is calculated from the packet transmission time (t3) stamped by the second clock 311 and the packet reception time (t4) corrected by the packet filter means (100). Then, the operation of the second timepiece 311 is controlled so that the downstream delay time (t4-t3) and the upstream delay time (t2-t1) are equal.

本プログラムは、非一時的な記録媒体(non-transitory storage medium)、例えば光ディスク、半導体メモリなどに記録されてもよい。その場合、本プログラムは、記録媒体からコンピュータによって読み出され、実行される。   The program may be recorded on a non-transitory storage medium, such as an optical disk or a semiconductor memory. In this case, the program is read from the recording medium by a computer and executed.

本実施形態1の時刻同期方法及び時刻同期プログラムのその他の構成、作用及び効果は、本実施形態1の時刻同期装置400のそれらと同様である。   Other configurations, operations, and effects of the time synchronization method and the time synchronization program of the first embodiment are the same as those of the time synchronization apparatus 400 of the first embodiment.

以上、上記実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細については、当業者が理解し得るさまざまな変更を加えることができる。また、上記の実施形態の一部又は全部は以下の付記のようにも記載され得るが、本発明は以下の構成に限定されるものではない。   The present invention has been described above with reference to the above embodiment, but the present invention is not limited to the above embodiment. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention. Moreover, although part or all of said embodiment may be described also as the following additional remarks, this invention is not limited to the following structures.

[付記1]第一の時計を有するとともに、時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期部と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ部と、
第二の時計を有するとともに、前記パケットフィルタ部で補正された前記時刻マスタ機器からのパケット送信時刻と前記第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ部で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期部と、
を備えた時刻同期装置。
[Supplementary Note 1] The first clock has a first clock, and the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant. A frequency synchronization unit for controlling the operation;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter unit that corrects the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Having a second clock, calculating a downstream delay time from a packet transmission time from the time master device corrected by the packet filter unit and a packet reception time stamped by the second clock, Calculating an upstream delay time from a packet transmission time stamped by a second clock and a packet reception time at the time master device corrected by the packet filter unit, and the downstream delay time and the upstream delay time, A time synchronizer that controls the operation of the second timepiece so that
A time synchronizer comprising:

[付記2]前記周波数同期部は、
前記時刻マスタ機器からのパケット送信時刻と、前記第一の時計によって打刻したパケット受信時刻との時刻差について、
Nを2以上の自然数かつ定数、Mを自然数かつ1から1ずつ増加する変数としたとき、
1番目からN番目までのサンプリングデータの平均値に基づくデータを基準値とし、M番目からN+M番目までのサンプリングデータの平均値に基づくデータを検出値とし、
前記基準値に前記検出値が等しくなるように、前記第一の時計へ制御信号を出力する、
付記1記載の時刻同期装置。
[Supplementary Note 2] The frequency synchronization unit includes:
About the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock,
When N is a natural number of 2 or more and a constant, and M is a natural number and a variable increasing from 1 to 1,
The data based on the average value of the first to Nth sampling data is used as a reference value, and the data based on the average value of the Mth to N + Mth sampling data is used as a detection value.
Outputting a control signal to the first timepiece so that the detected value is equal to the reference value;
The time synchronizer according to appendix 1.

[付記3]前記周波数同期部は、
前記時刻マスタ機器からのパケット送信時刻と、前記第一の時計によって打刻したパケット受信時刻との時刻差の最大値を検出し、
当該最大値が大きいほど前記第一の時計の周波数の変化が少なくなるように、前記制御信号を補正する、
付記2記載の時刻同期装置。
[Supplementary Note 3] The frequency synchronization unit includes:
Detecting the maximum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock,
The control signal is corrected so that the change in the frequency of the first watch decreases as the maximum value increases.
The time synchronizer according to appendix 2.

[付記4]IEEE1588プレシジョンタイムプロトコルを用いた時刻同期装置であって、
第一の時計を有するとともに、時刻マスタ機器からのパケット送信時刻t1と前記第一の時計によって打刻したパケット受信時刻t2’との時刻差t2’−t1が一定になるように、前記第一の時計に対してPLL制御を実行する周波数同期部と、
前記パケット送信時刻t1と前記パケット受信時刻t2’との時刻差t2’−t1の最小値に基づき、前記パケット送信時刻t1に対する補正フィールドに補正値を加算するとともに、前記第一の時計によって打刻したパケット送信時刻t3’と前記時刻マスタ機器でのパケット受信時刻t4との時刻差t4−t3’の最小値に基づき、前記パケット受信時刻t4に対する補正フィールドに補正値を加算するパケットフィルタ部と、
第二の時計を有するとともに、前記パケットフィルタ部で前記補正フィールドに前記補正値が加算された前記パケット送信時刻t1と前記第二の時計によって打刻したパケット受信時刻t2とから下り方向遅延時間t2−t1を算出し、前記第二の時計で打刻したパケット送信時刻t3と前記パケットフィルタ部で前記補正フィールドに前記補正値が加算されたパケット受信時刻t4とから上り方向遅延時間t4−t3を算出し、前記下り方向遅延時間t2−t1と前記上り方向遅延時間t4−t3とが等しくなるように前記第二の時計に対してPLL制御を実行する時刻同期部と、
を備えた時刻同期装置。
[Supplementary Note 4] A time synchronization device using the IEEE 1588 Precision Time Protocol,
The first clock is provided, and the time difference t2′−t1 between the packet transmission time t1 from the time master device and the packet reception time t2 ′ stamped by the first clock is constant. A frequency synchronization unit that performs PLL control on the clock of
Based on the minimum value of the time difference t2′−t1 between the packet transmission time t1 and the packet reception time t2 ′, a correction value is added to the correction field for the packet transmission time t1, and the first clock watches the time stamp. A packet filter unit that adds a correction value to the correction field for the packet reception time t4 based on the minimum value of the time difference t4-t3 ′ between the packet transmission time t3 ′ and the packet reception time t4 at the time master device;
A second delay time t2 from a packet transmission time t1 when the correction value is added to the correction field by the packet filter unit and a packet reception time t2 stamped by the second clock. -T1 is calculated, and the upstream delay time t4-t3 is calculated from the packet transmission time t3 stamped by the second clock and the packet reception time t4 obtained by adding the correction value to the correction field by the packet filter unit. A time synchronization unit that calculates and executes PLL control on the second clock so that the downstream delay time t2-t1 and the upstream delay time t4-t3 are equal to each other;
A time synchronizer comprising:

[付記5]時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期ステップと、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタステップと、
前記パケットフィルタステップで補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタステップで補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期ステップと、
を含む時刻同期方法。
[Supplementary Note 5] A frequency synchronization step for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter step for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected in the packet filter step and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An uplink delay time is calculated from the time and the packet reception time at the time master device corrected in the packet filter step, and the second delay time and the second delay time are made equal to each other. A time synchronization step for controlling the operation of the clock;
Time synchronization method including

[付記6]時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期手段と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ手段と、
前記パケットフィルタ手段で補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ手段で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期手段と、
をコンピュータに機能させるための時刻同期プログラム。
[Appendix 6] Frequency synchronization means for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first Packet filter means for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected by the packet filter means and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An upstream delay time is calculated from the time and the packet reception time at the time master device corrected by the packet filter means, and the second delay time and the upstream delay time are made equal to each other. Time synchronization means for controlling the operation of the watch;
Time synchronization program to make the computer function.

本発明は、例えば無線基地局間のためのスレーブシステム等に利用可能である。   The present invention can be used, for example, in a slave system between wireless base stations.

<実施形態1>
400 時刻同期装置
100 パケットフィルタ処理部(パケットフィルタ部)
111 t1パケット受信部
112 フォローアップパケット受信部
113 t3パケット送信部
114 t4パケット受信部
130 t2’打刻部
131 t2’−t1算出部
132 t2’−t1最小時間選択部
133 t2’−t1補正部
134 t1補正値更新部
140 t3’打刻部
141 t4−t3’算出部
142 t4−t3’最小時間選択部
143 t4−t3’補正部
144 t4補正値更新部
200 PTP周波数同期部(周波数同期部)
210 t2’打刻部
220 位相比較器
230 IIRフィルタ
510 フィルタ部
511 加算器
512 分周器
513 加算器
514 積分器
520 ディザリング部
521 最大時間選択部
522 データ出力部
523 ディザリング処理部
524 加算器
240 PI制御器
250 第一の時計
300 PTP時刻同期部(時刻同期部)
310 OCXO
311 第二の時計
320 t2打刻部
321 t2−t1算出部
322 加算器
330 t3打刻部
331 t4−t3算出部
332 補数化部
340 PI制御器
600 時刻マスタ機器
<Embodiment 1>
400 Time synchronization device 100 Packet filter processing unit (packet filter unit)
111 t1 packet receiving unit 112 follow-up packet receiving unit 113 t3 packet transmitting unit 114 t4 packet receiving unit 130 t2 'stamping unit 131 t2'-t1 calculating unit 132 t2'-t1 minimum time selecting unit 133 t2'-t1 correcting unit 134 t1 correction value update unit 140 t3 'stamping unit 141 t4-t3' calculation unit 142 t4-t3 'minimum time selection unit 143 t4-t3' correction unit 144 t4 correction value update unit 200 PTP frequency synchronization unit (frequency synchronization unit) )
210 t2 ′ stamping unit 220 phase comparator 230 IIR filter 510 filter unit
511 Adder
512 divider
513 Adder
514 Integrator 520 Dithering section
521 Maximum time selector
522 Data output part
523 Dithering processing part
524 adder 240 PI controller 250 first clock 300 PTP time synchronization unit (time synchronization unit)
310 OCXO
311 Second clock 320 t2 stamping unit 321 t2-t1 calculating unit 322 adder 330 t3 stamping unit 331 t4-t3 calculating unit 332 complementing unit 340 PI controller 600 time master device

<関連技術1>
50 時刻同期装置
1 t1パケット受信部
2 フォローアップパケット受信部
3 t3パケット送信部
4 t4パケット受信部
10 XO
11 時計
20 t2打刻部
21 t2−t1算出部
22 加算器
30 t3打刻部
31 t4−t3算出部
32 補数化部
40 PI制御器
<Related technology 1>
50 Time synchronizer 1 t1 packet receiver 2 follow-up packet receiver 3 t3 packet transmitter 4 t4 packet receiver 10 XO
11 Clock 20 t2 stamping part 21 t2-t1 calculating part 22 Adder 30 t3 stamping part 31 t4-t3 calculating part 32 Complementing part 40 PI controller

Claims (6)

第一の時計を有するとともに、時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期部と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ部と、
第二の時計を有するとともに、前記パケットフィルタ部で補正された前記時刻マスタ機器からのパケット送信時刻と前記第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ部で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期部と、
を備えた時刻同期装置。
In addition to having a first clock, the operation of the first clock is controlled so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant. A frequency synchronization unit;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter unit that corrects the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Having a second clock, calculating a downstream delay time from a packet transmission time from the time master device corrected by the packet filter unit and a packet reception time stamped by the second clock, Calculating an upstream delay time from a packet transmission time stamped by a second clock and a packet reception time at the time master device corrected by the packet filter unit, and the downstream delay time and the upstream delay time, A time synchronizer that controls the operation of the second timepiece so that
A time synchronizer comprising:
前記周波数同期部は、
前記時刻マスタ機器からのパケット送信時刻と、前記第一の時計によって打刻したパケット受信時刻との時刻差について、
Nを2以上の自然数かつ定数、Mを自然数かつ1から1ずつ増加する変数としたとき、
1番目からN番目までのサンプリングデータの平均値に基づくデータを基準値とし、M番目からN+M番目までのサンプリングデータの平均値に基づくデータを検出値とし、
前記基準値に前記検出値が等しくなるように、前記第一の時計へ制御信号を出力する、
請求項1記載の時刻同期装置。
The frequency synchronization unit is
About the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock,
When N is a natural number of 2 or more and a constant, and M is a natural number and a variable increasing from 1 to 1,
The data based on the average value of the first to Nth sampling data is used as a reference value, and the data based on the average value of the Mth to N + Mth sampling data is used as a detection value.
Outputting a control signal to the first timepiece so that the detected value is equal to the reference value;
The time synchronization apparatus according to claim 1.
前記周波数同期部は、
前記時刻マスタ機器からのパケット送信時刻と、前記第一の時計によって打刻したパケット受信時刻との時刻差の最大値を検出し、
当該最大値が大きいほど前記第一の時計の周波数の変化が少なくなるように、前記制御信号を補正する、
請求項2記載の時刻同期装置。
The frequency synchronization unit is
Detecting the maximum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock,
The control signal is corrected so that the change in the frequency of the first watch decreases as the maximum value increases.
The time synchronizer of Claim 2.
IEEE1588プレシジョンタイムプロトコルを用いた時刻同期装置であって、
第一の時計を有するとともに、時刻マスタ機器からのパケット送信時刻t1と前記第一の時計によって打刻したパケット受信時刻t2’との時刻差t2’−t1が一定になるように、前記第一の時計に対してPLL制御を実行する周波数同期部と、
前記パケット送信時刻t1と前記パケット受信時刻t2’との時刻差t2’−t1の最小値に基づき、前記パケット送信時刻t1に対する補正フィールドに補正値を加算するとともに、前記第一の時計によって打刻したパケット送信時刻t3’と前記時刻マスタ機器でのパケット受信時刻t4との時刻差t4−t3’の最小値に基づき、前記パケット受信時刻t4に対する補正フィールドに補正値を加算するパケットフィルタ部と、
第二の時計を有するとともに、前記パケットフィルタ部で前記補正フィールドに前記補正値が加算された前記パケット送信時刻t1と前記第二の時計によって打刻したパケット受信時刻t2とから下り方向遅延時間t2−t1を算出し、前記第二の時計で打刻したパケット送信時刻t3と前記パケットフィルタ部で前記補正フィールドに前記補正値が加算されたパケット受信時刻t4とから上り方向遅延時間t4−t3を算出し、前記下り方向遅延時間t2−t1と前記上り方向遅延時間t4−t3とが等しくなるように前記第二の時計に対してPLL制御を実行する時刻同期部と、
を備えた時刻同期装置。
A time synchronization device using an IEEE 1588 precision time protocol,
The first clock is provided, and the time difference t2′−t1 between the packet transmission time t1 from the time master device and the packet reception time t2 ′ stamped by the first clock is constant. A frequency synchronization unit that performs PLL control on the clock of
Based on the minimum value of the time difference t2′−t1 between the packet transmission time t1 and the packet reception time t2 ′, a correction value is added to the correction field for the packet transmission time t1, and the first clock watches the time stamp. A packet filter unit that adds a correction value to the correction field for the packet reception time t4 based on the minimum value of the time difference t4-t3 ′ between the packet transmission time t3 ′ and the packet reception time t4 at the time master device;
A second delay time t2 from a packet transmission time t1 when the correction value is added to the correction field by the packet filter unit and a packet reception time t2 stamped by the second clock. -T1 is calculated, and the upstream delay time t4-t3 is calculated from the packet transmission time t3 stamped by the second clock and the packet reception time t4 obtained by adding the correction value to the correction field by the packet filter unit. A time synchronization unit that calculates and executes PLL control on the second clock so that the downstream delay time t2-t1 and the upstream delay time t4-t3 are equal to each other;
A time synchronizer comprising:
時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期ステップと、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタステップと、
前記パケットフィルタステップで補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタステップで補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期ステップと、
を含む時刻同期方法。
A frequency synchronization step for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first A packet filter step for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected in the packet filter step and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An uplink delay time is calculated from the time and the packet reception time at the time master device corrected in the packet filter step, and the second delay time and the second delay time are made equal to each other. A time synchronization step for controlling the operation of the clock;
Time synchronization method including
時刻マスタ機器からのパケット送信時刻と第一の時計によって打刻したパケット受信時刻との時刻差が一定になるように、前記第一の時計の動作を制御する周波数同期手段と、
前記時刻マスタ機器からのパケット送信時刻と前記第一の時計によって打刻したパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器からのパケット送信時刻を補正するとともに、前記第一の時計によって打刻したパケット送信時刻と前記時刻マスタ機器でのパケット受信時刻との時刻差の最小値に基づき、前記時刻マスタ機器でのパケット受信時刻を補正するパケットフィルタ手段と、
前記パケットフィルタ手段で補正された前記時刻マスタ機器からのパケット送信時刻と第二の時計によって打刻したパケット受信時刻とから下り方向遅延時間を算出し、前記第二の時計で打刻したパケット送信時刻と前記パケットフィルタ手段で補正された前記時刻マスタ機器でのパケット受信時刻とから上り方向遅延時間を算出し、前記下り方向遅延時間と前記上り方向遅延時間とが等しくなるように前記第二の時計の動作を制御する時刻同期手段と、
をコンピュータに機能させるための時刻同期プログラム。
Frequency synchronization means for controlling the operation of the first clock so that the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock is constant;
Based on the minimum value of the time difference between the packet transmission time from the time master device and the packet reception time stamped by the first clock, the packet transmission time from the time master device is corrected, and the first Packet filter means for correcting the packet reception time at the time master device based on the minimum value of the time difference between the packet transmission time stamped by the clock and the packet reception time at the time master device;
Calculates a downstream delay time from the packet transmission time from the time master device corrected by the packet filter means and the packet reception time stamped by a second clock, and packet transmission stamped by the second clock An upstream delay time is calculated from the time and the packet reception time at the time master device corrected by the packet filter means, and the second delay time and the upstream delay time are made equal to each other. Time synchronization means for controlling the operation of the watch;
Time synchronization program to make the computer function.
JP2015111503A 2015-06-01 2015-06-01 Time synchronization apparatus, time synchronization method, and time synchronization program Active JP6198075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015111503A JP6198075B2 (en) 2015-06-01 2015-06-01 Time synchronization apparatus, time synchronization method, and time synchronization program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015111503A JP6198075B2 (en) 2015-06-01 2015-06-01 Time synchronization apparatus, time synchronization method, and time synchronization program

Publications (2)

Publication Number Publication Date
JP2016225880A true JP2016225880A (en) 2016-12-28
JP6198075B2 JP6198075B2 (en) 2017-09-20

Family

ID=57748096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015111503A Active JP6198075B2 (en) 2015-06-01 2015-06-01 Time synchronization apparatus, time synchronization method, and time synchronization program

Country Status (1)

Country Link
JP (1) JP6198075B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021157308A1 (en) 2020-02-05 2021-08-12 Necプラットフォームズ株式会社 Time synchronization device, time synchronization system, and time synchronization method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570378B2 (en) 2002-07-27 2013-10-29 Sony Computer Entertainment Inc. Method and apparatus for tracking three-dimensional movements of an object using a depth sensing camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010028684A (en) * 2008-07-24 2010-02-04 Nippon Telegr & Teleph Corp <Ntt> Client device and program
WO2013051447A1 (en) * 2011-10-06 2013-04-11 ソニー株式会社 Time control device, time control method, and program
WO2013163793A1 (en) * 2012-05-02 2013-11-07 Qualcomm Incorporated Automatic time and frequency synchronization over an asynchronous network
JP2014147105A (en) * 2008-05-02 2014-08-14 Nortel Networks Ltd Timing system and method for time synchronization through packet network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014147105A (en) * 2008-05-02 2014-08-14 Nortel Networks Ltd Timing system and method for time synchronization through packet network
JP2010028684A (en) * 2008-07-24 2010-02-04 Nippon Telegr & Teleph Corp <Ntt> Client device and program
WO2013051447A1 (en) * 2011-10-06 2013-04-11 ソニー株式会社 Time control device, time control method, and program
WO2013163793A1 (en) * 2012-05-02 2013-11-07 Qualcomm Incorporated Automatic time and frequency synchronization over an asynchronous network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
田代 隆義 他: "周波数・時刻ハイブリッド同期型10G-EPONシステムの試作評価", 2012年電子情報通信学会通信ソサイエティ大会講演論文集2, JPN6017027446, 28 August 2012 (2012-08-28), pages 162, ISSN: 0003605709 *
竹内 清史 他: "リアルタイムネットワーク機器における時刻同期方式", 電子情報通信学会技術研究報告, vol. 第113巻,第472号, JPN6017027445, 27 February 2014 (2014-02-27), pages 463 - 466, ISSN: 0003605708 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021157308A1 (en) 2020-02-05 2021-08-12 Necプラットフォームズ株式会社 Time synchronization device, time synchronization system, and time synchronization method
US11924319B2 (en) 2020-02-05 2024-03-05 Nec Platforms, Ltd. Time synchronization device, time synchronization system, and time synchronization method

Also Published As

Publication number Publication date
JP6198075B2 (en) 2017-09-20

Similar Documents

Publication Publication Date Title
US9843439B2 (en) System and method for managing holdover
US10608647B1 (en) Delay adjustment using frequency estimation
US20180097610A1 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
US9548831B2 (en) Synchronizing system, synchronizing method, first synchronizing device, second synchronizing device, and computer program
US20070260906A1 (en) Clock synchronization method and apparatus
US9178637B2 (en) Method and devices for synchronization using linear programming
WO2013190602A1 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
JP6092727B2 (en) Receiver
JP2006217203A (en) Digital pll circuit
WO2012165115A1 (en) Synchronization device and synchronization method
WO2013051447A1 (en) Time control device, time control method, and program
EP2749968A1 (en) Time control device, time control method, and program
US9641269B2 (en) Apparatus and method for synchronizing clocks among communication devices
JP2012222833A (en) System and method to overcome wander accumulation to achieve precision clock distribution over large networks
US10483987B1 (en) Failsafe clock product using frequency estimation
JP2013092515A (en) Frequency difference detection device, frequency difference detection method, and program
JP6198075B2 (en) Time synchronization apparatus, time synchronization method, and time synchronization program
JP5556412B2 (en) Timing synchronization apparatus and timing synchronization method
EP3080933B1 (en) Method and devices for synchronization using linear programming
JP2014165582A (en) Time synchronization system, time synchronization method, slave node and computer program
KR101176798B1 (en) Method for clock synchronization between slave and master
JP6085864B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
JP6052877B2 (en) Phase synchronization circuit, time synchronization device, phase synchronization method, and phase synchronization program
US20230077120A1 (en) Time synchronization device, time synchronization system, and time synchronizationmethod
CN111740799B (en) Smooth synchronization method for Ethernet distributed node

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161013

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170714

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: 20170725

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170809

R150 Certificate of patent or registration of utility model

Ref document number: 6198075

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150