[go: up one dir, main page]

JP7485648B2 - Communication device and communication system - Google Patents

Communication device and communication system Download PDF

Info

Publication number
JP7485648B2
JP7485648B2 JP2021209367A JP2021209367A JP7485648B2 JP 7485648 B2 JP7485648 B2 JP 7485648B2 JP 2021209367 A JP2021209367 A JP 2021209367A JP 2021209367 A JP2021209367 A JP 2021209367A JP 7485648 B2 JP7485648 B2 JP 7485648B2
Authority
JP
Japan
Prior art keywords
time
delay time
packet
communication device
time synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021209367A
Other languages
Japanese (ja)
Other versions
JP2023094100A (en
Inventor
舒 魏
光輝 任
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hirakawa Hewtech Corp
Original Assignee
Hirakawa Hewtech Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hirakawa Hewtech Corp filed Critical Hirakawa Hewtech Corp
Priority to JP2021209367A priority Critical patent/JP7485648B2/en
Publication of JP2023094100A publication Critical patent/JP2023094100A/en
Application granted granted Critical
Publication of JP7485648B2 publication Critical patent/JP7485648B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

本発明は、通信装置及び通信システムに関する。 The present invention relates to a communication device and a communication system.

近年、IP(Internet Protocol)技術を活用したIPネットワークでは、高精度時刻同期方式のPTP(Precision Time Protocol)が採用されている(例えば、特許文献1参照。)。 In recent years, IP (Internet Protocol) networks that utilize IP technology have adopted the Precision Time Protocol (PTP), a high-precision time synchronization method (see, for example, Patent Document 1).

特許文献1には、時刻同期装置間で伝送装置を経由して時刻同期用パケットを送受信し、その送受信の時刻情報をもとに時刻同期装置の時刻を同期する時刻伝送システムに用いられる伝送装置であって、自装置に入力された時刻同期用パケットが自装置から出力されるまでの装置内遅延時間を測定する遅延計算部と、遅延計算部により測定された装置内遅延時間を時刻同期用パケットに後続するパケットに付与し、その付与したパケットを時刻同期用パケットの出力先に出力する遅延情報書込部と、を有する伝送装置が開示されている。 Patent document 1 discloses a transmission device used in a time transmission system that transmits and receives time synchronization packets between time synchronization devices via a transmission device and synchronizes the time of the time synchronization devices based on the time information of the transmission and reception, the transmission device having a delay calculation unit that measures the delay time within the device until the time synchronization packet input to the device is output from the device, and a delay information writing unit that imparts the delay time within the device measured by the delay calculation unit to a packet following the time synchronization packet and outputs the packet with the delay time to the output destination of the time synchronization packet.

特開2020-91135号公報JP 2020-91135 A

通信装置がマスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する場合、通信装置の装置内の遅延がマスタ装置と通信装置との間の時刻同期に影響を与え、ひいては通信装置とスレーブ装置との間の時刻同期に影響を与えるという問題がある。また、スレーブ装置間で送受信されるパケットを通信装置で中継するとともに、マスタ装置から送信される時刻同期用のパケットに基づいてスレーブ装置間で時刻同期を行う場合、通信装置と外部装置との間の通信路のパケットの伝送負荷が変動することによって通信装置の装置内遅延時間も変動し、スレーブ装置間における同期精度の低下やばらつきが大きくなるという問題がある。 When a communication device transmits and receives time synchronization packets between a master device and multiple slave devices, there is a problem in that delays within the communication device affect the time synchronization between the master device and the communication device, and ultimately affect the time synchronization between the communication device and the slave devices. In addition, when packets transmitted and received between slave devices are relayed by the communication device, and time synchronization is performed between the slave devices based on time synchronization packets transmitted from the master device, fluctuations in the packet transmission load on the communication path between the communication device and an external device cause fluctuations in the delay time within the communication device, resulting in a decrease in synchronization accuracy and large variation between the slave devices.

本発明の目的は、装置内遅延時間を考慮しない場合と比較して、時刻同期精度の向上を図ることができる通信装置及び通信システムを提供することにある。 The object of the present invention is to provide a communication device and a communication system that can improve the accuracy of time synchronization compared to a case where delay time within the device is not taken into account.

[1]マスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する通信装置であって、
前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する時刻同期処理部と、
前記通信装置が前記マスタ装置から送信された前記時刻同期用のパケットを受信してから前記時刻同期処理部に出力するまでの経路長に応じた第1の装置内遅延時間、及前記時刻同期処理部から前記複数のスレーブ装置に出力するまでのそれぞれの経路長に応じた第2の装置内遅延時間を出力先ごとに測定して遅延時間テーブルに記録する遅延時間測定部と、
前記時刻同期用のパケットの出力先に対応する前記第2の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第2の装置内遅延時間を含む特定の時刻同期用のパケットを生成する特定パケット生成部と、
前記時刻同期処理部により補正された前記通信装置の時刻を基準に、生成された前記特定の時刻同期用のパケットを前記出力先の前記スレーブ装置に送信するパケット送信部と、を備え、
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、通信装置。
[2]前記通信装置は、さらに前記複数のスレーブ装置間で送受信するパケットを中継するものであり、
前記パケット送信部は、前記時刻同期用のパケットを他のパケットよりも優先的に送信する、前記[1]に記載の通信装置。
[3]前記遅延時間測定部は、前記第1の装置内遅延時間及び前記第2の装置内遅延時間を定期的に測定して前記遅延時間テーブルに記録し、
前記特定パケット生成部は、前記第2の装置内遅延時間を前記遅延時間テーブルから定期的に読み出し、読み出した前記第2の装置内遅延時間を含む前記特定の時刻同期用のパケットを生成し、
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから定期的に読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、前記[1]に記載の通信装置。
[4]前記スレーブ装置と前記マスタ装置との時刻の差である時刻同期精度が200ns以下である、前記[3]に記載の通信装置。
]マスタ装置と、複数のスレーブ装置と、マスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する通信装置と、を備えた通信システムであって、
前記通信装置は、前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する時刻同期処理部と、前記通信装置が前記マスタ装置から送信された前記時刻同期用のパケットを受信してから前記時刻同期処理部に出力するまでの経路長に応じた第1の装置内遅延時間、及前記時刻同期処理部から前記複数のスレーブ装置に出力するまでのそれぞれの経路長に応じた第2の装置内遅延時間を出力先ごとに測定して遅延時間テーブルに記録する遅延時間測定部と、前記時刻同期用のパケットの出力先に対応する前記第2の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第2の装置内遅延時間を含む特定の時刻同期用のパケットを生成する特定パケット生成部と、前記時刻同期処理部により補正された前記通信装置の時刻を基準に、生成された前記特定の時刻同期用のパケットを前記出力先の前記スレーブ装置に送信するパケット送信部と、を備え、
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、通信システム。
[1] A communication device that transmits and receives packets for time synchronization between a master device and a plurality of slave devices,
a time synchronization processing unit that corrects the time of the communication device so as to synchronize with the time of the master device;
a delay time measurement unit that measures a first in-device delay time corresponding to a path length from when the communication device receives the time synchronization packet transmitted from the master device to when the communication device outputs the packet to the time synchronization processing unit, and a second in-device delay time corresponding to each path length from the time synchronization processing unit to when the communication device outputs the packet to the plurality of slave devices, for each output destination, and records the measured delay time in a delay time table ;
a specific packet generating unit that reads out the second internal delay time corresponding to an output destination of the packet for time synchronization from the delay time table, and generates a specific packet for time synchronization including the read out second internal delay time;
a packet transmission unit that transmits the generated specific time synchronization packet to the slave device as the output destination, based on the time of the communication device corrected by the time synchronization processing unit;
The time synchronization processing unit reads the first in-device delay time from the delay time table, and corrects the time of the communication device to be synchronized with the time of the master device, taking into account the first in-device delay time read .
[2] The communication device further relays packets transmitted and received between the plurality of slave devices,
The communication device according to [1], wherein the packet transmission unit transmits the time synchronization packet with priority over other packets.
[3] The delay time measurement unit periodically measures the first in-device delay time and the second in-device delay time and records them in the delay time table;
the specific packet generation unit periodically reads out the second internal device delay time from the delay time table, and generates the specific time synchronization packet including the read out second internal device delay time;
The communication device according to [1], wherein the time synchronization processing unit periodically reads out the first in-device delay time from the delay time table, and corrects the time of the communication device to be synchronized with the time of the master device, taking into account the read out first in-device delay time.
[4] The communication device according to [3], wherein the time synchronization accuracy, which is the difference in time between the slave device and the master device, is 200 ns or less.
[ 5 ] A communication system including a master device, a plurality of slave devices, and a communication device that transmits and receives packets for time synchronization between the master device and the plurality of slave devices,
the communication device comprises: a time synchronization processing unit that corrects the time of the communication device to be synchronized with the time of the master device; a delay time measurement unit that measures, for each output destination, a first in-device delay time corresponding to a path length from when the communication device receives the time synchronization packet transmitted from the master device to when it outputs the packet to the time synchronization processing unit, and a second in-device delay time corresponding to each path length from the time synchronization processing unit to when it outputs the packet to the plurality of slave devices, and records the measured delay time in a delay time table ; a specific packet generation unit that reads out the second in-device delay time corresponding to an output destination of the time synchronization packet from the delay time table, and generates a specific time synchronization packet including the read out second in-device delay time; and a packet transmission unit that transmits the generated specific time synchronization packet to the slave device of the output destination, based on the time of the communication device corrected by the time synchronization processing unit;
The time synchronization processing unit reads the first in-device delay time from the delay time table, and corrects the time of the communication device to be synchronized with the time of the master device, taking into account the first in-device delay time read .

