[go: up one dir, main page]

WO2012048574A1 - Method and system for realizing router full protection - Google Patents

Method and system for realizing router full protection Download PDF

Info

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
Application number
PCT/CN2011/075432
Other languages
French (fr)
Chinese (zh)
Inventor
吴铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2012048574A1 publication Critical patent/WO2012048574A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements 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

The present invention discloses a method for realizing router full protection, which includes: a primary router and a standby router are configured, and relevant data of running service is saved respectively on the primary router and the standby router; when in need of switch, data synchronization is performed between the primary and standby routers, and the service on the primary router is switched to the standby router for running. The present invention also provides a system for realizing router full protection. According to the technical solution of the present invention, service can be switched smoothly to the standby router for running.

Description

一种实现路由器全保护的方法及系统 技术领域  Method and system for realizing full protection of routers

本发明涉及数据通信领域, 尤其涉及一种实现路由器全保护的方法及 系统。 背景技术  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

随着电信和以太网业务的发展, 路由器和以太网交换机业务备份或保 护的要求也越来越高, 因此各种保护技术如雨后春笋般蓬勃发展。 从协议 到协议中的接口, 从单协议到多种协议的组合, 从单一链路到多条链路等, 保护的种类越来越多, 保护的程度也越来越细致, 因此导致各种保护之间 的配合就越来越复杂。 此外, 各种保护本身都需要各个业务具有专门处理 保护相关的切换、 检测和配置等能力, 当保护的种类越来越多时, 业务相 关的处理就会越多, 因而大大增加了业务本身的逻辑复杂度, 从而影响了 业务运行的效率。  With the development of telecom and Ethernet services, the requirements for backup and protection of routers and Ethernet switches are becoming higher and higher, so various protection technologies have sprung up. From the protocol to the interface in the protocol, from the single protocol to the combination of multiple protocols, from a single link to multiple links, the types of protection are more and more, and the degree of protection is more and more detailed, resulting in various The cooperation between protections is becoming more and more complicated. In addition, each kind of protection itself requires each service to have the ability to handle protection-related handover, detection, and configuration. When there are more types of protection, the more business-related processing will be, thus greatly increasing the logic of the service itself. Complexity, which affects the efficiency of business operations.

值得一提的是, 路由器保护虽然越来越多, 但是由于路由器每次的程 序版本升级必须根据业务或者保护的特点来进行, 所以必须解决的问题是 如何才能在保证业务平滑切换的前提下完成程序版本升级。 现有技术中, 多数情况下必须使得业务中断, 才能完成程序版本的升级。 此外, 当需要 升级的路由器很多或配置非常复杂的时候, 手动或半自动的升级方式会使 得升级的工作量非常大。 发明内容  It is worth mentioning that although there are more and more router protections, each time the program version upgrade of the router must be carried out according to the characteristics of the service or protection, the problem that must be solved is how to complete the smooth handover of the service. The program version is upgraded. In the prior art, in most cases, the service must be interrupted to complete the upgrade of the program version. In addition, when there are many routers that need to be upgraded or the configuration is very complicated, the manual or semi-automatic upgrade method will make the upgrade work very large. Summary of the invention

有鉴于此, 本发明的主要目的在于提供一种实现路由器全保护的方法 及系统, 保证业务可以平滑切换到备份路由器运行。 为达到上述目的, 本发明的技术方案是这样实现的: In view of this, 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. In order to achieve the above object, 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;

需要进行切换时, 主备路由器进行数据同步, 并将主路由器的业务切 换到备份路由器运行。  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.

上述方法中, 该方法还包括:  In the above method, the method further includes:

需要进行回切时, 主备路由器进行数据同步, 并将备份路由器的业务 切换到主路由器运行。  When the switchback is required, the active and standby routers perform data synchronization and switch the services of the backup router to the primary router.

上述方法中, 所述配置主路由器和备份路由器为:  In the above method, the configuring the primary router and the backup router are:

