CN110958176B - System and method for controlling uninterrupted routing during switching of main and standby control planes - Google Patents

System and method for controlling uninterrupted routing during switching of main and standby control planes Download PDF

Info

Publication number
CN110958176B
CN110958176B CN201911140974.9A CN201911140974A CN110958176B CN 110958176 B CN110958176 B CN 110958176B CN 201911140974 A CN201911140974 A CN 201911140974A CN 110958176 B CN110958176 B CN 110958176B
Authority
CN
China
Prior art keywords
socket
disk
module
standby
tcp
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.)
Active
Application number
CN201911140974.9A
Other languages
Chinese (zh)
Other versions
CN110958176A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201911140974.9A priority Critical patent/CN110958176B/en
Publication of CN110958176A publication Critical patent/CN110958176A/en
Application granted granted Critical
Publication of CN110958176B publication Critical patent/CN110958176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

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

Abstract

The invention discloses a system and a method for controlling uninterrupted routing during switching of a main disk and a spare disk of a plane, which relate to the technical field of communication, and the method comprises the following steps: when the master disk operates the socket, the related information of the socket is stored in a first socket agent module, and then the stored socket information is synchronized to a second socket agent module; after receiving the socket information, the second socket agent module stores the socket information and calls a TCP/IP module interface of the standby disk to acquire a corresponding socket; when the main disk and the standby disk are switched, the second socket agent module traverses the socket information stored locally and replaces the standby disk protocol module to provide the keep-alive messages of the protocols corresponding to the sockets; after the switching between the main disk and the standby disk is completed, the socket proxy module stops replacing the standby disk protocol module to provide the keep-alive messages. The invention can keep the connection state between the standby disk and the neighbor equipment node protocol module from being disconnected in the lifting process of the standby disk, thereby realizing uninterrupted routing.

Description