請求項1、3-5に係る発明によれば、装置内遅延時間を考慮しない場合と比較して、時刻同期精度の向上を図ることができる。
請求項2に係る発明によれば、通信装置と外部装置との間の通信路のパケットの伝送負荷が変動しても、スレーブ装置間における同期精度の低下やばらつきを抑制することができる。
According to the invention as set forth in claims 1, 3 to 5 , it is possible to improve the accuracy of time synchronization compared to a case in which delay times within an apparatus are not taken into consideration.
According to the second aspect of the present invention, even if the packet transmission load on the communication path between the communication device and the external device fluctuates, it is possible to suppress deterioration and variation in synchronization accuracy between slave devices.

図1は、本発明の実施の形態に係る通信システムの一例を示すブロック図である。FIG. 1 is a block diagram showing an example of a communication system according to an embodiment of the present invention. 図2は、送受信処理部の構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of the configuration of the transmission/reception processing unit. 図3は、遅延時間テーブルの一例を示す図である。FIG. 3 is a diagram illustrating an example of the delay time table. 図4は、PTPパケットのフォーマットの一例を示す図である。FIG. 4 is a diagram showing an example of a PTP packet format. 図5は、装置間のパケットの流れの一例を示すシーケンス図である。FIG. 5 is a sequence diagram showing an example of a packet flow between devices. 図6は、通信装置内におけるパケットの流れの一例を示すシーケンス図である。FIG. 6 is a sequence diagram showing an example of a packet flow within a communication device.

以下、本発明の実施の形態について図面を参照して説明する。なお、各図中、実質的に同一の機能を有する構成要素については、同一の符号を付してその重複した説明を省略する。 The following describes an embodiment of the present invention with reference to the drawings. In each drawing, components having substantially the same functions are given the same reference numerals and their repeated explanations are omitted.

[実施の形態の要約]
本実施の形態に係る通信装置は、マスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する通信装置であって、通信装置の時刻をマスタ装置の時刻に同期するように補正する時刻同期処理部と、通信装置がマスタ装置から送信された時刻同期用のパケットを受信してから時刻同期処理部に出力するまでの第1の装置内遅延時間、及時刻同期処理部から複数のスレーブ装置に出力するまでの第2の装置内遅延時間を出力先ごとに測定する遅延時間測定部と、時刻同期用のパケットの出力先に対応する第2の装置内遅延時間を含む特定の時刻同期用のパケットを生成する特定パケット生成部と、時刻同期処理部により補正された通信装置の時刻を基準に、生成された特定の時刻同期用のパケットを出力先のスレーブ装置に送信するパケット送信部と、を備え、時刻同期処理部は、第1の装置内遅延時間を考慮して通信装置の時刻をマスタ装置の時刻に同期するように補正する。
Summary of the embodiment
A communication device according to this embodiment is a communication device that transmits and receives time synchronization packets between a master device and a plurality of slave devices, and includes a time synchronization processing unit that corrects the time of the communication device to be synchronized with the time of the master device, a delay time measurement unit that measures, for each output destination, a first in-device delay time from when the communication device receives a time synchronization packet transmitted from the master device to when it outputs the packet to the time synchronization processing unit, and a second in-device delay time from when the time synchronization processing unit outputs the packet to the plurality of slave devices, a specific packet generation unit that generates a specific time synchronization packet including the second in-device delay time corresponding to the output destination of the time synchronization packet, and a packet transmission unit that transmits the generated specific time synchronization packet to the output destination slave device based on the time of the communication device corrected by the time synchronization processing unit, and the time synchronization processing unit corrects the time of the communication device to be synchronized with the time of the master device, taking into account the first in-device delay time.

マスタ装置は、時刻源となる基準時刻情報の一例としてのグランドマスタークロック(以下、GMクロックという。)として動作するグランドマスタ装置だけでなく、グランドマスタ装置の機能を有するとともに映像、音声等のパケットを送信するサーバ装置でもよい。時刻同期用のパケットは、時刻同期のために使用されるパケットをいい、例えば、PTP(Precision Time Protocol)が採用されたシステムに適用されるが、PTPに限定されない。通信装置としては、例えば、L2スイッチ、L3スイッチ等のスイッチングハブ、ルータ、ゲートウェイ、IEEE1588のBC(Boundary Clock)、光スイッチ等を用いることができる。通信装置は、時刻同期用のパケットのみを送受信するものでもよく、時刻同期用のパケットを送受信するとともに、複数のスレース装置間で送受信するパケットを中継するものでもよい。 The master device may be not only a grandmaster device that operates as a grandmaster clock (hereinafter referred to as GM clock) as an example of reference time information that serves as a time source, but also a server device that has the function of a grandmaster device and transmits packets of video, audio, etc. The time synchronization packet refers to a packet used for time synchronization, and is applied to a system that employs, for example, PTP (Precision Time Protocol), but is not limited to PTP. The communication device may be, for example, a switching hub such as an L2 switch or an L3 switch, a router, a gateway, an IEEE 1588 BC (Boundary Clock), an optical switch, etc. The communication device may be one that transmits and receives only packets for time synchronization, or one that transmits and receives packets for time synchronization and relays packets transmitted and received between multiple race devices.

