CN113286321B - Backup management method, device, equipment and machine readable storage medium - Google Patents

Backup management method, device, equipment and machine readable storage medium Download PDF

Info

Publication number
CN113286321B
CN113286321B CN202110481755.8A CN202110481755A CN113286321B CN 113286321 B CN113286321 B CN 113286321B CN 202110481755 A CN202110481755 A CN 202110481755A CN 113286321 B CN113286321 B CN 113286321B
Authority
CN
China
Prior art keywords
equipment
standby
channel
establishing
backup
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
CN202110481755.8A
Other languages
Chinese (zh)
Other versions
CN113286321A (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110481755.8A priority Critical patent/CN113286321B/en
Publication of CN113286321A publication Critical patent/CN113286321A/en
Application granted granted Critical
Publication of CN113286321B publication Critical patent/CN113286321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Abstract

The present disclosure provides a backup management method, apparatus, device and machine-readable storage medium, including: establishing UDP connection with host equipment, establishing a heartbeat channel through the UDP connection, and establishing local equipment as standby equipment according to the main and standby elections; establishing a TCP connection with a host device, and establishing a configuration backup channel through the TCP connection; establishing a two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection; and receiving a triggered master/standby election signaling transmitted through a heartbeat channel after the host equipment fails, and when the host equipment fails, determining that the local equipment is new host equipment according to the result of the master/standby election again. According to the scheme, the independent heartbeat channel, the configuration backup channel and the session backup channel are established, when a certain channel fails, information interaction and data backup of other channels are not influenced, and the real-time performance of the heartbeat channel, the accuracy of the configuration backup channel and the high speed of the session backup channel are ensured.

Description

Backup management method, device, equipment and machine readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a backup management method, apparatus, device, and machine-readable storage medium.
Background
With the advent of the 5G era, the reliability requirements of operators on network security equipment are higher and higher. In order to meet the requirement of 5G network deployment and construction, an operator needs to newly build a core network for 5G services in each city.
A certain operator 5G core network is respectively arranged at two nodes of a local point A and a local point B, two firewalls are adopted in each node and are hung on two 5GC CE routers, an NAT firewall is deployed in a main and standby mode networking, the CE forwards flow to a main NAT firewall through a route for NAT conversion and service processing, and when a main firewall link or equipment fails, the main firewall is switched to a standby firewall for bearing.
The multi-machine backup function provides a solution for network reliability at a device level through a Virtual Service Redundancy Protocol (VSRP).
However, the current multi-computer backup scheme has the problem of easy oscillation and insufficient real-time data transmission.
Disclosure of Invention
In view of the above, the present disclosure provides a backup management method, a backup management apparatus, an electronic device, and a machine-readable storage medium to solve at least one of the problems of the connection being prone to oscillation and poor real-time data transmission.
The specific technical scheme is as follows:
the present disclosure provides a backup management method, which is applied to a standby device of a backup system, and the method includes: establishing UDP connection with host equipment, establishing a heartbeat channel through the UDP connection, and establishing local equipment as standby equipment according to main and standby elections, wherein the heartbeat channel is used for receiving a heartbeat message sent by the host equipment; establishing a TCP connection with a host device, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for receiving configuration information sent by the host device; establishing a two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for receiving session information sent by the host equipment; and receiving a triggered master/standby election signaling transmitted through a heartbeat channel after the host equipment fails, and when the host equipment fails, determining that the local equipment is new host equipment according to the result of the master/standby election again.
As a technical solution, the receiving a master/slave election signaling triggered by a heartbeat channel after a host device fails, and when the host device fails, according to a result of the master/slave election again, determining a local device as a new host device includes: and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
As a technical solution, according to the preemption function configured by the original host device, after the failure of the original host device is recovered, the local device is determined to be the standby device according to the result of the primary/standby election again.
The present disclosure also provides a backup management method, which is applied to a host device of a backup system, and the method includes: establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, and establishing the local equipment as the host equipment according to the main and standby elections, wherein the heartbeat channel is used for sending a heartbeat message to the standby equipment; establishing a TCP connection with the standby equipment, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for transmitting configuration information to the standby equipment; establishing a two-layer connection according to the interactive information with the standby equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for transmitting session information to the standby equipment; and according to the fault information of the local equipment, after the fault occurs, the triggered master/standby election signaling is transmitted through the heartbeat channel, so that the standby equipment is determined as new host equipment according to the result of the master/standby election again.
The present disclosure also provides a backup management device, which is applied to a standby device of a backup system, and the device includes: the channel module is used for establishing UDP connection with the host equipment, establishing a heartbeat channel through the UDP connection, establishing TCP connection with the host equipment, establishing a configuration backup channel through the TCP connection, establishing two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection; the transmission module is used for receiving a heartbeat message sent by the host equipment through the heartbeat channel, receiving configuration information sent by the host equipment through the configuration backup channel and receiving session information sent by the host equipment through the session backup channel; and the main/standby module is used for determining the local device as a standby device according to the main/standby elections, receiving a main/standby election signaling triggered by the heartbeat channel after the host device fails, and determining the local device as a new host device according to a result of the main/standby elections again when the host device fails.
As a technical solution, the receiving a master/slave election signaling triggered by a heartbeat channel after a host device fails, and when the host device fails, according to a result of the master/slave election again, determining a local device as a new host device includes: and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
As a technical solution, according to the preemption function configured by the original host device, after the failure of the original host device is recovered, the local device is determined to be the standby device according to the result of the primary/standby election again.
The present disclosure also provides a backup management apparatus, which is applied to a host device of a backup system, and the apparatus includes: the channel module is used for establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, establishing TCP connection with the standby equipment, establishing a configuration backup channel through the TCP connection, establishing two-layer connection according to the interactive information with the standby equipment and establishing a session backup channel through the two-layer connection; the transmission module is used for sending the heartbeat message to the standby machine equipment through the heartbeat channel, sending the configuration information to the standby machine equipment through the configuration backup channel and sending the session information to the standby machine equipment through the session backup channel; and the main/standby module is used for determining the local equipment as the standby equipment according to the main/standby elections, and transmitting a triggered main/standby election signaling through the heartbeat channel after the local equipment fails according to the fault information of the local equipment so that the standby equipment can be determined as new host equipment according to the result of the main/standby elections again.
The present disclosure also provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the aforementioned backup management method.
The present disclosure also provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned backup management method.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
the method has the advantages that independent UDP heartbeat channels, TCP configuration backup channels and two-layer network session backup channels are established, when a certain channel fails, information interaction and data backup of other channels are not influenced, and meanwhile, the instantaneity of the heartbeat channels, the accuracy of the configuration backup channels and the high speed of the session backup channels are guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
FIG. 1 is a flow diagram of a backup management method in one embodiment of the present disclosure;
FIG. 2 is a flow diagram of a backup management method in one embodiment of the present disclosure;
FIG. 3 is a block diagram of a backup management device in one embodiment of the present disclosure;
FIG. 4 is a block diagram of a backup management device in one embodiment of the present disclosure;
fig. 5 is a hardware configuration diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The main device and the standby device of multi-machine backup need to use a channel to synchronize multi-machine backup state data and service data. The channel is created using a TCP connection. The channels of the multi-machine backup system comprise the following two types:
1) a control channel: the method is realized by establishing TCP connection between two devices in the multi-machine backup group. And the control channel synchronizes the state change information of the multi-computer backup example to the standby equipment in real time. In a multi-machine backup group, all multi-machine backup instances use the same control channel.
2) Service data channel: when the service is associated with the multi-machine backup instance, a service data channel (TCP connection) is created on the devices at the two ends of the multi-machine backup instance, and the service data channel is used for synchronizing the real-time state of the service and the service operation information, so as to ensure that the standby device can replace the main device when the main device fails, and the service is not interrupted.
However, in the above technical solution, the control channel uses TCP connection, which is easy to oscillate and cannot support configuration backup, and the data channel uses TCP transmission, which results in poor real-time performance of data transmission.
In view of the above, the present disclosure provides a backup management method, a backup management apparatus, an electronic device, and a machine-readable storage medium to solve at least one of the problems of the connection being prone to oscillation and poor real-time data transmission.
Specifically, the technical scheme is as follows.
The present disclosure provides a backup management method, which is applied to a standby device of a backup system, and the method includes: establishing UDP connection with host equipment, establishing a heartbeat channel through the UDP connection, and establishing local equipment as standby equipment according to main and standby elections, wherein the heartbeat channel is used for receiving a heartbeat message sent by the host equipment; establishing a TCP connection with a host device, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for receiving configuration information sent by the host device; establishing a two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for receiving session information sent by the host equipment; and receiving a triggered master/standby election signaling transmitted through a heartbeat channel after the host equipment fails, and when the host equipment fails, determining that the local equipment is new host equipment according to the result of the master/standby election again.
Specifically, as shown in fig. 1, the method comprises the following steps:
step S11, establish UDP connection with the host device, establish a heartbeat channel through UDP connection, and establish the local device as a standby device according to the master-standby election.
The heartbeat channel is used for receiving a heartbeat message sent by the host equipment.
Step S12, a TCP connection is established with the host device, and a configuration backup channel is established through the TCP connection.
The configuration backup channel is used for receiving configuration information sent by the host equipment.
And step S13, establishing a two-layer connection according to the interactive information with the host device, and establishing a session backup channel through the two-layer connection.
The session backup channel is used for receiving session information sent by the host equipment.
Step S14, receiving a triggered master/slave election signaling transmitted through the heartbeat channel after the host device fails, and when the host device fails, determining that the local device is a new host device according to a result of the master/slave election again.
The method has the advantages that independent UDP heartbeat channels, TCP configuration backup channels and two-layer network session backup channels are established, when a certain channel fails, information interaction and data backup of other channels are not influenced, and meanwhile, the instantaneity of the heartbeat channels, the accuracy of the configuration backup channels and the high speed of the session backup channels are guaranteed.
As a technical solution, the receiving a master/slave election signaling triggered by a heartbeat channel after a host device fails, and when the host device fails, according to a result of the master/slave election again, determining a local device as a new host device includes: and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
As a technical solution, according to the preemption function configured by the original host device, after the failure of the original host device is recovered, the local device is determined to be the standby device according to the result of the primary/standby election again.
The present disclosure also provides a backup management method, which is applied to a host device of a backup system, and the method includes: establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, and establishing the local equipment as the host equipment according to the main and standby elections, wherein the heartbeat channel is used for sending a heartbeat message to the standby equipment; establishing a TCP connection with the standby equipment, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for transmitting configuration information to the standby equipment; establishing a two-layer connection according to the interactive information with the standby equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for transmitting session information to the standby equipment; and according to the fault information of the local equipment, after the fault occurs, the triggered master/standby election signaling is transmitted through the heartbeat channel, so that the standby equipment is determined as new host equipment according to the result of the master/standby election again.
Specifically, as shown in fig. 2, the method comprises the following steps:
and step S21, establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, and establishing the local equipment as the host equipment according to the main and standby elections.
The heartbeat channel is used for sending a heartbeat message to the standby equipment.
And step S22, establishing a TCP connection with the standby equipment, and establishing a configuration backup channel through the TCP connection.
The configuration backup channel is used for transmitting configuration information to the standby equipment.
And step S23, establishing a two-layer connection according to the interactive information with the standby equipment, and establishing a session backup channel through the two-layer connection.
The session backup channel is used for sending session information to the standby equipment.
Step S24, according to the fault information of the local device, after the fault occurs, the triggered master/slave election signaling is transmitted through the heartbeat channel, so that the backup device establishes that the backup device is a new host device according to the result of the new master/slave election.
In the technical scheme provided by the disclosure, the multi-channel separation of the connection of the main and standby machines comprises a heartbeat channel, a configuration backup channel and a session backup channel. The heartbeat channel is connected by UDP, so that the real-time performance of the heartbeat message and the quick response of the dual-computer state switching are ensured, and the heartbeat channel is not influenced by other backup messages. And configuring a backup channel as TCP connection, and ensuring reliable transmission of backup data by using the stream characteristics of TCP. The session backup channel is a two-layer message, and the message is forwarded through the MAC address and directly reaches the standby machine, so that the performance is high, the protocol stack is not limited, and the standby machine can be interconnected only by two layers.
The equipment in the main and standby system establishes UDP connection with the opposite terminal, after the heartbeat channel is established, the two machines interact information to select the main and standby, simultaneously establishes TCP connection used by backup configuration information, and establishes a two-layer transmission channel in the kernel through driving according to the information of interactive MAC and the like.
Messages such as heartbeat messages and host fault switching are transmitted through UDP connection, and real-time processing of the heartbeat messages and host-standby fault switching is guaranteed. The host computer is configured to the backup of the standby computer through TCP connection, and the configuration real-time backup and the configuration batch backup use the same queue, so that the configuration sequence is ensured, and the configuration backup failure caused by the time sequence problem is prevented. The session is directly sent by the kernel through a two-layer transmission channel established by the driver, and the corresponding information such as MDC ID, SLOT ID, CPU ID and the like is sent to the opposite terminal equipment through the MAC. And interacting information such as MAC (media access control) of both sides through the control channel, issuing the information to the driver by the equipment, and establishing a two-layer transmission channel through the driver.
When the host equipment breaks down, the host equipment triggers election through the heartbeat channel, and at the moment, the health value of the standby equipment is higher, so that the standby equipment is upgraded to new host equipment, and the original host equipment is forced to become new standby equipment.
When the original host equipment is recovered from the fault, the original host equipment triggers election again, and at the moment, the health degree of the new host equipment is equivalent to that of the original host equipment, so that the main-standby switching does not occur. However, if the configuration of the original host device enables the preemption function, the original host device performs preemption, and after a certain delay, the original host device preempts and restores the host device, and the primary-standby relationship is adjusted accordingly.
When the connection of the heartbeat channel UDP is disconnected, the session backup channel is separated from the heartbeat channel, so that the session can be continuously backed up, and even if the traffic is sent to the standby machine at the moment, the session forwarding can still be matched.
The present disclosure also provides a backup management apparatus, as shown in fig. 3, applied to a standby device of a backup system, the apparatus includes: the channel module 31 is configured to establish a UDP connection with the host device, establish a heartbeat channel through the UDP connection, establish a TCP connection with the host device, establish a configuration backup channel through the TCP connection, establish a two-layer connection according to the interaction information with the host device, and establish a session backup channel through the two-layer connection; the transmission module 32 is configured to receive a heartbeat message sent by the host device through the heartbeat channel, receive configuration information sent by the host device through the configuration backup channel, and receive session information sent by the host device through the session backup channel; the active/standby module 33 is configured to determine that the local device is the standby device according to the active/standby election, receive a triggered active/standby election signaling transmitted through the heartbeat channel after the host device fails, and determine that the local device is the new host device according to a result of the active/standby election again when the host device fails.
As a technical solution, the receiving a master/slave election signaling triggered by a heartbeat channel after a host device fails, and when the host device fails, according to a result of the master/slave election again, determining a local device as a new host device includes: and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
As a technical solution, according to the preemption function configured by the original host device, after the failure of the original host device is recovered, the local device is determined to be the standby device according to the result of the primary/standby election again.
The present disclosure also provides a backup management apparatus, as shown in fig. 4, applied to a host device of a backup system, the apparatus including: the channel module 41 is configured to establish a UDP connection with the standby device, establish a heartbeat channel through the UDP connection, establish a TCP connection with the standby device, establish a configuration backup channel through the TCP connection, establish a two-layer connection according to the interaction information with the standby device, and establish a session backup channel through the two-layer connection; the transmission module 42 is configured to send a heartbeat message to the standby device through the heartbeat channel, send configuration information to the standby device through the configuration backup channel, and send session information to the standby device through the session backup channel; and a main/standby module 43, configured to establish the local device as a standby device according to the main/standby election, and according to the fault information of the local device, transmit a triggered main/standby election signaling through the heartbeat channel after the fault occurs, so that the standby device establishes that the standby device is a new host device according to a result of the main/standby election again.
The device embodiments are the same or similar to the corresponding method embodiments and are not described herein again.
In one embodiment, the present disclosure provides an electronic device, which includes a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing backup management method, and from a hardware level, a schematic diagram of a hardware architecture may be shown in fig. 5.
In one embodiment, the present disclosure provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned backup management method.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A backup management method is characterized in that the backup management method is applied to backup equipment of a backup system, and the method comprises the following steps:
establishing UDP connection with host equipment, establishing a heartbeat channel through the UDP connection, and establishing local equipment as standby equipment according to main and standby elections, wherein the heartbeat channel is used for receiving a heartbeat message sent by the host equipment;
establishing a TCP connection with a host device, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for receiving configuration information sent by the host device;
establishing a two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for receiving session information sent by the host equipment;
and receiving a triggered master/standby election signaling transmitted through a heartbeat channel after the host equipment fails, and when the host equipment fails, determining that the local equipment is new host equipment according to the result of the master/standby election again.
2. The method according to claim 1, wherein the receiving a triggered master/slave election signaling transmitted through a heartbeat channel after the host device fails, and when the host device fails, according to a result of the master/slave election again, establishing the local device as a new host device comprises:
and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
3. The method of claim 2, wherein the local device is established as a standby device according to the preemption feature configured by the primary host device and according to the result of the primary/standby election again after the failure of the primary host device is recovered.
4. A backup management method applied to a host device of a backup system, the method comprising:
establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, and establishing the local equipment as the host equipment according to the main and standby elections, wherein the heartbeat channel is used for sending a heartbeat message to the standby equipment;
establishing a TCP connection with the standby equipment, and establishing a configuration backup channel through the TCP connection, wherein the configuration backup channel is used for transmitting configuration information to the standby equipment;
establishing a two-layer connection according to the interactive information with the standby equipment, and establishing a session backup channel through the two-layer connection, wherein the session backup channel is used for transmitting session information to the standby equipment;
and according to the fault information of the local equipment, after the fault occurs, the triggered master/standby election signaling is transmitted through the heartbeat channel, so that the standby equipment is determined as new host equipment according to the result of the master/standby election again.
5. A backup management apparatus, characterized in that, the apparatus is applied to a backup device of a backup system, and the apparatus comprises:
the channel module is used for establishing UDP connection with the host equipment, establishing a heartbeat channel through the UDP connection, establishing TCP connection with the host equipment, establishing a configuration backup channel through the TCP connection, establishing two-layer connection according to the interactive information with the host equipment, and establishing a session backup channel through the two-layer connection;
the transmission module is used for receiving a heartbeat message sent by the host equipment through the heartbeat channel, receiving configuration information sent by the host equipment through the configuration backup channel and receiving session information sent by the host equipment through the session backup channel;
and the main/standby module is used for determining the local device as a standby device according to the main/standby elections, receiving a main/standby election signaling triggered by the heartbeat channel after the host device fails, and determining the local device as a new host device according to a result of the main/standby elections again when the host device fails.
6. The apparatus according to claim 5, wherein the receiving of the active/standby election signaling triggered by the heartbeat channel after the host device fails, and when the host device fails, according to a result of the active/standby election again, determining that the local device is a new host device includes:
and according to the triggered master/standby election signaling transmitted through the heartbeat channel after the original host equipment is recovered from the fault, and according to the result of the master/standby election again after the original host equipment is recovered from the fault, determining that the local equipment is the master equipment or the standby equipment.
7. The apparatus of claim 6, wherein the local device is determined to be the standby device according to the preemption function configured by the original host device and according to the result of the primary/standby election again after the failure of the original host device is recovered.
8. A backup management apparatus applied to a host device of a backup system, the apparatus comprising:
the channel module is used for establishing UDP connection with the standby equipment, establishing a heartbeat channel through the UDP connection, establishing TCP connection with the standby equipment, establishing a configuration backup channel through the TCP connection, establishing two-layer connection according to the interactive information with the standby equipment and establishing a session backup channel through the two-layer connection;
the transmission module is used for sending the heartbeat message to the standby machine equipment through the heartbeat channel, sending the configuration information to the standby machine equipment through the configuration backup channel and sending the session information to the standby machine equipment through the session backup channel;
and the main/standby module is used for determining the local equipment as the standby equipment according to the main/standby elections, and transmitting a triggered main/standby election signaling through the heartbeat channel after the local equipment fails according to the fault information of the local equipment so that the standby equipment can be determined as new host equipment according to the result of the main/standby elections again.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1-4.
CN202110481755.8A 2021-04-30 2021-04-30 Backup management method, device, equipment and machine readable storage medium Active CN113286321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110481755.8A CN113286321B (en) 2021-04-30 2021-04-30 Backup management method, device, equipment and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110481755.8A CN113286321B (en) 2021-04-30 2021-04-30 Backup management method, device, equipment and machine readable storage medium

