TW202402008A - 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
TW202402008A
TW202402008A TW112109568A TW112109568A TW202402008A TW 202402008 A TW202402008 A TW 202402008A TW 112109568 A TW112109568 A TW 112109568A TW 112109568 A TW112109568 A TW 112109568A TW 202402008 A TW202402008 A TW 202402008A
Authority
TW
Taiwan
Prior art keywords
time
time synchronization
port
information
ports
Prior art date
Application number
TW112109568A
Other languages
Chinese (zh)
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/US20230421280A1/en
Priority to EP23178414.1A priority patent/EP4297303A1/en
Priority to JP2023101190A priority patent/JP2024001873A/en
Publication of TW202402008A publication Critical patent/TW202402008A/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)

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 method and device for domain synchronization time

本發明係指一種時間同步方法以及裝置,尤指一種於多個時間同步網域中進行時間同步的時間同步方法以及裝置。The present invention refers to a time synchronization method and device, and in particular, to a time synchronization method and device for time synchronization in multiple time synchronization network domains.

精確時間協定(Precision Time Protocol,PTP)係由IEEE 1588所制定的時間同步的基礎標準,用於實現高精度之時鐘同步。然而,隨著市場演變,於各種不同網路之應用皆有其各自之不同需求,因此先前技術根據不同的應用而提出許多不同的PTP配置文件(Profile),例如用於電力網路之Power Profile(IEEE Std C37.238)、電信網路之Telecom Profile(ITU-T G.8265.1)以及廣義精準時間同步協定(IEEE Std 802.1AS:Generalized Precision Time Protocol,gPTP)配置文件等。配置文件允許不同領域之應用可以設置不同的操作參數、屬性以及預設值等設定以符合需求,導致使用各種不同配置文件之設備以及網路之間無法有效互通。一般而言,為了確保時間同步,同一環境下的裝置或設備等皆要求使用相對應的配置文件,使得跨領域之時間整合相對困難。Precision Time Protocol (PTP) is the basic standard for time synchronization formulated by IEEE 1588 and is used to achieve high-precision clock synchronization. However, as the market evolves, applications in various networks have their own different requirements. Therefore, previous technologies have proposed many different PTP profiles (Profiles) according to different applications, such as Power Profile (Power Profile) for power networks. IEEE Std C37.238), Telecom Profile of telecommunications network (ITU-T G.8265.1) and Generalized Precision Time Synchronization Protocol (IEEE Std 802.1AS: Generalized Precision Time Protocol, gPTP) configuration files, etc. Configuration files allow applications in different fields to set different operating parameters, attributes, default values, and other settings to meet their needs. As a result, devices and networks using various configuration files cannot 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 precise time synchronization in Time Sensitive Networks is standardized by the generalized precision time synchronization protocol defined by IEEE 802.1AS. The Generalized Precision 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 need to support gPTP profiles in order to perform time synchronization on time-sensitive networks. In this case, the device manufacturer needs to update the device or modify all devices that use other types of configuration files to use gPTP configuration files, which causes great trouble. Therefore, there is a need to improve conventional techniques.

因此,本發明之主要目的即在於提供一種在不影響時間同步準確度的情況下整合多個使用不同類型精確時間協定配置文件之裝置或網路以進行時間同步之方法,以改善習知技術之缺點。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 profiles for time synchronization without affecting the accuracy of time synchronization, so as to improve the conventional technology. shortcoming.

本發明實施例揭露一種時間同步方法,用於一時間同步裝置,該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件。該時間同步方法包含有決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。An 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 network domains through a plurality of connection ports. The plurality of time synchronization network domains use a plurality of precise time protocol configuration files. The time synchronization method includes determining each connection port of the plurality of connection ports as a time receiving port or a time transmission port; obtaining information of a master clock in the plurality of time synchronization domains; and based on the plurality of precise times. A precise time protocol configuration file corresponding to each time port of the plurality of ports in the protocol configuration file is used to perform information conversion on the information of the master clock to generate each time port corresponding to the plurality of ports. A plurality of clock information; and transmitting a corresponding clock information among the plurality of clock information to a corresponding time synchronization network domain from each time transfer port of the plurality of connection ports for time synchronization.

