[go: up one dir, main page]

TWI841375B - Synchronization system for network clock signal - Google Patents

Synchronization system for network clock signal Download PDF

Info

Publication number
TWI841375B
TWI841375B TW112116991A TW112116991A TWI841375B TW I841375 B TWI841375 B TW I841375B TW 112116991 A TW112116991 A TW 112116991A TW 112116991 A TW112116991 A TW 112116991A TW I841375 B TWI841375 B TW I841375B
Authority
TW
Taiwan
Prior art keywords
clock signal
built
communication device
main
physical layer
Prior art date
Application number
TW112116991A
Other languages
Chinese (zh)
Other versions
TW202446026A (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 TW112116991A priority Critical patent/TWI841375B/en
Application granted granted Critical
Publication of TWI841375B publication Critical patent/TWI841375B/en
Publication of TW202446026A publication Critical patent/TW202446026A/en

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

A system is configured for synchronizing network clock signal clock signal. In the system, at least one relay communication device is configured to generate a built-in clock signal, and receive an original master clock signal from a master communication device. When the relay communication device receives the original master clock signal, a synchronization clock signal is generated as a standard system clock signal by synchronizing the built-in clock signal with the original master clock signal; and when interrupting receiving the original master clock signal, the built-in clock signal is served as the standard system clock signal. The relay communication device further transmits the standard system clock signal to at least one downlink communication device to be served as a synchronization standard system clock signal of the downlink communication device.

Description

網路時鐘信號同步化系統Network clock signal synchronization system

本發明係有關於一種同步化系統,尤其是指一種網路時鐘信號同步化系統。The present invention relates to a synchronization system, and more particularly to a network clock signal synchronization system.

在網路通信系統中,許多工作都必須在同步的時間系統下才能精確地執行。特別是在執行與時序有關的工作時,若時間系統不同步,則可能造成運算結果錯誤(如計次或計時運算錯誤)或者程式邏輯矛盾而無法繼續執行工作等問題發生,由於資料傳遞的是在數毫秒、數微秒時間甚至更短的時間內完成,一旦時鐘信號稍有誤差,就更容易發生上述種種問題。In network communication systems, many tasks must be performed accurately under a synchronized time system. Especially when performing tasks related to timing, if the time system is not synchronized, it may cause errors in calculation results (such as counting or timing errors) or program logic contradictions and inability to continue to execute tasks. Since data transmission is completed within milliseconds, microseconds or even shorter times, once the clock signal has a slight error, the above problems are more likely to occur.

一般而言,網路時間多半是以時間脈衝的形式來傳遞。實現網路時間的同步化,通常會在一網路架構最上層的頂層(服務)通信節點裝置(通常是資料存取量大的節點,如雲端伺服器或檔案伺服器)中設置一內建時脈產生裝置(譬如石英晶體振盪器)所產生之一時鐘信號(譬如晶振時鐘信號)作為一主時鐘信號,並使自頂層通信節點裝置經過下行通信路徑傳遞到所有下行通信裝置(如交換器、閘道器、中繼器、路由器或終端工作裝置),並使所有下行通信裝置都能以主時鐘信號作為時間同步化的基準,以使頂層通信節點裝置與其所有下行通信裝置的時間都能同步化。Generally speaking, network time is mostly transmitted in the form of time pulses. To achieve network time synchronization, a clock signal (such as a crystal clock signal) generated by a built-in clock generating device (such as a quartz crystal oscillator) is usually set in the top layer (service) communication node device at the top of a network architecture (usually a node with a large amount of data access, such as a cloud server or file server) as a master clock signal, and is transmitted from the top layer communication node device to all downstream communication devices (such as switches, gateways, repeaters, routers or terminal working devices) through the downstream communication path, and all downstream communication devices can use the master clock signal as the basis for time synchronization, so that the time of the top layer communication node device and all its downstream communication devices can be synchronized.

然而,在實務上,一旦頂層(服務)通信節點裝置之內建時脈產生裝置發生故障(包含本身損壞或連接線路損壞所造成的長時間故障,或元器件暫時超負荷所產生的暫時性故障),就無法將主時鐘信號傳遞至下行通信裝置,造成所有下行通信裝置因為中斷接收主時鐘信號而無法保持彼此間的時間同步。However, in practice, once the built-in clock generator of the top-level (service) communication node device fails (including long-term failures caused by damage to the device itself or damage to the connecting line, or temporary failures caused by temporary overload of components), the main clock signal cannot be transmitted to the downstream communication device, causing all downstream communication devices to be unable to maintain time synchronization with each other due to interruption of receiving the main clock signal.

有鑒於在先前技術中,普遍存在一旦無法將主時鐘信號傳遞至下行通信裝置時,就會造成所有下行通信裝置之間無法保持時間同步之問題,本發明之主要目的在於提供一種新的網路時鐘信號同步化系統,藉以在主時鐘信號中斷傳送至下行通信裝置時,使至少部分的下行通信裝置之間仍舊能保持時間同步。In view of the fact that in the prior art, once the master clock signal cannot be transmitted to the downlink communication device, it will cause the problem that all the downlink communication devices cannot maintain time synchronization. The main purpose of the present invention is to provide a new network clock signal synchronization system, so that when the master clock signal is interrupted from being transmitted to the downlink communication device, at least some of the downlink communication devices can still maintain time synchronization.

本發明為解決先前技術之問題所採用之其中一種必要技術手段為提供一種網路時鐘信號同步化系統,其包含了一主通信裝置、至少一中繼通信裝置與至少一下行通信裝置。主通信裝置係提供一主時鐘信號。中繼通信裝置係用以上行通信連結於主通信裝置,並且包含一內建時鐘信號產生模組、一埠實體層模組與一系統時間產生模組。One of the necessary technical means adopted by the present invention to solve the problems of the prior art is to provide a network clock signal synchronization system, which includes a main communication device, at least one relay communication device and at least one downlink communication device. The main communication device provides a main clock signal. The relay communication device is connected to the main communication device by uplink communication and includes a built-in clock signal generation module, a physical layer module and a system time generation module.

內建時鐘信號產生模組係用以發送一內建時鐘信號。埠實體層模組係用以接收主時鐘信號;系統時間產生模組係電性連結於埠實體層模組與內建時鐘信號產生模組,並且包含一鎖相迴路與一系統時鐘信號發送單元。鎖相迴路(Phase-locked loops; PLL)用以在埠實體層模組接收到主時鐘信號時,使內建時鐘信號與主時鐘信號同步化以產生一同步時鐘信號。The built-in clock signal generation module is used to send a built-in clock signal. The port physical layer module is used to receive the main clock signal. The system time generation module is electrically connected to the port physical layer module and the built-in clock signal generation module, and includes a phase-locked loop and a system clock signal sending unit. The phase-locked loop (PLL) is used to synchronize the built-in clock signal with the main clock signal to generate a synchronous clock signal when the port physical layer module receives the main clock signal.

系統時鐘信號發送單元係用以在埠實體層模組接收到主時鐘信號時,將同步時鐘信號作為中繼通信裝置之一系統基準時鐘信號而發送出,並在埠實體層模組中斷接收該主時鐘信號時,將內建時鐘信號作為系統基準時鐘信號而發送出。下行通信裝置係用以供中繼通信裝置下行通信連結,藉以接收系統基準時鐘信號以作為下行通信裝置之一同步化系統基準時鐘信號。The system clock signal sending unit is used to send out the synchronous clock signal as a system reference clock signal of the relay communication device when the port physical layer module receives the main clock signal, and to send out the built-in clock signal as the system reference clock signal when the port physical layer module stops receiving the main clock signal. The downlink communication device is used for the downlink communication connection of the relay communication device to receive the system reference clock signal as a synchronized system reference clock signal of the downlink communication device.

較佳者,內建時鐘信號產生模組更可包含一內建時鐘信號振盪單元、一鎖相補償信號偵測單元與一內建時鐘信號輸出單元。內建時鐘信號振盪單元係發送出一原始振盪時鐘信號。鎖相補償信號偵測單元係電性連接於內建時鐘信號振盪單元與鎖相迴路,用以偵測原始振盪時鐘信號與主時鐘信號同步時所疊加之一時鐘補償信號。內建時鐘信號輸出單元係電性連接於內建時鐘信號振盪單元、鎖相補償信號偵測單元與埠實體層模組,用以在埠實體層模組中斷接收主時鐘信號時,將原始振盪時鐘信號與時鐘補償信號疊加後作為上述之內建時鐘信號而發送出。Preferably, the built-in clock signal generating module may further include a built-in clock signal oscillating unit, a phase-locked compensation signal detecting unit and a built-in clock signal output unit. The built-in clock signal oscillating unit sends out an original oscillating clock signal. The phase-locked compensation signal detecting unit is electrically connected to the built-in clock signal oscillating unit and the phase-locked loop to detect a clock compensation signal superimposed when the original oscillating clock signal is synchronized with the main clock signal. The built-in clock signal output unit is electrically connected to the built-in clock signal oscillation unit, the phase-locked compensation signal detection unit and the port physical layer module, and is used to superimpose the original oscillation clock signal and the clock compensation signal and send them out as the above-mentioned built-in clock signal when the port physical layer module stops receiving the main clock signal.

較佳者,內建時鐘信號振盪單元可為一石英晶體振盪器。中繼通信裝置可為一網路交換器(Network switch)。主通信裝置可為伺服器。下行通信裝置可為網路交換器、閘道器、中繼器、路由器或終端工作裝置。系統時間產生模組更可包含一媒體存取控制(Media Access Control, MAC)子層時間產生單元,用以依據系統基準時鐘信號產生一媒體存取時間。Preferably, the built-in clock signal oscillator unit may be a quartz crystal oscillator. The relay communication device may be a network switch. The main communication device may be a server. The downlink communication device may be a network switch, a gateway, a repeater, a router or a terminal working device. The system time generation module may further include a media access control (MAC) sublayer time generation unit for generating a media access time according to the system reference clock signal.

綜合以上所述,由於在本發明所提供之網路時鐘信號同步化系統中,即便在中繼通信裝置中斷接收到主時鐘信號時,也可以利用內建時鐘信號產生模組所產生之內建時鐘信號作為系統基準時鐘信號,並將系統基準時鐘信號傳送至下行通信裝置以作為下行通信裝置之一同步化系統基準時鐘信號,藉此仍可維持中繼通信裝置與下行通信裝置之間的時間同步。In summary, in the network clock signal synchronization system provided by the present invention, even when the relay communication device stops receiving the main clock signal, the built-in clock signal generated by the built-in clock signal generation module can be used as the system reference clock signal, and the system reference clock signal can be transmitted to the downlink communication device as a synchronization system reference clock signal of the downlink communication device, thereby maintaining the time synchronization between the relay communication device and the downlink communication device.

更佳者,可進一步藉由鎖相補償信號偵測單元所偵測的時鐘補償信號作為時間補償的依據,藉由將原始振盪時鐘信號與時鐘補償信號疊加的方式,使中繼通信裝置即便在中斷接收主時鐘信號時,仍可保持系統基準時鐘信號或同步化系統基準時鐘信號儘量與主時鐘信號相同或最大限度地接近。毫無疑問地,本發明確實可在中繼通信裝置中斷接收到主時鐘信號,仍可最大限度地達成維持(中繼通信裝置與下行通信裝置之間的)系統時間同步化的功效。More preferably, the clock compensation signal detected by the phase-locked compensation signal detection unit can be used as the basis for time compensation. By superimposing the original oscillating clock signal and the clock compensation signal, the relay communication device can keep the system reference clock signal or the synchronized system reference clock signal as close to the master clock signal as possible even when the relay communication device stops receiving the master clock signal. Undoubtedly, the present invention can achieve the effect of maintaining system time synchronization (between the relay communication device and the downlink communication device) to the maximum extent even when the relay communication device stops receiving the master clock signal.

由於本發明所提供之網路時鐘信號同步化系統,可廣泛運用於多種網路系統,其應用層面相當廣闊,故在此不再一一贅述,僅列舉其中較佳的實施例來加以具體說明,且此實施例僅用以方便、明晰地輔助說明本發明實施例的目的與功效。Since the network clock signal synchronization system provided by the present invention can be widely used in a variety of network systems, its application is quite broad, so it will not be described one by one here, and only the better embodiments are listed for specific explanation, and this embodiment is only used to conveniently and clearly assist in explaining the purpose and effect of the embodiment of the present invention.

請參閱第一圖,其係顯示本發明較佳實施例所提供之網路時鐘信號同步化系統之功能方塊示意圖。如第一圖所示,一網路時鐘信號同步化系統100包含一主通信裝置1、至少一中繼通信裝置(第一圖中繪製一個中繼通信裝置2作為代表)與至少一下行通信裝置(第一圖中繪製二個下行通信裝置3a與3b作為代表)。Please refer to the first figure, which is a functional block diagram of the network clock signal synchronization system provided by the preferred embodiment of the present invention. As shown in the first figure, a network clock signal synchronization system 100 includes a main communication device 1, at least one relay communication device (a relay communication device 2 is drawn as a representative in the first figure) and at least one downlink communication device (two downlink communication devices 3a and 3b are drawn as representatives in the first figure).

主通信裝置1可為網路中資料處理量較大且對多個裝置提供較大服務量的通信裝置,如雲端伺服器、檔案伺服器或網頁伺服器等。主通信裝置1中可內建有一主時鐘信號產生裝置(如石英晶體振盪器,圖未繪製)以提供一主時鐘信號(Master clock signal)MCS。The master communication device 1 may be a communication device that processes large amounts of data in the network and provides large amounts of services to multiple devices, such as a cloud server, a file server, or a web server. The master communication device 1 may have a built-in master clock signal generating device (such as a quartz crystal oscillator, not shown) to provide a master clock signal MCS.

中繼通信裝置2可為一網路交換器(Network switch),並且用以上行通信連結於主通信裝置1,並且包含一內建時鐘信號產生模組21、一埠實體層(Port Physical Layer;PHY)模組22與一系統時間產生模組23。所謂的上行通信連結(uplink)是指朝向或靠近資料處理量較大且對多個裝置提供較大服務量的主通信裝置1的通信節點進行資料傳輸的通信連結,下行通信連結(downlink)的意義則與上行通信連結相反,且上行通信連結與下行通信連結是相對的概念,以下不再予以贅述。The relay communication device 2 may be a network switch, and is connected to the main communication device 1 for uplink communication, and includes a built-in clock signal generation module 21, a port physical layer (PHY) module 22, and a system time generation module 23. The so-called uplink communication link refers to a communication link for data transmission toward or close to the communication node of the main communication device 1 that has a large data processing volume and provides a large service volume to multiple devices. The meaning of the downlink communication link is opposite to the uplink communication link, and the uplink communication link and the downlink communication link are relative concepts, which will not be elaborated below.

內建時鐘信號產生模組21可包含彼此電性連接之一內建時鐘信號振盪單元211、一鎖相補償信號偵測單元212與一內建時鐘信號輸出單元213,其中,內建時鐘信號振盪單元211可為一石英晶體振盪器,並用以發送出一原始振盪時鐘信號OCCS。The built-in clock signal generating module 21 may include a built-in clock signal oscillating unit 211, a phase-locked compensation signal detecting unit 212 and a built-in clock signal outputting unit 213 which are electrically connected to each other, wherein the built-in clock signal oscillating unit 211 may be a quartz crystal oscillator and used to send out an original oscillating clock signal OCCS.

埠實體層(Port Physical Layer;PHY)模組22係用以接收主時鐘信號MCS。其中埠實體層是指一個對開放式系統互聯模型(Open System Interconnection Model,OSI模型)實體層的共同簡稱。埠實體層模組22可以是一個操作OSI模型實體層的裝置。在乙太網路中,埠實體層(Port Physical Layer;PHY)模組22可以是一個晶片,並用以發送和接收乙太網路的資料框(frame),但是通常本身沒有媒體存取控制(Media Access Control; MAC)子層位址(MAC address)。The port physical layer (PHY) module 22 is used to receive the main clock signal MCS. The port physical layer refers to a common abbreviation for the physical layer of the Open System Interconnection Model (OSI model). The port physical layer module 22 can be a device that operates the physical layer of the OSI model. In the Ethernet, the port physical layer (PHY) module 22 can be a chip and is used to send and receive Ethernet data frames, but usually does not have a media access control (MAC) sublayer address (MAC address).

系統時間產生模組23係電性連結於該埠實體層模組22與內建時鐘信號產生模組21,並且包含一鎖相迴路(Phase-locked loops; PLL)231、一系統時鐘信號發送單元232與一媒體存取控制(Media Access Control, MAC)子層時間產生單元233,且系統時鐘信號發送單元232係分別電性連接於鎖相迴路231與MAC子層時間產生單元233。The system time generation module 23 is electrically connected to the port physical layer module 22 and the built-in clock signal generation module 21, and includes a phase-locked loop (PLL) 231, a system clock signal sending unit 232 and a media access control (MAC) sublayer time generation unit 233, and the system clock signal sending unit 232 is electrically connected to the phase-locked loop 231 and the MAC sublayer time generation unit 233 respectively.

在埠實體層模組22接收到主時鐘信號MCS時,內建時鐘信號輸出單元213可藉由偵測等方式得知埠實體層模組22已接收到主時鐘信號MCS。此時,內建時鐘信號輸出單元213可將內建時鐘信號振盪單元211所產生之原始振盪時鐘信號OCCS直接作為一內建時鐘信號ICS而傳送至鎖相迴路(Phase-locked loops; PLL)231,且鎖相迴路(Phase-locked loops; PLL)231可以自埠實體層模組22獲得主時鐘信號MCS。When the port physical layer module 22 receives the master clock signal MCS, the built-in clock signal output unit 213 can know that the port physical layer module 22 has received the master clock signal MCS by means of detection or the like. At this time, the built-in clock signal output unit 213 can directly transmit the original oscillation clock signal OCCS generated by the built-in clock signal oscillation unit 211 as a built-in clock signal ICS to the phase-locked loop (PLL) 231, and the phase-locked loop (PLL) 231 can obtain the master clock signal MCS from the port physical layer module 22.

據此,鎖相迴路(Phase-locked loops; PLL)231使內建時鐘信號ICS與主時鐘信號MCS同步化以產生一同步時鐘信號SCS,且系統時鐘信號發送單元232可進一步將同步時鐘信號SCS作為中繼通信裝置之一系統基準時鐘信號SRCS而發送出。所謂的同步化是指對兩信號中之一者調整頻率與/或相位,使其與另一者的頻率與相位皆相同。Accordingly, the phase-locked loop (PLL) 231 synchronizes the built-in clock signal ICS with the main clock signal MCS to generate a synchronous clock signal SCS, and the system clock signal sending unit 232 can further send the synchronous clock signal SCS as a system reference clock signal SRCS of the relay communication device. The so-called synchronization refers to adjusting the frequency and/or phase of one of the two signals to make it the same as the frequency and phase of the other.

較佳者,鎖相補償信號偵測單元212可用以偵測出用以作為內建時鐘信號ICS的原始振盪時鐘信號OCC與主時鐘信號MCS同步時所疊加之一時鐘補償信號CCS,並將時鐘補償信號CCS轉換成數位資料加以儲存。所謂的時鐘補償信號CCS是指調整內建時鐘信號ICS的頻率與/或相位,使內建時鐘信號ICS與主時鐘信號MCS的頻率與相位皆相同時,內建時鐘信號ICS所疊加之補償信號。Preferably, the phase-locked compensation signal detection unit 212 can be used to detect a clock compensation signal CCS superimposed when the original oscillating clock signal OCC used as the built-in clock signal ICS is synchronized with the main clock signal MCS, and convert the clock compensation signal CCS into digital data for storage. The so-called clock compensation signal CCS refers to the compensation signal superimposed on the built-in clock signal ICS by adjusting the frequency and/or phase of the built-in clock signal ICS so that the frequency and phase of the built-in clock signal ICS and the main clock signal MCS are the same.

更佳者,在埠實體層模組22中斷接收主時鐘信號MCS時,內建時鐘信號輸出單元213可要求鎖相補償信號偵測單元212依據上述之數位資料利用震盪器(圖未標示)還原產生時鐘補償信號CCS,並將原始振盪時鐘信號ICS與時鐘補償信號CCS疊加後作為內建時鐘信號ICS而發送至系統時鐘信號發送單元232,且系統時鐘信號發送單元232可將內建時鐘信號ICS作為系統基準時鐘信號SRCS而發送出。Better yet, when the port physical layer module 22 stops receiving the main clock signal MCS, the built-in clock signal output unit 213 may request the phase-locked compensation signal detection unit 212 to use an oscillator (not shown) to restore and generate the clock compensation signal CCS based on the above-mentioned digital data, and superimpose the original oscillation clock signal ICS and the clock compensation signal CCS as the built-in clock signal ICS and send it to the system clock signal sending unit 232, and the system clock signal sending unit 232 can send the built-in clock signal ICS as the system reference clock signal SRCS.

從以上敘述可之,由於經過時鐘補償信號CCS的疊加補償,內建時鐘信號ICS至少會在一定的時間內維持與主時鐘信號MCS相同或最大程度的相近。此外,不論埠實體層模組22接收或中斷接收主時鐘信號MCS,系統時鐘信號發送單元232都可將系統基準時鐘信號SRCS發送出。From the above description, it can be seen that, due to the superposition compensation of the clock compensation signal CCS, the built-in clock signal ICS will at least maintain the same or the greatest degree of similarity with the main clock signal MCS for a certain period of time. In addition, regardless of whether the port physical layer module 22 receives or stops receiving the main clock signal MCS, the system clock signal sending unit 232 can send out the system reference clock signal SRCS.

系統時鐘信號發送單元232所發送出之系統基準時鐘信號SRCS不僅可傳送至MAC子層時間產生單元233,還可藉由下行通信連結於下行通信裝置3a與3b的方式分別傳送至下行通信裝置3a與3b。MAC子層時間產生單元233可內建於一MAC子層元件(圖未示),並在MAC子層元件生成每一媒體存取資料時,依據系統基準時鐘信號SRCS產生與媒體存取資料綁定之一媒體存取時間。The system reference clock signal SRCS sent by the system clock signal sending unit 232 can not only be transmitted to the MAC sublayer time generation unit 233, but can also be transmitted to the downlink communication devices 3a and 3b respectively by connecting to the downlink communication devices 3a and 3b via downlink communication. The MAC sublayer time generation unit 233 can be built into a MAC sublayer element (not shown), and when the MAC sublayer element generates each media access data, it generates a media access time bound to the media access data according to the system reference clock signal SRCS.

下行通信裝置3a與3b可為網路交換器、閘道器、中繼器、路由器或終端(工作)裝置(如工作站終端設備、工業電腦、個人電腦、筆記型電腦、平板電腦或智慧型手機等)。同時,下行通信裝置3a與3b可將接收到之系統基準時鐘信號SRCS作為下行通信裝置3a與3b之一同步化系統基準時鐘信號。藉此,可在埠實體層模組22接收主時鐘信號MCS時,達成主通信裝置1、中繼通信裝置2以及下行通信裝置3a與3b之間的時間同步化。即便在埠實體層模組22中斷接收主時鐘信號MCS時,依舊可以達成中繼通信裝置2以及下行通信裝置3a與3b之間的時間同步化。Downlink communication devices 3a and 3b may be network switches, gateways, repeaters, routers or terminal (working) devices (such as workstation terminal equipment, industrial computers, personal computers, laptops, tablet computers or smart phones, etc.). At the same time, downlink communication devices 3a and 3b may use the received system reference clock signal SRCS as one of the synchronization system reference clock signals of downlink communication devices 3a and 3b. In this way, when the port physical layer module 22 receives the master clock signal MCS, time synchronization between the main communication device 1, the relay communication device 2 and the downlink communication devices 3a and 3b can be achieved. Even when the port physical layer module 22 stops receiving the master clock signal MCS, time synchronization between the relay communication device 2 and the downlink communication devices 3a and 3b can still be achieved.

上述的主時鐘信號MCS、原始振盪時鐘信號OCCS、時鐘補償信號CCS、內建時鐘信號ICS、同步時鐘信號SCS、系統基準時鐘信號SRCS與同步化系統基準時鐘信號,在本實質上都是屬於與時間相關的脈衝信號,所以都是屬於時脈信號(clock pulse signal)。The above-mentioned master clock signal MCS, original oscillation clock signal OCCS, clock compensation signal CCS, built-in clock signal ICS, synchronous clock signal SCS, system reference clock signal SRCS and synchronized system reference clock signal are essentially time-related pulse signals, so they are all clock pulse signals.

由於在本發明所提供之網路時鐘信號同步化系統100中,即便在中繼通信裝置2中斷接收到主時鐘信號MCS時,也可以利用內建時鐘信號產生模組21所產生之內建時鐘信號ICS作為系統基準時鐘信號SRCS,並將系統基準時鐘信號SRCS傳送至下行通信裝置3a與3b以作為下行通信裝置3a與3b之同步化系統基準時鐘信號,藉此仍可維持中繼通信裝置2以及下行通信裝置3a與3b之間的時間同步。In the network clock signal synchronization system 100 provided by the present invention, even when the relay communication device 2 stops receiving the master clock signal MCS, the built-in clock signal ICS generated by the built-in clock signal generation module 21 can be used as the system reference clock signal SRCS, and the system reference clock signal SRCS can be transmitted to the downlink communication devices 3a and 3b as the synchronization system reference clock signal of the downlink communication devices 3a and 3b, thereby maintaining the time synchronization between the relay communication device 2 and the downlink communication devices 3a and 3b.

更佳者,可進一步藉由鎖相補償信號偵測單元212所偵測的時鐘補償信號CCS作為時間補償的依據,藉由將原始振盪時鐘信號OCCS與時鐘補償信號CCS疊加的方式,使中繼通信裝置2即便在中斷接收主時鐘信號MCS時,仍可保持系統基準時鐘信號SRCS或同步化系統基準時鐘信號儘量與主時鐘信號MCS相同或最大限度地接近。毫無疑問地,本發明確實可在中繼通信裝置2中斷接收到主時鐘信號MCS時,仍可最大限度地達成維持(中繼通信裝置2以及與下行通信裝置3a與3b之間的)系統時間同步化的功效。More preferably, the clock compensation signal CCS detected by the phase-locked compensation signal detection unit 212 can be used as the basis for time compensation. By superimposing the original oscillation clock signal OCCS and the clock compensation signal CCS, the relay communication device 2 can keep the system reference clock signal SRCS or the synchronized system reference clock signal as close to the master clock signal MCS as possible even when the relay communication device 2 stops receiving the master clock signal MCS. Undoubtedly, the present invention can achieve the effect of maintaining the system time synchronization (between the relay communication device 2 and the downlink communication devices 3a and 3b) to the maximum extent when the relay communication device 2 stops receiving the master clock signal MCS.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。The above detailed description of the preferred specific embodiments is intended to more clearly describe the features and spirit of the present invention, but is not intended to limit the scope of the present invention by the preferred specific embodiments disclosed above. On the contrary, the purpose is to cover various changes and arrangements with equivalents within the scope of the patent application for the present invention.

100:網路時鐘信號同步化系統 1:主通信裝置 2:中繼通信裝置 21:內建時鐘信號產生模組 211:內建時鐘信號振盪單元 212:鎖相補償信號偵測單元 213:內建時鐘信號輸出單元 22:埠實體層模組 23:系統時間產生模組 231:鎖相迴路 232:系統時鐘信號發送單元 233:MAC子層時間產生單元 3a~3b:下行通信裝置 OCCS:原始振盪時鐘信號 CCS:時鐘補償信號 SCS:同步時鐘信號 MCS:主時鐘信號 ICS:內建時鐘信號 SRCS:系統基準時鐘信號 100: Network clock signal synchronization system 1: Main communication device 2: Relay communication device 21: Built-in clock signal generation module 211: Built-in clock signal oscillation unit 212: Phase-locked compensation signal detection unit 213: Built-in clock signal output unit 22: Port physical layer module 23: System time generation module 231: Phase-locked loop 232: System clock signal transmission unit 233: MAC sublayer time generation unit 3a~3b: Downlink communication device OCCS: Original oscillation clock signal CCS: Clock compensation signal SCS: Synchronous clock signal MCS: Master clock signal ICS: Built-in clock signal SRCS: System Reference Clock Signal

第一圖係顯示本發明較佳實施例所提供之網路時鐘信號同步化系統之功能方塊示意圖。The first figure is a functional block diagram of the network clock signal synchronization system provided by the preferred embodiment of the present invention.

100:網路時鐘信號同步化系統 100: Network clock signal synchronization system

1:主通信裝置 1: Main communication device

2:中繼通信裝置 2: Relay communication device

21:內建時鐘信號產生模組 21: Built-in clock signal generation module

211:內建時鐘信號振盪單元 211: Built-in clock signal oscillator unit

212:鎖相補償信號偵測單元 212: Phase-locked compensation signal detection unit

213:內建時鐘信號輸出單元 213: Built-in clock signal output unit

22:埠實體層模組 22: Port physical layer module

23:系統時間產生模組 23: System time generation module

231:鎖相迴路 231: Phase-locked loop

232:系統時鐘信號發送單元 232: System clock signal sending unit

233:MAC子層時間產生單元 233: MAC sublayer time generation unit

3a~3b:下行通信裝置 3a~3b: Downlink communication device

OCCS:原始振盪時鐘信號 OCCS: Original Oscillating Clock Signal

CCS:時鐘補償信號 CCS: Clock Compensation Signal

SCS:同步時鐘信號 SCS: Synchronous Clock Signal

MCS:主時鐘信號 MCS: Master Clock Signal

ICS:內建時鐘信號 ICS: built-in clock signal

SRCS:系統基準時鐘信號 SRCS: System Reference Clock Signal

Claims (7)

一種網路時鐘信號同步化系統,包含: 一主通信裝置,係提供一主時鐘信號; 至少一中繼通信裝置,係用以上行通信連結於該主通信裝置,並且包含: 一內建時鐘信號產生模組,係用以發送一內建時鐘信號; 一埠實體層(Port Physical Layer; PHY)模組,係用以接收該主時鐘信號; 一系統時間產生模組,係電性連結於該埠實體層模組與該內建時鐘信號產生模組,並且包含: 一鎖相迴路(Phase-locked loops; PLL),用以在該埠實體層模組接收到該主時鐘信號時,使該內建時鐘信號與該主時鐘信號同步化以產生一同步時鐘信號;以及 一系統時鐘信號發送單元,係用以在該埠實體層模組接收到該主時鐘信號時,將該同步時鐘信號作為該至少一中繼通信裝置之一系統基準時鐘信號而發送出,並在該埠實體層模組中斷接收該主時鐘信號時,將該內建時鐘信號作為該系統基準時鐘信號而發送出;以及 至少一下行通信裝置,係用以供該至少一中繼通信裝置下行通信連結,藉以接收之該系統基準時鐘信號以作為該至少一下行通信裝置之一同步化系統基準時鐘信號。 A network clock signal synchronization system includes: A main communication device that provides a main clock signal; At least one relay communication device that is connected to the main communication device by uplink communication and includes: A built-in clock signal generation module that is used to send a built-in clock signal; A port physical layer (PHY) module that is used to receive the main clock signal; A system time generation module that is electrically connected to the port physical layer module and the built-in clock signal generation module and includes: A phase-locked loop (PLL) that is used to synchronize the built-in clock signal with the main clock signal to generate a synchronous clock signal when the port physical layer module receives the main clock signal; and A system clock signal sending unit is used to send the synchronous clock signal as a system reference clock signal of the at least one relay communication device when the port physical layer module receives the main clock signal, and to send the built-in clock signal as the system reference clock signal when the port physical layer module stops receiving the main clock signal; and At least one downstream communication device is used for the at least one relay communication device to connect to the downstream communication so as to receive the system reference clock signal as a synchronized system reference clock signal of the at least one downstream communication device. 如請求項1所述之網路時鐘信號同步化系統,其中,該內建時鐘信號產生模組更包含: 一內建時鐘信號振盪單元,係發送出一原始振盪時鐘信號; 一鎖相補償信號偵測單元,係電性連接於該內建時鐘信號振盪單元與該鎖相迴路,用以偵測該原始振盪時鐘信號與該主時鐘信號同步時所疊加之一時鐘補償信號;以及 一內建時鐘信號輸出單元,係電性連接於該內建時鐘信號振盪單元、該鎖相補償信號偵測單元與該埠實體層模組,用以在該埠實體層模組中斷接收該主時鐘信號時,將該原始振盪時鐘信號與該時鐘補償信號疊加後作為該內建時鐘信號而發送出。 The network clock signal synchronization system as described in claim 1, wherein the built-in clock signal generation module further comprises: A built-in clock signal oscillator unit that sends out an original oscillating clock signal; A phase-locked compensation signal detection unit that is electrically connected to the built-in clock signal oscillator unit and the phase-locked loop to detect a clock compensation signal superimposed when the original oscillating clock signal is synchronized with the main clock signal; and A built-in clock signal output unit is electrically connected to the built-in clock signal oscillation unit, the phase-locked compensation signal detection unit and the port physical layer module, and is used to superimpose the original oscillation clock signal and the clock compensation signal as the built-in clock signal and send it out when the port physical layer module stops receiving the main clock signal. 如請求項2所述之網路時鐘信號同步化系統,其中,該內建時鐘信號振盪單元係為一石英晶體振盪器。A network clock signal synchronization system as described in claim 2, wherein the built-in clock signal oscillator unit is a quartz crystal oscillator. 如請求項1所述之網路時鐘信號同步化系統,其中,該至少一中繼通信裝置係為至少一網路交換器(Network switch)。A network clock signal synchronization system as described in claim 1, wherein the at least one relay communication device is at least one network switch. 如請求項1所述之網路時鐘信號同步化系統,其中,該主通信裝置係為一伺服器。A network clock signal synchronization system as described in claim 1, wherein the main communication device is a server. 如請求項1所述之網路時鐘信號同步化系統,其中,該至少一下行通信裝置係為至少一網路交換器、閘道器、中繼器、路由器或終端工作裝置。A network clock signal synchronization system as described in claim 1, wherein the at least one downstream communication device is at least one network switch, gateway, repeater, router or terminal working device. 如請求項1所述之網路時鐘信號同步化系統,其中,該系統時間產生模組更包含一媒體存取控制(Media Access Control; MAC)子層時間產生單元,用以依據該系統基準時鐘信號產生一媒體存取時間。A network clock signal synchronization system as described in claim 1, wherein the system time generation module further includes a media access control (MAC) sublayer time generation unit for generating a media access time based on the system reference clock signal.
TW112116991A 2023-05-08 2023-05-08 Synchronization system for network clock signal TWI841375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112116991A TWI841375B (en) 2023-05-08 2023-05-08 Synchronization system for network clock signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112116991A TWI841375B (en) 2023-05-08 2023-05-08 Synchronization system for network clock signal

Publications (2)

Publication Number Publication Date
TWI841375B true TWI841375B (en) 2024-05-01
TW202446026A TW202446026A (en) 2024-11-16

Family

ID=92077008

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112116991A TWI841375B (en) 2023-05-08 2023-05-08 Synchronization system for network clock signal

Country Status (1)

Country Link
TW (1) TWI841375B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7148753B1 (en) * 2003-04-11 2006-12-12 Silicon Laboratories Inc. Method and apparatus for generating a clock signal in holdover mode
CN101741597A (en) * 2008-11-26 2010-06-16 英业达股份有限公司 Server system and method for automatically correcting time
CN109150175A (en) * 2017-06-28 2019-01-04 美国亚德诺半导体公司 For the synchronous device and method with frequency conversion of clock
TW202211631A (en) * 2020-09-09 2022-03-16 美商瑞薩電子美國有限公司 Hitless switching by resetting multi-modulus feedback divider
CN115296664A (en) * 2022-08-02 2022-11-04 杭州红岭通信息科技有限公司 System clock synthesis circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7148753B1 (en) * 2003-04-11 2006-12-12 Silicon Laboratories Inc. Method and apparatus for generating a clock signal in holdover mode
CN101741597A (en) * 2008-11-26 2010-06-16 英业达股份有限公司 Server system and method for automatically correcting time
CN109150175A (en) * 2017-06-28 2019-01-04 美国亚德诺半导体公司 For the synchronous device and method with frequency conversion of clock
TW202211631A (en) * 2020-09-09 2022-03-16 美商瑞薩電子美國有限公司 Hitless switching by resetting multi-modulus feedback divider
CN115296664A (en) * 2022-08-02 2022-11-04 杭州红岭通信息科技有限公司 System clock synthesis circuit

Also Published As

Publication number Publication date
TW202446026A (en) 2024-11-16

Similar Documents

Publication Publication Date Title
Mahmood et al. Clock synchronization over IEEE 802.11—A survey of methodologies and protocols
CN103339888B (en) For the network element of packet switching network
JP6598175B2 (en) Method, node, and system for detecting a clock synchronization path
US6188286B1 (en) Method and system for synchronizing multiple subsystems using one voltage-controlled oscillator
CN101977104A (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
US10355799B2 (en) Pseudowire clock recovery
WO2009071029A1 (en) Synchronization system and method of time information and related equipment
CN101667906B (en) Method and system for switching main and backup clocks
CN103684648B (en) A kind of ring network node clock effectiveness judgment method and device
WO2007031005A1 (en) Method, ethernet device and ethernet for solving the clock synchronization
US12289244B2 (en) Systems and methods enabling TSN/DetNet replication function fallback
CN101686120A (en) Device and method for realizing clock synchronization
WO2015096041A1 (en) Clock synchronization method for multiple clock domains, line card, and ethernet device
WO2015003364A1 (en) Apparatus and method for two-way timestamp exchange
CN112583512A (en) Time synchronization device and method
US10205586B2 (en) Method and apparatus for network synchronization
JP4155062B2 (en) Clock shaper and electronic equipment using it
TWI841375B (en) Synchronization system for network clock signal
JP2011009984A (en) Gepon system, station-side device and terminal-side device
Horauer Clock synchronization in distributed systems
EP2343807A1 (en) Method and interfaces for hitless reverting clock direction in synchronous copper based ethernet links
JP6274918B2 (en) Communications system
CN102201910A (en) Method for adjusting frequency based on IEEE1588 (institute of electrical and electronic engineers) protocol and network device
CN116566529A (en) A time adjustment method, network equipment and system
Kerö et al. How to Effectively Enhance PTP Redundancy Using Dual Ports