指定两台完全相同的路由器中的一台为主路由器, 另一台为备份路由 器, 主备路由器之间利用专用的连接口进行通信; 主路由器的业务接口配 置为开启状态, 备份路由器的业务接口配置为阻塞状态, 备份路由器通过 专用的连接口向主路由器周期的发送备份路由器通告报文。  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.

上述方法中, 所述主路由器和备份路由器分别保存运行业务的相关数 据为:  In the above method, the primary router and the backup router respectively save related data of the running service as:

设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的 备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路 由器, 在数据库同步定时器到时后, 主路由器将数据列表发送给备份路由 器进行备份。  Set a data list for storing related data of all running services running on the router. 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.

上述方法中, 所述需要进行切换时, 主备路由器进行数据同步为: 当收到主路由器保活定时器超时消息时, 备份路由器确定主路由器不 能正常工作, 需要进行切换, 备份路由器发送切换请求消息给主路由器, 并从主路由器获取最新的数据列表, 进行自身数据列表的更新。 上述方法中, 所述需要进行切换时, 主备路由器进行数据同步为: 根据配置的要求, 主路由器主动发起向备份路由器的切换, 阻塞自身 的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器进行自身的数据列表的更新, 并根据切 换请求消息确定需要进行切换。 In the above method, when the switching needs to be performed, 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. In the foregoing method, 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.

上述方法中, 所述需要进行回切时, 主备路由器进行数据同步为: 当业务在备份路由器上运行时, 如果备份路由器开始收到主路由器发 送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工作, 需要 进行回切; 备份路由器将最新的数据列表和切换请求消息发送给主路由器, 主路由器更新自身的数据列表。  In the above method, when the switchback needs to be performed, the data is synchronized between the active and standby routers: 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 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.

上述方法中, 所述需要进行回切时, 主备路由器进行数据同步为: 当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需 要进行业务的回切; 当备份路由器确定需要进行回切时, 备份路由器发送 切换请求消息和最新的数据列表给主路由器; 收到切换请求消息文和数据 列表后, 主路由器确定需要进行切换, 并进行自身的数据列表的更新。  In the above method, when the switchback needs to be performed, the data is synchronized between the active and standby routers: When the service is running on the backup router, 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.

上述系统中, 所述主路由器还用于, 需要进行回切时, 与备份路由器进行数据同步; 所述备份路由器还用于, 需要进行回切时, 与主路由器进行数据同步; 所述切换模块还用于, 需要进行回切时, 将备份路由器的业务切换到 主路由器运行。 In the above system, 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 provided by the present invention 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. In addition, since 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. DRAWINGS

图 1是本发明实现路由器全保护的方法的流程示意图;  1 is a schematic flow chart of a method for implementing full protection of a router according to the present invention;

图 2是本发明中主备路由器的网络拓朴结构的示意图;  2 is a schematic diagram of a network topology structure of an active and standby router in the present invention;

图 3是本发明实现路由器全保护的系统的结构示意图。 具体实施方式  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. .

下面通过附图及具体实施例对本发明再做进一步的详细说明。  The invention will be further described in detail below with reference to the drawings and specific embodiments.

本发明提供一种实现路由器全保护的方法及系统, 图 1 是本发明实现 路由器全保护的方法的流程示意图, 如图 1所示, 该方法包括以下步骤: 步骤 101 , 配置主路由器和备份路由器; The present invention provides a method and system for implementing full protection of a router, and FIG. 1 is an implementation of the present invention. A schematic flowchart of a method for fully protecting a router, as shown in FIG. 1, the method includes the following steps: Step 101: Configure a primary router and a backup router;

具体的, 图 2是本发明中主备路由器的网络拓朴结构的示意图, 如图 2 所示, 任意指定两台完全相同的路由器中的一台为主路由器, 另一台为备 份路由器, 这两台路由器实质是互为主备路由器; 其中, 完全相同指的是 需要切换的业务在两台路由器上运行时, 针对相同的输入能够得到相同的 输出, 同时主备路由器与上游网络和下游网络的拓朴结构应当相同; 本例 实施例中, 主备路由器之间的所有通信过程, 都需要通过主备路由器之间 的专用的连接口进行, 该专用的连接口可以是二层交换接口或三层 IP接口 等;  Specifically, FIG. 2 is a schematic diagram of a network topology structure of the active and standby routers in the present invention. As shown in FIG. 2, 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.