本發明實施例另揭露一種時間同步裝置,其中該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件,該時間同步裝置包含有一處理單元,用來執行一程式碼;以及一儲存單元,耦接於該處理單元,用來儲存該程式碼,以指示該處理單元執行一時間同步方法。該時間同步方法包含有決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠;取得該複數個時間同步網域中一主時鐘的一資訊;根據該複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊;以及由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。An embodiment of the present invention further discloses a time synchronization device, wherein the time synchronization device is connected to a plurality of time synchronization network domains through a plurality of connection ports, and the plurality of time synchronization network domains use a plurality of precise time protocol configuration files. The time synchronization device includes There is 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 connection port of the plurality of connection ports as a time receiving port or a time transmission port; obtaining information of a master clock in the plurality of time synchronization domains; and based on the plurality of precise times. A precise time protocol configuration file corresponding to each time port of the plurality of ports in the protocol configuration file is used to perform information conversion on the information of the master clock to generate each time port corresponding to the plurality of ports. A plurality of clock information; and transmitting a corresponding clock information among the plurality of clock information to a corresponding time synchronization network domain from each time transfer port of the plurality of connection ports for time synchronization.

在說明書及後續的申請專利範圍當中使用了某些詞彙來指稱特定的元件。所屬領域中具有通常知識者應可理解,硬體製造商可能會用不同的名詞來稱呼同一個元件。本說明書及後續的申請專利範圍並不以名稱的差異來做為區分元件的方式,而是以元件在功能上的差異來做為區分的準則。在通篇說明書及後續的申請專利範圍當中所提及的「包含」係為一開放式的用語,故應解釋成「包含但不限定於」。Certain words are used in the description and subsequent patent claims to refer to specific components. It will be understood by those with ordinary knowledge in the art 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 differences in functions as a criterion for distinction. The "include" mentioned throughout the specification and subsequent patent claims is an open-ended term, and therefore should be interpreted as "include 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 Figure 1, which is a schematic diagram of a network system 1. The network system 1 includes time synchronization domains (domains) 12_1 to 12_3, where each time synchronization domain can be a network domain composed of a wired network, a wireless network, or a combination of the two, and can be composed of multiple devices and A network domain composed of multiple network switches and other equipment (including multiple clocks) can also be a network domain composed of only a single device (only one clock). 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 Profile (PTP Profile) A to C respectively. It should be noted that since the time synchronization domains 12_1 ~ 12_3 run the time synchronization mechanism according to different precise time agreement configuration files A ~ C, cross-domain time synchronization integration cannot be performed. In this case, each time synchronization network domain has an optimal clock (such as the optimal clocks 14_1~14_3 in Figure 1) running as the master clock (Grandmaster, GM) of each time-sensitive network domain, that is That is, devices belonging to the same network domain all synchronize their time according to the master clock of the network domain to which they belong. Among them, the best clock refers to the most ideal clock suitable for a specific time synchronization network domain evaluated based on factors such as time source, time accuracy, oscillator stability, etc. It can also be determined by humans as the most suitable clock for a specific time synchronization network domain. clock. In this case, when a manufacturer wants to replace or add a new device in a network domain, the new device must be compatible with the precise time protocol configuration file used by the corresponding network domain; when the device manufacturer develops the device, it must be based on various different Precision time agreement configuration files require equipment customization or adjustment before they can be used in different fields; when the domain to which they belong wants to integrate with other specific time synchronization domains, it may be necessary to upgrade all equipment and network devices to integrate with the generalized time synchronization domain. Precision Time Protocol profile compatibility.