System and method for controlling uninterrupted routing during switching of main and standby control planes
Technical Field
The invention relates to the technical field of communication, in particular to a system and a method for controlling uninterrupted routing during switching of a main control plane and a spare control plane.
Background
For telecommunication level routers, the Non-Stop Routing (NSR) is one of the core technologies for achieving more than 5 and 9 reliabilities, and the NSR is a threshold-level requirement related to the reliability of a high-end router. Compared with a Non-Stop Forwarding (NSF) technology without high availability or standardization, the NSR can limit network faults inside nodes, and ensures that a data plane does not have flow interruption under the condition that a control plane fails, so that the reliability is higher; compared with the NSF technology, the method has lower requirements on deployment environment and does not need the cooperation of neighbor nodes.
Generally, in order to implement uninterrupted routing, after a failure or failure occurs in a primary disk of a control plane, the primary disk needs to be switched to a standby disk immediately, that is, the standby disk is promoted to be a logical primary disk, and after the promotion process is started, a relevant protocol module supporting the NSR technology needs to send a protocol keep-alive message immediately to ensure that a protocol is not disconnected with a neighboring device node. Depending on the control plane protocol stack used, the time required for the ramp-up from the standby disk to the successful sending of the keep-alive messages may be on the order of seconds or even minutes.
Particularly, in a routing device in an application scenario where a spare disk program is in an inactive or partially active state, that is, a spare disk module only has a data synchronization function with a main disk module, and when a state machine of a protocol module is not normally migrated, time consumed in the upgrade process may reach ten minutes or more, and the spare disk protocol module does not have message creation and outgoing capabilities within this time period, and cannot send a keep-alive message. Because the keep-alive time of the keep-alive message in the common protocol module is generally within 1 minute, and when the keep-alive time is exceeded, the protocol state between the data plane and the neighbor device node is changed into DOWN, so that the data plane route is withdrawn, and the serious consequence of flow interruption is caused.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a system and a method for controlling uninterrupted routing during switching of a main backup disk and a standby disk of a plane, which can keep the connection state between the backup disk and a neighbor equipment node protocol module not to be disconnected in the lifting process of the backup disk aiming at a routing device under the application scene that a backup disk program is in an inactive or partially active state, thereby realizing uninterrupted routing.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a method for controlling uninterrupted routing during switching of primary and standby planes comprises the following steps:
a socket proxy module is respectively arranged on the main disk and the standby disk, and the socket operation of the main disk is synchronized between the standby disk and the main disk through the two socket proxy modules; when the primary disk and the standby disk are switched, the socket agent module of the standby disk traverses the locally stored socket information, provides the keep-alive messages of the protocol corresponding to the socket in each socket information, and stops after the switching is finished.
On the basis of the above technical solution, the step of setting a socket proxy module on each of the primary disk and the standby disk, and synchronizing the socket operation of the primary disk by the standby disk through the two socket proxy modules specifically includes:
setting a first socket agent module on the main disk, setting a second socket agent module on the standby disk, creating/deleting a socket in the first socket agent module when the main disk operates the socket, and then synchronizing the socket operation information to the second socket agent module; and after receiving the socket operation information, the second socket agent module processes the socket operation information and synchronizes the socket operation of the main disk.
On the basis of the above technical solution, the step of creating/deleting a socket in the first socket agent module when the primary disk operates the socket, and then synchronizing the socket operation information to the second socket agent module includes:
when the master disk operates the socket, sending socket operation information to the first socket agent module; the first socket agent module obtains the socket operation information type after receiving the socket operation information, and executes the socket creating/deleting operation according to the socket operation information type; and synchronizing the socket operation information to the second socket agent module.
On the basis of the technical scheme, after receiving the socket operation information of the first socket agent module, the second socket agent module identifies the socket operation information type; when the socket operation information is socket creating information, calling a TCP/IP module interface to create a socket and storing the socket; and when the socket operation information is socket deleting information, deleting the locally stored corresponding socket.
On the basis of the above technical solution, when the socket operation information is socket creation information, the method further includes: judging whether the socket created in the created socket information is a TCP socket, and calling a TCP/IP module interface to create a new socket according to the received information of the non-TCP socket when the non-TCP socket is created; when creating the TCP socket, according to the received TCP socket quintuple information, calling the TCP/IP module interface to obtain the socket corresponding to the main disc.
On the basis of the above technical solution, the step of providing the keep-alive message of the protocol corresponding to the socket in each socket information includes:
when the traversed socket is a non-TCP socket, sending a keep-alive message of a protocol corresponding to the non-TCP socket, and releasing the received data message; and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message.
On the basis of the technical scheme, when the protocol module of the standby disk is a protocol module based on a TCP (transmission control protocol) after the switching between the main disk and the standby disk is completed, the second socket agent module sends the received data message cached before to the protocol module of the standby disk for priority processing.
The invention also provides a system for controlling uninterrupted routing during switching of the main and standby planes, which comprises: the device comprises a main disk and a standby disk, wherein the main disk and the standby disk are respectively provided with a socket proxy module, and the two socket proxy modules are used for synchronizing the socket operation of the main disk to the standby disk; the socket agent module of the standby disk is also used for traversing the locally stored socket information when the main standby disk and the standby disk are switched, providing the keep-alive messages of the protocol corresponding to the socket in each socket information, and stopping after the switching is finished.
On the basis of the above technical solution, the system for controlling uninterrupted routing during switching between the main and standby control planes includes: the main disk comprises a main disk protocol module, a main disk TCP/IP module and a first socket agent module, wherein the first socket agent module performs information interaction with the main disk protocol module and the main disk TCP/IP module through interfaces, and the main disk protocol module is used for creating/deleting sockets during communication and sending corresponding socket operation information to the first socket agent module; the first socket agent module is used for synchronizing socket information from the main disk protocol stack to the standby disk protocol stack; the standby disk comprises a standby disk protocol module, a standby disk TCP/IP module and a second socket agent module, wherein the second socket agent module performs information interaction with the standby disk protocol module and the standby disk TCP/IP module through interfaces, the second socket agent module is used for processing the socket operation information after receiving the socket operation information, synchronizing the socket operation of the primary disk, traversing locally stored socket information by the second socket agent module when the primary disk and the standby disk are switched, providing a keep-alive message of a protocol corresponding to a socket in each socket information by replacing the standby disk protocol module, and stopping providing the keep-alive message by replacing the standby disk protocol module after the primary disk and the standby disk are switched;
and data interaction is respectively carried out between the main disk protocol module and the standby disk protocol module, between the main disk TCP/IP module and the standby disk TCP/IP module, and between the first socket agent module and the second socket agent module through protocol channels.
On the basis of the above technical solution, the second socket agent module is further configured to send a keep-alive message of a protocol corresponding to a non-TCP socket when the traversed socket is the non-TCP socket, and release the received data message; and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message.
Compared with the prior art, the invention has the advantages that:
(1) the system for uninterrupted routing during switching of the main and standby control plane disks of the invention is provided with the socket proxy module, after the main control plane disk is switched due to failure, the standby control plane disk is lifted to be in a logic main period, the interaction of keep-alive messages between the standby control plane disk and the node protocols of the neighbor devices is maintained through the socket proxy module, and the data messages received by TCP socket-like sockets are cached, so that the protocols of the neighbor devices are continuously adjacent during lifting, and the protocol data messages are not lost, thereby realizing the uninterrupted routing of the protocols.
(2) The method for controlling uninterrupted routing during switching of the main and standby disks of the plane aims at the routing device under the application scene that the program of the standby disk is in the inactive or partially active state, does not influence the data synchronization between the module of the standby disk and the module of the main disk, and can also finish keeping the connection state between the standby disk and the node protocol module of the neighbor equipment from being disconnected in the lifting process of the standby disk, thereby realizing the uninterrupted routing scheme of the routing device.
(3) In the method for uninterrupted routing during switching of the main and standby control planes, the types of received socket information are distinguished and processed respectively, when the standby disk on the standby disk is promoted to be a logic main disk, the message received by the non-TCP socket is directly discarded by the socket agent module, and the message received by the TCP socket is cached by the socket agent module in sequence after being received. The processing mode reduces the cache requirement and releases the system space while ensuring the stability of the relevant protocol.
Drawings
Fig. 1 is a logical relationship framework diagram of a system for uninterrupted routing during switching of a control plane active/standby disk in an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for controlling uninterrupted routing during switching between primary and secondary control planes according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the operation of the primary disk socket proxy module according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a process of receiving backup data of a primary disk by a standby disk socket agent module according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a standby disk socket agent module during a host/standby switch according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating the operation of the socket agent module after the spare disk protocol module is upgraded according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, an embodiment of the present invention provides a system for controlling uninterrupted routing during switching between a primary disk and a secondary disk in a control plane, where the system includes:
the main disk comprises a main disk protocol module, a main disk TCP/IP module and a first socket agent module, wherein the first socket agent module performs information interaction with the main disk protocol module and the main disk TCP/IP module through interfaces, and the main disk protocol module is used for creating/deleting sockets during communication and sending corresponding socket operation information to the first socket agent module; the first socket agent module is used for synchronizing socket information from the main disk protocol stack to the standby disk protocol stack;
the standby disk comprises a standby disk protocol module, a standby disk TCP/IP module and a second socket agent module, wherein the second socket agent module performs information interaction with the standby disk protocol module and the standby disk TCP/IP module through interfaces, the second socket agent module is used for processing the socket operation information after receiving the socket operation information, synchronizing the socket operation of the primary disk, traversing locally stored socket information by the second socket agent module when the primary disk and the standby disk are switched, providing a keep-alive message of a protocol corresponding to a socket in each socket information by replacing the standby disk protocol module, and stopping providing the keep-alive message by replacing the standby disk protocol module after the primary disk and the standby disk are switched;
and data interaction is respectively carried out between the main disk protocol module and the standby disk protocol module, between the main disk TCP/IP module and the standby disk TCP/IP module, and between the first socket agent module and the second socket agent module through protocol channels.
Among the above modules, the primary disk protocol module, the standby disk protocol module, the primary disk TCP/IP module, and the standby disk TCP/IP module are all modules included in the existing primary and standby control plane devices. In the communication process of the main disk and the standby disk, besides the interactive flow of the invention, the prior functions and the interactive process of related modules in the prior art can be implemented: if the main disc protocol module needs to initiate a communication process through a protocol, a socket is created and sent to the main disc TCP/IP module, and relevant socket information and operation information are backed up to the TCP/IP module of the standby disc through a protocol channel between the main disc TCP/IP module and the standby disc TCP/IP module; when a main disk fault occurs and main and standby switching is implemented, the main disk protocol module synchronizes a protocol state machine to the standby disk protocol module through a protocol channel between the main disk protocol module and the standby disk protocol module.
In a preferred embodiment, the second socket agent module is further configured to identify the socket operation information type after receiving the socket operation information; when the socket operation information is socket creating information, calling a TCP/IP module interface to create a socket and storing the socket; and when the socket operation information is socket deleting information, deleting the locally stored corresponding socket. When the traversed socket is a non-TCP socket, sending a keep-alive message of a protocol corresponding to the non-TCP socket, and releasing the received data message; and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message.
The first socket agent module is also used for obtaining the socket operation information type after receiving the socket operation information and executing the socket creating/deleting operation according to the socket operation information type.
As shown in fig. 2, the present invention further provides an embodiment of a method for controlling uninterrupted routing during switching between a primary disk and a secondary disk of a control plane, where the method in this embodiment includes the following steps:
s1, arranging a first socket proxy module on the main disk, arranging a second socket proxy module on the standby disk, creating/deleting a socket in the first socket proxy module when the main disk operates the socket, and then synchronizing the socket operation information to the second socket proxy module;
s2, the second socket agent module processes the socket operation information after receiving the socket operation information, and synchronizes the socket operation of the master disk;
s3, when the master disk is switched with the standby disk, the second socket proxy module traverses the socket information stored locally, and replaces the standby disk protocol module to provide the keep-alive messages of the protocol corresponding to the socket in each socket information;
and S4, after the switching between the main disk and the standby disk is completed, the socket proxy module stops replacing the standby disk protocol module to provide the keep-alive messages.
The socket operation information in the above process includes two types: the socket creating information and the socket deleting information respectively correspond to the socket creating process of the master disk protocol module in the communication channel creating process in the prior art; and closing the socket deleting process in the communication channel process after finishing the master disk protocol module.
In a preferred embodiment, step S1 specifically includes:
setting a first socket proxy module on a main disk and setting a second socket proxy module on a standby disk; when the master disk operates the socket, the socket operation information is sent to the first socket agent module; after the first socket agent module receives the socket operation information, acquiring the socket operation information type, and executing the socket creating/deleting operation according to the socket operation information type; synchronizing the socket operation information into the second socket agent module.
In a preferred embodiment, step S2 specifically includes:
the second socket agent module identifies the socket operation information type after receiving the socket operation information; when the socket operation information is socket creating information, calling a TCP/IP module interface to create a socket and storing the socket; and when the socket operation information is socket deleting information, deleting the locally stored corresponding socket.
Preferably, when the socket operation information is to create socket information, the method further includes: judging whether the socket created in the created socket information is a TCP socket, and calling a TCP/IP module interface to create a new socket according to the received information of the non-TCP socket when the non-TCP socket is created; when creating the TCP socket, according to the received TCP socket quintuple information, calling the TCP/IP module interface to obtain the socket corresponding to the main disc.
Preferably, in step S3, the step of providing, by the replacement standby disk protocol module, the keep-alive message of the protocol corresponding to the socket in the socket information includes: when the traversed socket is a non-TCP socket, sending a keep-alive message of a protocol corresponding to the non-TCP socket, and releasing the received data message; and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message. The method reduces the cache requirement and releases the system space while ensuring the stability of the relevant protocol.
In step S4, when the protocol module of the standby disk is a protocol module based on the TCP protocol after the switching between the active disk and the standby disk is completed, the second socket agent module may send the received data packet that is cached before to the protocol module of the standby disk for priority processing.
The invention is described in detail below with reference to a specific example:
as shown in the working flowchart of the primary disk socket proxy module in fig. 3, the implementation step of step S1 is as follows:
s101, whether the first socket agent module receives socket creating information of the protocol module or not is judged, if yes, step S103 is executed, and if not, step 102 is executed;
s102, judging whether the first socket agent module receives socket deleting information of the protocol module, if so, executing the step S104, otherwise, finishing the execution;
s103, storing the basic information of the created socket locally, and then executing the step S105;
s104, searching a socket stored locally according to the received information from the protocol module, deleting the socket, and then executing the step S105;
s105, detecting whether the spare disc is in place, if so, executing the step S106, otherwise, ending the execution;
s106, sending the creation or deletion information of the socket to a second socket agent module of the standby disk for processing;
as shown in the working flowchart of fig. 3 when the standby disk socket agent module receives the backup data of the primary disk, the implementation step of step S2 is as follows:
s201, whether the second socket agent module receives the backup information of the main disk or not is judged, if yes, the step S202 is executed, and if not, the execution is ended;
s202, processing the received backup information, and identifying the type of the backup information;
s203, whether the second socket agent module receives the information for creating the socket, if so, executing the step S205, otherwise, executing the step S204
S204, deleting local corresponding socket information according to the received information, and calling a TCP/IP module interface to delete a corresponding socket;
s205, whether the second socket agent module receives the information for creating the TCP socket, if so, executing the step S207, otherwise, executing the step S206;
s206, calling a TCP/IP module interface to create a new socket according to the received information of the non-TCP socket, and ending execution;
s207, calling a TCP/IP module interface to acquire a socket corresponding to the main disk according to the received TCP socket quintuple information, and ending execution;
as shown in the working flowchart of the standby disk socket agent module during the active-standby switching in fig. 4, the implementation step of step S3 is as follows:
s301, switching the main standby disk and the standby disk, wherein the standby disk is promoted to be a logic main disk, if so, executing the step S302, otherwise, ending the step;
s302, the second socket agent module traverses the socket information stored locally to acquire the relevant information of the socket;
s303, judging whether the traversed socket is a TCP socket, if so, executing a step S305, otherwise, executing a step S304;
s304, sending a keep-alive message of a protocol corresponding to the non-TCP socket, and releasing the received data message;
s305, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message;
as shown in the working flowchart of the socket agent module after the spare disk protocol module is promoted in fig. 5, the implementation step of step S4 is as follows:
s401, whether the second socket agent module receives the communication message of the protocol module lifting completion, if so, executing the step S402, otherwise, ending the step;
s402, the second socket agent module stops to replace the protocol module to send the keep-alive message, and hands over the protocol module with the right to send the keep-alive message;
s403, whether the promoted module is based on a protocol module of the TCP is judged, if yes, the step S404 is executed, and if not, the step is finished;
s404, the second socket agent module sends the received data message cached before to the protocol module for priority processing;
the present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (6)

