[go: up one dir, main page]

TWI866115B - Method and device for time synchronization of time synchronization domains - Google Patents

Method and device for time synchronization of time synchronization domains Download PDF

Info

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
Application number
TW112109568A
Other languages
Chinese (zh)
Other versions
TW202402008A (en
Inventor
劉啟全
林俊余
賴建宇
林柏宏
Original Assignee
四零四科技股份有限公司
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 四零四科技股份有限公司 filed Critical 四零四科技股份有限公司
Priority to US18/207,152 priority Critical patent/US12388551B2/en
Priority to EP23178414.1A priority patent/EP4297303A1/en
Priority to JP2023101190A priority patent/JP7690519B2/en
Publication of TW202402008A publication Critical patent/TW202402008A/en
Application granted granted Critical
Publication of TWI866115B publication Critical patent/TWI866115B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional 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

A time synchronization method for a time synchronization device is provided. The time synchronization device connects a plurality of time synchronization domains through a plurality of ports, and the plurality of time synchronization domains complies with a plurality of PTP profiles respectively. The time synchronization method includes determining each port of the plurality of ports to be a time receiving port or a time transmitting port; obtaining information of a grandmaster clock (GM) in the plurality of time synchronization domains; converting the information of the GM to generate a plurality of clock information corresponding to each time transmitting port of the plurality of ports according to the PTP profile of the plurality of PTP profiles corresponding to the each time transmitting port of the plurality of ports; and transmitting a corresponding clock information among the plurality of clock information to a corresponding time synchronization domain by each time transmitting port for time synchronization.

Description

時間同步網域同步時間之方法與裝置 Time synchronization domain time synchronization method and device

本發明係指一種時間同步方法以及裝置,尤指一種於多個時間同步網域中進行時間同步的時間同步方法以及裝置。 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 network system 1. The network system 1 includes time synchronization domains 12_1 to 12_3, wherein each time synchronization domain can be a domain composed of a wired network, a wireless network, or a combination of the two, and can be a domain composed of multiple devices and multiple network switches (including multiple clocks), or a domain composed of only a single device (only one clock). The time synchronization domains 12_1 to 12_3 are time synchronization domains that operate according to the specifications of different types of Precision Time Protocol Profiles (PTP Profiles) A to C. It should be noted that, since the time synchronization domains 12_1~12_3 run the time synchronization mechanism according to different precise time protocol configuration files A~C, time synchronization integration across domains cannot be performed. In this case, each time synchronization domain has a best clock (such as the best clock 14_1~14_3 in FIG. 1) running as the master clock (Grandmaster, GM) of each time-sensitive network domain, that is, the devices belonging to the same domain are all synchronized according to the master clock of the domain to which they belong. Among them, the best clock refers to the most ideal clock suitable for a specific time synchronization domain evaluated based on factors such as time source, time accuracy, and oscillator stability, and can also be determined by humans as the most suitable clock for a specific time synchronization domain. In this case, when a vendor wants to replace or add a new device in a domain, the new device must be compatible with the precise time protocol profile used by the domain to which it belongs; when a device vendor develops a device, it must customize or adjust the device for various precise time protocol profiles before it can be applied to different domains; when the domain to which it belongs wants to integrate with other specific time synchronization domains, it may be necessary to upgrade all devices and network devices to be compatible with the general precise time protocol profile.

為了使網路系統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 network system 1 to achieve time synchronization based on the same master clock without affecting the accuracy of time synchronization, the present invention provides a time synchronization device that can be connected to the time synchronization domains 12_1~12_3 to integrate the time of different time synchronization domains. For details, please refer to Figure 2, which is a schematic diagram of a time synchronization network system 2 of an embodiment of the present invention. The time synchronization network system 2 includes time synchronization domains 12_1~12_3 and a time synchronization device 10. The time synchronization device 10 can be a network device such as a gateway, a switch, a router, and a bridge running in the network, but is not limited thereto. The time synchronization device 10 is connected to the time synchronization domains 12_1~12_3 through the connection ports 16_1~16_3 respectively. In the embodiment of the present invention, the time synchronization domains 12_1~12_3 can be synchronized through the time synchronization device 10 according to a time synchronization method, so that all equipment and devices in the time synchronization domains 12_1~12_3 are synchronized according to the time of the master clock 14_1 of the specified domain. In addition, in the time synchronization network system 2, the number of time synchronization domains 12_1~12_3 is 3, which is only for illustrative purposes. The time synchronization device 10 of the embodiment of the present invention can be applied to time synchronization between any number of time synchronization domains, but is not limited to this.

本發明實施例之時間同步方法可歸納為一流程3,如第3圖所示,流程3包含以下步驟: The time synchronization method of the embodiment of the present invention can be summarized as a process 3, as shown in Figure 3, process 3 includes the following steps:

步驟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 process 3, the time synchronization device 10 first determines that a plurality of ports are a time receiving port or a time transmitting port (step 302). The time receiving port refers to a port for receiving information related to the clock and time, or a port whose port state (portState) is set as a SlavePort according to the specification of the precise time protocol; the time transmitting port refers to a port for transmitting information related to the clock and time, or a port whose port state is set as a MasterPort according to the specification of the precise time protocol. After determining that each port is a time receiving port or a time transmitting port, the time synchronization device 10 needs to further obtain information related to the master clock (step 304). Accordingly, the time synchronization device 10 needs to convert the information of the master clock according to the precise time protocol configuration files corresponding to each time transfer port in the plurality of precise time protocol configuration files to generate clock information corresponding to each time transfer port (step 306), and then send the clock information from each time transfer port to the corresponding time synchronization domain (step 308) to synchronize the time. Accordingly, all time synchronization domains connected to the time synchronization device 10 can be operated according to the time of the same master clock.

換言之,時間同步裝置10透過時間接收埠接收來自主時鐘所發送之時鐘相關資訊,根據對應於時間傳送埠的精確時間協定配置文件對主時鐘資訊進行資訊轉換,再由各時間傳送埠發送轉換後的時鐘資訊至對應之時間同步網域。據此,可使時間同步網路系統2中所有設備、裝置皆根據同一主時鐘之時間運行。 In other words, the time synchronization device 10 receives the clock-related information sent from the master clock through the time receiving port, converts the master clock information according to the precise time protocol configuration file corresponding to the time transmission port, and then sends the converted clock information to the corresponding time synchronization domain through each time transmission port. In this way, all equipment and devices in the time synchronization network system 2 can operate according to the time of the same master clock.

詳細來說,以第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 time synchronization device 10 first determines each port 16_1 to 16_3 as a time receiving port or a time transmitting port. In one embodiment, the time synchronization device 10 may first determine the precise time protocol configuration file A of the time synchronization domain 12_1 to which the master clock 14_1 belongs, and then compare the precise time protocol configuration files corresponding to all ports 16_1 to 16_3 of the time synchronization device 10 one by one. When the precise time protocol configuration file corresponding to one of the ports 16_1 to 16_3 is the same as the precise time protocol configuration file A, the port is determined to be a time receiving port (i.e., port 16_1), and the remaining ports (i.e., ports 16_2 and 16_3) are determined to be time transmitting ports. Since the time receiving port 16_1 receives the clock-related information sent from the master clock 14_1 in the time synchronization domain 12_1, such as the announce message and the sync message, the time synchronization device 10 can obtain the information related to the master clock through the time receiving port 16_1. Furthermore, the time synchronization device 10 needs to perform information conversion for the precise time protocol configuration files B and C, that is, for the time synchronization domains 12_2 and 12_3 corresponding to the time transmission ports 16_2 and 16_3, to generate clock information corresponding to the time synchronization domains 12_2 and 12_3. Finally, the time synchronization device 10 sends the converted clock information to the corresponding time synchronization domains 12_2 and 12_3 through the time transmission ports 16_2 and 16_3 to synchronize the time.

由上述可知,時間同步裝置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 time synchronization device 10 receives information from the master clock 14_1 of the time synchronization domain 12_1 through the time receiving port 16_1, which includes clock-related information and time information. The information of the master clock 14_1 received by the time synchronization domain 12_1 is information transmitted according to the precise time protocol configuration file A, so it is necessary to perform format and information conversion through the time synchronization device 10 to generate a domain suitable for using different precise time protocol configuration files. Therefore, the time synchronization device 10 converts the information of the master clock 14_1 received by the time receiving port 16_1 according to the precise time protocol configuration files B and C corresponding to the time synchronization domains 12_2 and 12_3, and finally sends the converted time information to the time synchronization domains 12_2 and 12_3 through the time transmission ports 16_2 and 16_3. In this way, time synchronization can be performed across various domains using different precise time protocol configuration files.

在第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 time synchronization device 10 and according to process 3, the time synchronization network system 2 can achieve that all time synchronization domains connected to the time synchronization device 10 are operated according to the time of the same master clock, thereby synchronizing the time. A person skilled in the art can make appropriate changes according to the needs of the system, but is not limited to this. For example, please refer to FIG. 4, which is a schematic diagram of the time synchronization network system 4 of the first embodiment of the present invention. In this embodiment, the time synchronization network system 4 performs time synchronization of the time synchronization domains 12_1~12_3 through two time synchronization devices 40_1 and 40_2. The time synchronization device 40_1 is connected to the time synchronization domains 12_1 and 12_2 through the ports 46_1 and 46_2, respectively, and the time synchronization device 40_2 is connected to the time synchronization domains 12_2 and 12_3 through the ports 46_3 and 46_4, respectively. Similar to the operation of the time synchronization device 10, after determining the time synchronization domain to which the master clock 14_1 belongs, the time synchronization device 40_1 can determine the corresponding accurate time protocol configuration file A, and accordingly determine the port 46_1 as a time receiving port and the port 46_2 as a time transmitting port. Therefore, through the time synchronization device 40_1, the information of the master clock 14_1 related to the precise time protocol profile A can be received by the time receiving port 46_1, and after the information and format conversion, the time information corresponding to the precise time protocol profile B is sent to the time synchronization domain 12_2 through the time transmission port 46_2. In this case, the time synchronization domain 12_2 can be synchronized according to the master clock 14_1 located in the time synchronization domain 12_1. Correspondingly, since the master clock 14_1 is transmitted to the time synchronization device 40_2 through the time synchronization domain 12_2, the time synchronization device 40_2 can determine the connection port 46_3 as a time receiving port and the connection port 46_4 as a time transmission port. Therefore, through the time synchronization device 40_2, the information of the master clock 14_1 related to the precise time protocol configuration file B can be received by the time receiving port 46_3, and after the information and format conversion, the time information corresponding to the precise time protocol configuration file C is sent to the time synchronization domain 12_3 through the time transmission port 46_4. Accordingly, the time synchronization network system 4 can use the two time synchronization devices 40_1 and 40_2 to achieve time synchronization of the time synchronization domains 12_1~12_3.

請參考第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 synchronization network system 5 of the first embodiment of the present invention. In this embodiment, the time synchronization network system 5 performs time synchronization of the time synchronization domains 12_1 to 12_3 through two time synchronization devices 50_1 and 50_2. The time synchronization device 50_1 is connected to the time synchronization domains 12_1 and 12_2 through the connection ports 56_1 and 56_2, respectively, and the time synchronization device 50_2 is connected to the time synchronization domains 12_1 and 12_3 through the connection ports 56_3 and 56_4, respectively. After determining the time synchronization domain to which the master clock 14_1 belongs, the time synchronization device 50_1 can determine the corresponding precise time protocol profile A, and accordingly determine the connection port 56_1 to be a time receiving port and the connection port 56_2 to be a time transmitting port. Through the time synchronization device 50_1, the information of the master clock 14_1 related to the precise time protocol profile A can be received by the time receiving port 56_1, and after the information and format conversion, the time information corresponding to the precise time protocol profile B is sent to the time synchronization domain 12_2 through the time transmitting port 56_2. In this way, the time synchronization domain 12_2 can be synchronized according to the master clock 14_1 located in the time synchronization domain 12_1. Similarly, the time synchronization device 50_2 can determine that the connection port 56_3 is a time receiving port and the connection port 56_4 is a time transmitting port. Through the time synchronization device 50_2, the information of the master clock 14_1 related to the precise time protocol configuration file A can be received by the time receiving port 56_3, and after the information and format conversion, the converted time information corresponding to the precise time protocol configuration file C is sent to the time synchronization domain 12_3 through the time transmission port 56_4. Accordingly, the time synchronization network system 5 can use the two time synchronization devices 50_1 and 50_2 to achieve time synchronization of the time synchronization domains 52_1~52_3.

在前述實施例中,時間同步裝置透過比對主時鐘對應的精確時間協定配置文件與各連接埠對應的精確時間協定配置文件,來決定各連接埠為時間接收埠或時間傳送埠。在另一實施例中,時間同步裝置可能即為主時鐘,換言之,主時鐘不屬於連接於時間同步裝置之任一時間同步網域。在此情形下,仍可根據流程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 process 3. Please refer to Figure 6, which is a schematic diagram of a time synchronization network system 6 of an embodiment of the present invention. The time synchronization network system 6 includes time synchronization domains 12_1~12_3 and a time synchronization device 60. In this embodiment, the time synchronization network system 6 uses a clock 64 of the time synchronization device 60 as the master clock, and synchronizes the time of the time synchronization domains 12_1~12_3 accordingly. In this embodiment, the master clock 64 does not belong to any of the time synchronization domains 12_1~12_3 connected to the time synchronization device 60, so the time synchronization device 60 can set all the connection ports 66_1~66_3 as time transmission ports (step 302). Since the time synchronization device 60 does not have a time receiving port, the information of the master clock 64 is directly obtained by the time synchronization device 60 itself (step 304). Next, the time synchronization device 60 needs to convert the precise time protocol configuration files A, B, and C used by the time synchronization domains 12_1 to 12_3 corresponding to the time transmission ports 66_1 to 66_3 to generate clock information corresponding to the time synchronization domains 12_1 to 12_3 (step 306). Finally, the converted clock information is sent to the corresponding time synchronization domains 12_1 to 12_3 via the time transmission ports 66_1 to 66_3 (step 308) to synchronize the time. Accordingly, all time synchronization domains 12_1 to 12_3 connected to the time synchronization device 60 can operate according to the time of the master clock 64 provided by the time synchronization device 60.

此外,需注意的是,以上實施例中時間同步網路系統2、4、5、6包含3個時間同步網域以及1或2個時間同步裝置,其僅為說明之用。本發明實施例可適用於任意數量或組合之時間同步網域以及時間同步裝置之時間同步,而不以此為限,本領域具通常知識者當可視實際需求採取適當之網路拓樸。 In addition, it should be noted that the time synchronization network systems 2, 4, 5, and 6 in the above embodiments include 3 time synchronization domains and 1 or 2 time synchronization devices, which are for illustrative purposes only. The embodiments of the present invention can be applied to the time synchronization of any number or combination of time synchronization domains and time synchronization devices, but are not limited thereto. A person with ordinary knowledge in the field can adopt an appropriate network topology according to actual needs.

進一步地,請參考第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 network device 7 of an embodiment of the present invention. The network device 7 may be a network device such as a gateway, a switch, a router, and a bridge operating in a time-sensitive network, but is not limited thereto. Any network device 7 with multiple connection ports can be used to implement the time synchronization devices 10, 40_1, 40_2, 50_1, 50_2, and 60 of the embodiment of the present invention. As shown in FIG. 7, the network device 7 may include a processing unit 70 and a storage unit 72. The processing unit 70 may be a general-purpose processor, a microprocessor, an application-specific integrated circuit (ASIC), etc., or a combination thereof. The storage unit 72 is coupled to the processing unit 70 and can be any data storage device for storing a program code 720, and reading and executing the program code 720 through the processing unit 70. For example, the storage unit 72 can be a read-only memory (ROM), a flash memory, a random access memory (RAM), a hard disk, an optical data storage device, and a non-volatile storage unit, but is not limited thereto.

網路裝置7用以表示實現本發明實施例所需之必要元件,本領域具通常知識者當可據以做不同之修飾、調整,而不限於此。舉例來說,當以網路裝置7實現時間同步裝置時,可將時間同步方法之流程3編譯為程式碼720,並儲存於儲存單元72中,由處理單元70執行時間同步方法。此外,儲存單元72亦用於儲存主時鐘相關資訊、精確時間協定配置文件以及時間同步方法運行時所需之資料,且不限於此。 The network device 7 is used to represent the necessary components required to implement the embodiment of the present invention. A person with ordinary knowledge in the field can make different modifications and adjustments based on it, but it is not limited to this. For example, when the network device 7 is used to implement the time synchronization device, the process 3 of the time synchronization method can be compiled into a program code 720 and stored in the storage unit 72, and the processing unit 70 executes the time synchronization method. In addition, the storage unit 72 is also used to store the main clock related information, the precise time protocol configuration file and the data required for the operation of the time synchronization method, but it is not limited to this.

綜上所述,本發明提供一時間同步方法與裝置,可於多個使用不同精確時間協定配置文件之時間同步網域中進行跨網域之時間同步,改善習知技術中缺乏整合彈性之缺點。 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)