為了使網路系統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 time synchronization accuracy, the present invention provides a time synchronization device that can be connected to the time synchronization network domains 12_1 to 12_3 , used to integrate the time of different time synchronization domains. For details, please refer to Figure 2. Figure 2 is a schematic diagram of a time synchronization network system 2 according to an embodiment of the present invention. The time synchronization network system 2 includes time synchronization network domains 12_1 to 12_3 and a time synchronization device 10 . The time synchronization device 10 may 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 network domains 12_1 to 12_3 through the connection ports 16_1 to 16_3 respectively. In the embodiment of the present invention, the time synchronization network domains 12_1 ~ 12_3 can perform time synchronization through the time synchronization device 10 according to a time synchronization method, thereby achieving that all the equipment and devices in the time synchronization network domains 12_1 ~ 12_3 are based on the specified network domain. The time of the main clock 14_1 is synchronized. In addition, in the time synchronization network system 2, the number of time synchronization network domains 12_1 to 12_3 is 3, which is for illustration only. The time synchronization device 10 of the embodiment of the present invention can be applied to any number of time synchronization network domains. time synchronization, but not limited to this.

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

步驟300:開始。Step 300: Start.

步驟302:決定複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠。Step 302: Determine each of the plurality of ports to be a temporal receiving port or a temporal transmitting port.

步驟304:取得複數個時間同步網域中一主時鐘的一資訊。Step 304: Obtain information of a master clock in a plurality of time synchronization network domains.

步驟306:根據複數個精確時間協定配置文件中對應於該複數個連接埠之每一時間傳送埠的精確時間協定配置文件,對該主時鐘之該資訊進行資訊轉換,以產生對應於該複數個連接埠之每一時間傳送埠的複數個時鐘資訊。Step 306: Convert the information of the master clock according to the precise time protocol configuration files corresponding to each time transmission port of the plurality of connection ports to generate information corresponding to the plurality of precise time protocol configuration files. Multiple clock information for each time-sent port.

步驟308:由該複數個連接埠之每一時間傳送埠傳送該複數個時鐘資訊中一對應的時鐘資訊至一對應的時間同步網域,以進行時間同步。Step 308: Send a corresponding clock information among the plurality of clock information to a corresponding time synchronization network domain from each time transmission port of the plurality of connection ports for time synchronization.

步驟310:結束。Step 310: End.

根據流程3,時間同步裝置10先決定複數個連接埠分別為一時間接收埠或一時間傳送埠(步驟302)。其中,時間接收埠表示用於接收相關於時鐘以及時間等資訊的連接埠,或者根據精確時間協定之規範,即連接埠狀態(portState)設定為SlavePort之連接埠;時間傳送埠則是用於傳送相關於時鐘以及時間等資訊的連接埠,或者根據精確時間協定之規範,即連接埠狀態設定為MasterPort之連接埠。決定各連接埠為一時間接收埠或一時間傳送埠時間後,時間同步裝置10需進一步取得相關於主時鐘之資訊(步驟304)。據此,時間同步裝置10需根據複數個精確時間協定配置文件中對應於每一時間傳送埠的精確時間協定配置文件,對主時鐘之資訊進行資訊轉換,以產生對應於各時間傳送埠的時鐘資訊(步驟306),進而由各時間傳送埠發送時鐘資訊至對應之時間同步網域(步驟308),藉以同步時間。據此,可使連接時間同步裝置10的所有時間同步網域皆根據同一主時鐘之時間運行之目的。According to the process 3, the time synchronization device 10 first determines a plurality of connection ports as a time receiving port or a time transmitting port (step 302). Among them, the time receiving port represents a connection port used to receive information related to clock and time, or according to the specifications of the precise time protocol, that is, the port state (portState) is set to SlavePort; the time transmission port is used to transmit Ports related to clock and time information, or ports whose port status is set to MasterPort according to the specifications of the Precision Time Protocol. After determining that each connection 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 agreement configuration file corresponding to each time transmission port among the plurality of precise time agreement configuration files to generate a clock corresponding to each time transmission port. information (step 306), and then sends the clock information from each time transmission port to the corresponding time synchronization network domain (step 308), thereby synchronizing the time. Accordingly, all time synchronization network 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 information from each time transmission port. clock information to the corresponding time synchronization domain. Accordingly, all equipment and devices in the time synchronization network system 2 can be operated 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,藉以同步時間。Specifically, taking Figure 2 as an example, the time synchronization device 10 first determines each of the connection ports 16_1 to 16_3 as a time receiving port or a time transmitting port. In one embodiment, the time synchronization device 10 can first determine the precise time protocol configuration file A of the time synchronization network domain 12_1 to which the master clock 14_1 belongs, and then compare the corresponding ones used by all the connection ports 16_1 to 16_3 of the time synchronization device 10 one by one. Precise Time Agreement Profile. 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 time transfer ports. Since the time receiving port 16_1 receives clock-related information sent from the master clock 14_1 in the time synchronization domain 12_1, such as Announce message, Sync message, etc., the time synchronization device 10 can pass the time Receive port 16_1 obtains information about the master clock. Further, the time synchronization device 10 needs to perform information conversion on the precise time agreement configuration files B and C respectively, that is, the time synchronization domains 12_2 and 12_3 corresponding to the time transmission ports 16_2 and 16_3, to generate the time synchronization domains corresponding to the time transmission ports 16_2 and 16_3. Clock information of 12_2 and 12_3. Finally, the time synchronization device 10 sends the converted clock information to the corresponding time synchronization network domains 12_2 and 12_3 through the time transmission ports 16_2 and 16_3, thereby synchronizing 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 network 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 network domain 12_1 is the information transmitted according to the precise time protocol configuration file A. Therefore, the format and information conversion need to be performed by the time synchronization device 10 in order to generate the information suitable for using different precise time protocol configuration files. domain. 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 network domains 12_2 and 12_3 respectively, and finally formats the converted information. Time information is sent to time synchronization domains 12_2 and 12_3 through time transmission ports 16_2 and 16_3 respectively. This allows time synchronization across various domains using different precise time protocol profiles.