[実施の形態]
図1は、本発明の実施の形態に係る通信システムの一例を示すブロック図である。この通信システム1は、グランドマスタ装置2と、通信装置3と、複数のスレーブ装置4A、4B(これらを総称するときは、以下「スレーブ装置4」という。)とを備える。これらのグランドマスタ装置2、通信装置3及び複数のスレーブ装置4は、イーサネット(登録商標)等のIPネットワークにより通信可能に接続されている。ここで、グランドマスタ装置2は、マスタ装置の一例である。グランドマスタ装置2及びスレーブ装置4は、外部装置の一例である。IPネットワークは、通信路の一例である。
[Embodiment]
1 is a block diagram showing an example of a communication system according to an embodiment of the present invention. This communication system 1 includes a grandmaster device 2, a communication device 3, and a plurality of slave devices 4A, 4B (hereinafter, collectively referred to as "slave devices 4"). The grandmaster device 2, communication device 3, and the plurality of slave devices 4 are communicatively connected by an IP network such as Ethernet (registered trademark). Here, the grandmaster device 2 is an example of a master device. The grandmaster device 2 and the slave devices 4 are examples of external devices. The IP network is an example of a communication path.

なお、同図では、通信装置3に接続されたスレーブ装置4を2つとしたが、3つ以上でもよい。また、同図では、複数のスレーブ装置4を1つの通信装置3を介してグランドマスタ装置2に接続したが、複数のスレーブ装置4を複数の通信装置3を介してグランドマスタ装置2に接続した構成としてもよい。 In the figure, two slave devices 4 are connected to the communication device 3, but three or more may be connected. Also, in the figure, multiple slave devices 4 are connected to the grandmaster device 2 via one communication device 3, but multiple slave devices 4 may be connected to the grandmaster device 2 via multiple communication devices 3.

グランドマスタ装置2は、IPネットワーク全体の時刻源となる基準時刻情報の一例としてのGMクロックを含むPTPパケットを定期的に生成し、通信装置3との間でPTPパケットを送受信する。ここで、PTPパケットは、時刻同期用のパケットの一例である。 The grandmaster device 2 periodically generates PTP packets that include the GM clock as an example of reference time information that serves as the time source for the entire IP network, and transmits and receives the PTP packets to and from the communication device 3. Here, the PTP packets are an example of packets for time synchronization.

通信装置3は、グランドマスタ装置2のGMクロックに対してPTPの時刻同期で動作するバウンダリークロック(Boundary Clock)デバイスとして機能する。通信装置3は、例えば、PTPに準拠したL2スイッチを用いる。 The communication device 3 functions as a boundary clock device that operates in PTP time synchronization with the GM clock of the grandmaster device 2. The communication device 3 uses, for example, an L2 switch that complies with PTP.

スレーブ装置4は、GMクロックに対してPTPの時刻同期で動作するオーディナリークロック(Ordinary Clock)デバイスとして機能する。スレーブ装置4Aは、時刻同期処理を行う時刻同期処理部41aと、計時部42aを備える。スレーブ装置4Bも同様に時刻同期処理部41bと、計時部42bを備える。計時部42a、42bは、図示しないクロック源(例えば、発信器、振動子等)からのクロック信号を計時してスレーブ装置4A、4Bの時刻を出力する。 The slave device 4 functions as an ordinary clock device that operates in PTP time synchronization with the GM clock. The slave device 4A has a time synchronization processing unit 41a that performs time synchronization processing, and a clock unit 42a. Similarly, the slave device 4B has a time synchronization processing unit 41b and a clock unit 42b. The clock units 42a and 42b clock a clock signal from a clock source (not shown, for example, an oscillator, an oscillator, etc.) and output the time of the slave devices 4A and 4B.

(通信装置の構成)
通信装置3は、送受信処理部30と、時刻同期処理部31と、計時部32とを備える。
(Configuration of communication device)
The communication device 3 includes a transmission/reception processing unit 30 , a time synchronization processing unit 31 , and a clock unit 32 .

送受信処理部30は、グランドマスタ装置2用のポートS30aと、スレーブ装置4A、4B用のポートM30a、M30bと、時刻同期処理部31用のポートC30a、C30bとを備える。ポートS30aとポートC30aとは、第1の伝送路Raによって接続され、ポートC30bとポートM30aとは、第2の伝送路Rbによって接続され、ポートC30bとポートM30bとは、第3の伝送路Rcによって接続されている。なお、図1における各伝送路Ra、Rb、Rcは、実際の経路を示すものではなく、概念的に示すものである。 The transmission/reception processing unit 30 has a port S30a for the grandmaster device 2, ports M30a and M30b for the slave devices 4A and 4B, and ports C30a and C30b for the time synchronization processing unit 31. Port S30a and port C30a are connected by a first transmission path Ra, port C30b and port M30a are connected by a second transmission path Rb, and port C30b and port M30b are connected by a third transmission path Rc. Note that the transmission paths Ra, Rb, and Rc in FIG. 1 are not shown as actual routes but are shown conceptually.

時刻同期処理部31は、ポートC31a、C31bを備え、グランドマスタ装置2との間でPTPパケットを送受信することにより、IPネットワークの通信路における後述する式(1)により算出して求めたオフセット時間Toff及び第1の伝送路Raによる遅延時間に基づいて、通信装置3の時刻をグランドマスタ装置2の時刻に同期するように補正する時刻同期処理を定期的(例えば、8回/秒)に行う。時刻同期処理部31が2つのポートC31a、C31bを備えることにより、グランドマスタ装置2に関する処理とスレーブ装置4に関する処理とを並行して行うことができる。なお、ポートC30bをスレーブ装置4A用のポートと、スレーブ装置4B用のポートの2つにしてもよい。 The time synchronization processing unit 31 has ports C31a and C31b, and transmits and receives PTP packets to and from the grandmaster device 2, and periodically (e.g., 8 times per second) performs time synchronization processing to correct the time of the communication device 3 to be synchronized with the time of the grandmaster device 2 based on the offset time Toff calculated by the formula (1) described later in the communication path of the IP network and the delay time due to the first transmission path Ra. By providing the two ports C31a and C31b, the time synchronization processing unit 31 can perform processing related to the grandmaster device 2 and processing related to the slave device 4 in parallel. Note that port C30b may be divided into two ports, one for slave device 4A and the other for slave device 4B.

計時部32は、図示しないクロック源(例えば、発信器、振動子等)からのクロック信号を計時して通信装置3の時刻を出力する。 The clock unit 32 measures a clock signal from a clock source (e.g., an oscillator, an oscillator, etc.) not shown in the figure and outputs the time of the communication device 3.

