WO2016119362A1 - Clock synchronization method, router and cluster routing system - Google Patents
Clock synchronization method, router and cluster routing system Download PDFInfo
- Publication number
- WO2016119362A1 WO2016119362A1 PCT/CN2015/081174 CN2015081174W WO2016119362A1 WO 2016119362 A1 WO2016119362 A1 WO 2016119362A1 CN 2015081174 W CN2015081174 W CN 2015081174W WO 2016119362 A1 WO2016119362 A1 WO 2016119362A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock
- router
- synchronization
- information
- clock information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
Definitions
- This paper covers the field of communication technology, especially clock synchronization methods, routers and cluster routing systems.
- Router clustering technology is to bridge two or more ordinary routers through one or more special central connection routers, so that these common routers can cooperate with each other and process in parallel, such as the same router is working, thus achieving bandwidth upgrade and Increased processing power.
- a common router is called a service box router
- a central connection router is called a center box router.
- clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency.
- phase synchronization that is, correcting the time deviation
- frequency synchronization that is, correcting the frequency
- the embodiment of the invention provides a clock synchronization method, a router and a cluster routing system, which are used to improve the stability of the cluster routing system.
- the embodiment of the present invention provides a clock synchronization method, where the clock synchronization method is applied to a cluster routing system, where the cluster routing system includes a main center frame router and at least two service box routers, and the clock synchronization method includes the following steps:
- the main center frame router sets a clock source according to the configuration data input by the user, and the clock source is a main center box router or a service box router;
- the main center frame router acquires synchronization clock information preset in the clock source, where the synchronization
- the clock information includes frequency synchronization information and phase synchronization information
- the primary center frame router sends the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- the method further includes:
- the router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
- the method further includes:
- the service box router configured as a clock source acquires clock information of a preset external clock source, and synchronizes its own clock according to the clock information;
- the service box router configured as the clock source generates synchronization clock information according to the clock information and sends the synchronization clock information to the main center box router, so that the main center box router acquires synchronization clock information.
- the acquiring, by the primary center frame router, the synchronized clock information preset in the clock source includes:
- the primary center frame router generates synchronous clock information according to its own clock information.
- the cluster routing system further includes a backup center box router, where the clock synchronization method further includes:
- the primary center frame router When the primary center frame router fails to obtain the synchronous clock information preset in the clock source, the primary center frame router performs switching between the primary central frame router and the standby primary central frame router.
- the embodiment of the invention further provides a main central frame router, including:
- the clock source setting module is configured to set a clock source according to the configuration data input by the user, where the clock source is a central center frame router or a service box router;
- the synchronous clock information acquiring module is configured to acquire synchronization clock information preset in the clock source,
- the synchronous clock information includes frequency synchronization information and phase synchronization information;
- the first sending module is configured to send the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- the primary center frame router further includes a first synchronization module, configured to synchronize the self clock according to the synchronous clock information after receiving the synchronous clock information.
- a first synchronization module configured to synchronize the self clock according to the synchronous clock information after receiving the synchronous clock information.
- the synchronous clock information acquiring module acquires synchronization clock information preset in the clock source, and includes: the synchronous clock.
- the information acquisition module generates synchronous clock information according to the clock information of the main center frame router itself.
- the main central frame router further includes a switching module, configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
- a switching module configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
- the embodiment of the invention further provides a service box router, including:
- a second synchronization module configured to: when the service box router is configured as a clock source, acquire clock information of a preset external clock source, and synchronize the clock according to the clock information;
- the second sending module is configured to generate synchronous clock information according to the clock information, and send the synchronous clock information to the primary center frame router, so that the primary center frame router obtains synchronous clock information.
- the second synchronization module is further configured to: when the service box router is not a clock source, after receiving the synchronization clock information sent by the main center frame router, synchronize the self clock according to the synchronization clock information.
- the embodiment of the present invention further provides a cluster routing system, including a main center box router and at least two service box routers, where the main center box router includes a main center box router as described above; Business box router as described earlier.
- the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
- the clock source is configured by the main center frame router according to the configuration data input by the user, where the clock source is a main center box router or a service box router; and the main center box router acquires presets in the clock source.
- Synchronizing clock information the synchronization clock information includes frequency synchronization information and phase synchronization information; the primary center frame router sends the synchronization clock information to a corresponding router according to the type of the clock source, for the router to perform Clock synchronization. Therefore, the clocks of all routers in the cluster routing system are synchronized, thereby improving the stability of the cluster routing system.
- FIG. 1 is a schematic diagram of a network connection in a cluster routing system according to Embodiment 1 of the present invention
- FIG. 3 is a schematic flowchart of a clock synchronization method according to Embodiment 2 of the present invention.
- FIG. 4 is a schematic flowchart of a clock synchronization method according to Embodiment 3 of the present invention.
- FIG. 5 is a schematic diagram of a redundant backup network connection in a cluster router system according to Embodiment 4 of the present invention.
- FIG. 6 is a schematic structural diagram of a main center frame router in Embodiment 4 of the present invention.
- FIG. 7 is a schematic structural diagram of a service box router according to Embodiment 4 of the present invention.
- An embodiment of the present invention provides a clock synchronization method, where the clock synchronization method is applied to a cluster routing system, where the cluster routing system includes a main center frame router and at least two service box routers.
- the clock synchronization method includes:
- step S10 the primary center frame router sets a clock source according to the configuration data input by the user, and the clock source is a central center frame router or a service box router;
- the clock synchronization method provided in this embodiment is applied to the clock synchronization of the cluster routing system, and the clock is synchronized between the main central box router and the multiple service box routers in the cluster routing system, and under the coordination of the main central box router.
- the service box routers can cooperate with each other and process in parallel, such as the same router working, thereby achieving bandwidth upgrade and processing capability.
- the clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency.
- the user may input configuration data on the designated interface of the main center box router, so that the main center box router sets the clock source according to the configuration data input by the user;
- the clock source may be a main center box router or a service box router.
- the user can set any service box router in the cluster routing system as a clock source, so that the main center box router obtains synchronous clock information from the service box router.
- Step S20 The primary center frame router acquires synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information.
- Step S30 The primary center frame router sends the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- the clock source type includes a center box router and a service box router.
- the primary center frame router can be set as a clock source, and the service box router can also be set as a clock source.
- step S30 the main center frame router sends the synchronous clock information to all routers except the service box router set as the clock source.
- step S30 the main center frame The router sends the synchronous clock information to all routers except the main central frame router.
- step S30 refers to all routers except the router set as the clock source.
- the router that receives the synchronous clock information will synchronize its own clock according to the synchronous clock information.
- the primary center frame router sets a clock source according to configuration data input by the user; the primary center frame router acquires synchronization clock information preset in the clock source; and the main center frame router according to the clock
- the type of the source sends the synchronous clock information to the corresponding router for clock synchronization of the router. Therefore, the clocks of all routers in the cluster routing system are synchronized, thereby improving the stability of the cluster routing system.
- the difference between the embodiment and the first embodiment is that, in the embodiment, after the step S30, the method further includes:
- Step S40 The router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
- the router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
- the router that receives the synchronous clock information synchronizes the frequency of the own clock according to the frequency synchronization information in the synchronous clock information, and synchronizes the phase of the own clock according to the phase synchronization information in the synchronous clock information.
- the service box router can also be set as the clock source.
- a clock synchronization method is provided when any of the service box routers is configured as a clock source. Referring to FIG. 4, the difference between the embodiment and the embodiment 1 is that the foregoing step S20 further includes:
- Step S50 the service box router configured as a clock source acquires clock information of a preset external clock source, and synchronizes its own clock according to the clock information;
- Step S60 The service box router configured as the clock source generates synchronization clock information according to the clock information, and sends the synchronization clock information to the main center frame router, so that the main center frame router acquires synchronization clock information.
- the clock information of the preset external clock source is obtained by the service box router configured as the clock source, and the clock is synchronized according to the clock information; the service box router configured as the clock source generates the clock information according to the clock information.
- the clock information is synchronized and sent to the main center frame router for the main center frame router to acquire synchronous clock information.
- Synchronous clock information is generated according to the clock information of the external clock source for the cluster routing system to synchronize the clock, which can make the cluster routing system clock synchronization more accurate.
- the user can input configuration data on the specified interface of the service box router to specify an external clock source.
- the clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
- GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information.
- Synce can only provide frequency synchronization information
- 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
- step S20 when the primary center frame router is configured as a clock source, the foregoing step S20 includes:
- the primary center frame router generates synchronous clock information according to its own clock information.
- the primary center frame router when the primary center frame router is set as the clock source, the primary center frame router can generate synchronous clock information according to its own clock information.
- the primary center frame router can also obtain clock information of an external clock source and generate synchronous clock information according to the clock information.
- the clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
- GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information.
- Synce can only provide frequency synchronization information
- 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
- the cluster routing system further includes a backup center box router
- the clock synchronization method further includes:
- the primary center frame router When the primary center frame router fails to obtain the synchronous clock information preset in the clock source, the primary center frame router performs switching between the primary central frame router and the standby primary central frame router.
- the standby central chassis router is configured to replace the faulty primary central frame router with the primary central frame router as the primary central frame router when the primary central frame router fails to obtain the synchronous clock information preset in the clock source.
- the backup center box router is switched to the primary center frame router, that is, the backup center box.
- the router acquires synchronization clock information preset in the service box router, where the synchronization clock information includes frequency synchronization information and phase synchronization information, and sends the synchronization clock information to a corresponding router according to the type of the clock source, to The clock is synchronized by the router.
- the cluster routing system includes a main center box router R1, a standby center box router R2, a service box router R3, and a service box router R4.
- the main central frame router R1 and the standby central frame router R2 respectively include a main main control board, a standby main control board, and a clock board.
- the service box router R3 and the service box router R4 respectively include a main main control board, a standby main control board, and a line. card.
- the clock synchronization method is described by taking the service box router R3 as the clock source as an example.
- the line card of the service box router R3 obtains the clock information sent by the external clock source through the SyncE+1588V2, and synchronizes the clock with the clock, and sends the clock information to the main or standby main control board of the service box router R3;
- the main main control board generates synchronous clock information according to the clock information, and sends the synchronous clock information to the clock board of the main center frame router R1.
- the clock board of the main center frame router R1 synchronizes its own clock according to the synchronous clock information, and sends the synchronous clock information to the primary or standby main control board of the main central frame router R1; and is mastered by the main central frame router R1.
- the board sends the synchronous clock information to the standby center frame router R2.
- the clock board of the main center frame router R1 sends the synchronous clock information to the service box router R4 for other routers in the cluster routing system. Perform clock synchronization. It should be noted that the backup center frame router R4 may also send the received synchronization clock information to the service box router connected thereto.
- the device in the cluster routing system has redundant backups. For example, when the main control board of the R1 is faulty, the standby main control board can replace the work. For example, when the main center frame router R1 is abnormal or the networking cable is loose. The standby center frame router R2 can be ready to be transferred to the master at any time to complete the acquisition and delivery of synchronous clock information.
- the embodiment of the present invention further provides a cluster routing system.
- the cluster routing system includes a main central box router and at least two service box routers, where
- the main central frame router includes a clock source setting module 601, a synchronous clock information acquiring module 602, and a first sending module 603, where:
- the clock source setting module 601 is configured to set a clock source according to configuration data input by the user, where the clock source is a central center frame router or a service box router;
- the synchronization clock information obtaining module 602 is configured to acquire synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information;
- the first sending module 603 is configured to send the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- the clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency.
- the user can input the configuration data on the designated interface of the main center box router, so that the main center box router can set the clock source according to the configuration data input by the user;
- the clock source can be the main center box router or the service box router.
- the user can set any service box router in the cluster routing system as a clock source, so that the main center box router obtains synchronous clock information from the service box router.
- the main central frame router is responsible for coordinating and managing all the service box routers, and the service box router is responsible for packet basic services such as packet forwarding. It can be understood that, in this embodiment, when the main central frame router obtains the synchronous clock information. After that, the main center box router is responsible for synchronizing the distribution of clock information.
- the main center frame router can be set as a clock source, and the service box router can also be set as a clock source.
- the first sending module 603 is configured to deliver the synchronous clock information to all routers except the service box router that is set as the clock source.
- the first sending module 603 is configured to deliver the synchronous clock information to all routers except the main center box router.
- the router that receives the synchronous clock information will synchronize its own clock according to the synchronous clock information.
- the primary center frame router When the primary center frame router is set as a clock source, the primary center frame router is set to generate synchronous clock information based on its own clock information.
- the synchronous clock information acquiring module 602 is configured to generate synchronous clock information according to the clock information of the clock.
- the primary center frame router can also obtain clock information of an external clock source and generate synchronous clock information according to the clock information.
- the clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
- GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information.
- Synce can only provide frequency synchronization information
- 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
- the clock source is configured by the main center frame router according to the configuration data input by the user, where the clock source is a main center box router or a service box router; and the main center box router acquires presets in the clock source.
- Synchronizing clock information the synchronization clock information includes frequency synchronization information and phase synchronization information; the primary center frame router sends the synchronization clock information to a corresponding router according to the type of the clock source, for the router to perform Clock synchronization.
- the clocks of all routers in the cluster routing system are synchronized, which improves the stability of the cluster routing system.
- the primary center frame router further includes a first synchronization module 604 configured to synchronize the self clock according to the synchronization clock information after receiving the synchronization clock information.
- a first synchronization module 604 configured to synchronize the self clock according to the synchronization clock information after receiving the synchronization clock information.
- the router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
- the router that receives the synchronous clock information synchronizes the frequency of the own clock according to the frequency synchronization information in the synchronous clock information, and synchronizes the phase of the own clock according to the phase synchronization information in the synchronous clock information.
- the main central frame router further includes a switching module, configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
- a switching module configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
- the main center frame router can be set as the clock source, and the service box router can also be set as the clock source.
- the service box router set as the clock source is set to acquire the preset external clock source before the main center box router acquires the synchronization clock information preset in the clock source.
- the clock information is synchronized with the clock according to the clock information; and is further configured to generate synchronous clock information according to the clock information and send the synchronous clock information to the main center frame router, so that the primary center frame router acquires synchronous clock information.
- the service box router is as shown in FIG. 7, and includes:
- the second synchronization module 701 is configured to: when the service box router is configured as a clock source, acquire clock information of a preset external clock source, and synchronize the clock according to the clock information;
- the second sending module 702 is configured to generate synchronous clock information according to the clock information, and send the synchronous clock information to the primary center frame router, so that the primary center frame router acquires synchronous clock information.
- the second synchronization module 701 is further configured to: when the service box router is not a clock source, after receiving the synchronization clock information sent by the main center frame router, according to the synchronization time The clock information synchronizes its own clock.
- the clock information of the preset external clock source is obtained by the service box router configured as the clock source, and the clock is synchronized according to the clock information; the service box router configured as the clock source generates the clock information according to the clock information.
- the clock information is synchronized and sent to the main center frame router for the main center frame router to acquire synchronous clock information.
- Synchronous clock information is generated according to the clock information of the external clock source for the cluster routing system to synchronize the clock, which can make the cluster routing system clock synchronization more accurate.
- the user can input configuration data on the specified interface of the service box router to specify an external clock source.
- the clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
- GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information.
- Synce can only provide frequency synchronization information
- 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
- the cluster routing system clock is not synchronized
- the cluster routing system further includes a backup central box router
- the primary central frame router is further configured to fail to obtain the primary central frame router.
- the standby central chassis router is configured to replace the faulty primary central frame router with the primary central frame router as the primary central frame router when the primary central frame router fails to obtain the synchronous clock information preset in the clock source.
- the backup center box router is switched to the primary center frame router, that is, the backup center box.
- the router acquires synchronization clock information preset in the service box router, where the synchronization clock information includes frequency synchronization information and phase synchronization information, and sends the synchronization clock information to a corresponding router according to the type of the clock source, to The clock is synchronized by the router.
- the cluster can be All devices in the routing system make redundant backups.
- the cluster routing system includes a main center box router R1, a standby center box router R2, a service box router R3, and a service box router R4.
- the main central frame router R1 and the standby central frame router R2 respectively include a main main control board, a standby main control board, and a clock board.
- the service box router R3 and the service box router R4 respectively include a main main control board, a standby main control board, and a line. card.
- the clock synchronization method is described by using the service box router R3 as the clock source.
- the line card of the service box router R3 obtains the clock information sent by the external clock source through the SyncE+1588V2, and synchronizes the clock with the clock.
- the clock information is sent to the main frame of the service box router R3.
- the service box router R3 The main main control board generates synchronous clock information according to the clock information, and sends the synchronous clock information to the clock board of the main center frame router R1.
- the clock board of the main center frame router R1 synchronizes its own clock according to the synchronous clock information, and sends the synchronous clock information to the main/standby main control board of the main center frame router R1; and is mastered by the main central frame router R1.
- the board sends the synchronous clock information to the standby center frame router R2.
- the clock board of the main center frame router R1 sends the synchronous clock information to the service box router R4 for clock synchronization of all routers in the cluster routing system. It should be noted that the backup center frame router R4 may also send the received synchronization clock information to the service box router connected thereto.
- the device in the cluster routing system has redundant backups. For example, when the main control board of the R1 is faulty, the standby main control board can replace the work. For example, when the main center frame router R1 is abnormal or the networking cable is loose. The standby center frame router R2 can be ready to be transferred to the master at any time to complete the acquisition and delivery of synchronous clock information.
- the method, the device and the system of the embodiment of the invention enable the clocks of all the routers in the cluster routing system to be synchronized, thereby improving the stability of the operation of the cluster routing system.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Disclosed are a clock synchronization method, a router and a cluster routing system. The clock synchronization method is applied to the cluster routing system. The cluster routing system comprises a main center frame router and at least two service frame routers. The clock synchronization method comprises the following steps: according to configuration data input by a user, the main center frame router sets a clock source, the clock source being the main center frame router or the service frame router; the main center frame router acquires pre-set synchronization clock information in the clock source, the synchronization clock information comprising frequency synchronization information and phase synchronization information; and according to the type of the clock source, the main center frame router sends the synchronization clock information to a corresponding router to allow the router to perform clock synchronization.
Description
本文涉及通信技术领域,尤其涉及时钟同步方法、路由器和集群路由系统。This paper covers the field of communication technology, especially clock synchronization methods, routers and cluster routing systems.
路由器集群技术是将两台或两台以上的普通路由器通过一台或多台特殊中心连接路由器进行桥接,使这些普通路由器能够相互协作,并行处理,如同一台路由器在工作,从而实现带宽升级和处理能力的提升。在集群中,普通路由器称作业务框路由器,中心连接路由器称作中心框路由器。Router clustering technology is to bridge two or more ordinary routers through one or more special central connection routers, so that these common routers can cooperate with each other and process in parallel, such as the same router is working, thus achieving bandwidth upgrade and Increased processing power. In a cluster, a common router is called a service box router, and a central connection router is called a center box router.
在数字通信系统中,数据是以数据流的形式传输的。这些数据流在数字交换设备之间传输时,其速率必须完全保持一致,才能保证数据传输的准确无误。可以理解的是,为了使集群内的各路由器能够协同工作,需要对集群内的各路由器进行时钟同步。时钟同步包括两方面同步信息,一方面为相位同步,即校正时间偏差,另一方面为频率同步,即校正频率快慢。但相关技术中并没有针对集群路由系统时钟同步的技术方案,导致了集群路由系统工作不稳定的问题。In digital communication systems, data is transmitted in the form of data streams. When these data streams are transmitted between digital switching devices, their rates must be completely consistent to ensure accurate data transmission. It can be understood that in order to enable the routers in the cluster to work together, it is necessary to perform clock synchronization on each router in the cluster. The clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency. However, the related art does not have a technical solution for clock synchronization of the cluster routing system, which leads to the problem that the cluster routing system is unstable.
发明内容Summary of the invention
本发明实施例提供一种时钟同步方法、路由器和集群路由系统,用以提升集群路由系统工作的稳定性。The embodiment of the invention provides a clock synchronization method, a router and a cluster routing system, which are used to improve the stability of the cluster routing system.
本发明实施例提供一种时钟同步方法,所述时钟同步方法应用于集群路由系统,所述集群路由系统包括主中心框路由器和至少两个业务框路由器,所述时钟同步方法包括以下步骤:The embodiment of the present invention provides a clock synchronization method, where the clock synchronization method is applied to a cluster routing system, where the cluster routing system includes a main center frame router and at least two service box routers, and the clock synchronization method includes the following steps:
所述主中心框路由器根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;The main center frame router sets a clock source according to the configuration data input by the user, and the clock source is a main center box router or a service box router;
所述主中心框路由器获取所述时钟源中预置的同步时钟信息,所述同步
时钟信息包括频率同步信息和相位同步信息;The main center frame router acquires synchronization clock information preset in the clock source, where the synchronization
The clock information includes frequency synchronization information and phase synchronization information;
所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。The primary center frame router sends the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
可选地,所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步之后,所述方法还包括:Optionally, after the primary center frame router sends the synchronous clock information to the corresponding router according to the type of the clock source, and the clock is synchronized by the router, the method further includes:
接收到所述同步时钟信息的路由器根据所述同步时钟信息同步自身时钟。The router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
可选地,当任一业务框路由器被设置为时钟源时,所述主中心框路由器获取所述时钟源中预置的同步时钟信息之前,所述方法还包括:Optionally, before any of the service box routers is configured as a clock source, before the master center box router acquires the synchronization clock information preset in the clock source, the method further includes:
被设置为时钟源的业务框路由器获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;The service box router configured as a clock source acquires clock information of a preset external clock source, and synchronizes its own clock according to the clock information;
被设置为时钟源的业务框路由器根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。The service box router configured as the clock source generates synchronization clock information according to the clock information and sends the synchronization clock information to the main center box router, so that the main center box router acquires synchronization clock information.
可选地,当主中心框路由器被设置为时钟源时,所述主中心框路由器获取所述时钟源中预置的同步时钟信息包括:Optionally, when the primary center frame router is configured as a clock source, the acquiring, by the primary center frame router, the synchronized clock information preset in the clock source includes:
所述主中心框路由器根据自身时钟信息生成同步时钟信息。The primary center frame router generates synchronous clock information according to its own clock information.
可选地,所述集群路由系统还包括备中心框路由器,所述时钟同步方法还包括:Optionally, the cluster routing system further includes a backup center box router, where the clock synchronization method further includes:
当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,主中心框路由器进行主中心框路由器和备主中心框路由器的切换。When the primary center frame router fails to obtain the synchronous clock information preset in the clock source, the primary center frame router performs switching between the primary central frame router and the standby primary central frame router.
本发明实施例还提供一种主中心框路由器,包括:The embodiment of the invention further provides a main central frame router, including:
时钟源设置模块,设置为根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;The clock source setting module is configured to set a clock source according to the configuration data input by the user, where the clock source is a central center frame router or a service box router;
同步时钟信息获取模块,设置为获取所述时钟源中预置的同步时钟信息,
所述同步时钟信息包括频率同步信息和相位同步信息;以及The synchronous clock information acquiring module is configured to acquire synchronization clock information preset in the clock source,
The synchronous clock information includes frequency synchronization information and phase synchronization information;
第一发送模块,设置为根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。The first sending module is configured to send the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
可选地,所述主中心框路由器还包括第一同步模块,其设置为在接收到所述同步时钟信息后,根据所述同步时钟信息同步自身时钟。Optionally, the primary center frame router further includes a first synchronization module, configured to synchronize the self clock according to the synchronous clock information after receiving the synchronous clock information.
可选地,当所述主中心框路由器被所述时钟源设置模块设置为时钟源时,所述同步时钟信息获取模块获取所述时钟源中预置的同步时钟信息,包括:所述同步时钟信息获取模块根据本主中心框路由器自身时钟信息生成同步时钟信息。Optionally, when the primary center-box router is configured as a clock source by the clock source setting module, the synchronous clock information acquiring module acquires synchronization clock information preset in the clock source, and includes: the synchronous clock. The information acquisition module generates synchronous clock information according to the clock information of the main center frame router itself.
可选地,所述主中心框路由器还包括切换模块,其设置为当所述同步时钟信息获取模块未能获取所述时钟源中预置的同步时钟信息时,进行与备主中心框路由器的切换。Optionally, the main central frame router further includes a switching module, configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
本发明实施例还提供一种业务框路由器,包括:The embodiment of the invention further provides a service box router, including:
第二同步模块,设置为当所述业务框路由器被设置为时钟源时,获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;a second synchronization module, configured to: when the service box router is configured as a clock source, acquire clock information of a preset external clock source, and synchronize the clock according to the clock information;
第二发送模块,设置为根据所述时钟信息生成同步时钟信息,并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。The second sending module is configured to generate synchronous clock information according to the clock information, and send the synchronous clock information to the primary center frame router, so that the primary center frame router obtains synchronous clock information.
可选地,所述第二同步模块,还设置为当所述业务框路由器不是时钟源时,在接收到主中心框路由器发送的同步时钟信息后,根据所述同步时钟信息同步自身时钟。Optionally, the second synchronization module is further configured to: when the service box router is not a clock source, after receiving the synchronization clock information sent by the main center frame router, synchronize the self clock according to the synchronization clock information.
本发明实施例还提供一种集群路由系统,包括主中心框路由器和至少两个业务框路由器,其中,所述主中心框路由器包括如前所述的主中心框路由器;所述业务框路由器包括如前所述的业务框路由器。
The embodiment of the present invention further provides a cluster routing system, including a main center box router and at least two service box routers, where the main center box router includes a main center box router as described above; Business box router as described earlier.
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上述方法。The embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
本发明实施例通过所述主中心框路由器根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;所述主中心框路由器获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。从而使得集群路由系统内所有路由器的时钟得以同步,进而提升了集群路由系统工作的稳定性。In the embodiment of the present invention, the clock source is configured by the main center frame router according to the configuration data input by the user, where the clock source is a main center box router or a service box router; and the main center box router acquires presets in the clock source. Synchronizing clock information, the synchronization clock information includes frequency synchronization information and phase synchronization information; the primary center frame router sends the synchronization clock information to a corresponding router according to the type of the clock source, for the router to perform Clock synchronization. Therefore, the clocks of all routers in the cluster routing system are synchronized, thereby improving the stability of the cluster routing system.
附图概述BRIEF abstract
图1为本发明实施例1集群路由系统中组网连接示意图;1 is a schematic diagram of a network connection in a cluster routing system according to Embodiment 1 of the present invention;
图2为本发明实施例1时钟同步方法的流程示意图;2 is a schematic flowchart of a clock synchronization method according to Embodiment 1 of the present invention;
图3为本发明实施例2时钟同步方法的流程示意图;3 is a schematic flowchart of a clock synchronization method according to Embodiment 2 of the present invention;
图4为本发明实施例3时钟同步方法的流程示意图;4 is a schematic flowchart of a clock synchronization method according to Embodiment 3 of the present invention;
图5为本发明实施例4集群路由器系统中冗余备份组网连接示意图;5 is a schematic diagram of a redundant backup network connection in a cluster router system according to Embodiment 4 of the present invention;
图6为本发明实施例4中主中心框路由器结构示意图;6 is a schematic structural diagram of a main center frame router in Embodiment 4 of the present invention;
图7为本发明实施例4中业务框路由器结构示意图。FIG. 7 is a schematic structural diagram of a service box router according to Embodiment 4 of the present invention.
需要说明的是,在不冲突的情况下,本发明实施例以及实施例中的特征可以相互任意组合。It should be noted that, in the case of no conflict, the features in the embodiments of the present invention and the embodiments may be arbitrarily combined with each other.
实施例1Example 1
本发明实施例提供一种时钟同步方法,所述时钟同步方法应用于集群路由系统,所述集群路由系统包括主中心框路由器和至少两个业务框路由器,参照图1和图2,在本实施例中,该时钟同步方法包括:
An embodiment of the present invention provides a clock synchronization method, where the clock synchronization method is applied to a cluster routing system, where the cluster routing system includes a main center frame router and at least two service box routers. Referring to FIG. 1 and FIG. 2, in this implementation In the example, the clock synchronization method includes:
步骤S10,所述主中心框路由器根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;In step S10, the primary center frame router sets a clock source according to the configuration data input by the user, and the clock source is a central center frame router or a service box router;
本实施例提供的时钟同步方法应用于集群路由系统的时钟同步中,通过对集群路由系统中的主中心框路由器和多个业务框路由器进行时钟同步,以及在主中心框路由器的协调下,多个业务框路由器能够相互协作,并行处理,如同一台路由器在工作,从而实现带宽升级和处理能力的提升。应当说明的是,时钟同步包括两方面同步信息,一方面为相位同步,即校正时间偏差,另一方面为频率同步,即校正频率快慢。The clock synchronization method provided in this embodiment is applied to the clock synchronization of the cluster routing system, and the clock is synchronized between the main central box router and the multiple service box routers in the cluster routing system, and under the coordination of the main central box router. The service box routers can cooperate with each other and process in parallel, such as the same router working, thereby achieving bandwidth upgrade and processing capability. It should be noted that the clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency.
在步骤S10中,用户可以在主中心框路由器的指定界面输入配置数据,以供主中心框路由器根据用户输入的配置数据设置时钟源;所述时钟源可以为主中心框路由器或业务框路由器。例如,用户可以设置该集群路由系统内的任一业务框路由器为时钟源,以供主中心框路由器从该业务框路由器获取同步时钟信息。In step S10, the user may input configuration data on the designated interface of the main center box router, so that the main center box router sets the clock source according to the configuration data input by the user; the clock source may be a main center box router or a service box router. For example, the user can set any service box router in the cluster routing system as a clock source, so that the main center box router obtains synchronous clock information from the service box router.
步骤S20,所述主中心框路由器获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;Step S20: The primary center frame router acquires synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information.
步骤S30,所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。Step S30: The primary center frame router sends the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
所述时钟源类型包括中心框路由器和业务框路由器。The clock source type includes a center box router and a service box router.
由于在集群路由系统中,主中心框路由器负责协调管理其他业务框路由器,业务框路由器负责报文转发等路由器基本业务,因此,本实施例中,当主中心框路由器获取到同步时钟信息后,由主中心框路由器负责同步时钟信息的分发。In the cluster routing system, the main central box router is responsible for coordinating and managing other service box routers, and the service box router is responsible for packet basic services such as packet forwarding. Therefore, in this embodiment, after the main central frame router obtains the synchronous clock information, The main center box router is responsible for synchronizing the distribution of clock information.
可选地,主中心框路由器可以被设置为时钟源,业务框路由器也可被设置为时钟源。Alternatively, the primary center frame router can be set as a clock source, and the service box router can also be set as a clock source.
当业务框路由器被设置为时钟源时,上述步骤S30为:所述主中心框路由器将所述同步时钟信息下发至被设置为时钟源的业务框路由器之外的所有路由器。When the service box router is set as the clock source, the above step S30 is: the main center frame router sends the synchronous clock information to all routers except the service box router set as the clock source.
当主中心框路由器被设置为时钟源时,上述步骤S30为:所述主中心框
路由器将所述同步时钟信息下发至主中心框路由器之外的所有路由器。When the main center frame router is set as the clock source, the above step S30 is: the main center frame
The router sends the synchronous clock information to all routers except the main central frame router.
可见,步骤S30中的“相应的路由器”是指除被设置为时钟源的路由器之外的所有路由器。It can be seen that the "corresponding router" in step S30 refers to all routers except the router set as the clock source.
可以理解的是,接收到所述同步时钟信息的路由器将会根据所述同步时钟信息同步自身时钟。It can be understood that the router that receives the synchronous clock information will synchronize its own clock according to the synchronous clock information.
本发明实施例通过所述主中心框路由器根据用户输入的配置数据设置时钟源;所述主中心框路由器获取所述时钟源中预置的同步时钟信息;所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。从而使得集群路由系统内所有路由器的时钟得以同步,进而提升了集群路由系统工作的稳定性。In the embodiment of the present invention, the primary center frame router sets a clock source according to configuration data input by the user; the primary center frame router acquires synchronization clock information preset in the clock source; and the main center frame router according to the clock The type of the source sends the synchronous clock information to the corresponding router for clock synchronization of the router. Therefore, the clocks of all routers in the cluster routing system are synchronized, thereby improving the stability of the cluster routing system.
实施例2Example 2
参照图3,本实施例与上述实施例1的区别在于,本实施例中,上述步骤S30之后还包括:Referring to FIG. 3, the difference between the embodiment and the first embodiment is that, in the embodiment, after the step S30, the method further includes:
步骤S40,接收到所述同步时钟信息的路由器根据所述同步时钟信息同步自身时钟。Step S40: The router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
可以理解的是,接收到所述同步时钟信息的路由器根据所述同步时钟信息同步自身时钟。其中,接收到所述同步时钟信息的路由器根据所述同步时钟信息中的频率同步信息同步自身时钟的频率,根据所述同步时钟信息中的相位同步信息同步自身时钟的相位。It can be understood that the router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information. The router that receives the synchronous clock information synchronizes the frequency of the own clock according to the frequency synchronization information in the synchronous clock information, and synchronizes the phase of the own clock according to the phase synchronization information in the synchronous clock information.
实施例3Example 3
由于主中心框路由器可以被设置为时钟源,业务框路由器也可以被设置为时钟源。本例中介绍当任一业务框路由器被设置为时钟源时的时钟同步方法,参照图4,本实施例与实施例1的区别在于,上述步骤S20之前还包括:Since the primary center frame router can be set as the clock source, the service box router can also be set as the clock source. In this example, a clock synchronization method is provided when any of the service box routers is configured as a clock source. Referring to FIG. 4, the difference between the embodiment and the embodiment 1 is that the foregoing step S20 further includes:
步骤S50,被设置为时钟源的业务框路由器获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;
Step S50, the service box router configured as a clock source acquires clock information of a preset external clock source, and synchronizes its own clock according to the clock information;
步骤S60,被设置为时钟源的业务框路由器根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。Step S60: The service box router configured as the clock source generates synchronization clock information according to the clock information, and sends the synchronization clock information to the main center frame router, so that the main center frame router acquires synchronization clock information.
本实施例中,通过被设置为时钟源的业务框路由器获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;被设置为时钟源的业务框路由器根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。根据外部时钟源的时钟信息生成同步时钟信息供集群路由系统同步时钟,可以使得集群路由系统时钟同步更精确。In this embodiment, the clock information of the preset external clock source is obtained by the service box router configured as the clock source, and the clock is synchronized according to the clock information; the service box router configured as the clock source generates the clock information according to the clock information. The clock information is synchronized and sent to the main center frame router for the main center frame router to acquire synchronous clock information. Synchronous clock information is generated according to the clock information of the external clock source for the cluster routing system to synchronize the clock, which can make the cluster routing system clock synchronization more accurate.
其中,用户可以在业务框路由器指定界面输入配置数据,以指定外部时钟源。可以通过多种方式获取外部时钟源的时钟信息,例如,GPS、GLONASS、Galileo、Synce、1588V2等。The user can input configuration data on the specified interface of the service box router to specify an external clock source. The clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
应当说明的是,GPS、GLONASS、Galileo均可同时提供包括频率同步信息和相位同步信息的时钟信息。Synce只能提供频率同步信息,1588V2只能提供相位同步信息。因此,当采用Synce获取频率同步信息时,需要配合1588V2获取相位同步信息。It should be noted that GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information. Synce can only provide frequency synchronization information, and 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
可选地,当主中心框路由器被设置为时钟源时,上述步骤S20包括:Optionally, when the primary center frame router is configured as a clock source, the foregoing step S20 includes:
所述主中心框路由器根据自身时钟信息生成同步时钟信息。The primary center frame router generates synchronous clock information according to its own clock information.
本实施例中,当主中心框路由器被设置为时钟源时,主中心框路由器可以根据自身时钟信息生成同步时钟信息。In this embodiment, when the primary center frame router is set as the clock source, the primary center frame router can generate synchronous clock information according to its own clock information.
可以理解的是,主中心框路由器也可以获取外部时钟源的时钟信息并根据所述时钟信息生成同步时钟信息。可以通过多种方式获取外部时钟源的时钟信息,例如,GPS、GLONASS、Galileo、Synce、1588V2等。It can be understood that the primary center frame router can also obtain clock information of an external clock source and generate synchronous clock information according to the clock information. The clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
应当说明的是,GPS、GLONASS、Galileo均可同时提供包括频率同步信息和相位同步信息的时钟信息。Synce只能提供频率同步信息,1588V2只能提供相位同步信息。因此,当采用Synce获取频率同步信息时,需要配合1588V2获取相位同步信息。
It should be noted that GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information. Synce can only provide frequency synchronization information, and 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
可选地,为了防止主中心框路由器未正常工作导致集群路由系统时钟不同步,本实施例中,所述集群路由系统还包括备中心框路由器,所述时钟同步方法还包括:Optionally, in the embodiment, the cluster routing system further includes a backup center box router, and the clock synchronization method further includes:
当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,主中心框路由器进行主中心框路由器和备主中心框路由器的切换。When the primary center frame router fails to obtain the synchronous clock information preset in the clock source, the primary center frame router performs switching between the primary central frame router and the standby primary central frame router.
本实施例中,设置备中心框路由器,当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,由备中心框路由器代替故障主中心框路由器成为主中心框路由器。例如,当任一业务框路由器被设置为时钟源且当前主中心框路由器未能正常从该业务框路由器获取同步时钟信息时,将备中心框路由器切换为主中心框路由器,即由备中心框路由器获取该业务框路由器中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;并根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。In this embodiment, the standby central chassis router is configured to replace the faulty primary central frame router with the primary central frame router as the primary central frame router when the primary central frame router fails to obtain the synchronous clock information preset in the clock source. For example, when any of the service box routers is configured as the clock source and the current main center box router fails to obtain the synchronization clock information from the service box router, the backup center box router is switched to the primary center frame router, that is, the backup center box. The router acquires synchronization clock information preset in the service box router, where the synchronization clock information includes frequency synchronization information and phase synchronization information, and sends the synchronization clock information to a corresponding router according to the type of the clock source, to The clock is synchronized by the router.
可以理解的是,为了提升集群路由系统时钟同步的稳定性,可以对集群路由系统内的所有设备做冗余备份。参照图5,所述集群路由系统包括主中心框路由器R1、备中心框路由器R2,业务框路由器R3、业务框路由器R4。其中,主中心框路由器R1和备中心框路由器R2分别包括主主控板、备主控板和时钟板;业务框路由器R3和业务框路由器R4分别包括主主控板、备主控板和线卡。It can be understood that in order to improve the stability of the clock synchronization of the cluster routing system, redundant backups can be performed on all devices in the cluster routing system. Referring to FIG. 5, the cluster routing system includes a main center box router R1, a standby center box router R2, a service box router R3, and a service box router R4. The main central frame router R1 and the standby central frame router R2 respectively include a main main control board, a standby main control board, and a clock board. The service box router R3 and the service box router R4 respectively include a main main control board, a standby main control board, and a line. card.
以业务框路由器R3为时钟源为例,对前述时钟同步方法进行说明:The clock synchronization method is described by taking the service box router R3 as the clock source as an example.
业务框路由器R3的线卡通过SyncE+1588V2的方式获取外部时钟源发送的时钟信息,并同步自身时钟,将所述时钟信息发送给业务框路由器R3主或备主控板;业务框路由器R3的主主控板根据所述时钟信息生成同步时钟信息,并将所述同步时钟信息发送给主中心框路由器R1的时钟板。主中心框路由器R1的时钟板根据所述同步时钟信息同步自身时钟,将所述同步时钟信息发送给主中心框路由器R1的主或备主控板;并由主中心框路由器R1的主主控板将同步时钟信息发送给备中心框路由器R2,主中心框路由器R1的时钟板将同步时钟信息发送给业务框路由器R4;以供集群路由系统内其他路由器
进行时钟同步。应当说明的是,备中心框路由器R4也可以将接收到同步时钟信息发送给与之连接的业务框路由器。The line card of the service box router R3 obtains the clock information sent by the external clock source through the SyncE+1588V2, and synchronizes the clock with the clock, and sends the clock information to the main or standby main control board of the service box router R3; The main main control board generates synchronous clock information according to the clock information, and sends the synchronous clock information to the clock board of the main center frame router R1. The clock board of the main center frame router R1 synchronizes its own clock according to the synchronous clock information, and sends the synchronous clock information to the primary or standby main control board of the main central frame router R1; and is mastered by the main central frame router R1. The board sends the synchronous clock information to the standby center frame router R2. The clock board of the main center frame router R1 sends the synchronous clock information to the service box router R4 for other routers in the cluster routing system.
Perform clock synchronization. It should be noted that the backup center frame router R4 may also send the received synchronization clock information to the service box router connected thereto.
集群路由系统内设备均有冗余备份,例如当业务框路由器R1主主控板发生异常,则备主控板可替代工作,又例如当主中心框路由器R1发生异常或者组网连接线松动时,备中心框路由器R2可随时备转主,完成同步时钟信息的获取与下发。The device in the cluster routing system has redundant backups. For example, when the main control board of the R1 is faulty, the standby main control board can replace the work. For example, when the main center frame router R1 is abnormal or the networking cable is loose. The standby center frame router R2 can be ready to be transferred to the master at any time to complete the acquisition and delivery of synchronous clock information.
实施例4Example 4
本发明实施例还提供一种集群路由系统,参照图1,所述集群路由系统包括主中心框路由器和至少两个业务框路由器,其中,The embodiment of the present invention further provides a cluster routing system. Referring to FIG. 1 , the cluster routing system includes a main central box router and at least two service box routers, where
所述主中心框路由器如图6所示,包括时钟源设置模块601,同步时钟信息获取模块602以及第一发送模块603,其中:As shown in FIG. 6, the main central frame router includes a clock source setting module 601, a synchronous clock information acquiring module 602, and a first sending module 603, where:
所述所述时钟源设置模块601,设置为根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;The clock source setting module 601 is configured to set a clock source according to configuration data input by the user, where the clock source is a central center frame router or a service box router;
所述同步时钟信息获取模块602,设置为获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;The synchronization clock information obtaining module 602 is configured to acquire synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information;
所述第一发送模块603,设置为根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。The first sending module 603 is configured to send the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
通过对集群路由系统中的主中心框路由器和业务框路由器进行时钟同步,以及在主中心框路由器的协调下,所有业务框路由器能够相互协作,并行处理,如同一台路由器在工作,从而实现带宽升级和处理能力的提升。应当说明的是,时钟同步包括两方面同步信息,一方面为相位同步,即校正时间偏差,另一方面为频率同步,即校正频率快慢。By synchronizing the clock between the main central box router and the service box router in the cluster routing system, and under the coordination of the main central box router, all service box routers can cooperate with each other and process in parallel, such as the same router working, thereby realizing bandwidth. Upgrade and processing capabilities. It should be noted that the clock synchronization includes two aspects of synchronization information, on the one hand, phase synchronization, that is, correcting the time deviation, and on the other hand, frequency synchronization, that is, correcting the frequency.
其中,用户可以在主中心框路由器的指定界面输入配置数据,以供主中心框路由器根据用户输入的配置数据设置时钟源;所述时钟源可以为主中心框路由器或业务框路由器。例如,用户可以设置该集群路由系统内的任一业务框路由器为时钟源,以供主中心框路由器从该业务框路由器获取同步时钟信息。
The user can input the configuration data on the designated interface of the main center box router, so that the main center box router can set the clock source according to the configuration data input by the user; the clock source can be the main center box router or the service box router. For example, the user can set any service box router in the cluster routing system as a clock source, so that the main center box router obtains synchronous clock information from the service box router.
由于在集群路由系统中,主中心框路由器负责协调管理所有业务框路由器,业务框路由器负责报文转发等路由器基本业务,可以理解的是,本实施例中,当主中心框路由器获取到同步时钟信息后,由主中心框路由器负责同步时钟信息的分发。In the cluster routing system, the main central frame router is responsible for coordinating and managing all the service box routers, and the service box router is responsible for packet basic services such as packet forwarding. It can be understood that, in this embodiment, when the main central frame router obtains the synchronous clock information. After that, the main center box router is responsible for synchronizing the distribution of clock information.
其中,主中心框路由器可以被设置为时钟源,业务框路由器也可被设置为时钟源。The main center frame router can be set as a clock source, and the service box router can also be set as a clock source.
当业务框路由器被设置为时钟源时,第一发送模块603设置为将所述同步时钟信息下发至被设置为时钟源的业务框路由器之外的所有路由器。When the service box router is set as the clock source, the first sending module 603 is configured to deliver the synchronous clock information to all routers except the service box router that is set as the clock source.
当主中心框路由器被设置为时钟源时,第一发送模块603设置为将所述同步时钟信息下发至主中心框路由器之外的所有路由器。When the primary center frame router is set as the clock source, the first sending module 603 is configured to deliver the synchronous clock information to all routers except the main center box router.
可以理解的是,接收到所述同步时钟信息的路由器将会根据所述同步时钟信息同步自身时钟。It can be understood that the router that receives the synchronous clock information will synchronize its own clock according to the synchronous clock information.
当主中心框路由器被设置为时钟源时,所述主中心框路由器设置为根据自身时钟信息生成同步时钟信息。When the primary center frame router is set as a clock source, the primary center frame router is set to generate synchronous clock information based on its own clock information.
本实施例中,当主中心框路由器被设置为时钟源时,同步时钟信息获取模块602设置为可以根据自身时钟信息生成同步时钟信息。In this embodiment, when the primary center frame router is set as the clock source, the synchronous clock information acquiring module 602 is configured to generate synchronous clock information according to the clock information of the clock.
可以理解的是,主中心框路由器也可以获取外部时钟源的时钟信息并根据所述时钟信息生成同步时钟信息。可以通过多种方式获取外部时钟源的时钟信息,例如,GPS、GLONASS、Galileo、Synce、1588V2等。It can be understood that the primary center frame router can also obtain clock information of an external clock source and generate synchronous clock information according to the clock information. The clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
应当说明的是,GPS、GLONASS、Galileo均可同时提供包括频率同步信息和相位同步信息的时钟信息。Synce只能提供频率同步信息,1588V2只能提供相位同步信息。因此,当采用Synce获取频率同步信息时,需要配合1588V2获取相位同步信息。It should be noted that GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information. Synce can only provide frequency synchronization information, and 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
本发明实施例通过所述主中心框路由器根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;所述主中心框路由器获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。从而使得
集群路由系统内所有路由器的时钟得以同步,进而提升了集群路由系统工作的稳定性。In the embodiment of the present invention, the clock source is configured by the main center frame router according to the configuration data input by the user, where the clock source is a main center box router or a service box router; and the main center box router acquires presets in the clock source. Synchronizing clock information, the synchronization clock information includes frequency synchronization information and phase synchronization information; the primary center frame router sends the synchronization clock information to a corresponding router according to the type of the clock source, for the router to perform Clock synchronization. Thereby making
The clocks of all routers in the cluster routing system are synchronized, which improves the stability of the cluster routing system.
可选地,所述主中心框路由器还包括第一同步模块604,其设置为接收到所述同步时钟信息后,根据所述同步时钟信息同步自身时钟。Optionally, the primary center frame router further includes a first synchronization module 604 configured to synchronize the self clock according to the synchronization clock information after receiving the synchronization clock information.
可以理解的是,接收到所述同步时钟信息的路由器根据所述同步时钟信息同步自身时钟。其中,接收到所述同步时钟信息的路由器根据所述同步时钟信息中的频率同步信息同步自身时钟的频率,根据所述同步时钟信息中的相位同步信息同步自身时钟的相位。It can be understood that the router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information. The router that receives the synchronous clock information synchronizes the frequency of the own clock according to the frequency synchronization information in the synchronous clock information, and synchronizes the phase of the own clock according to the phase synchronization information in the synchronous clock information.
可选地,所述主中心框路由器还包括切换模块,其设置为当所述同步时钟信息获取模块未能获取所述时钟源中预置的同步时钟信息时,进行与备主中心框路由器的切换。Optionally, the main central frame router further includes a switching module, configured to perform, when the synchronous clock information acquiring module fails to acquire the synchronous clock information preset in the clock source, Switch.
主中心框路由器可以被设置为时钟源,业务框路由器也可以被设置为时钟源。The main center frame router can be set as the clock source, and the service box router can also be set as the clock source.
当任一业务框路由器被设置为时钟源时,被设置为时钟源的业务框路由器设置为在主中心框路由器获取所述时钟源中预置的同步时钟信息之前,获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;还设置为根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。When any service box router is set as the clock source, the service box router set as the clock source is set to acquire the preset external clock source before the main center box router acquires the synchronization clock information preset in the clock source. The clock information is synchronized with the clock according to the clock information; and is further configured to generate synchronous clock information according to the clock information and send the synchronous clock information to the main center frame router, so that the primary center frame router acquires synchronous clock information.
所述业务框路由器如图7所示,包括:The service box router is as shown in FIG. 7, and includes:
第二同步模块701,设置为当所述业务框路由器被设置为时钟源时,获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;The second synchronization module 701 is configured to: when the service box router is configured as a clock source, acquire clock information of a preset external clock source, and synchronize the clock according to the clock information;
第二发送模块702,设置为根据所述时钟信息生成同步时钟信息,并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。The second sending module 702 is configured to generate synchronous clock information according to the clock information, and send the synchronous clock information to the primary center frame router, so that the primary center frame router acquires synchronous clock information.
可选地,所述第二同步模块701,还设置为当所述业务框路由器不是时钟源时,在接收到主中心框路由器发送的同步时钟信息后,根据所述同步时
钟信息同步自身时钟。Optionally, the second synchronization module 701 is further configured to: when the service box router is not a clock source, after receiving the synchronization clock information sent by the main center frame router, according to the synchronization time
The clock information synchronizes its own clock.
本实施例中,通过被设置为时钟源的业务框路由器获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;被设置为时钟源的业务框路由器根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。根据外部时钟源的时钟信息生成同步时钟信息供集群路由系统同步时钟,可以使得集群路由系统时钟同步更精确。In this embodiment, the clock information of the preset external clock source is obtained by the service box router configured as the clock source, and the clock is synchronized according to the clock information; the service box router configured as the clock source generates the clock information according to the clock information. The clock information is synchronized and sent to the main center frame router for the main center frame router to acquire synchronous clock information. Synchronous clock information is generated according to the clock information of the external clock source for the cluster routing system to synchronize the clock, which can make the cluster routing system clock synchronization more accurate.
其中,用户可以在业务框路由器指定界面输入配置数据,以指定外部时钟源。可以通过多种方式获取外部时钟源的时钟信息,例如,GPS、GLONASS、Galileo、Synce、1588V2等。The user can input configuration data on the specified interface of the service box router to specify an external clock source. The clock information of the external clock source can be obtained in various ways, for example, GPS, GLONASS, Galileo, Synce, 1588V2, and the like.
应当说明的是,GPS、GLONASS、Galileo均可同时提供包括频率同步信息和相位同步信息的时钟信息。Synce只能提供频率同步信息,1588V2只能提供相位同步信息。因此,当采用Synce获取频率同步信息时,需要配合1588V2获取相位同步信息。It should be noted that GPS, GLONASS, and Galileo can simultaneously provide clock information including frequency synchronization information and phase synchronization information. Synce can only provide frequency synchronization information, and 1588V2 can only provide phase synchronization information. Therefore, when using Syne to obtain frequency synchronization information, phase synchronization information needs to be acquired with 1588V2.
可选地,为了防止主中心框路由器未正常工作导致集群路由系统时钟不同步,所述集群路由系统还包括备中心框路由器,所述主中心框路由器还设置为当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,进行主中心框路由器和备主中心框路由器的切换。Optionally, in order to prevent the primary central frame router from working properly, the cluster routing system clock is not synchronized, the cluster routing system further includes a backup central box router, and the primary central frame router is further configured to fail to obtain the primary central frame router. When the synchronous clock information preset in the clock source is described, the switching between the primary center frame router and the standby primary center frame router is performed.
本实施例中,设置备中心框路由器,当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,由备中心框路由器代替故障主中心框路由器成为主中心框路由器。例如,当任一业务框路由器被设置为时钟源且当前主中心框路由器未能正常从该业务框路由器获取同步时钟信息时,将备中心框路由器切换为主中心框路由器,即由备中心框路由器获取该业务框路由器中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;并根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。In this embodiment, the standby central chassis router is configured to replace the faulty primary central frame router with the primary central frame router as the primary central frame router when the primary central frame router fails to obtain the synchronous clock information preset in the clock source. For example, when any of the service box routers is configured as the clock source and the current main center box router fails to obtain the synchronization clock information from the service box router, the backup center box router is switched to the primary center frame router, that is, the backup center box. The router acquires synchronization clock information preset in the service box router, where the synchronization clock information includes frequency synchronization information and phase synchronization information, and sends the synchronization clock information to a corresponding router according to the type of the clock source, to The clock is synchronized by the router.
可以理解的是,为了提升集群路由系统时钟同步的稳定性,可以对集群
路由系统内的所有设备做冗余备份。例如,参照图5,所述集群路由系统包括主中心框路由器R1、备中心框路由器R2,业务框路由器R3、业务框路由器R4。其中,主中心框路由器R1和备中心框路由器R2分别包括主主控板、备主控板和时钟板;业务框路由器R3和业务框路由器R4分别包括主主控板、备主控板和线卡。It can be understood that in order to improve the stability of the clock synchronization of the cluster routing system, the cluster can be
All devices in the routing system make redundant backups. For example, referring to FIG. 5, the cluster routing system includes a main center box router R1, a standby center box router R2, a service box router R3, and a service box router R4. The main central frame router R1 and the standby central frame router R2 respectively include a main main control board, a standby main control board, and a clock board. The service box router R3 and the service box router R4 respectively include a main main control board, a standby main control board, and a line. card.
以业务框路由器R3为时钟源,对前述时钟同步方法做说明:The clock synchronization method is described by using the service box router R3 as the clock source.
业务框路由器R3的线卡通过SyncE+1588V2的方式获取外部时钟源发送的时钟信息,并同步自身时钟,将所述时钟信息发送给业务框路由器R3主/备主控板;业务框路由器R3的主主控板根据所述时钟信息生成同步时钟信息,并将所述同步时钟信息发送给主中心框路由器R1的时钟板。主中心框路由器R1的时钟板根据所述同步时钟信息同步自身时钟,将所述同步时钟信息发送给主中心框路由器R1的主/备主控板;并由主中心框路由器R1的主主控板将同步时钟信息发送给备中心框路由器R2,主中心框路由器R1的时钟板将同步时钟信息发送给业务框路由器R4;以供集群路由系统内所有路由器进行时钟同步。应当说明的是,备中心框路由器R4也可以将接收到同步时钟信息发送给与之连接的业务框路由器。The line card of the service box router R3 obtains the clock information sent by the external clock source through the SyncE+1588V2, and synchronizes the clock with the clock. The clock information is sent to the main frame of the service box router R3. The service box router R3 The main main control board generates synchronous clock information according to the clock information, and sends the synchronous clock information to the clock board of the main center frame router R1. The clock board of the main center frame router R1 synchronizes its own clock according to the synchronous clock information, and sends the synchronous clock information to the main/standby main control board of the main center frame router R1; and is mastered by the main central frame router R1. The board sends the synchronous clock information to the standby center frame router R2. The clock board of the main center frame router R1 sends the synchronous clock information to the service box router R4 for clock synchronization of all routers in the cluster routing system. It should be noted that the backup center frame router R4 may also send the received synchronization clock information to the service box router connected thereto.
集群路由系统内设备均有冗余备份,例如当业务框路由器R1主主控板发生异常,则备主控板可替代工作,又例如当主中心框路由器R1发生异常或者组网连接线松动时,备中心框路由器R2可随时备转主,完成同步时钟信息的获取与下发。The device in the cluster routing system has redundant backups. For example, when the main control board of the R1 is faulty, the standby main control board can replace the work. For example, when the main center frame router R1 is abnormal or the networking cable is loose. The standby center frame router R2 can be ready to be transferred to the master at any time to complete the acquisition and delivery of synchronous clock information.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
采用本发明实施例方法、装置和系统,使得集群路由系统内所有路由器的时钟得以同步,进而提升了集群路由系统工作的稳定性。
The method, the device and the system of the embodiment of the invention enable the clocks of all the routers in the cluster routing system to be synchronized, thereby improving the stability of the operation of the cluster routing system.
Claims (13)
- 一种时钟同步方法,其特征在于,所述时钟同步方法应用于集群路由系统,所述集群路由系统包括主中心框路由器和至少两个业务框路由器,所述时钟同步方法包括以下步骤:A clock synchronization method is characterized in that the clock synchronization method is applied to a cluster routing system, and the cluster routing system includes a main center box router and at least two service box routers, and the clock synchronization method includes the following steps:所述主中心框路由器根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;The main center frame router sets a clock source according to the configuration data input by the user, and the clock source is a main center box router or a service box router;所述主中心框路由器获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;The main center frame router acquires synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information;所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。The primary center frame router sends the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- 如权利要求1所述的时钟同步方法,所述主中心框路由器根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步之后,所述方法还包括:The clock synchronization method according to claim 1, wherein the main center frame router transmits the synchronous clock information to a corresponding router according to a type of the clock source, after the router performs clock synchronization, the method Also includes:接收到所述同步时钟信息的路由器根据所述同步时钟信息同步自身时钟。The router that receives the synchronous clock information synchronizes its own clock according to the synchronous clock information.
- 如权利要求1所述的时钟同步方法,当任一业务框路由器被设置为时钟源时,所述主中心框路由器获取所述时钟源中预置的同步时钟信息之前,所述方法还包括:The clock synchronization method of claim 1, wherein the method further comprises: before the main center frame router acquires the synchronization clock information preset in the clock source, when the service box is configured as a clock source, the method further includes:被设置为时钟源的业务框路由器获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;The service box router configured as a clock source acquires clock information of a preset external clock source, and synchronizes its own clock according to the clock information;被设置为时钟源的业务框路由器根据所述时钟信息生成同步时钟信息并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。The service box router configured as the clock source generates synchronization clock information according to the clock information and sends the synchronization clock information to the main center box router, so that the main center box router acquires synchronization clock information.
- 如权利要求1所述的时钟同步方法,其中,当主中心框路由器被设置为时钟源时,所述主中心框路由器获取所述时钟源中预置的同步时钟信息,包括:The clock synchronization method of claim 1 , wherein when the primary center frame router is configured as a clock source, the primary center frame router acquires synchronization clock information preset in the clock source, including:所述主中心框路由器根据自身时钟信息生成同步时钟信息。 The primary center frame router generates synchronous clock information according to its own clock information.
- 如权利要求1至4任一项所述的时钟同步方法,所述集群路由系统还包括备中心框路由器,所述时钟同步方法还包括:The clock synchronization method according to any one of claims 1 to 4, wherein the cluster routing system further comprises a backup center box router, and the clock synchronization method further comprises:当主中心框路由器未能获取所述时钟源中预置的同步时钟信息时,主中心框路由器进行主中心框路由器和备主中心框路由器的切换。When the primary center frame router fails to obtain the synchronous clock information preset in the clock source, the primary center frame router performs switching between the primary central frame router and the standby primary central frame router.
- 一种主中心框路由器,包括:A main center box router, including:时钟源设置模块,设置为根据用户输入的配置数据设置时钟源,所述时钟源为主中心框路由器或业务框路由器;The clock source setting module is configured to set a clock source according to the configuration data input by the user, where the clock source is a central center frame router or a service box router;同步时钟信息获取模块,设置为获取所述时钟源中预置的同步时钟信息,所述同步时钟信息包括频率同步信息和相位同步信息;以及a synchronization clock information acquisition module, configured to acquire synchronization clock information preset in the clock source, where the synchronization clock information includes frequency synchronization information and phase synchronization information;第一发送模块,设置为根据所述时钟源的类型,将所述同步时钟信息发送至相应的路由器,以供所述路由器进行时钟同步。The first sending module is configured to send the synchronous clock information to a corresponding router according to the type of the clock source, so that the router performs clock synchronization.
- 如权利要求6所述的主中心框路由器,所述主中心框路由器还包括第一同步模块,其设置为在接收到所述同步时钟信息后,根据所述同步时钟信息同步自身时钟。The primary center frame router of claim 6, further comprising a first synchronization module configured to synchronize the self clock according to the synchronization clock information after receiving the synchronization clock information.
- 如权利要求6所述的主中心框路由器,当所述主中心框路由器被所述时钟源设置模块设置为时钟源时,所述同步时钟信息获取模块获取所述时钟源中预置的同步时钟信息,包括:所述同步时钟信息获取模块根据本主中心框路由器自身时钟信息生成同步时钟信息。The main center frame router according to claim 6, wherein the synchronous clock information acquisition module acquires a synchronization clock preset in the clock source when the main center frame router is set as a clock source by the clock source setting module. The information includes: the synchronous clock information acquiring module generates synchronous clock information according to the clock information of the main center frame router itself.
- 如权利要求6至8任一项所述的主中心框路由器,所述主中心框路由器还包括切换模块,其设置为当所述同步时钟信息获取模块未能获取所述时钟源中预置的同步时钟信息时,进行与备主中心框路由器的切换。The primary center frame router according to any one of claims 6 to 8, further comprising a switching module configured to: when the synchronous clock information acquiring module fails to acquire a preset in the clock source When the clock information is synchronized, the switch to the standby center frame router is performed.
- 一种如权利要求1至5任一项所述的时钟同步方法中的业务框路由器,包括:A service box router in the clock synchronization method according to any one of claims 1 to 5, comprising:第二同步模块,设置为当所述业务框路由器被设置为时钟源时,获取预置外部时钟源的时钟信息,并根据所述时钟信息同步自身时钟;a second synchronization module, configured to: when the service box router is configured as a clock source, acquire clock information of a preset external clock source, and synchronize the clock according to the clock information;第二发送模块,设置为根据所述时钟信息生成同步时钟信息,并将所述同步时钟信息发送给主中心框路由器,以供主中心框路由器获取同步时钟信息。 The second sending module is configured to generate synchronous clock information according to the clock information, and send the synchronous clock information to the primary center frame router, so that the primary center frame router obtains synchronous clock information.
- 如权利要求10所述的业务框路由器,所述第二同步模块,还设置为当所述业务框路由器不是时钟源时,在接收到主中心框路由器发送的同步时钟信息后,根据所述同步时钟信息同步自身时钟。The service box router according to claim 10, wherein the second synchronization module is further configured to: after the service box router is not a clock source, after receiving the synchronization clock information sent by the main center frame router, according to the synchronization The clock information synchronizes its own clock.
- 一种集群路由系统,包括主中心框路由器和至少两个业务框路由器,其中,所述主中心框路由器包括如权利要求6至9任一项所述的主中心框路由器;所述业务框路由器包括如权利要求10至11中任一项所述的业务框路由器。A trunking routing system, comprising: a main center box router and at least two service box routers, wherein the main center box router comprises the main center box router according to any one of claims 6 to 9; A service box router according to any one of claims 10 to 11.
- 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1至5任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, can implement the method of any one of claims 1 to 5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510043998.8A CN105991204A (en) | 2015-01-28 | 2015-01-28 | Clock synchronization method and cluster routing system |
CN201510043998.8 | 2015-01-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016119362A1 true WO2016119362A1 (en) | 2016-08-04 |
Family
ID=56542276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/081174 WO2016119362A1 (en) | 2015-01-28 | 2015-06-10 | Clock synchronization method, router and cluster routing system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105991204A (en) |
WO (1) | WO2016119362A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483138A (en) * | 2017-09-22 | 2017-12-15 | 烽火通信科技股份有限公司 | Cluster clock management system and management method |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108599916A (en) * | 2018-05-10 | 2018-09-28 | 烽火通信科技股份有限公司 | A kind of cluster internal clock wiring system and clock synchronizing method |
CN110896337B (en) * | 2018-09-12 | 2022-06-21 | 中兴通讯股份有限公司 | Clock, time synchronization method, device and multi-router system |
CN112636943B (en) * | 2019-10-08 | 2023-08-01 | 中兴通讯股份有限公司 | Optical transport network cluster upgrading method, device, equipment and storage medium |
CN115037402A (en) * | 2022-04-28 | 2022-09-09 | 新华三技术有限公司 | Clock signal synchronization method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916231A (en) * | 2014-03-25 | 2014-07-09 | 汉柏科技有限公司 | Cloud computing platform and server time synchronization method thereof |
CN103986791A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Rapid internal cluster node time synchronization method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6199169B1 (en) * | 1998-03-31 | 2001-03-06 | Compaq Computer Corporation | System and method for synchronizing time across a computer cluster |
CN101931587A (en) * | 2009-06-19 | 2010-12-29 | 华为技术有限公司 | Method and system of virtue cluster route |
CN104270449A (en) * | 2014-10-09 | 2015-01-07 | 浪潮(北京)电子信息产业有限公司 | Method and device for achieving time synchronizing among server nodes |
-
2015
- 2015-01-28 CN CN201510043998.8A patent/CN105991204A/en active Pending
- 2015-06-10 WO PCT/CN2015/081174 patent/WO2016119362A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916231A (en) * | 2014-03-25 | 2014-07-09 | 汉柏科技有限公司 | Cloud computing platform and server time synchronization method thereof |
CN103986791A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Rapid internal cluster node time synchronization method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483138A (en) * | 2017-09-22 | 2017-12-15 | 烽火通信科技股份有限公司 | Cluster clock management system and management method |
Also Published As
Publication number | Publication date |
---|---|
CN105991204A (en) | 2016-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016119362A1 (en) | Clock synchronization method, router and cluster routing system | |
EP3291467B1 (en) | Time synchronization system | |
US9973601B2 (en) | Fault tolerant clock network | |
EP2820783B1 (en) | Frequency distribution using precision time protocol | |
CN104052589B (en) | Fault tolerant clock network | |
EP3076572B1 (en) | Clock synchronization method for multiple clock domains, line card, and ethernet device | |
US11272003B2 (en) | Network device synchronization method and network device | |
JPWO2020089962A1 (en) | Time synchronization system, time master, management master and time synchronization method | |
WO2012163172A1 (en) | Clock synchronization method and device | |
US11323194B2 (en) | Cross domain synchronization in a communication network | |
US11728917B2 (en) | Robust distribution of IP timing signals | |
CN102342051A (en) | Method for synchronizing clocks by separated transmissions of first and second data via at least one timing distribution protocol, and associated system and module | |
CN107547160B (en) | A kind of method for synchronizing time and device | |
WO2020052298A1 (en) | Method and device for clock and time synchronization, and multi-router system | |
KR20150011685A (en) | Time synchronization management system using independence type NTP management server | |
US11876609B2 (en) | Time sync device, time sync method, and program | |
CN105323086B (en) | Method, device and system for indicating synchronous time source selection | |
KR102684118B1 (en) | Methods for restoring clock port properties, devices, and systems | |
JP3538374B2 (en) | Time supply system and time supply device | |
Machnikowski et al. | Challenges with linuxptp on Telco RAN deployments | |
WO2023236048A1 (en) | Method and network device for ptp clock synchronization | |
Owczarek | Deploying PTP as an enterprise service: Issues, challenges and design considerations | |
WO2012171417A1 (en) | Method and device for clock synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15879568 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15879568 Country of ref document: EP Kind code of ref document: A1 |