在第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 Figure 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 network domains connected to the time synchronization device 10 run according to the time of the same master clock, thus synchronizing the time. Those with ordinary knowledge in the art can make appropriate changes according to the requirements of the system, and are not limited to this. For example, please refer to Figure 4, which is a schematic diagram of a time synchronization network system 4 according to an embodiment of the present invention. In this embodiment, the time synchronization network system 4 performs time synchronization of the time synchronization network domains 12_1 to 12_3 through two time synchronization devices 40_1 and 40_2. Among them, the time synchronization device 40_1 is connected to the time synchronization network domains 12_1 and 12_2 through the connection ports 46_1 and 46_2 respectively, and the time synchronization device 40_2 is connected to the time synchronization network domains 12_2 and 12_3 through the connection ports 46_3 and 46_4 respectively. Similar to the operation mode of the time synchronization device 10, after determining the time synchronization network domain to which the master clock 14_1 belongs, the time synchronization device 40_1 can determine the corresponding precise time protocol profile A, and accordingly determine the connection port 46_1 as a time receiving port, and the connection port 46_2 is a time transfer port. Therefore, through the time synchronization device 40_1, the information related to the master clock 14_1 of the precise time protocol profile A can be received through the time receiving port 46_1. After the information and format are converted, the information corresponding to the precise time protocol profile A can be sent through the time transmission port 46_2. B's time information is sent to the time synchronization domain 12_2. In this case, the time synchronization network domain 12_2 can be made to perform time synchronization according to the master clock 14_1 located in the time synchronization network domain 12_1. Correspondingly, since the master clock 14_1 is transmitted to the time synchronization device 40_2 through the time synchronization network 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 related to the master clock 14_1 of the precise time protocol profile B can be received through the time receiving port 46_3. After the information and format are converted, the information corresponding to the precise time protocol profile B can be sent through the time transmission port 46_4. The time information of C is sent to the time synchronization domain 12_3. Accordingly, the time synchronization network system 4 can utilize the two time synchronization devices 40_1 and 40_2 to achieve time synchronization of the time synchronization network 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 Figure 5. Figure 5 is a schematic diagram of a time synchronization network system 5 according to an embodiment of the present invention. In this embodiment, the time synchronization network system 5 performs time synchronization of the time synchronization network domains 12_1 to 12_3 through two time synchronization devices 50_1 and 50_2. Among them, the time synchronization device 50_1 is connected to the time synchronization network 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 network domains 12_1 and 12_3 through the connection ports 56_3 and 56_4 respectively. After determining the time synchronization network 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 determines the connection port 56_1 as a time receiving port and the connection port 56_2 as a time transmitting port. Through the time synchronization device 50_1, the information related to the master clock 14_1 of the precise time agreement profile A can be received through the time receiving port 56_1. After the information and format are converted, the information corresponding to the precise time agreement profile B is sent out through the time transmission port 56_2. Time information to time synchronization domain 12_2. In this way, the time synchronization network domain 12_2 can be time synchronized according to the master clock 14_1 located in the time synchronization network domain 12_1. Similarly, the time synchronization device 50_2 can determine the connection port 56_3 to be a time receiving port and the connection port 56_4 to be a time transmitting port. Through the time synchronization device 50_2, the information related to the master clock 14_1 of the precise time agreement profile A can be received through the time receiving port 56_3. After the information and format are converted, the information corresponding to the precise time agreement profile C is sent out through the time transmission port 56_4. The converted time information is sent to the time synchronization domain 12_3. Accordingly, the time synchronization network system 5 can utilize the two time synchronization devices 50_1 and 50_2 to achieve time synchronization of the time synchronization network domains 52_1 to 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 embodiments, the time synchronization device determines whether each connection port is 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 connection 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 network 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 according to an embodiment of the present invention. The time synchronization network system 6 includes time synchronization network domains 12_1 to 12_3 and a time synchronization device 60 . In this embodiment, the time synchronization network system 6 uses one of the clocks 64 of the time synchronization device 60 as the main clock, and synchronizes the time of the time synchronization network domains 12_1 to 12_3 accordingly. In this embodiment, the master clock 64 does not belong to any time synchronization network domain 12_1˜12_3 connected to the time synchronization device 60. Therefore, the time synchronization device 60 can set all 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 from the time synchronization device 60 itself (step 304). Next, the time synchronization device 60 needs to perform information conversion on the precise time protocol configuration files A, B, and C used by the time synchronization domains 12_1 ~ 12_3 corresponding to the time transmission ports 66_1 ~ 66_3, respectively, to generate the time synchronization domain 12_1 corresponding to the precise time protocol configuration files A, B, and C. ~12_3 clock information (step 306). Finally, the converted clock information is sent to the corresponding time synchronization network domains 12_1 to 12_3 through the time transmission ports 66_1 to 66_3 (step 308), so as to synchronize the time. Accordingly, all time synchronization network 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 in the above embodiments, the time synchronization network systems 2, 4, 5, and 6 include 3 time synchronization network domains and 1 or 2 time synchronization devices, which are for illustration only. The embodiments of the present invention can be applied to time synchronization of any number or combination of time synchronization network domains and time synchronization devices, but are not limited thereto. Those with ordinary knowledge in the art can adopt 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 according to 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 running 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 in 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 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 used to store a program code 720 and read and execute the program code 720 through the processing unit 70 . For example, the storage unit 72 may be a read-only memory (ROM), a flash memory (flash memory), a random access memory (RAM), a hard disk, and an optical data storage device. Non-volatile storage units, etc., but not limited to these.