図2は、送受信処理部30の構成の一例を示すブロック図である。送受信処理部30は、遅延時間測定部301と、特定パケット生成部302と、パケットを送受信するパケット送受信部303と、RAM(Random Access Memory)等で構成され、遅延時間テーブル304a(図3参照)を記憶する遅延時間メモリ304と、パケットを記憶するパケットメモリ305とを備える。ここで、パケット送受信部303は、パケット送信部の一例である。 Figure 2 is a block diagram showing an example of the configuration of the transmission/reception processing unit 30. The transmission/reception processing unit 30 includes a delay time measurement unit 301, a specific packet generation unit 302, a packet transmission/reception unit 303 that transmits and receives packets, a delay time memory 304 that is composed of a RAM (Random Access Memory) or the like and stores a delay time table 304a (see Figure 3), and a packet memory 305 that stores packets. Here, the packet transmission/reception unit 303 is an example of a packet transmission unit.

遅延時間測定部301、特定パケット生成部302及びパケット送受信部303は、FPGA:Field Programmable Gate Array)、ASIC:Application Specific Integrated Circuit)等のハードウェアによって構成してもよい。また、これらの各部301~303の各機能は、プログラムをROM(Read Only Memory)等のメモリに記憶し、そのプログラムをRAM(Random Access Memory)に読み出してCPU(Central Processing Unit)が実行することにより実現してもよい。 The delay time measurement unit 301, the specific packet generation unit 302, and the packet transmission/reception unit 303 may be configured with hardware such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit). In addition, the functions of each of these units 301 to 303 may be realized by storing a program in a memory such as a ROM (Read Only Memory), reading the program into a RAM (Random Access Memory), and executing it with a CPU (Central Processing Unit).

遅延時間測定部301は、装置内遅延時間の一例として各伝送路Ra、Rb、Rcにおける遅延時間を定期的(例えば、8回/秒)に測定する。なお、装置内遅延時間に待機時間や処理時間等を含めてもよい。 The delay time measurement unit 301 periodically (e.g., 8 times/second) measures the delay time in each transmission path Ra, Rb, and Rc as an example of the delay time within the device. Note that the delay time within the device may also include waiting time, processing time, etc.

特定パケット生成部302は、装置内遅延時間を記録したPTPパケット(以下、「特定のPTPパケット」という。)を生成し、時刻同期処理部31に送信する。特定のPTPパケットの詳細については後述する。ここで、特定のPTPパケットは、特定の時刻同期用のパケットの一例である。 The specific packet generating unit 302 generates a PTP packet that records the delay time within the device (hereinafter referred to as a "specific PTP packet") and transmits it to the time synchronization processing unit 31. Details of the specific PTP packet will be described later. Here, the specific PTP packet is an example of a packet for specific time synchronization.

パケット送受信部303は、グランドマスタ装置2又はスレーブ装置4から送信されたパケットの種類を、後述するイーサヘッダ110(図4参照)に記録されたパケットタイプを基に判断し、PTPパケットを他のパケットよりも優先的に送受信する。 The packet transmission/reception unit 303 determines the type of packet sent from the grandmaster device 2 or the slave device 4 based on the packet type recorded in the Ether header 110 (see FIG. 4) described below, and transmits and receives PTP packets with priority over other packets.

また、パケット送受信部303は、パケットのイーサヘッダ110から送信先アドレスを取得し、当該パケットをポートS30a、M30a、M30bから送信先アドレスに対応するグランドマスタ装置2、スレーブ装置4A、4BのポートM2a,S4a、S4bに送信する。 The packet transceiver 303 also obtains the destination address from the packet's Ethernet header 110, and transmits the packet from ports S30a, M30a, and M30b to ports M2a, S4a, and S4b of the grandmaster device 2 and slave devices 4A and 4B that correspond to the destination address.

さらに、パケット送受信部303は、グランドマスタ装置2又はスレーブ装置4から送信されたPTPパケットを受信した時刻、及びグランドマスタ装置2又はスレーブ装置4にPTPパケットを送信した時刻を計時部32から取得し、時刻同期処理部31に通知する。 Furthermore, the packet transmission/reception unit 303 obtains from the timing unit 32 the time when the PTP packet transmitted from the grandmaster device 2 or the slave device 4 was received, and the time when the PTP packet was transmitted to the grandmaster device 2 or the slave device 4, and notifies the time synchronization processing unit 31.

パケットメモリ305は、PTPパケットだけでなく、PTPパケット以外のパケットも記憶する。パケットメモリ305に対するパケットの記憶及び取り出しは、パケット送受信部303により行われる。 The packet memory 305 stores not only PTP packets but also packets other than PTP packets. Storing and retrieving packets in the packet memory 305 is performed by the packet transmission/reception unit 303.

図3は、遅延時間テーブル304aの一例を示す図である。遅延時間テーブル304aは、「ポート番号」、「遅延時間」の各項目を有する。「ポート番号」には、ポートS30a、M30a、M30bにそれぞれ付与されたポート番号の001、002、003が記録されている。遅延時間測定部301は、各伝送路Ra、Rb、Rcにおける遅延時間を定期的に測定し、図3に示すように、測定結果を外部装置用のポートS30a、M30a、M30bの識別情報(例えば、ポート番号)に対応付けて遅延時間テーブル304aに記録する。なお、図3では、遅延時間をDta、Dtb、Dtcで表しているが、実際は測定値が記録される。ここで、遅延時間Dtaは、第1の装置内遅延時間の一例であり、遅延時間Dtb、Dtcは、第2の装置内遅延時間の一例である。 Figure 3 is a diagram showing an example of the delay time table 304a. The delay time table 304a has the items of "port number" and "delay time". In the "port number" field, port numbers 001, 002, and 003, which are assigned to ports S30a, M30a, and M30b, respectively, are recorded. The delay time measurement unit 301 periodically measures the delay time in each transmission path Ra, Rb, and Rc, and records the measurement results in the delay time table 304a in association with the identification information (e.g., port number) of the ports S30a, M30a, and M30b for external devices, as shown in Figure 3. Note that in Figure 3, the delay times are represented by Dta, Dtb, and Dtc, but in reality, measured values are recorded. Here, the delay time Dta is an example of a first device delay time, and the delay times Dtb and Dtc are examples of a second device delay time.

図4は、特定のPTPパケットのフォーマットの一例を示す図である。特定のPTPパケット100a~100c(201、202a、202b、203a、203b、204a、204b)は、イーサヘッダ110、PTPヘッダ120、時刻情報格納部130を有する。イーサヘッダ110には、送信先を示す送信先アドレス(例えば、MACアドレス)、送信元を示す送信元アドレス(例えば、MACアドレス)、パケットがPTPパケットかそれ以外のパケットかを示すパケットタイプ等が記録される。PTPヘッダ120は、メッセージの種類に対応した識別情報が記録されるメッセージタイプ121、装置内遅延時間等の時刻を補正するための情報が記録されるコレクションフィールド(Correction Field)122を含む。時刻情報格納部130には、PTPパケットの送信時刻、受信時刻等が記録される。図4では、遅延時間をDta、Dtb、Dtcで表しているが、実際は測定値が記録される。 Figure 4 is a diagram showing an example of the format of a specific PTP packet. Specific PTP packets 100a to 100c (201, 202a, 202b, 203a, 203b, 204a, 204b) have an Ether header 110, a PTP header 120, and a time information storage section 130. The Ether header 110 records a destination address (e.g., MAC address) indicating the destination, a source address (e.g., MAC address) indicating the source, and a packet type indicating whether the packet is a PTP packet or a different packet. The PTP header 120 includes a message type 121 in which identification information corresponding to the type of message is recorded, and a correction field 122 in which information for correcting time such as an internal device delay time is recorded. The time information storage section 130 records the transmission time, reception time, etc. of the PTP packet. In Figure 4, the delay times are represented by Dta, Dtb, and Dtc, but in reality, measured values are recorded.

