WO2012048574A1 - 一种实现路由器全保护的方法及系统 - Google Patents
一种实现路由器全保护的方法及系统 Download PDFInfo
- Publication number
- WO2012048574A1 WO2012048574A1 PCT/CN2011/075432 CN2011075432W WO2012048574A1 WO 2012048574 A1 WO2012048574 A1 WO 2012048574A1 CN 2011075432 W CN2011075432 W CN 2011075432W WO 2012048574 A1 WO2012048574 A1 WO 2012048574A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- router
- backup
- primary
- service
- backup router
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Definitions
- the present invention relates to the field of data communications, and in particular, to a method and system for implementing full protection of a router. Background technique
- the main purpose of the present invention is to provide a method and system for implementing full protection of a router, so as to ensure that the service can be smoothly switched to the backup router.
- the technical solution of the present invention is achieved as follows:
- the present invention provides a method for implementing full protection of a router, configuring a primary router and a backup router, including:
- the primary router and the backup router respectively save related data for running the service
- the primary and backup routers When a switchover is required, the primary and backup routers perform data synchronization and switch the services of the primary router to the backup router.
- the method further includes:
- the active and standby routers perform data synchronization and switch the services of the backup router to the primary router.
- the configuring the primary router and the backup router are:
- the primary router One of the two identical routers is designated as the primary router, and the other is the backup router.
- the primary and secondary routers use a dedicated connection port for communication.
- the service interface of the primary router is configured to be enabled, and the service interface of the backup router is backed up. Configured to be in the blocking state, the backup router sends a backup router advertisement packet to the primary router periodically through a dedicated connection port.
- the primary router and the backup router respectively save related data of the running service as:
- the database of the primary router saves the data list, and after receiving the backup router advertisement message sent by the backup router for the first time, the database synchronization message will be The data list is sent to the backup router. After the database synchronization timer expires, the primary router sends the data list to the backup router for backup.
- the data synchronization between the active and standby routers is: When receiving the keepalive timer timeout message of the primary router, the backup router determines that the primary router is not working properly, needs to perform handover, and the backup router sends a handover request. The message is sent to the main router, and the latest data list is obtained from the main router to update its own data list.
- the data when the switching needs to be performed, the data is synchronized between the active and standby routers: According to the configuration requirements, the primary router initiates a handover to the backup router, blocks all service interfaces, and sends the latest data list and the switching request. The message is sent to the backup router; after receiving the handover request message, the backup router performs an update of its own data list, and determines that the handover needs to be performed according to the handover request message.
- the data is synchronized between the active and standby routers:
- the backup router starts to receive the primary router advertisement message sent by the primary router, the backup router determines the master. The router resumes normal operation and needs to be switched back. The backup router sends the latest data list and switch request message to the primary router, and the primary router updates its own data list.
- the backup router determines that the service needs to be switched back according to the configuration requirements; when the backup router determines that the service needs to be performed During the failback, the backup router sends the handover request message and the latest data list to the primary router; after receiving the handover request message text and the data list, the primary router determines that the handover needs to be performed, and updates its own data list.
- the present invention also provides a system for implementing full protection of a router, including: a configuration module, a main router, a backup router, and a switching module;
- a configuration module configured to configure a primary router and a backup router
- the main router is used to save related data of the running service; when the handover is needed, the data is synchronized with the backup router;
- the backup router is used to save related data of the running service; when the handover is needed, the data is synchronized with the primary router;
- the switching module is used to switch the service of the primary router to the backup router when the handover is needed.
- the primary router is further configured to perform data synchronization with the backup router when the switchback is required;
- the backup router is further configured to perform data synchronization with the primary router when the switchback needs to be performed;
- the switching module is further configured to: When the switchback is required, the backup router's service is switched to the primary router.
- the method and system for implementing full protection of a router configure a primary router and a backup router, and the primary router and the backup router respectively store related data of the running service; when the handover is required, the primary and secondary routers perform data synchronization, and the primary router is configured.
- the service is switched to the backup router to implement a complete backup of related data during the running of the service, so that when the service needs to be switched to the backup router, smooth switching can be performed without interrupting the operation of the service; further, related data Saving only needs to use a common data list, so that the storage and backup of related data of the business is simple and efficient.
- the active and standby routers can synchronize the data periodically, there is no need to manually or semi-automatically switch between the switches. Configure the related data of the services of the active and standby routers, which improves the switching efficiency and greatly reduces the workload of switching.
- FIG. 1 is a schematic flow chart of a method for implementing full protection of a router according to the present invention
- FIG. 2 is a schematic diagram of a network topology structure of an active and standby router in the present invention
- FIG. 3 is a schematic structural diagram of a system for implementing full protection of a router according to the present invention. detailed description
- the basic idea of the present invention is to: configure a primary router and a backup router, and the primary router and the backup router respectively store related data of the running service; when the handover is required, the primary and secondary routers perform data synchronization, and switch the service of the primary router to the backup router. .
- FIG. 1 is an implementation of the present invention.
- FIG. 2 is a schematic diagram of a network topology structure of the active and standby routers in the present invention.
- one of the two identical routers is arbitrarily designated as the primary router, and the other is the backup router.
- the two routers are essentially mutually active and standby routers; where, the same is the same as the service that needs to be switched when running on two routers, the same output can be obtained for the same input, and the active and standby routers are connected to the upstream network and the downstream network.
- the topology of the topology should be the same; in this embodiment, all communication processes between the active and standby routers need to be performed through a dedicated connection port between the primary and secondary routers.
- the dedicated connection interface can be a Layer 2 switching interface or Layer 3 IP interface, etc.
- the service interface between the primary router and the upstream network and the downstream network is configured to be enabled.
- the service interface between the backup router and the upstream network and the downstream network is configured to be blocked. Therefore, services can only run on the primary router.
- the backup router cannot.
- the packet sent by the service cannot receive the packet of the service.
- the backup router sends a backup router advertisement packet to the primary router through a dedicated connection port to notify the primary router that there is a backup router.
- the primary router periodically sends a notification message to the backup router to notify the backup router of the primary router. Specifically, the primary router advertises the timer for timing. After the primary router announces that the timer expires, the primary router advertises the timer. The timeout message triggers the primary router to send the primary router advertisement message to the backup router.
- Step 102 The primary router and the backup router respectively save related data of the running service. Specifically, a public data list is set, and the data list is used to save related data of all running services running on the router, and the related data is an active/standby router. The data to be used for switching, including the configuration information, interface information, and routing information of the active and standby routers.
- the database of the primary router saves the data list and passes the database after receiving the backup router advertisement message sent by the backup router for the first time. The synchronization message sends the data list to the backup router.
- the database synchronization timer sends a synchronization timer timeout message to the primary router, triggering the primary router to send the data list to the backup router;
- the duration of the database synchronization timer It can be set according to the business requirements. If the related data of the running service is updated faster, the duration can be set shorter. If the related data of the running service is updated slowly, the duration can be set longer.
- the backup router After receiving the data list, the backup router performs configuration and generates related data of the same service according to the related data of the service, and saves related data of the service in its own database, and implements a data list of related data of the service. Backup, and data synchronization between the backup router and the primary router.
- Step 103 When the handover is required, the active and standby routers perform data synchronization, and switch the service of the primary router to the backup router.
- a primary router keepalive timer is configured. After the timer expires, a timer timeout message is sent to the backup router. After receiving the timer timeout message, the backup router determines that the primary router keeps a timer timer. The primary router advertisement packet sent by the primary router is not received, so that the primary router cannot work normally, and the handover needs to be performed; the backup router refreshes the primary router keep-alive timer every time the primary router advertisement packet is received;
- the backup router Since the service running on the original primary router cannot operate normally, when the backup router determines that the handover needs to be performed, the backup router sends a handover request message to the primary router, and after receiving the handover request message sent by the backup router, the primary router will update the latest data.
- the list is sent to the backup router and blocks its own service interface. After receiving the latest data list, the backup router updates its own data list and opens its blocked service interface. All services originally running on the primary router. Will automatically switch to running on the backup router;
- the primary router can initiate a handover to the backup router.
- the primary router first blocks all service interfaces, and then sends the latest data list and handover request message to the backup router; receives the handover request message.
- the backup router After the backup router first First, the data list is updated, and the switch request message is determined to be switched, and the service interface that has been blocked is automatically enabled. All services originally running on the primary router are automatically switched to the backup router.
- the primary router configure the condition that the primary router initiates the switchover to the backup router. The condition may be that the service reaches the set time on the primary router, or the primary router needs to upgrade the program after the upgrade period expires. Although the main router can work normally, it cannot continue to run the service due to the configuration requirements. Therefore, it is necessary to switch the service to the backup router to run.
- the backup router When the service runs on the backup router, the backup router starts its own database synchronization timer. After each database synchronization timer expires, the database synchronization timer sends a synchronization timer timeout message to the backup router, triggering the backup router to send the data list. After receiving the data list, the main router performs configuration and generates the same service configuration information according to the service configuration information therein, and saves the service configuration information in its own database to implement the data list of the service configuration information. Backup, and periodic data synchronization between the primary router and the backup router, in order to switch back the service to the primary router.
- Step 104 When the switchback is required, the active and standby routers perform data synchronization, and switch the service of the backup router to the primary router.
- the backup router when the service is running on the backup router, if the backup router starts to receive the primary router advertisement message sent by the primary router, the backup router determines that the primary router resumes normal operation, and needs to perform failback; the backup router will list the latest data. And the switching request message is sent to the primary router, and the service interface that has been opened is blocked; after the primary router receives the handover request message sent by the backup router, the primary router updates its own data list, and starts the service interface that has been blocked by itself, in the backup router.
- the running service will automatically switch to the primary router to run; or, if the primary router initiates a switch to the backup router when the switchover is performed, when the service runs on the backup router, the backup router determines according to the configuration requirements.
- the service needs to be switched back; when the switchback is required, the backup router blocks all service interfaces first. Then, the switch request message and the latest data list are sent to the main router; after receiving the switch request message text and the data list, the main router determines that the switch needs to be performed, updates its own data list, and turns on the service interface that has been blocked.
- the service originally running on the backup router is automatically switched to the primary router.
- the backup router can be configured to initiate the switch to the primary router on the backup router.
- the condition can be that the service reaches the set time on the backup router. The time, or the backup router needs to be upgraded after the upgrade period expires. When the condition is met, although the backup router can work normally, the service cannot be continued because of the configuration requirements. Therefore, the service needs to be switched back to the primary router. .
- the invention can better support the automatic upgrade of the program of the router.
- the running main router receives the request for program upgrade, it sends a handover request message to the backup router, and then the working state of the main router becomes the switching state;
- the router receives the handover request message sent by the primary router, the router automatically switches the service.
- the backup router sends a handover completion message to the primary router, and then the backup router becomes operational.
- the primary router receives the backup router.
- the upgrade process of its own program is performed, and then its working status becomes the upgrade state.
- a message requesting the backup router to be upgraded may be sent, or no message may be sent, whether to send or not.
- the message can be configured according to requirements.
- the active and standby routers have a program upgrade module, and the program upgrade module can maintain the above working state and the message when processing the interaction.
- FIG. 3 is a schematic structural diagram of a system for implementing full protection of a router according to the present invention.
- the system includes: a configuration module 31 and a main router 32.
- the main router 32 is configured to save related data of the running service; when the handover is required, the data is synchronized with the backup router 33;
- the backup router 33 is configured to save related data of the running service; when switching is required, The main router 32 performs data synchronization;
- the switching module 34 is configured to switch the service of the primary router 32 to the backup router 33 when the handover is required.
- the primary router 32 is further configured to perform data synchronization with the backup router 33 when the switchback needs to be performed;
- the backup router 33 is further configured to perform data synchronization with the main router 32 when the switchback needs to be performed;
- the switching module 34 is further configured to switch the service of the backup router 33 to the main router 32 when the switchback needs to be performed.
- the configuration primary router 32 and backup router 33 are:
- the primary and secondary routers use a dedicated connection port for communication; the service interface of the primary router 32 is configured to be on, and the backup router is configured.
- the service interface of 33 is configured to be in a blocked state; the backup router 33 sends a backup router advertisement message to the primary router for 32 cycles through a dedicated connection port.
- the main router 32 and the backup router 33 respectively save related data of the running service as: setting a data list for storing relevant data of all running services running on the router, and the database of the main router 32 saves the data list, and for the first time
- the data list is sent to the backup router 33 through the database synchronization message.
- the main router 32 sends the data list to the backup router 33. Backup.
- the backup router 33 determines that the primary router 32 is not functioning properly, needs to perform handover, and the backup router 33 sends a handover request message to the primary router 32, and obtains the latest data list from the primary router 32. , to update the own data list.
- the data synchronization between the active and standby routers is as follows: According to the configuration requirements, the main router 32 actively initiates a handover to the backup router 33, blocks all its own service interfaces, and sends the latest data list and handover request message to the backup router 33; after receiving the handover request message, the backup router 33 performs The update of its own data list, and determines that a handover is required according to the handover request message.
- the backup router 33 When the service is running on the backup router 33, if the backup router 33 starts to receive the primary router advertisement message sent by the primary router 32, the backup router 33 determines that the primary router 32 is back to normal operation, and needs to perform failback; the backup router 33 will be up to date. The data list and handover request message are sent to the primary router 32, which updates its own data list.
- the backup router 33 determines that the service needs to be switched back according to the configuration requirements; when the backup router 33 determines that the switchback needs to be performed, the backup router 33 sends the handover request message and the latest data list to the master. After receiving the handover request message text and the data list, the router 32 determines that the handover needs to be performed and updates the data list of itself.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开一种实现路由器全保护的方法,包括:配置主路由器和备份路由器,主路由器和备份路由器分别保存运行业务的相关数据;需要进行切换时,主备路由器进行数据同步,并将主路由器的业务切换到备份路由器运行;本发明还提供一种实现路由器全保护的系统。根据本发明的技术方案,业务可以平滑切换到备份路由器运行。
Description
一种实现路由器全保护的方法及系统 技术领域
本发明涉及数据通信领域, 尤其涉及一种实现路由器全保护的方法及 系统。 背景技术
随着电信和以太网业务的发展, 路由器和以太网交换机业务备份或保 护的要求也越来越高, 因此各种保护技术如雨后春笋般蓬勃发展。 从协议 到协议中的接口, 从单协议到多种协议的组合, 从单一链路到多条链路等, 保护的种类越来越多, 保护的程度也越来越细致, 因此导致各种保护之间 的配合就越来越复杂。 此外, 各种保护本身都需要各个业务具有专门处理 保护相关的切换、 检测和配置等能力, 当保护的种类越来越多时, 业务相 关的处理就会越多, 因而大大增加了业务本身的逻辑复杂度, 从而影响了 业务运行的效率。
值得一提的是, 路由器保护虽然越来越多, 但是由于路由器每次的程 序版本升级必须根据业务或者保护的特点来进行, 所以必须解决的问题是 如何才能在保证业务平滑切换的前提下完成程序版本升级。 现有技术中, 多数情况下必须使得业务中断, 才能完成程序版本的升级。 此外, 当需要 升级的路由器很多或配置非常复杂的时候, 手动或半自动的升级方式会使 得升级的工作量非常大。 发明内容
有鉴于此, 本发明的主要目的在于提供一种实现路由器全保护的方法 及系统, 保证业务可以平滑切换到备份路由器运行。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供一种实现路由器全保护的方法, 配置主路由器和备份路由 器, 包括:
主路由器和备份路由器分别保存运行业务的相关数据;
需要进行切换时, 主备路由器进行数据同步, 并将主路由器的业务切 换到备份路由器运行。
上述方法中, 该方法还包括:
需要进行回切时, 主备路由器进行数据同步, 并将备份路由器的业务 切换到主路由器运行。
上述方法中, 所述配置主路由器和备份路由器为:
指定两台完全相同的路由器中的一台为主路由器, 另一台为备份路由 器, 主备路由器之间利用专用的连接口进行通信; 主路由器的业务接口配 置为开启状态, 备份路由器的业务接口配置为阻塞状态, 备份路由器通过 专用的连接口向主路由器周期的发送备份路由器通告报文。
上述方法中, 所述主路由器和备份路由器分别保存运行业务的相关数 据为:
设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的 备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路 由器, 在数据库同步定时器到时后, 主路由器将数据列表发送给备份路由 器进行备份。
上述方法中, 所述需要进行切换时, 主备路由器进行数据同步为: 当收到主路由器保活定时器超时消息时, 备份路由器确定主路由器不 能正常工作, 需要进行切换, 备份路由器发送切换请求消息给主路由器, 并从主路由器获取最新的数据列表, 进行自身数据列表的更新。
上述方法中, 所述需要进行切换时, 主备路由器进行数据同步为: 根据配置的要求, 主路由器主动发起向备份路由器的切换, 阻塞自身 的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器进行自身的数据列表的更新, 并根据切 换请求消息确定需要进行切换。
上述方法中, 所述需要进行回切时, 主备路由器进行数据同步为: 当业务在备份路由器上运行时, 如果备份路由器开始收到主路由器发 送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工作, 需要 进行回切; 备份路由器将最新的数据列表和切换请求消息发送给主路由器, 主路由器更新自身的数据列表。
上述方法中, 所述需要进行回切时, 主备路由器进行数据同步为: 当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需 要进行业务的回切; 当备份路由器确定需要进行回切时, 备份路由器发送 切换请求消息和最新的数据列表给主路由器; 收到切换请求消息文和数据 列表后, 主路由器确定需要进行切换, 并进行自身的数据列表的更新。
本发明还提供一种实现路由器全保护的系统, 包括: 配置模块、 主路 由器、 备份路由器、 切换模块; 其中,
配置模块, 用于配置主路由器和备份路由器;
主路由器, 用于保存运行业务的相关数据; 需要进行切换时, 与备份 路由器进行数据同步;
备份路由器, 用于保存运行业务的相关数据; 需要进行切换时, 与主 路由器进行数据同步;
切换模块, 用于需要进行切换时, 将主路由器的业务切换到备份路由 器运行。
上述系统中,
所述主路由器还用于, 需要进行回切时, 与备份路由器进行数据同步; 所述备份路由器还用于, 需要进行回切时, 与主路由器进行数据同步; 所述切换模块还用于, 需要进行回切时, 将备份路由器的业务切换到 主路由器运行。
本发明提供的实现路由器全保护的方法及系统, 配置主路由器和备份 路由器, 主路由器和备份路由器中分别保存运行业务的相关数据; 需要 进行切换时, 主备路由器进行数据同步, 并将主路由器的业务切换到备 份路由器运行, 实现了业务运行过程中相关数据的完整备份, 使得在需 要将业务切换到备份路由器运行时, 可以进行平滑切换, 不需要中断业 务的运行; 进一步地,相关数据的保存只需要利用一个公共的数据列表, 从而使得业务的相关数据的保存和备份实现起来简单且高效; 此外, 由 于主备路由器可以进行数据的周期同步, 因此不需要在切换之间手动或 半自动的配置主备路由器的业务的相关数据, 从而提高了切换效率, 大 大减少了切换的工作量。 附图说明
图 1是本发明实现路由器全保护的方法的流程示意图;
图 2是本发明中主备路由器的网络拓朴结构的示意图;
图 3是本发明实现路由器全保护的系统的结构示意图。 具体实施方式
本发明的基本思想是: 配置主路由器和备份路由器, 主路由器和备份 路由器分别保存运行业务的相关数据; 需要进行切换时, 主备路由器进 行数据同步, 并将主路由器的业务切换到备份路由器运行。
下面通过附图及具体实施例对本发明再做进一步的详细说明。
本发明提供一种实现路由器全保护的方法及系统, 图 1 是本发明实现
路由器全保护的方法的流程示意图, 如图 1所示, 该方法包括以下步骤: 步骤 101 , 配置主路由器和备份路由器;
具体的, 图 2是本发明中主备路由器的网络拓朴结构的示意图, 如图 2 所示, 任意指定两台完全相同的路由器中的一台为主路由器, 另一台为备 份路由器, 这两台路由器实质是互为主备路由器; 其中, 完全相同指的是 需要切换的业务在两台路由器上运行时, 针对相同的输入能够得到相同的 输出, 同时主备路由器与上游网络和下游网络的拓朴结构应当相同; 本例 实施例中, 主备路由器之间的所有通信过程, 都需要通过主备路由器之间 的专用的连接口进行, 该专用的连接口可以是二层交换接口或三层 IP接口 等;
主路由器与上游网络和下游网络之间的业务接口配置为开启状态, 备 份路由器与上游网络和下游网络之间的业务接口配置为阻塞状态, 使得业 务只能够在主路由器上运行, 备份路由器既不能发送业务的报文也不能够 接收业务的报文; 备份路由器通过专用的连接口向主路由器发送备份路由 器通告报文, 用于告知主路由器存在备份路由器;
主路由器周期的发送主路由器通告报文给备份路由器, 用于告知备份 路由器主路由器存在; 具体地, 利用主路由器通告定时器进行计时, 主路 由器通告定时器到时后, 通过主路由器通告定时器超时消息触发主路由器 发送主路由器通告报文给备份路由器。
步骤 102, 主路由器和备份路由器分别保存运行业务的相关数据; 具体的, 设置一个公共的数据列表, 该数据列表用于保存路由器上运 行的所有运行业务的相关数据, 该相关数据是主备路由器进行切换时需要 利用的数据, 主要包括主备路由器的配置信息、 接口信息和路由信息; 主 路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的备份路 由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路由器,
并启动自身的数据库同步定时器; 每次数据库同步定时器到时后, 数据库 同步定时器发送同步定时器超时消息给主路由器, 触发主路由器将数据列 表发送给备份路由器; 数据库同步定时器的时长可以根据业务需求进行设 置, 如果运行的业务的相关数据更新较快, 可以将时长设置的较短, 如果 运行的业务的相关数据更新较慢, 可以将时长设置的较长;
备份路由器收到数据列表后, 根据其中的业务的相关数据, 执行其中 配置并生成相同的业务的相关数据, 将该业务的相关数据保存在自身的数 据库中, 实现业务的相关数据的数据列表的备份, 以及备份路由器与主路 由器之间周期的数据同步。
步骤 103 , 需要进行切换时, 主备路由器进行数据同步, 并将主路由器 的业务切换到备份路由器运行;
具体的, 配置一个主路由器保活定时器, 当该定时器到时后, 发送定 时器超时消息给备份路由器, 收到定时器超时消息后, 备份路由器确定在 主路由器保活定时器计时过程中, 未收到主路由器发送的主路由器通告报 文, 从而确定主路由器不能正常工作, 需要进行切换; 备份路由器在每次 收到主路由器通告报文时, 刷新主路由器保活定时器;
由于原先主路由器上运行的业务不能够正常运行, 所以当备份路由器 确定需要进行切换时, 备份路由器发送切换请求消息给主路由器, 收到备 份路由器发送的切换请求消息后, 主路由器将最新的数据列表发送给备份 路由器, 并阻塞自身的业务接口; 备份路由器在收到最新的数据列表后, 进行自身数据列表的更新, 并将自身已经阻塞的业务接口开启, 原先在主 路由器上运行的所有业务会自动切换到备份路由器上运行;
或, 根据配置的要求, 主路由器可以主动发起向备份路由器的切换, 需要进行切换时, 主路由器首先阻塞所有业务接口, 然后发送最新的数据 列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器首
先进行自身的数据列表的更新, 并根据切换请求消息确定需要进行切换, 将自身已经阻塞的业务接口开启, 原先在主路由器上运行的所有业务会自 动切换到备份路由器上运行; 其中, 可以在主路由器上配置主路由器主动 发起向备份路由器切换的条件, 该条件可以是业务在主路由器上运行时间 到达设置的时间, 或主路由器在升级周期到时后需要进行程序升级等, 满 足上述条件时, 虽然主路由器能够正常工作, 但是由于配置的要求, 不能 继续运行业务, 因此需要将业务切换到备份路由器运行;
当业务在备份路由器上运行时, 备份路由器启动自身的数据库同步定 时器; 每次数据库同步定时器到时后, 数据库同步定时器发送同步定时器 超时消息给备份路由器, 触发备份路由器将数据列表发送给主路由器; 主 路由器收到数据列表后, 根据其中的业务配置信息, 执行其中配置并生成 相同的业务配置信息, 将该业务配置信息保存在自身的数据库中, 实现业 务配置信息的数据列表的备份, 以及主路由器与备份路由器之间周期的数 据同步, 以便于将业务回切到主路由器运行。
步骤 104, 需要进行回切时, 主备路由器进行数据同步, 并将备份路由 器的业务切换到主路由器运行;
具体的, 当业务在备份路由器上运行时, 如果备份路由器开始收到主 路由器发送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工 作, 需要进行回切; 备份路由器将最新的数据列表和切换请求消息发送给 主路由器, 并阻塞已经开启的业务接口; 主路由器收到备份路由器发送的 切换请求消息后, 主路由器更新自身的数据列表, 并开启自身已经阻塞的 业务接口, 在备份路由器上运行的业务会自动切换到主路由器上运行; 或, 如果在进行切换时是主路由器主动发起的向备份路由器的切换, 则当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需要 进行业务的回切; 需要进行回切时, 备份路由器首先阻塞所有业务接口,
然后发送切换请求消息和最新的数据列表给主路由器; 收到切换请求消息 文和数据列表后, 主路由器确定需要进行切换, 进行自身的数据列表的更 新, 并将自身已经阻塞的业务接口开启, 原先在备份路由器上运行的业务 会自动切换到主路由器上运行; 其中, 可以在备份路由器上配置备份路由 器主动发起向主路由器切换的条件, 该条件可以是业务在备份路由器上运 行时间到达设置的时间, 或备份路由器在升级周期到时后需要进行程序升 级等, 满足该条件时, 虽然备份路由器能够正常工作, 但是由于配置的要 求, 不能继续运行业务, 因此需要将业务回切到主路由器运行。
本发明可以较好的支持路由器的程序自动升级, 例如, 当处于运行状 态的主路由器收到程序升级的请求时, 发送切换请求消息给备份路由器, 然后主路由器的工作状态变成切换状态; 备份路由器收到主路由器发送的 切换请求消息时自动进行业务的切换, 在完成业务切换后, 备份路由器发 送切换完成消息给主路由器, 然后备份路由器的工作状态变成运行状态; 主路由器收到备份路由器发送的切换完成消息后, 则进行自身程序的升级 流程, 然后自身的工作状态变成升级状态; 在主路由器升级完成后, 可以 发送请求备份路由器进行升级的消息, 或者不发送任何消息, 是否发送消 息可以根据需求进行配置; 其中, 主备路由器中都具有程序升级模块, 该 程序升级模块可以维护上述工作状态和处理交互时的消息。
为实现上述方法, 本发明还提供一种实现路由器全保护的系统, 图 3 是本发明实现路由器全保护的系统的结构示意图, 如图 3 所示, 该系统包 括: 配置模块 31、 主路由器 32、 备份路由器 33、 切换模块 34; 其中, 配置模块 31 , 用于配置主路由器 32和备份路由器 33;
主路由器 32, 用于保存运行业务的相关数据; 需要进行切换时, 与备 份路由器 33进行数据同步;
备份路由器 33 , 用于保存运行业务的相关数据; 需要进行切换时, 与
主路由器 32进行数据同步;
切换模块 34, 用于需要进行切换时, 将主路由器 32的业务切换到备份 路由器 33运行。
所述主路由器 32还用于, 需要进行回切时, 与备份路由器 33进行数 据同步;
所述备份路由器 33还用于, 需要进行回切时, 与主路由器 32进行数 据同步;
所述切换模块 34还用于, 需要进行回切时, 将备份路由器 33的业务 切换到主路由器 32运行。
所述配置主路由器 32和备份路由器 33为:
指定两台完全相同的路由器中的一台为主路由器 32, 另一台为备份路 由器 33 , 主备路由器之间利用专用的连接口进行通信; 主路由器 32的业务 接口配置为开启状态, 备份路由器 33的业务接口配置为阻塞状态; 备份路 由器 33通过专用的连接口向主路由 32器周期的发送备份路由器通告报文。
所述主路由器 32和备份路由器 33分别保存运行业务的相关数据为: 设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器 32 的数据库保存该数据列表, 并在首次收到备份路由器 33 发送的备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给 备份路由器 33 , 在数据库同步定时器到时后, 主路由器 32将数据列表发送 给备份路由器 33进行备份。
所述需要进行切换时, 主备路由器进行数据同步为:
当收到主路由器保活定时器超时消息时, 备份路由器 33确定主路由器 32不能正常工作, 需要进行切换,备份路由器 33发送切换请求消息给主路 由器 32,并从主路由器 32获取最新的数据列表,进行自身数据列表的更新。
所述需要进行切换时, 主备路由器进行数据同步为:
根据配置的要求, 主路由器 32主动发起向备份路由器 33的切换, 阻 塞自身的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路 由器 33;收到切换请求消息后,备份路由器 33进行自身的数据列表的更新, 并根据切换请求消息确定需要进行切换。
所述需要进行回切时, 主备路由器进行数据同步为:
当业务在备份路由器 33上运行时, 如果备份路由器 33开始收到主路 由器 32发送的主路由器通告报文, 则备份路由器 33确定主路由器 32恢复 正常工作, 需要进行回切; 备份路由器 33将最新的数据列表和切换请求消 息发送给主路由器 32 , 主路由器 32更新自身的数据列表。
所述需要进行回切时, 主备路由器进行数据同步为:
当业务在备份路由器上运行时, 备份路由器 33根据配置的要求, 确定 需要进行业务的回切; 当备份路由器 33确定需要进行回切时, 备份路由器 33发送切换请求消息和最新的数据列表给主路由器 32; 收到切换请求消息 文和数据列表后, 主路由器 32确定需要进行切换, 并进行自身的数据列表 的更新。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。
Claims
1、 一种实现路由器全保护的方法, 其特征在于, 配置主路由器和备份 路由器, 该方法还包括:
主路由器和备份路由器分别保存运行业务的相关数据;
需要进行切换时, 主备路由器进行数据同步, 并将主路由器的业务切 换到备份路由器运行。
2、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 需要进行回切时, 主备路由器进行数据同步, 并将备份路由器的业务 切换到主路由器运行。
3、 根据权利要求 1所述的方法, 其特征在于, 所述配置主路由器和备 份路由器为:
指定两台完全相同的路由器中的一台为主路由器, 另一台为备份路由 器, 主备路由器之间利用专用的连接口进行通信; 主路由器的业务接口配 置为开启状态, 备份路由器的业务接口配置为阻塞状态, 备份路由器通过 专用的连接口向主路由器周期的发送备份路由器通告报文。
4、 根据权利要求 1所述的方法, 其特征在于, 所述主路由器和备份路 由器分别保存运行业务的相关数据为:
设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的 备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路 由器, 在数据库同步定时器到时后, 主路由器将数据列表发送给备份路由 器进行备份。
5、 根据权利要求 1所述的方法, 其特征在于, 所述需要进行切换时, 主备路由器进行数据同步为:
当收到主路由器保活定时器超时消息时, 备份路由器确定主路由器不 能正常工作, 需要进行切换, 备份路由器发送切换请求消息给主路由器, 并从主路由器获取最新的数据列表, 进行自身数据列表的更新。
6、 根据权利要求 1所述的方法, 其特征在于, 所述需要进行切换时, 主备路由器进行数据同步为:
根据配置的要求, 主路由器主动发起向备份路由器的切换, 阻塞自身 的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器进行自身的数据列表的更新, 并根据切 换请求消息确定需要进行切换。
7、 根据权利要求 2所述的方法, 其特征在于, 所述需要进行回切时, 主备路由器进行数据同步为:
当业务在备份路由器上运行时, 如果备份路由器开始收到主路由器发 送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工作, 需要 进行回切; 备份路由器将最新的数据列表和切换请求消息发送给主路由器, 主路由器更新自身的数据列表。
8、 根据权利要求 2所述的方法, 其特征在于, 所述需要进行回切时, 主备路由器进行数据同步为:
当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需 要进行业务的回切; 当备份路由器确定需要进行回切时, 备份路由器发送 切换请求消息和最新的数据列表给主路由器; 收到切换请求消息文和数据 列表后, 主路由器确定需要进行切换, 并进行自身的数据列表的更新。
9、 一种实现路由器全保护的系统, 其特征在于, 该系统包括: 配置模 块、 主路由器、 备份路由器、 切换模块; 其中,
配置模块, 用于配置主路由器和备份路由器;
主路由器, 用于保存运行业务的相关数据; 需要进行切换时, 与备份 路由器进行数据同步; 备份路由器, 用于保存运行业务的相关数据; 需要进行切换时, 与主 路由器进行数据同步;
切换模块, 用于需要进行切换时, 将主路由器的业务切换到备份路由 器运行。
10、 根据权利要求 9所述的系统, 其特征在于,
所述主路由器还用于, 需要进行回切时, 与备份路由器进行数据同步; 所述备份路由器还用于, 需要进行回切时, 与主路由器进行数据同步; 所述切换模块还用于, 需要进行回切时, 将备份路由器的业务切换到 主路由器运行。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010507065.7 | 2010-10-14 | ||
| CN201010507065.7A CN101980484B (zh) | 2010-10-14 | 2010-10-14 | 一种实现路由器全保护的方法及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012048574A1 true WO2012048574A1 (zh) | 2012-04-19 |
Family
ID=43600969
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2011/075432 Ceased WO2012048574A1 (zh) | 2010-10-14 | 2011-06-08 | 一种实现路由器全保护的方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101980484B (zh) |
| WO (1) | WO2012048574A1 (zh) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101980484B (zh) * | 2010-10-14 | 2016-02-10 | 中兴通讯股份有限公司 | 一种实现路由器全保护的方法及系统 |
| CN102693171B (zh) * | 2011-08-05 | 2015-11-18 | 新奥特(北京)视频技术有限公司 | 一种信息录入系统的恢复方法及系统 |
| CN103138957A (zh) * | 2011-11-22 | 2013-06-05 | 中国移动通信集团上海有限公司 | 一种业务路径回切的方法、设备及系统 |
| CN103377099B (zh) * | 2012-04-19 | 2017-02-08 | 中国移动通信集团公司 | Nfc移动终端数据备份及恢复的方法和装置 |
| CN106792790B (zh) * | 2016-03-31 | 2021-04-16 | 新华三技术有限公司 | 一种ap升级方法及装置 |
| CN108023756B (zh) * | 2016-10-28 | 2021-09-28 | 阿里巴巴集团控股有限公司 | 一种虚拟交换机的升级方法和装置 |
| CN108924044B (zh) * | 2018-06-22 | 2020-12-11 | 迈普通信技术股份有限公司 | 链路维持方法、pe设备及可读存储介质 |
| CN110716471A (zh) * | 2019-10-29 | 2020-01-21 | 中车株洲电力机车有限公司 | 制动机制动控制单元双cpu热备冗余控制方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6751191B1 (en) * | 1999-06-29 | 2004-06-15 | Cisco Technology, Inc. | Load sharing and redundancy scheme |
| CN1889464A (zh) * | 2006-07-26 | 2007-01-03 | 华为技术有限公司 | 一种实现通信接管的方法及装置 |
| CN101651553A (zh) * | 2009-09-03 | 2010-02-17 | 华为技术有限公司 | 用户侧组播业务主备保护系统、方法及路由设备 |
| CN101980484A (zh) * | 2010-10-14 | 2011-02-23 | 中兴通讯股份有限公司 | 一种实现路由器全保护的方法及系统 |
-
2010
- 2010-10-14 CN CN201010507065.7A patent/CN101980484B/zh active Active
-
2011
- 2011-06-08 WO PCT/CN2011/075432 patent/WO2012048574A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6751191B1 (en) * | 1999-06-29 | 2004-06-15 | Cisco Technology, Inc. | Load sharing and redundancy scheme |
| CN1889464A (zh) * | 2006-07-26 | 2007-01-03 | 华为技术有限公司 | 一种实现通信接管的方法及装置 |
| CN101651553A (zh) * | 2009-09-03 | 2010-02-17 | 华为技术有限公司 | 用户侧组播业务主备保护系统、方法及路由设备 |
| CN101980484A (zh) * | 2010-10-14 | 2011-02-23 | 中兴通讯股份有限公司 | 一种实现路由器全保护的方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101980484B (zh) | 2016-02-10 |
| CN101980484A (zh) | 2011-02-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2012048574A1 (zh) | 一种实现路由器全保护的方法及系统 | |
| US9705782B2 (en) | Method and system for efficient graceful restart in an open shortest path first (OSPF) network | |
| CN100568854C (zh) | 一种保持邻居关系的方法和接口板 | |
| CN101984573B (zh) | 分布式实现lacp标准状态机的方法及系统 | |
| CN101459536B (zh) | 端口配置方法和交换设备 | |
| US20120275456A1 (en) | Expedited graceful ospf restart | |
| CN101060485B (zh) | 拓扑改变报文的处理方法和处理装置 | |
| JP2013081157A (ja) | ユニキャストトラフィックを復元する方法及び装置 | |
| WO2009082923A1 (en) | Link fault processing method and data forwarding device | |
| CN101478435A (zh) | 一种堆叠系统的拓扑收集方法和双控制板设备 | |
| CN101399824B (zh) | 实现路由信息协议优雅重启的方法、系统和路由器 | |
| WO2012048585A1 (zh) | 切换方法和路由器 | |
| WO2016082412A1 (zh) | 实现数据可靠传输的方法、装置及计算机存储介质 | |
| WO2017000832A1 (zh) | Mac地址的同步方法、装置及系统 | |
| WO2012159570A1 (zh) | 链路倒换方法和装置 | |
| CN102420767A (zh) | 转发路径切换方法、装置及网络设备 | |
| CN101262402B (zh) | 一种环网间冗余备份的实现方法 | |
| CN102761428A (zh) | 服务器系统及服务器切换方法 | |
| WO2016180081A1 (zh) | 一种同步配置信息的方法、主设备和备设备 | |
| CN103138957A (zh) | 一种业务路径回切的方法、设备及系统 | |
| CN106603272A (zh) | 一种基于平滑重启的控制器保护方法和系统 | |
| CN109995541B (zh) | 一种组播数据发送方法及节点设备 | |
| CN101510890B (zh) | 维持协议状态的方法及通信设备 | |
| CN114244769A (zh) | 一种发送保活报文的方法、设备及存储介质 | |
| CN101237319A (zh) | 以太环网中的时间同步方法和以太环网系统 |
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: 11831971 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: 11831971 Country of ref document: EP Kind code of ref document: A1 |