步骤 102, 主路由器和备份路由器分别保存运行业务的相关数据; 具体的, 设置一个公共的数据列表, 该数据列表用于保存路由器上运 行的所有运行业务的相关数据, 该相关数据是主备路由器进行切换时需要 利用的数据, 主要包括主备路由器的配置信息、 接口信息和路由信息; 主 路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的备份路 由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路由器, 并启动自身的数据库同步定时器; 每次数据库同步定时器到时后, 数据库 同步定时器发送同步定时器超时消息给主路由器, 触发主路由器将数据列 表发送给备份路由器; 数据库同步定时器的时长可以根据业务需求进行设 置, 如果运行的业务的相关数据更新较快, 可以将时长设置的较短, 如果 运行的业务的相关数据更新较慢, 可以将时长设置的较长; 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. And start its own database synchronization timer; each time the database synchronization timer expires, 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.

备份路由器收到数据列表后, 根据其中的业务的相关数据, 执行其中 配置并生成相同的业务的相关数据, 将该业务的相关数据保存在自身的数 据库中, 实现业务的相关数据的数据列表的备份, 以及备份路由器与主路 由器之间周期的数据同步。  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.

步骤 103 , 需要进行切换时, 主备路由器进行数据同步, 并将主路由器 的业务切换到备份路由器运行;  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.

具体的, 配置一个主路由器保活定时器, 当该定时器到时后, 发送定 时器超时消息给备份路由器, 收到定时器超时消息后, 备份路由器确定在 主路由器保活定时器计时过程中, 未收到主路由器发送的主路由器通告报 文, 从而确定主路由器不能正常工作, 需要进行切换; 备份路由器在每次 收到主路由器通告报文时, 刷新主路由器保活定时器;  Specifically, 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;

由于原先主路由器上运行的业务不能够正常运行, 所以当备份路由器 确定需要进行切换时, 备份路由器发送切换请求消息给主路由器, 收到备 份路由器发送的切换请求消息后, 主路由器将最新的数据列表发送给备份 路由器, 并阻塞自身的业务接口; 备份路由器在收到最新的数据列表后, 进行自身数据列表的更新, 并将自身已经阻塞的业务接口开启, 原先在主 路由器上运行的所有业务会自动切换到备份路由器上运行;  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;

或, 根据配置的要求, 主路由器可以主动发起向备份路由器的切换, 需要进行切换时, 主路由器首先阻塞所有业务接口, 然后发送最新的数据 列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器首 先进行自身的数据列表的更新, 并根据切换请求消息确定需要进行切换, 将自身已经阻塞的业务接口开启, 原先在主路由器上运行的所有业务会自 动切换到备份路由器上运行; 其中, 可以在主路由器上配置主路由器主动 发起向备份路由器切换的条件, 该条件可以是业务在主路由器上运行时间 到达设置的时间, 或主路由器在升级周期到时后需要进行程序升级等, 满 足上述条件时, 虽然主路由器能够正常工作, 但是由于配置的要求, 不能 继续运行业务, 因此需要将业务切换到备份路由器运行; Or, according to the configuration requirements, the primary router can initiate a handover to the backup router. When the handover needs to be performed, 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. 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. On 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.

当业务在备份路由器上运行时, 备份路由器启动自身的数据库同步定 时器; 每次数据库同步定时器到时后, 数据库同步定时器发送同步定时器 超时消息给备份路由器, 触发备份路由器将数据列表发送给主路由器; 主 路由器收到数据列表后, 根据其中的业务配置信息, 执行其中配置并生成 相同的业务配置信息, 将该业务配置信息保存在自身的数据库中, 实现业 务配置信息的数据列表的备份, 以及主路由器与备份路由器之间周期的数 据同步, 以便于将业务回切到主路由器运行。  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.