特定パケット生成部302は、ポート番号001、002、003に対応する遅延時間を遅延時間テーブル304aから読み出し、読み出した遅延時間をコレクションフィールド122に記録した特定のPTPパケット100a~100c等を生成し、時刻同期処理部31に送信する。 The specific packet generation unit 302 reads the delay times corresponding to port numbers 001, 002, and 003 from the delay time table 304a, generates specific PTP packets 100a to 100c, etc., in which the read delay times are recorded in the collection field 122, and transmits them to the time synchronization processing unit 31.

(本実施の形態の動作)
次に、本実施の形態に係る通信システム1の動作の一例を、図5及び図6を参照して説明する。図5は、装置2、3、4間のパケットの流れの一例を示すシーケンス図である。図6は、通信装置3内におけるパケットの流れの一例を示すシーケンス図である。
(Operation of this embodiment)
Next, an example of the operation of the communication system 1 according to the present embodiment will be described with reference to Fig. 5 and Fig. 6. Fig. 5 is a sequence diagram showing an example of the flow of packets between the devices 2, 3, and 4. Fig. 6 is a sequence diagram showing an example of the flow of packets within the communication device 3.

(1)グランドマスタ装置2と通信装置3との間の時刻同期処理
特定パケット生成部302は、ポート番号001に対応する遅延時間Dtaを遅延時間テーブル304aから読み出し、読み出した遅延時間Dtaをコレクションフィールド(Correction Field)122に記録した特定のPTPパケット100aを生成する。特定パケット生成部302は、図6に示すように、特定のPTPパケット100aを時刻同期処理部31に送信する。
(1) Time synchronization processing between the grandmaster device 2 and the communication device 3 The specific packet generation unit 302 reads out the delay time Dta corresponding to the port number 001 from the delay time table 304a, and generates a specific PTP packet 100a in which the read out delay time Dta is recorded in the correction field 122. The specific packet generation unit 302 transmits the specific PTP packet 100a to the time synchronization processing unit 31, as shown in FIG.

グランドマスタ装置2は、図5(a)に示すように、ポートM2aからSyncメッセージを含むPTPパケット101を通信装置3のポートS30aに送信する。通信装置3のパケット送受信部303は、グランドマスタ装置2から送信されたSyncメッセージを含むPTPパケット101を受信し、その受信した時刻t2を計時部32から取得し、時刻同期処理部31に通知する。時刻同期処理部31は、通知された時刻t2を記録する。 As shown in FIG. 5(a), the grandmaster device 2 transmits a PTP packet 101 including a Sync message from port M2a to port S30a of the communication device 3. The packet transmitter/receiver 303 of the communication device 3 receives the PTP packet 101 including the Sync message transmitted from the grandmaster device 2, obtains the received time t2 from the clock unit 32, and notifies the time synchronization processing unit 31. The time synchronization processing unit 31 records the notified time t2.

グランドマスタ装置2は、図5(a)に示すように、Syncメッセージを含むPTPパケット101を送信した時刻t1を記録した、Follow-upメッセージを含むPTPパケット102を通信装置3のポートS30aに送信する。 As shown in FIG. 5(a), the grandmaster device 2 transmits a PTP packet 102 including a Follow-up message, which records the time t1 at which the PTP packet 101 including the Sync message was transmitted, to port S30a of the communication device 3.

通信装置3のパケット送受信部303は、図5(a)に示すように、グランドマスタ装置2から送信されたPTPパケット102を受信する。当該PTPパケット102は、図6に示すように、パケットメモリ305に保持された後、パケット送受信部303により時刻同期処理部31に送信される。時刻同期処理部31は、当該PTPパケット102から時刻t1を取得し、記録する。ここで、Syncメッセージを含むPTPパケット101及びFollow-upメッセージを含むPTPパケット102は、時刻同期用のパケットの一例である。 As shown in FIG. 5(a), the packet transmitter/receiver 303 of the communication device 3 receives the PTP packet 102 transmitted from the grandmaster device 2. As shown in FIG. 6, the PTP packet 102 is stored in the packet memory 305 and then transmitted to the time synchronization processing unit 31 by the packet transmitter/receiver 303. The time synchronization processing unit 31 obtains and records the time t1 from the PTP packet 102. Here, the PTP packet 101 including the Sync message and the PTP packet 102 including the Follow-up message are examples of packets for time synchronization.

次に、時刻同期処理部31は、図6に示すように、特定パケット生成部302から送信された特定のPTPパケット100aからDelay_Requestメッセージを含む特定のPTPパケット201を生成して送受信処理部30に送信する。当該特定のPTPパケット201は、パケットメモリ305に保持された後、図5(a)に示すように、パケット送受信部303によりポートS30aからグランドマスタ装置2のポートM2aに送信される。 Next, as shown in FIG. 6, the time synchronization processing unit 31 generates a specific PTP packet 201 including a Delay_Request message from the specific PTP packet 100a transmitted from the specific packet generating unit 302, and transmits the generated packet to the transmission/reception processing unit 30. The specific PTP packet 201 is stored in the packet memory 305, and then transmitted by the packet transmission/reception unit 303 from port S30a to port M2a of the grandmaster device 2, as shown in FIG. 5(a).

パケット送受信部303は、当該特定のPTPパケット201を送信した時刻t3を計時部32から取得し、時刻同期処理部31に通知する。時刻同期処理部31は、通知された時刻t3を記録する。 The packet transmission/reception unit 303 obtains the time t3 at which the specific PTP packet 201 was transmitted from the clock unit 32 and notifies the time synchronization processing unit 31. The time synchronization processing unit 31 records the notified time t3.

次に、グランドマスタ装置2は、図5(a)に示すように、Delay_Requestメッセージを含む特定のPTPパケット201を受信した時刻t4を記録した、Delay_Resposeメッセージを含むPTPパケット103を通信装置3のポートS30aに送信する。 Next, as shown in FIG. 5(a), the grandmaster device 2 transmits a PTP packet 103 including a Delay_Respose message, which records the time t4 at which the specific PTP packet 201 including the Delay_Request message was received, to port S30a of the communication device 3.

次に、当該PTPパケット103は、図6に示すように、パケットメモリ305に保持された後、パケット送受信部303により時刻同期処理部31に送信される。時刻同期処理部31は、当該PTPパケット103から時刻t4を取得し、記録する。 The PTP packet 103 is then stored in the packet memory 305 as shown in FIG. 6, and is then transmitted to the time synchronization processing unit 31 by the packet transmission/reception unit 303. The time synchronization processing unit 31 obtains and records the time t4 from the PTP packet 103.

そして時刻同期処理部31は、次の式(1)によりオフセット時間Toffを算出する。
Toff=(Dms+Dsm)/2
={(t2-t1)+(t4-t3)}/2 ・・・(1)
Then, the time synchronization processing unit 31 calculates the offset time Toff by the following equation (1).
Toff=(Dms+Dsm)/2
= {(t2-t1) + (t4-t3)} / 2 ... (1)

