JP2016225714A - Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program - Google Patents
Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program Download PDFInfo
- Publication number
- JP2016225714A JP2016225714A JP2015107761A JP2015107761A JP2016225714A JP 2016225714 A JP2016225714 A JP 2016225714A JP 2015107761 A JP2015107761 A JP 2015107761A JP 2015107761 A JP2015107761 A JP 2015107761A JP 2016225714 A JP2016225714 A JP 2016225714A
- Authority
- JP
- Japan
- Prior art keywords
- time
- transmission
- signal
- unit
- delay measurement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本発明は、遅延測定用信号送信装置、遅延測定システム、遅延測定用信号送信方法及びプログラムに関する。 The present invention relates to a delay measurement signal transmission apparatus, a delay measurement system, a delay measurement signal transmission method, and a program.
装置間の時刻を同期させるプロトコルとしてIEEE1588(PTP)があり、PTPの接続形態としてPeer−to−Peer(P2P)がある。
P2Pでは、Peer Delayメカニズムと呼ばれる仕組みで、各装置がアップリンク側(Master側)に位置する直近の装置(PTP対応装置)との間の伝送遅延を測定しておく。ここでいう伝送遅延は、通信信号が伝送経路を経由するのに要する時間(すなわち、送信側の装置が通信信号を送信してから受信側の装置に到達するまでの時間)である。
IEEE 1588 (PTP) is a protocol for synchronizing the time between devices, and Peer-to-Peer (P2P) is a PTP connection form.
In P2P, a transmission delay between each device (PTP-compatible device) that is positioned on the uplink side (Master side) is measured in a mechanism called a Peer Delay mechanism. The transmission delay here is the time required for the communication signal to pass through the transmission path (that is, the time from the transmission side device transmitting the communication signal to the reception side device).
Peer Delayメカニズムでは、ダウンリンク側の装置からのPdelay_Reqと呼ばれるフレームに対して、アップリンク側の装置がPdelay_Respと呼ばれるフレーム、及び、Pdelay_Resp_Follow_Upと呼ばれるフレームを送信する方式が実用化されている(特許文献1、非特許文献1参照)。アップリンク側の装置は、Pdelay_Respでは、Pdelay_Reqを受信した時刻を通知する。また、Pdelay_Resp_Follow_Upでは、例えばPdelay_Respを送信した時刻など、アップリンク側の装置内での遅延時間を求めるための情報を通知する。 In the Peer Delay mechanism, a method in which an uplink side device transmits a frame called Pdelay_Resp and a frame called Pdelay_Resp_Follow_Up with respect to a frame called Pdelay_Req from a downlink side device has been put into practical use (Patent Literature). 1 and non-patent document 1). The device on the uplink side notifies the time when Pdelay_Req is received in Pdelay_Resp. Also, Pdelay_Resp_Follow_Up notifies information for determining the delay time in the uplink side device, such as the time when Pdelay_Resp was transmitted.
Pdelay_Resp、及び、Pdelay_Resp_Follow_Upを送受信する方法では、2つの信号を送受信する点で通信リソースを消費する。 In the method of transmitting and receiving Pdelay_Resp and Pdelay_Resp_Follow_Up, communication resources are consumed in that two signals are transmitted and received.
本発明は、伝送遅延時間を測定する際の通信リソースの消費を低減させることができる遅延測定用信号送信装置、遅延測定システム、遅延測定用信号送信方法及びプログラムを提供する。 The present invention provides a signal transmission device for delay measurement, a delay measurement system, a signal transmission method for delay measurement, and a program capable of reducing the consumption of communication resources when measuring a transmission delay time.
本発明の第1の態様によれば、遅延測定用信号送信装置は、信号を受信する受信部と、前記受信部が前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成部と、現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算部と、前記送信用信号生成部が生成した前記送信用信号に、前記差分時間計算部が計算した前記差分時間を示す情報を格納する差分時間反映部と、前記差分時間反映部が前記差分時間を示す情報を格納した前記送信用信号を送信する送信部と、を備える。 According to the first aspect of the present invention, the delay measurement signal transmission apparatus includes a reception unit that receives a signal, and a transmission signal that stores reception time information indicating a reception time at which the reception unit receives the signal. A transmission signal generation unit to generate, a difference time calculation unit to calculate a difference time obtained by subtracting the reception time indicated by the reception time information from a current time, and the transmission signal generated by the transmission signal generation unit, A difference time reflection unit that stores information indicating the difference time calculated by the difference time calculation unit; and a transmission unit that transmits the transmission signal in which the difference time reflection unit stores information indicating the difference time. Prepare.
前記差分時間計算部は、前記送信用信号の送信先が確定した後に、前記現在時刻を取得して前記差分時間を計算する、ようにしてもよい。 The difference time calculation unit may acquire the current time and calculate the difference time after the transmission destination of the transmission signal is determined.
前記送信部が、前記差分時間反映部が前記差分時間を示す情報を格納した前記送信用信号を送信する1回送信処理と、前記送信部が、前記受信時刻を示す情報が格納された第1送信信号、及び、前記第1送信信号の送信時刻を示す情報が格納された第2送信信号を送信する2回送信処理とを切り替える切替部を備える、ようにしてもよい。 The transmission unit transmits the transmission signal in which the difference time reflecting unit stores information indicating the difference time, and the transmission unit stores information indicating the reception time. You may make it provide the switch part which switches the transmission signal and the 2nd transmission process which transmits the 2nd transmission signal in which the information which shows the transmission time of the said 1st transmission signal was stored.
本発明の第2の態様によれば、遅延測定システムは、遅延測定用信号の送信を要求する要求信号を送信し、得られた前記遅延測定用信号に基づいて通信の遅延時間を求める遅延測定用信号要求装置と、前記要求信号に応じて前記遅延測定用信号を送信する遅延測定用信号送信装置と、を備え、前記遅延測定用信号送信装置は、前記要求信号を受信する受信部と、前記受信部が前記要求信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成部と、現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算部と、前記送信用信号生成部が生成した前記送信用信号に、前記差分時間計算部が計算した前記差分時間を示す情報を格納することで前記遅延測定用信号を生成する差分時間反映部と、前記遅延測定用信号を送信する送信部と、を備える。 According to the second aspect of the present invention, the delay measurement system transmits a request signal for requesting transmission of a delay measurement signal, and calculates a delay time of communication based on the obtained delay measurement signal. A signal measurement device for delay, and a signal transmission device for delay measurement that transmits the signal for delay measurement in response to the request signal, the signal transmission device for delay measurement includes a receiving unit that receives the request signal; A transmission signal generation unit that generates a transmission signal that stores reception time information indicating a reception time when the reception unit has received the request signal, and a differential time obtained by subtracting the reception time indicated by the reception time information from a current time The delay time calculation unit generates the delay measurement signal by storing information indicating the difference time calculated by the difference time calculation unit in the transmission signal generated by the difference time calculation unit and the transmission signal generation unit. You It comprises a difference time reflecting unit, and a transmission unit that transmits the delay measurement signal.
本発明の第3の態様によれば、遅延測定用信号送信方法は、遅延測定用信号送信装置が、信号を受信する受信ステップと、前記遅延測定用信号送信装置が、前記受信ステップにて前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成ステップと、前記遅延測定用信号送信装置が、現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算ステップと、前記遅延測定用信号送信装置が、前記送信用信号生成ステップにて生成した前記送信用信号に、前記差分時間計算ステップにて計算した前記差分時間を示す情報を格納する差分反映ステップと、前記遅延測定用信号送信装置が、前記差分反映ステップにて前記差分時間を示す情報を格納した前記送信用信号を送信する送信ステップと、を有する。 According to a third aspect of the present invention, in the delay measurement signal transmission method, the delay measurement signal transmission apparatus receives the signal, and the delay measurement signal transmission apparatus performs the reception step in the reception step. A transmission signal generation step for generating a transmission signal storing reception time information indicating a reception time when the signal is received; and the delay measurement signal transmission device subtracts the reception time indicated by the reception time information from a current time. A difference time calculation step for calculating the difference time, and the delay measurement signal transmission apparatus adds the difference time calculated in the difference time calculation step to the transmission signal generated in the transmission signal generation step. A difference reflecting step for storing the information indicating, and the delay measurement signal transmitting apparatus transmitting the transmission signal storing the information indicating the difference time in the difference reflecting step. Having a transmission step of, a.
本発明の第4の態様によれば、プログラムは、遅延測定用信号送信装置を制御するコンピュータに、信号を受信する受信ステップと、前記受信ステップにて前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成ステップと、現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算ステップと、前記送信用信号生成ステップにて生成した前記送信用信号に、前記差分時間計算ステップにて計算した前記差分時間を示す情報を格納する差分反映ステップと、前記差分反映ステップにて前記差分時間を示す情報を格納した前記送信用信号を送信する送信ステップと、を実行させるためのプログラムである。 According to the fourth aspect of the present invention, the program stores, in a computer that controls the signal transmission device for delay measurement, a reception step of receiving a signal, and a reception time indicating a reception time of receiving the signal in the reception step. A transmission signal generation step for generating a transmission signal storing information, a difference time calculation step for calculating a difference time obtained by subtracting the reception time indicated by the reception time information from a current time, and a transmission signal generation step. A difference reflecting step for storing information indicating the difference time calculated in the difference time calculating step and a information for indicating the difference time in the difference reflecting step. And a transmission step for transmitting a signal.
本発明によれば、伝送遅延時間を測定する際の通信リソースの消費を低減させることができる。 According to the present invention, it is possible to reduce the consumption of communication resources when measuring the transmission delay time.
以下、本発明の実施形態を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。
図1は、本発明の一実施形態における遅延測定システムの装置構成を示す概略構成図である。同図において、遅延測定システム10は、遅延測定用信号送信装置11と、遅延測定用信号要求装置12とを備える。
Hereinafter, although embodiment of this invention is described, the following embodiment does not limit the invention concerning a claim. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.
FIG. 1 is a schematic configuration diagram showing a device configuration of a delay measurement system according to an embodiment of the present invention. In FIG. 1, the
以下では、遅延測定用信号送信装置11及び遅延測定用信号要求装置12が、IEEE1588v2の規定に対応して伝送遅延時間を求める場合を例に説明するが、これに限らない。例えば、IEEE1588v2では、遅延測定用信号送信装置11は遅延測定用信号要求装置12のアップリンク側の直近の装置(PTP対応装置)であるが、これに限らず、遅延測定用信号送信装置11が遅延測定用信号要求装置12のダウンリンク側に位置していてもよいし、遅延測定用信号送信装置11と遅延測定用信号要求装置12との間に中継装置が設けられていてもよい。
Hereinafter, a case where the delay measurement
遅延測定用信号要求装置12は、遅延測定用信号送信装置11との通信経路の伝送遅延を求める。具体的には、遅延測定用信号要求装置12は、遅延測定用信号の送信を要求する要求信号を遅延測定用信号送信装置11へ送信する。そして遅延測定用信号要求装置12は、得られた遅延測定用信号に基づいて通信の遅延時間を求める。
遅延測定用信号送信装置11は、遅延測定用信号要求装置12からの要求信号に応じて遅延測定用信号を生成し送信する。
The delay measurement
The delay measurement
図2は、遅延測定用信号送信装置11と遅延測定用信号要求装置12との間の信号送受信の例を示す説明図である。同図の例では、遅延測定用信号要求装置12が遅延測定用信号送信装置11へPdelay_Reqを送信し、遅延測定用信号送信装置11は遅延測定用信号要求装置12へPdelay_Respを送信している。Pdelay_Reqは、要求信号の例に該当する。また、Pdelay_Respは、遅延測定用信号の例に該当する。
遅延測定用信号要求装置12がPdelay_Reqを送信した時刻をT1で示し、遅延測定用信号送信装置11がPdelay_Reqを受信した時刻をT2で示す。また、遅延測定用信号送信装置11がPdelay_Respを送信した時刻をT3で示し、遅延測定用信号要求装置12がPdelay_Respを受信した時刻をT4で示す。
FIG. 2 is an explanatory diagram illustrating an example of signal transmission / reception between the delay measurement
The time when the delay measurement
遅延測定用信号要求装置12から遅延測定用信号送信装置11への通信経路の伝送遅延時間は、T2−T1で示される。また、遅延測定用信号送信装置11から遅延測定用信号要求装置12への通信経路の伝送遅延時間は、T4−T3で示される。遅延測定用信号要求装置12から遅延測定用信号送信装置11への通信経路と、遅延測定用信号送信装置11から遅延測定用信号要求装置12への通信経路とが同じである場合、遅延測定用信号送信装置11と遅延測定用信号要求装置12との間の通信経路の伝送遅延時間Ttrは、式(1)のように示される。
The transmission delay time of the communication path from the delay measurement
そこで、遅延測定用信号送信装置11は、Pdelay_RespにT3−T2を示す情報を格納して送信する。そして、遅延測定用信号要求装置12は、時刻T1および時刻T4を保持(記憶)しておき、Pdelay_RespからT3−T2を読み出して、式(1)に基づいて伝送遅延時間Ttrを算出する。なお、以下では時間を示す情報を単に時間とも表記する。例えば、時間を示す情報を格納することを、単に時間を格納するとも表記する。同様に、時刻を示す情報を単に時刻とも表記する。
また、遅延測定用信号送信装置11は、IEEE1588v2で規定されている応答信号を2回送信する方式にも対応可能である。この点について図3を参照して説明する。
Therefore, the delay measurement
In addition, the delay measurement
図3は、遅延測定用信号送信装置11と遅延測定用信号要求装置12との間の信号送受信のもう1つの例を示す説明図である。図2の場合と同様、図3の例でも、遅延測定用信号要求装置12が遅延測定用信号送信装置11へPdelay_Reqを送信し、遅延測定用信号送信装置11は遅延測定用信号要求装置12へPdelay_Respを送信している。時刻T1、T2、T3、T4も図2の場合と同様である。
FIG. 3 is an explanatory diagram showing another example of signal transmission / reception between the delay measurement
一方、図2の場合と異なり図3の例では、遅延測定用信号送信装置11は遅延測定用信号要求装置12へ、Pdelay_Respに加えてPdelay_Resp_Follow_Upを送信している。なお、Pdelay_Resp_Follow_UpをFollow_Upとも表記する。また、図2の例では遅延測定用信号送信装置11がPdelay_RespにT3−T2を格納して送信したのに対し、図3の例では、遅延測定用信号送信装置11はPdelay_Respに時刻T2を格納して送信する。また、遅延測定用信号送信装置11は、Pdelay_Resp_Follow_Upに時刻T3を格納して送信する。
On the other hand, unlike the case of FIG. 2, in the example of FIG. 3, the delay measurement
図3の例では、遅延測定用信号要求装置12は、時刻T1および時刻T4を保持(記憶)しておき、Pdelay_Resp、Pdelay_Resp_Follow_Upからそれぞれ時刻T2、時刻T3を読み出す。そして、遅延測定用信号要求装置12は、得られた時刻T1、T2、T3及びT4を式(1)に代入して伝送遅延時間Ttrを算出する。
このように、遅延測定用信号送信装置11がPdelay_Reqに対してPdelay_RespとPdelay_Resp_Follow_Upとを送信することで、Pdelay_Respのみを送信する方式に遅延測定用信号要求装置12が対応していない場合でも、遅延測定用信号要求装置12が伝送遅延時間Ttrを求めることができる。
In the example of FIG. 3, the delay measurement
In this way, even when the delay measurement
なお、遅延測定用信号送信装置11が、Pdelay_Resp_Follow_UpにT3−T2を格納して送信するようにしてもよい。この場合、遅延測定用信号要求装置12は、時刻T1および時刻T4を保持(記憶)しておき、Pdelay_Resp_Follow_UpからT3−T2を読み出して、式(1)に基づいて伝送遅延時間Ttrを算出する。
Note that the delay measurement
次に、図1〜図3を参照して説明した伝送遅延時間の測定方法の適用場面の例を、図4及び図5を参照して説明する。
図4は、時刻同期を行う装置の配置例を示す概略構成図である。同図の例では、時刻同期システム20は、マスタ装置21と、トランスペアレントクロック(Transparent Clock、TC)装置22と、スレーブ装置23とを備えている。マスタ装置21と、スレーブ装置23とは、トランスペアレントクロック装置22を介して通信接続されている。トランスペアレントクロック装置22は、例えばスイッチ(Switch、S/W)を用いて構成される。
Next, an example of an application scene of the transmission delay time measurement method described with reference to FIGS. 1 to 3 will be described with reference to FIGS. 4 and 5.
FIG. 4 is a schematic configuration diagram illustrating an arrangement example of apparatuses that perform time synchronization. In the example of FIG. 1, the
図5は、マスタ装置21とスレーブ装置23とが時刻同期を行う処理手順の例を示す説明図である。
同図の処理では、スレーブ装置23が、トランスペアレントクロック装置22との間の伝送遅延時間を予め測定しておく(シーケンスS21)。この場合、トランスペアレントクロック装置22が、遅延測定用信号送信装置11の例に該当し、スレーブ装置23が、遅延測定用信号要求装置12の例に該当する。トランスペアレントクロック装置22とスレーブ装置23とが、図2に示す方法で伝送遅延時間を測定するようにしてもよいし、図3に示す方法で伝送遅延時間を測定するようにしてもよい。
FIG. 5 is an explanatory diagram illustrating an example of a processing procedure in which the
In the process of FIG. 8, the
また、トランスペアレントクロック装置22が、マスタ装置21との間の伝送遅延時間を予め測定しておく(シーケンスS22)。この場合、マスタ装置21が遅延測定用信号送信装置11の例に該当し、トランスペアレントクロック装置22が、遅延測定用信号要求装置12の例に該当する。マスタ装置21とトランスペアレントクロック装置22とが、図2に示す方法で伝送遅延時間を測定するようにしてもよいし、図3に示す方法で伝送遅延時間を測定するようにしてもよい。
Further, the
シーケンスS21及びS22の後、マスタ装置21がスレーブ装置23へSyncを送信して、マスタ装置21とスレーブ装置23との間で時刻同期を行う(シーケンスS23)。マスタ装置21は、Syncを送信する際、Syncの送信時刻をSyncに格納しておく。
トランスペアレントクロック装置22は、Syncを中継する際、Syncに遅延時間を格納する(シーケンスS24)。具体的には、トランスペアレントクロック装置22はシーケンスS22で得られた伝送遅延時間と、予め記憶しているトランスペアレントクロック装置22内部の遅延時間とをSyncに格納する。ここでいうトランスペアレントクロック装置22内部の遅延時間とは、トランスペアレントクロック装置22がSyncを受信してからSyncを送信するまでに要する時間である。なお、トランスペアレントクロック装置22が、Syncを中継する際、当該Syncから送信時刻を読み出し、遅延時間を加算するようにしてもよい。この場合、トランスペアレントクロック装置22は、Syncから読み出した送信時刻に、シーケンスS22で得られた伝送遅延時間と、予め記憶しているトランスペアレントクロック装置22内部の遅延時間とを加算する。
トランスペアレントクロック装置22が、Syncに格納されている送信時刻を、当該送信時刻に遅延時間を加算した時刻に書き換える(上書きする)ようにしてもよい。あるいは、トランスペアレントクロック装置22が、Syncとは別の信号で、Syncの送信時刻に遅延時間を加算した時刻をスレーブ装置23へ通知するようにしてもよい。
After the sequences S21 and S22, the
When the
The
スレーブ装置23は、トランスペアレントクロック装置22がSyncに格納した遅延時間に、さらに、シーケンスS21で得られた伝送遅延時間を加算し、加算した伝送遅延時間をSyncの送信時刻に加算して、Syncの受信時刻(時刻T22)を算出する(シーケンスS25)。
そして、スレーブ装置23は、Syncを受信した際の内部クロックの時刻と、シーケンスS25で得られた時刻T22との差分を補正する処理を内部クロックに対して行うことで、マスタ装置21との時刻同期を行う(シーケンスS26)。
The
Then, the
次に図6及び図7を参照して、遅延測定用信号送信装置11の構成について説明する。
図6は、遅延測定用信号送信装置11の機能構成を示す概略ブロック図である。同図に示すように、遅延測定用信号送信装置11は、送受信部110と、時刻処理部120と、プロトコル処理部160とを備える。送受信部110は、フレーム受信部111と、フレーム送信部112とを備える。時刻処理部120は、時計部121と、フレーム解析部131と、受信時刻付加部132と、オペレーション解析部141と、送信フレーム時刻処理部150とを備える。送信フレーム時刻処理部150は、1回送信処理部151と、2回送信処理部154とを備える。1回送信処理部151は、差分時間計算部152と、差分時間反映部153とを備える。2回送信処理部154は、送信時刻記憶部155と、送信時刻挿入部156とを備える。プロトコル処理部160は、解析部161と、フレーム生成部162とを備える。
Next, the configuration of the delay measurement
FIG. 6 is a schematic block diagram illustrating a functional configuration of the delay measurement
また、フレーム受信部111、フレーム送信部112は、いずれも通信ネットワーク900と通信接続されている。遅延測定用信号送信装置11は、通信ネットワーク900を介して遅延測定用信号要求装置12(図1)と通信を行う。上述したように、IEEE1588v2の規定に対応する場合、遅延測定用信号送信装置11は、通信ネットワーク900のダウンリンク側(スレーブ側)で遅延測定用信号送信装置11の直近に位置する装置(PTP対応装置)を遅延測定用信号要求装置12として、図2を参照して説明した信号の送受信、又は、図3を参照して説明した信号の送受信を行う。
Further, both the
通信ネットワーク900は、遅延測定用信号送信装置11と遅延測定用信号要求装置12との間の通信経路を構成する。すなわち、遅延測定用信号送信装置11と遅延測定用信号要求装置12とは通信ネットワーク900を介して通信を行って、図1及び図2を参照して説明したように伝送遅延を測定する。
なお、遅延測定用信号送信装置11は、通信ネットワーク900の通信方式に依存しない。例えば、通信ネットワーク900はイーサネット(登録商標)であってもよいが、これに限らない。また、以下では遅延測定用信号送信装置11がフレームを送受信する場合を例に説明するが、遅延測定用信号送信装置11が送受信する信号の形式はフレーム形式に限らない。
The
Note that the delay measurement
フレーム受信部111は、他の装置からフレームの形式で送信された信号を通信ネットワーク900を介して受信する。特に、図2又は図3に示すように、フレーム受信部111は、遅延測定用信号要求装置12からのPdelay_Reqを受信する。
フレーム送信部112は、他の装置への信号をフレームの形式で通信ネットワーク900を介して送信する。特に、図2に示すように、フレーム送信部112は、遅延測定用信号要求装置12へPdelay_Respを送信する。この場合、フレーム送信部112は、Pdelay_Reqの受信時刻とPdelay_Respの送信時刻との差分時間(式(1)のT3−T2)を差分時間反映部153が格納したPdelay_Respを送信する。あるいは、図3に示すように、フレーム送信部112は、遅延測定用信号要求装置12へPdelay_Resp及びPdelay_Resp_Follow_Upを送信する。
The
The
時刻処理部120は、Pdelay_Reqの受信時刻及びPdelay_Respの送信時刻に関する処理を行う。具体的には、時刻処理部120は、Pdelay_Reqの受信時刻を検出してプロトコル処理部160へ通知する。また、時刻処理部120は、Pdelay_Respの送信時刻を取得して記憶する。
時計部121は、遅延測定用信号送信装置11の内部クロックであり、現在時刻を出力する。
フレーム解析部131は、フレーム受信部111が受信したフレームを解析する。特に、フレーム解析部131が受信フレーム(フレーム受信部111が受信したフレーム)を検出することで、受信時刻付加部132が処理を開始する。
The
The
The
受信時刻付加部132は、フレーム受信部111が受信したPdelay_Reqに受信時刻を付加する。具体的には、フレーム解析部131が受信フレームを検出すると、受信時刻付加部132は、時計部121から現在時刻を取得し、得られた現在時刻を受信時刻として当該フレーム(Pdelay_Req)と対応付けて解析部161へ出力する。
受信時刻付加部132がPdelay_Reqと受信時刻とを対応付ける方法としていろいろな方法を用いることができる。例えば、受信時刻付加部132が、Pdelay_Reqの所定の位置に受信時刻を書き込むようにしてもよい。あるいは、受信時刻付加部132が、受信時刻を示すヘッダ(Header)またはトレイラ(Trailer)をPdelay_Reqに付加するようにしてもよい。
The reception
Various methods can be used as a method in which the reception
オペレーション解析部141は、フレーム生成部162がフレームに対応付けて出力するオペレーション(動作指令)を解析する。特に、オペレーション解析部141は切替部の例に該当し、オペレーションに従って1回送信処理と2回送信処理との切替を行う。具体的には、オペレーション解析部141は、フレーム生成部162が出力するフレーム毎に、1回送信処理または2回送信処理のいずれかを選択する。ここでいう1回送信処理は、図2を参照して説明したような、Pdelay_Reqの受信時刻とPdelay_Respの送信時刻との差分時間を格納したPdelay_Respを送信する処理である。この場合、フレーム送信部112が送信するPdelay_Respは、遅延測定用信号の例に該当する。また、2回送信処理は、図3を参照して説明したような、Pdelay_Resp及びPdelay_Resp_Follow_Upを送信する処理である。この場合、フレーム送信部112が送信するPdelay_Resp、Pdelay_Resp_Follow_Upは、それぞれ第1送信信号、第2送信信号の例に該当する。
The
送信フレーム時刻処理部150は、送信フレーム(フレーム送信部112が送信するフレーム)に、送信時刻に関する情報を格納する処理を行う。
1回送信処理部151は、1回送信処理の場合に、Pdelay_Reqの受信時刻とPdelay_Respの送信時刻との差分時間をPdelay_Respに格納する処理を行う。
The transmission frame
In the case of a one-time transmission process, the one-time transmission processing unit 151 performs a process of storing a difference time between the reception time of Pdelay_Req and the transmission time of Pdelay_Resp in Pdelay_Resp.
差分時間計算部152は、Pdelay_Reqの受信時刻とPdelay_Respの送信時刻との差分時間を計算する。具体的には、差分時間計算部152は、Pdelay_Respに格納されているPdelay_Reqの受信時刻を読み出す。また、差分時間計算部152は、Pdelay_Respの送信時刻として現在時刻を時計部121から取得する。そして、差分時間計算部152は、現在時刻からPdelay_Reqの受信時刻を減算した差分時間を計算する。
The difference
ここで、差分時間計算部152は、MAC(Media Access Controller)層に設けられてARP(Address Resolution Protocol)の処理が完了した後に、現在時刻を取得して差分時間を計算する。ここでいうARPの処理は、宛先MACアドレスを取得する処理である。従って、差分時間計算部152は、Pdelay_Respの送信先が確定した後に、現在時刻を取得して差分時間を計算する。
Here, the difference
図7は、遅延測定用信号送信装置11の通信プロトコルの階層構造の例を示す説明図である。同図に示すように、遅延測定用信号送信装置11は、下位の層から順にPHY層(物理層)、MAC層、IP(Internet Protocol)層、UDP(User Datagram Protocol)層、PTP(Precision Time Protocol)層の各層を有する。プロトコル処理部160は、これらの層のうちIP層から上位の層に設けられている。ただし、L2型PTP(PTP over Ethernet、Ethernetは登録商標)の場合は、IP層とUDP層は存在せず、MAC層の直上はPTP層となる。すなわち、プロトコル処理部160は、これらの層のうちMAC層より上位の層に設けられていればよい。
一方、時刻処理部120は、MAC層に設けられている。また、ARPの処理もMAC層で行われ、差分時間計算部152は、ARPの処理が完了した後に時計部121から現在時刻を取得して差分時間を計算する。本実施形態では時刻処理部120がMAC層に設けられることで、ハードウェアにおける物理遅延以外の遅延がフレームに影響を与えないため、遅延を抑制することができる。さらに、時刻処理部120がMAC層に設けられることで、フレームに制御情報などの付加情報を添付することが可能であり、フレームを容易に制御することができる。
FIG. 7 is an explanatory diagram illustrating an example of a hierarchical structure of a communication protocol of the delay measurement
On the other hand, the
特に、時刻処理部120がMAC層に設けられることで、差分時間計算部152がPdelay_Respの送信時刻としての現在時刻を取得してからフレーム送信部112がPdelay_Respを送信するまでの時間の揺らぎに、ARPの処理にかかる時間の揺らぎが含まれない。この点で、差分時間計算部152が算出する差分時間の、フレーム受信部111がPdelay_Reqを受信してからフレーム送信部112がPdelay_Respを送信するまでの実際の時間に対する揺らぎを低減させることができる。
In particular, since the
差分時間反映部153は、フレーム生成部162が生成したPdelay_Respに、差分時間計算部152が計算した差分時間を格納する。フレーム生成部162が生成したPdelay_Respは、送信用信号の例に該当し、差分時間反映部153が差分時間を格納した後のPdelay_Respは、遅延測定用信号の例に該当する。
2回送信処理部154は、2回送信処理の場合に、Pdelay_Respの送信時刻をPdelay_Resp_Follow_Upに格納する処理を行う。
The difference
In the case of the two-time transmission process, the twice-
送信時刻記憶部155は、Pdelay_Respの送信時刻を記憶する。具体的には、2回送信処理でPdelay_Respを送信する場合、現在時刻を記憶するよう指示するオペレーションを、フレーム生成部162がPdelay_Respに対応付けて出力する。そして、オペレーション解析部141が当該オペレーションに従って送信時刻記憶部155に現在時刻を記憶させる。
The transmission
送信時刻挿入部156は、送信時刻記憶部155が記憶しているPdelay_Respの送信時刻を、Pdelay_Resp_Follow_Upに挿入する。具体的には、2回送信処理でPdelay_Resp_Follow_Upを送信する場合、Pdelay_Respの送信時刻をPdelay_Resp_Follow_Upに挿入するよう指示するオペレーションを、フレーム生成部162がPdelay_Respに対応付けて出力する。そして、オペレーション解析部141が当該オペレーションに従って送信時刻挿入部156を制御し、Pdelay_Resp_Follow_Upの所定の位置にPdelay_Respの送信時刻を挿入させる。
The transmission
プロトコル処理部160は、受信フレームに対する処理及び送信フレームの生成を行う。
解析部161は、受信フレームを解析する。特に、解析部161は、受信フレームがPdelay_Reqか否かを判定する。
フレーム生成部162は、送信用信号生成部の例に該当し、送信フレームを生成する。特に、フレーム生成部162は、フレーム受信部111がPdelay_Reqを受信した受信時刻を示す受信時刻情報を格納したPdelay_Respを生成する。
The
The
The
次に、図8〜図10を参照して遅延測定用信号送信装置11の動作について説明する。
図8は、遅延測定用信号送信装置11が、1回送信処理を行う処理手順の例を示す説明図である。同図に示すように、送受信部110のフレーム受信部111がPdelay_Reqを受信すると(シーケンスS101)、時刻処理部120の受信時刻付加部132がPdelay_Reqの受信時刻(時刻T2)を取得してPdelay_Reqに付加する(シーケンスS102)。受信時刻付加部132は、受信時刻を付加したPdelay_Reqをプロトコル処理部160へ出力する。
Next, the operation of the delay measurement
FIG. 8 is an explanatory diagram illustrating an example of a processing procedure in which the delay measurement
そして、プロトコル処理部160の解析部161が受信フレームを解析してPdelay_Reqであると判定すると(シーケンスS111)、フレーム生成部162が、受信時刻を格納したPdelay_Respを生成する(シーケンスS112)。フレーム生成部162は、差分計算を指示するオペレーションをPdelay_Respに付加して時刻処理部120へ出力する。ここでいう差分計算は、Pdelay_Respの送信時刻(時刻T3)からPdelay_Reqの受信時刻(時刻T2)を減算した差分時間(時間Td)の計算である。
When the
時刻処理部120では、差分計算を指示するオペレーションに従って、差分時間計算部152が、Pdelay_Respの送信時刻として現在時刻を取得し(シーケンスS121)、差分時間を計算する(シーケンスS122)。そして、差分時間反映部153が、シーケンスS122で得られた差分時間を、Pdelay_Respの所定の位置に格納する(シーケンスS123)。差分時間反映部153は、差分時間を格納したPdelay_Respを送受信部110へ出力する。
送受信部110では、フレーム送信部112が、差分時間を格納したPdelay_Respを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(シーケンスS124)。
In the
In the transmission /
図9は、遅延測定用信号送信装置11が、2回送信処理を行う処理手順の例を示す説明図である。同図のシーケンスS201〜S211は、図8のシーケンスS101〜S111と同様である。また、図9のシーケンスS212では、図8のシーケンスS112と同様、フレーム生成部162が、受信時刻を格納したPdelay_Respを生成する。但し、図8の場合と異なり、フレーム生成部162は、時刻記憶を指示するオペレーションをPdelay_Respに付加して時刻処理部120へ出力する。ここでいう時刻記憶は、Pdelay_Respの送信時刻を記憶することである。
FIG. 9 is an explanatory diagram illustrating an example of a processing procedure in which the delay measurement
フレーム生成部162は、Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応しているか否かに応じたオペレーションを出力する。Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応していると判定した場合、フレーム生成部162は、図8を参照して説明したように差分計算を指示するオペレーションを出力する。一方、Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応していないと判定した場合、フレーム生成部162は、上記のように時刻記憶を指示するオペレーション、及び、後述する時刻通知を指示するオペレーションを出力する。
The
Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応しているか否かの判定は、例えば、解析部161がPdelay_Reqを解析することで行う。この場合、遅延測定用信号要求装置12が、1回送信処理に対応しているか否かを示す情報をPdelay_Reqに含めて送信し、解析部161は、Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応しているか否かの判定を、当該情報に基づいて行う。
あるいは、フレーム生成部162が、1回送信処理に対応しているか否かを遅延測定用信号要求装置12毎に予め記憶しておくなど、Pdelay_Reqの解析以外の方法で、Pdelay_Reqを送信した遅延測定用信号要求装置12が1回送信処理に対応しているか否かの判定を行うようにしてもよい。
Whether or not the delay measurement
Alternatively, the delay measurement in which Pdelay_Req is transmitted by a method other than the analysis of Pdelay_Req, such as storing in advance for each delay measurement
時刻処理部120では、時刻記憶を指示するオペレーションに従って、送信時刻記憶部155が、Pdelay_Respの送信時刻として現在時刻を取得して記憶する(シーケンスS221)。
また、時刻処理部120は、プロトコル処理部160からのPdelay_Respを送受信部110へ出力(転送)する。送受信部110ではフレーム送信部112が、当該Pdelay_Respを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(シーケンスS222)。
In
In addition, the
また、プロトコル処理部160のフレーム生成部162は、Pdelay_Resp_Follow_Upを生成し(シーケンスS231)、時刻通知を指示するオペレーションをPdelay_Resp_Follow_Upに付加して時刻処理部120へ出力する。ここでいう時刻通知は、Pdelay_Respの送信時刻を遅延測定用信号要求装置12へ通知することである。
The
時刻処理部120では、時刻通知を指示するオペレーションに従って、送信時刻挿入部156が、Pdelay_Respの送信時刻を送信時刻記憶部155から取得して、Pdelay_Resp_Follow_Upの所定の位置に格納する(シーケンスS232)。
そして、送信時刻挿入部156は、Pdelay_Respの送信時刻を格納したPdelay_Resp_Follow_Upを送受信部110へ出力する。送受信部110ではフレーム送信部112が、当該Pdelay_Resp_Follow_Upを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(シーケンスS233)。
In
Then, the transmission
図10は、遅延測定用信号送信装置11がPdelay_Reqに応答する処理の手順を示すフローチャートである。遅延測定用信号送信装置11は、フレーム受信部111がPdelay_Reqを受信すると同図の処理を行う。
同図の処理にて、フレーム解析部131が受信フレームを検出すると、受信時刻付加部132が、Pdelay_Reqの受信時刻(時刻T2)として現在時刻を時計部121から取得して、Pdelay_Reqに付加する(ステップS301)。
FIG. 10 is a flowchart illustrating a procedure of processing in which the delay measurement
When the
次に、解析部161が受信フレームを解析してPdelay_Reqであると判定すると、フレーム生成部162がPdelay_Respとしてのフレームを生成する(ステップS302)。そして、フレーム生成部162は、ステップS301で受信時刻付加部132がPdelay_Reqに付加した受信時刻をPdelay_Respに格納する(ステップS303)。
また、フレーム生成部162は、Pdelay_Respにオペレーションを付加する(ステップS304)。ここでは、フレーム生成部162は、図8を参照して説明した差分計算を指示するオペレーション、又は、図9を参照して説明した時刻記憶を指示するオペレーションのいずれかを付加する。
Next, when the
In addition, the
次に、オペレーション解析部141がオペレーションを解析し、差分計算を指示するオペレーションか否かを判定する(ステップS305)。
差分計算を指示するオペレーションであると判定した場合(ステップS305:YES)、差分時間計算部152は、Pdelay_Respの送信時刻(時刻T3)として現在時刻を時計部121から取得する(ステップS311)。また、差分時間計算部152は、Pdelay_RespからPdelay_Respの受信時刻(時刻T2)を読み出す(ステップS312)。そして、差分時間計算部152は、差分時間(時間Td=T3−T2)を算出する(ステップS313)。
Next, the
When it is determined that the operation is an operation for instructing the difference calculation (step S305: YES), the difference
差分時間反映部153は、差分時間計算部152が算出した差分時間をPdelay_Respの所定の位置に格納する(ステップS314)。フレーム送信部112は、差分時間反映部153が差分時間を格納したPdelay_Respを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(ステップS315)。ステップS311〜S315は、1回送信処理の手順の例に該当する。
ステップS315の後、図10の処理を終了する。
The difference
After step S315, the process of FIG.
一方、ステップS305で、差分計算を指示するオペレーションではないと判定した場合(ステップS305:NO)、オペレーション解析部141は、オペレーションが時刻記憶を指示するオペレーションか否かを判定する(ステップS321)。
時刻記憶を指示するオペレーションであると判定した場合(ステップS321:YES)、送信時刻記憶部155は、Pdelay_Respの送信時刻として現在時刻を時計部121から取得して記憶する(ステップS331)。
On the other hand, when it is determined in step S305 that the operation is not an operation for instructing difference calculation (step S305: NO), the
When it is determined that the operation is an operation for instructing time storage (step S321: YES), the transmission
また、時刻処理部120は、フレーム生成部162からのPdelay_Respをフレーム送信部112へ出力(転送)し、フレーム送信部112は当該Pdelay_Respを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(ステップS332)。
また、フレーム生成部162は、Pdelay_Resp_Follow_Upを生成する(ステップS333)。そして、フレーム生成部162は、時刻通知を指示するオペレーションをPdelay_Resp_Follow_Upに付加する(ステップS334)。
ステップS334の後、ステップS305へ遷移する。
Further, the
Further, the
After step S334, the process proceeds to step S305.
一方、ステップS321で、時刻記憶を指示するオペレーションではないと判定した場合(ステップS321:NO)、送信時刻挿入部156は、Pdelay_Respの送信時刻を送信時刻記憶部155から取得し、Pdelay_Resp_Follow_Upの所定の位置に格納する(ステップS341)。
そして、フレーム送信部112は、送信時刻挿入部156が送信時刻を格納したPdelay_Resp_Follow_Upを、通信ネットワーク900を介して遅延測定用信号要求装置12へ送信する(ステップS342)。ステップS321〜S342は、2回送信処理の手順の例に該当する。
ステップS342の後、図10の処理を終了する。
On the other hand, if it is determined in step S321 that the operation is not an instruction to store time (step S321: NO), the transmission
Then, the
After step S342, the process of FIG. 10 ends.
以上のように、差分時間計算部152は、Pdelay_Respの送信時刻としての現在時刻からPdelay_Reqの受信時刻を減算した差分時間を計算する。そして、差分時間反映部153は、フレーム生成部162が生成したPdelay_Respに、差分時間計算部152が計算した差分時間を格納する。フレーム送信部112は、差分時間反映部153が差分時間を格納したPdelay_Respを送信する。
これにより、Pdelay_Respを受信した遅延測定用信号要求装置12は、Pdelay_Resp_Follow_Upなど他の信号をさらに受信する必要なしに伝送遅延時間を算出することができる。このように、遅延測定用信号送信装置11によれば、Pdelay_Reqに対してPdelay_Respを送信すればよく、Pdelay_Resp_Follow_Upなど他の信号をさらに送信する必要がない。
この点で、遅延測定用信号送信装置11によれば、伝送遅延時間を測定する際の通信リソースの消費を低減させることができる。また、Pdelay_Resp_Follow_Upなど他の信号をさらに送受信する必要がない点で、遅延測定用信号送信装置11の負荷および遅延測定用信号要求装置12の負荷を低減させることができる。
As described above, the difference
Thus, the delay measurement
In this respect, according to the signal transmitter for
また、差分時間計算部152は、ARPの処理が完了した後などPdelay_Respの送信先が確定した後に、Pdelay_Respの送信時刻として現在時刻を取得して差分時間を計算する。
これにより、差分時間計算部152がPdelay_Respの送信時刻としての現在時刻を取得してからフレーム送信部112がPdelay_Respを送信するまでの時間の揺らぎに、ARPの処理等にかかる時間の揺らぎが含まれない。この点で、差分時間計算部152が算出する差分時間の、フレーム受信部111がPdelay_Reqを受信してからフレーム送信部112がPdelay_Respを送信するまでの実際の時間に対する揺らぎを低減させることができる。
In addition, the differential
As a result, the time fluctuation from the time when the differential
ここで、IEEE1588v2に対応してPeer Delayメカニズムを実行する一般的な方法では、フレーム送信時刻の打刻などフレームの送受信時刻を打刻する処理はMAC層またはPHY層で行われるものの、複雑な処理はMAC層より上位の層で行われる。仮に、Pdelay_Respの送信時刻からPdelay_Reqの受信時刻を減算した差分時間をMAC層より上位の層で計算してPdelay_Respに埋め込んだ場合、Pdelay_Respに差分時間を埋め込んだ後にARPの処理を行うことになる。ARPの処理に要する時間は揺らぎが大きいため、Pdelay_Respに埋め込まれた差分時間の、Pdelay_Reqの受信からPdelay_Respの送信までの実際の時間に対する揺らぎが大きくなる。
これに対して、遅延測定用信号送信装置11は、上記のようにARPの処理を行った後、差分時間をPdelay_Respに格納するので、Pdelay_Respに埋め込まれた差分時間の、Pdelay_Reqの受信からPdelay_Respの送信までの実際の時間に対する揺らぎが小さい。
Here, in a general method for executing the Peer Delay mechanism corresponding to IEEE 1588v2, a process for marking a frame transmission / reception time such as a frame transmission time is performed in the MAC layer or the PHY layer, but is a complicated process. Is performed in a layer higher than the MAC layer. If the difference time obtained by subtracting the reception time of Pdelay_Req from the transmission time of Pdelay_Resp is calculated in a layer higher than the MAC layer and embedded in Pdelay_Resp, the ARP processing is performed after the difference time is embedded in Pdelay_Resp. Since the time required for the ARP process is large, the difference time embedded in Pdelay_Resp increases with respect to the actual time from reception of Pdelay_Req to transmission of Pdelay_Resp.
On the other hand, since the delay
また、オペレーション解析部141は、差分時間反映部153が差分時間を格納したPdelay_Respをフレーム送信部112が送信する1回送信処理と、Pdelay_Reqの受信時刻が格納されたPdelay_Resp、及び、当該Pdelay_Resp送信時刻が格納されたPdelay_Resp_Follow_Upをフレーム送信部112が送信する2回送信処理とを切り替える。
これにより、遅延測定用信号送信装置11は、1回送信処理(Pdelay_Respのみの送信)に対応していない遅延測定用信号要求装置12に対しては、2回送信処理(Pdelay_RespおよびPdelay_Resp_Follow_Upの送信)にて伝送遅延測定のための情報を提供することができる。
In addition, the
As a result, the delay measurement
なお、遅延測定用信号送信装置11では、2回送信処理は必須ではない。例えば、遅延測定用信号送信装置11が、2回送信処理部154、送信時刻記憶部155及び送信時刻挿入部156を備えていなくてもよい。この場合、遅延測定用信号送信装置11は、図10のステップS305では常にステップS311へ遷移する。
In the delay
なお、上述した2回送信処理の場合と同様に、時刻同期のマスタ装置がSync(時刻同期信号)を送信する場合も、Sync送信時刻のフレームへの格納をMAC層で行うようにしてもよい。この点について、図11及び図12を参照して説明する。
図11は、本実施形態の一変形例におけるマスタ装置の機能構成を示す概略ブロック図である。同図に示すように、マスタ装置200は、フレーム送信部212と、時刻処理部220と、フレーム生成部262とを備える。時刻処理部220は、時計部121と、オペレーション解析部241と、送信フレーム時刻処理部250とを備える。送信フレーム時刻処理部250は、送信時刻記憶部255と、送信時刻打刻部256とを備える。
図11の各部のうち、図6の各部に対応して同様の部分には同一の符号(131、900)を付して説明を省略する。
As in the case of the two-time transmission process described above, when the time synchronization master device transmits a Sync (time synchronization signal), the frame of the Sync transmission time may be stored in the MAC layer. . This point will be described with reference to FIGS. 11 and 12.
FIG. 11 is a schematic block diagram illustrating a functional configuration of the master device according to a modification of the present embodiment. As shown in the figure, the
11 corresponding to those in FIG. 6 are denoted by the same reference numerals (131, 900) and description thereof is omitted.
マスタ装置200は、通信ネットワーク900を介してスレーブ装置と通信を行う。特にマスタ装置200は、時刻同期用のフレームであるSyncと、Syncの送信時刻を示すフレームであるSync_Follow_Upとを送信する。スレーブ装置は、これらのフレームを参照してマスタ装置200との時刻同期を行う。
なお、マスタ装置200は、通信ネットワーク900の通信方式に依存しない。例えば、通信ネットワーク900はイーサネット(登録商標)であってもよいが、これに限らない。また、マスタ装置200が送信する信号の形式はフレーム形式に限らない。
The
The
フレーム生成部262は、送信フレーム(フレーム送信部112が送信するフレーム)を生成する。特に、フレーム生成部262は、時刻同期用のフレームであるSyncを生成する。また、フレーム生成部262は、Syncの送信時刻を示すフレームであるSync_Follow_Upを生成する。但し、Sync_Follow_UpへのSyncの送信時刻の格納は、送信時刻打刻部256が行う。
また、フレーム生成部262は、フレームに対応付けてオペレーション(動作指令)を出力する。このオペレーションにより、時刻処理部220は、Sync、Sync_Follo_Upのそれぞれに対応した処理を行う。
The
The
時刻処理部220は、Syncの送信時刻に関する処理を行う。具体的には、時刻処理部220は、Syncの送信時刻を検出して記憶しておきSync_Follow_Upに格納する。
オペレーション解析部241は、フレーム生成部262がフレームに対応付けて出力するオペレーションを解析する。
The
The
送信フレーム時刻処理部250は、Sync_Follow_Upに、Syncの送信時刻を格納する処理を行う。
送信時刻記憶部255は、Syncの送信時刻を記憶する。具体的には、送信時刻記憶部は、Syncの送信時に、オペレーション解析部によるオペレーションの解析結果に従って、Syncの送信時刻として現在時刻を時計部121から取得して記憶する。
The transmission frame
The transmission
送信時刻打刻部256は、Sync_Follow_UpにSyncの送信時刻を格納する。具体的には、送信時刻記憶部255は、Sync_Follow_Upの送信時に、オペレーション解析部によるオペレーションの解析結果に従って、送信時刻記憶部255が記憶しているSyncの送信時刻を取得してSync_Follow_Upに格納する。
フレーム送信部212は、他の装置への信号をフレームの形式で通信ネットワーク900を介して送信する。特に、フレーム送信部212は、Sync、及び、Sync_Follow_Upをスレーブ装置へ送信する。
The transmission
The
マスタ装置200も、遅延測定用信号送信装置11の場合と同様、通信プロトコルとして下位の層から順にPHY層(物理層)、MAC層、IP層、UDP層、PTP層の各層を有する。フレーム生成部262は、これらの層のうちIP層から上位の層に設けられている。ただし、L2型PTPの場合は、IP層とUDP層は存在せず、MAC層の直上はPTP層となる。すなわち、プロトコル処理部160は、これらの層のうちMAC層より上位の層に設けられていればよい。
一方、時刻処理部220は、時刻処理部120と同様、MAC層に設けられている。そして、送信時刻記憶部255は、Syncを送信する際のARPの処理が完了した後に、時計部121から現在時刻を取得してSyncの送信時刻として記憶する。
Similarly to the case of the delay measurement
On the other hand, the
図12は、マスタ装置200がSync及びSync_Follow_Upを送信する処理手順の例を示す説明図である。同図に示すように、フレーム生成部262は、Syncを生成し(シーケンスS401)、時刻記憶を指示するオペレーションをSyncに付加して時刻処理部220へ出力する。ここでいう時刻記憶は、Syncの送信時刻を記憶することである。
FIG. 12 is an explanatory diagram illustrating an example of a processing procedure in which the
時刻処理部220では、時刻記憶を指示するオペレーションに従って、送信時刻記憶部255が、Syncの送信時刻(時刻Ts)として現在時刻を取得して記憶する(シーケンスS411)。
また、時刻処理部220は、フレーム生成部262からのSyncをフレーム送信部212へ出力(転送)する。フレーム送信部212は、当該Syncを、通信ネットワーク900を介してスレーブ装置へ送信する(シーケンスS412)。
In
In addition, the
また、フレーム生成部262は、Sync_Follow_Upを生成し(シーケンスS401)、記憶反映を指示するオペレーションをSync_Follow_Upに付加して時刻処理部220へ出力する。ここでいう記憶反映は、送信時刻記憶部255が記憶しているSyncの送信時刻をSync_Follow_Upに格納することである。
Further, the
時刻処理部220では、記憶反映を指示するオペレーションに従って、送信時刻打刻部256が、Syncの送信時刻(時刻Ts)を送信時刻記憶部255から取得して、Sync_Follow_Upの所定の位置に格納(打刻)する(シーケンスS422)。フレーム送信部212は、当該Sync_Follow_Upを、通信ネットワーク900を介してスレーブ装置へ送信する(シーケンスS412)。
In the
このように、時刻処理部220は、Sync_Follow_UpにSyncの送信時刻を格納する処理をMAC層で行う。
これによりMAC層より上位の層の負荷を低減させることができる。
As described above, the
As a result, the load on the upper layer than the MAC layer can be reduced.
なお、時刻処理部120、220の全部または一部の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより各部の処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。
A program for realizing all or part of the functions of the
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計変更等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design changes and the like without departing from the gist of the present invention.
10 遅延測定システム
11 遅延測定用信号送信装置
110 送受信部
111 フレーム受信部
112 フレーム送信部
120 時刻処理部
121 時計部
131 フレーム解析部
132 受信時刻付加部
141 オペレーション解析部
150 送信フレーム時刻処理部
151 1回送信処理部
152 差分時間計算部
153 差分時間反映部
154 2回送信処理部
155 送信時刻記憶部
156 送信時刻挿入部
160 プロトコル処理部
161 解析部
162 フレーム生成部
DESCRIPTION OF
Claims (6)
前記受信部が前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成部と、
現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算部と、
前記送信用信号生成部が生成した前記送信用信号に、前記差分時間計算部が計算した前記差分時間を示す情報を格納する差分時間反映部と、
前記差分時間反映部が前記差分時間を示す情報を格納した前記送信用信号を送信する送信部と、
を備える遅延測定用信号送信装置。 A receiver for receiving the signal;
A signal generator for transmission that generates a signal for transmission storing reception time information indicating a reception time when the signal is received by the receiver;
A difference time calculation unit for calculating a difference time obtained by subtracting the reception time indicated by the reception time information from a current time;
A difference time reflection unit that stores information indicating the difference time calculated by the difference time calculation unit in the transmission signal generated by the transmission signal generation unit;
A transmission unit that transmits the transmission signal in which the difference time reflection unit stores information indicating the difference time; and
A signal transmission device for delay measurement comprising:
請求項1に記載の遅延測定用信号送信装置。 The difference time calculation unit obtains the current time after calculating the transmission destination of the transmission signal, and calculates the difference time.
The signal transmission device for delay measurement according to claim 1.
請求項1または請求項2に記載の遅延測定用信号送信装置。 The transmission unit transmits the transmission signal in which the difference time reflecting unit stores information indicating the difference time, and the transmission unit stores information indicating the reception time. The delay measurement according to claim 1, further comprising a switching unit that switches between a transmission signal and a two-time transmission process for transmitting a second transmission signal in which information indicating a transmission time of the first transmission signal is stored. Signal transmitter.
前記要求信号に応じて前記遅延測定用信号を送信する遅延測定用信号送信装置と、
を備え、
前記遅延測定用信号送信装置は、
前記要求信号を受信する受信部と、
前記受信部が前記要求信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成部と、
現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算部と、
前記送信用信号生成部が生成した前記送信用信号に、前記差分時間計算部が計算した前記差分時間を示す情報を格納することで前記遅延測定用信号を生成する差分時間反映部と、
前記遅延測定用信号を送信する送信部と、
を備える遅延測定システム。 A delay measurement signal requesting device that transmits a request signal for requesting transmission of a delay measurement signal, and obtains a communication delay time based on the obtained delay measurement signal;
A signal transmission device for delay measurement that transmits the signal for delay measurement in response to the request signal;
With
The signal transmission device for delay measurement is
A receiving unit for receiving the request signal;
A transmission signal generator for generating a transmission signal storing reception time information indicating a reception time at which the reception unit has received the request signal;
A difference time calculation unit for calculating a difference time obtained by subtracting the reception time indicated by the reception time information from a current time;
A differential time reflection unit that generates the delay measurement signal by storing information indicating the differential time calculated by the differential time calculation unit in the transmission signal generated by the transmission signal generation unit;
A transmitter for transmitting the delay measurement signal;
A delay measurement system comprising:
前記遅延測定用信号送信装置が、前記受信ステップにて前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成ステップと、
前記遅延測定用信号送信装置が、現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算ステップと、
前記遅延測定用信号送信装置が、前記送信用信号生成ステップにて生成した前記送信用信号に、前記差分時間計算ステップにて計算した前記差分時間を示す情報を格納する差分反映ステップと、
前記遅延測定用信号送信装置が、前記差分反映ステップにて前記差分時間を示す情報を格納した前記送信用信号を送信する送信ステップと、
を有する遅延測定用信号送信方法。 A delay measuring signal transmitting apparatus for receiving a signal; and
A signal generation step for transmission for generating a transmission signal storing reception time information indicating a reception time at which the signal transmission device for delay measurement has received the signal in the reception step;
The delay measurement signal transmitting device calculates a difference time by subtracting the reception time indicated by the reception time information from a current time;
The delay measurement signal transmitting apparatus stores, in the transmission signal generated in the transmission signal generation step, a difference reflection step of storing information indicating the difference time calculated in the difference time calculation step;
The delay measuring signal transmitting apparatus transmits the transmitting signal storing the information indicating the difference time in the difference reflecting step; and
A signal transmission method for delay measurement, comprising:
信号を受信する受信ステップと、
前記受信ステップにて前記信号を受信した受信時刻を示す受信時刻情報を格納した送信用信号を生成する送信用信号生成ステップと、
現在時刻から前記受信時刻情報が示す前記受信時刻を減算した差分時間を計算する差分時間計算ステップと、
前記送信用信号生成ステップにて生成した前記送信用信号に、前記差分時間計算ステップにて計算した前記差分時間を示す情報を格納する差分反映ステップと、
前記差分反映ステップにて前記差分時間を示す情報を格納した前記送信用信号を送信する送信ステップと、
を実行させるためのプログラム。 In the computer that controls the signal transmission device for delay measurement,
A receiving step for receiving a signal;
A transmission signal generation step for generating a transmission signal storing reception time information indicating a reception time at which the signal is received in the reception step;
A difference time calculation step of calculating a difference time obtained by subtracting the reception time indicated by the reception time information from a current time;
A difference reflection step of storing information indicating the difference time calculated in the difference time calculation step in the transmission signal generated in the transmission signal generation step;
A transmission step of transmitting the transmission signal storing information indicating the difference time in the difference reflection step;
A program for running
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015107761A JP2016225714A (en) | 2015-05-27 | 2015-05-27 | Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015107761A JP2016225714A (en) | 2015-05-27 | 2015-05-27 | Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016225714A true JP2016225714A (en) | 2016-12-28 |
Family
ID=57748640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015107761A Pending JP2016225714A (en) | 2015-05-27 | 2015-05-27 | Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016225714A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005094629A (en) * | 2003-09-19 | 2005-04-07 | Mega Chips Corp | Radio communication apparatus and wireless communication method |
US20120275501A1 (en) * | 2011-04-27 | 2012-11-01 | Sergiu Rotenstein | Pluggable synchronization clocks, networks, systems and methods related thereto |
WO2014044501A1 (en) * | 2012-09-19 | 2014-03-27 | Alcatel Lucent | Method for managing and maintaining an accurate distribution of time in a network when a failure occurs |
JP2014216669A (en) * | 2013-04-22 | 2014-11-17 | 日本電信電話株式会社 | Communication system, synchronous system, and communication method |
JP5656305B1 (en) * | 2014-04-17 | 2015-01-21 | パナソニックIpマネジメント株式会社 | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD |
-
2015
- 2015-05-27 JP JP2015107761A patent/JP2016225714A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005094629A (en) * | 2003-09-19 | 2005-04-07 | Mega Chips Corp | Radio communication apparatus and wireless communication method |
US20120275501A1 (en) * | 2011-04-27 | 2012-11-01 | Sergiu Rotenstein | Pluggable synchronization clocks, networks, systems and methods related thereto |
WO2014044501A1 (en) * | 2012-09-19 | 2014-03-27 | Alcatel Lucent | Method for managing and maintaining an accurate distribution of time in a network when a failure occurs |
JP2014216669A (en) * | 2013-04-22 | 2014-11-17 | 日本電信電話株式会社 | Communication system, synchronous system, and communication method |
JP5656305B1 (en) * | 2014-04-17 | 2015-01-21 | パナソニックIpマネジメント株式会社 | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2169857B1 (en) | Terminal device, time adjusting method of terminal device and communication system | |
JP4963063B2 (en) | Distance measuring system, distance measuring method, information processing apparatus, program, and recording medium | |
US8397095B2 (en) | Method and apparatus for synchronizing time of day of terminal in convergent network | |
KR20090032306A (en) | Time synchronization system and method on the network | |
JPWO2018221238A1 (en) | Wireless device and wireless device processing method | |
WO2016095099A1 (en) | Time synchronization method and apparatus | |
US11240586B1 (en) | Method, apparatus and device for synchronously playing audio | |
US9363615B2 (en) | Delay measurement apparatus and delay measurement method for network music session | |
JP2019186945A (en) | Multi configuration personnel type bluetooth network capable of maintaining bluetooth signal quality with remote bluetooth device, and main bluetooth circuit and auxiliary bluetooth circuit related to the network | |
JP6351889B1 (en) | Communication system and slave device | |
US10834768B2 (en) | Wireless apparats and wireless apparatus processing method to enhance time synchronization accuracy between a plurality of wireless apparatuses in a wireless network | |
US20140237523A1 (en) | Content synchronization system, content-synchronization control device, and content playback device | |
JP2013083451A (en) | Time control device, time control method, and program | |
CA3059564A1 (en) | Method and apparatus for synchronizing applications' consumption of remote data | |
JP6410286B2 (en) | Content synchronization system, content synchronization control device, and content reproduction device | |
JP5675703B2 (en) | Communication device, control device, and program | |
KR20100062786A (en) | Time synchronized system and time synchronization method in the next generation convergence network | |
JP2014165582A (en) | Time synchronization system, time synchronization method, slave node and computer program | |
JP2016225714A (en) | Signal transmission device for delay measurement, delay measuring system, signal transmission method for delay measurement, and program | |
JP6956354B2 (en) | Video signal output device, control method, and program | |
JP2012175567A (en) | Synchronization system, and synchronization method of synchronization system | |
JP2018063171A (en) | Electronic apparatus, display system, time synchronization method, and program | |
JP5653960B2 (en) | Server, data synchronization system | |
JP2013074338A (en) | Time server, terminal, time synchronization system, time synchronization method, and program | |
JP2013146006A (en) | Communication system, communication system control method, master device, maser device control method, master device control program, slave device, slave device control method, and slave device control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180308 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20181102 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190117 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190129 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190401 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20190924 |