步骤 104, 需要进行回切时, 主备路由器进行数据同步, 并将备份路由 器的业务切换到主路由器运行;  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.

具体的, 当业务在备份路由器上运行时, 如果备份路由器开始收到主 路由器发送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工 作, 需要进行回切; 备份路由器将最新的数据列表和切换请求消息发送给 主路由器, 并阻塞已经开启的业务接口; 主路由器收到备份路由器发送的 切换请求消息后, 主路由器更新自身的数据列表, 并开启自身已经阻塞的 业务接口, 在备份路由器上运行的业务会自动切换到主路由器上运行; 或, 如果在进行切换时是主路由器主动发起的向备份路由器的切换, 则当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需要 进行业务的回切; 需要进行回切时, 备份路由器首先阻塞所有业务接口, 然后发送切换请求消息和最新的数据列表给主路由器; 收到切换请求消息 文和数据列表后, 主路由器确定需要进行切换, 进行自身的数据列表的更 新, 并将自身已经阻塞的业务接口开启, 原先在备份路由器上运行的业务 会自动切换到主路由器上运行; 其中, 可以在备份路由器上配置备份路由 器主动发起向主路由器切换的条件, 该条件可以是业务在备份路由器上运 行时间到达设置的时间, 或备份路由器在升级周期到时后需要进行程序升 级等, 满足该条件时, 虽然备份路由器能够正常工作, 但是由于配置的要 求, 不能继续运行业务, 因此需要将业务回切到主路由器运行。 Specifically, 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. For example, when 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; When the router receives the handover request message sent by the primary router, the router automatically switches the service. After the service is switched, 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. After the handover completion message is sent, the upgrade process of its own program is performed, and then its working status becomes the upgrade state. After the upgrade of the primary router is completed, 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. Among them, 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.

为实现上述方法, 本发明还提供一种实现路由器全保护的系统, 图 3 是本发明实现路由器全保护的系统的结构示意图, 如图 3 所示, 该系统包 括: 配置模块 31、 主路由器 32、 备份路由器 33、 切换模块 34; 其中, 配置模块 31 , 用于配置主路由器 32和备份路由器 33;  To achieve the above method, the present invention also provides a system for implementing full protection of a router. FIG. 3 is a schematic structural diagram of a system for implementing full protection of a router according to the present invention. As shown in FIG. 3, the system includes: a configuration module 31 and a main router 32. The backup router 33, the switching module 34; wherein, the configuration module 31 is configured to configure the main router 32 and the backup router 33;

主路由器 32, 用于保存运行业务的相关数据; 需要进行切换时, 与备 份路由器 33进行数据同步;  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;

备份路由器 33 , 用于保存运行业务的相关数据; 需要进行切换时, 与 主路由器 32进行数据同步; 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;

切换模块 34, 用于需要进行切换时, 将主路由器 32的业务切换到备份 路由器 33运行。  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.

所述主路由器 32还用于, 需要进行回切时, 与备份路由器 33进行数 据同步;  The primary router 32 is further configured to perform data synchronization with the backup router 33 when the switchback needs to be performed;

所述备份路由器 33还用于, 需要进行回切时, 与主路由器 32进行数 据同步;  The backup router 33 is further configured to perform data synchronization with the main router 32 when the switchback needs to be performed;

所述切换模块 34还用于, 需要进行回切时, 将备份路由器 33的业务 切换到主路由器 32运行。  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.

所述配置主路由器 32和备份路由器 33为:  The configuration primary router 32 and backup router 33 are:

指定两台完全相同的路由器中的一台为主路由器 32, 另一台为备份路 由器 33 , 主备路由器之间利用专用的连接口进行通信; 主路由器 32的业务 接口配置为开启状态, 备份路由器 33的业务接口配置为阻塞状态; 备份路 由器 33通过专用的连接口向主路由 32器周期的发送备份路由器通告报文。  One of the two identical routers is designated as the primary router 32, and the other is the backup router 33. 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.

