WO2016177231A1 - 基于双主控的主备倒换方法及装置 - Google Patents

基于双主控的主备倒换方法及装置 Download PDF

Info

Publication number
WO2016177231A1
WO2016177231A1 PCT/CN2016/078175 CN2016078175W WO2016177231A1 WO 2016177231 A1 WO2016177231 A1 WO 2016177231A1 CN 2016078175 W CN2016078175 W CN 2016078175W WO 2016177231 A1 WO2016177231 A1 WO 2016177231A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
interface
plane
forwarding
control plane
Prior art date
Application number
PCT/CN2016/078175
Other languages
English (en)
French (fr)
Inventor
蒋海辉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177231A1 publication Critical patent/WO2016177231A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the present invention relates to the field of network management information data communication networks, and in particular to a dual master-based active/standby switching method and apparatus for data communication equipment in a Packet Transport Network (PTN).
  • PTN Packet Transport Network
  • the Data Communication Network provides the transmission channel and communication platform of the system, thereby realizing the informationization and automation of network monitoring, management, maintenance and decision-making.
  • the communication link of the DCN is implemented by various interfaces, including an embedded control channel (ECC), a local area network (LAN) interface, and a wide area network (WAN) interface to support PTN/P.
  • ECC embedded control channel
  • LAN local area network
  • WAN wide area network
  • the PTN device currently supports dual-master functions to ensure that the device works normally, and data processing can only be performed on one main control board at a time.
  • the DCN data communication network sends the physical port and the logical port based on the physical state of the device.
  • the created data is sent to the forwarding plane and the control plane.
  • the control plane After receiving the port information, the control plane creates the forwarding domain and routes. Information, and the routing information is sent to the forwarding plane through the interface.
  • the standby main control board is running normally, the data on the active master is synchronized, so that the data of the forwarding plane and the control plane of the primary and backup masters of the device are consistent and valid.
  • the DCN data communication network needs to re-deliver the physical port and the logical port based on the physical state of the device.
  • the port creation data is sent to the forwarding plane and the control plane.
  • the processing module finds that the interface data is inconsistent with the original data, and the interface is created.
  • the graceful restart (GR) protocol sends a GR packet to the neighboring neighbors.
  • the control platform cannot create a new interface.
  • the device retains the original interface data and routing data in the control plane, while the forwarding plane retains the new interface data and the old routing data until the control plane is unlocked before starting to create a new one.
  • the interface starts a new route calculation and finally reports it to the forwarding plane. At this time, the data communication can be restored.
  • Such a process takes a long time to recover the DCN data communication network.
  • the embodiment of the present invention provides an active/standby switching method and device based on dual-master control, so as to solve at least the problem that the DCN data communication network needs to be restored after the active/standby switchover in the related art.
  • a dual master-based active/standby switching method is provided, where the method includes Next steps:
  • control plane and the forwarding plane respectively perform data synchronization, and the synchronization data of the control plane is saved; the dual main control board performs the active/standby switchover; the control plane and the forwarding plane respectively perform data recovery, wherein The control plane recreates the interface according to the synchronization data of the saved disk.
  • control plane backup data is saved by file or database.
  • the data synchronization of the forwarding plane includes: the forwarding plane backs up the interface data and an interface mapping index; and the forwarding plane backs up the routing information and ARP information.
  • the data recovery by the control plane includes: the primary interface module sends the original port deletion and the new port creation; the forwarding plane restores the interface information and the routing data; and the forwarding plane sends the routing data to the driver. , open the data forwarding function of the forwarding plane.
  • the data recovery by the control plane includes: the primary interface module notifying the control platform interface change; the control plane interface process re-creating the interface according to the saved data, wherein the newly created interface and the interface mapping index and the save disk The data is consistent, so that the routing outbound interface information remains unchanged. Wait for the graceful restart packet GR to re-create the forwarding instance successfully; restore the original data communication route in the new forwarding domain.
  • a dual-master-based active/standby switching device including: a synchronization module, configured to perform data synchronization of a control plane and data synchronization of a forwarding plane in an active/standby environment, wherein The synchronization data of the control plane is saved; the switching module is configured as an active/standby switchover of the dual main control board; and the recovery module is configured to recover the data of the control plane and the forwarding plane, so that the control plane is Synchronize the data of the saved disk to recreate the interface.
  • the synchronization module includes: a control plane interface backup sub-module, which is set as a backup of the interface data of the control plane and an interface mapping index; and a control plane routing backup sub-module, which is set as a backup of the control plane routing information and ARP information.
  • a storage submodule configured to save the backup data of the control plane.
  • the synchronization module further includes: a forwarding plane interface backup sub-module, configured as a backup of the interface data of the forwarding plane and an interface mapping index; and a forwarding plane routing backup sub-module, which is set to the forwarding plane routing information and ARP information. Backup.
  • the recovery module includes: an interface sub-module, configured to send the original port deletion and the new port creation notification; the forwarding plane recovery sub-module is set to restore the interface information of the forwarding plane and the routing data; The sub-module is configured to deliver the routing data of the forwarding plane to the driver, and open the data forwarding function of the forwarding plane.
  • the recovery module further includes: the interface sub-module, further configured to notify the control platform interface of the change; the control plane recovery sub-module, configured to re-create the interface of the control plane according to the saved data, wherein The created interface and the interface mapping index are the same as the data in the save disk, so that the outbound interface information remains unchanged.
  • the submodule is created, and the forwarding instance is successfully created after the Graceful Restart message GR is completed.
  • the route recovery submodule is set to In The original forwarding domain recovers the original data communication route.
  • the interface is created and kept consistent with the original when the interface is created after the switching, so that the newly delivered interface data and the original routing data can be directly used, thereby solving the prior art.
  • the active/standby switchover requires long-term data communication to restore normal problems, which reduces the data communication recovery time and provides system efficiency.
  • FIG. 1 is a flowchart of a dual master-based active/standby switching method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a dual-master based active/standby switching device according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a dual-master based active/standby switching device according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of backup of primary and backup data according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of recovery of active and standby data according to an embodiment of the present invention.
  • the transmission channel and the communication platform of the data communication network system are established, thereby implementing the network monitoring, management, and maintenance functions. This part has been implemented in the DCN. This part of the content is not within the scope of this patent.
  • the embodiment of the present invention continues the functions that the DCN has implemented. In the active/standby environment of the device, DCN fast switching is implemented through data backup and fast recovery.
  • the data backup and switching recovery of the DCN is divided into two planes: the data forwarding plane and the data control plane.
  • the port information and routing information of the data forwarding plane and the data control plane are the same in the active/standby environment.
  • the interface process of the standby control platform needs to back up the port data and the logical interface and the corresponding mapping relationship, and back up all routing related information. Therefore, the route of the active and standby synchronization can be directly used on the standby board.
  • the standby forwarding platform also needs to back up port information and routing information.
  • the interface processing module actively sends the original port deletion and the creation of a new port. If the original physical interface needs to be maintained with the previous physical interface and logical interface, the interface processing module will automatically send the original port to the backup port. Consistent.
  • the forwarding plane restores interface information and routing data, and clears the data forwarding function of the forwarding plane.
  • the corresponding control plane needs to re-create the interface from the backup and save data to ensure that the master and the backup generate the same index and ensure that the outbound interface information is unchanged.
  • the active and standby routes can be directly used on the standby board. And wait for the GR to re-create the forwarding domain instance. The original routing data is restored in the new forwarding domain, and the data communication network is quickly switched and restored.
  • FIG. 1 is a flowchart of dual-master-based active/standby switching according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps. step:
  • Step S102 In the active/standby environment, the control plane and the forwarding plane separately perform data synchronization, and save the synchronization data of the control plane.
  • Step S104 The dual main control board performs an active/standby switchover.
  • Step S106 The control plane and the forwarding plane respectively perform data recovery, wherein the control plane recreates the interface according to the data of the saved disk.
  • the interface is created by the data stored in the disk after the switchover, so that the interface is created and the original interface is consistent with the original, so that the newly delivered interface data and the original route data can be directly used, thereby solving the existing In the technology, the active/standby switchover in the dual-master environment requires a long time data communication to restore the normal problem, and the effect of shortening the data communication recovery time and providing system efficiency is achieved.
  • the step of performing data synchronization on the control plane includes: backup interface data of the standby main control board interface and interface mapping index; routing and forwarding management module of the control plane backing up routing information and ARP information; and performing control plane backup data by file or database Save.
  • the step of performing data synchronization on the forwarding plane includes: forwarding plane backup interface data and an interface mapping index; forwarding plane backup routing information and ARP information.
  • the data recovery process of the control plane includes: the primary interface module sends the original port deletion and the new port creation; the forwarding plane restores the interface information and the routing data; the forwarding plane sends the routing data to the driver, and the forwarding plane data is opened. Forwarding function.
  • the step of performing data recovery by the control plane includes: the primary interface module notifying the control platform interface change; the control plane interface process re-creating the interface according to the saved data, wherein the newly created interface and the interface mapping index are consistent with the data in the save disk, so that The outbound interface information remains unchanged. Wait for the graceful restart packet GR to re-create the forwarding instance successfully; restore the original data communication route in the new forwarding domain.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a storage medium eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a dual-master-based active/standby switching device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the device includes: a synchronization module 10, configured to synchronize and forward data of a control plane in a primary standby environment. Data synchronization of the plane, wherein the synchronization data of the control plane is saved; the switching module 20 is configured as an active/standby switchover of the dual main control board; and the recovery module 30 is configured to recover the data of the control plane and the forwarding plane. Having the control plane recreate the interface based on the synchronized data of the saved disk.
  • FIG. 3 is a structural block diagram of a dual-master-based active/standby switching device according to an embodiment of the present invention. As shown in FIG. 3, the device includes the synchronization module 10, the switching module 20, and the recovery module 30 shown in FIG.
  • the synchronization module 10 includes: a control plane interface backup sub-module 11 configured to be a backup of the interface data of the control plane and an interface mapping index; and a control plane routing backup sub-module 12 configured to be the control plane routing information and ARP information.
  • the backup sub-module 13 is set to save the backup data of the control plane.
  • the synchronization module 10 further includes: a forwarding plane interface backup sub-module 14, configured as a backup of the interface data of the forwarding plane and an interface mapping index; and a forwarding plane routing backup sub-module 15 configured to be the forwarding plane routing information and ARP Backup of information.
  • the recovery module 30 includes: an interface sub-module 31, configured to send the original port deletion and the new port creation notification, and the forwarding plane recovery sub-module 32 is configured to restore the interface information and routing data of the forwarding plane;
  • the sending sub-module 33 is configured to deliver the routing data of the forwarding plane to the driver, and open the data forwarding function of the forwarding plane.
  • the interface sub-module 31 is further configured to notify the control platform interface of the change.
  • the recovery module 30 further includes: a control plane recovery sub-module 34, configured to re-create the interface of the control plane according to the saved data, where The newly created interface and the interface mapping index are the same as the data in the save disk, so that the routing outbound interface information remains unchanged.
  • the sub-module 35 is created, and the forwarding instance is successfully created after the Graceful Restart message GR is completed.
  • the route recovery sub-module 36 set to restore the original data communication route in the new forwarding domain.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be arranged to store program code for performing the steps described in the foregoing.
  • the foregoing storage medium may include, but is not limited to, a U disk, a read only memory (ROM, Read-Only Memory), Random Access Memory (RAM), removable hard disk, disk or optical disk, etc., which can store program code.
  • ROM read only memory
  • RAM Random Access Memory
  • removable hard disk disk or optical disk, etc., which can store program code.
  • control plane data synchronization has the following steps:
  • the routing and forwarding management module of the control plane backs up routing information and ARP information;
  • the control plane requires data to be saved. It can be saved in the file or database mode to ensure that the master and the backup generate the same index, and the outbound interface information is unchanged.
  • the active and standby routes can be directly used on the standby board.
  • the forwarding plane data recovery has the following steps:
  • the interface processing module will actively send the original port deletion and new port creation
  • the forwarding plane sends routing data to the driver, and the data forwarding function of the forwarding plane is activated.
  • control plane data recovery After the active/standby switchover, the control plane data recovery has the following steps:
  • the interface processing module notifies the control platform interface to change
  • the control plane interface process deletes and constructs the interface, and ensures that the corresponding port and the index are consistent with the data stored in the disk according to the saved data, so that the routing outbound interface information is unchanged, so that the active and standby synchronous routes can be directly used on the standby board;
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种双主控环境下的主备倒换方法及装置,该方法包括:在主备环境下,控制平面和转发平面分别进行数据同步,并将控制平面的同步数据进行存盘;双主控板进行主备倒换;控制平面和转发平面分别进行数据恢复,其中,控制平面根据存盘的同步数据重新创建接口。在本发明中,通过在倒换后接口创建的时候,使得接口的创建保持与原来的一致,确保新下发的接口数据和原来的路由数据可直接使用,从而解决了现有技术中双主控环境下主备倒换需要较长时间数据通信才能恢复正常的问题,达到了缩短数据通信恢复时间,提高***效率的效果。

