[go: up one dir, main page]

CN1889464A - Method and apparatus for realizing communication take-over and control - Google Patents

Method and apparatus for realizing communication take-over and control Download PDF

Info

Publication number
CN1889464A
CN1889464A CNA2006100995123A CN200610099512A CN1889464A CN 1889464 A CN1889464 A CN 1889464A CN A2006100995123 A CNA2006100995123 A CN A2006100995123A CN 200610099512 A CN200610099512 A CN 200610099512A CN 1889464 A CN1889464 A CN 1889464A
Authority
CN
China
Prior art keywords
processing unit
message
standby
standby processing
main
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.)
Granted
Application number
CNA2006100995123A
Other languages
Chinese (zh)
Other versions
CN100420207C (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100995123A priority Critical patent/CN100420207C/en
Publication of CN1889464A publication Critical patent/CN1889464A/en
Priority to PCT/CN2007/070199 priority patent/WO2008014696A1/en
Application granted granted Critical
Publication of CN100420207C publication Critical patent/CN100420207C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/552Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections

Landscapes

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

Abstract

A communication receiving device is featured as receiving route protocol message from neighbor route simultaneously by master processing unit and back-up processing unit i.e. carrying out operation in parallel way by master processing unit and back-up processing unit for raising operation efficient of said device, maintaining local data by both master processing unit and back-up processing unit according to protocol message for ensuring synchronous update of local data on both master processing unit and back-up processing unit.

Description

一种实现通信接管的方法及装置A method and device for realizing communication takeover

技术领域technical field

本发明涉及通信技术领域,具体涉及一种实现通信接管的方法及装置。The present invention relates to the field of communication technology, in particular to a method and device for realizing communication takeover.

背景技术Background technique

高可用性(HA:High Availability)是指一个产品或系统对客户持续服务的能力,它通常通过平均修复时间MTTR(Mean Time to Repair)和平均故障间隔时间MTBF(Mean Time Between Failures)两个指标进行标识。MTTR是指一个组件或设备从故障到恢复正常所需的平均时间,广义的MTTR涉及到备件管理和客户服务,是设备维护合同中的一项重要指标;MTBF是指一个组件或设备的无故障运行平均时间,也就是用户能容忍的故障间隔时间,通常以小时为单位。High Availability (HA: High Availability) refers to the ability of a product or system to continuously serve customers. It is usually carried out through the two indicators of mean time to repair MTTR (Mean Time to Repair) and mean time between failures MTBF (Mean Time Between Failures) logo. MTTR refers to the average time required for a component or equipment to return to normal from failure. In a broad sense, MTTR involves spare parts management and customer service, and is an important indicator in equipment maintenance contracts; MTBF refers to the failure-free performance of a component or equipment. The average running time, which is the time between failures that the user can tolerate, is usually measured in hours.

现有的路由器中一般采用通信接管方案来实现系统的高可用性。该系统一般是采用双主板设计,其中一块为处于工作状态的主用主板(AMB),另一块为处于备份状态的备用主板(SMB)。主用主板运行系统软件,包括路由协议、路由表维护等。所有路由协议与邻居路由器互相收发报文并进行处理。备用主板各路由协议也启动,进行报文接收和处理。主用主板将各路由协议如:开放最短路径优先(OSPF:Open Shortest Path First)路由协议等数据备份到备用主板。当主用主板失效时,备用主板立即接管失效主板成为主用主板,这个过程称作“倒换”,这种倒换过程也可由操作人员通过命令进行驱动。Existing routers generally adopt a communication takeover solution to achieve high availability of the system. The system generally adopts a dual mainboard design, one of which is the active mainboard (AMB) in working state, and the other is the standby mainboard (SMB) in backup state. The main motherboard runs system software, including routing protocols and routing table maintenance. All routing protocols send and receive packets to and from neighboring routers and process them. The routing protocols of the standby mainboard are also started to receive and process messages. The active main board backs up the data of various routing protocols such as Open Shortest Path First (OSPF: Open Shortest Path First) routing protocol to the standby main board. When the active main board fails, the standby main board immediately takes over the failed main board and becomes the active main board. This process is called "switching", and this switching process can also be driven by the operator through commands.

如何保证倒换后的路由器具有相同的链路状态数据库成为一个世界难题,为解决这一问题,下面介绍现有技术中的两个解决方案:How to ensure that the switched routers have the same link state database has become a worldwide problem. In order to solve this problem, two solutions in the prior art are introduced below:

方案一实现通信接管的方法是:包括:提供具有主用处理单元的路由器;将一备用处理单元连接至所述路由器;将主用处理单元连接至所述备用处理单元后,将网络协议信息从所述主用处理单元发送至备用处理单元,以在所述备用处理单元中进行与所述主用处理单元的链路配置和链路协议状态的同步;当检测到在所述主用处理单元中有故障时,将所述路由器切换到所述备用处理单元。The method for realizing the communication takeover of the first scheme includes: providing a router with a main processing unit; connecting a backup processing unit to the router; after connecting the main processing unit to the backup processing unit, transferring the network protocol information from the The active processing unit sends to the standby processing unit to synchronize the link configuration and link protocol status with the active processing unit in the standby processing unit; When there is a fault in the router, switch the router to the standby processing unit.

该方案的主要思想是,发送给路由器的协议报文,先发送到主用处理单元,主用处理单元根据该报文更新本地数据并进行相应的处理,主用处理单元再发送所述协议报文给备用处理单元,备用处理单元再根据所述报文更新本地数据。该方案需要为OSPF路由器的每一个区域创建两个隐藏接口:一个在主用处理单元,一个在备用处理单元。主用处理单元和备用处理单元的隐藏接口通过一个隐藏通道连接,通过该隐藏通道实现链路状态数据从主用处理单元备份到备用处理单元。The main idea of this solution is that the protocol message sent to the router is first sent to the main processing unit, the main processing unit updates the local data according to the message and performs corresponding processing, and then the main processing unit sends the protocol message The message is sent to the standby processing unit, and the standby processing unit updates the local data according to the message. This solution needs to create two hidden interfaces for each area of the OSPF router: one in the active processing unit and one in the standby processing unit. The hidden interfaces of the active processing unit and the standby processing unit are connected through a hidden channel, through which link state data is backed up from the active processing unit to the standby processing unit.

上述实现通信接管的方法存在一定的缺陷:There are certain defects in the above method of realizing communication takeover:

1)当主用处理单元收到一个邻居路由器的链路状态通告(LSA:Link StateAdvertisement)报文,应答了该邻居路由器而未来得及洪泛该LSA报文到备用处理单元时,如果此时主用处理单元和备用处理单元倒换,那么路由器将失去这个LSA报文。如果某个邻居路由器必须途径这个正在倒换的路由器才能连接到网络的其他部分,那么该邻居路由器也将失去这个LSA报文。由于以上原因,所以上述现有的方法可靠性较低,容易造成主用处理单元与备用处理单元的链路状态数据库无法保持同步的情况,使数据丢失,系统性能下降。1) When the active processing unit receives a Link State Advertisement (LSA: Link State Advertisement) message from a neighboring router, and responds to the neighboring router and cannot flood the LSA message to the standby processing unit in the future, if the active processing unit at this time If the processing unit and the standby processing unit are switched, the router will lose the LSA message. If a neighbor router can connect to other parts of the network through the router being switched, the neighbor router will also lose the LSA message. Due to the above reasons, the reliability of the above-mentioned existing method is low, and the link state databases of the active processing unit and the standby processing unit may not be kept in sync easily, resulting in data loss and system performance degradation.

2)所有接收的链路状态通告报文都要经过主用处理单元和备用处理单元之间的进程间通信(IPC:Inter-Process Communication)连接,造成大量的IPC带宽资源被占用,使系统性能下降。2) All received link status notification messages must be connected through the inter-process communication (IPC: Inter-Process Communication) connection between the main processing unit and the standby processing unit, causing a large amount of IPC bandwidth resources to be occupied, and system performance decline.

下面提供现有技术方案二的方法。该方法通过备用处理单元先接收报文并根据接收到的报文维护本地数据,可以解决上述方案一方法在倒换过程中可能丢失报文的问题。The method of the second prior art solution is provided below. In this method, the standby processing unit first receives the message and maintains the local data according to the received message, which can solve the problem that the message may be lost during the switching process of the above solution 1 method.

方案二是基于报文镜像机制的通信接管方法,它依赖于网际协议(IP:Internet Protocol)栈提供的报文镜像机制。在基于报文镜像机制下接收的报文是首先抵达备用处理单元,然后备用处理单元将所述报文复制一份到主用处理单元;在基于报文镜像机制下发送的报文是,主用处理单元首先将报文发送到备用处理单元,由备用处理单元真正发出;当检测到在所述主用处理单元中有故障时,将所述路由器切换到所述备用处理单元。The second scheme is a communication takeover method based on the message mirroring mechanism, which relies on the message mirroring mechanism provided by the Internet Protocol (IP: Internet Protocol) stack. The message received under the message mirroring mechanism first arrives at the standby processing unit, and then the standby processing unit copies the message to the main processing unit; the message sent under the message mirroring mechanism is that the main The active processing unit first sends the message to the standby processing unit, and the standby processing unit actually sends the message; when a failure is detected in the active processing unit, the router is switched to the standby processing unit.

下面对上述现有方案二实现通信接管的方法进行具体描述:The method for realizing the communication takeover of the above-mentioned existing scheme 2 is described in detail below:

首先,备用处理单元启动时,备用处理单元从主用处理单元批量备份链路状态。然后,备用处理单元通过结合主用处理单元的明确信息,发送的协议报文以及接收的协议报文来维持和更新链路状态。First, when the standby processing unit is started, the standby processing unit backs up link states in batches from the active processing unit. Then, the standby processing unit maintains and updates the link state by combining the explicit information of the active processing unit, the sent protocol message and the received protocol message.

所有的接收OSPF协议报文首先到达备用处理单元,然后由备用处理单元发送到主用处理单元;所有的发送OSPF协议报文首先由主用处理单元发送到备用处理单元,然后由备用处理单元发送到相邻的OSPF路由器。All received OSPF protocol packets first arrive at the standby processing unit, and then are sent by the standby processing unit to the active processing unit; all outgoing OSPF protocol packets are first sent by the active processing unit to the standby processing unit, and then sent by the standby processing unit to an adjacent OSPF router.

