CN114944981A - Network high-availability communication method and device, storage medium and electronic equipment - Google Patents

Network high-availability communication method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114944981A
CN114944981A CN202210549220.4A CN202210549220A CN114944981A CN 114944981 A CN114944981 A CN 114944981A CN 202210549220 A CN202210549220 A CN 202210549220A CN 114944981 A CN114944981 A CN 114944981A
Authority
CN
China
Prior art keywords
link
mac address
destination
state table
source end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210549220.4A
Other languages
Chinese (zh)
Other versions
CN114944981B (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.)
Beijing Linx Technology Co ltd
State Grid Jiangsu Electric Power Co Ltd
Original Assignee
Beijing Linx Technology Co ltd
State Grid Jiangsu Electric Power 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 Beijing Linx Technology Co ltd, State Grid Jiangsu Electric Power Co Ltd filed Critical Beijing Linx Technology Co ltd
Priority to CN202210549220.4A priority Critical patent/CN114944981B/en
Publication of CN114944981A publication Critical patent/CN114944981A/en
Application granted granted Critical
Publication of CN114944981B publication Critical patent/CN114944981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a communication method, a communication device, a storage medium and electronic equipment with high network availability. The method comprises the following steps: establishing a source end link state table and a destination end link state table; detecting a gateway MAC address of each link; selecting a transmission link at a source end; the source end checks whether the destination end MAC address of the transmitted data packet is correct or not according to the link requirement, and if the destination end MAC address is incorrect, the destination end MAC address is updated to be correct; the destination terminal updates a local link state table according to the data packet and learns the gateway MAC address corresponding to the link; the destination end checks whether the gateway MAC address of the returned data packet is matched with the gateway MAC address of the actual return link, and if not, the destination end replaces the data packet; the source end periodically detects whether the link of the destination end is normal, and the destination end updates a local link state table. The invention can solve the problems of large data transmission quantity, poor processing performance of a destination network and poor compatibility of cross-three-layer network transmission when the redundancy is realized by a simple double-transmitting and double-receiving mode.

Description