所述主路由器 32和备份路由器 33分别保存运行业务的相关数据为: 设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器 32 的数据库保存该数据列表, 并在首次收到备份路由器 33 发送的备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给 备份路由器 33 , 在数据库同步定时器到时后, 主路由器 32将数据列表发送 给备份路由器 33进行备份。  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 After receiving the backup router advertisement message sent by the backup router 33, the data list is sent to the backup router 33 through the database synchronization message. After the database synchronization timer expires, the main router 32 sends the data list to the backup router 33. Backup.

所述需要进行切换时, 主备路由器进行数据同步为:  When the switch needs to be switched, the data synchronization between the active and standby routers is as follows:

当收到主路由器保活定时器超时消息时, 备份路由器 33确定主路由器 32不能正常工作, 需要进行切换,备份路由器 33发送切换请求消息给主路 由器 32,并从主路由器 32获取最新的数据列表,进行自身数据列表的更新。  When receiving the primary router keepalive timer timeout message, 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.

所述需要进行切换时, 主备路由器进行数据同步为: 根据配置的要求, 主路由器 32主动发起向备份路由器 33的切换, 阻 塞自身的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路 由器 33;收到切换请求消息后,备份路由器 33进行自身的数据列表的更新, 并根据切换请求消息确定需要进行切换。 When the switch needs to be switched, 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.

所述需要进行回切时, 主备路由器进行数据同步为:  When the switchback needs to be performed, the data synchronization between the active and standby routers is as follows:

当业务在备份路由器 33上运行时, 如果备份路由器 33开始收到主路 由器 32发送的主路由器通告报文, 则备份路由器 33确定主路由器 32恢复 正常工作, 需要进行回切; 备份路由器 33将最新的数据列表和切换请求消 息发送给主路由器 32 , 主路由器 32更新自身的数据列表。  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.

所述需要进行回切时, 主备路由器进行数据同步为:  When the switchback needs to be performed, the data synchronization between the active and standby routers is as follows:

当业务在备份路由器上运行时, 备份路由器 33根据配置的要求, 确定 需要进行业务的回切; 当备份路由器 33确定需要进行回切时, 备份路由器 33发送切换请求消息和最新的数据列表给主路由器 32; 收到切换请求消息 文和数据列表后, 主路由器 32确定需要进行切换, 并进行自身的数据列表 的更新。  When the service is running on the backup router, 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.

