TWI866115B - Method and device for time synchronization of time synchronization domains - Google Patents
Method and device for time synchronization of time synchronization domains Download PDFInfo
- Publication number
- TWI866115B TWI866115B TW112109568A TW112109568A TWI866115B TW I866115 B TWI866115 B TW I866115B TW 112109568 A TW112109568 A TW 112109568A TW 112109568 A TW112109568 A TW 112109568A TW I866115 B TWI866115 B TW I866115B
- Authority
- TW
- Taiwan
- Prior art keywords
- time
- time synchronization
- ports
- port
- information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000005540 biological transmission Effects 0.000 claims description 27
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 13
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000010354 integration Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
Abstract
Description
本發明係指一種時間同步方法以及裝置,尤指一種於多個時間同步網域中進行時間同步的時間同步方法以及裝置。 The present invention relates to a time synchronization method and device, and in particular to a time synchronization method and device for performing time synchronization in multiple time synchronization domains.
精確時間協定(Precision Time Protocol,PTP)係由IEEE 1588所制定的時間同步的基礎標準,用於實現高精度之時鐘同步。然而,隨著市場演變,於各種不同網路之應用皆有其各自之不同需求,因此先前技術根據不同的應用而提出許多不同的PTP配置文件(Profile),例如用於電力網路之Power Profile(IEEE Std C37.238)、電信網路之Telecom Profile(ITU-TG.8265.1)以及廣義精準時間同步協定(IEEE Std 802.1AS:Generalized Precision Time Protocol,gPTP)配置文件等。配置文件允許不同領域之應用可以設置不同的操作參數、屬性以及預設值等設定以符合需求,導致使用各種不同配置文件之設備以及網路之間無法有效互通。一般而言,為了確保時間同步,同一環境下的裝置或設備等皆要求使用相對應的配置文件,使得跨領域之時間整合相對困難。 Precision Time Protocol (PTP) is a basic standard for time synchronization established by IEEE 1588, which is used to achieve high-precision clock synchronization. However, with the evolution of the market, applications in various networks have their own different requirements. Therefore, the previous technology proposed many different PTP profiles according to different applications, such as Power Profile (IEEE Std C37.238) for power networks, Telecom Profile (ITU-TG.8265.1) for telecommunications networks, and Generalized Precision Time Protocol (IEEE Std 802.1AS: Generalized Precision Time Protocol, gPTP) profiles. Profiles allow applications in different fields to set different operating parameters, properties, and default values to meet their needs, resulting in the inability of devices and networks using various different profiles to effectively communicate with each other. Generally speaking, in order to ensure time synchronization, devices or equipment in the same environment are required to use corresponding configuration files, making cross-domain time integration relatively difficult.
目前,時間敏感網路(Time Sensitive Network)中用於實現精確時間同步的協議係由IEEE 802.1AS定義的廣義精準時間同步協議所規範。廣義精準時 間協議配置文件(gPTP Profile)亦是根據IEEE 1588所制定之配置文件之一,其為PTP進行簡化並針對時間敏感的應用程序進行優化。然而,在此協議之下,所有設備與網路節點皆需支援gPTP配置文件,才能於時間敏感網路上進行時間同步。在此情形下,設備廠商需更新設備,抑或修改所有使用其他類型配置文件之設備為使用gPTP配置文件,因而造成莫大困擾。因此,習知技術有改良的必要。 Currently, the protocol used to achieve accurate time synchronization in a time-sensitive network is regulated by the generalized precise time synchronization protocol defined by IEEE 802.1AS. The generalized precise time protocol profile (gPTP Profile) is also one of the profiles developed according to IEEE 1588. It simplifies PTP and optimizes it for time-sensitive applications. However, under this protocol, all devices and network nodes must support the gPTP profile in order to synchronize time on a time-sensitive network. In this case, equipment manufacturers need to update the equipment or modify all devices that use other types of profiles to use the gPTP profile, which causes great trouble. Therefore, there is a need to improve the known technology.
因此,本發明之主要目的即在於提供一種在不影響時間同步準確度的情況下整合多個使用不同類型精確時間協定配置文件之裝置或網路以進行時間同步之方法,以改善習知技術之缺點。 Therefore, the main purpose of the present invention is to provide a method for integrating multiple devices or networks using different types of precise time protocol configuration files for time synchronization without affecting the accuracy of time synchronization, so as to improve the shortcomings of the prior art.
本發明實施例揭露一種時間同步方法,用於一時間同步裝置,該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件。該時間同步方法包含有決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。 The embodiment of the present invention discloses a time synchronization method for a time synchronization device. The time synchronization device is connected to a plurality of time synchronization domains through a plurality of connection ports. The plurality of time synchronization domains use a plurality of precise time protocol configuration files. The time synchronization method includes determining each of the plurality of ports as a time receiving port or a time transmission port; obtaining information of a master clock in the plurality of time synchronization domains; converting the information of the master clock according to the precise time protocol configuration files corresponding to each time transmission port of the plurality of ports in the plurality of precise time protocol configuration files to generate a plurality of clock information corresponding to each time transmission port of the plurality of ports; and transmitting a corresponding clock information in the plurality of clock information to a corresponding time synchronization domain by each time transmission port of the plurality of ports to perform time synchronization.
本發明實施例另揭露一種時間同步裝置,其中該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精 確時間協定配置文件,該時間同步裝置包含有一處理單元,用來執行一程式碼;以及一儲存單元,耦接於該處理單元,用來儲存該程式碼,以指示該處理單元執行一時間同步方法。該時間同步方法包含有決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。 The present invention also discloses a time synchronization device, wherein the time synchronization device is connected to a plurality of time synchronization domains through a plurality of connection ports, and the plurality of time synchronization domains use a plurality of precise time protocol configuration files. The time synchronization device includes a processing unit for executing a program code; and a storage unit coupled to the processing unit for storing the program code to instruct the processing unit to execute a time synchronization method. The time synchronization method includes determining each of the plurality of ports as a time receiving port or a time transmission port; obtaining information of a master clock in the plurality of time synchronization domains; converting the information of the master clock according to the precise time protocol configuration files corresponding to each time transmission port of the plurality of ports in the plurality of precise time protocol configuration files to generate a plurality of clock information corresponding to each time transmission port of the plurality of ports; and transmitting a corresponding clock information in the plurality of clock information to a corresponding time synchronization domain by each time transmission port of the plurality of ports to perform time synchronization.
1:網路系統 1: Network system
12_1~12_3:時間同步網域 12_1~12_3: Time synchronization domain
14_1~14_3:本地最佳時鐘 14_1~14_3: Best local clock
A、B、C:精確時間協定配置文件 A, B, C: Precision Time Protocol configuration files
2、4、5、6:時間同步網路系統 2, 4, 5, 6: Time synchronization network system
10:時間同步裝置 10: Time synchronization device
16_1~16_3:連接埠 16_1~16_3: Connection port
3:流程 3: Process
300~314:步驟 300~314: Steps
40_1、40_2:時間同步裝置 40_1, 40_2: Time synchronization device
40_1~40_4:連接埠 40_1~40_4: Connection port
50_1、50_2:時間同步裝置 50_1, 50_2: Time synchronization device
50_1~50_4:連接埠 50_1~50_4: Connection port
60:時間同步裝置 60: Time synchronization device
60_1~60_3:連接埠 60_1~60_3: Connection port
64:主時鐘 64: Main clock
7:網路裝置 7: Network devices
70:處理單元 70: Processing unit
72:儲存單元 72: Storage unit
720:程式碼 720:Program code
第1圖為一網路系統示意圖。 Figure 1 is a schematic diagram of a network system.
第2圖為本發明實施例一時間同步網路系統之示意圖。 Figure 2 is a schematic diagram of a time synchronization network system according to an embodiment of the present invention.
第3圖為本發明實施例一時間同步方法之流程示意圖。 Figure 3 is a schematic diagram of the process of the time synchronization method of the first embodiment of the present invention.
第4圖為本發明實施例包含兩個時間同步裝置的時間同步網路系統示意圖。 Figure 4 is a schematic diagram of a time synchronization network system including two time synchronization devices according to an embodiment of the present invention.
第5圖為本發明實施例包含兩個時間同步裝置的時間同步網路系統示意圖。 Figure 5 is a schematic diagram of a time synchronization network system including two time synchronization devices according to an embodiment of the present invention.
第6圖為本發明實施例中以時間同步裝置之時間進行同步之時間同步網路系統示意圖。 Figure 6 is a schematic diagram of a time synchronization network system that synchronizes the time of a time synchronization device in an embodiment of the present invention.
第7圖為本發明實施例一網路裝置之示意圖。 Figure 7 is a schematic diagram of a network device according to an embodiment of the present invention.
在說明書及後續的申請專利範圍當中使用了某些詞彙來指稱特定的元件。所屬領域中具有通常知識者應可理解,硬體製造商可能會用不同的名詞 來稱呼同一個元件。本說明書及後續的申請專利範圍並不以名稱的差異來做為區分元件的方式,而是以元件在功能上的差異來做為區分的準則。在通篇說明書及後續的申請專利範圍當中所提及的「包含」係為一開放式的用語,故應解釋成「包含但不限定於」。 Certain terms are used in this specification and subsequent patent applications to refer to specific components. A person with ordinary knowledge in the field should understand that hardware manufacturers may use different terms to refer to the same component. This specification and subsequent patent applications do not use differences in names as a way to distinguish components, but rather use differences in components' functions as the criteria for distinction. The term "including" mentioned throughout the specification and subsequent patent applications is an open term and should be interpreted as "including but not limited to".
請參考第1圖,第1圖為一網路系統1之示意圖。網路系統1包含時間同步網域(domain)12_1~12_3,其中各時間同步網域可為有線網路、無線網路、或兩者之一組合組成之網域,可為由多個裝置以及多個網路交換器等設備所組成之網域(包含多個時鐘),也可以是僅由單一裝置所組成之網域(僅有一個時鐘)。時間同步網域12_1~12_3為分別根據不同類型之精確時間協定配置文件(Precision Time Protocol Profile,PTP Profile)A~C之規範運作之時間同步網域。需注意的是,由於時間同步網域12_1~12_3係根據不同之精確時間協定配置文件A~C運行時間同步機制,因而無法進行跨網域之時間同步整合。在此情形下,各時間同步網域分別具有一最佳時鐘(如第1圖中的最佳時鐘14_1~14_3)作為各時間敏感網路網域的主時鐘(Grandmaster,GM)運行,也就是說,屬於同一網域之裝置皆根據其所屬網域之主時鐘各自進行時間同步。其中,最佳時鐘係指根據時間來源、時間精準度、振盪器穩定度等因素評估之適用於特定時間同步網域的最理想時鐘,亦可由人為所決定之最適用於特定時間同步網域的時鐘。在此情況下,當廠商欲於一網域中置換或添加新設備時,新設備須相容於所屬網域所使用之精確時間協定配置文件;當設備商進行設備開發時,須針對各種不同精確時間協定配置文件分別進行設備客製化或調整才能應用於不同領域;當所屬網域欲與其他特定時間同步網域進行整合時,更可能需要進行所有設備與網路裝置之升級以與廣義精準時間協議配置文件相容。
Please refer to FIG. 1, which is a schematic diagram of a
為了使網路系統1中所有裝置皆可在不影響時間同步準確度的情況下根據同一主時鐘達成時間同步的目的,本發明提供一時間同步裝置,其可連接至時間同步網域12_1~12_3,用以整合不同時間同步網域之時間。詳細來說,請參考第2圖,第2圖為本發明實施例一時間同步網路系統2之示意圖。時間同步網路系統2包含時間同步網域12_1~12_3以及一時間同步裝置10。時間同步裝置10可為運行於網路中之閘道器(gateway)、交換器(switch)、路由器(router)以及橋接器(bridge)等網路裝置,且不限於此。時間同步裝置10透過連接埠16_1~16_3分別連接至時間同步網域12_1~12_3。在本發明實施例中,時間同步網域12_1~12_3可根據一時間同步方法透過時間同步裝置10進行時間同步,藉此達到時間同步網域12_1~12_3中所有設備、裝置皆根據指定網域之主時鐘14_1之時間進行同步。此外,在時間同步網路系統2中,時間同步網域12_1~12_3之數量為3,其僅為說明之用,本發明實施例之時間同步裝置10可適用於任意數量之時間同步網域間的時間同步,而不限於此。
In order to enable all devices in the
本發明實施例之時間同步方法可歸納為一流程3,如第3圖所示,流程3包含以下步驟:
The time synchronization method of the embodiment of the present invention can be summarized as a
步驟300:開始。 Step 300: Start.
步驟302:決定複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠。 Step 302: Determine whether each of the plurality of ports is a time receiving port or a time transmitting port.
步驟304:取得複數個時間同步網域中一主時鐘的一資訊。 Step 304: Obtain information of a master clock in a plurality of time synchronization domains.
步驟306:根據複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊。 Step 306: According to the precise time protocol configuration files corresponding to each time transmission port of the plurality of connection ports in the plurality of precise time protocol configuration files, the information of the master clock is converted to generate a plurality of clock information corresponding to each time transmission port of the plurality of connection ports.
步驟308:由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資 訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。 Step 308: Each time transmission port of the plurality of connection ports transmits a corresponding clock information in the plurality of clock information to a corresponding time synchronization domain for time synchronization.
步驟310:結束。 Step 310: End.
根據流程3,時間同步裝置10先決定複數個連接埠分別為一時間接收埠或一時間傳送埠(步驟302)。其中,時間接收埠表示用於接收相關於時鐘以及時間等資訊的連接埠,或者根據精確時間協定之規範,即連接埠狀態(portState)設定為SlavePort之連接埠;時間傳送埠則是用於傳送相關於時鐘以及時間等資訊的連接埠,或者根據精確時間協定之規範,即連接埠狀態設定為MasterPort之連接埠。決定各連接埠為一時間接收埠或一時間傳送埠時間後,時間同步裝置10需進一步取得相關於主時鐘之資訊(步驟304)。據此,時間同步裝置10需根據複數個精確時間協定配置文件中對應於每一時間傳送埠的精確時間協定配置文件,對主時鐘之資訊進行資訊轉換,以產生對應於各時間傳送埠的時鐘資訊(步驟306),進而由各時間傳送埠發送時鐘資訊至對應之時間同步網域(步驟308),藉以同步時間。據此,可使連接時間同步裝置10的所有時間同步網域皆根據同一主時鐘之時間運行之目的。
According to
換言之,時間同步裝置10透過時間接收埠接收來自主時鐘所發送之時鐘相關資訊,根據對應於時間傳送埠的精確時間協定配置文件對主時鐘資訊進行資訊轉換,再由各時間傳送埠發送轉換後的時鐘資訊至對應之時間同步網域。據此,可使時間同步網路系統2中所有設備、裝置皆根據同一主時鐘之時間運行。
In other words, the
詳細來說,以第2圖為例,時間同步裝置10先決定各連接埠16_1~16_3為一時間接收埠或一時間傳送埠。在一實施例中,時間同步裝置10可先決定主
時鐘14_1所屬之時間同步網域12_1之精確時間協定配置文件A,接著逐一比對時間同步裝置10之所有連接埠16_1~16_3所對應使用之精確時間協定配置文件。當連接埠16_1~16_3之一所對應使用之精確時間協定配置文件與精確時間協定配置文件A相同時,決定該連接埠為一時間接收埠(即連接埠16_1),並決定其餘連接埠(即連接埠16_2、16_3)為時間傳送埠。由於時間接收埠16_1係接收來自時間同步網域12_1中之主時鐘14_1所發送之時鐘相關資訊,例如發布訊息(Announce message)、同步訊息(Sync message)等,因此,時間同步裝置10可以透過時間接收埠16_1取得相關於主時鐘之資訊。進一步地,時間同步裝置10需分別針對精確時間協定配置文件B、C進行資訊轉換,即相關於時間傳送埠16_2、16_3所對應的時間同步網域12_2、12_3,以產生對應於時間同步網域12_2、12_3之時鐘資訊。最後,時間同步裝置10藉由時間傳送埠16_2、16_3發送轉換後的時鐘資訊至對應之時間同步網域12_2、12_3,藉以同步時間。
In detail, taking FIG. 2 as an example, the
由上述可知,時間同步裝置10透過時間接收埠16_1接收來自時間同步網域12_1之主時鐘14_1之資訊,其中包含時鐘之相關資訊以及時間資訊。由時間同步網域12_1接收之主時鐘14_1之資訊為根據精確時間協定配置文件A傳送之資訊,因此需透過時間同步裝置10進行格式與資訊轉換,才能產生適用於使用不同精確時間協定配置文件之網域。因此,時間同步裝置10分別根據時間同步網域12_2、12_3對應之精確時間協定配置文件B、C,針對由時間接收埠16_1所接收之主時鐘14_1之資訊進行轉換,最後再將轉換格式後之時間資訊分別透過時間傳送埠16_2、16_3發送至時間同步網域12_2、12_3。據此,可以跨越各種使用不同精確時間協定配置文件之網域進行時間同步。
As can be seen from the above, the
在第2圖中,利用單一時間同步裝置10,並根據流程3,時間同步網
路系統2可達成所有連接時間同步裝置10的時間同步網域皆根據同一主時鐘之時間運行,因而同步時間。本領域具通常知識者當可根據系統所需,而適當變化,不限於此。舉例來說,請參考第4圖,第4圖為本發明實施例一時間同步網路系統4之示意圖。在此實施例中,時間同步網路系統4透過兩個時間同步裝置40_1及40_2進行時間同步網域12_1~12_3之時間同步。其中,時間同步裝置40_1透過連接埠46_1、46_2分別連接至時間同步網域12_1、12_2,時間同步裝置40_2則透過連接埠46_3、46_4分別連接至時間同步網域12_2、12_3。類似時間同步裝置10之運作方式,決定主時鐘14_1所屬時間同步網域後,時間同步裝置40_1可決定對應之精確時間協定配置文件A,據此決定連接埠46_1為一時間接收埠,而連接埠46_2為一時間傳送埠。因此,透過時間同步裝置40_1,可由時間接收埠46_1接收相關於精確時間協定配置文件A之主時鐘14_1之資訊,經過資訊與格式轉換後,再透過時間傳送埠46_2送出對應於精確時間協定配置文件B之時間資訊至時間同步網域12_2。在此情形下,可使時間同步網域12_2根據位於時間同步網域12_1之主時鐘14_1進行時間同步。對應地,由於主時鐘14_1透過時間同步網域12_2傳送至時間同步裝置40_2,時間同步裝置40_2可決定連接埠46_3為一時間接收埠,連接埠46_4為一時間傳送埠。因此,透過時間同步裝置40_2,可由時間接收埠46_3接收相關於精確時間協定配置文件B之主時鐘14_1之資訊,經過資訊與格式轉換後,再透過時間傳送埠46_4送出對應於精確時間協定配置文件C之時間資訊至時間同步網域12_3。據此,時間同步網路系統4可利用兩個時間同步裝置40_1、40_2達到時間同步網域12_1~12_3之時間同步。
In FIG. 2, using a single
請參考第5圖,第5圖為本發明實施例一時間同步網路系統5之示意圖。在此實施例中,時間同步網路系統5透過兩個時間同步裝置50_1及50_2進行時間同步網域12_1~12_3之時間同步。其中,時間同步裝置50_1透過連接埠
56_1、56_2分別連接至時間同步網域12_1、12_2,時間同步裝置50_2則透過連接埠56_3、56_4分別連接至時間同步網域12_1、12_3。決定主時鐘14_1所屬時間同步網域後,時間同步裝置50_1可決定對應之精確時間協定配置文件A,據此決定連接埠56_1為一時間接收埠,連接埠56_2為一時間傳送埠。透過時間同步裝置50_1,可由時間接收埠56_1接收相關於精確時間協定配置文件A之主時鐘14_1之資訊,經過資訊與格式轉換後,再透過時間傳送埠56_2送出對應於精確時間協定配置文件B之時間資訊至時間同步網域12_2。藉此,可使時間同步網域12_2根據位於時間同步網域12_1之主時鐘14_1進行時間同步。同樣地,時間同步裝置50_2可決定連接埠56_3為一時間接收埠,連接埠56_4為一時間傳送埠。透過時間同步裝置50_2,可由時間接收埠56_3接收相關於精確時間協定配置文件A之主時鐘14_1之資訊,經過資訊與格式轉換後,再透過時間傳送埠56_4送出對應於精確時間協定配置文件C之轉換後的時間資訊至時間同步網域12_3。據此,時間同步網路系統5可利用兩個時間同步裝置50_1、50_2達到時間同步網域52_1~52_3之時間同步。
Please refer to FIG. 5, which is a schematic diagram of a time
在前述實施例中,時間同步裝置透過比對主時鐘對應的精確時間協定配置文件與各連接埠對應的精確時間協定配置文件,來決定各連接埠為時間接收埠或時間傳送埠。在另一實施例中,時間同步裝置可能即為主時鐘,換言之,主時鐘不屬於連接於時間同步裝置之任一時間同步網域。在此情形下,仍可根據流程3進行時間同步。請參考第6圖,第6圖為本發明實施例一時間同步網路系統6之示意圖。時間同步網路系統6包含時間同步網域12_1~12_3以及一時間同步裝置60。在此實施例中,時間同步網路系統6以時間同步裝置60之一時鐘64為主時鐘,據此同步時間同步網域12_1~12_3之時間。在此實施例中,主時鐘64不屬於連接於時間同步裝置60之任一時間同步網域12_1~12_3,因此,時間同步
裝置60可將所有連接埠66_1~66_3皆設定為時間傳送埠(步驟302)。由於時間同步裝置60不具有時間接收埠,主時鐘64的資訊直接由時間同步裝置60本機取得(步驟304)。接著,時間同步裝置60需分別針對時間傳送埠66_1~66_3所對應時間同步網域12_1~12_3所使用之精確時間協定配置文件A、B、C進行資訊轉換,以產生對應於時間同步網域12_1~12_3之時鐘資訊(步驟306)。最後,藉由時間傳送埠66_1~66_3發送轉換後的時鐘資訊至對應之時間同步網域12_1~12_3(步驟308),藉以同步時間。據此,連接於時間同步裝置60的所有時間同步網域12_1~12_3皆可根據時間同步裝置60所提供之主時鐘64之時間運行。
In the aforementioned embodiment, the time synchronization device determines each port as a time receiving port or a time transmitting port by comparing the precise time protocol configuration file corresponding to the master clock with the precise time protocol configuration file corresponding to each port. In another embodiment, the time synchronization device may be the master clock, in other words, the master clock does not belong to any time synchronization domain connected to the time synchronization device. In this case, time synchronization can still be performed according to
此外,需注意的是,以上實施例中時間同步網路系統2、4、5、6包含3個時間同步網域以及1或2個時間同步裝置,其僅為說明之用。本發明實施例可適用於任意數量或組合之時間同步網域以及時間同步裝置之時間同步,而不以此為限,本領域具通常知識者當可視實際需求採取適當之網路拓樸。
In addition, it should be noted that the time
進一步地,請參考第7圖,其為本發明實施例之一網路裝置7之示意圖。網路裝置7可為運行於時間敏感網路中之閘道器(gateway)、交換器(switch)、路由器(router)以及橋接器(bridge)等網路裝置,且不以此為限。凡具備多個連接埠之網路裝置7皆可用以實現本發明實施例之時間同步裝置10、40_1、40_2、50_1、50_2以及60。如第7圖所示,網路裝置7可包含一處理單元70以及一儲存單元72。處理單元70可為通用處理器、微處理器、特定應用積體電路(Application Specific Integrated Circuit,ASIC)等或其組合。儲存單元72耦接於處理單元70,可為任一資料儲存裝置,用來儲存一程式碼720,並透過處理單元70讀取及執行程式碼720。舉例來說,儲存單元72可為唯讀式記憶體(ROM)、快閃記憶體(flash memory)、隨機存取記憶體(RAM)、硬碟及光學資料儲存裝置(optical data storage
device)及非揮發性儲存單元等,但不限於此。
Further, please refer to FIG. 7, which is a schematic diagram of a
網路裝置7用以表示實現本發明實施例所需之必要元件,本領域具通常知識者當可據以做不同之修飾、調整,而不限於此。舉例來說,當以網路裝置7實現時間同步裝置時,可將時間同步方法之流程3編譯為程式碼720,並儲存於儲存單元72中,由處理單元70執行時間同步方法。此外,儲存單元72亦用於儲存主時鐘相關資訊、精確時間協定配置文件以及時間同步方法運行時所需之資料,且不限於此。
The
綜上所述,本發明提供一時間同步方法與裝置,可於多個使用不同精確時間協定配置文件之時間同步網域中進行跨網域之時間同步,改善習知技術中缺乏整合彈性之缺點。 In summary, the present invention provides a time synchronization method and device, which can perform cross-domain time synchronization in multiple time synchronization domains using different precise time protocol configuration files, improving the shortcomings of the known technology of lack of integration flexibility.
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above is only the preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.
2:時間同步網路系統 2: Time synchronization network system
10:時間同步裝置 10: Time synchronization device
12_1~12_3:時間同步網域 12_1~12_3: Time synchronization domain
14_1~14_3:本地最佳時鐘 14_1~14_3: Best local clock
16_1~16_3:連接埠 16_1~16_3: Connection port
A、B、C:精確時間協定配置文件 A, B, C: Precision Time Protocol configuration files
Claims (14)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/207,152 US12388551B2 (en) | 2022-06-22 | 2023-06-08 | Method and device for time synchronization of time synchronization domains |
| EP23178414.1A EP4297303A1 (en) | 2022-06-22 | 2023-06-09 | Method and device for time synchronization of time synchronization domains |
| JP2023101190A JP7690519B2 (en) | 2022-06-22 | 2023-06-20 | Method and device for time synchronization of a time synchronization domain - Patents.com |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202263354238P | 2022-06-22 | 2022-06-22 | |
| US63/354,238 | 2022-06-22 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202402008A TW202402008A (en) | 2024-01-01 |
| TWI866115B true TWI866115B (en) | 2024-12-11 |
Family
ID=89209293
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW112109568A TWI866115B (en) | 2022-06-22 | 2023-03-15 | Method and device for time synchronization of time synchronization domains |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117278162A (en) |
| TW (1) | TWI866115B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170359138A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Synchronization with different clock transport protocols |
| TW202215811A (en) * | 2020-09-30 | 2022-04-16 | 優達科技股份有限公司 | Synchronization device and synchronization method |
-
2023
- 2023-03-15 TW TW112109568A patent/TWI866115B/en active
- 2023-04-10 CN CN202310371676.0A patent/CN117278162A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170359138A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Synchronization with different clock transport protocols |
| TW202215811A (en) * | 2020-09-30 | 2022-04-16 | 優達科技股份有限公司 | Synchronization device and synchronization method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117278162A (en) | 2023-12-22 |
| TW202402008A (en) | 2024-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102652569B1 (en) | Implementation of PHY-level hardware timestamping and time synchronization in cost-optimized environments | |
| Eidson | Measurement, control, and communication using IEEE 1588 | |
| CN102246443B (en) | Clock for a node of a packet-switched network and associated synchronisation method | |
| CN101882990B (en) | Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system | |
| JP2013106329A (en) | Communication apparatus | |
| US20110305165A1 (en) | Method and system for physical-layer handshaking for timing role transition | |
| IL164037A (en) | Synchronization system for all optical slotted ring dynamic networks | |
| US12524038B2 (en) | Scalable boundary clock | |
| EP4192133A1 (en) | Method for indicating clock synchronization mode, and communication apparatus | |
| CN102457346A (en) | Time synchronization implementation method and clock node | |
| JPWO2020089962A1 (en) | Time synchronization system, time master, management master and time synchronization method | |
| Zhou et al. | An efficient configuration scheme of OPC UA TSN in industrial internet | |
| TWI866115B (en) | Method and device for time synchronization of time synchronization domains | |
| US20250007637A1 (en) | Time synchronization apparatus, system, and method | |
| CN107888315B (en) | A time synchronization method | |
| CN102170398B (en) | The reverse method of external time port and device | |
| JP7690519B2 (en) | Method and device for time synchronization of a time synchronization domain - Patents.com | |
| TWI862226B (en) | Time synchronization method and time synchronization device | |
| KR20210026367A (en) | A method for time synchronization on heterogeneous wireless mesh network nodes | |
| US20250132851A1 (en) | Time Synchronization Method and Time Synchronization Device | |
| TWI863171B (en) | Method and device for time synchronization of time synchronization domains | |
| TW201929579A (en) | System and method for end-to-end PTP profiles integration | |
| CN106533597A (en) | Selection method of time source and network element node | |
| KR20220138582A (en) | A Time Synchronization method and Management for Time Sensitive Communication in a 5G system | |
| CN115276869B (en) | Clock synchronization method, device, electronic device and storage medium |