Network high-availability communication method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a communication method, a communication device, a storage medium and electronic equipment with high network availability.
Background
In the existing Linux operating system, a network redundancy BONDING mode 3 is a broadcast mode, and in the broadcast mode, data transmission and reception are simultaneously performed on two physical redundancy links, so that redundancy is realized through a simple double-transmission double-reception mode. This mode has the following problems: (1) the on-off state of the whole link cannot be sensed, the on-off condition of the link from the local to the gateway can be sensed only in an ARP PING mode, and the link conditions at two ends of communication cannot be sensed; (2) the UDP data packet cannot be deduplicated, which is caused by the UDP protocol, so that the deduplication needs to be carried out at an application layer; (3) the duplicate removal efficiency of the TCP in a protocol stack is low, and the performance of the TCP can only reach 3-4 Gb/s in a ten-gigabit network environment; (4) the cross-gateway transmission compatibility is not good, the gateway MACs of two physical links must be configured to be the same, but usually the MACs of different gateways are different, if the MACs are different, the link data which results in the mismatching of the MACs is discarded when the cross-gateway transmission is performed, so that the single-path transmission is performed instead of the redundant transmission.
Therefore, the invention is especially provided.
Disclosure of Invention
The invention aims to provide a communication method, a communication device, a storage medium and electronic equipment with high network availability, and solves the problems of large data transmission quantity, poor processing performance of a destination network and poor compatibility of cross-three-layer network transmission when redundancy is realized in a simple double-transmitting and double-receiving mode in a Linux operating system.
In order to solve the above problem, in a first aspect, an embodiment of the present invention provides a communication method with high network availability, including:
establishing a source end link state table and a destination end link state table;
detecting a gateway MAC address of each link;
selecting a transmitting link at a source end in a single-transmitting mode;
the source end checks whether the destination end MAC address of the transmitted data packet is correct or not according to the link requirement, and if the destination end MAC address is incorrect, the destination end MAC address is updated to be the correct destination end MAC address;
the destination terminal updates a local link state table according to the data packet received from the source terminal;
the destination terminal learns the gateway MAC address corresponding to the link according to the data packet received from the source terminal;
the destination end checks whether the gateway MAC address of the returned data packet is matched with the gateway MAC address of the actual return link, and if not, the gateway MAC address is replaced by the learned gateway MAC address;
the source end periodically detects whether the link of the destination end is normal or not, and detects by periodically sending a network detection packet; and the destination terminal updates a local link state table according to the received network detection packet.
Further, the establishing the source end link state table and the destination end link state table includes:
the source end simultaneously sends network detection packets on a plurality of redundant physical links according to the IP addresses of the source end and the destination end, and the destination end replies a network detection reply packet to the source end through the corresponding redundant physical link after receiving the network detection packet sent by the source end; the source end establishes a link state table according to whether a network detection reply packet returned by the destination end is received or not; and the source end establishes the link state table, and the destination end also establishes the link state table.
Further, the detecting the gateway MAC address of each link includes: the source end sends ARP request to the gateway IP of each link, and the gateway MAC address of the corresponding link is obtained and stored according to the gateway ARP response.
Further, the selecting a transmission link at the source end includes: and selecting a physical link to transmit the data packet according to the link condition from the source end to the destination end recorded in the link state table of the source end, and transmitting the data packet to the destination end.
Further, if there is a case of transmitting a data packet across gateways, the source end further needs to check whether a gateway MAC address of a corresponding link is correct, and if not, select a correct gateway MAC address and replace a destination MAC address corresponding to the correct gateway MAC address.
Further, the link state tables of the source end and the destination end are both established in a data link layer in a network protocol stack.
In a second aspect, an embodiment of the present invention provides a communication apparatus with a high availability network, including:
the link state table establishing module is used for establishing a source end link state table and a destination end link state table;
the gateway MAC address detection module is used for detecting the gateway MAC address of each link;
a sending link selection module, configured to select a sending link at a source end in a single-shot mode;
the MAC address updating module is used for the source end to check whether the MAC address of the destination end of the sent data packet is correct or not according to the link requirement, and if not, the MAC address is updated to be the correct MAC address of the destination end;
the link state table updating module is used for updating a local link state table by the destination terminal according to the data packet received from the source terminal;
the gateway MAC address learning module is used for learning a gateway MAC address corresponding to the link by the destination end according to the data packet received from the source end;
the gateway MAC address checking module is used for checking whether the gateway MAC address of the returned data packet is matched with the gateway MAC address of the actual return link or not by the destination end, and replacing the gateway MAC address with the learned gateway MAC address if the gateway MAC address is not matched with the actual return link;
the periodic detection and update module is used for detecting whether a link of a destination end is normal or not at a source end periodically and detecting by periodically sending a network detection packet; and the destination terminal updates a local link state table according to the received network detection packet.
In a third aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the method described above. Specifically, a storage medium provided at the source end and a storage medium provided at the destination end may be included, the computer program stored in the storage medium of the source end is used for executing the steps which should be executed by the source end in the method, and the computer program stored in the storage medium of the destination end is used for executing the steps which should be executed by the destination end in the method.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
one or more processors; and
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method described above.
The method, the device, the storage medium and the electronic equipment provided by the embodiment of the invention have the following beneficial effects: (1) the multi-network redundancy is realized, 2 or more multi-network redundancies are supported, and the high availability of the network is enhanced. (2) The method realizes a double-sending single-receiving mode and a single-sending single-receiving mode, solves the problem that the UDP data packet needs to be deduplicated by an application layer, and also solves the problem of performance reduction caused by deduplication of a TCP protocol stack; (3) the problem of data packet discarding caused by different gateway MAC on different links is solved through gateway self-learning and two-layer (network link layer) network packet intelligent matching functions. (4) The network link state tables of the destination end and the source end are established and maintained, the end-to-end link condition can be sensed, and the single-transmitting single-receiving mode and the automatic fault switching function can be realized.
Drawings
Fig. 1 shows a flow chart of a network highly available communication method according to an embodiment of the invention;
FIG. 2 shows a block diagram of a network highly available communication device according to an embodiment of the invention;
fig. 3 shows a link detection flow chart of a network highly available communication method in practical application according to an embodiment of the invention;
fig. 4 shows a transmission flowchart of a network highly available communication method according to an embodiment of the present invention when it is actually applied;
fig. 5 shows a gateway MAC learning flow chart of a network highly available communication method according to an embodiment of the present invention when it is actually applied;
FIG. 6 illustrates a block diagram of a computing device capable of implementing various embodiments of the invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments shown in the drawings. It should be understood that these embodiments are described only to enable those skilled in the art to better understand and to implement the present invention, and are not intended to limit the scope of the present invention in any way.
In describing embodiments of the present invention, the terms "include" and its derivatives should be interpreted as being open-ended, i.e., "including but not limited to. The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first," "second," and the like may refer to different or the same object. Other explicit and implicit definitions are also possible below.
Referring to fig. 1, to solve the above problem, an embodiment of the present invention provides a communication method 100 for network high availability, including:
step 101, establishing a source end link state table and a destination end link state table.
In step 101, a source end simultaneously sends network probe packets on multiple redundant physical links according to IP addresses of the source end and a destination end, and the destination end replies a network probe reply packet to the source end through the corresponding redundant physical link after receiving the network probe packet sent by the source end. The source end establishes a link state table according to whether a network detection reply packet returned by the destination end is received, and if the network detection reply packet is not received within the specified time, the source end judges that the corresponding redundant physical link is not communicated.
When the source end establishes the link state table, the destination end also establishes the link state table according to the result, that is, after receiving the network detection packet, the destination end judges that the redundant physical link can communicate, and establishes the link state table of the destination end according to the judgment result.
In some embodiments, the link state table may contain link and node information, overhead outbound along the link direction, and the like.
Step 102, detecting the gateway MAC address of each link.
In step 102, the source end sends an ARP request to the gateway IP of each link, and obtains and stores the gateway MAC address of the corresponding link according to the gateway ARP response.
Because the network link state tables of the destination end and the source end are established and maintained, the end-to-end link condition can be sensed, and the full-coverage sensing of the on-off state of the whole link is realized, so that the single-transmitting single-receiving mode and the automatic fault switching function are realized.
And 103, selecting a transmission link at the source end in the single transmission mode.
In step 103, according to the link condition from the source end to the destination end recorded in the link state table of the source end, a physical link is selected for data packet transmission, and the data packet is transmitted to the destination end.
And 104, the source end checks whether the destination end MAC address of the sent data packet is matched with the destination end MAC address corresponding to the selected link according to the link requirement, and if not, the destination end MAC address of the data packet is replaced by the destination end MAC address corresponding to the selected link.
If the situation of transmitting the data packet across the gateway exists, whether the gateway MAC address of the corresponding physical link is correct or not needs to be checked, if not, the correct gateway MAC address is selected, and the destination MAC address of the link layer protocol frame corresponding to the correct gateway MAC address is replaced.
In step 105, the destination updates the local link state table according to the data packet received from the source.
Next, the method proceeds to step 106, and the destination learns the gateway MAC address corresponding to the physical link according to the received data packet.
Step 107, the destination checks whether the gateway MAC address of the returned packet matches the gateway MAC address of the actual return link, and if not, replaces the gateway MAC address learned in step 106, that is: the MAC address of the gateway of the actual return link is replaced with the gateway MAC address learned in step 106. And returning the data packet to the source end under the condition that the MAC address of the gateway is correct.
Step 108, the source end periodically detects whether the link of the destination end is normal, and detects by periodically sending a detection data packet.
And step 109, finishing the detection of the link state table and deleting the corresponding entry when the communication is finished.
In the embodiment, a link state table from a source end to a destination end is established at a source end in a data link layer in a network protocol stack, and link selection during two-layer data transmission is selected according to the state of the link state table, so that the reliability of single-link data transmission in a multi-link environment is realized, high availability of a redundant physical network is realized, single-link transmission is parallel-transmitted relative to multi-link simultaneous transmission, the data volume of network data transmission is reduced, the compatibility of network link equipment is good, the application of an upper layer protocol stack and a network is transparent, and the redundant network of independent multiple IPs is supported. The invention has the innovation points that the high availability of the network is realized by a mode of single sending, single receiving and active detection, the end-to-end link state acquisition and intelligent link selection are realized, and the data transmission quantity is reduced.
In practical applications, referring to fig. 3-5, the method 100 can be divided into a link detection process, a transmission process and a gateway MAC address learning process.
In the link detection process, the method comprises the following steps:
link detection begins by creating PING packets (i.e., the network probe packets in the foregoing) based on the source and destination IPs (i.e., source and destination IPs), and then updating the destination MAC address based on the link. Then, the source end sends a PING packet, and then judges whether a PING response (from the destination end) is received, if not, the source end continues to send the PING packet, and if so, the link state table is updated.
The sending process comprises the following steps: after the data transmission is started, a transmission link is selected, a two-layer target MAC address is updated, and finally a network card transmission interface is called.
The gateway MAC learning process comprises the following steps: after the gateway MAC self-learning starts, the destination end constructs an ARP request packet, sends the ARP request packet to the gateway, judges whether an ARP response is received, if not, does not need to execute any operation, directly ends the process, and if the ARP response from the gateway is received, analyzes the ARP response and updates the MAC address of the corresponding link gateway.
As shown in fig. 2, an embodiment of the present invention further provides a communication apparatus 200 with a high network availability, including:
a link state table establishing module 201, configured to establish a source end link state table and a destination end link state table;
a gateway MAC address detection module 202, configured to detect a gateway MAC address of each link;
a sending link selecting module 203, configured to select a sending link at a source end in a single sending mode;
the MAC address updating module 204 is configured to check, by the source end, whether a destination MAC address of the transmitted data packet is correct according to the link requirement, and if the destination MAC address is incorrect, update the destination MAC address to be correct;
a link state table updating module 205, configured to update a local link state table according to a data packet received from a source end by a destination end;
a gateway MAC address learning module 206, configured to learn, by the destination, a gateway MAC address corresponding to the link according to the data packet received from the source;
a gateway MAC address checking module 207, configured to check whether a gateway MAC address of a returned data packet matches a gateway MAC address of an actual return link, and if not, replace the gateway MAC address with a learned gateway MAC address;
a periodic detection and update module 208, configured to detect whether a link of a destination is normal at a periodic time and detect by periodically sending a network detection packet; and the destination terminal updates a local link state table according to the received network detection packet.
Further, the link state table establishing module 201 is further configured to send, by the source end, a network detection packet on the multiple redundant physical links simultaneously according to the IP addresses of the source end and the destination end, and after receiving the network detection packet sent by the source end, the destination end replies a network detection reply packet to the source end through the corresponding redundant physical link; the source end establishes a link state table according to whether a network detection reply packet returned by the destination end is received or not; and the source end establishes the link state table, and the destination end also establishes the link state table.
Further, the gateway MAC address detection module 202 is further configured to send an ARP request to the gateway IP of each link by the source, and obtain and store the gateway MAC address of the corresponding link according to the gateway ARP response.
Further, the sending link selecting module 203 is further configured to select a physical link for sending a data packet according to the link condition from the source end to the destination end recorded in the link state table of the source end, and send the data packet to the destination end.
Further, if there is a situation of transmitting a data packet across gateways, the source end needs to check whether the gateway MAC address of the corresponding link is correct, and if not, select the correct gateway MAC address and replace the destination MAC address corresponding to the correct gateway MAC address.
It should be understood that, the above program modules have a one-to-one correspondence with the steps described in the method embodiment, and the technical solution described in the method embodiment may also be applied to the specific configuration of each program module, and is not described herein again to avoid repetition.
The invention also provides an electronic device, a readable storage medium and a computer program product according to the embodiments of the invention.
FIG. 6 illustrates a block diagram of a computing device 600 capable of implementing multiple embodiments of the present invention. The electronic device may include a source electronic device and a destination electronic device, and hardware structures of the source electronic device and the destination electronic device may be set to be the same, where a difference is that a computer program stored in the source electronic device is used to be executed by a processor to implement steps that should be executed by the source in the method, and a computer program stored in the destination electronic device is used to be executed by the processor to implement steps that should be executed by the destination in the method.
Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 601 performs the various methods and processes described above, such as the method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the method 100 in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The inventive concept is explained in detail herein using specific examples, which are given only to aid in understanding the core concepts of the invention. It should be understood that any obvious modifications, equivalents and other improvements made by those skilled in the art without departing from the spirit of the present invention are included in the scope of the present invention.