1. A method for controlling uninterrupted routing during switching of primary and standby planes is characterized by comprising the following steps:
a socket proxy module is respectively arranged on the main disk and the standby disk, and the socket operation of the main disk is synchronized between the standby disk and the main disk through the two socket proxy modules;
when the master disk and the standby disk are switched, the socket agent module of the standby disk traverses the locally stored socket information, provides the keep-alive messages of the protocol corresponding to the socket in each socket information, and stops after the switching is finished;
the step of setting a socket proxy module on the main disk and the standby disk respectively, and synchronizing the socket operation of the main disk by the standby disk through the two socket proxy modules specifically includes:
setting a first socket agent module on the main disk, setting a second socket agent module on the standby disk, creating/deleting a socket in the first socket agent module when the main disk operates the socket, and then synchronizing the socket operation information to the second socket agent module;
after receiving the socket operation information, the second socket agent module processes the socket operation information and synchronizes the socket operation of the master disk;
the step of providing keep-alive messages of the protocol corresponding to the sockets in each socket information comprises:
when the traversed socket is a non-TCP socket, sending a keep-alive message of a protocol corresponding to the non-TCP socket, and releasing the received data message;
and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message.
2. The method of uninterrupted routing during switching between master and standby control planes as claimed in claim 1, wherein the step of creating/deleting a socket in a first socket agent module and then synchronizing the socket operation information to the second socket agent module when the master disk operates the socket comprises:
when the master disk operates the socket, sending socket operation information to the first socket agent module;
the first socket agent module obtains the socket operation information type after receiving the socket operation information, and executes the socket creating/deleting operation according to the socket operation information type; and synchronizing the socket operation information to the second socket agent module.
3. The method of claim 1, wherein the method comprises the following steps:
after receiving the socket operation information of the first socket agent module, the second socket agent module identifies the socket operation information type;
when the socket operation information is socket creating information, calling a TCP/IP module interface to create a socket and storing the socket; and when the socket operation information is socket deleting information, deleting the locally stored corresponding socket.
4. The method of claim 3, wherein when the socket operation information is create socket information, the method further comprises: judging whether the socket created in the created socket information is a TCP socket, and calling a TCP/IP module interface to create a new socket according to the received information of the non-TCP socket when the non-TCP socket is created; when creating the TCP socket, according to the received TCP socket quintuple information, calling the TCP/IP module interface to obtain the socket corresponding to the main disc.
5. The method of claim 1, wherein the method comprises the following steps: when the standby disk protocol module is a protocol module based on a TCP protocol after the switching between the main disk and the standby disk is completed, the second socket agent module sends the received data message cached before to the standby disk protocol module for priority processing.
6. A system for uninterrupted routing during switching between a primary disk and a secondary disk of a control plane, comprising: the device comprises a main disk and a standby disk, wherein the main disk and the standby disk are respectively provided with a socket proxy module, and the two socket proxy modules are used for synchronizing the socket operation of the main disk to the standby disk;
the socket agent module of the standby disk is also used for traversing the locally stored socket information when the main standby disk and the standby disk are switched, providing the keep-alive messages of the protocol corresponding to the socket in each socket information, and stopping after the switching is finished;
the main disk comprises a main disk protocol module, a main disk TCP/IP module and a first socket agent module, wherein the first socket agent module performs information interaction with the main disk protocol module and the main disk TCP/IP module through interfaces, and the main disk protocol module is used for creating/deleting sockets during communication and sending corresponding socket operation information to the first socket agent module; the first socket agent module is used for synchronizing socket information from the main disk protocol stack to the standby disk protocol stack;
the standby disk comprises a standby disk protocol module, a standby disk TCP/IP module and a second socket agent module, wherein the second socket agent module performs information interaction with the standby disk protocol module and the standby disk TCP/IP module through interfaces, the second socket agent module is used for processing the socket operation information after receiving the socket operation information, synchronizing the socket operation of the primary disk, traversing locally stored socket information by the second socket agent module when the primary disk and the standby disk are switched, providing a keep-alive message of a protocol corresponding to a socket in each socket information by replacing the standby disk protocol module, and stopping providing the keep-alive message by replacing the standby disk protocol module after the primary disk and the standby disk are switched;
data interaction is respectively carried out between the main disk protocol module and the standby disk protocol module, between the main disk TCP/IP module and the standby disk TCP/IP module, and between the first socket agent module and the second socket agent module through protocol channels;
the second socket agent module is also used for sending a keep-alive message of a protocol corresponding to the non-TCP socket when the traversed socket is the non-TCP socket, and releasing the received data message; and when the traversed socket is a TCP socket, sending a keep-alive message of a protocol corresponding to the TCP socket, and caching the received data message.
CN201911140974.9A 2019-11-20 2019-11-20 System and method for controlling uninterrupted routing during switching of main and standby control planes Active CN110958176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911140974.9A CN110958176B (en) 2019-11-20 2019-11-20 System and method for controlling uninterrupted routing during switching of main and standby control planes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911140974.9A CN110958176B (en) 2019-11-20 2019-11-20 System and method for controlling uninterrupted routing during switching of main and standby control planes