以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim 1、 一种实现路由器全保护的方法, 其特征在于, 配置主路由器和备份 路由器, 该方法还包括:  A method for implementing full protection of a router, characterized in that: configuring a primary router and a backup router, the method further includes: 主路由器和备份路由器分别保存运行业务的相关数据;  The primary router and the backup router respectively save related data for running the service; 需要进行切换时, 主备路由器进行数据同步, 并将主路由器的业务切 换到备份路由器运行。  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. 2、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 需要进行回切时, 主备路由器进行数据同步, 并将备份路由器的业务 切换到主路由器运行。  2. The method according to claim 1, wherein the method further comprises: 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. 3、 根据权利要求 1所述的方法, 其特征在于, 所述配置主路由器和备 份路由器为:  3. The method according to claim 1, wherein the configuring the primary router and the backup router are: 指定两台完全相同的路由器中的一台为主路由器, 另一台为备份路由 器, 主备路由器之间利用专用的连接口进行通信; 主路由器的业务接口配 置为开启状态, 备份路由器的业务接口配置为阻塞状态, 备份路由器通过 专用的连接口向主路由器周期的发送备份路由器通告报文。  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. 4、 根据权利要求 1所述的方法, 其特征在于, 所述主路由器和备份路 由器分别保存运行业务的相关数据为:  The method according to claim 1, wherein the primary router and the backup router respectively save related data of the running service as: 设置一个用于保存路由器上运行的所有运行业务的相关数据的数据列 表, 主路由器的数据库保存该数据列表, 并在首次收到备份路由器发送的 备份路由器通告报文后, 通过数据库同步报文将该数据列表发送给备份路 由器, 在数据库同步定时器到时后, 主路由器将数据列表发送给备份路由 器进行备份。  Set a data list for storing related data of all running services running on the router. 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. 5、 根据权利要求 1所述的方法, 其特征在于, 所述需要进行切换时, 主备路由器进行数据同步为:  The method according to claim 1, wherein when the switching needs to be performed, the data synchronization between the active and standby routers is: 当收到主路由器保活定时器超时消息时, 备份路由器确定主路由器不 能正常工作, 需要进行切换, 备份路由器发送切换请求消息给主路由器, 并从主路由器获取最新的数据列表, 进行自身数据列表的更新。 When receiving the primary router keepalive timer timeout message, the backup router determines that the primary router does not It works normally and needs to be switched. The backup router sends a handover request message to the primary router, and obtains the latest data list from the primary router to update its own data list. 6、 根据权利要求 1所述的方法, 其特征在于, 所述需要进行切换时, 主备路由器进行数据同步为:  The method according to claim 1, wherein when the switching needs to be performed, the data synchronization between the active and standby routers is: 根据配置的要求, 主路由器主动发起向备份路由器的切换, 阻塞自身 的所有业务接口, 并发送最新的数据列表和切换请求消息给备份路由器; 收到切换请求消息后, 备份路由器进行自身的数据列表的更新, 并根据切 换请求消息确定需要进行切换。  According to the configuration requirements, the primary router initiates a switch to the backup router, blocks all its service interfaces, and sends the latest data list and switch request message to the backup router. After receiving the switch request message, the backup router performs its own data list. Update, and determine that a switch needs to be made based on the switch request message. 7、 根据权利要求 2所述的方法, 其特征在于, 所述需要进行回切时, 主备路由器进行数据同步为:  The method according to claim 2, wherein when the back-cutting needs to be performed, the data synchronization between the active and standby routers is: 当业务在备份路由器上运行时, 如果备份路由器开始收到主路由器发 送的主路由器通告报文, 则备份路由器确定主路由器恢复正常工作, 需要 进行回切; 备份路由器将最新的数据列表和切换请求消息发送给主路由器, 主路由器更新自身的数据列表。  When the service runs 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 update the latest data list and handover request. The message is sent to the primary router, which updates its own data list. 8、 根据权利要求 2所述的方法, 其特征在于, 所述需要进行回切时, 主备路由器进行数据同步为:  The method according to claim 2, wherein when the back-cutting is required, the data synchronization between the active and standby routers is: 当业务在备份路由器上运行时, 备份路由器根据配置的要求, 确定需 要进行业务的回切; 当备份路由器确定需要进行回切时, 备份路由器发送 切换请求消息和最新的数据列表给主路由器; 收到切换请求消息文和数据 列表后, 主路由器确定需要进行切换, 并进行自身的数据列表的更新。  When the service is running on the backup router, the backup router determines that the service needs to be switched back according to the configuration requirements; when the backup router determines that the switchback needs to be performed, the backup router sends the handover request message and the latest data list to the primary router; After switching the request message text and the data list, the main router determines that it needs to perform the handover and updates its own data list. 9、 一种实现路由器全保护的系统, 其特征在于, 该系统包括: 配置模 块、 主路由器、 备份路由器、 切换模块; 其中,  A system for implementing full protection of a router, the system comprising: 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 configured to save related data of the running service; when the handover is required, data synchronization with the primary router is performed; 切换模块, 用于需要进行切换时, 将主路由器的业务切换到备份路由 器运行。  The switching module is used to switch the service of the primary router to the backup router when the handover is needed. 10、 根据权利要求 9所述的系统, 其特征在于,  10. The system of claim 9 wherein: 所述主路由器还用于, 需要进行回切时, 与备份路由器进行数据同步; 所述备份路由器还用于, 需要进行回切时, 与主路由器进行数据同步; 所述切换模块还用于, 需要进行回切时, 将备份路由器的业务切换到 主路由器运行。  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.
PCT/CN2011/075432 2010-10-14 2011-06-08 Method and system for realizing router full protection Ceased WO2012048574A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010507065.7 2010-10-14
CN201010507065.7A CN101980484B (en) 2010-10-14 2010-10-14 A kind of method and system realizing router full guard