Claims (9)

1. A method for network high availability communications, comprising:
establishing a source end link state table and a destination end link state table;
detecting a gateway MAC address of each link;
selecting a transmitting link at a source end in a single-transmitting mode;
the source end checks whether the destination end MAC address of the transmitted data packet is correct or not according to the link requirement, and if the destination end MAC address is incorrect, the destination end MAC address is updated to be correct;
the destination terminal updates a local link state table according to the data packet received from the source terminal;
the destination end learns the gateway MAC address corresponding to the link according to the data packet received from the source end;
the destination end checks whether the gateway MAC address of the returned data packet is matched with the gateway MAC address of the actual return link, and if not, the gateway MAC address is replaced by the learned gateway MAC address;
the source end detects whether the link of the destination end is normal or not at regular intervals, and detects by periodically sending a network detection packet; and the destination terminal updates a local link state table according to the received network detection packet.
2. The method of claim 1, wherein the establishing a source link state table and a destination link state table comprises:
the source end simultaneously sends network detection packets on a plurality of redundant physical links according to the IP addresses of the source end and the destination end, and the destination end replies a network detection reply packet to the source end through the corresponding redundant physical link after receiving the network detection packet sent by the source end; the source end establishes a link state table according to whether a network detection reply packet returned by the destination end is received or not; the source end establishes the link state table, and the destination end also establishes the link state table.
3. The method of claim 1, wherein the detecting the gateway MAC address of each link comprises: the source end sends ARP request to the gateway IP of each link, and the gateway MAC address of the corresponding link is obtained and stored according to the gateway ARP response.
4. The method of claim 1, wherein the selecting a transmission link at a source end comprises: and selecting a physical link to transmit the data packet according to the link condition from the source end to the destination end recorded in the link state table of the source end, and transmitting the data packet to the destination end.
5. The method of claim 1, wherein if there is a situation of transmitting data packets across gateways, the source peer further needs to check whether the gateway MAC address of the corresponding link is correct, and if not, select the correct gateway MAC address and replace the destination MAC address corresponding to the correct gateway MAC address.
6. The method of claim 5, wherein the link state tables of the source peer and the destination peer are established at a data link layer in a network protocol stack.
7. A network high availability communication device, comprising:
the link state table establishing module is used for establishing a source end link state table and a destination end link state table;
the gateway MAC address detection module is used for detecting the gateway MAC address of each link;
a sending link selection module, configured to select a sending link at a source end in a single-shot mode;
the MAC address updating module is used for the source end to check whether the MAC address of the destination end of the sent data packet is correct or not according to the link requirement, and if not, the MAC address is updated to be the correct MAC address of the destination end;
the link state table updating module is used for updating a local link state table by the destination terminal according to the data packet received from the source terminal;
the gateway MAC address learning module is used for learning a gateway MAC address corresponding to the link by the destination end according to the data packet received from the source end;
the gateway MAC address checking module is used for checking whether the gateway MAC address of the returned data packet is matched with the gateway MAC address of the actual return link or not by the destination end, and replacing the gateway MAC address with the learned gateway MAC address if the gateway MAC address is not matched with the actual return link;
the periodic detection and update module is used for detecting whether a link of a destination end is normal or not at a source end periodically and detecting by periodically sending a network detection packet; and the destination terminal updates a local link state table according to the received network detection packet.
8. A storage medium, characterized in that a computer program is stored thereon, which program, when being executed by a processor, carries out the method of any one of claims 1-6.
9. An electronic device, the electronic device comprising:
one or more processors; and
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
CN202210549220.4A 2022-05-20 2022-05-20 Communication method, device, storage medium and electronic equipment with high availability of network Active CN114944981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210549220.4A CN114944981B (en) 2022-05-20 2022-05-20 Communication method, device, storage medium and electronic equipment with high availability of network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210549220.4A CN114944981B (en) 2022-05-20 2022-05-20 Communication method, device, storage medium and electronic equipment with high availability of network

