CN114070781B - Data communication method, device, system and computer equipment - Google Patents
Data communication method, device, system and computer equipment Download PDFInfo
- Publication number
- CN114070781B CN114070781B CN202010780744.5A CN202010780744A CN114070781B CN 114070781 B CN114070781 B CN 114070781B CN 202010780744 A CN202010780744 A CN 202010780744A CN 114070781 B CN114070781 B CN 114070781B
- Authority
- CN
- China
- Prior art keywords
- message
- working
- data
- host
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/34—Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data communication method, a device, a system and computer equipment, wherein the data communication method comprises the following steps: when the VRRP virtual router is started, sending an information message corresponding to the working data to the backup host, wherein the information message is used for representing the basic information of the working data; and when the receiving message is received, sending a working data message to the backup host. By implementing the invention, when the VRRP virtual router is started, the information message and the working data message are sequentially sent to the backup host, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
Description
Technical Field
The invention relates to the technical field of industrial control safety, in particular to a data communication method, a device, a system and computer equipment.
Background
The dual hot Standby uses two servers that are backed up together to execute the same service, wherein one host is a Primary Server and the other is a backup host. When the working host fails, the backup host is started to work, so that the working host and the backup host need to backup real-time data, and the backup host can directly take over the work of the working host when the working host fails.
In the related art, when a default routing port between a working host and a backup host is closed, a virtual router is enabled to realize full network communication through a virtual router redundancy protocol (Virtual Router Redundancy Protocol, VRRP). However, the VRRP protocol only defines a set of mechanism to ensure negotiation and switching between the working host and the backup host, and when the virtual router is enabled for communication, the data transmission backup between the dual hot standby devices cannot be realized, so that the normal operation of the backup host is affected. Therefore, a data communication method is needed to ensure the real-time data backup of dual-machine hot standby of the VRRP enabled virtual router.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that the VRRP protocol itself cannot guarantee the reliability of real-time data transmission in the prior art, thereby providing a data communication method, a device, a system and computer equipment.
According to a first aspect, an embodiment of the present invention discloses a data communication method, including the steps of: when the VRRP virtual router is started, sending an information message corresponding to the working data to the backup host, wherein the information message is used for representing the basic information of the working data; and when the receiving message is received, sending a working data message to the backup host.
Optionally, the method further comprises: and sending an end message to the backup host.
Optionally, the information message corresponding to the working data includes a message sequence number of the working data segmentation, and after the working data message is sent to the backup host when the receiving message is determined to be received, the method further includes: receiving a message sequence number of a missing message sent by the backup host; and sending a corresponding missing message to the backup host according to the message sequence number of the missing message until receiving the received message sent by the backup host.
Optionally, the method further comprises: and stopping sending the working data message to the backup host when receiving the message refused to receive.
According to a second aspect, the embodiment of the invention also discloses a data communication method, which comprises the following steps: when receiving an information message corresponding to working data sent by a working host, confirming whether the working data is received or not according to the information message corresponding to the working data, wherein the information message is used for representing basic information of the working data; when the work data is confirmed to be received, sending a confirmation receiving message to the work host; and receiving the working data message sent by the working host.
Optionally, the method further comprises: and receiving an end message sent by the working host.
Optionally, the information message corresponding to the working data includes a message sequence number of the working data segmentation, and after receiving the working data message sent by the working host, the method further includes: sequencing the working data messages; when the end message is received, determining the message sequence number of the missing message according to the sequencing result and the message sequence number of the working data segmentation; transmitting the message serial number of the missing message to the working host; and receiving the missing data message sent by the working host until the received data message is consistent with the information in the information message, and sending the received message to the working host.
According to a third aspect, an embodiment of the present invention further discloses a data communication system, including: the working host is in communication connection with the backup host; the working host is configured to perform the steps of the data communication method according to the first aspect or any optional implementation manner of the first aspect; the backup host is configured to perform the steps of the data communication method according to the second aspect or any of the alternative embodiments of the second aspect.
According to a fourth aspect, an embodiment of the present invention also discloses a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform steps of the data communication method according to the first aspect or any optional implementation of the second aspect.
According to a fifth aspect, the embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the data communication method according to the first aspect or any optional implementation of the second aspect.
The technical scheme of the invention has the following advantages:
1. according to the data communication method and device, when the VRRP virtual router is started, the information message corresponding to the working data is sent to the backup host, the information message is used for representing the basic information of the working data, and when the received message is determined, the working data message is sent to the backup host. By implementing the invention, when the VRRP virtual router is started, the information message and the working data message are sequentially sent to the backup host, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
2. The data communication method and the data communication device provided by the invention are characterized in that whether the working data is received or not is confirmed according to the information message corresponding to the working data when the information message corresponding to the working data sent by the working host is received, the information message is used for representing the basic information of the working data, and when the working data is confirmed to be received, a confirmation receiving message is sent to the working host, and the working data message sent by the working host is received. According to the invention, the problem that the virtual router cannot realize data backup between the dual-computer hot standby is solved by sequentially receiving the information message and the working data message sent by the working host, so that the backup data in the dual-computer hot standby is not lost, and the normal work of the backup host is ensured.
3. According to the data communication system provided by the invention, when the VRRP virtual router is started, the working host sends the information message and the working data message to the backup host in sequence, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart showing a specific example of a data communication method in the embodiment of the present invention;
FIG. 2 is a flowchart showing another specific example of the data communication method in the embodiment of the present invention;
FIG. 3 is a diagram showing a specific example of a data communication system according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of one specific example of a data communication device in an embodiment of the present invention;
FIG. 5 is a functional block diagram of another specific example of a data communication device in an embodiment of the present invention;
fig. 6 is a diagram showing a specific example of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, or can be communicated inside the two components, or can be connected wirelessly or in a wired way. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The dual hot Standby uses two servers that backup each other to jointly execute the same service, wherein one host is a working host (Primary Server) and the other is a backup host (Standby Server), for example, a main firewall and a backup firewall, and working data of the main firewall are backed up to the backup firewall through a heartbeat port. Meanwhile, the standby firewall can send heartbeat messages to the main firewall through the heartbeat port, monitor whether the main firewall fails or not in real time, and when the standby firewall cannot receive the heartbeat messages of the main firewall in 3 continuous heartbeat cycles, consider that the main firewall fails, the standby firewall is switched to a main state according to a switching mechanism of the VRRP protocol, and becomes a new main firewall to replace the failed main firewall to work. Therefore, the backup of real-time data is needed between the main firewall and the standby firewall, so that the standby firewall can directly take over the work of the working host when the main firewall fails.
The embodiment of the invention discloses a data communication method, as shown in fig. 1, comprising the following steps:
s11: when the VRRP virtual router is started, an information message corresponding to the working data is sent to the backup host, and the information message is used for representing the basic information of the working data.
Illustratively, the method for determining the VRRP virtual router enablement may be determined for detecting an IP address of a router in the network, and determining that the VRRP virtual router is enabled when detecting that the IP address of the router is a virtual IP address. The information message sent to the backup host can be directly sent to the backup host through a wired network or a wireless network, or can be sent to the backup host through an intermediate device. The method for sending the information message is not particularly limited in the embodiment of the invention, and can be selected by a person skilled in the art according to actual conditions.
The information message may include a message sequence number of the work data division, a size of the work data, the number of the work data division, and the like. The information message may be a UDP message, where the source IP address of the UDP protocol is the IP address of the working host router, and the destination IP is the IP address of the backup host router.
S12: and when the receiving message is received, sending a working data message to the backup host.
When receiving the information message, the backup host determines whether to receive the working data according to the information message, and sends a feedback message to the working host. Specifically, the backup host may use a confirmation mechanism to confirm whether to receive the working data, and when the backup host confirms that the working data is received, send a confirmation receiving message to the working host, and when the working host receives the confirmation receiving message, send a working data message to the backup host; when the backup host confirms that the working data is not received, a refusing receiving message is sent to the working host, and when the working host receives the refusing receiving message, the working host stops sending the working data message to the backup host, so that the network load is reduced.
The condition that the backup host does not receive the working data may be that the backup host already has the working data, that the router of the backup host has not finished the last receiving operation (i.e. the router of the backup host is in an operating state), and so on.
The sending method of the working data message and the receiving method of the message for determining the received working data are consistent with the sending method of the information message, and the description of the sending method of the information message can be referred to specifically, and will not be repeated here.
According to the data communication method provided by the invention, when the VRRP virtual router is started, the information message corresponding to the working data is sent to the backup host, the information message is used for representing the basic information of the working data, and when the received message is determined, the working data message is sent to the backup host. By implementing the invention, when the VRRP virtual router is started, the information message and the working data message are sequentially sent to the backup host, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
As an optional embodiment of the present invention, the data communication method further includes:
and sending an end message to the backup host.
The method for sending the end message is identical to the method for sending the information message, and specifically, the description of the method for sending the information message can be referred to, which is not repeated herein. And sending an end message to the backup host to inform the backup host that the working data message is sent completely, and when the backup host receives the end message, considering that the working data message is received completely, starting to confirm whether the working data message is completely received (namely, whether the working data message is lost or not), wherein the working data message can be confirmed according to a confirmation mechanism of the backup host.
Further, the end message can be sent to the backup host when the target interval time after the working data message is sent is over, so that the condition that the backup host receives the end message earlier than the working data message is reduced, and the receiving efficiency of the working data message is improved. The target interval time may be 1s, which is not limited in the embodiment of the present invention, and may be set by a person skilled in the art according to an actual network speed.
As an optional embodiment of the present invention, the information message corresponding to the working data includes a message sequence number of the working data segmentation, and after the step S12, the data communication method further includes:
firstly, receiving a message sequence number of a missing message sent by a backup host.
The message sequence number may be packaged by the backup host to be sent as a message, and the specific sending method is consistent with the sending method of the information message, and the description of the method for sending the information message may be referred to specifically, which is not repeated herein.
The method for determining the missing message can be that an error sequence rearrangement mechanism is observed when the backup host receives the group of working data messages, the received group of working data messages are sequenced according to the message sequence numbers, and the message sequence numbers can be discontinuous when the sequence is sequenced, so long as the fact that the message sequence numbers are arranged from small to large is ensured. Comparing the message serial numbers segmented according to the working data in the information message with the received arranged messages, and determining the missing message serial numbers as the message serial numbers of the missing messages.
And secondly, sending a corresponding missing message to the backup host according to the message sequence number of the missing message until receiving the received message sent by the backup host.
The method for sending the missing message is consistent with the method for sending the information message, and specifically, the description of the method for sending the information message can be referred to, and will not be repeated here.
In the embodiment of the invention, the corresponding missing message is sent to the backup host according to the message sequence number of the missing message, and the corresponding missing message can be sent to the backup host again according to the retransmission mechanism. There are two retransmission mechanisms: an automatic retransmission mechanism and a request retransmission mechanism. When the message is transmitted in the automatic retransmission mechanism, a timer is started, and if the confirmation message of the receiver is not received within a specified period of time, the message is considered to be lost and the message is retransmitted. And the retransmission request mechanism detects the received data message after the receiving party receives the end message sent by the sending party, and when the receiving party finds that the data message is missing, the receiving party actively requests to retransmit the missing message. In order to reduce the number of message transmissions, reduce the network load and improve the message transmission efficiency, the embodiment of the invention adopts a request retransmission mechanism to retransmit the missing message.
The invention ensures the integrity of the working data by resending the missing message, improves the reliability of the transmission of the working data, ensures that the data is not interrupted when the working host and the backup host are switched, and powerfully ensures the safety and reliability of the network environment.
The embodiment of the invention also discloses a data communication method, as shown in fig. 2, comprising the following steps:
s21: when receiving an information message corresponding to the working data sent by the working host, confirming whether the working data is received or not according to the information message corresponding to the working data, wherein the information message is used for representing basic information of the working data; the specific implementation manner is shown in step S11 in the above embodiment, and will not be described herein.
S22: when the work data is confirmed to be received, sending a confirmation receiving message to a work host; the specific implementation manner is shown in step S12 in the above embodiment, and will not be described herein.
S23: and receiving a working data message sent by the working host. The specific implementation manner is shown in step S13 in the above embodiment, and will not be described herein.
The data communication method provided by the invention confirms whether to receive the working data or not according to the information message corresponding to the working data when receiving the information message corresponding to the working data sent by the working host, wherein the information message is used for representing the basic information of the working data, and when confirming to receive the working data, the data communication method sends a confirmation receiving message to the working host and receives the working data message sent by the working host. According to the invention, the problem that the virtual router cannot realize data backup between the dual-computer hot standby is solved by sequentially receiving the information message and the working data message sent by the working host, so that the backup data in the dual-computer hot standby is not lost, and the normal work of the backup host is ensured.
As an optional embodiment of the present invention, the data communication method further includes:
and receiving an end message sent by the working host. The specific implementation manner is described in the corresponding steps in the above embodiments, and will not be repeated here.
As an optional embodiment of the present invention, the information message corresponding to the working data includes a message sequence number of the working data segmentation, and after the step S23, the data communication method further includes:
sequencing the working data messages; the specific implementation manner is described in the corresponding steps in the above embodiments, and will not be repeated here.
When receiving the end message, determining the message sequence number of the missing message according to the sequencing result and the message sequence number of the working data segmentation; the specific implementation manner is described in the corresponding steps in the above embodiments, and will not be repeated here.
The message serial number of the missing message is sent to a working host; the specific implementation manner is described in the corresponding steps in the above embodiments, and will not be repeated here.
And receiving the missing data message sent by the working host until the received data message is consistent with the information in the information message, and sending the received message to the working host. The specific implementation manner is described in the corresponding steps in the above embodiments, and will not be repeated here.
The embodiment of the invention also discloses a data communication system, wherein the marks in the figures correspond to the marks in the embodiment, as shown in fig. 3, and the data communication system comprises: the working host is in communication connection with the backup host, and the following steps are executed:
s11: when the VRRP virtual router is started, an information message corresponding to the working data is sent to the backup host, and the information message is used for representing the basic information of the working data.
S21: when receiving an information message corresponding to the working data sent by the working host, confirming whether the working data is received or not according to the information message corresponding to the working data, wherein the information message is used for representing the basic information of the working data.
S22: and when the reception of the working data is confirmed, sending a confirmation receiving message to the working host.
S12: and when the receiving message is received, sending a working data message to the backup host.
S23: and receiving a working data message sent by the working host.
For the explanation of each step in this embodiment, refer to the above embodiment, and are not repeated here.
According to the data communication system provided by the invention, when the VRRP virtual router is started, the working host sends the information message and the working data message to the backup host in sequence, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
The embodiment of the invention discloses a data communication device, as shown in fig. 4, comprising:
the first sending module 31 is configured to send, when the VRRP virtual router is started, an information packet corresponding to the working data to the backup host, where the information packet is used to characterize basic information of the working data. The specific implementation manner is shown in step S11 in the embodiment, and will not be described herein.
The first receiving module 32 is configured to send a working data packet to the backup host when receiving the reception determination packet. The specific implementation manner is shown in step S12 in the embodiment, and will not be described herein.
The data communication device provided by the invention sends the information message corresponding to the working data to the backup host computer when the VRRP virtual router is started, wherein the information message is used for representing the basic information of the working data, and sends the working data message to the backup host computer when the message for confirming the reception of the working data is received. By implementing the invention, when the VRRP virtual router is started, the information message and the working data message are sequentially sent to the backup host, so that the problem that the virtual router cannot realize data backup between the dual hot standby is solved, the backup data in the dual hot standby is not lost, and the normal work of the backup host is ensured.
As an alternative embodiment of the present invention, the data communication apparatus further includes:
and the second sending module is used for sending an end message to the backup host. The specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
As an alternative embodiment of the present invention, the data communication apparatus further includes:
the second receiving module is used for receiving the message sequence number of the missing message sent by the backup host; the specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
And the third sending module is used for sending the corresponding missing message to the backup host according to the message sequence number of the missing message until the received message sent by the backup host is received. The specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
As an alternative embodiment of the present invention, the data communication apparatus further includes:
and the stopping module is used for stopping sending the working data message to the backup host when receiving the message refusing to receive. The specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
The embodiment of the invention also discloses a data communication device, as shown in fig. 5, comprising:
the third receiving module 41 is configured to, when receiving an information packet sent by the working host, confirm whether to receive the working data according to an information packet corresponding to the working data, where the information packet is used to characterize basic information of the working data; the specific implementation manner is shown in step S21 in the embodiment, and will not be described herein.
A fourth sending module 42, configured to send a confirm receipt message to the working host when confirming receipt of the working data; the specific implementation manner is shown in step S22 in the embodiment, and will not be described herein.
The fourth receiving module 43 is configured to receive a working data packet sent by the working host. The specific implementation manner is shown in step S23 in the embodiment, and will not be described herein.
The data communication device provided by the invention confirms whether to receive the working data or not according to the information message corresponding to the working data when receiving the information message corresponding to the working data sent by the working host, wherein the information message is used for representing the basic information of the working data, and when confirming to receive the working data, the data communication device sends a confirmation receiving message to the working host and receives the working data message sent by the working host. According to the invention, the problem that the virtual router cannot realize data backup between the dual-computer hot standby is solved by sequentially receiving the information message and the working data message sent by the working host, so that the backup data in the dual-computer hot standby is not lost, and the normal work of the backup host is ensured.
As an alternative embodiment of the present invention, the data communication apparatus further includes:
and the fifth receiving module is used for receiving the end message sent by the working host. The specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
As an optional embodiment of the present invention, the information message corresponding to the working data includes a message sequence number of the working data segmentation, and the data communication device further includes:
the sequencing module is used for sequencing the working data messages; the specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
The determining module is used for determining the message sequence number of the missing message according to the sequencing result and the message sequence number of the work data segmentation when receiving the end message; the specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
A fifth sending module, configured to send a message sequence number of the missing message to the working host; the specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
And the sixth receiving module is used for receiving the missing data message sent by the working host until the received data message is consistent with the information in the information message, and sending the received message to the working host. The specific implementation manner is to see the corresponding steps in the embodiments, and will not be described herein.
The embodiment of the present invention further provides a computer device, as shown in fig. 6, which may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or other means, and in fig. 6, the connection is exemplified by a bus.
The processor 51 may be a central processing unit (Central Processing Unit, CPU). The processor 51 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 52 is used as a non-transitory computer readable storage medium for storing a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules corresponding to the data communication method in the embodiment of the present invention (e.g., the first transmitting module 31 and the first receiving module 22 shown in fig. 4 or the third receiving module 41, the fourth transmitting module 42, and the fourth receiving module 43 shown in fig. 5). The processor 51 executes various functional applications of the processor and data processing, i.e., implements the data communication method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 52.
Memory 52 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by the processor 51, etc. In addition, memory 52 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 52 may optionally include memory located remotely from processor 51, which may be connected to processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 52 and when executed by the processor 51 perform the data communication method of the embodiment shown in fig. 1-2.
The details of the above-mentioned computer device may be understood correspondingly with respect to the corresponding relevant descriptions and effects in the embodiments shown in fig. 1 to 2, and will not be repeated here.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.
Claims (6)
1. The data communication method is characterized by being applied to a working host and comprising the following steps of:
when the VRRP virtual router is started, sending an information message corresponding to the working data to the backup host, wherein the information message is used for representing the basic information of the working data;
when receiving the determined receiving message, sending a working data message to the backup host;
sending an ending message to the backup host when the target interval time after the working data message is sent is finished;
the information message corresponding to the working data comprises a message sequence number of the working data segmentation, and a message sequence number of a missing message sent by the backup host is received, wherein the message sequence number of the missing message is obtained by comparing the message sequence number of the backup host segmented according to the working data in the information message with the received arranged message, and determining the missing message sequence number as the message sequence number of the missing message;
and sending a corresponding missing message to the backup host according to the message sequence number of the missing message until receiving the received message sent by the backup host.
2. The method according to claim 1, wherein the method further comprises:
and stopping sending the working data message to the backup host when receiving the message refused to receive.
3. A data communication method, characterized in that it is applied to a backup host, comprising the steps of:
when the VRRP virtual router is started, when an information message corresponding to working data sent by a working host is received, whether the working data is received or not is confirmed according to the information message corresponding to the working data, wherein the information message is used for representing basic information of the working data;
when the work data is confirmed to be received, sending a confirmation receiving message to the work host;
receiving a working data message sent by the working host;
the information messages corresponding to the working data comprise message serial numbers of the working data segmentation, and the working data messages are ordered;
receiving an end message sent by a working host;
when the end message is received, determining the message sequence number of the missing message according to the sequencing result and the message sequence number of the working data segmentation;
transmitting the message serial number of the missing message to the working host;
and receiving the missing data message sent by the working host until the received data message is consistent with the information in the information message, and sending the received message to the working host.
4. A data communication system, comprising: the working host is in communication connection with the backup host;
the working host is used for executing the steps of the data communication method according to any one of claims 1-2;
the backup host is configured to perform the steps of the data communication method of claim 3.
5. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the data communication method of any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the data communication method according to any of claims 1-3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010780744.5A CN114070781B (en) | 2020-08-05 | 2020-08-05 | Data communication method, device, system and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010780744.5A CN114070781B (en) | 2020-08-05 | 2020-08-05 | Data communication method, device, system and computer equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114070781A CN114070781A (en) | 2022-02-18 |
| CN114070781B true CN114070781B (en) | 2023-08-08 |
Family
ID=80232257
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010780744.5A Active CN114070781B (en) | 2020-08-05 | 2020-08-05 | Data communication method, device, system and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114070781B (en) |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101160795A (en) * | 2005-11-30 | 2008-04-09 | 华为技术有限公司 | A method for managing virtual router redundancy protocol backup group |
| CN101702681A (en) * | 2009-11-26 | 2010-05-05 | 福建星网锐捷网络有限公司 | Switching method and device of main/standby router in virtual route redundancy protocol |
| CN101714916A (en) * | 2009-11-26 | 2010-05-26 | 成都市华为赛门铁克科技有限公司 | Method, equipment and system for backing up |
| CN101841462A (en) * | 2010-03-02 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method, device and system for informing VRRP state information |
| CN102447583A (en) * | 2012-01-04 | 2012-05-09 | 中兴通讯股份有限公司 | Hot standby method and device for network address conversion equipment |
| CN102638389A (en) * | 2011-02-15 | 2012-08-15 | 中兴通讯股份有限公司 | Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network |
| CN102711234A (en) * | 2012-05-22 | 2012-10-03 | 中兴通讯股份有限公司 | Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device |
| CN104125079A (en) * | 2013-04-23 | 2014-10-29 | 华为技术有限公司 | Method and device for determining double-device hot-backup configuration information |
| CN104821889A (en) * | 2015-03-09 | 2015-08-05 | 杭州华三通信技术有限公司 | Backup packet processing method and device |
| CN108494675A (en) * | 2018-02-07 | 2018-09-04 | 华为技术有限公司 | Realize the method, apparatus and routing device of Virtual Router Redundacy Protocol backup group |
| CN109995648A (en) * | 2017-12-29 | 2019-07-09 | 北京华为数字技术有限公司 | Device switching method and forwarding device |
| CN110505220A (en) * | 2019-08-12 | 2019-11-26 | 北京威努特技术有限公司 | Support the method, apparatus and communication terminal of the two-node cluster hot backup of OPC protocol realization |
| CN110971462A (en) * | 2019-12-09 | 2020-04-07 | 深信服科技股份有限公司 | Equipment switching method, device, equipment and storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8121128B2 (en) * | 2008-02-26 | 2012-02-21 | Qualcomm Incorporated | Method and apparatus for link control in a wireless communication system |
-
2020
- 2020-08-05 CN CN202010780744.5A patent/CN114070781B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101160795A (en) * | 2005-11-30 | 2008-04-09 | 华为技术有限公司 | A method for managing virtual router redundancy protocol backup group |
| CN101702681A (en) * | 2009-11-26 | 2010-05-05 | 福建星网锐捷网络有限公司 | Switching method and device of main/standby router in virtual route redundancy protocol |
| CN101714916A (en) * | 2009-11-26 | 2010-05-26 | 成都市华为赛门铁克科技有限公司 | Method, equipment and system for backing up |
| CN101841462A (en) * | 2010-03-02 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method, device and system for informing VRRP state information |
| CN102638389A (en) * | 2011-02-15 | 2012-08-15 | 中兴通讯股份有限公司 | Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network |
| CN102447583A (en) * | 2012-01-04 | 2012-05-09 | 中兴通讯股份有限公司 | Hot standby method and device for network address conversion equipment |
| CN102711234A (en) * | 2012-05-22 | 2012-10-03 | 中兴通讯股份有限公司 | Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device |
| CN104125079A (en) * | 2013-04-23 | 2014-10-29 | 华为技术有限公司 | Method and device for determining double-device hot-backup configuration information |
| CN104821889A (en) * | 2015-03-09 | 2015-08-05 | 杭州华三通信技术有限公司 | Backup packet processing method and device |
| CN109995648A (en) * | 2017-12-29 | 2019-07-09 | 北京华为数字技术有限公司 | Device switching method and forwarding device |
| CN108494675A (en) * | 2018-02-07 | 2018-09-04 | 华为技术有限公司 | Realize the method, apparatus and routing device of Virtual Router Redundacy Protocol backup group |
| CN110505220A (en) * | 2019-08-12 | 2019-11-26 | 北京威努特技术有限公司 | Support the method, apparatus and communication terminal of the two-node cluster hot backup of OPC protocol realization |
| CN110971462A (en) * | 2019-12-09 | 2020-04-07 | 深信服科技股份有限公司 | Equipment switching method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114070781A (en) | 2022-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4851585B2 (en) | COMMUNICATION METHOD FOR SYSTEM COMPRISING CLIENT DEVICE AND MULTIPLE SERVER DEVICE, ITS COMMUNICATION PROGRAM, CLIENT DEVICE, AND SERVER DEVICE | |
| KR102156687B1 (en) | Method and multi-homed equipment for establishing a multipath connection | |
| US11765082B2 (en) | Data packet retransmission processing | |
| US9967193B2 (en) | Method and system for increasing data flow transmission | |
| JP6106494B2 (en) | COMMUNICATION CONTROL DEVICE, SERVER DEVICE, COMMUNICATION SYSTEM, AND PROGRAM | |
| CN107682262B (en) | Communication path processing method and device | |
| TW201421232A (en) | Method, apparatus and computer program product for performing failover in a redundancy group | |
| CN113746733B (en) | Table entry synchronization method, gateway device, networking system and storage medium | |
| US20110078313A1 (en) | Method and system for managing a connection in a connection oriented in-order delivery environment | |
| CN110324375A (en) | A kind of information backup method and relevant device | |
| US8060628B2 (en) | Technique for realizing high reliability in inter-application communication | |
| CN103493399B (en) | The method and apparatus that data transfer simultaneously is provided based on two or more networks | |
| CN109120446A (en) | A kind of zero configuration starting method and apparatus | |
| US8023406B2 (en) | Route reflector for a communication system | |
| CN114070781B (en) | Data communication method, device, system and computer equipment | |
| US20080069106A1 (en) | Communication apparatus | |
| US12088410B2 (en) | Methods and systems for exchanging periodic data in a mobile telecommunications network | |
| CN107801223A (en) | Vertical handoff method based on android system | |
| KR101587332B1 (en) | Method for checking connectivity between controllers and network apparatuses | |
| JP2006229399A (en) | Communications system, relay node and communication method used for the same, and program thereof | |
| CN107801218B (en) | Control method and device for aggregating frames in access point switching | |
| CN112511265B (en) | A method, device and storage medium for switching BFD message length | |
| CN120547048A (en) | Active/standby redundancy switching method, device, equipment, and storage medium | |
| EP2249548B1 (en) | A route reflector for a communication system | |
| CN105897450B (en) | Method and apparatus for Diameter connection management |
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 |