続いて時刻同期処理部31は、特定のPTPパケット100aのコレクションフィールド122から遅延時間Dtaを取得し、オフセット時間Toff及び遅延時間Dtaに基づいて、通信装置3の時刻がグランドマスタ装置2の時刻に同期するように計時部32を補正する時刻同期処理を行う。 Then, the time synchronization processing unit 31 acquires the delay time Dta from the collection field 122 of the specific PTP packet 100a, and performs time synchronization processing to correct the clock unit 32 based on the offset time Toff and the delay time Dta so that the time of the communication device 3 is synchronized with the time of the grandmaster device 2.

(2)通信装置3とスレーブ装置4A、4Bとの間の時刻同期処理
ここでは、通信装置3がマスタ装置として動作する。
(2) Time Synchronization Processing Between the Communication Device 3 and the Slave Devices 4A and 4B Here, the communication device 3 operates as the master device.

特定パケット生成部302は、ポート番号002、003に対応する遅延時間Dtb、Dtcを遅延時間テーブル304aから読み出し、遅延時間Dtbをコレクションフィールド122に記録した特定のPTPパケット100bを生成し、遅延時間Dtcをコレクションフィールド122に記録した特定のPTPパケット100cを生成する。特定パケット生成部302は、図6に示すように、特定のPTPパケット100b、100cを時刻同期処理部31に送信する。 The specific packet generation unit 302 reads the delay times Dtb and Dtc corresponding to port numbers 002 and 003 from the delay time table 304a, generates a specific PTP packet 100b in which the delay time Dtb is recorded in the collection field 122, and generates a specific PTP packet 100c in which the delay time Dtc is recorded in the collection field 122. The specific packet generation unit 302 transmits the specific PTP packets 100b and 100c to the time synchronization processing unit 31, as shown in FIG. 6.

時刻同期処理部31は、図6に示すように、特定パケット生成部302から送信された特定のPTPパケット100b、100cからSyncメッセージを含む特定のPTPパケット202a、202bを生成する。 As shown in FIG. 6, the time synchronization processing unit 31 generates specific PTP packets 202a and 202b including a Sync message from specific PTP packets 100b and 100c sent from the specific packet generating unit 302.

当該特定のPTPパケット202a、202bは、図5(b)に示すように、パケットメモリ305に保持された後、パケット送受信部303によりポートM30aからスレーブ装置4A、4BのポートS4a、S4bに送信される。 The specific PTP packets 202a and 202b are stored in the packet memory 305 as shown in FIG. 5(b), and are then transmitted by the packet transmitter/receiver 303 from port M30a to ports S4a and S4b of the slave devices 4A and 4B.

スレーブ装置4A、4Bの時刻同期処理部41a、41bは、Syncメッセージを含む特定のPTPパケット202a、202bを受信した時刻t6、t6’を記録する。 The time synchronization processing units 41a and 41b of the slave devices 4A and 4B record the times t6 and t6' at which they received specific PTP packets 202a and 202b containing the Sync message.

次に、時刻同期処理部31は、図6に示すように、特定のPTPパケット202a、202bから、Syncメッセージを含む特定のPTPパケット202a、202bを送信した時刻t5を記録した、Follow-upメッセージを含む特定のPTPパケット203a、203bを生成して送受信処理部30に送信する。 Next, as shown in FIG. 6, the time synchronization processing unit 31 generates specific PTP packets 203a and 203b including a Follow-up message from the specific PTP packets 202a and 202b, recording the time t5 at which the specific PTP packets 202a and 202b including the Sync message were transmitted, and transmits the generated packets to the transmission/reception processing unit 30.

当該特定のPTPパケット203a、203bは、図5(b)に示すように、パケットメモリ305に保持された後、パケット送受信部303によりポートM30a、M30bからスレーブ装置4A、4BのポートS4a、S4bに送信される。スレーブ装置4A、4Bの時刻同期処理部41a、41bは、時刻t5を記録する。ここで、通信装置3は、バウンダリークロックデバイスとして機能するものであるので、通信装置3が記録した時刻t5は、グランドマスタ装置2の時刻に同期した時刻である。 The specific PTP packets 203a, 203b are stored in the packet memory 305 as shown in FIG. 5(b), and then transmitted by the packet transmitter/receiver 303 from ports M30a, M30b to ports S4a, S4b of the slave devices 4A, 4B. The time synchronization processors 41a, 41b of the slave devices 4A, 4B record the time t5. Here, since the communication device 3 functions as a boundary clock device, the time t5 recorded by the communication device 3 is a time synchronized with the time of the grandmaster device 2.

次に、スレーブ装置4A、4Bは、図5(b)に示すように、ポートS4a、S4bからDelay_Requestメッセージを含む特定のPTPパケット401a、401bを通信装置3のポートM30aに送信する。 Next, as shown in FIG. 5(b), the slave devices 4A and 4B transmit specific PTP packets 401a and 401b including a Delay_Request message from ports S4a and S4b to port M30a of the communication device 3.

スレーブ装置4A、4Bの時刻同期処理部41a、41bは、Delay_Requestメッセージを含む特定のPTPパケット401a、401bを送信した時刻t7、t7’を記録する。通信装置3は、図5(b)に示すように、当該PTPパケット401a、401bを受信した時刻t8、t8’を記録した、Delay_Resposeメッセージを含む特定のPTPパケット204a、204bをスレーブ装置4A、4BのポートS4a、S4bに送信する。スレーブ装置4A、4Bの時刻同期処理部41は、時刻t8、t8’を記録する。 The time synchronization processing units 41a, 41b of the slave devices 4A, 4B record the times t7, t7' when they transmitted the specific PTP packets 401a, 401b containing the Delay_Request message. As shown in FIG. 5B, the communication device 3 transmits to the ports S4a, S4b of the slave devices 4A, 4B the specific PTP packets 204a, 204b containing the Delay_Respose message, which record the times t8, t8' when the PTP packets 401a, 401b were received. The time synchronization processing units 41 of the slave devices 4A, 4B record the times t8, t8'.

スレーブ装置4A、4Bの時刻同期処理部41a、41bは、時刻t5、t6、t6’、t7、t、7’、t8、t8’に基づいてオフセット時間Toffを算出し、特定のPTPパケット202a、202b(又は203a、203b)のコレクションフィールド122に記録された遅延時間及びオフセット時間Toffに基づいて、自装置4A、4Bの時刻を通信装置3の時刻に補正する時刻同期処理を行う。すなわち、スレーブ装置4Aの時刻同期処理部41aは、オフセット時間Toff及びポート番号002に対応する遅延時間Dtbに基づいて、スレーブ装置4Aの時刻が通信装置3の時刻に同期するように自己の計時部42aを補正する時刻同期処理を行う。スレーブ装置4Bの時刻同期処理部41bは、オフセット時間Toff及びポート番号003に対応する遅延時間Dtcに基づいて、スレーブ装置4Bの時刻が通信装置3の時刻に同期するように自己の計時部42bを補正する時刻同期処理を行う。 The time synchronization processing units 41a and 41b of the slave devices 4A and 4B calculate the offset time Toff based on the times t5, t6, t6', t7, t, 7', t8, and t8', and perform a time synchronization process to correct the time of the devices 4A and 4B to the time of the communication device 3 based on the delay time and offset time Toff recorded in the collection field 122 of the specific PTP packets 202a and 202b (or 203a and 203b). That is, the time synchronization processing unit 41a of the slave device 4A performs a time synchronization process to correct its own clock unit 42a based on the offset time Toff and the delay time Dtb corresponding to the port number 002 so that the time of the slave device 4A is synchronized with the time of the communication device 3. The time synchronization processing unit 41b of the slave device 4B performs a time synchronization process to correct its own clock unit 42b based on the offset time Toff and the delay time Dtc corresponding to the port number 003 so that the time of the slave device 4B is synchronized with the time of the communication device 3.