在接收和发送的过程中,备用处理单元是一个被动的信息消费者。这些信息来自主用处理单元以及网络中的其它路由器。备用处理单元既不产生任何协议报文,也不执行最短路径优先算法(SPF:Shortest Path First)计算路由。During the receiving and sending process, the standby processing unit is a passive information consumer. This information comes from the master processing unit and other routers in the network. The standby processing unit neither generates any protocol packets nor executes the shortest path first algorithm (SPF: Shortest Path First) to calculate routes.

方案二实现通信接管的方法也存在一定的缺陷:Solution 2 also has certain defects in the method of realizing communication takeover:

1)所有协议报文都要经过主用处理单元和备用处理单元之间的IPC连接传输,占用了大量的IPC带宽资源,使系统性能下降。1) All protocol messages must be transmitted through the IPC connection between the main processing unit and the backup processing unit, which occupies a large amount of IPC bandwidth resources and degrades system performance.

2)处理每一个OSPF协议报文都要一些额外的步骤。每一个接收的OSPF协议报文都要经过一个额外的从备用处理单元到主用处理单元的内部步骤。每一个发送的OSPF协议报文都要途经一个额外的从主用处理单元到备用处理单元的内部步骤。这使发送和接收的效率降低。2) Some additional steps are required to process each OSPF protocol message. Each received OSPF protocol message has to go through an additional internal step from the standby processing unit to the active processing unit. Every sent OSPF protocol message has to go through an additional internal step from the active processing unit to the standby processing unit. This reduces the efficiency of transmission and reception.

3)依赖于IP栈或操作系统提供报文镜像机制。而一般的IP栈不提供报文镜像机制。这使实现起来难度较大,对系统的要求高,通用性不好。3) Depending on the IP stack or the operating system to provide a packet mirroring mechanism. However, the general IP stack does not provide a packet mirroring mechanism. This makes it more difficult to realize, has high requirements on the system, and has poor versatility.

发明内容Contents of the invention

本发明的目的在于提供一种实现通信接管的方法及装置,应用于通信技术领域,该方法及装置可以节约大量的IPC带宽资源,使系统运行更高效、更稳定可靠。The purpose of the present invention is to provide a method and device for realizing communication takeover, which are applied in the field of communication technology. The method and device can save a large amount of IPC bandwidth resources, and make the system run more efficiently, more stably and reliably.

为达到本发明的目的,所采取的技术方案是:一种实现通信接管的方法,包括:主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文;主用处理单元和备用处理单元根据所述报文维护各自的本地数据;当主用处理单元失效时,备用处理单元接管主用处理单元通信。In order to achieve the purpose of the present invention, the technical solution adopted is: a method for realizing communication takeover, comprising: the main processing unit and the standby processing unit synchronously receive routing protocol messages from neighbor routers; the main processing unit and the standby processing The units maintain their respective local data according to the message; when the main processing unit fails, the backup processing unit takes over the communication of the main processing unit.

优选地,所述主用处理单元和备用处理单元根据所述报文维护各自的本地数据的过程包括:备用处理单元根据所述报文维护备用处理单元本地数据;备用处理单元发送收到所述报文的响应消息给主用处理单元;主用处理单元收到所述响应消息,根据所述报文维护主用处理单元本地数据。Preferably, the process of maintaining local data of the main processing unit and the backup processing unit according to the message includes: the backup processing unit maintains the local data of the backup processing unit according to the message; the backup processing unit sends and receives the The response message of the message is sent to the main processing unit; the main processing unit receives the response message, and maintains the local data of the main processing unit according to the message.

优选地,若主用处理单元收到所述报文后,在预置时间之内未收到来自备用处理单元收到所述报文的响应消息,则发送所述报文给备用处理单元并产生一个报警信息。Preferably, if the main processing unit does not receive a response message from the standby processing unit for receiving the message within a preset time after receiving the message, then send the message to the standby processing unit and A warning message is generated.

优选地,若主用处理单元收到来自备用处理单元收到所述报文的响应消息后,在预置时间之内未收到所述报文,则所述方法进一步包括:主用处理单元向备用处理单元请求所述报文;备用处理单元发送所述报文给主用处理单元,并产生一个报警信息。Preferably, if the main processing unit does not receive the message within a preset time after receiving the response message from the backup processing unit, the method further includes: the main processing unit Request the message from the standby processing unit; the standby processing unit sends the message to the main processing unit, and generates an alarm message.

优选地,所述路由协议为开放最短路径优先路由协议;所述报文为链路状态通告报文;所述主用处理单元和备用处理单元根据链路状态通告报文维护各自的本地数据的过程包括:备用处理单元根据所述链路状态通告报文更新备用处理单元本地链路状态数据库;备用处理单元发送收到该链路状态通告报文的响应消息给主用处理单元;主用处理单元收到响应消息,根据所述链路状态通告报文更新主用处理单元本地链路状态数据库;运行最短路径优先算法计算出到达目的地的最佳路径并根据这些路径更新路由表和转发表。Preferably, the routing protocol is an open shortest path first routing protocol; the message is a link state notification message; the main processing unit and the backup processing unit maintain their respective local data according to the link state notification message The process includes: the standby processing unit updates the local link state database of the standby processing unit according to the link state notification message; the standby processing unit sends a response message to the main processing unit after receiving the link state notification message; the main processing unit The unit receives the response message, updates the local link state database of the main processing unit according to the link state notification message; runs the shortest path first algorithm to calculate the best path to the destination and updates the routing table and forwarding table according to these paths .

优选地,所述主用处理单元收到备用处理单元收到该链路状态通告报文的响应消息后,给所述邻居路由器发送收到所述链路状态通告报文的应答报文。Preferably, the active processing unit sends a response message to the neighbor router after receiving the response message of the link state notification message received by the standby processing unit.

优选地,备用处理单元根据链路状态通告报文维护本地数据的过程进一步包括:对于每一个接收到的链路状态通告报文,如果备用处理单元确定本地路由器将所述报文向某个邻居路由器进行洪泛,则备用处理单元将所述链路状态通告报文放到备用处理单元本地记录的该邻居路由器的重传表里;当备用处理单元接收到来自该邻居路由器对这个链路状态通告报文的应答报文时,将所述链路状态通告报文从本地记录的该邻居路由器的重传表中删除。Preferably, the process of maintaining local data by the standby processing unit according to the link state notification message further includes: for each received link state notification message, if the standby processing unit determines that the local router sends the message to a neighbor When the router floods, the backup processing unit puts the link state notification message into the retransmission table of the neighbor router locally recorded by the backup processing unit; When the reply message of the notification message is sent, the link state notification message is deleted from the retransmission table of the neighbor router recorded locally.

优选地,所述路由协议为开放最短路径优先路由协议;所述报文为连接报文;所述备用处理单元根据连接报文维护本地数据的过程包括:备用处理单元根据所述连接报文维护备用处理单元本地记录的所述邻居路由器的状态信息。Preferably, the routing protocol is an open shortest path first routing protocol; the message is a connection message; the process of maintaining local data by the backup processing unit according to the connection message includes: the backup processing unit maintains the local data according to the connection message The state information of the neighboring router locally recorded by the standby processing unit.

优选地,所述路由协议为开放最短路径优先路由协议;所述报文为数据库描述报文;所述主用处理单元和备用处理单元根据数据库描述报文维护各自的本地数据的过程包括:备用处理单元根据所述数据库描述报文维护备用处理单元本地记录的所述邻居路由器的请求表;备用处理单元发送收到该数据库描述报文的响应消息给主用处理单元;主用处理单元收到所述响应消息,根据所述数据库描述报文维护本地记录的所述邻居路由器的请求表以及所述邻居路由器的状态信息并且为该数据库描述报文给所述邻居路由器发送收到该数据库描述报文的应答报文。Preferably, the routing protocol is an open shortest path first routing protocol; the message is a database description message; the main processing unit and the backup processing unit maintain their own local data according to the database description message. The process includes: standby The processing unit maintains the request table of the neighbor router locally recorded by the backup processing unit according to the database description message; the backup processing unit sends a response message receiving the database description message to the main processing unit; the main processing unit receives The response message, according to the database description message, maintains the locally recorded request table of the neighbor router and the status information of the neighbor router, and sends the database description message to the neighbor router after receiving the database description message. response message to the text.

优选地,所述维护备用处理单元本地记录的所述邻居路由器的请求表的过程包括:检查该数据库描述报文中的每一个链路状态通告描述信息是否比备用处理单元链路状态数据库中的对应的链路状态通告新,若是则备用处理单元将所述链路状态通告描述信息放到该邻居路由器的请求表中;当备用处理单元收到来自所述邻居路由器的所述链路状态通告描述信息对应的链路状态通告报文时,将所述链路状态通告描述信息从所述邻居路由器的请求表中删除。Preferably, the process of maintaining the request table of the neighbor router locally recorded by the standby processing unit includes: checking whether each link state advertisement description information in the database description message is higher than that in the link state database of the standby processing unit The corresponding link state notification is new, if the standby processing unit puts the description information of the link state notification into the request table of the neighbor router; when the standby processing unit receives the link state notification from the neighbor router When describing the link state advertisement message corresponding to the information, the link state advertisement description information is deleted from the request table of the neighbor router.

优选地,备用处理单元启动时,将主用处理单元的数据备份到备用处理单元完成初始数据同步。Preferably, when the standby processing unit is started, the data of the active processing unit is backed up to the standby processing unit to complete the initial data synchronization.

优选地,完成初始数据同步后,如果主用处理单元发生局部状态变化,则传送所述局部状态变化信息给备用处理单元;所述备用处理单元的本地数据还根据所述局部变化信息来维护。Preferably, after the initial data synchronization is completed, if a local state change occurs in the active processing unit, the local state change information is transmitted to the standby processing unit; the local data of the standby processing unit is also maintained according to the local change information.

优选地,所述局部状态变化信息包括:配置变化信息、接口状态变化信息和邻居路由器状态变化信息。Preferably, the local state change information includes: configuration change information, interface state change information, and neighbor router state change information.