網路裝置7用以表示實現本發明實施例所需之必要元件,本領域具通常知識者當可據以做不同之修飾、調整,而不限於此。舉例來說,當以網路裝置7實現時間同步裝置時,可將時間同步方法之流程3編譯為程式碼720,並儲存於儲存單元72中,由處理單元70執行時間同步方法。此外,儲存單元72亦用於儲存主時鐘相關資訊、 精確時間協定配置文件以及時間同步方法運行時所需之資料,且不限於此。The network device 7 is used to represent the necessary components needed to implement the embodiment of the present invention. Those with ordinary skill in the art can make different modifications and adjustments accordingly, without being limited thereto. 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 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 master clock related information, precise time agreement configuration files, and data required for running the time synchronization method, but is not limited thereto.

綜上所述,本發明提供一時間同步方法與裝置,可於多個使用不同精確時間協定配置文件之時間同步網域中進行跨網域之時間同步,改善習知技術中缺乏整合彈性之缺點。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 In summary, the present invention provides a time synchronization method and device that can perform cross-domain time synchronization in multiple time synchronization network domains using different precise time protocol configuration files, thereby improving the shortcomings of the conventional technology that lack integration flexibility. . The above are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the patentable scope of the present invention shall fall within the scope of the present invention.

1:網路系統 12_1~12_3:時間同步網域 14_1~14_3:本地最佳時鐘 A、B、C:精確時間協定配置文件 2、4、5、6:時間同步網路系統 10:時間同步裝置 16_1~16_3:連接埠 3:流程 300~314:步驟 40_1、40_2:時間同步裝置 40_1~40_4:連接埠 50_1、50_2:時間同步裝置 50_1~50_4:連接埠 60:時間同步裝置 60_1~60_3:連接埠 64:主時鐘 7:網路裝置 70:處理單元 72:儲存單元 720:程式碼 1: Network system 12_1~12_3: Time synchronization domain 14_1~14_3: Best local clock A, B, C: Precise Time Agreement Profile 2, 4, 5, 6: Time synchronization network system 10: Time synchronization device 16_1~16_3: Port 3: Process 300~314: steps 40_1, 40_2: Time synchronization device 40_1~40_4: Port 50_1, 50_2: Time synchronization device 50_1~50_4: connection port 60: Time synchronization device 60_1~60_3: connection port 64:Master clock 7:Network device 70: Processing unit 72:Storage unit 720:Program code