Description

基于双主控的主备倒换方法及装置 技术领域
本发明涉及网管信息数据通信网络领域,具体而言,涉及分组传送网(Packet Transport Network,PTN)中数据通信设备的一种基于双主控的主备倒换方法及装置。
背景技术
数据传输领域中,数据通信网络(Data Communication Network,DCN)提供***的传输通道和通信平台,从而实现网络监控、管理、维护以及决策的信息化与自动化。DCN的通信链路由各种接口实现,包括嵌入式控制通道(Embedded control channel,ECC)、局域网(Local Area Network,LAN)接口和广域网(Wide Area Network,WAN)接口,用来支持PTN/P-OTN设备的管理平面的管理通信、控制平面的信令通信以及其它通信。
PTN设备目前都支持双主控功能已保证设备正常工作,而数据处理某一时刻只能在一个主控板上进行。当设备开始运行时,DCN数据通信网络根据设备的物理状态,下发物理端口和逻辑端口的创建,创建数据下发给转发平面和控制平面,控制平面接收到端口信息后,创建转发域和路由信息,并将路由信息通过接口上送给转发平面。当备用主控板正常运行时同步主用主控上的数据,这样设备的主、备用主控的转发平面和控制平面的数据是一致和有效的。
当主用主控异常倒换到备用主控,DCN数据通信网络根据设备的物理状态,需要重新下发物理端口和逻辑端口的创建,端口创建数据分别下发给转发平面和控制平面,控制平面的接口处理模块发现接口数据和原数据不一致,会锁定接口创建,同时控制平面优雅重启(grace restart,GR)协议会向周围的邻居设备发送GR报文,让周围邻居先别把路由删除掉。这样控制平台无法创建新的接口,设备在控制平面还是保留原来的接口数据和路由数据,而转发平面保留的是新的接口数据和旧的路由数据,一直到控制平面解除锁定才开始创建新的接口并开始新的路由计算,最后上报给转发平面,这时数据通信才能恢复正常。这样的处理过程需要较长时间才能恢复DCN数据通信网络。
发明内容
本发明实施例提供了一种基于双主控的主备倒换方法及装置,以至少解决相关技术中主备倒换后需要较长时间才能恢复DCN数据通信网络的问题。
根据本发明实施例的一个方面,提供了一种基于双主控的主备倒换方法,该方法包括以 下步骤:
在主备环境下,控制平面和转发平面分别进行数据同步,并将所述控制平面的同步数据进行存盘;双主控板进行主备倒换;所述控制平面和转发平面分别进行数据恢复,其中,所述控制平面根据所述存盘的同步数据重新创建接口。
进一步地,所述控制平面进行数据同步包括:备用主控板接口进程备份接口数据及接口映射索引;所述控制平面的路由转发管理模块备份路由信息和地址解析协议(Address Resolution Protocol,ARP)信息;通过文件或数据库方式将所述控制平面备份数据进行存盘。
进一步地,所述转发平面进行数据同步包括:所述转发平面备份所述接口数据及接口映射索引;所述转发平面备份所述路由信息和ARP信息。
进一步地,所述控制平面进行数据恢复包括:主用接口模块会下发原端口删除和新端口创建;所述转发平面恢复接口信息和路由数据;所述转发平面下发所述路由数据到驱动,打通转发平面的数据转发功能。
进一步地,所述控制平面进行数据恢复包括:主用接口模块通告控制平台接口变动;所述控制平面接口进程根据所述存盘数据重新创建接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变。等待优雅重启报文GR结束后重新创建转发实例成功;在新的转发域中恢复原来的数据通信路由。
根据本发明实施例的另一方面,提供了一种基于双主控的主备倒换装置,包括:同步模块,设置为在主备环境下,控制平面的数据同步和转发平面的数据同步,其中,所述控制平面的同步数据被存盘;倒换模块,设置为双主控板的主备倒换;恢复模块,设置为所述控制平面和所述转发平面的数据恢复,使得所述控制平面根据所述存盘的同步数据重新创建接口。
进一步地,同步模块包括:控制平面接口备份子模块,设置为所述控制平面的接口数据及接口映射索引的备份;控制平面路由备份子模块,设置为所述控制平面路由信息和ARP信息的备份;存储子模块,设置为所述控制平面备份数据的存盘。
进一步地,同步模块还包括:转发平面接口备份子模块,设置为所述转发平面的接口数据及接口映射索引的备份;转发平面路由备份子模块,设置为所述转发平面路由信息和ARP信息的备份。
进一步地,所述恢复模块包括:接口子模块,设置为下发原端口删除和新端口创建通知;转发平面恢复子模块,设置为所述转发平面的接口信息和路由数据的恢复;路由下发子模块,设置为将所述转发平面的路由数据下发到驱动,打通转发平面的数据转发功能。
进一步地,所述恢复模块还包括:所述接口子模块,还设置为通告控制平台接口变动;控制平面恢复子模块,设置为根据所述存盘数据重新创建所述控制平面的接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变;创建子模块,设置为等待优雅重启报文GR结束后重新创建转发实例成功;路由恢复子模块,设置为在 新的转发域中恢复原来的数据通信路由。
在本发明的上述实施例中,通过在倒换后接口创建的时候,使得接口的创建保持与原来的一致,确保新下发的接口数据和原来的路由数据可直接使用,从而解决了现有技术中双主控环境下主备倒换需要较长时间数据通信才能恢复正常的问题,达到了缩短数据通信恢复时间,提供***效率的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的基于双主控的主备倒换方法的流程图;
图2是根据本发明实施例的基于双主控的主备倒换装置的结构框图;
图3是根据本发明另一实施例的基于双主控的主备倒换装置的结构框图;
图4是根据本发明实施例的主备数据备份示意图;
图5是根据本发明实施例主备数据恢复示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
数据通信网络***的传输通道和通信平台建立,从而实现网络监控、管理、维护功能,这部分已经在DCN中实现,这部分内容不在本专利范围内,本发明实施例延续DCN已经实现的功能在设备主备环境下,通过数据备份和快速恢复实现DCN快速倒换。
为了解决主备倒换后端口创建在控制平面被锁定引起控制平面和转发平面数据不一致,导致需要较长时间才能恢复DCN数据通信网络的问题,可以在倒换后端口创建的时候确保端口的创建保持与原来的一致,已确保新下发的端口数据和原来的路由数据可直接使用,实现方式如下:
DCN的数据备份和倒换恢复分为数据转发平面和数据控制平面两个平面来处理。设备在主备环境运行中,数据转发平面和数据控制平面的端口信息和路由信息都是一致的。对应控制平面来说,备板控制平台的接口进程需要先备份端口数据及逻辑接口及对应的映射关系,同时备份所有的路由相关信息。从而保证主备同步的路由可以在备用板上直接使用。对应转发平面来说,备板转发平台也需要备份端口信息和路由信息。
当主用板异常引起主备倒换到备用板后的数据恢复阶段,接口处理模块会主动下发原端口删除和新端口的创建,如果原有的物理口,需要和以前的物理接口和逻辑接口保持一致。转发平面恢复接口信息和路由数据,打通转发平面的数据转发功能。对应控制平面需要从备份和存盘数据中重新创建接口,保证主备生成相同的索引(index),保证路由出接口信息不变,从而主备同步的路由可以在备用板上直接使用。并等待GR结束后重新创建转发域实例。在新的转发域中恢复原来的路由数据,完成数据通信网络快速倒换恢复。
在本实施例中提供了一种基于双主控的主备倒换方法,图1是根据本发明实施例的基于双主控的主备倒换的流程图,如图1所示,该流程包括如下步骤:
步骤S102,在主备环境下,控制平面和转发平面分别进行数据同步,并将控制平面的同步数据进行存盘;
步骤S104,双主控板进行主备倒换;
步骤S106,控制平面和转发平面分别进行数据恢复,其中,控制平面根据存盘的数据重新创建接口。
在本实施例中,通过在倒换后通过存盘的数据进行接口的创建,使接口的创建保持与原来的一致,确保新下发的接口数据和原来的路由数据可直接使用,从而解决了现有技术中双主控环境下主备倒换需要较长时间数据通信才能恢复正常的问题,达到了缩短数据通信恢复时间,提供***效率的效果。
其中,控制平面进行数据同步的步骤包括:备用主控板接口进程备份接口数据及接口映射索引;控制平面的路由转发管理模块备份路由信息和ARP信息;通过文件或数据库方式将控制平面备份数据进行存盘。
其中,转发平面进行数据同步的步骤包括:转发平面备份接口数据及接口映射索引;转发平面备份路由信息和ARP信息。
其中,控制平面进行数据恢复的步骤包括:主用接口模块下发原端口删除和新端口创建;转发平面恢复接口信息和路由数据;转发平面下发所述路由数据到驱动,打通转发平面的数据转发功能。
其中,控制平面进行数据恢复的步骤包括:主用接口模块通告控制平台接口变动;控制平面接口进程根据存盘数据重新创建接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变。等待优雅重启报文GR结束后重新创建转发实例成功;在新的转发域中恢复原来的数据通信路由。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种基于双主控的主备倒换装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的基于双主控的主备倒换装置的结构框图,如图2所示,该装置包括:同步模块10,设置为主备环境下,控制平面的数据同步和转发平面的数据同步,其中,所述控制平面的同步数据被存盘;倒换模块20,设置为双主控板的主备倒换;恢复模块30,设置为所述控制平面和所述转发平面的数据恢复,使得所述控制平面根据所述存盘的同步数据重新创建接口。
图3是根据本发明实施例的基于双主控的主备倒换装置的结构框图,如图3所示,该装置包括图2所示的同步模块10、倒换模块20和恢复模块30。
其中,同步模块10包括:控制平面接口备份子模块11,设置为所述控制平面的接口数据及接口映射索引的备份;控制平面路由备份子模块12,设置为所述控制平面路由信息和ARP信息的备份;存储子模块13,设置为所述控制平面备份数据的存盘。
其中,同步模块10还包括:转发平面接口备份子模块14,设置为所述转发平面的接口数据及接口映射索引的备份;转发平面路由备份子模块15,设置为所述转发平面路由信息和ARP信息的备份。
其中,所述恢复模块30包括:接口子模块31,设置为下发原端口删除和新端口创建通知;转发平面恢复子模块32,设置为所述转发平面的接口信息和路由数据的恢复;路由下发子模块33,设置为将所述转发平面的路由数据下发到驱动,打通转发平面的数据转发功能。
其中,所述接口子模块31还设置为通告控制平台接口变动;所述恢复模块30还包括:控制平面恢复子模块34,设置为根据所述存盘数据重新创建所述控制平面的接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变;创建子模块35,设置为等待优雅重启报文GR结束后重新创建转发实例成功;路由恢复子模块36,设置为在新的转发域中恢复原来的数据通信路由。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行前文中所述的步骤的程序代码。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以下实施例将结合图3和图4详细描述主备数据备份和主备数据恢复的相关流程。
在主备主控环境下,为保证主备同步的路由可以在备用板上直接使用,必须保证主备数据同步。为了描述更清楚,在本实施例中将该主备数据同步分为控制平面数据同步和转发平面数据同步分别进行描述,如图3和图4所示:
1.主备环境下,控制平面数据同步
为保证主备数据同步,控制平面数据同步有以下几个步骤:
1)备板接口进程需要先备份接口数据及接口映射索引;
2)控制平面的路由转发管理模块备份路由信息,ARP信息;
3)控制平面要求数据存盘,可以通过文件或数据库方式进行存盘,保证主备生成相同的索引,保证路由出接口信息不变,从而主备同步的路由可以在备用板上直接使用;
2.主备环境下,转发平面数据同步
为保证主备数据同步,转发平面数据同步有以下几个步骤:
1)转发平面备份接口数据及接口映射索引;
2)转发平面备份路由信息,将主板从控制平面获得的路由同步到新的主控板;
3)转发平面备份ARP信息。
3.主备倒换后,转发平面数据恢复
在主备倒换后,转发平面数据恢复有以下几个步骤:
1)接口处理模块会主动下发原端口删除和新端口创建;
2)转发平面恢复接口信息和路由数据;
3)转发平面下发路由数据到驱动,打通转发平面的数据转发功能。
4.主备倒换后,控制平面数据恢复
在主备倒换后,控制平面数据恢复有以下几个步骤:
1)接口处理模块通告控制平台接口变动;
2)控制平面接口进程删建接口,根据存盘数据确保相应端口及索引与存盘的数据一致,保证路由出接口信息不变,从而主备同步的路由可以在备用板上直接使用;
3)等待GR结束后重新创建转发实例成功;
4)在新的转发域中恢复原来的数据通信路由,完成数据通信网络快速倒换恢复。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (11)

  1. 一种基于双主控的主备倒换方法,包括:
    在主备环境下,控制平面和转发平面分别进行数据同步,并将所述控制平面的同步数据进行存盘;
    双主控板进行主备倒换;
    所述控制平面和转发平面分别进行数据恢复,其中,所述控制平面根据所述存盘的同步数据重新创建接口。
  2. 根据权利要求1所述的主备倒换方法,其中,所述控制平面进行数据同步包括:
    备用主控板接口进程备份接口数据及接口映射索引;
    所述控制平面的路由转发管理模块备份路由信息和地址解析协议ARP信息;
    将所述控制平面备份数据进行存盘。
  3. 根据权利要求1所述的主备倒换方法,其中,所述转发平面进行数据同步包括:
    所述转发平面备份所述接口数据及接口映射索引;
    所述转发平面备份所述路由信息和ARP信息。
  4. 根据权利要求2所述的主备倒换方法,其中,所述控制平面进行数据恢复包括:
    主用接口模块会下发原端口删除和新端口创建;
    所述转发平面恢复接口信息和路由数据;
    所述转发平面下发所述路由数据到驱动,打通转发平面的数据转发功能。
  5. 根据权利要求3所述的主备倒换方法,其中,所述控制平面进行数据恢复包括:
    主用接口模块通告控制平台接口变动;
    所述控制平面接口进程根据所述存盘数据重新创建接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变;
    等待优雅重启报文GR结束后重新创建转发实例成功;
    在新的转发域中恢复原来的数据通信路由。
  6. 根据权利要求1-5任一项所述的主备倒换方法,其中,通过文件或数据库方式进行数据存盘。
  7. 一种基于双主控的主备倒换装置,包括:
    同步模块,设置为在主备环境下,控制平面的数据同步和转发平面的数据同步,并 将所述控制平面的同步数据进行存盘;
    倒换模块,设置为双主控板的主备倒换;
    恢复模块,设置为所述控制平面和所述转发平面的数据恢复,使得所述控制平面根据所述存盘的同步数据重新创建接口。
  8. 根据权利要求7所述的主备倒换装置,其中,同步模块包括:
    控制平面接口备份子模块,设置为所述控制平面的接口数据及接口映射索引的备份;
    控制平面路由备份子模块,设置为所述控制平面路由信息和ARP信息的备份;
    存储子模块,设置为所述控制平面备份数据的存盘。
  9. 根据权利要求7所述的主备倒换装置,其中,同步模块还包括:
    转发平面接口备份子模块,设置为所述转发平面的接口数据及接口映射索引的备份;
    转发平面路由备份子模块,设置为所述转发平面路由信息和ARP信息的备份。
  10. 根据权利要求8所述的主备倒换装置,其中,所述恢复模块包括:
    接口子模块,设置为下发原端口删除和新端口创建通知;
    转发平面恢复子模块,设置为所述转发平面的接口信息和路由数据的恢复;
    路由下发子模块,设置为将所述转发平面的路由数据下发到驱动,打通转发平面的数据转发功能。
  11. 根据权利要求9所述的主备倒换装置,其中,所述恢复模块还包括:
    所述接口子模块,还设置为通告控制平台接口变动;
    控制平面恢复子模块,设置为根据所述存盘数据重新创建所述控制平面的接口,其中,新创建的接口以及接口映射索引与存盘中的数据一致,使得路由出接口信息保持不变;
    创建子模块,设置为等待优雅重启报文GR结束后重新创建转发实例成功;
    路由恢复子模块,设置为在新的转发域中恢复原来的数据通信路由。