一種時間同步方法,用於一時間同步裝置,該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件(Precision Time Protocol Profile,PTP Profile),該時間同步方法包含有:決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘(Grandmaster,GM)的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步;其中,決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含:決定該主時鐘所屬之一時間同步網域之一第一精確時間協定配置文件;比對該複數個精確時間協定配置文件與該第一精確時間協定配置文件,以產生複數個比對結果;以及根據該複數個比對結果,決定該複數個連接埠之一連接埠為一時間接收埠,並決定其它連接埠為時間傳送埠。 A time synchronization method is used 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 precision time protocol profiles (PTP Profiles). The time synchronization method includes: determining each of the plurality of connection ports to be a time receiving port or a time transmitting port; obtaining information of a grandmaster (GM) in the plurality of time synchronization domains; performing information conversion on the information of the grandmaster according to the precision time protocol profiles corresponding to each time transmitting port of the plurality of connection ports in the plurality of precision time protocol profiles to generate a plurality of clock information corresponding to each time transmitting port of the plurality of connection ports; and transmitting a plurality of clock information corresponding to each time transmitting port of the plurality of connection ports by each time transmitting port of the plurality of connection ports. Sending a corresponding clock information from the plurality of clock information to a corresponding time synchronization domain for time synchronization; wherein the step of determining each of the plurality of ports as a time receiving port or a time transmitting port comprises: determining a first precise time protocol configuration file of a time synchronization domain to which the master clock belongs; comparing the plurality of precise time protocol configuration files with the first precise time protocol configuration file to generate a plurality of comparison results; and determining one of the plurality of ports as a time receiving port and determining the other ports as time transmitting ports based on the plurality of comparison results. 如請求項1所述之時間同步方法,其中根據該複數個比對結果決定該複數個連接埠之一連接埠為一時間接收埠並決定其它連接埠為時間傳送埠之步驟,係於該複數個比對結果之一比對結果顯示一連接埠所對應之一 精確時間協定配置文件符合該第一精確時間協定配置文件時,判斷該連接埠為該時間接收埠,並決定其它連接埠為時間傳送埠。 The time synchronization method as described in claim 1, wherein the step of determining one of the plurality of ports as a time receiving port and determining the other ports as time transmitting ports according to the plurality of comparison results is to determine that the port is the time receiving port and determine the other ports as time transmitting ports when one of the plurality of comparison results shows that a precise time protocol configuration file corresponding to a port meets the first precise time protocol configuration file. 如請求項1所述之時間同步方法,其中取得該複數個時間同步網域中該主時鐘的該資訊之步驟,包含由該時間接收埠接收該主時鐘的該資訊。 The time synchronization method as described in claim 1, wherein the step of obtaining the information of the master clock in the plurality of time synchronization domains includes receiving the information of the master clock from the time receiving port. 如請求項1所述之時間同步方法,其中決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含當該時間同步裝置的一時鐘為該主時鐘時,決定該複數個連接埠之每一連接埠皆為時間傳送埠。 The time synchronization method as described in claim 1, wherein the step of determining each of the plurality of ports to be a time receiving port or a time transmitting port includes determining each of the plurality of ports to be a time transmitting port when a clock of the time synchronization device is the master clock. 如請求項4所述之時間同步方法,其中取得該主時鐘的該資訊之步驟,係由該時間同步裝置取得該主時鐘的該資訊。 The time synchronization method as described in claim 4, wherein the step of obtaining the information of the master clock is to obtain the information of the master clock by the time synchronization device. 如請求項1所述之時間同步方法,其中該時間同步裝置係一網路閘道器、一網路交換器、一路由器或一橋接器。 A time synchronization method as described in claim 1, wherein the time synchronization device is a network gateway, a network switch, a router or a bridge. 如請求項1所述之時間同步方法,其中該複數個精確時間協定配置文件為相異。 A time synchronization method as described in claim 1, wherein the plurality of precise time protocol profiles are different. 一種時間同步裝置,其中該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件(Precision Time Protocol Profile,PTP Profile),該時間同步裝置包含有: 一處理單元,用來執行一程式碼;以及一儲存單元,耦接於該處理單元,用來儲存該程式碼,以指示該處理單元執行一時間同步方法,該時間同步方法包含有:決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘(Grandmaster,GM)的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步;其中,決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含:決定該主時鐘所屬之一時間同步網域之一第一精確時間協定配置文件;比對該複數個精確時間協定配置文件與該第一精確時間協定配置文件,以產生複數個比對結果;以及根據該複數個比對結果,決定該複數個連接埠之一連接埠為一時間接收埠,並決定其它連接埠為時間傳送埠。 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 Precision Time Protocol Profile (PTP) Profile), the time synchronization device comprises: 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 comprising: determining each of the plurality of ports to be a time receiving port or a time transmitting port; obtaining information of a master clock (Grandmaster, GM) in the plurality of time synchronization domains; performing information conversion on the information of the master clock according to the precise time protocol configuration file corresponding to each time transmitting port of the plurality of ports in the plurality of precise time protocol configuration files to generate information corresponding to the plurality of ports A plurality of clock information of each time transmission port; and each time transmission port of the plurality of connection ports transmits a corresponding clock information of the plurality of clock information to a corresponding time synchronization domain for time synchronization; wherein, the step of determining each connection port of the plurality of connection ports as a time receiving port or a time transmission port comprises: determining a first precise time protocol configuration file of a time synchronization domain to which the master clock belongs; comparing the plurality of precise time protocol configuration files with the first precise time protocol configuration file to generate a plurality of comparison results; and determining one of the plurality of connection ports as a time receiving port and determining the other connection ports as time transmission ports according to the plurality of comparison results. 如請求項8所述之時間同步裝置,其中根據該複數個比對結果決定該複數個連接埠之一連接埠為一時間接收埠並決定其它連接埠為時間傳送埠之步驟,係於該複數個比對結果之一比對結果顯示一連接埠所對應之一精確時間協定配置文件符合該第一精確時間協定配置文件時,判斷該連接埠 為該時間接收埠,並決定其它連接埠為時間傳送埠。 The time synchronization device as described in claim 8, wherein the step of determining one of the plurality of ports as a time receiving port and determining the other ports as time transmitting ports according to the plurality of comparison results is to determine that the port is the time receiving port and determine the other ports as time transmitting ports when one of the plurality of comparison results shows that a precise time protocol configuration file corresponding to a port matches the first precise time protocol configuration file. 如請求項8所述之時間同步裝置,其中取得該複數個時間同步網域中該主時鐘的該資訊之步驟,包含由該時間接收埠接收該主時鐘的該資訊。 The time synchronization device as described in claim 8, wherein the step of obtaining the information of the master clock in the plurality of time synchronization domains includes receiving the information of the master clock from the time receiving port. 如請求項8所述之時間同步裝置,其中決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含當該時間同步裝置的一時鐘為該主時鐘時,決定該複數個連接埠之每一連接埠皆為時間傳送埠。 The time synchronization device as described in claim 8, wherein the step of determining whether each of the plurality of ports is a time receiving port or a time transmitting port includes determining that each of the plurality of ports is a time transmitting port when a clock of the time synchronization device is the master clock. 如請求項11所述之時間同步裝置,其中取得該主時鐘的該資訊之步驟,係由該時間同步裝置取得該主時鐘的該資訊。 The time synchronization device as described in claim 11, wherein the step of obtaining the information of the master clock is to obtain the information of the master clock by the time synchronization device. 如請求項8所述之時間同步裝置,其係一網路閘道器、一網路交換器、一路由器或一橋接器。 The time synchronization device as described in claim 8 is a network gateway, a network switch, a router or a bridge. 如請求項8所述之時間同步裝置,其中該複數個精確時間協定配置文件為相異。 A time synchronization device as described in claim 8, wherein the plurality of precise time protocol configuration files are different.
TW112109568A 2022-06-22 2023-03-15 Method and device for time synchronization of time synchronization domains TWI866115B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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