第1圖為一網路系統示意圖。 第2圖為本發明實施例一時間同步網路系統之示意圖。 第3圖為本發明實施例一時間同步方法之流程示意圖。 第4圖為本發明實施例包含兩個時間同步裝置的時間同步網路系統示意圖。 第5圖為本發明實施例包含兩個時間同步裝置的時間同步網路系統示意圖。 第6圖為本發明實施例中以時間同步裝置之時間進行同步之時間同步網路系統示意圖。 第7圖為本發明實施例一網路裝置之示意圖。 Figure 1 is a schematic diagram of a network system. Figure 2 is a schematic diagram of a time synchronization network system according to an embodiment of the present invention. Figure 3 is a schematic flow chart of a time synchronization method according to an embodiment of the present invention. 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. 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. Figure 6 is a schematic diagram of a time synchronization network system using the time of a time synchronization device in an embodiment of the present invention. Figure 7 is a schematic diagram of a network device according to an embodiment 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: Port

A、B、C:精確時間協定配置文件 A, B, C: Precise Time Agreement Profile

Claims (16)

一種時間同步方法,用於一時間同步裝置,該時間同步裝置透過複數個連接埠連接複數個時間同步網域,該複數個時間同步網域使用複數個精確時間協定配置文件(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 network domains through a plurality of connection ports. The plurality of time synchronization network domains use a plurality of Precision Time Protocol Profiles (Precision Time Protocol Profile, PTP Profile), the time synchronization method includes: Determine each of the plurality of ports to be a temporal receiving port or a temporal transmitting port; Obtain information about a master clock (Grandmaster, GM) in the plurality of time synchronization domains; According to the precise time protocol configuration files corresponding to each time transmission port of the plurality of connection ports, the information of the master clock is converted into information to generate the information corresponding to the plurality of connection ports. A plurality of clock information for each time port; and Each time transmission port of the plurality of connection ports transmits a corresponding clock information among the plurality of clock information to a corresponding time synchronization network domain for time synchronization. 如請求項1所述之時間同步方法,其中決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含: 決定該主時鐘所屬之一時間同步網域之一第一精確時間協定配置文件; 比對該複數個精確時間協定配置文件與該第一精確時間協定配置文件,以產生複數個比對結果;以及 根據該複數個比對結果,決定該複數個連接埠之一連接埠為一時間接收埠,並決定其它連接埠為時間傳送埠。 The time synchronization method as described in claim 1, wherein the step of determining each of the plurality of ports as a time receiving port or a time transmitting port includes: Determine the first precise time agreement profile of one of the time synchronization domains to which the master clock belongs; Comparing the plurality of precision time agreement configuration files with the first precision time agreement configuration file to generate a plurality of comparison results; and According to the plurality of comparison results, one of the plurality of connection ports is determined to be a time receiving port, and the other connection port is determined to be a time transmitting port. 如請求項2所述之時間同步方法,其中根據該複數個比對結果決定該複數個連接埠之一連接埠為一時間接收埠並決定其它連接埠為時間傳送埠之步驟,係於該複數個比對結果之一比對結果顯示一連接埠所對應之一精確時間協定配置文件符合該第一精確時間協定配置文件時,判斷該連接埠為該時間接收埠,並決定其它連接埠為時間傳送埠。The time synchronization method as described in claim 2, wherein the step of determining one of the plurality of ports as a time receiving port and determining other ports as a time transmitting port based on the plurality of comparison results is based on the plurality of comparison results. When one of the comparison results shows that a precise time protocol profile corresponding to a port matches the first precise time protocol profile, the port is determined to be the time receiving port, and the other ports are determined to be time Transfer port. 如請求項2所述之時間同步方法,其中取得該複數個時間同步網域中該主時鐘的該資訊之步驟,包含由該時間接收埠接收該主時鐘的該資訊。The time synchronization method as described in claim 2, wherein the step of obtaining the information of the master clock in the plurality of time synchronization network 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 connection port of the plurality of connection ports to be a time receiving port or a time transmitting port includes when a clock of the time synchronization device is the master clock , determines that each of the plurality of ports is a time transfer port. 如請求項5所述之時間同步方法,其中取得該主時鐘的該資訊之步驟,係由該時間同步裝置取得該主時鐘的該資訊。The time synchronization method as described in claim 5, 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所述之時間同步方法,其中該時間同步裝置係一網路閘道器、一網路交換器、一路由器或一橋接器。The 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所述之時間同步方法,其中該複數個精確時間協定配置文件為相異。The time synchronization method as described in claim 1, wherein the plurality of precise time agreement configuration files 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 network domains through a plurality of connection ports, and the plurality of time synchronization network domains use a plurality of Precision Time Protocol Profiles (PTP Profiles). The time Sync devices include: a processing unit for executing a program code; and A storage unit, coupled to the processing unit, is used to store the program code to instruct the processing unit to execute a time synchronization method. The time synchronization method includes: Determine each of the plurality of ports to be a temporal receiving port or a temporal transmitting port; Obtain information about a master clock (Grandmaster, GM) in the plurality of time synchronization domains; According to the precise time protocol configuration files corresponding to each time transmission port of the plurality of connection ports, the information of the master clock is converted into information to generate the information corresponding to the plurality of connection ports. A plurality of clock information for each time port; and Each time transmission port of the plurality of connection ports transmits a corresponding clock information among the plurality of clock information to a corresponding time synchronization network domain for time synchronization. 如請求項9所述之時間同步裝置,其中決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含: 決定該主時鐘所屬之一時間同步網域之一第一精確時間協定配置文件; 比對該複數個精確時間協定配置文件與該第一精確時間協定配置文件,以產生複數個比對結果;以及 根據該複數個比對結果,決定該複數個連接埠之一連接埠為一時間接收埠,並決定其它連接埠為時間傳送埠。 The time synchronization device as claimed in claim 9, wherein the step of determining each of the plurality of ports as a time receiving port or a time transmitting port includes: Determine the first precise time agreement profile of one of the time synchronization domains to which the master clock belongs; Comparing the plurality of precision time agreement configuration files with the first precision time agreement configuration file to generate a plurality of comparison results; and According to the plurality of comparison results, one of the plurality of connection ports is determined to be a time receiving port, and the other connection port is determined to be a time transmitting port. 如請求項10所述之時間同步裝置,其中根據該複數個比對結果決定該複數個連接埠之一連接埠為一時間接收埠並決定其它連接埠為時間傳送埠之步驟,係於該複數個比對結果之一比對結果顯示一連接埠所對應之一精確時間協定配置文件符合該第一精確時間協定配置文件時,判斷該連接埠為該時間接收埠,並決定其它連接埠為時間傳送埠。The time synchronization device as claimed in claim 10, wherein the step of determining one of the plurality of connection ports as a time receiving port and determining other connection ports as a time transmission port based on the plurality of comparison results is based on the plurality of comparison results. When one of the comparison results shows that a precise time protocol profile corresponding to a port matches the first precise time protocol profile, the port is determined to be the time receiving port, and the other ports are determined to be time Transfer port. 如請求項10所述之時間同步裝置,其中取得該複數個時間同步網域中該主時鐘的該資訊之步驟,包含由該時間接收埠接收該主時鐘的該資訊。The time synchronization device of claim 10, wherein the step of obtaining the information of the master clock in the plurality of time synchronization network domains includes receiving the information of the master clock from the time receiving port. 如請求項9所述之時間同步裝置,其中決定該複數個連接埠之每一連接埠為一時間接收埠或一時間傳送埠之步驟,包含當該時間同步裝置的一時鐘為該主時鐘時,決定該複數個連接埠之每一連接埠皆為時間傳送埠。The time synchronization device as claimed in claim 9, wherein the step of determining each connection port of the plurality of connection ports as a time receiving port or a time transmission port includes when a clock of the time synchronization device is the master clock. , determines that each of the plurality of ports is a time transfer port. 如請求項13所述之時間同步裝置,其中取得該主時鐘的該資訊之步驟,係由該時間同步裝置取得該主時鐘的該資訊。The time synchronization device as described in claim 13, 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. 如請求項9所述之時間同步裝置,其係一網路閘道器、一網路交換器、一路由器或一橋接器。The time synchronization device described in claim 9 is a network gateway, a network switch, a router or a bridge. 如請求項9所述之時間同步裝置,其中該複數個精確時間協定配置文件為相異。The time synchronization device of claim 9, wherein the plurality of precise time agreement configuration files are different.
TW112109568A 2022-06-22 2023-03-15 Method and device for time synchronization of time synchronization domains TW202402008A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US18/207,152 US20230421280A1 (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 JP2024001873A (en) 2022-06-22 2023-06-20 Method and device for time synchronization of time synchronization domains

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 (1)

Publication Number Publication Date
TW202402008A true TW202402008A (en) 2024-01-01

Family

ID=89209293

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112109568A TW202402008A (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) TW202402008A (en)

Also Published As

Publication number Publication date
CN117278162A (en) 2023-12-22

Similar Documents

Publication Publication Date Title
JP3698074B2 (en) Network synchronization method, LSI, bus bridge, network device, and program
US20110129048A1 (en) Synchronized system for distributing and processing signals, in particular audio signals in a wireless loudspeaker network
WO2017133478A1 (en) Method and clock for time synchronization
WO2014101669A1 (en) Time synchronization method and system
WO2011160595A1 (en) Method, slave clock node and system for selecting master clock node based on precision time protocol (ptp) and link quality
IL164037A (en) Synchronization system for all optical slotted ring dynamic networks
US20110305165A1 (en) Method and system for physical-layer handshaking for timing role transition
CN102457346A (en) Time synchronization realizing method and clock node
KR20000071781A (en) Network synchronization system and network synchronization method
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
JP2005507575A (en) Telecommunications network with automatic topology detection and method for this detection
TW202402008A (en) Method and device for time synchronization of time synchronization domains
US20230199683A1 (en) Clock synchronization mode indication method and communication apparatus
CN102170398B (en) The reverse method of external time port and device
CN115580369B (en) EtherCAT and TSN fusion networking time synchronization method
WO2005067195A1 (en) A method for implementing the synchronization of the timing sources in the network
US20230421280A1 (en) Method and Device for Time Synchronization of Time Synchronization Domains
WO2022151993A1 (en) Method, device and system for detecting time synchronization performance
KR20040093092A (en) Internal signaling method to support clock synchronization of nodes connected via a wireless local area network
CN106533597A (en) Selection method of time source and network element node
KR20210026367A (en) A method for time synchronization on heterogeneous wireless mesh network nodes
Machnikowski et al. Challenges with linuxptp on Telco RAN deployments
WO2022083537A1 (en) Time synchronisation method, first node, second node, and network
CN114938345B (en) Link discovery method, device and storage medium
CN116015526B (en) Message processing method, device, electronic equipment and machine-readable storage medium