なお、図5(a)、(b)では、Two-step clock方式の時刻配信の例として、Follw-upメッセージを含むPTPパケット、及びDelay_Resposeメッセージを含むPTPパケットに時刻情報を記録したが、One-step clock方式の時刻配信の場合、Syncメッセージを含むPTPパケット、及びDelay_Requestメッセージを含むPTPパケットに時刻情報を記録してもよい。 In Figures 5(a) and (b), as an example of time distribution using the Two-step clock method, time information is recorded in a PTP packet containing a Follow-up message and a PTP packet containing a Delay_Respose message. However, in the case of time distribution using the One-step clock method, time information may be recorded in a PTP packet containing a Sync message and a PTP packet containing a Delay_Request message.

(本実施の形態の作用、効果)
本実施の形態に係る通信システム1によれば、以下の作用、効果を奏する。
(a)装置内遅延時間を考慮して通信装置3の時刻をグランドマスタ装置2の時刻に同期させることで、装置内遅延時間を考慮しない場合と比較して、時刻同期精度の向上を図ることができる。
(b)グランドマスタ装置2及びスレーブ装置4と通信装置3の間の通信では、PTPパケットを他のパケットよりも優先的に処理し、装置内遅延時間を送信先に通知することにより、時刻同期精度をIEEE1588規格の1μsの1/5程度(200ns)に向上させることができた。また、時刻同期精度のばらつきを、従来700nsから60msであったものが200ns以下に抑えることができた。
(c)通信装置3は、バウンダリークロックデバイスとして機能するため、グランドマスタ装置の代わりにマスタ装置の役割を担うので、グランドマスタ装置2に掛かる負荷を軽減することができる。
(Actions and Effects of the Present Embodiment)
The communication system 1 according to the present embodiment provides the following functions and effects.
(a) By synchronizing the time of the communication device 3 with the time of the grandmaster device 2 taking into account the delay time within the device, it is possible to improve the accuracy of time synchronization compared to a case in which the delay time within the device is not taken into account.
(b) In the communications between the grandmaster device 2 and the slave device 4 and the communications device 3, PTP packets are given priority over other packets and the delay time within the device is notified to the transmission destination, thereby improving the time synchronization accuracy to about 1/5 of the 1 μs of the IEEE 1588 standard (200 ns). In addition, the variation in time synchronization accuracy, which was previously 700 ns to 60 ms, was reduced to 200 ns or less.
(c) Since the communication device 3 functions as a boundary clock device, it takes on the role of a master device instead of the grandmaster device, thereby reducing the load on the grandmaster device 2.

以上、本発明の実施の形態を説明したが、本発明の実施の形態は上記実施の形態に限定されるものではなく、種々の変形、実施が可能である。例えば、上記実施の形態では、特定パケット生成部302は、出力先に対応する装置内遅延時間を記録した特定のPTPパケットを生成したが、全ての出力先に対応する装置内遅延時間を出力先を示す情報とともに記録した特定のPTPパケットを生成してもよい。 Although the embodiment of the present invention has been described above, the embodiment of the present invention is not limited to the above embodiment, and various modifications and implementations are possible. For example, in the above embodiment, the specific packet generating unit 302 generates a specific PTP packet that records the in-device delay time corresponding to the output destination, but it is also possible to generate a specific PTP packet that records the in-device delay time corresponding to all output destinations together with information indicating the output destination.

1…通信システム、2…グランドマスタ装置、3…通信装置、4、4A、4B…スレーブ装置、30…送受信処理部、31、41a、41b…時刻同期処理部、32、42a、42b…時計部、100a、100b、100c、201、202a、202b、204a、204b…特定のPTPパケット、101、103、401a、401b…PTPパケット、110…イーサヘッダ、120…PTPヘッダ、121…メッセージタイプ、122…コレクションフィールド、130…時刻情報格納部、301…遅延時間測定部、302…特定パケット生成部、303…パケット送受信部、304…遅延時間メモリ、304a…遅延時間テーブル、305…パケットメモリ、C30a、C30b、C31a、C31b、M30a、M30b、M2a、S30a…ポート、Ra…第1の伝送路、Rb…第2の伝送路、Rc…第3の伝送路、
Reference Signs List 1: communication system, 2: grandmaster device, 3: communication device, 4, 4A, 4B: slave device, 30: transmission/reception processing unit, 31, 41a, 41b: time synchronization processing unit, 32, 42a, 42b: clock unit, 100a, 100b, 100c, 201, 202a, 202b, 204a, 204b: specific PTP packet, 101, 103, 401a, 401b: PTP packet, 110: Ether header, 120: PTP header, 121 ... message type, 122... collection field, 130... time information storage unit, 301... delay time measurement unit, 302... specific packet generation unit, 303... packet transmission/reception unit, 304... delay time memory, 304a... delay time table, 305... packet memory, C30a, C30b, C31a, C31b, M30a, M30b, M2a, S30a... port, Ra... first transmission path, Rb... second transmission path, Rc... third transmission path,

Claims (5)

マスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する通信装置であって、
前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する時刻同期処理部と、
前記通信装置が前記マスタ装置から送信された前記時刻同期用のパケットを受信してから前記時刻同期処理部に出力するまでの経路長に応じた第1の装置内遅延時間、及前記時刻同期処理部から前記複数のスレーブ装置に出力するまでのそれぞれの経路長に応じた第2の装置内遅延時間を出力先ごとに測定して遅延時間テーブルに記録する遅延時間測定部と、
前記時刻同期用のパケットの出力先に対応する前記第2の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第2の装置内遅延時間を含む特定の時刻同期用のパケットを生成する特定パケット生成部と、
前記時刻同期処理部により補正された前記通信装置の時刻を基準に、生成された前記特定の時刻同期用のパケットを前記出力先の前記スレーブ装置に送信するパケット送信部と、を備え、
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、
通信装置。
A communication device that transmits and receives packets for time synchronization between a master device and a plurality of slave devices,
a time synchronization processing unit that corrects the time of the communication device so as to synchronize with the time of the master device;
a delay time measurement unit that measures a first in-device delay time corresponding to a path length from when the communication device receives the time synchronization packet transmitted from the master device to when the communication device outputs the packet to the time synchronization processing unit, and a second in-device delay time corresponding to each path length from the time synchronization processing unit to when the communication device outputs the packet to the plurality of slave devices, for each output destination, and records the measured delay time in a delay time table ;
a specific packet generating unit that reads out the second internal delay time corresponding to an output destination of the packet for time synchronization from the delay time table, and generates a specific packet for time synchronization including the read out second internal delay time;
a packet transmission unit that transmits the generated specific time synchronization packet to the slave device as the output destination, based on the time of the communication device corrected by the time synchronization processing unit;
the time synchronization processing unit reads out the first internal delay time from the delay time table, and corrects the time of the communication device so as to be synchronized with the time of the master device, taking into account the read out first internal delay time;
Communication device.
前記通信装置は、さらに前記複数のスレーブ装置間で送受信するパケットを中継するものであり、
前記パケット送信部は、前記時刻同期用のパケットを他のパケットよりも優先的に送信する、
請求項1に記載の通信装置。
the communication device further relays packets transmitted and received among the plurality of slave devices,
the packet transmission unit transmits the time synchronization packet with priority over other packets;
The communication device according to claim 1 .
前記遅延時間測定部は、前記第1の装置内遅延時間及び前記第2の装置内遅延時間を定期的に測定して前記遅延時間テーブルに記録し、the delay time measurement unit periodically measures the first in-device delay time and the second in-device delay time and records the measured delay time in the delay time table;
前記特定パケット生成部は、前記第2の装置内遅延時間を前記遅延時間テーブルから定期的に読み出し、読み出した前記第2の装置内遅延時間を含む前記特定の時刻同期用のパケットを生成し、the specific packet generation unit periodically reads out the second internal device delay time from the delay time table, and generates the specific time synchronization packet including the read out second internal device delay time;
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから定期的に読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、the time synchronization processing unit periodically reads out the first internal delay time from the delay time table, and corrects the time of the communication device so as to be synchronized with the time of the master device, taking into account the read out first internal delay time.
請求項1に記載の通信装置。The communication device according to claim 1 .
前記スレーブ装置と前記マスタ装置との時刻の差である時刻同期精度が200ns以下である、The time synchronization accuracy, which is the difference between the time of the slave device and the time of the master device, is 200 ns or less.
請求項3に記載の通信装置。The communication device according to claim 3.
マスタ装置と、複数のスレーブ装置と、マスタ装置及び複数のスレーブ装置との間で時刻同期用のパケットを送受信する通信装置と、を備えた通信システムであって、
前記通信装置は、前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する時刻同期処理部と、前記通信装置が前記マスタ装置から送信された前記時刻同期用のパケットを受信してから前記時刻同期処理部に出力するまでの経路長に応じた第1の装置内遅延時間、及前記時刻同期処理部から前記複数のスレーブ装置に出力するまでのそれぞれの経路長に応じた第2の装置内遅延時間を出力先ごとに測定して遅延時間テーブルに記録する遅延時間測定部と、前記時刻同期用のパケットの出力先に対応する前記第2の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第2の装置内遅延時間を含む特定の時刻同期用のパケットを生成する特定パケット生成部と、前記時刻同期処理部により補正された前記通信装置の時刻を基準に、生成された前記特定の時刻同期用のパケットを前記出力先の前記スレーブ装置に送信するパケット送信部と、を備え、
前記時刻同期処理部は、前記第1の装置内遅延時間を前記遅延時間テーブルから読み出し、読み出した前記第1の装置内遅延時間を考慮して前記通信装置の時刻を前記マスタ装置の時刻に同期するように補正する、
通信システム。
A communication system including a master device, a plurality of slave devices, and a communication device that transmits and receives packets for time synchronization between the master device and the plurality of slave devices,
the communication device comprises: a time synchronization processing unit that corrects the time of the communication device to be synchronized with the time of the master device; a delay time measurement unit that measures, for each output destination, a first in-device delay time corresponding to a path length from when the communication device receives the time synchronization packet transmitted from the master device to when it outputs the packet to the time synchronization processing unit, and a second in-device delay time corresponding to each path length from the time synchronization processing unit to when it outputs the packet to the plurality of slave devices, and records the measured delay time in a delay time table ; a specific packet generation unit that reads out the second in-device delay time corresponding to an output destination of the time synchronization packet from the delay time table, and generates a specific time synchronization packet including the read out second in-device delay time; and a packet transmission unit that transmits the generated specific time synchronization packet to the slave device of the output destination, based on the time of the communication device corrected by the time synchronization processing unit;
the time synchronization processing unit reads out the first internal delay time from the delay time table, and corrects the time of the communication device so as to be synchronized with the time of the master device, taking into account the read out first internal delay time;
Communications system.
JP2021209367A 2021-12-23 2021-12-23 Communication device and communication system Active JP7485648B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021209367A JP7485648B2 (en) 2021-12-23 2021-12-23 Communication device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021209367A JP7485648B2 (en) 2021-12-23 2021-12-23 Communication device and communication system

Publications (2)

Publication Number Publication Date
JP2023094100A JP2023094100A (en) 2023-07-05
JP7485648B2 true JP7485648B2 (en) 2024-05-16

Family

ID=87001684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021209367A Active JP7485648B2 (en) 2021-12-23 2021-12-23 Communication device and communication system

Country Status (1)

Country Link
JP (1) JP7485648B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100074278A1 (en) 2008-09-22 2010-03-25 Iouri Dobjelevski Timing Distribution Within a Network Element While Supporting Multiple Timing Domains
JP2014127887A (en) 2012-12-27 2014-07-07 Hitachi Ltd Communication control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100074278A1 (en) 2008-09-22 2010-03-25 Iouri Dobjelevski Timing Distribution Within a Network Element While Supporting Multiple Timing Domains
JP2014127887A (en) 2012-12-27 2014-07-07 Hitachi Ltd Communication control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
横手 慎一 他,Technology Reports 3.5GHz帯導入,NTT DOCOMOテクニカル・ジャーナル Vol.24 No.2 [online],一般社団法人電気通信協会,2016年,p.18-26

Also Published As

Publication number Publication date
JP2023094100A (en) 2023-07-05

Similar Documents

Publication Publication Date Title
EP3491753B1 (en) System and methods for network synchronization
KR101481396B1 (en) Method for synchronizing master and slave clocks of packet-switched network with aggregated connections between nodes, and associated synchronization devices
US8964790B2 (en) Communication apparatus
JP6214008B2 (en) Method and apparatus for communicating time information between time recognition devices
US8576883B2 (en) Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time
TWI485996B (en) Apparatus and method for enabling a passive optical network on supporting time synchronization
US8571068B2 (en) Network timing distribution and synchronization using virtual network delays
KR101290643B1 (en) Method and system for bearing time synchronization protocol in optical transport network
WO2013190602A1 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
US20030142696A1 (en) Method for ensuring access to a transmission medium
WO2010000190A1 (en) Calculating method, system and optical network apparatus for synchronous time of passitive optical network
WO2012003746A1 (en) Method and device for realizing boundary clock
JP2018042019A (en) Video switching system
JP5426695B2 (en) Method for synchronizing clocks by separately transmitting first data and second data by at least one timing distribution protocol, and related systems and modules
JP7485648B2 (en) Communication device and communication system
CN112039621B (en) A time synchronization method and system
CN112636861A (en) Clock synchronization method, device, equipment and storage medium
JP5973972B2 (en) node
JP7419872B2 (en) TSN network connection method, TSN network connection method
JP2013009184A (en) Time synchronous system
JP2025007883A (en) Communication device and communication system
TW202429845A (en) System and methods for network data processing

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220915

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240111

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240502

R150 Certificate of patent or registration of utility model

Ref document number: 7485648

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150