PCT/CN2016/078175 2015-07-10 2016-03-31 基于双主控的主备倒换方法及装置 WO2016177231A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510405877.3A CN106341251A (zh) 2015-07-10 2015-07-10 基于双主控的主备倒换方法及装置
CN201510405877.3 2015-07-10

Publications (1)

Publication Number Publication Date
WO2016177231A1 true WO2016177231A1 (zh) 2016-11-10

Family

ID=57217552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078175 WO2016177231A1 (zh) 2015-07-10 2016-03-31 基于双主控的主备倒换方法及装置

Country Status (2)

Country Link
CN (1) CN106341251A (zh)
WO (1) WO2016177231A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450604A (zh) * 2018-09-25 2019-03-08 国家电网有限公司客户服务中心 一种面向灾备的异地双活***业务等级划分方法
CN111884767A (zh) * 2020-03-25 2020-11-03 上交所技术有限责任公司 一种解决1跳成本时全序组播切分问题的方法及***
CN113992518A (zh) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 网络设备的控制方法及装置
CN114785673A (zh) * 2022-04-26 2022-07-22 杭州迪普科技股份有限公司 多主控vsm环境下主备倒换时获取异常信息的方法和装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707649B (zh) * 2017-09-28 2020-08-11 新华三技术有限公司 转控分离中转发平面的备份方法和装置
CN108683532B (zh) * 2018-05-11 2021-04-27 新华三技术有限公司 一种主备同步方法及装置
CN108933873B (zh) * 2018-06-08 2021-02-05 新华三技术有限公司 一种用户数据的同步方法及装置
CN110224849A (zh) * 2019-04-18 2019-09-10 广州市高科通信技术股份有限公司 一种防止ptn设备数据丢失的方法、***及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529459A (zh) * 2003-10-16 2004-09-15 港湾网络有限公司 面向高端交换机的主备倒换实现方法
CN1622483A (zh) * 2003-11-27 2005-06-01 华为技术有限公司 一种实现软件上主备双机热备份的方法
CN101588302A (zh) * 2009-06-26 2009-11-25 杭州华三通信技术有限公司 路由更新的方法及设备
CN102075341A (zh) * 2009-11-25 2011-05-25 中兴通讯股份有限公司 一种主备同步方法及***
CN102412949A (zh) * 2011-12-30 2012-04-11 苏州山石网络有限公司 一种分布式***中nat端口资源支持双控制板的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529459A (zh) * 2003-10-16 2004-09-15 港湾网络有限公司 面向高端交换机的主备倒换实现方法
CN1622483A (zh) * 2003-11-27 2005-06-01 华为技术有限公司 一种实现软件上主备双机热备份的方法
CN101588302A (zh) * 2009-06-26 2009-11-25 杭州华三通信技术有限公司 路由更新的方法及设备
CN102075341A (zh) * 2009-11-25 2011-05-25 中兴通讯股份有限公司 一种主备同步方法及***
CN102412949A (zh) * 2011-12-30 2012-04-11 苏州山石网络有限公司 一种分布式***中nat端口资源支持双控制板的方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHAO, RUIMIN.: "Design and Implementation of the OSPF Non-Stop-Routing Based on Hot-Stand-by Mechanism", CHINESE MASTER'S THESES FULL-TEXT DATABASE INFORMATION SCIENCE AND TECHNOLOGY, 15 July 2011 (2011-07-15), pages 29, 33, 34, 39 , 40 , 54 - 58 , and 71 to 73 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450604A (zh) * 2018-09-25 2019-03-08 国家电网有限公司客户服务中心 一种面向灾备的异地双活***业务等级划分方法
CN111884767A (zh) * 2020-03-25 2020-11-03 上交所技术有限责任公司 一种解决1跳成本时全序组播切分问题的方法及***
CN111884767B (zh) * 2020-03-25 2023-01-20 上交所技术有限责任公司 一种解决1跳成本时全序组播切分问题的方法及***
CN113992518A (zh) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 网络设备的控制方法及装置
CN114785673A (zh) * 2022-04-26 2022-07-22 杭州迪普科技股份有限公司 多主控vsm环境下主备倒换时获取异常信息的方法和装置
CN114785673B (zh) * 2022-04-26 2023-08-22 杭州迪普科技股份有限公司 主备倒换时获取异常信息的方法和装置