Publications (2)

Publication Number Publication Date
CN110958176A CN110958176A (en) 2020-04-03
CN110958176B true CN110958176B (en) 2022-02-08

Family

ID=69978205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911140974.9A Active CN110958176B (en) 2019-11-20 2019-11-20 System and method for controlling uninterrupted routing during switching of main and standby control planes

Country Status (1)

Country Link
CN (1) CN110958176B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531394B (en) * 2020-11-20 2023-11-17 华为技术有限公司 Data synchronization method and device
US11323309B1 (en) * 2021-01-14 2022-05-03 Juniper Networks, Inc. Asynchronous socket replication between nodes of a network
US11570116B1 (en) 2021-03-10 2023-01-31 Juniper Networks, Inc. Estimating standby socket window size during asynchronous socket replication
CN114244769A (en) * 2021-11-26 2022-03-25 新华三技术有限公司合肥分公司 Method, equipment and storage medium for sending keep-alive message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580215A (en) * 2015-01-09 2015-04-29 烽火通信科技股份有限公司 TCP connection warm backup achieving method
EP2945328A4 (en) * 2013-01-11 2016-01-20 Zte Corp Method and apparatus for keeping alive l2tp tunnel state
US9491107B1 (en) * 2014-06-30 2016-11-08 Juniper Networks, Inc. Non-stop routing with internal session mirroring and adaptive application-level rate limiting
CN107528706A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of equipment main and standby rearranging method and device based on link protocol
CN107645451A (en) * 2017-09-21 2018-01-30 烽火通信科技股份有限公司 It is a kind of that the system and method uninterruptedly routeing is realized by application and protocol stack linkage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2945328A4 (en) * 2013-01-11 2016-01-20 Zte Corp Method and apparatus for keeping alive l2tp tunnel state
US9491107B1 (en) * 2014-06-30 2016-11-08 Juniper Networks, Inc. Non-stop routing with internal session mirroring and adaptive application-level rate limiting
CN104580215A (en) * 2015-01-09 2015-04-29 烽火通信科技股份有限公司 TCP connection warm backup achieving method
CN107528706A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of equipment main and standby rearranging method and device based on link protocol
CN107645451A (en) * 2017-09-21 2018-01-30 烽火通信科技股份有限公司 It is a kind of that the system and method uninterruptedly routeing is realized by application and protocol stack linkage