优选地,当软硬件故障触发主用处理单元失效时,备用处理单元接管主用处理单元通信的过程包括步骤:备用处理单元从接口层读入所有网络接口信息;进行主备切换,备用处理单元代替主用处理单元;对于任何一个状态不为满的邻居路由器,备用处理单元与其重新建立相邻关系;启动相关定时器;根据配置引入其他协议的路径并且重新产生源于本地路由器的链路状态通告报文;备用处理单元运行最短路径优先算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表。Preferably, when a hardware or software failure triggers the failure of the main processing unit, the process for the standby processing unit to take over the communication of the main processing unit includes the following steps: the standby processing unit reads in all network interface information from the interface layer; performs active-standby switching, and the standby processing unit Replace the main processing unit; for any neighbor router whose state is not full, the standby processing unit re-establishes the adjacent relationship with it; starts the relevant timer; introduces the path of other protocols according to the configuration and regenerates the link state from the local router Notify the message; the standby processing unit runs the shortest path first algorithm to calculate the best path to the destination and updates the routing table and forwarding table according to these paths.

优选地,当人工启动倒换触发主用处理单元失效时,备用处理单元接管主用处理单元通信的过程包括:备用处理单元从接口层读入所有网络接口信息;等待所有邻居路由器状态成为满;进行主备切换,备用处理单元代替主用处理单元;备用处理单元用从主用处理单元得到的定时器的剩余时间设置并启动相关的定时器;根据配置引入其他协议的路径并且重新产生源于本地路由器的链路状态通告报文;备用处理单元运行最短路径优先算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表。Preferably, when the manual switching triggers the failure of the main processing unit, the process of the backup processing unit taking over the communication of the main processing unit includes: the backup processing unit reads in all network interface information from the interface layer; waits for the status of all neighbor routers to become full; Active-standby switching, the standby processing unit replaces the main processing unit; the standby processing unit uses the remaining time of the timer obtained from the main processing unit to set and start the relevant timer; according to the configuration, the path of other protocols is introduced and regenerated from the local Router's link state notification message; the standby processing unit runs the shortest path first algorithm to calculate the best path to the destination and updates the routing table and forwarding table according to these paths.

优选地,等待预置的时间后,如果仍有邻居路由器状态不能成为满;则进行步骤:进行主备切换,备用处理单元代替主用处理单元;对于任何一个状态不为满的邻居路由器,备用处理单元与其重新建立相邻关系;启动相关定时器;根据配置引入其他协议的路径并且重新产生源于本地路由器的链路状态通告报文;备用处理单元运行最短路径优先算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表。Preferably, after waiting for the preset time, if there is still a neighbor router state that cannot become full; then carry out the steps: carry out active-standby switching, and the standby processing unit replaces the main processing unit; for any neighbor router that is not full in state, the standby The processing unit re-establishes the adjacent relationship with it; starts the relevant timer; introduces the path of other protocols according to the configuration and regenerates the link state notification message from the local router; the standby processing unit runs the shortest path first algorithm to calculate the route to the destination. optimal paths and update routing and forwarding tables based on these paths.

本发明提供的一种实现通信接管的装置,包括报文接收单元、主用处理单元、备用处理单元和主备控制单元;报文接收单元用于接收来自邻居路由器的路由协议报文,并向主用处理单元和备用处理单元同时发送所述报文;主用处理单元和备用处理单元根据所述报文维护各自的本地数据;主备控制单元,用于控制备用处理单元接管主用处理单元通信。A device for realizing communication takeover provided by the present invention includes a message receiving unit, a main processing unit, a standby processing unit and a main/standby control unit; the message receiving unit is used to receive routing protocol messages from neighboring routers, and send The main processing unit and the standby processing unit send the message at the same time; the main processing unit and the standby processing unit maintain their respective local data according to the message; the main and standby control unit is used to control the standby processing unit to take over the main processing unit communication.

优选地,所述主备控制单元包括:接管控制单元,用于当主用处理单元失效时,控制备用处理单元接管主用处理单元通信;所述主备控制单元还包括数据备份控制单元,用于控制将主用处理单元的数据备份到备用处理单元。Preferably, the active/standby control unit includes: a takeover control unit, configured to control the standby processing unit to take over the communication of the active processing unit when the active processing unit fails; the active/standby control unit also includes a data backup control unit, configured to Controlling the backup of the data of the active processing unit to the standby processing unit.

优选地,所述备用处理单元包括:备用接收单元,用于接收报文接收单元发送的协议报文;备用数据维护单元,用于根据备用接收单元接收的报文维护本地数据;响应消息发送单元,用于在备用数据维护单元根据接收的报文维护本地数据后,发送收到所述报文的响应消息给响应消息接收单元;所述主用处理单元包括:主用接收单元,用于接收报文接收单元发送的协议报文;响应消息接收单元,接收来自响应消息发送单元发送的收到报文的响应消息;主用数据维护单元,用于在响应消息接收单元收到所述响应消息后根据主用接收单元接收的报文维护本地数据。Preferably, the backup processing unit includes: a backup receiving unit, configured to receive the protocol message sent by the message receiving unit; a backup data maintenance unit, used to maintain local data according to the message received by the backup receiving unit; a response message sending unit After the backup data maintenance unit maintains the local data according to the received message, it sends a response message of receiving the message to the response message receiving unit; the main processing unit includes: a main receiving unit for receiving The protocol message sent by the message receiving unit; the response message receiving unit, receiving the response message from the received message sent by the response message sending unit; the main data maintenance unit, used to receive the response message at the response message receiving unit Afterwards, the local data is maintained according to the message received by the main receiving unit.

优选地,所述主用处理单元还包括:主用报文转发单元,用于在主用接收单元收到报文后,当在预置时间内响应消息接收单元未收到响应消息发送单元发送的收到所述报文的响应消息时,发送所述报文给备用接收单元,并向用户产生一个报警信息;所述备用接收单元还用于接收主用报文转发单元转发的报文。Preferably, the main processing unit further includes: a main message forwarding unit, configured to send the message to the sending unit when the response message receiving unit does not receive the response message within a preset time after the main receiving unit receives the message When receiving the response message of the message, send the message to the standby receiving unit, and generate an alarm message to the user; the standby receiving unit is also used to receive the message forwarded by the main message forwarding unit.

优选地,所述主用处理单元还包括:请求单元,用于在响应消息接收单元收到来自响应消息发送单元发送的收到报文的响应消息后,当在预置时间之内主用接收单元未收到报文接收单元发送来的所述报文时,向备用报文转发单元请求所述报文;所述备用处理单元还包括:备用报文转发单元,用于在收到主用处理单元的请求后,发送请求单元请求的报文给主用接收单元,并产生一个报警信息;所述主用接收单元还用于接收备用报文转发单元转发的报文。Preferably, the main processing unit further includes: a request unit, configured to, after the response message receiving unit receives a response message from the received message sent by the response message sending unit, when the main processing unit receives within a preset time When the unit does not receive the message sent by the message receiving unit, it requests the message from the standby message forwarding unit; the standby processing unit also includes: a standby message forwarding unit, which is used to After processing the request of the unit, send the message requested by the requesting unit to the main receiving unit, and generate an alarm message; the main receiving unit is also used to receive the message forwarded by the standby message forwarding unit.

采用上述技术方案,本发明有益的技术效果在于:Adopt above-mentioned technical scheme, the beneficial technical effect of the present invention is:

1)本发明通过主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文,主用处理单元和备用处理单元并行工作的方式,避免了现有技术中,所有的协议报文都要经过主用处理单元和备用处理单元之间的IPC连接,有效地解决了现有技术中大量IPC带宽被占用,资源浪费的问题,提高了系统运行的效率。1) The present invention synchronously receives the routing protocol message from the neighbor router through the main processing unit and the standby processing unit, and the parallel working mode of the main processing unit and the standby processing unit avoids all protocol messages in the prior art Through the IPC connection between the main processing unit and the standby processing unit, the problems of a large amount of IPC bandwidth being occupied and resource waste in the prior art are effectively solved, and the efficiency of system operation is improved.

2)本发明在通过主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文,主用处理单元和备用处理单元并行工作的基础上,备用处理单元根据协议报文维护本地数据后,通过发送短小的响应消息给主用处理单元,主用处理单元再根据所述协议报文维护本地数据,可以确保主用处理单元和备用处理单元本地数据的同步更新并且一致,使倒换过程的可靠性更高。2) The present invention synchronously receives the routing protocol message from the neighbor router through the main processing unit and the standby processing unit, on the basis that the main processing unit and the standby processing unit work in parallel, after the standby processing unit maintains the local data according to the protocol message , by sending a short response message to the active processing unit, and the active processing unit maintains the local data according to the protocol message, it can ensure that the local data of the active processing unit and the standby processing unit are updated synchronously and consistent, so that the switching process Higher reliability.

3)本发明不依赖于IP栈或操作系统的任何特殊改进,具有普遍的适用性。3) The present invention does not depend on any special improvement of IP stack or operating system, and has universal applicability.

附图说明Description of drawings

下面通过具体实施方式并结合附图对本发明作进一步的详细说明。The present invention will be further described in detail below through specific embodiments and in conjunction with the accompanying drawings.

图1是本发明实施例一实现通信接管的方法的流程图;FIG. 1 is a flowchart of a method for realizing communication takeover according to Embodiment 1 of the present invention;

图2是本发明实施例二实现通信接管的方法的流程图;FIG. 2 is a flowchart of a method for realizing communication takeover according to Embodiment 2 of the present invention;

图3是本发明实施例三实现通信接管的方法的流程图;FIG. 3 is a flowchart of a method for implementing communication takeover according to Embodiment 3 of the present invention;

图4是本发明实施例四实现通信接管的方法的流程图;FIG. 4 is a flowchart of a method for realizing communication takeover according to Embodiment 4 of the present invention;

图5是本发明方法应用OSPF协议时无计划倒换的流程图;Fig. 5 is the flow chart of unplanned switching when the inventive method applies OSPF agreement;

图6是本发明方法应用OSPF协议时有计划倒换的流程图;Fig. 6 is a flow chart of planned switching when the method of the present invention is applied to the OSPF protocol;

图7是本发明实施例五实现通信接管的装置的结构示意图;7 is a schematic structural diagram of a device for implementing communication takeover according to Embodiment 5 of the present invention;

图8是本发明实施例六实现通信接管的装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for realizing communication takeover according to Embodiment 6 of the present invention.

具体实施方式Detailed ways