Publications (1)

Publication Number Publication Date
WO2012048574A1 true WO2012048574A1 (en) 2012-04-19

Family

ID=43600969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075432 Ceased WO2012048574A1 (en) 2010-10-14 2011-06-08 Method and system for realizing router full protection

Country Status (2)

Country Link
CN (1) CN101980484B (en)
WO (1) WO2012048574A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980484B (en) * 2010-10-14 2016-02-10 中兴通讯股份有限公司 A kind of method and system realizing router full guard
CN102693171B (en) * 2011-08-05 2015-11-18 新奥特(北京)视频技术有限公司 A kind of restoration methods of Message Entry System and system
CN103138957A (en) * 2011-11-22 2013-06-05 中国移动通信集团上海有限公司 Method, device and system for business path failback
CN103377099B (en) * 2012-04-19 2017-02-08 中国移动通信集团公司 Method and device of data backup and recovery for NFC mobile terminals
CN106792790B (en) * 2016-03-31 2021-04-16 新华三技术有限公司 AP upgrading method and device
CN108023756B (en) * 2016-10-28 2021-09-28 阿里巴巴集团控股有限公司 Upgrading method and device for virtual switch
CN108924044B (en) * 2018-06-22 2020-12-11 迈普通信技术股份有限公司 Link maintenance method, PE device and readable storage medium
CN110716471A (en) * 2019-10-29 2020-01-21 中车株洲电力机车有限公司 Dual-CPU hot standby redundancy control method and device for brake control unit of brake

Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101651553A (en) * 2009-09-03 2010-02-17 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices
CN101980484A (en) * 2010-10-14 2011-02-23 中兴通讯股份有限公司 Method and system for realizing full protection of routers

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101651553A (en) * 2009-09-03 2010-02-17 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices
CN101980484A (en) * 2010-10-14 2011-02-23 中兴通讯股份有限公司 Method and system for realizing full protection of routers

Also Published As

Publication number Publication date
CN101980484B (en) 2016-02-10
CN101980484A (en) 2011-02-23

Similar Documents

Publication Publication Date Title
WO2012048574A1 (en) Method and system for realizing router full protection
US9705782B2 (en) Method and system for efficient graceful restart in an open shortest path first (OSPF) network
CN100568854C (en) A method and interface board for maintaining neighbor relationship
CN101984573B (en) Method and system for distributed realization of LACP standard state machine
CN101459536B (en) Port configuration method and switching device
US20120275456A1 (en) Expedited graceful ospf restart
JP2013081157A (en) Method and device for restoring unicast traffic
WO2009082923A1 (en) Link fault processing method and data forwarding device
CN101478435A (en) Topology collecting method for stacking system and dual control board equipment
CN101399824B (en) Method, system and router realizing elegant restart of route information protocol
WO2012048585A1 (en) Switching method and router
WO2016082412A1 (en) Method and apparatus for realizing reliable transmission of data, and computer storage medium
WO2017000832A1 (en) Mac address synchronization method, device and system
CN106330728B (en) Method, the equipment of standby Designated Router and Designated Router troubleshooting are waited in election
WO2012159570A1 (en) Link switchover method and apparatus
CN102420767A (en) Method and device for switching forwarding paths, and network equipment
CN101262402B (en) A method for realizing redundant backup between loop networks
CN102761428A (en) Server system and server switching method
WO2016180081A1 (en) Configuration information synchronization method, primary device and standby device
CN103138957A (en) Method, device and system for business path failback
CN101621443A (en) A Fault Recovery Method for Ethernet Ring Network Protection System
CN101237319B (en) Time synchronization method in Ethernet ring network and Ethernet ring system
CN106603272A (en) Controller protection method and system based on smooth restart
CN109995541B (en) A kind of multicast data sending method and node device
CN101510890B (en) Method and communication equipment for holding protocol state

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