Also Published As

Publication number Publication date
CN110958176A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN110958176B (en) System and method for controlling uninterrupted routing during switching of main and standby control planes
CN103583063B (en) System and method for the fault recovery of geographic redundancy gateway
KR101099822B1 (en) Redundant routing capabilities for a network node cluster
JP5187249B2 (en) Redundant system connection recovery device, method and processing program
EP2586163B1 (en) Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel
WO2016082412A1 (en) Method and apparatus for realizing reliable transmission of data, and computer storage medium
CN110351127B (en) Graceful restart method, device and system
JP2005160000A (en) Apparatus and method for processing control packet in spanning tree protocol
CN106878072B (en) Message transmission method and device
CN111049682B (en) Method, system and central network equipment for realizing uninterrupted service upgrade
US8411558B1 (en) Stateful home agent recovery protocol (SHARP)
CN110943928B (en) Method for synchronizing forwarding information states, controller, network forwarding device and storage medium
US8203934B2 (en) Transparent automatic protection switching for a chassis deployment
JP2019511861A (en) Basic service set identifier BSSID update
EP2469769B1 (en) Method and system for updating blocked port information
CN111371680B (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN102307194B (en) Graceful restarting method and device for universal protocol process
CN115589273A (en) EPA communication system
CN101827035B (en) Method for ensuring graceful restarting and dual master control network device
CN102420746A (en) Forwarding method for multicast flow and network equipment therefor
CN100461764C (en) Method and system for implementing consistency of message forwarding routes
EP3002906A1 (en) Method and device for updating radio network controller
US8964535B2 (en) Methods, apparatus and communication network for providing restoration survivability
CN102404339B (en) Fire wall system and data processing method based on fire wall system
CN101938395B (en) Method and system for refreshing single ring address of Ethernet ring network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant