200812329 九、發明說明: 【發明所屬之技術領域】 本發明係關於-種-種在則時間驅動控制邏輯與時間同+ 運异方法的精密計算與調整時間差異的可支援多重網路設備1二 間同步系統。 τ 【先前技術】 在通信領域應財,「同步」的概紋指頻率、相位、與時間 的同步’即晴各個節闕時鐘頻率、相位、與咖,其誤差庶 符σ ‘準。目岫通信網路的設備,頻率和相位同步問題已有初步 解決’然而時間的同步,也就是指網路各個設備的時鐘與世界標 準時間(UTC)同步,卻仍還沒有得到很好的解決。過去因為不同^ =設備間彼此因設備内的㈣計數器,在受環境溫度變化的 〜所產生出來非穩定的震逢頻率,導致轉換出來的時間快慢 不,間精準度無法精準到J微秒㈤以下,通常會有數十個 微移以上的舰。且在分隔兩地賴路設備的録器受溫度、老 化及其他環_素辟,其準確纽敎度糾不同程度影塑, 因此分隔兩地練除賴職置㈣德制的追離。 .先前所使用的時間同步系統,大都使用GPS或N_twork be pmt⑽I)來進行時卩姻步。Gps時_步技術是當前比較成 熟並在國際上廣泛使用的時間同步技術。但是,該技術存在三個 醜:第- ’ GPS系統受美國軍方控制,其p碼僅對美國軍方和授 稚用戶開放。民用C/A碼的時間同步精度比P碼低兩個數量級, 5 200812329 而且其安全性沒有保障;第二,Gps信號通過無線方式傳輸,易受 外界干擾’第三,GPS接收機的時間信號大多是透過標準介面(如 RS-232介面)輸出的,很多通信設制如交換機)並沒有這種專用 介面。 β卜NTP協識包含一個64阶的協調世界時間戮,時間解 斤又疋200 pS亚可以提供卜如毫秒(贴)的時間校準精度。卿 也可以估算往返路由的時延差,以減小時延差所引起的誤差。伸 微衣縣種技術在洲際間㈣間校準精度只能制幾百毫秒, 達到秒的魏。其準麵和騰飼服器與用戶間的距離 有關’使稽触蝴侧綠s ^毫秒㈤町的時戦準度,錢限㈣”景下仍有其= 制0 由此可見,上述制物品仍有料缺失,實非 而亟待加以改良。 口 7侧从於上述朗所魅的各項_,抑思加以改 良創新,亚々年苦心孤騎心研究後,終於成 可支援多重網路設備之時_步⑽。 兀成本件 【發明目的】 本發明之主要目的録_供—鋪鱗解 能至多重網物⑽她纖_時 題= 供-簡易、尤其翻於⑽ W私 同步系統。 乍_的/支❹重網路設備之時間 200812329 本發明之次要目的係在於提供一種利用pci未定義的腳位作 為驅動所有網路設備共通的時間同步關訊,故可在不需修 改現有P⑽作顧條件下,即相好重_續之日_步功 能的可支援多重網路設備之時朗步系統。 【發明内容】 為達成上述發明目的之可支援多重網路設備之時間同步系 統二係利用時間同步運算方法,用以精密的計算與調整時間差異, 、..!各稱備間—致的時間同步。其方法為彻咖驅動 控制賴,齡G⑽崎準雜⑽,叫轉各鱗設備之網 路设備計數H值,並麵日_辭運算演算機做正各網路設備 彼此間的時間差異。 【實施方式】 本么月所提t、之可支援多重網路設備之時間同步系統,包括: 一騰時間解析模、组12,用以分析由Gps接收器u每秒發送 的PPS的信號及UTC時間; -鱗設備計數器丨4’_產生各鱗設備34之時間計數信 5虎, 34日士 H: ’:咖'制痛15,肋接收主機Π指令取得網路設備 34時間信號;以及 拖二時間㈣輸15,㈣_獅綱間差異, 換鼻仔到網路設備34間—致的時間同步。 本翻所提供之可支援多重網路設備之時朗《統,其操 200812329 作流程為: A、 每台主機17的UTC時間解析模組12定時向GPS接收器u 發出校時請求; B、 GPS接收器π向GPS衛星丨發出詢問時間請求; C、 GPS接收杰Π從GPS衛星i收下UTc時間訊號; D、 UTC時間解析模組12解析UTC時間訊號; E、 時間同步運算模組13透過ρπ運作環境16發出一個時間 冏灭殉问訊鈮; F、 網路叹備34之時馳動控綱輯15立即通知其他網路設 備34儲存當時的網路設備計數器Μ值。 其中,在每次校時所發時_步_訊·生時,均可得到 個UTC時間訊遽’以及各網路設備34的網路設備計數器14。如 圖二所示’ xm表示第-個網路設備34在觸發點tl時的網路設 備計數器14之值’ x2t卜伽則分職示第二、三侧路設備 34在觸發點tl時_路設料_ 14之值;以此_哪就是 表示第—個網路設備34在觸發點t3時的網路設備計數器Μ之 值口此’在询問訊號發生的瞬間’各網路設備34就可以進行同 ^,雖然各網路設備計數器14經過一段時間,會受周圍環境溫度 變化的影㈣有所漂移,其精確度會在落在[(t2_ti)+(t2到衍 ¥間内梢器增加的數值)]之内’但只要我們發出的同步詢問 訊號夠密集,就可以確保在網路設備計數器14的漂移在1毫秒之 8 200812329 内。 請參晒三所示’在不影響PCI既有運作環境下,利用阳 未疋義的腳位32作為驅動所有網路設備34共通的時間同步詢問 机就用。首先由主機17傳送每次校時所發時間同步詢問訊號給第 —個網路設備34,當收到此信號時即由該網路設備%之咖^ ^過時間事件鶴器31在同-時間轉送給所有網路設備34中的 時間事件接收器33。時間事件接收器33再通知個別網路設備糾 中的CPU 3立即儲存當時的網路設備計數器14值。 【特點及功效】 本發明所提供之可支援多重網路設備之時間同步系統,與其 他習用技術相互比較時,更具備下列優點: 1·本發明可不需修改現有PCI運作環境,即可支援多重網路設備之 時間同步功能。 2. 本發明可提供穩定且準確的多重鱗設備之時間同步功能。 3. 本發明可應用至分隔兩地_路設備時間同步,確保其時間精 準至1微秒以内。 上列詳細說明乃針對本發明之—可行實施例進行具體說明, 惟該實關並非用嫌制本㈣之翻_,凡未_本發明技 藝精神所為之等效實施或變更’均應包含於本案之專利範圍中。 綜上所述,本案不僅於技術思想上確屬創新,並具備習用之傳 統方法料及之上述多項功效’已充分符合新穎性及進步性之法 定發明專利要件,爰依法提出申請,懇請貴局核准本件發明專利 9 200812329 申請案,以勵發明,至感德便。 【圖式簡單說明】 請參閱以下有關本發明之詳細說明及其附圖 。 解本發明之技術·及其目的功效;有關附料:將可進—步瞭 圖-為本發明可支援多重網路設備之時間同步系 作流程圖; 統架構與運 圖二為該可支援多重網路設備之時間同 算機制:以及 制之時間同步演 圖二為該可支援多重網路設備之時間同步系 制邏輯方式。 ” 統之時間驅動控 【主要元件符號說明】 1 衛星 11 GPS接收器 12 UTC時間解析模組 13 時間同步運算模組 14 網路設備計數器 15 時間驅動控制邏輯 16 PCI運作環境 17 主機 3 CPU 31 時間事件驅動器 32 時間事件接收器 200812329 33 未定義聊位 34 網路設備200812329 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a multi-network device capable of supporting the precise calculation and adjustment time difference between the time-driven control logic and the time-consistent +-transaction method. Inter-synchronous system. τ [Prior Art] In the field of communication, the pattern of "synchronization" refers to the synchronization of frequency, phase, and time, that is, the clock frequency, phase, and coffee of each node, and the error σ σ is accurate. Looking at the communication network equipment, the frequency and phase synchronization problems have been initially solved. However, the synchronization of time, that is, the clock of each device on the network is synchronized with the world standard time (UTC), but it has not been solved well. . In the past, because the different ^ = devices between the devices due to the (four) counter in the device, the temperature is changed by the ambient temperature ~ resulting in an unstable peak frequency, resulting in the conversion time is not fast, the accuracy can not be accurate to J microseconds (5) Below, there are usually dozens of ships that are slightly moved. Moreover, the recorders that separate the two roads are subject to temperature, aging and other loops. The accuracy of the recorders is different from that of the two, so the separation between the two places is eliminated. Most of the time synchronization systems used previously used GPS or N_twork be pmt(10)I) for the time-in-law. The Gps _step technique is a time synchronization technology that is currently relatively mature and widely used internationally. However, there are three ugliness in this technology: the '-GPS system is controlled by the US military, and its p-code is only open to US military and child-rearing users. The time synchronization accuracy of civil C/A code is two orders of magnitude lower than that of P code, 5 200812329 and its security is not guaranteed. Second, the GPS signal is transmitted wirelessly and is susceptible to external interference. Third, the time signal of GPS receiver Most of them are output through standard interfaces (such as RS-232 interface), and many communication devices such as switches do not have such a dedicated interface. The NTP NTP protocol contains a 64-order coordinated world time 戮, and the time 解 疋 200 pS sub-available provides time calibration accuracy such as milliseconds (sticker). Qing can also estimate the delay difference of the round-trip route to reduce the error caused by the delay difference. The precision of the calibration of the micro-country seed technology between the intercontinental (four) can only be a few hundred milliseconds, reaching the second of Wei. The quasi-face and the distance between the feeder and the user are related to the 'time limit of the green side s ^ millisecond (five), the money limit (four) is still under the scene = system 0. There are still some missing items, which are urgent and need to be improved. The 7 side of the mouth from the above-mentioned glamorous _, meditation to improve and innovate, Aachen years of painstaking research, finally become a multi-network device At the time _ step (10). 兀 cost piece [invention purpose] The main purpose of the invention is to provide a multi-network (10) her fiber _ time title = supply-simple, especially in (10) W private synchronization system. The time of the present invention is to provide a time synchronization message that uses the undefined pin of pci as a common driving for all network devices, so that it Under the condition of P(10), it is a good time for the multi-network device to support the time-synchronization system of the multi-network device. Using time synchronization algorithms, With precise calculation and adjustment time difference, ..! time synchronization between the various devices. The method is the coffee-driven control, the age G (10), the standard (10), the network device count of the scale device The H value, the face-to-day operation computer is doing the time difference between the network devices. [Embodiment] This month, t, the time synchronization system that can support multiple network devices, including: Time analysis module, group 12, for analyzing the signal and UTC time of the PPS sent by the GPS receiver u per second; - scale device counter 丨 4'_ generating the time count signal of each scale device 34 5 tiger, 34 士H : ': coffee' pain, 15 rib receiving host Π command to obtain network device 34 time signal; and drag two time (four) lose 15, (four) _ lion class difference, change nose to network equipment 34 time Synchronization. This provides the support for multiple network devices. The process of 200812329 is: A. The UTC time analysis module 12 of each host 17 periodically issues a calibration request to the GPS receiver u; B. The GPS receiver π sends an inquiry time request to the GPS satellite; C. The GPS receiving Jay receives the UTC time signal from the GPS satellite i; D, the UTC time analysis module 12 parses the UTC time signal; E, the time synchronization computing module 13 sends a time quenching message through the ρπ operating environment 16; F, the network sighs 34, the mobile control program 15 immediately informs other network devices 34 to store the current network device counter devaluation value, wherein, at each school time, when the _ step _ _ _ _ Both the UTC time signal and the network device counter 14 of each network device 34 can be obtained. As shown in FIG. 2, xm indicates the value of the network device counter 14 when the first network device 34 is at the trigger point t1. 'x2tb gamma is divided into two, the third side device 34 at the trigger point tl _ _ _ 14 value; this _ which is the first network device 34 at the trigger point t3 The value of the device counter Μ is 'when the inquiry signal occurs', the network devices 34 can perform the same ^, although the network device counter 14 will be affected by the temperature change of the surrounding environment after a period of time (4) Drift, its accuracy will fall in [(t2_ti)+(t2 to Within the value)], but as long as the synchronous interrogation signal we sent is dense enough, we can ensure that the drift of the network device counter 14 is within 1 ms of 200812329. Please refer to the Sun 3 as a time synchronization interrogator that uses the unspoken pin 32 as the common time synchronization driver for all network devices 34 without affecting the PCI operating environment. First, the host 17 transmits the time synchronization inquiry signal sent by each time to the first network device 34. When the signal is received, the network device %^ is over the time event. The time is forwarded to the time event receiver 33 in all network devices 34. The time event receiver 33 then notifies the CPU 3 that the individual network device is correcting to immediately store the current network device counter 14 value. [Features and Functions] The time synchronization system provided by the present invention capable of supporting multiple network devices has the following advantages when compared with other conventional technologies: 1. The present invention can support multiple operations without modifying the existing PCI operating environment. Time synchronization of network devices. 2. The present invention provides a stable and accurate time synchronization function for multiple scale devices. 3. The present invention can be applied to time-synchronization of two devices, ensuring that the time is accurate to within 1 microsecond. The detailed description above is intended to be illustrative of the possible embodiments of the present invention, but the actual implementation is not intended to be used in the context of the present invention. The patent scope of this case. To sum up, this case is not only innovative in terms of technical thinking, but also has the traditional methods of using it and the above-mentioned multiple functions. It has fully complied with the statutory invention patent requirements of novelty and progress, and applied for it according to law. This invention patent 9 200812329 application, in order to invent, to the sense of virtue. BRIEF DESCRIPTION OF THE DRAWINGS Please refer to the following detailed description of the invention and the accompanying drawings. The technology of the present invention and its purpose and effect; related materials: will be able to proceed to the map - the present invention can support multiple network devices time synchronization system flow chart; system architecture and operation diagram 2 for this support The same time calculation mechanism of multiple network devices: and the time synchronization diagram of the system is the time synchronization system logic that can support multiple network devices.统之时驱动控制 [Main component symbol description] 1 Satellite 11 GPS receiver 12 UTC time analysis module 13 Time synchronization computing module 14 Network device counter 15 Time drive control logic 16 PCI operating environment 17 Host 3 CPU 31 Time Event Drive 32 Time Event Receiver 200812329 33 Undefined Chat 34 Network Device