Publications (2)

Publication Number Publication Date
CN114944981A true CN114944981A (en) 2022-08-26
CN114944981B CN114944981B (en) 2023-08-04

Family

ID=82909856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210549220.4A Active CN114944981B (en) 2022-05-20 2022-05-20 Communication method, device, storage medium and electronic equipment with high availability of network

Country Status (1)

Country Link
CN (1) CN114944981B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845091A (en) * 1996-02-15 1998-12-01 Bay Networks, Inc. Forwarding of internetwork packets to a destination network via a selected one of a plurality of paths
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
WO2014154087A1 (en) * 2013-03-28 2014-10-02 International Business Machines Corporation A gateway and its method of transfering data
WO2014183650A1 (en) * 2013-05-17 2014-11-20 Hangzhou H3C Technologies Co., Ltd. Forwarding packets
WO2015014316A1 (en) * 2013-08-02 2015-02-05 Hangzhou H3C Technologies Co., Ltd. Packet forwarding
US20150078152A1 (en) * 2013-09-13 2015-03-19 Microsoft Corporation Virtual network routing
CN110417564A (en) * 2018-04-26 2019-11-05 北京东土军悦科技有限公司 Link protection method, device, equipment and the storage medium of full mesh
CN114465931A (en) * 2021-12-30 2022-05-10 深信服科技股份有限公司 Network detection method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845091A (en) * 1996-02-15 1998-12-01 Bay Networks, Inc. Forwarding of internetwork packets to a destination network via a selected one of a plurality of paths
WO2014154087A1 (en) * 2013-03-28 2014-10-02 International Business Machines Corporation A gateway and its method of transfering data
WO2014183650A1 (en) * 2013-05-17 2014-11-20 Hangzhou H3C Technologies Co., Ltd. Forwarding packets
WO2015014316A1 (en) * 2013-08-02 2015-02-05 Hangzhou H3C Technologies Co., Ltd. Packet forwarding
US20150078152A1 (en) * 2013-09-13 2015-03-19 Microsoft Corporation Virtual network routing
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN110417564A (en) * 2018-04-26 2019-11-05 北京东土军悦科技有限公司 Link protection method, device, equipment and the storage medium of full mesh
CN114465931A (en) * 2021-12-30 2022-05-10 深信服科技股份有限公司 Network detection method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114944981B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
US11588703B2 (en) Systems and methods for determining a topology of a network comprising a plurality of intermediary devices and paths
CN108418884A (en) A kind of method, apparatus and electronic equipment of transmission services data
EP2912810A1 (en) Network system and method for improving routing capability
CN102571947A (en) Processing method proxy method, device and system
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
CN113965508B (en) Dual path data transmission method, electronic device, and computer-readable storage medium
CN114944981B (en) Communication method, device, storage medium and electronic equipment with high availability of network
CN115225634B (en) Data forwarding method, device and computer program product under virtual network
CN115190087B (en) Data transmission method, device, equipment and medium based on two-layer intermediate equipment
CN113839964B (en) Communication method for gateway device and gateway device
CN113810370B (en) TCP acceleration method based on Socket docking TOE drive
CN114598532A (en) Connection establishing method, device, electronic equipment and storage medium
CN114064804A (en) Data interaction method, device, equipment and storage medium
CN114928490B (en) Multi-terminal network management and control method and device in container scene, storage medium and electronic equipment
CN114945048A (en) Network redundant data transmission method and device, storage medium and electronic equipment
CN114938331B (en) Single-physical-port multi-network access method and device under container scene, storage medium and electronic equipment
CN113032659B (en) Information processing method for device information, electronic device and medium
CN113949651B (en) Network transmission method, device, equipment and storage medium
CN115086251B (en) Stacked data processing method and device, electronic equipment and storage medium
CN115334040B (en) Method and device for determining Internet Protocol (IP) address of domain name
CN118118386A (en) Link delay detection method, device, equipment and storage medium
CN115834357A (en) Gateway node determination method, device, equipment and storage medium
CN117221422A (en) Fusion method of Ethernet protocol and optical fiber bus protocol
CN118300994A (en) Virtual network management method, device, equipment and storage medium based on cloud mobile phone
CN116866350A (en) BGP protocol-based method and device for expanding calculation force information

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