Publications (2)

Publication Number Publication Date
CN113286321A CN113286321A (en) 2021-08-20
CN113286321B true CN113286321B (en) 2022-02-22

Family

ID=77277861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110481755.8A Active CN113286321B (en) 2021-04-30 2021-04-30 Backup management method, device, equipment and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN113286321B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733728A (en) * 2017-11-30 2018-02-23 新华三技术有限公司 Multi-computer back-up method and apparatus
CN110417584A (en) * 2019-07-10 2019-11-05 南京南瑞继保电气有限公司 A kind of two-shipper main/standby switching method based on multi-link election mechanism
CN112099990A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Disaster recovery backup method, device, equipment and machine readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080249A1 (en) * 2014-09-17 2016-03-17 Telefonaktiebolaget L M Ericsson (Publ) Prevent vrrp master / master split in active / standby icr system
US11323288B2 (en) * 2018-08-07 2022-05-03 Dh2I Company Systems and methods for server cluster network communication across the public internet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733728A (en) * 2017-11-30 2018-02-23 新华三技术有限公司 Multi-computer back-up method and apparatus
CN110417584A (en) * 2019-07-10 2019-11-05 南京南瑞继保电气有限公司 A kind of two-shipper main/standby switching method based on multi-link election mechanism
CN112099990A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Disaster recovery backup method, device, equipment and machine readable storage medium