Also Published As

Publication number Publication date
CN106341251A (zh) 2017-01-18

Similar Documents

Publication Publication Date Title
WO2016177231A1 (zh) 基于双主控的主备倒换方法及装置
AU2017282817B2 (en) Data processing method and device
WO2019085875A1 (zh) 存储集群的配置修改方法、存储集群及计算机***
ES2703901T3 (es) Sistema de archivo distribuido mediante nodos de consenso
US11704207B2 (en) Methods and systems for a non-disruptive planned failover from a primary copy of data at a primary storage system to a mirror copy of the data at a cross-site secondary storage system without using an external mediator
WO2016070375A1 (zh) 一种分布式存储复制***和方法
EP2902922B1 (en) Distributed file system and data backup method for distributed file system
CN110581782B (zh) 一种容灾数据的处理方法、装置及***
CN104158693A (zh) 数据服务的容灾备份方法和***
US11403319B2 (en) High-availability network device database synchronization
WO2017000832A1 (zh) Mac地址的同步方法、装置及***
CN112003716A (zh) 一种数据中心双活实现方法
WO2020057445A1 (zh) 一种通信***、方法及装置
WO2021057438A1 (zh) 主备切换方法、装置、bras设备及存储介质
WO2015154620A1 (zh) OpenFlow多控制器***及其管理方法
CN105069152A (zh) 数据处理方法及装置
US20160100006A1 (en) Transferring Data Between Sites
WO2017071384A1 (zh) 报文处理的方法及装置
CN106855869B (zh) 一种实现数据库高可用的方法、装置和***
CN103428288A (zh) 基于分区状态表和协调节点的副本同步方法
CN110704541A (zh) 一种Redis集群多数据中心高可用的分布式方法及架构
US20240054054A1 (en) Data Backup Method and System, and Related Device
CN101420327B (zh) 平滑重启过程中避免路由振荡的方法及平滑重启设备
WO2015196692A1 (zh) 一种云计算***以及云计算***的处理方法和装置
CN112231399A (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: 16789225

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: 16789225

Country of ref document: EP

Kind code of ref document: A1