本发明的目的在于提供一种实现通信接管的方法及装置,其核心思想是本发明通过主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文,主用处理单元和备用处理单元并行工作的方式,避免了现有技术中,所有的协议报文都要经过主用处理单元和备用处理单元之间的IPC连接,有效地解决了现有技术中大量IPC带宽被占用,资源浪费的问题,提高了系统运行的效率。同时本发明在通过主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文,主用处理单元和备用处理单元并行工作的基础上,备用处理单元根据协议报文维护本地数据后,通过发送短小的响应消息给主用处理单元,主用处理单元收到所述响应消息后,再根据所述协议报文维护本地数据,可以确保主用处理单元和备用处理单元本地数据的同步更新并且一致。下面对本发明提供的一种实现通信接管的方法及装置进行详细描述。The purpose of the present invention is to provide a method and device for realizing communication takeover, the core idea of which is that the present invention synchronously receives routing protocol messages from neighboring routers through the main processing unit and the standby processing unit, and the main processing unit and the standby processing unit The way of working in parallel avoids that in the prior art, all protocol messages have to go through the IPC connection between the main processing unit and the backup processing unit, effectively solving the problem that a large amount of IPC bandwidth is occupied and resources are wasted in the prior art problem, improving the efficiency of system operation. Simultaneously, the present invention synchronously receives the routing protocol message from the neighbor router through the main processing unit and the standby processing unit, on the basis that the main processing unit and the standby processing unit work in parallel, after the standby processing unit maintains the local data according to the protocol message, By sending a short response message to the main processing unit, after receiving the response message, the main processing unit maintains the local data according to the protocol message, which can ensure the synchronous update of the local data of the main processing unit and the standby processing unit And consistent. A method and device for implementing communication takeover provided by the present invention will be described in detail below.

实施例一、一种实现通信接管的方法,流程图如图1所示,包括:Embodiment 1. A method for realizing communication takeover, the flowchart of which is shown in FIG. 1 , including:

A1,主用处理单元和备用处理单元同步接收来自邻居路由器的路由协议报文;A1, the active processing unit and the standby processing unit receive routing protocol packets from neighboring routers synchronously;

本发明中,所述主用处理单元和备用处理单元同步接收路由协议报文可以是先由报文接收单元接收来自邻居路由器的路由协议报文后,以组播方式向主用处理单元和备用处理单元同时发送,主用处理单元和备用处理单元被看作是组播组内的成员。In the present invention, the synchronous reception of the routing protocol message by the main processing unit and the standby processing unit may be that the message receiving unit first receives the routing protocol message from the neighbor router, and sends the message to the main processing unit and the standby processing unit in a multicast manner. The processing units send at the same time, and the active processing unit and the standby processing unit are regarded as members of the multicast group.

本实施例中,所述路由协议为OSPF协议,同样的,本发明方法还可以应用于其他路由协议,本方法强调的是实现对通信功能的冗余备份,具体的路由协议不构成对本发明的限制。In this embodiment, the routing protocol is the OSPF protocol. Similarly, the method of the present invention can also be applied to other routing protocols. What this method emphasizes is to realize the redundant backup of the communication function, and the specific routing protocol does not constitute a limitation to the present invention. limit.

本实施例中,所述报文为链路状态通告(LSA:Link State Advertisement)报文,可以理解的是,在OSPF路由协议下,所述报文还可以是连接(Hello)报文或数据库描述(DD:Database Description)报文或链路状态请求(Link StateRequest)报文或链路状态应答(Link State Ack)报文。In this embodiment, the message is a Link State Advertisement (LSA: Link State Advertisement) message. It can be understood that, under the OSPF routing protocol, the message can also be a connection (Hello) message or a database Description (DD: Database Description) message or link state request (Link StateRequest) message or link state response (Link State Ack) message.

可以理解的是,本发明需要预先将主用处理单元和备用处理单元的初始数据同步。此处强调主用处理单元和备用处理单元在同步接收来自邻居路由器的协议报文之前具有相同的本地数据。本发明同步主用处理单元和备用处理单元的本地数据可以是操作人员预先进行同步,可以理解的是,同步的方式还可以是在备用处理单元启动时,将主用处理单元的数据批量备份到备用处理单元。It can be understood that the present invention needs to synchronize the initial data of the active processing unit and the standby processing unit in advance. It is emphasized here that the active processing unit and the standby processing unit have the same local data before synchronously receiving protocol packets from neighboring routers. In the present invention, the synchronization of the local data of the main processing unit and the backup processing unit can be performed by the operator in advance. It can be understood that the synchronization method can also be that the data of the main processing unit is backed up in batches when the backup processing unit is started. Spare handling unit.

其中,主用处理单元和备用处理单元是对路由协议报文具有相同处理能力的软件或硬件模块。所述同步的本地数据可以包括配置信息、接口信息、邻居路由器状态信息和链路状态信息等用于路由控制的数据。Wherein, the active processing unit and the standby processing unit are software or hardware modules that have the same processing capability for routing protocol packets. The synchronized local data may include data for routing control such as configuration information, interface information, neighbor router state information, and link state information.

A2,主用处理单元和备用处理单元根据所述报文维护各自的本地数据;A2, the active processing unit and the standby processing unit maintain their respective local data according to the message;

主用处理单元和备用处理单元对本地数据的维护是对所述报文承载的信息进行分析,根据分析的结果对本地数据进行维护,例如:维护本地链路状态数据库、邻居路由器状态或请求表等。The maintenance of local data by the main processing unit and the standby processing unit is to analyze the information carried by the message, and maintain the local data according to the analysis results, for example: maintain the local link state database, neighbor router status or request table wait.

A3,当主用处理单元失效时,备用处理单元接管主用处理单元通信。A3. When the active processing unit fails, the standby processing unit takes over the communication of the active processing unit.

本发明中,所述主用处理单元的失效由软硬件故障触发或人工启动倒换触发或预置一定时间间隔定时触发。In the present invention, the failure of the primary processing unit is triggered by software and hardware faults, manual switchover, or a preset time interval.

本实施例中,所述备用处理单元接管主用处理单元通信的倒换过程可以采用现有的常规实现方式,此处不在赘述。In this embodiment, the switching process in which the standby processing unit takes over the communication of the active processing unit may adopt an existing conventional implementation manner, which will not be repeated here.

实施例一通过报文接收单元同时向主用处理单元和备用处理单元发送协议报文,主用处理单元和备用处理单元并行工作的方式,避免了现有技术中,所有的协议报文都要经过主用处理单元和备用处理单元之间的IPC连接,有效地解决了现有技术中大量IPC带宽被占用,资源浪费的问题,提高了系统运行的效率。Embodiment 1 Through the message receiving unit to send protocol messages to the main processing unit and the standby processing unit at the same time, the main processing unit and the standby processing unit work in parallel, avoiding the need for all protocol messages in the prior art Through the IPC connection between the main processing unit and the standby processing unit, the problems of a large amount of IPC bandwidth occupied and resource waste in the prior art are effectively solved, and the efficiency of system operation is improved.

实施例二、一种实现通信接管的方法,流程图如图2所示,包括:Embodiment 2. A method for realizing communication takeover, the flowchart of which is shown in FIG. 2 , including:

B1,主用处理单元和备用处理单元同步接收来自邻居路由器的LSA报文;B1, the active processing unit and the standby processing unit receive LSA messages from neighboring routers synchronously;

本实施例中,接收的报文为OSPF路由协议下的LSA报文。In this embodiment, the received message is an LSA message under the OSPF routing protocol.

B2,备用处理单元根据所述LSA报文更新备用处理单元本地链路状态数据库;B2, the standby processing unit updates the local link state database of the standby processing unit according to the LSA message;

B3,备用处理单元发送收到该LSA报文的响应消息给主用处理单元;B3, the standby processing unit sends a response message of receiving the LSA message to the active processing unit;

B4,主用处理单元收到来自备用处理单元的响应消息;B4, the active processing unit receives a response message from the standby processing unit;

B5,主用处理单元根据所述LSA报文更新主用处理单元本地链路状态数据库;B5, the active processing unit updates the local link state database of the active processing unit according to the LSA message;

B6,主用处理单元向所述邻居路由器发送收到所述LSA报文的应答报文;B6. The main processing unit sends a response message for receiving the LSA message to the neighbor router;

B7,主用处理单元运行SPF算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表;B7, the main processing unit runs the SPF algorithm to calculate the best path to the destination and updates the routing table and forwarding table according to these paths;

B8,当主用处理单元失效时,备用处理单元接管主用处理单元通信。B8. When the active processing unit fails, the standby processing unit takes over the communication of the active processing unit.

本实施例中,步骤B5与步骤B4以及步骤B7与步骤B4并无绝对的时间顺序。具体的执行顺序并不能理解为对本发明的限制。此处强调的是步骤B6在步骤B4和步骤B5之后,也就是主用处理单元收到该LSA报文并且收到备用处理单元发送的收到该LSA报文的响应消息之后再给邻居路由器发送收到该LSA报文的应答报文。其目的是保证在主用处理单元和备用处理单元都收到邻居路由器发送过来的报文后再发送应答。在具有重传机制的网络中,若邻居路由器未收到所述应答报文,会再次发送所述LSA报文。In this embodiment, step B5 and step B4 and step B7 and step B4 have no absolute time sequence. The specific execution sequence should not be construed as a limitation of the present invention. It is emphasized here that step B6 is after step B4 and step B5, that is, after the active processing unit receives the LSA message and receives the response message of receiving the LSA message sent by the standby processing unit, it sends it to the neighbor router The response message of the LSA message is received. Its purpose is to ensure that both the active processing unit and the standby processing unit send a reply after receiving the message sent by the neighbor router. In a network with a retransmission mechanism, if the neighbor router does not receive the response message, it will send the LSA message again.

实施例二与实施例一的区别在于,在报文接收单元同时向主用处理单元和备用处理单元发送协议报文,主用处理单元和备用处理单元并行工作的基础上,备用处理单元收到协议报文后,通过发送短小的响应消息给主用处理单元,可以确保主用处理单元和备用处理单元本地数据的同步更新,使倒换过程的可靠性更高。The difference between the second embodiment and the first embodiment is that the message receiving unit sends the protocol message to the main processing unit and the backup processing unit at the same time, and on the basis that the main processing unit and the backup processing unit work in parallel, the backup processing unit receives After the protocol message, by sending a short response message to the active processing unit, it can ensure that the local data of the active processing unit and the standby processing unit are updated synchronously, so that the reliability of the switching process is higher.

对于每一个接收到的LSA报文,如果备用处理单元确定本地路由器将所述报文向某个邻居路由器进行洪泛,则备用处理单元将所述LSA报文放到本地记录的该邻居路由器的重传表里;当备用处理单元接收到来自该邻居路由器对这个LSA报文的应答报文时,将所述LSA报文从本地记录的该邻居路由器的重传表中删除。For each received LSA message, if the backup processing unit determines that the local router floods the message to a certain neighbor router, the backup processing unit puts the LSA message into the local record of the neighbor router. In the retransmission table: when the backup processing unit receives a response message from the neighbor router to the LSA message, delete the LSA message from the retransmission table of the neighbor router recorded locally.

实施例三、一种实现通信接管的方法,流程图如图3所示,包括:Embodiment 3. A method for realizing communication takeover, the flowchart of which is shown in FIG. 3 , including:

C1,主用处理单元和备用处理单元同步接收来自邻居路由器的Hello报文;C1, the active processing unit and the standby processing unit receive Hello packets from neighboring routers synchronously;

本实施例中,接收的报文为OSPF路由协议下的Hello报文;In this embodiment, the received message is a Hello message under the OSPF routing protocol;

C2,备用处理单元根据所述Hello报文维护备用处理单元本地记录的所述邻居路由器的状态信息;C2, the standby processing unit maintains the state information of the neighbor router locally recorded by the standby processing unit according to the Hello message;

本发明应用OSPF协议,邻居路由器的状态包括:The present invention applies the OSPF protocol, and the states of neighbor routers include:

停机(Down)状态、企图(Attempt)状态、初始(Init)状态、双向(2-way)状态、交换开始(ExStart)状态、交换(Exchange)状态、装载(Loading)状态、满(Full)状态。Down state, Attempt state, Initial state, Two-way state, ExStart state, Exchange state, Loading state, Full state .

C3,主用处理单元根据所述Hello报文维护主用处理单元本地记录的所述邻居路由器的状态信息;C3, the active processing unit maintains the state information of the neighbor router locally recorded by the active processing unit according to the Hello message;

C4,当主用处理单元失效时,备用处理单元接管主用处理单元通信。C4. When the main processing unit fails, the standby processing unit takes over the communication of the main processing unit.

本发明中,所述主用处理单元的失效可以由软硬件故障触发或人工启动倒换触发或预置一定时间间隔定时触发。In the present invention, the failure of the primary processing unit may be triggered by software and hardware faults, manual switchover, or a preset time interval.

实施例三是本发明对Hello报文的处理方式,备用处理单元如果要对Hello报文进行处理,则需要运行有关邻居路由器的Hello定时器和Dead定时器,通过接收到邻居路由器的Hello报文的内容和时间间隔以及接口状态变化确定邻居路由器的状态并进行记录。本实施例强调的是备用处理单元对于Hello报文的处理能力,可以理解的是,步骤C2与步骤C3,并无绝对顺序。也可以先进行步骤C3,后进行步骤C2,具体步骤的先后顺序不构成对本发明的限制。Embodiment three is the processing mode of the present invention to the Hello message, if the standby processing unit will process the Hello message, it needs to run the Hello timer and the Dead timer of the neighbor router, by receiving the Hello message of the neighbor router The contents and time intervals of the interface status changes determine the status of neighboring routers and record them. This embodiment emphasizes the processing capability of the standby processing unit for the Hello message. It can be understood that there is no absolute sequence between step C2 and step C3. It is also possible to carry out step C3 first, and then carry out step C2, and the order of the specific steps does not constitute a limitation to the present invention.

实施例四、一种实现通信接管的方法,流程图如图4所示,包括:Embodiment 4. A method for realizing communication takeover, the flowchart of which is shown in FIG. 4 , including:

D1,主用处理单元和备用处理单元同步接收来自邻居路由器的DD报文;D1, the active processing unit and the standby processing unit receive DD messages from neighboring routers synchronously;

本实施例中,接收的报文为OSPF路由协议下的DD报文。In this embodiment, the received message is a DD message under the OSPF routing protocol.

D2,备用处理单元根据所述DD报文维护备用处理单元本地记录的所述邻居路由器的请求表以及该邻居路由器的状态信息;D2. The backup processing unit maintains the request table of the neighbor router and the state information of the neighbor router locally recorded by the backup processing unit according to the DD message;

备用处理单元维护所述邻居路由器的请求表的过程为:将DD报文中的每一个LSA描述信息与备用处理单元链路状态数据库中对应的LSA进行比较;若所述LSA描述信息比链路状态数据库中对应的LSA新,则备用处理单元将所述LSA描述信息放到该邻居路由器的请求表中;当备用处理单元收到来自所述邻居路由器的所述LSA描述信息对应的LSA报文时,将所述LSA描述信息从所述邻居路由器的请求表中删除。The process for the standby processing unit to maintain the request table of the neighbor router is: compare each LSA description information in the DD message with the corresponding LSA in the link state database of the standby processing unit; The corresponding LSA in the state database is new, then the backup processing unit puts the LSA description information into the request table of the neighbor router; when the backup processing unit receives the LSA message corresponding to the LSA description information from the neighbor router , delete the LSA description information from the request table of the neighbor router.

D3,备用处理单元发送收到该DD报文的响应消息给主用处理单元;D3, the standby processing unit sends a response message of receiving the DD message to the active processing unit;

D4,主用处理单元收到来自备用处理单元的响应消息;D4, the active processing unit receives a response message from the standby processing unit;

D5,主用处理单元根据所述DD报文维护主用处理单元本地记录的所述邻居路由器的请求表以及该邻居路由器的状态信息;D5. The active processing unit maintains the request table of the neighboring router and the state information of the neighboring router locally recorded by the active processing unit according to the DD message;

D6,主用处理单元为该数据库描述报文给所述邻居路由器发送收到该数据库描述报文的应答报文;D6. The main processing unit sends a response message for receiving the database description message to the neighbor router for the database description message;

D7,当主用处理单元失效时,备用处理单元接管主用处理单元通信。D7. When the active processing unit fails, the standby processing unit takes over the communication of the active processing unit.

实施例四体现的是本发明对DD报文的处理方式,对DD报文的处理使得在实现倒换后,对未收到的DD报文,邻居路由器将重传,使无缝化的倒换过程更完美。Embodiment 4 embodies the processing method of the present invention for DD messages. The processing of DD messages enables the neighboring routers to retransmit unreceived DD messages after switching is realized, so that the seamless switching process more perfect.

实施例三和实施例四根据Hello报文和DD报文对本地记录的邻居路由器的状态信息进行维护。可以理解的是,备用处理单元获得邻居路由器状态信息的方式还可以采用当主用处理单元判断邻居路由器状态发生变化时,则通过主用处理单元和备用处理单元之间的IPC连接,将邻居路由器的状态变化通知给备用处理单元。此种方式备用处理单元可以不运行相关的定时器,但是要占用稍多的IPC带宽资源。具体如何实现技术人员可以根据系统的实际情况自行选择处理方式。Embodiment 3 and Embodiment 4 maintain the state information of the neighbor router recorded locally according to the Hello message and the DD message. It can be understood that the standby processing unit can also obtain the state information of the neighbor router by using an IPC connection between the main processing unit and the standby processing unit to transfer the state information of the neighbor router when the main processing unit judges that the state of the neighbor router changes. The status change is notified to the standby processing unit. In this way, the standby processing unit may not run the relevant timer, but it will occupy a little more IPC bandwidth resources. Specifically how to implement the technical personnel can choose the processing method according to the actual situation of the system.

上述实施例二至实施例四对本发明应用OSPF协议,对OSPF协议下的LSA报文、Hello报文和DD报文的处理方式进行了描述。对LSA报文和DD报文的处理方式与常规处理流程相比增加了从备用处理单元发送收到LSA报文和DD报文的响应消息,目的是使主用处理单元和备用处理单元根据收到的报文更新本地数据并使它们保持一致,为倒换做好准备。The above-mentioned embodiment 2 to embodiment 4 describe the processing methods of the LSA message, Hello message and DD message under the OSPF protocol by applying the OSPF protocol in the present invention. Compared with the conventional processing flow, the processing method of LSA packets and DD packets adds a response message sent from the standby processing unit to receive LSA packets and DD packets, so that the active processing unit and the standby processing unit can Received packets update the local data and make them consistent to prepare for the switchover.

为了更加完善本发明方案,若主用处理单元收到报文接收单元组播的LSA报文和DD报文后,在预置时间之内未收到来自备用处理单元收到所述报文的响应消息的意外情况时,主用处理单元则通过主用处理单元和备用处理单元之间的IPC发送所述报文给备用处理单元并产生一个报警信息,提示用户备用处理单元可能运行不正常。In order to further improve the solution of the present invention, if the main processing unit receives the LSA message and the DD message multicast by the message receiving unit, it does not receive the message from the standby processing unit within the preset time. When responding to the unexpected situation of the message, the main processing unit sends the message to the backup processing unit through the IPC between the main processing unit and the backup processing unit and generates an alarm message, prompting the user that the backup processing unit may not be operating normally.

若主用处理单元收到来自备用处理单元收到所述LSA报文和DD报文的响应消息,而在预置时间之内未收到所述的报文,则主用处理单元向备用处理单元请求所述报文;备用处理单元接收到主用处理单元的请求后,通过主用处理单元和备用处理单元之间的IPC连接发送所述报文给主用处理单元,并产生一个报警信息,提示用户主用处理单元可能运行不正常。If the main processing unit receives the response message from the standby processing unit to receive the LSA message and the DD message, but does not receive the message within the preset time, the main processing unit sends a message to the standby processing unit. The unit requests the message; after receiving the request from the main processing unit, the backup processing unit sends the message to the main processing unit through the IPC connection between the main processing unit and the backup processing unit, and generates an alarm message , prompting the user that the active processing unit may not be working properly.

上述实施例二至实施例四中,在主用处理单元和备用处理单元通过数据批量备份或其它方式完成初始数据同步后若主用处理单元发生局部状态变化,则传送所述局部状态变化信息给备用处理单元,所述备用处理单元的本地数据还根据所述局部状态变化信息来维护。In the above-mentioned Embodiment 2 to Embodiment 4, after the primary processing unit and the standby processing unit complete the initial data synchronization through data batch backup or other means, if a local state change occurs in the primary processing unit, the local state change information is sent to A standby processing unit, the local data of the standby processing unit is also maintained according to the local state change information.

所述局部状态变化信息包括:主板配置变化信息、接口状态变化信息和邻居路由器状态变化信息。当主用处理单元发生配置变化或接口状态变化或邻居路由器状态变化时,通过主用处理单元和备用处理单元之间的IPC连接发送局部状态变化信息给备用处理单元,备用处理单元根据所述局部状态变化信息维护本地数据,以保证与主用处理单元的数据保持一致。因为所述局部状态变化发生概率相对较低并且信息量较少,所以对于IPC带宽资源占用很小,用户不必担心IPC带宽被占用过多的问题。The local state change information includes: motherboard configuration change information, interface state change information, and neighbor router state change information. When the active processing unit has a configuration change, an interface state change, or a neighbor router state change, it sends local state change information to the standby processing unit through the IPC connection between the active processing unit and the standby processing unit, and the standby processing unit according to the partial state Change information maintains local data to ensure consistency with the data of the primary processing unit. Because the occurrence probability of the local state change is relatively low and the amount of information is small, the IPC bandwidth resources are occupied very little, and the user does not need to worry about the problem that the IPC bandwidth is occupied too much.

备用处理单元接管主用处理单元通信的过程称为倒换,本发明的倒换方式可以分为无计划的倒换和有计划的倒换,所述无计划的倒换和有计划的倒换可以应用于上述实施例二至实施例四的倒换过程中。The process in which the standby processing unit takes over the communication of the main processing unit is called switching. The switching methods of the present invention can be divided into unplanned switching and planned switching. The unplanned switching and planned switching can be applied to the above-mentioned embodiments During the switching process from the second to the fourth embodiment.

请参阅图5,是本发明方法应用OSPF协议时无计划倒换的流程图,包括:Please refer to Fig. 5, it is the flowchart of unplanned switching when the method of the present invention applies OSPF agreement, comprises:

r1,备用处理单元从接口层读入所有网络接口信息;r1, the standby processing unit reads all network interface information from the interface layer;

r2,进行主备切换,备用处理单元代替主用处理单元;r2, perform active-standby switchover, and the standby processing unit replaces the active processing unit;

此处的主备切换是指备用处理单元接管主用处理单元的接口。The active-standby switchover here refers to the interface where the standby processing unit takes over the active processing unit.

r3,对于任何一个状态不为Full的邻居路由器,备用处理单元与其重新建立相邻关系;r3, for any neighboring router whose status is not Full, the standby processing unit re-establishes the adjacent relationship with it;

本实施例中,重新建立相邻关系从Down状态开始建立。可以理解的是,若在倒换前,备用处理单元对DD报文做实施例四中的处理,则此处重新建立相邻关系的方式还可以为:对于任何一个状态不为满并且不为Exchange的邻居路由器,备用处理单元接着其保存的状态建立相邻关系;对于任何一个状态为交换的邻居路由器,从ExStart状态开始建立相邻关系。这使无缝化的倒换过程更快。具体如何实现技术人员可以根据系统的实际情况自行选择处理方式,具体的处理方式不够成对本发明的限制。In this embodiment, the neighbor relationship is re-established starting from the Down state. It can be understood that, if the standby processing unit performs the processing in Embodiment 4 on the DD message before the switchover, the method of re-establishing the adjacent relationship here can also be: for any state that is not full and not Exchange The standby processing unit establishes an adjacency relationship following its saved state; for any neighbor router whose state is switching, establishes an adjacency relationship from the ExStart state. This makes the seamless switchover process faster. Specifically how to implement the technical personnel can choose the processing method according to the actual situation of the system, and the specific processing method is not enough to limit the present invention.

r4,启动相关定时器;r4, start the relevant timer;

所述启动的定时器包括Hello定时器、Dead定时器和LSA重传定时器。The started timers include a Hello timer, a Dead timer and an LSA retransmission timer.

r5,根据配置引入其他协议的路径并且重新产生源于本地路由器的LSA报文;r5, import the path of other protocols according to the configuration and regenerate the LSA message from the local router;

r6,备用处理单元运行SPF算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表。r6, the standby processing unit runs the SPF algorithm to calculate the best path to the destination and updates the routing table and forwarding table according to these paths.

无计划的倒换一般针对软硬件故障触发主用处理单元失效,主用处理单元无法正常工作的情况。Unplanned switchover is generally aimed at the situation that software and hardware faults trigger the failure of the main processing unit, and the main processing unit cannot work normally.

请参阅图6,是本发明方法应用OSPF协议时有计划倒换的流程图,包括:Please refer to Fig. 6, it is a flow chart of planned switching when the method of the present invention applies the OSPF protocol, including:

s1,备用处理单元从接口层读入所有网络接口信息;s1, the standby processing unit reads in all network interface information from the interface layer;

s2,主用处理单元和备用处理单元等待所有邻居路由器状态成为Full;s2, the active processing unit and the standby processing unit wait for the state of all neighboring routers to become Full;

可以理解的是,若主用处理单元或备用处理单元在等待预置的时间后,所有邻居路由器状态仍不能成为Full,则可以采用类似无计划倒换的步骤进行倒换,具体过程参照图6步骤r2至步骤r6。It is understandable that if the active processing unit or the standby processing unit waits for a preset time, and the status of all neighbor routers still cannot become Full, then a similar unplanned switching step can be used for switching. For the specific process, refer to step r2 in Figure 6 Go to step r6.

s3,进行主备切换,备用处理单元代替主用处理单元。s3, perform active-standby switchover, and the standby processing unit replaces the active processing unit.

s4,备用处理单元用从主用处理单元得到的定时器的剩余时间设置并启动相关的定时器;s4, the standby processing unit uses the remaining time of the timer obtained from the main processing unit to set and start the relevant timer;

s5,根据配置引入其他协议的路径并且重新产生源于本地路由器的LSA报文;s5, import the path of other protocols according to the configuration and regenerate the LSA message from the local router;

s6,备用处理单元运行SPF算法计算出达到目的地的最佳路径并根据这些路径更新路由表和转发表。s6, the standby processing unit runs the SPF algorithm to calculate the best path to the destination and updates the routing table and the forwarding table according to these paths.

有计划的倒换一般针对主用处理单元可以正常工作的情况下,人为执行倒换触发主用处理单元失效或用户预置一定时间间隔定时触发主用处理单元失效的情况,可以使备用处理单元接管主用处理单元的过程更平滑。Planned switchover is generally aimed at the situation that the main processing unit can work normally, and the manual execution of the switch triggers the failure of the main processing unit or the situation that the user presets a certain time interval to trigger the failure of the main processing unit, so that the standby processing unit can take over the main processing unit. The process is smoother with processing units.

可以理解的是,上述无计划的倒换和有计划的倒换过程中,各个步骤之间并无绝对的时间顺序,甚至一些步骤可以同时执行,只要满足倒换的需求即可,具体的执行顺序并不能理解为对本发明的限制。It is understandable that there is no absolute chronological order between the steps in the above-mentioned unplanned switching and planned switching processes, and even some steps can be executed at the same time, as long as the switching requirements are met, the specific execution order does not be construed as a limitation of the invention.

实施例五、一种实现通信接管的装置,装置结构图如图7所示,包括报文接收单元100、主用处理单元200、备用处理单元300和主备控制单元400,所述主备控制单元400:包括数据备份控制单元410和接管控制单元420。Embodiment 5. A device for realizing communication takeover. The structure diagram of the device is shown in FIG. Unit 400 : includes a data backup control unit 410 and a takeover control unit 420 .

数据备份控制单元410,用于在备用处理单元300启动时,控制将主用处理单元200的数据备份到备用处理单元300。The data backup control unit 410 is configured to control the backup of the data of the active processing unit 200 to the standby processing unit 300 when the standby processing unit 300 is started.

报文接收单元100,用于接收来自邻居路由器的路由协议报文,并向主用处理单元200和备用处理单元300同时发送所述报文。The message receiving unit 100 is configured to receive a routing protocol message from a neighbor router, and send the message to the active processing unit 200 and the standby processing unit 300 at the same time.

本实施例中,所述报文接收单元100以组播形式发送报文,主用处理单元200和备用处理单元300被看作时组播组内的成员。In this embodiment, the message receiving unit 100 sends the message in a multicast form, and the active processing unit 200 and the standby processing unit 300 are regarded as members of the multicast group.

备用处理单元300,用于为主用处理单元提供路由保护,备用处理单元300接收到报文接收单元100组播的路由协议报文后,根据所述报文维护备用处理单元300的本地数据。The standby processing unit 300 is used to provide routing protection for the active processing unit. After receiving the routing protocol message multicast by the message receiving unit 100, the standby processing unit 300 maintains the local data of the standby processing unit 300 according to the message.

主用处理单元200,用于提供路由器的主要路由功能;主用处理单元接收到报文接收单元100组播的路由协议报文后,根据所述报文维护主用处理单元200的本地数据。The main processing unit 200 is used to provide the main routing function of the router; after receiving the routing protocol message multicast by the message receiving unit 100, the main processing unit maintains the local data of the main processing unit 200 according to the message.

接管控制单元420,用于当主用处理单元200失效时,控制备用处理单元300接管主用处理单元200通信。The takeover control unit 420 is configured to control the standby processing unit 300 to take over the communication of the main processing unit 200 when the main processing unit 200 fails.

实施例六、一种实现通信接管的装置,装置结构图如图8所示,包括报文接收单元100、主用处理单元200、备用处理单元300和主备控制单元400,所述主用处理单元200包括:主用接收单元210、主用数据维护单元220、响应消息接收单元230、主用报文转发单元240和请求单元250;所述备用处理单元300包括:备用接收单元310、备用数据维护单元320、响应消息发送单元330和备用报文转发单元340。Embodiment 6. A device for realizing communication takeover. The structure diagram of the device is shown in FIG. The unit 200 includes: a main receiving unit 210, a main data maintenance unit 220, a response message receiving unit 230, a main message forwarding unit 240 and a request unit 250; the backup processing unit 300 includes: a backup receiving unit 310, a backup data The maintenance unit 320 , the response message sending unit 330 and the backup message forwarding unit 340 .

下面对各单元的进行详细介绍。Each unit is described in detail below.

报文接收单元100,用于接收来自邻居路由器的路由协议报文,并向主用处理单元200上的主用接收单元210和备用处理单元300上的备用接收单元310同时发送所述报文。The packet receiving unit 100 is configured to receive routing protocol packets from neighboring routers, and send the packets to the active receiving unit 210 on the active processing unit 200 and the standby receiving unit 310 on the standby processing unit 300 simultaneously.

备用接收单元310,用于接收报文接收单元100发送的协议报文;还用于接收主用报文转发单元240转发的报文。The standby receiving unit 310 is configured to receive the protocol packet sent by the packet receiving unit 100 ; and is also configured to receive the packet forwarded by the active packet forwarding unit 240 .

备用数据维护单元320,用于根据备用接收单元310接收的报文维护本地数据;A standby data maintenance unit 320, configured to maintain local data according to the message received by the standby receiving unit 310;

响应消息发送单元330,用于在备用数据维护单元320根据接收的报文维护本地数据后,发送收到所述报文的响应消息给响应消息接收单元230;A response message sending unit 330, configured to send a response message receiving the message to the response message receiving unit 230 after the standby data maintenance unit 320 maintains the local data according to the received message;

主用接收单元210,用于接收报文接收单元100发送的协议报文;还用于接收备用报文转发单元340转发的报文。The active receiving unit 210 is used to receive the protocol message sent by the message receiving unit 100 ; and is also used to receive the message forwarded by the standby message forwarding unit 340 .

主用数据维护单元220,用于在响应消息接收单元230收到所述响应消息后根据主用接收单元210接收的报文维护本地数据;The main data maintenance unit 220 is configured to maintain the local data according to the message received by the main receiving unit 210 after the response message receiving unit 230 receives the response message;

响应消息接收单元230,接收来自响应消息发送单元320发送的收到报文的响应消息;The response message receiving unit 230 receives a response message from the received message sent by the response message sending unit 320;

主用报文转发单元240,用于在主用接收单元210收到报文后,当在预置时间内响应消息接收单元230未收到响应消息发送单元330发送的收到所述报文的响应消息时,发送所述报文给备用接收单元310,并向用户产生一个报警信息。The main message forwarding unit 240 is configured to receive the message sent by the response message sending unit 330 within the preset time after the main receiving unit 210 receives the message. When responding to a message, send the message to the standby receiving unit 310, and generate an alarm message to the user.

请求单元250,用于在响应消息接收单元230收到来自响应消息发送单元330发送的收到报文的响应消息后,当在预置时间之内主用接收单元210未收到报文接收单元100发送来的所述报文时,向备用转发单元340请求所述报文;The request unit 250 is used to receive the response message from the received message sent by the response message sending unit 330 after the response message receiving unit 230, when the main receiving unit 210 does not receive the message receiving unit within the preset time When the message is sent from 100, request the message from the standby forwarding unit 340;

备用报文转发单元340,用于在收到主用处理单元的请求后,发送请求单元250请求的报文给主用接收单元210,并产生一个报警信息。The backup message forwarding unit 340 is configured to send the message requested by the requesting unit 250 to the main receiving unit 210 after receiving the request from the main processing unit, and generate an alarm message.

以上对本发明所提供的一种实现通信接管的方法及装置进行了详细介绍,本文中应用了具体实例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for realizing communication takeover provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. Invention Limitations.

Claims (21)

1. a method that realizes communicating by letter and taking over is characterized in that, comprising:
Main with processing unit and the synchronous routing protocol packet that receives from neighbor router of standby processing unit;
Main processing unit and the standby processing unit used is according to described message maintenance local data separately;
When the master used the processing element failure, standby processing unit was taken over the main processing unit communication of using.
2. the method that realization communication as claimed in claim 1 is taken over is characterized in that,
Described master safeguards that according to described message the process of local data separately comprises with processing unit and standby processing unit:
Standby processing unit is safeguarded standby processing unit local data according to described message;
Standby processing unit sends the response message of receiving described message and uses processing unit to the master;
The master receives described response message with processing unit, safeguards the main processing unit local data of using according to described message.
3. the method that realization communication as claimed in claim 2 is taken over, it is characterized in that, further comprise: if after the master receives described message with processing unit, within preset time, do not receive the response message of receiving described message from standby processing unit, then send described message to standby processing unit and produce a warning message.
4. the method that realization communication as claimed in claim 2 is taken over is characterized in that, if main with processing unit receive receive the response message of described message from standby processing unit after, within preset time, do not receive described message, then described method further comprises:
The main processing unit of using is to the described message of standby processing unit request;
Standby processing unit sends described message and uses processing unit to main, and produces a warning message.
5. the method that realization communication as claimed in claim 1 is taken over is characterized in that described Routing Protocol is an OSPF Open Shortest Path First; Described message is the LSA message;
Described master safeguards that according to the LSA message process of local data separately comprises with processing unit and standby processing unit:
Standby processing unit upgrades standby processing unit link-local slip condition database according to described LSA message;
Standby processing unit sends the response message of receiving this LSA message and uses processing unit to the master;
The master receives response message with processing unit, upgrades main with processing unit link-local slip condition database according to described LSA message; The operation shortest-path first algorithm calculates the optimal path that arrives the destination and according to these routing update routing tables with transmit.
6. the method that realization communication as claimed in claim 5 is taken over, it is characterized in that, after described master receives that with processing unit standby processing unit is received the response message of this LSA message, send the response message of receiving described LSA message for described neighbor router.
7. the method that realization communication as claimed in claim 5 is taken over, it is characterized in that, standby processing unit safeguards that according to the LSA message process of local data further comprises: for each LSA message that receives, if standby processing unit determines local router described message is carried out inundation to certain neighbor router, then standby processing unit is put into described LSA message in the re-transmission table of this neighbor router of standby processing unit local record; When standby processing unit receives from this neighbor router the response message of this LSA message, described LSA message is deleted from the re-transmission table of this neighbor router of local record.
8. the method that realization communication as claimed in claim 1 is taken over is characterized in that described Routing Protocol is an OSPF Open Shortest Path First; Described message is for connecting message;
Described standby processing unit safeguards that according to connecting message the process of local data comprises:
Standby processing unit is safeguarded the state information of the described neighbor router of standby processing unit local record according to described connection message.
9. the method that realization communication as claimed in claim 1 is taken over is characterized in that described Routing Protocol is an OSPF Open Shortest Path First; Described message is a database description packet;
Described master safeguards that according to database description packet the process of local data separately comprises with processing unit and standby processing unit:
Standby processing unit is safeguarded the required list of the described neighbor router of standby processing unit local record according to described database description packet;
Standby processing unit sends the response message of receiving this database description packet and uses processing unit to the master;
Main receive described response message, safeguard the state information of the required list of described neighbor router of local record and described neighbor router according to described database description packet and give described neighbor router transmission for this database description packet and receive the response message of this database description packet with processing unit.
10. the method that realization communication as claimed in claim 9 is taken over is characterized in that the process of the required list of the described neighbor router of the standby processing unit local record of described maintenance comprises:
Check whether each the LSA descriptor in this database description packet is newer than the link corresponding state advertisement in the standby processing unit LSD, if then standby processing unit is put into described LSA descriptor in the required list of this neighbor router; When standby processing unit is received described LSA descriptor link corresponding state advertisement message from described neighbor router, described LSA descriptor is deleted from the required list of described neighbor router.
11. the method that realization communication as claimed in claim 1 is taken over is characterized in that, when standby processing unit started, main data with processing unit are backuped to standby processing unit, and to finish primary data synchronous.
12. the method that realization communication as claimed in claim 11 is taken over is characterized in that, finish primary data synchronously after, if mainly change, then transmit described local state change information and give standby processing unit with processing unit generation local state; The local data of described standby processing unit is also safeguarded according to described localized variation information.
13. the method that realization communication as claimed in claim 12 is taken over is characterized in that described local state change information comprises: configuration variation information, Interface status change information and neighbor router state change information.
14., it is characterized in that when hardware and software failure triggered the master with the processing element failure, standby processing unit was taken over main process with the processing unit communication and comprised step as any method that described realization communication is taken over of claim 5 to 10:
Standby processing unit reads in the all-network interface message from interface layer;
Carry out active and standby switching, standby processing unit replaces the main processing unit of using;
For any one state is not full neighbor router, and standby processing unit rebulids neighbouring relations with it;
Start relevant timer;
Introduce the path of other agreements and produce the LSA message that comes from local router again according to configuration;
Standby processing unit operation shortest-path first algorithm calculates the optimal path that arrives at the destination and according to these routing update routing tables with transmit.
15. the method that any described realization communication is taken over as claim 5 to 10 is characterized in that, triggers mainly when handling element failure when manually starting to switch, standby processing unit is taken over main process with the processing unit communication and is comprised:
Standby processing unit reads in the all-network interface message from interface layer;
It is full to wait for that all neighbor router states become;
Carry out active and standby switching, standby processing unit replaces the main processing unit of using;
Standby processing unit is used from the timer that be provided with remaining time and startup is relevant of leading the timer that obtains with processing unit;
Introduce the path of other agreements and produce the LSA message that comes from local router again according to configuration;
Standby processing unit operation shortest-path first algorithm calculates the optimal path that arrives at the destination and according to these routing update routing tables with transmit.
16. the method that realization communication as claimed in claim 15 is taken over is characterized in that,
After the time that wait is preset, if it is full to still have the neighbor router state not become; Then carry out step:
Carry out active and standby switching, standby processing unit replaces the main processing unit of using;
For any one state is not full neighbor router, and standby processing unit rebulids neighbouring relations with it;
Start relevant timer;
Introduce the path of other agreements and produce the LSA message that comes from local router again according to configuration;
Standby processing unit operation shortest-path first algorithm calculates the optimal path that arrives at the destination and according to these routing update routing tables with transmit.
17. a device of realizing communicating by letter and taking over comprises message receiving element, main with processing unit, standby processing unit and main-slave control cell, it is characterized in that:
The message receiving element is used to receive the routing protocol packet from neighbor router, and sends described message to main simultaneously with processing unit and standby processing unit;
Main processing unit and the standby processing unit used is according to described message maintenance local data separately;
Main-slave control cell is used to control standby processing unit and takes over main with handling unit communication.
18. the device that realization communication as claimed in claim 17 is taken over is characterized in that described main-slave control cell comprises: take over control unit, be used for when the master uses the processing element failure, control standby processing unit and take over the main processing unit communication of using;
Described main-slave control cell also comprises the data backup control unit, is used to control the data that will lead with processing unit and backups to standby processing unit.
19. the device that realization communication as claimed in claim 17 is taken over is characterized in that,
Described standby processing unit comprises:
Standby receiving element is used to receive the protocol massages that the message receiving element sends;
The preliminary data maintenance unit is used for safeguarding local data according to the message that standby receiving element receives;
The response message transmitting element is used for sending and receiving that the response message of described message is to the response message receiving element after the preliminary data maintenance unit is safeguarded local data according to the message that receives;
Described master draws together with the processing unit pack:
The master uses receiving element, is used to receive the protocol massages that the message receiving element sends;
The response message receiving element receives the response message of receiving message that sends from the response message transmitting element;
The master uses the data maintenance unit, is used for safeguarding local data according to the main message that receives with receiving element after the response message receiving element is received described response message.
20. the device that realization communication as claimed in claim 19 is taken over is characterized in that described master also comprises with processing unit:
The main message retransmission unit of using, be used for after the master receives message with receiving element, when response message receiving element in preset time do not receive that the response message transmitting element sends receive the response message of described message the time, send described message to standby receiving element, and produce a warning message to the user;
Described standby receiving element also is used to receive the main message of transmitting with the message retransmission unit.
21. the device as claim 19 or 20 described realization communications adapters is characterized in that,
Described master also comprises with processing unit:
Request unit, be used for after the response message receiving element is received the response message of receiving message that sends from the response message transmitting element, when main when not receiving the described message that the message receiving element sends within preset time, to the described message of standby message retransmission unit request with receiving element;
Described standby processing unit also comprises:
Standby message retransmission unit is used for receiving the master with after the request of processing unit that the message that sends the request unit request is used receiving element to main, and produces a warning message;
Described master also is used to receive the message that standby message retransmission unit is transmitted with receiving element.
CNB2006100995123A 2006-07-26 2006-07-26 A method and device for realizing communication takeover Expired - Fee Related CN100420207C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006100995123A CN100420207C (en) 2006-07-26 2006-07-26 A method and device for realizing communication takeover
PCT/CN2007/070199 WO2008014696A1 (en) 2006-07-26 2007-06-28 Method and apparatus for realizing communication take-over

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100995123A CN100420207C (en) 2006-07-26 2006-07-26 A method and device for realizing communication takeover

Publications (2)

Publication Number Publication Date
CN1889464A true CN1889464A (en) 2007-01-03
CN100420207C CN100420207C (en) 2008-09-17

Family

ID=37578724

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100995123A Expired - Fee Related CN100420207C (en) 2006-07-26 2006-07-26 A method and device for realizing communication takeover

Country Status (2)

Country Link
CN (1) CN100420207C (en)
WO (1) WO2008014696A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980484A (en) * 2010-10-14 2011-02-23 中兴通讯股份有限公司 Method and system for realizing full protection of routers
CN102223304A (en) * 2011-06-16 2011-10-19 杭州华三通信技术有限公司 Method and device for continuously forwarding after main/standby switch
CN102571379A (en) * 2010-12-14 2012-07-11 中兴通讯股份有限公司 Method and device for main and standby protection of packet transport networking equipment
CN103200109A (en) * 2013-03-22 2013-07-10 杭州华三通信技术有限公司 Method and device for OSPF neighboring node management
CN105591951A (en) * 2015-10-15 2016-05-18 杭州华三通信技术有限公司 BGP message processing method and device of stack system
CN105939295A (en) * 2015-11-16 2016-09-14 杭州迪普科技有限公司 Network protocol state synchronization method and network protocol state synchronization device
CN109218206A (en) * 2018-09-04 2019-01-15 杭州迪普科技股份有限公司 A kind of method and apparatus limiting Link State Notification quantity
CN111684428A (en) * 2018-02-12 2020-09-18 华为技术有限公司 Ultra-scale cloud-based N-way routing protection
CN111740914A (en) * 2020-06-18 2020-10-02 深圳市信锐网科技术有限公司 OSPF protocol message distributed processing method, system and related equipment
CN112615751A (en) * 2020-12-29 2021-04-06 北京格林威尔科技发展有限公司 Main/standby switching hot backup method and device based on routing protocol
CN113765781A (en) * 2020-06-04 2021-12-07 华为技术有限公司 Method, communication device, storage medium and system for processing routing message
WO2023273945A1 (en) * 2021-06-29 2023-01-05 中兴通讯股份有限公司 Protocol high availability protection system and protection method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6112315A (en) * 1997-09-24 2000-08-29 Nortel Networks Corporation Process and apparatus for reducing software failures using sparing in distributed systems
CN1299438C (en) * 2002-11-02 2007-02-07 华为技术有限公司 Method of realizing single plate main and ready change over and its circuit
CN1286303C (en) * 2003-02-26 2006-11-22 华为技术有限公司 Backup method for Ethernet port connected to Internet protocol network
CN100454955C (en) * 2003-04-11 2009-01-21 华为技术有限公司 A Backup and Restoration Method of IP Telephone Routing
CN100539509C (en) * 2003-10-16 2009-09-09 华为技术有限公司 Implementation method of active/standby switchover for high-end switches
CN100461646C (en) * 2004-08-27 2009-02-11 华为技术有限公司 Method for negat main spare board in communication equipment
CN100426692C (en) * 2004-11-15 2008-10-15 中兴通讯股份有限公司 Communication device host-standby switching protocol processing software synchronizing method
CN100382452C (en) * 2005-11-15 2008-04-16 中兴通讯股份有限公司 A device and method for realizing active/standby switching

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012048574A1 (en) * 2010-10-14 2012-04-19 中兴通讯股份有限公司 Method and system for realizing router full protection
CN101980484B (en) * 2010-10-14 2016-02-10 中兴通讯股份有限公司 A kind of method and system realizing router full guard
CN101980484A (en) * 2010-10-14 2011-02-23 中兴通讯股份有限公司 Method and system for realizing full protection of routers
CN102571379A (en) * 2010-12-14 2012-07-11 中兴通讯股份有限公司 Method and device for main and standby protection of packet transport networking equipment
CN102223304A (en) * 2011-06-16 2011-10-19 杭州华三通信技术有限公司 Method and device for continuously forwarding after main/standby switch
CN102223304B (en) * 2011-06-16 2014-08-27 杭州华三通信技术有限公司 Method and device for continuously forwarding after main/standby switch
US8824275B2 (en) 2011-06-16 2014-09-02 Hangzhou H3C Technologies Co., Ltd. Route calculating after switching occurs from a primary main control board to a standby main control board
CN103200109A (en) * 2013-03-22 2013-07-10 杭州华三通信技术有限公司 Method and device for OSPF neighboring node management
CN103200109B (en) * 2013-03-22 2016-06-29 杭州华三通信技术有限公司 A kind of ospf neighbor relationship management method and equipment
CN105591951B (en) * 2015-10-15 2018-11-09 新华三技术有限公司 The BGP message processing methods and device of pile system
CN105591951A (en) * 2015-10-15 2016-05-18 杭州华三通信技术有限公司 BGP message processing method and device of stack system
CN105939295A (en) * 2015-11-16 2016-09-14 杭州迪普科技有限公司 Network protocol state synchronization method and network protocol state synchronization device
CN111684428A (en) * 2018-02-12 2020-09-18 华为技术有限公司 Ultra-scale cloud-based N-way routing protection
CN111684428B (en) * 2018-02-12 2023-09-12 华为技术有限公司 Ultra-scale cloud-based N-way routing protection
CN109218206A (en) * 2018-09-04 2019-01-15 杭州迪普科技股份有限公司 A kind of method and apparatus limiting Link State Notification quantity
CN109218206B (en) * 2018-09-04 2021-03-23 杭州迪普科技股份有限公司 Method and device for limiting link state advertisement quantity
CN113765781A (en) * 2020-06-04 2021-12-07 华为技术有限公司 Method, communication device, storage medium and system for processing routing message
WO2021244588A1 (en) * 2020-06-04 2021-12-09 华为技术有限公司 Method for processing routing message, communication device, storage medium, and system
CN113765781B (en) * 2020-06-04 2022-07-12 华为技术有限公司 Method, communication device, storage medium and system for processing routing message
CN111740914A (en) * 2020-06-18 2020-10-02 深圳市信锐网科技术有限公司 OSPF protocol message distributed processing method, system and related equipment
CN111740914B (en) * 2020-06-18 2022-11-22 深圳市信锐网科技术有限公司 OSPF protocol message distributed processing method, system and related equipment
CN112615751A (en) * 2020-12-29 2021-04-06 北京格林威尔科技发展有限公司 Main/standby switching hot backup method and device based on routing protocol
WO2023273945A1 (en) * 2021-06-29 2023-01-05 中兴通讯股份有限公司 Protocol high availability protection system and protection method

Also Published As

Publication number Publication date
CN100420207C (en) 2008-09-17
WO2008014696A1 (en) 2008-02-07

Similar Documents

Publication Publication Date Title
CN101030901A (en) Distributed Ethernet system and method for inspecting fault based thereon
CN1638342A (en) System and method for managing protocol network failures in a cluster system
CN1725702A (en) Network safety equipment and assemblied system and method for implementing high availability
CN1816011A (en) Data transfer apparatus and multicast system and program
CN101056270A (en) A route convergence method and routing device
CN1838620A (en) Method for detecting chain circuit fault between end-to-end notes in mixed network
CN1943206A (en) System and method for maximizing connectivity during network failures in a cluster system
WO2008014696A1 (en) Method and apparatus for realizing communication take-over
CN1345148A (en) Method and device for implementation of resynchronization of topological data base in communication network having topological state routing protocol
CN1783880A (en) Softrouter dynamic binding protocol
CN1885839A (en) Method for realizing active/standby gateway apparatus in network
CN101051951A (en) Method and device for securing server connection reliability
CN1946058A (en) Soft exchange device allopatric disaster recovery solution system and its method for software exchange network
CN1096772C (en) Communication network system and rebuilding thereof
CN101047487A (en) Method and system for solving equipment redundant in industrial control network
CN101035053A (en) Processing method for node link switching of the distributed system and its device
CN1842020A (en) Method for realizing data service backup
CN1921369A (en) A takeover method of network connection
CN101044723A (en) Communication processing system, packet processing load dispersion device, and packet processing load dispersion method used for the same
CN1423197A (en) High usable system based on multi TCP linking map
CN1801802A (en) Node restarting method on universal multi protocol label exchange path
CN1812300A (en) Loop network connection control method, route exchanging equipment and loop network system
CN1558638A (en) A Message-Based Interprocessor Communication Method
CN1913496A (en) Conversion control method and system of OAM message
WO2011060677A1 (en) Method, device and system for main/standby switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080917

Termination date: 20180726