Also Published As

Publication number Publication date
CN113286321A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
EP1905203B1 (en) Router and method for protocol process migration
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CN111698158B (en) Method and device for electing master equipment and machine-readable storage medium
EP2424186B1 (en) Dual-computer hot-standby method, device and system
EP3316555B1 (en) Mac address synchronization method, device and system
US20140185429A1 (en) Communication system, path switching method and communication device
CN106878072B (en) Message transmission method and device
CN107465613B (en) Link aggregation interface communication state switching method and device
CN109495345B (en) BFD processing method and network equipment
CN113132229A (en) Segment identifier determination method and device
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
CN112367254A (en) Cross-device link aggregation method and device and electronic device
CN109150659B (en) Processor and BFD message transmission method
CN101989953A (en) Method and equipment for sending bidirectional forwarding detection message
CN110278094B (en) Link recovery method, device, system, storage medium and electronic device
CN108989204B (en) Link state determination method and device
CN106533771B (en) Network equipment and control information transmission method
CN103200092B (en) A kind of routing daemon management method and equipment based on virtual network device
CN111431921B (en) Configuration synchronization method
CN113286321B (en) Backup management method, device, equipment and machine readable storage medium
CN111064622B (en) Network device, synchronization apparatus, and information transmission method
CN113037622B (en) System and method for preventing BFD from vibrating
CN111835544B (en) Monitoring method and system of virtual router based on user mode protocol stack
CN107959603B (en) Forwarding control method and device

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