Data processing method, device and storage medium

By sending detection packets of virtual address information to the node to be tested during the detection period, detecting and switching to the normal link, the problem of low data communication efficiency and security between servers is solved, and efficient and secure data transmission is achieved.

CN115865635BActive Publication Date: 2025-01-17SANGFOR TECH INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211468899.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-01-17
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In the prior art, the data communication efficiency and security between servers are low, especially in data communication caused by the switch chip load algorithm, which cannot be effectively detected and switched to a network port with normal state, resulting in data still from the fault chain. The road passes.

Method used

By sending a detection message constructed by virtual address information to the node to be tested during the detection period, detecting the status of the communication link, and modifying the service message through the address resolution protocol table when the link is abnormal, ensuring that the data is transmitted on the normal link.

Benefits of technology

Real-time detection and switching to normal links are realized, which improves the efficiency and security of data communication and avoids data communication problems caused by faulty links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115865635B_ABST
    Figure CN115865635B_ABST
Patent Text Reader

Abstract

The present invention provides a data processing method, device and storage medium, the method comprising: the detection node sends a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle. Receive the current response message fed back by each node to be tested in response to the current detection message; determine the communication link detection result between each node to be tested based on the current response message and the current detection message; when the communication link detection result indicates that the link of the target node is abnormal, modify the service message based on the preset address resolution protocol table by loading a preset program, and obtain the target message to send to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message within the detection cycle before the current detection cycle. This scheme can improve the efficiency and security of data communication when a link fails.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer and Internet technologies, and in particular to a data processing method, device and storage medium. Background Art

[0002] In the related art, multiple servers communicate data through switches. When any server takes a faulty / sub-healthy network port offline, the server can no longer sense whether the status of the offline network port has been restored, and can no longer take recovery measures, resulting in a reduction in the number of network ports and low data communication efficiency. In addition, when the server detects a physical link failure / sub-health of the aggregation port, but does not detect a specific destination port link failure, even if the service is switched to a normal network port at the sending end, due to the load algorithm of the switch chip, the data will still pass through the faulty link at the destination end, resulting in low security and efficiency of data communication. Summary of the invention

[0003] A data processing method, device and storage medium provided by an embodiment of the present invention can improve the efficiency and security of data communication between servers.

[0004] The technical solution of the present invention is achieved in this way:

[0005] An embodiment of the present invention provides a data processing method, which is applied to a detection node in an aggregation network port, including:

[0006] In the current detection cycle, a certain number of current detection messages are sent to each node to be tested based on the constructed virtual address information; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested;

[0007] Receiving a current response message fed back by each node to be tested in response to the current detection message;

[0008] Determine the communication link detection result between each node to be tested based on the current response message and the current detection message;

[0009] When the communication link detection result indicates that the target node link is abnormal, the service message is modified based on the preset address resolution protocol table by loading a preset program to obtain a target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0010] In the above scheme, in the current detection cycle, a certain number of current detection messages are sent to each node to be detected based on the constructed virtual address information, including:

[0011] Determine the number of network ports N of each node to be tested in a local information table; wherein the information table stores the network port information and aggregated network port information of each node to be tested; N is an integer greater than or equal to 1;

[0012] Constructing N to the power of M virtual address information according to a predetermined program instruction; M is an integer greater than 1;

[0013] N to the power of M current detection messages corresponding to each node to be tested are formed based on the N to the power of M virtual address information, and sent to each node to be tested.

[0014] In the above solution, the forming of N to the power of M current detection messages corresponding to each node to be tested based on the N to the power of M virtual address information includes one of the following:

[0015] Using the N to the power of M virtual address information as source physical address information respectively, using the address information of the aggregation network port of each node to be tested as destination physical address information, combining the local identifier, the local aggregation network port identifier, and the local aggregation network port physical address information to form the N to the power of M current detection messages;

[0016] The N to the power of M virtual address information is used as the destination physical address information, the local aggregation network port physical address information is used as the source physical address information, and the local identifier and the local aggregation network port identifier are combined to form the N to the power of M current detection messages.

[0017] In the above scheme, before sending a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle, the method further includes:

[0018] In a first detection cycle, a certain number of first detection messages are sent to each node to be tested based on the constructed first virtual address information; wherein the first detection cycle is before the current detection cycle;

[0019] Receiving a first response message fed back by each node to be tested in response to the first detection message;

[0020] The address resolution protocol table is constructed based on the first detection message and the first response message.

[0021] In the above solution, the step of constructing the address resolution protocol table based on the first detection message and the first response message includes:

[0022] Based on the source physical address information and local aggregate network port identifier contained in each first detection message of each node to be tested, the second source physical address information, the corresponding node to be tested identifier, the corresponding network port identifier of the node to be tested, and the aggregate network port information of the corresponding node to be tested contained in the corresponding first response message, each row of the address resolution protocol table is constructed to obtain the address resolution protocol table.

[0023] In the above scheme, the determining of the communication link detection result between each node to be tested based on the current response message and the current detection message includes one of the following:

[0024] Calculate the packet loss rate through the K current response messages fed back by the target node and the N to the Mth power current detection messages, compare the packet loss rate with the packet loss rate threshold, and determine the communication link detection result of each node to be tested;

[0025] Obtain delay information of the K response messages, compare the delay information with a delay threshold, and determine the communication link detection result of each node to be tested.

[0026] In the above scheme, when the communication link detection result indicates that the target node link is abnormal, modifying the service message based on the preset address resolution protocol table by loading a preset program to obtain a target message to send to the target node includes:

[0027] When the communication link detection result indicates that the target node link is abnormal, loading the preset program;

[0028] Determining a switch forwarding rule based on the address resolution protocol table to determine replacement address information in the address resolution protocol table;

[0029] In response to the preset program, the source address information or the destination address information in the service message is replaced according to the switch forwarding rule using the replacement address information to obtain the target message to send to the target node.

[0030] In the above solution, the step of determining a switch forwarding rule based on the address resolution protocol table to determine replacement address information in the address resolution protocol table includes:

[0031] Determine the switch forwarding rule based on the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table;

[0032] The replacement address information corresponding to the switch forwarding rule is determined in the address resolution protocol table.

[0033] In the above solution, the switch forwarding rule is determined based on the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table, including one of the following:

[0034] If the source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule is obtained as a source address forwarding algorithm;

[0035] If the second source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule is obtained as a destination address forwarding algorithm;

[0036] If the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table are inconsistent, then the switch forwarding rule is obtained as a source-destination address forwarding algorithm.

[0037] In the above solution, determining the replacement address information corresponding to the switch forwarding rule in the address resolution protocol table includes:

[0038] Determine the corresponding target source physical address information and target second source physical address information in the address resolution protocol table according to the identifier of the target node included in the service message;

[0039] Based on the switch forwarding rule, the replacement address information is determined from the target source physical address information and the target second source physical address information; wherein the replacement address information is the address information corresponding to the network port with the smallest load on the target node.

[0040] In the above scheme, after determining the communication link detection result between each node to be tested based on the current response message and the current detection message, the method further includes:

[0041] When the communication link detection result indicates that the target node link is abnormal, a loading notification message is sent to the target node, so that the target node can load a second preset program based on the loading notification message; wherein the target node constructs a target response message based on the second preset program for feedback.

[0042] The embodiment of the present invention further provides a data processing method, which is applied to a target node and includes:

[0043] Receive a certain number of current detection messages sent by the detection node, respond to the current detection message to form a current response message and feed it back to the detection node; wherein the current detection message is sent by the detection node based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of local network ports;

[0044] Receive a target message sent by the detection node; wherein, the target message is obtained by the detection node by loading a preset program to modify the service message based on the address resolution protocol table when the communication link detection result indicates that the local link is abnormal; the communication link detection result is determined by the detection node based on the current response message and the current detection message; the address resolution protocol table is determined by the detection node through the detection message in the detection cycle before the current detection cycle.

[0045] In the above scheme, the receiving a certain number of current detection messages sent by the detection node, responding to the current detection message to form a current response message and feeding it back to the detection node, includes:

[0046] K current detection messages sent by the detection node are received, K response messages are formed in response to the K detection messages, and are sent to the detection node.

[0047] In the above scheme, before receiving a certain number of current detection messages sent by the detection node and responding to the current detection message to form a current response message and feeding it back to the detection node, the method further includes:

[0048] A first detection message sent by the detection node is received, and a first response message is formed in response to the first detection message based on the constructed second virtual address information and fed back to the detection node.

[0049] In the above solution, before receiving the target message sent by the detection node, the method further includes:

[0050] Receiving the loading notification information sent by the target node, loading the second preset program;

[0051] After receiving the target message sent by the detection node, the method further includes:

[0052] In response to the second preset program, the target message is modified based on the preset second address resolution protocol table to obtain a target corresponding message to send to the detection node; wherein the second address resolution protocol table contains the sending rule information between the target node and other nodes.

[0053] The embodiment of the present invention further provides a data processing device, which is applied to a detection node in an aggregation network port, including:

[0054] A first sending unit is used to send a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested;

[0055] A first receiving unit, configured to receive a current response message fed back by each node to be tested in response to the current detection message;

[0056] A determination unit, configured to determine a communication link detection result between the node and each node to be tested based on the current response message and the current detection message;

[0057] A modification processing unit is used to modify the service message based on a preset address resolution protocol table by loading a preset program when the communication link detection result indicates that the target node link is abnormal, so as to obtain a target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0058] The embodiment of the present invention further provides a data processing device, which is applied to a target node and includes:

[0059] A second receiving unit is used to receive a certain number of current detection messages sent by the detection node, and respond to the current detection message to form a current response message and feed it back to the detection node; wherein the current detection message is sent by the detection node based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of local network ports;

[0060] The second receiving unit is also used to receive a target message sent by the detection node; wherein the target message is obtained by the detection node by loading a preset program to modify the service message based on the address resolution protocol table when the communication link detection result indicates that the local link is abnormal; the communication link detection result is determined by the detection node based on the current response message and the current detection message; the address resolution protocol table is determined by the detection node through the detection message in the detection cycle before the current detection cycle.

[0061] An embodiment of the present invention further provides a data processing device, including a first memory and a first processor, wherein the first memory stores a computer program executable on the first processor, and the first processor implements the steps in the method on the detection node side when executing the program.

[0062] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a first processor, the steps in the method on the detection node side are implemented.

[0063] An embodiment of the present invention also provides a data processing device, including a second memory and a second processor, wherein the second memory stores a computer program that can be executed on the second processor, and when the second processor executes the program, the steps in the method on the target node side are implemented.

[0064] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a second processor, the steps in the method on the target node side are implemented.

[0065] In the embodiment of the present invention, the detection node sends a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested; each node to be tested responds to the current detection message and the current response message fed back; based on the current response message and the current detection message, the communication link detection result between each node to be tested is determined; when the communication link detection result represents that the target node link is abnormal, the service message is modified based on the preset address resolution protocol table by loading a preset program to obtain the target message to send to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle. Since the present scheme can detect the communication link detection result between each node to be tested in real time within each detection cycle, when the communication link of a node to be tested is abnormal, the preset program can be loaded to modify the service message of the node to be tested based on the address resolution protocol table, so that the service message can be sent to the corresponding node, and the efficiency and security of data communication can be improved when the link fails. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 An optional effect schematic diagram of the related technology provided by the embodiment of the present invention;

[0067] Figure 2 An optional flowchart of a data processing method provided by an embodiment of the present invention;

[0068] Figure 3 An optional effect diagram of the data processing method provided by an embodiment of the present invention;

[0069] Figure 4 An optional effect diagram of the data processing method provided by an embodiment of the present invention;

[0070] Figure 5 An optional flowchart of a data processing method provided by an embodiment of the present invention;

[0071] Figure 6 An interactive schematic diagram of a data processing method provided by an embodiment of the present invention;

[0072] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present invention Figure 1 ;

[0073] Figure 8 A hardware entity diagram of a data processing device provided by an embodiment of the present invention Figure 1 ;

[0074] Fig. 9 A schematic diagram of the structure of a data processing device provided in an embodiment of the present invention Figure 2 ;

[0075] Fig.10 A hardware entity diagram of a data processing device provided by an embodiment of the present invention Figure 2 . DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.

[0077] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0078] If similar descriptions of "first / second" appear in the invention document, the following description is added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.

[0079] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0080] Exemplary, combined Figure 1 In the related art, server A and server B communicate data through a switch. Server A includes: network port A1 and network port A2. Server B includes: network port B1 and network port B2. Among them, link 1 is formed between server A and server B through network port A1 and network port B1. After the link between the switch and network port B1 fails, when server A sends a service message to server B, server A switches the link to link 2 corresponding to network port A2. Due to the switch algorithm, the switch will still send the service message to server B through network port B1, which will cause the service message to be unable to be sent to server B, resulting in low data communication efficiency and security.

[0081] The present invention provides a data processing method. Figure 2 , is an optional flow chart of a data processing method provided by an embodiment of the present invention, which is combined with Figure 2 The steps shown are explained.

[0082] S101. In a current detection cycle, a certain number of current detection messages are sent to each node to be tested based on the constructed virtual address information; the certain number represents a number greater than the number of network ports of the corresponding node to be tested.

[0083] In the embodiment of the present invention, the detection node sends a certain number of current detection messages to each node to be detected based on the constructed virtual address information during the current detection cycle. The certain number represents a number greater than the number of network ports of the corresponding node to be detected.

[0084] In an embodiment of the present invention, a network system includes multiple servers, devices to be accessed, etc. Among them, multiple servers communicate data through switches. The detection node can be each server, device to be accessed, etc. The node to be tested can be other servers except the server corresponding to the detection node. In other words, each server in the network system sends a certain number of current detection messages to each other server in each detection cycle. Multiple network ports of each server form an aggregate network port.

[0085] In an embodiment of the present invention, the detection node determines the number of network ports of each node to be tested in a local information table. The server forms a current detection message for each node to be tested based on the constructed virtual address information. The number of detection messages for each node to be tested is greater than the corresponding number of network ports so that the detection message can fully cover the network ports of the node to be tested.

[0086] In an embodiment of the present invention, the detection node may send a corresponding current detection message to each node to be detected every 10 seconds. In other embodiments, the detection node may also send a current detection message to each node to be detected every 1 minute. In an embodiment of the present invention, there is no limit on the duration of the detection cycle.

[0087] In the embodiment of the present invention, when there are 10 servers in the network system, each server sends a certain number of detection messages to the other 9 servers in each detection cycle.

[0088] S102: Receive a current response message fed back by each node to be tested in response to the current detection message.

[0089] In the embodiment of the present invention, the detection node receives the current response message fed back by each node to be detected in response to the current detection message.

[0090] In the embodiment of the present invention, after the node under test receives the corresponding current detection message, the node under test forms the same number of current response messages and feeds them back to the detection node. Since there is a link failure between the node under test and the detection node, the number of current detection messages received by the node under test and the number of current detection messages sent by the detection node may be inconsistent.

[0091] S103: Determine a communication link detection result between each node to be tested based on the current response message and the current detection message.

[0092] In the embodiment of the present invention, the detection node determines the communication link detection result between the detection node and each node to be detected based on the current response message and the current detection message.

[0093] In the embodiment of the present invention, the detection node can calculate the packet loss rate through the current response message and the current detection message. If the packet loss rate is greater than the packet loss rate threshold, the communication link detection result that the link between the corresponding node to be tested and the detection node is abnormal is determined. If the packet loss rate is not greater than the packet loss rate threshold, the communication link detection result that the link between the corresponding node to be tested and the detection node is normal is determined.

[0094] In the embodiment of the present invention, the detection node can also obtain the delay information corresponding to the current response message, and if the delay information is greater than the delay threshold, the communication link detection result that the link between the corresponding node to be tested and the detection node is abnormal is determined. If the delay information is not greater than the delay threshold, the communication link detection result that the link between the corresponding node to be tested and the detection node is normal is determined.

[0095] Among them, the communication link includes physical link and data link. The physical link refers to a physical line from one node to an adjacent node without any other switching nodes in between. When performing data communication, the path between two servers is often composed of many links in series. The data link means that in addition to the physical line, there must also be a communication protocol to control the transmission of this data. The hardware and software that implement these protocols are added to the link, which is a data link. The data link is also called a logical link.

[0096] S104. When the communication link detection result indicates that the target node link is abnormal, the service message is modified based on the preset address resolution protocol table by loading a preset program to obtain a target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0097] In the embodiment of the present invention, when the communication link detection result indicates that the target node link is abnormal, the detection node modifies the service message based on the preset address resolution protocol table by loading a preset program to obtain the target message to send to the target node. The address resolution protocol table contains the sending rule information between each node to be detected, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0098] In an embodiment of the present invention, when the communication link detection result indicates that the target node link is abnormal, the detection node loads a preset program. The detection node determines the switch forwarding rule based on the address resolution protocol table, and determines the replacement address information corresponding to the target node in the address resolution protocol table. The detection node responds to the preset program and modifies the address information in the service message sent to the target node to the replacement address information according to the switch forwarding rule to obtain the target message.

[0099]

[0100] Table 1: Address resolution protocol table

[0101] Exemplarily, in combination with Table 1, since the second source physical address information corresponding to host-B is inconsistent, and the source physical address information of host-C is inconsistent, the detection node can determine that the switch forwarding rule is the source destination address forwarding algorithm. At this time, when the target node is host-B, the detection node can determine a replacement address information in its corresponding source physical address information or second source physical address information. The detection node uses the replacement address information to replace the source address information or the destination address information in the service message, and forms a target message to send to host-B.

[0102] In an embodiment of the present invention, the detection node sends a certain number of first detection messages to each node to be detected based on the constructed first virtual address information within the first detection cycle. The first detection cycle is located before the current detection cycle. The detection node receives the first response message fed back by each node to be detected in response to the first detection message. The detection node constructs an address resolution protocol table based on the first detection message and the first response message.

[0103] In the embodiment of the present invention, the first detection cycle is located before the current detection cycle, and the communication link of each node to be tested is normal. The detection node sends a first detection message to each node to be tested in the first detection cycle. Since the communication link is normal, each node to be tested will also feedback the same number of first response messages to the detection node. And the first detection message and the first response message are one-to-one corresponding.

[0104] In an embodiment of the present invention, the detection node constructs each row of the address resolution protocol table based on the source physical address information and the local aggregate network port identifier contained in each first detection message of each node to be tested, the second source physical address information contained in the corresponding first response message, the corresponding node to be tested identifier, the corresponding node to be tested network port identifier, and the aggregate network port information of the corresponding node to be tested, thereby obtaining the address resolution protocol table.

[0105] Exemplary, combined Figure 3 , HOST A includes network ports NIC0 and NIC1. NIC0 and NIC1 form aggregate network port band0. HOST B includes network ports NIC2 and NIC3. NIC2 and NIC3 form aggregate network port band1. The construction process of the address resolution protocol table may include:

[0106] HOST A host agent randomly selects a mac address, starting from the last byte + 1, and takes 8 consecutive media access control addresses (media access control address, mac), which may include: address (macA0 ~ macA7). HOSTA host obtains the mac of HOST B host aggregation network port bond1 through the information table, and constructs 8 current detection messages in the form of macA0 ~ macA7 → HOST B host bond1 mac, and sends them to HOST B host bond1. Among them, the current detection message includes: HOST A host identifier and aggregation network port band0 identifier and mac.

[0107] The HOST B agent will also obtain 8 consecutive mac addresses (macB0~macB7) through the same random algorithm. When HOST B receives the current detection message from HOST A, it will send a reply to A in the format of macB0~macB7→HOSTA host's aggregated network port bond0 mac. Among them, any network port of HOSTB receives the current detection message and forms a corresponding current response message to send a reply. Among them, the current response message includes: HOST B host identifier and corresponding network port identifier. The 8 current detection messages of HOST A cover all member ports of bond1 of HOST B. HOST A analyzes the 8 packets covering all member ports of bond1 of HOST B, and can obtain the source mac and destination mac of the message sent to NIC2 and NIC3 of HOST B. Then the sending link detection of HOSTA host→HOSTB host is completed, and the address resolution protocol table is obtained. Otherwise, continue to the next step and perform detection by modifying the destination mac.

[0108] HOST A reconstructs the current detection message, and uses the mac of bond0 of host A as the source mac, and macA0~macA7 as the destination mac to construct 8 current detection messages and send them to bond1 of host HOST B. When host HOST B receives the current detection message from host HOST A, it sends back packets to host HOSTA in the format of macB0~macB7→bond0mac of host HOSTA. Host HOSTA analyzes the 8 packets covering all member ports of bond1 of host HOSTB, and can obtain which two source mac and destination mac should be used for the message sent to NIC2 and NIC3 of host HOSTB. Then the sending link detection of host HOSTA→host HOSTB is completed, and the address resolution protocol table is obtained.

[0109] In the embodiment of the present invention, when the communication link detection result indicates that the link is normal, the detection node uninstalls the preset program and sends the service message as the target message to the target node.

[0110] In an embodiment of the present invention, when the communication link detection result indicates that the target node link is abnormal, the detection node sends a loading notification message to the target node, so that the target node can load a second preset program based on the loading notification message; wherein the target node constructs a target response message based on the second preset program for feedback.

[0111] In the embodiment of the present invention, after sending the target message to the target node, the detection node receives a target response message fed back by the target node in response to the target message.

[0112] In the embodiment of the present invention, the detection node sends a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; receives the current response message fed back by each node to be tested in response to the current detection message; determines the communication link detection result between each node to be tested based on the current response message and the current detection message; when the communication link detection result indicates that the target node link is abnormal, the service message is modified based on the preset address resolution protocol table by loading a preset program to obtain the target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message within the detection cycle before the current detection cycle. Since the present scheme can detect the communication link detection result between each node to be tested in real time within each detection cycle, when the communication link of a node to be tested is abnormal, the preset program can be loaded to modify the service message of the node to be tested based on the address resolution protocol table, so that the service message can be sent to the corresponding node, and the efficiency and security of data communication can be improved when the link fails.

[0113] In some embodiments, Figure 2 The illustrated S101 to S102 may also be implemented through S105 to S108, which will be described in conjunction with each step.

[0114] S105: Determine the number N of network ports of each node to be tested in the local information table.

[0115] In the embodiment of the present invention, the detection node determines the number N of network ports of each node to be tested in the local information table. The information table stores the network port information and aggregated network port information of each node to be tested. N is an integer greater than or equal to 1.

[0116] S106. Construct N to the power of M virtual address information according to predetermined program instructions; M is an integer greater than 1.

[0117] In the embodiment of the present invention, the detection node constructs N to the Mth power virtual address information according to a predetermined program instruction. M is an integer greater than 1.

[0118] In the embodiment of the present invention, the detection node randomly constructs a plurality of virtual address information according to a predetermined program instruction.

[0119] For example, if the number of network ports of a node to be tested is 2, the detection node can construct 2×2×2=8 virtual address information corresponding to the node to be tested. In other embodiments, the detection node can also construct 10 virtual address information. The number of multiple virtual address information is greater than the number of network ports of the corresponding node to be tested.

[0120] S107 . Based on the N to the Mth power virtual address information, N to the Mth power current detection messages corresponding to each node to be tested are formed, and sent to each node to be tested.

[0121] In the embodiment of the present invention, the detection node forms N to the power of M current detection messages corresponding to each node to be detected based on N to the power of M virtual address information, and sends the messages to each node to be detected.

[0122] In an embodiment of the present invention, the detection node uses N to the power of M virtual address information as source physical address information, and uses the address information of the aggregated network port of each node to be tested as destination physical address information, and combines the local identifier, the local aggregated network port identifier, and the local aggregated network port physical address information to form N to the power of M current detection messages.

[0123] In an embodiment of the present invention, the detection node uses N to the power of M virtual address information as the destination physical address information, and the local aggregate network port physical address information as the source physical address information, and combines the local identifier and the local aggregate network port identifier to form N to the power of M current detection messages.

[0124] S108 : Receive K current response messages fed back by each node to be tested in response to N to the power of M current detection messages.

[0125] In the embodiment of the present invention, the detection node receives each detected node responding to N to the power of M current detection messages, and feeds back K current response messages, where K is an integer.

[0126] In the embodiment of the present invention, since the communication conditions between each node to be tested and the detection node are different, when the communication link between a node to be tested and the detection node is abnormal, the number of current detection messages received by the node to be tested is not equal to N to the power of M. The number of K current response messages is determined by the number of normal network ports of the node to be tested.

[0127] In an embodiment of the present invention, the detection node sends a current detection message sufficient to cover all network ports to each node to be tested. When there is any network port failure, the detection node can detect the link failure of the node to be tested, and then modify the business message, thereby realizing the sending of business messages when the link fails and improving data communication efficiency.

[0128] In some embodiments, Figure 2 The illustrated S103 to S104 may also be implemented through S109 to S112, which will be described in conjunction with each step.

[0129] S109, calculating the packet loss rate through the K current response messages fed back by the target node and N to the Mth power current detection messages, comparing the packet loss rate with the packet loss rate threshold, and determining the communication link detection result of each node to be tested.

[0130] In the embodiment of the present invention, the detection node calculates the packet loss rate through K current response messages fed back by the target node and N to the power of M current detection messages, compares the packet loss rate with the packet loss rate threshold, and determines the communication link detection result of each node to be tested.

[0131] In an embodiment of the present invention, the detection node calculates the ratio of K to the Mth power of N to obtain the packet loss rate. If the packet loss rate is greater than the first packet loss rate threshold, the communication link detection result corresponding to the sub-health of the node link to be tested is determined. If the packet loss rate is greater than the second packet loss rate threshold, the communication link detection result corresponding to the node link failure to be tested is determined. If the packet loss rate is less than the first packet loss rate threshold, the communication link detection result corresponding to the node link to be tested is determined to be normal. Among them, the first packet loss rate threshold is less than the second packet loss rate threshold.

[0132] In the embodiment of the present invention, the detection node obtains the delay information of the K response messages, compares the delay information with the delay threshold, and determines the communication link detection result of each node to be tested.

[0133] In an embodiment of the present invention, if the delay information is greater than the first delay threshold, the communication link detection result corresponding to the node to be tested is determined to be sub-healthy. If the delay information is greater than the second delay threshold, the communication link detection result corresponding to the node to be tested link failure is determined. If the delay information is less than the first delay threshold, the communication link detection result corresponding to the node to be tested link is determined to be normal. Wherein, the first delay threshold is less than the second delay threshold.

[0134] Among them, link sub-health (fail slow) refers to a state in which the hardware can operate normally but the performance is seriously degraded. Hardware components such as hard disk modules, network cards, central processing units (CPUs), and memory may enter a sub-healthy state. When these hardware enter a sub-healthy state, if the system does not take effective monitoring and fault tolerance measures, it will lead to increased system response delays, packet loss, and even host service interruption due to failure to respond to the host.

[0135] S110. When the communication link detection result indicates that the target node link is abnormal, load a preset program.

[0136] In the embodiment of the present invention, when the communication link detection result indicates that the target node link is abnormal, the detection node loads a preset program.

[0137] Among them, the preset programs may include: Berkeley Packet Filter (BPF). When BPF was first invented, it was a network filtering tool. Now its name has been upgraded to eBPF: extended Berkeley Packet Filter has evolved into a general execution engine. It is no longer just a network analysis tool. Various types of tools and platforms such as performance analysis, system tracing, and network optimization can be developed based on eBPF.

[0138] Among them, eBPF can be implemented by the traffic classifier (TC) and the eXpress Data Path (XDP). TC is an eBPF hook in the Linux network processing flow, which can mount the eBPF program. It provides a variety of functions, such as modifying packets, rerouting, and discarding packets. XDP is an eBPF hook in the Linux network processing flow, which can mount the eBPF program. It can process network data packets when they reach the network card driver layer.

[0139] S111. Determine a switch forwarding rule based on the address resolution protocol table to determine replacement address information in the address resolution protocol table.

[0140] In the embodiment of the present invention, the detection node determines the switch forwarding rule based on the address resolution protocol table to determine the replacement address information in the address resolution protocol table.

[0141] In the embodiment of the present invention, the detection node determines the switch forwarding rule based on the source physical address information and the second source physical address information of each node to be detected in the address resolution protocol table. The detection node determines the replacement address information corresponding to the switch forwarding rule in the address resolution protocol table.

[0142] In an embodiment of the present invention, if the source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule obtained by the detection node is the source address forwarding algorithm. If the second source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule obtained by the detection node is the destination address forwarding algorithm. If there is inconsistency between the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table, the switch forwarding rule obtained by the detection node is the source destination address forwarding algorithm.

[0143] In the embodiment of the present invention, the detection node determines the corresponding target source physical address information and target second source physical address information in the address resolution protocol table through the identifier of the target node included in the service message. The detection node determines the replacement address information in the target source physical address information and the target second source physical address information based on the switch forwarding rule; wherein the replacement address information is the address information corresponding to the network port with the smallest load of the target node.

[0144] Among them, if the switch forwarding rule is a source address forwarding algorithm, the detection node determines the replacement address information in the target source physical address information. If the switch forwarding rule is a destination address forwarding algorithm, the detection node determines the replacement address information in the target second source physical address information. If the switch forwarding rule is a source destination address forwarding algorithm, the detection node can determine the replacement address information in the target source physical address information and the target second source physical address information.

[0145] S112, responding to a preset program, using the replacement address information to replace the source address information or the destination address information in the service message according to the switch forwarding rule, and obtaining a target message to send to a target node.

[0146] In the embodiment of the present invention, the detection node responds to a preset program, uses the replacement address information to replace the source address information or the destination address information in the service message according to the switch forwarding rule, and obtains the target message to send to the target node.

[0147] Among them, if the switch forwarding rule is the source address forwarding algorithm, the detection node uses the replacement address information to replace the source address information in the service message. If the switch forwarding rule is the destination address forwarding algorithm, the detection node uses the replacement address information to replace the destination address information in the service message. If the switch forwarding rule is the source-destination address forwarding algorithm, the detection node uses the replacement address information to replace the source address information or the destination address information in the service message.

[0148] In an embodiment of the present invention, when a detection node detects a link failure of a target node, it determines a switch forwarding rule through an address resolution protocol table, and determines an available replacement address information corresponding to the target node in the address resolution protocol table, and uses the replacement address information to modify the source address or destination address in the service message, thereby achieving the effect of sending the target message to the target node.

[0149] See also Figure 4 , which is an optional effect diagram of the data processing method provided in an embodiment of the present invention.

[0150] In an embodiment of the present invention, all servers in the network system ping each other, and each server sends a detection message to other servers. Each server sends a first detection message regularly (such as every second or every minute) through the constructed virtual address information, and determines the address resolution protocol table based on the first response message fed back. When server A detects the packet loss rate or delay between the network port of server B through the current detection message and the current response message, if the packet loss rate or delay is continuously greater than the threshold th1 within a given time period T, the link will be considered sub-healthy, and if it is continuously greater than the threshold th2, the link will be considered to be faulty. When server A detects a link failure / sub-health between network port A1 and network port B1, the control center of the detection node determines a learned virtual mac address in the address resolution protocol table for topology routing (the message with the mac address as the source mac or destination mac will be forwarded by the switch to the healthy network port of server B, such as network port B2). Among them, the address resolution protocol table includes: correspondence 1: source port A1, source mac1, destination port B1; correspondence 2: source port A2, source mac2, destination port B2. Server A now notifies server B to load the eBPF program (TC and XDP). Server A selects a virtual mac address that can be hashed to a healthy destination port (such as port B2). Server A modifies the source mac or destination mac in the service message through the eBPF program and redirects it to a normal port, such as port A2. After server B receives the target message, (such as port B2) it uses eBPF to detect the source mac address or destination mac address in the target message. If the source mac address or destination mac address is a special mac address used for link switching, the source mac address of the target message is modified and restored to the real source mac or destination mac address. When server A detects that the link failure / sub-health has been restored, it uninstalls the eBPF program to restore the communication link.

[0151] The present invention provides a data processing method. Figure 5 , is an optional flow chart of a data processing method provided by an embodiment of the present invention, which is combined with Figure 5 The steps shown are explained.

[0152] S201, receiving a certain number of current detection messages sent by the detection node, responding to the current detection message to form a current response message and feeding it back to the detection node; wherein the current detection message is sent by the detection node based on the constructed virtual address information within the current detection cycle. The number represented by the certain number is greater than the number of local network ports.

[0153] In an embodiment of the present invention, the target node receives a certain number of current detection messages sent by the detection node, responds to the current detection message to form a current response message and feeds it back to the detection node; wherein the current detection message is sent by the detection node based on the constructed virtual address information within the current detection cycle. The number represented by the certain number is greater than the number of local network ports.

[0154] S202. Receive a target message sent by a detection node; wherein the target message is obtained by the detection node by loading a preset program and modifying a service message based on an address resolution protocol table when a communication link detection result indicates that a local link is abnormal; the communication link detection result is determined by the detection node based on a current response message and a current detection message; the address resolution protocol table is determined by the detection node through a detection message in a detection cycle before the current detection cycle.

[0155] In an embodiment of the present invention, a target node receives a target message sent by a detection node; wherein the target message is obtained by the detection node by loading a preset program and modifying a service message based on an address resolution protocol table when a communication link detection result indicates that a local link is abnormal; the communication link detection result is determined by the detection node based on a current response message and a current detection message; and the address resolution protocol table is determined by the detection node through a detection message in a detection cycle before the current detection cycle.

[0156] In an embodiment of the present invention, when the detection node determines that the communication link detection result indicates that the target node link is abnormal, a loading notification message is sent to the target node. The target node receives the loading notification message sent by the target node and loads a second preset program. After receiving the target message sent by the detection node, the method further includes: the target node responds to the second preset program, modifies the target message based on a preset second address resolution protocol table, obtains a target corresponding message to send to the detection node; wherein the second address resolution protocol table contains the sending rule information between the target node and other nodes.

[0157] The second preset program may also be a BPF program.

[0158] The second address resolution protocol table is determined by the target node through a detection message in a previous detection cycle.

[0159] Since this solution can detect the communication link detection results between each node to be tested in real time within each detection cycle, when the communication link of a node to be tested is abnormal, a preset program can be loaded to modify the business message of the node to be tested based on the address resolution protocol table, so that the business message can be sent to the corresponding node, which can improve the efficiency and security of data communication when a link fails.

[0160] In some embodiments, Figure 5The illustrated S201 can also be implemented through S203, which will be described in conjunction with each step.

[0161] S203: Receive K current detection messages sent by the detection node, respond to the K detection messages to form K response messages, and send them to the detection node.

[0162] In the embodiment of the present invention, the target node receives K current detection messages sent by the detection node, responds to the K detection messages to form K response messages, and sends them to the detection node.

[0163] In some embodiments, Figure 5 The step S204 may be included before the step S201 shown, and the description will be given in combination with each step.

[0164] S204: Receive a first detection message sent by the detection node, and respond to the first detection message by forming a first response message based on the constructed second virtual address information and feeding it back to the detection node.

[0165] In the embodiment of the present invention, the target node receives the first detection message sent by the detection node, and responds to the first detection message by forming a first response message based on the constructed second virtual address information and feeding it back to the detection node.

[0166] In an embodiment of the present invention, the target node determines the number of network ports T of the detection node in the second information table; wherein the second information table stores the network port information and the aggregated network port information of the detection node; and T is an integer greater than or equal to 1. The target node constructs T to the power of M second virtual address information according to the second predetermined program instruction. The target node forms T to the power of M first response messages corresponding to the detection node based on the T to the power of M second virtual address information.

[0167] In an embodiment of the present invention, the target node uses T to the power of M second virtual address information as the second source physical address information, and uses the address information of the aggregated network port of the detection node as the second destination physical address information, and combines the target node identifier and the target node network port identifier to form T to the power of M first response messages of the detection node.

[0168] See also Figure 6 , which is an interactive schematic diagram of a data processing method provided by an embodiment of the present invention, will be combined with Figure 6 The steps shown are explained.

[0169] S301. The detection node sends a certain number of current detection messages to the target node based on the constructed virtual address information within the current detection cycle; the certain number represents a number greater than the number of network ports of the corresponding node to be detected.

[0170] In the embodiment of the present invention, the implementation process of S301 may refer to S101 and will not be described in detail here.

[0171] S302: The detection node receives the current response message from the target node in response to the current detection message, and feeds back the current response message.

[0172] In the embodiment of the present invention, the implementation process of S302 may refer to S102 and will not be described in detail here.

[0173] S303: The detection node determines a detection result of the communication link with the target node based on the current response message and the current detection message.

[0174] In the embodiment of the present invention, the implementation process of S303 may refer to S103 and will not be described in detail here.

[0175] S304. When the communication link detection result indicates that the target node link is abnormal, the detection node modifies the service message based on the preset address resolution protocol table by loading a preset program to obtain the target message to send to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0176] In the embodiment of the present invention, the implementation process of S304 may refer to S104 and will not be described in detail here.

[0177] See also Figure 7 , which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention Figure 1 .

[0178] The embodiment of the present invention further provides a data processing device 800 , which is applied to a detection node in an aggregation network port, and includes: a first sending unit 803 , a first receiving unit 804 , a determining unit 805 and a modifying processing unit 806 .

[0179] The first sending unit 803 is used to send a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; the certain number represents a number greater than the number of network ports in the corresponding node to be tested.

[0180] The first receiving unit 804 is used to receive a current response message fed back by each node to be tested in response to the current detection message;

[0181] A determination unit 805, configured to determine a communication link detection result between the node and each node to be tested based on the current response message and the current detection message;

[0182] The modification processing unit 806 is used to modify the service message based on the preset address resolution protocol table by loading a preset program when the communication link detection result indicates that the target node link is abnormal, so as to obtain the target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

[0183] In an embodiment of the present invention, the first sending unit 803 in the data processing device 800 is used to determine the number N of network ports of each node to be tested in a local information table; wherein the information table stores the network port information and aggregated network port information of each node to be tested; N is an integer greater than or equal to 1; N to the power of M virtual address information is constructed according to predetermined program instructions; M is an integer greater than 1; based on the N to the power of M virtual address information, N to the power of M current detection messages corresponding to each node to be tested are formed and sent to each node to be tested.

[0184] In the embodiment of the present invention, the first sending unit 803 in the data processing device 800 is used to use the N to the M power virtual address information as the source physical address information, the address information of the aggregated network port of each node to be tested as the destination physical address information, and combine the local identifier, the local aggregated network port identifier, and the local aggregated network port physical address information to form the N to the M power current detection messages;

[0185] The N to the power of M virtual address information is used as the destination physical address information, the local aggregation network port physical address information is used as the source physical address information, and the local identifier and the local aggregation network port identifier are combined to form the N to the power of M current detection messages.

[0186] In an embodiment of the present invention, the first sending unit 803 in the data processing device 800 is used to send a certain number of first detection messages to each node to be tested based on the constructed first virtual address information within a first detection cycle; wherein the first detection cycle is located before the current detection cycle; the first receiving unit 804 is used to receive the first response message fed back by each node to be tested in response to the first detection message; and construct the address resolution protocol table based on the first detection message and the first response message.

[0187] In an embodiment of the present invention, the data processing device 800 is used to construct each row of the address resolution protocol table based on the source physical address information and the local aggregate network port identifier contained in each first detection message of each node to be tested, the second source physical address information contained in the corresponding first response message, the corresponding node to be tested identifier, the corresponding node to be tested network port identifier, and the aggregate network port information of the corresponding node to be tested, so as to obtain the address resolution protocol table.

[0188] In an embodiment of the present invention, the determination unit 805 in the data processing device 800 is used to calculate the packet loss rate through the K current response messages fed back by the target node and the N to the power of M current detection messages, compare the packet loss rate with the packet loss rate threshold, and determine the communication link detection result of each node to be tested; obtain the delay information of the K response messages, compare the delay information with the delay threshold, and determine the communication link detection result of each node to be tested.

[0189] In an embodiment of the present invention, the modification processing unit 806 in the data processing device 800 is used to load the preset program when the communication link detection result indicates that the target node link is abnormal; determine the switch forwarding rule based on the address resolution protocol table to determine the replacement address information in the address resolution protocol table; respond to the preset program, use the replacement address information to replace the source address information or the destination address information in the service message according to the switch forwarding rule, and obtain the target message to send to the target node.

[0190] In an embodiment of the present invention, the modification processing unit 806 in the data processing device 800 is used to determine the switch forwarding rule based on the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table; and determine the replacement address information corresponding to the switch forwarding rule in the address resolution protocol table.

[0191] In the embodiment of the present invention, the modification processing unit 806 in the data processing device 800 is used to obtain the switch forwarding rule as a source address forwarding algorithm if the source physical address information of each node to be tested in the address resolution protocol table is inconsistent;

[0192] If the second source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule is obtained as a destination address forwarding algorithm;

[0193] If the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table are inconsistent, then the switch forwarding rule is obtained as a source-destination address forwarding algorithm.

[0194] In the embodiment of the present invention, the modification processing unit 806 in the data processing device 800 is used to determine the corresponding target source physical address information and target second source physical address information in the address resolution protocol table through the identifier of the target node included in the service message;

[0195] Based on the switch forwarding rule, the replacement address information is determined from the target source physical address information and the target second source physical address information; wherein the replacement address information is the address information corresponding to the network port with the smallest load on the target node.

[0196] In an embodiment of the present invention, the first sending unit 803 in the data processing device 800 is used to send a loading notification message to the target node when the communication link detection result indicates that the target node link is abnormal, so that the target node can load a second preset program based on the loading notification information; wherein the target node constructs a target response message based on the second preset program for feedback.

[0197] In an embodiment of the present invention, a first sending unit 803 is used to send a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested. A first receiving unit 804 is used to receive the current response message fed back by each node to be tested in response to the current detection message; a determination unit 805 is used to determine the communication link detection result between each node to be tested based on the current response message and the current detection message; a modification processing unit 806 is used to modify the service message based on the preset address resolution protocol table by loading a preset program when the communication link detection result represents that the target node link is abnormal, and obtain a target message to send to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle. Since this solution can detect the communication link detection results between each node to be tested in real time within each detection cycle, when the communication link of a node to be tested is abnormal, a preset program can be loaded to modify the business message of the node to be tested based on the address resolution protocol table, so that the business message can be sent to the corresponding node, which can improve the efficiency and security of data communication when a link fails.

[0198] It should be noted that, in the embodiment of the present invention, if the above-mentioned data processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a data processing device (which can be a personal computer, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present invention is not limited to any specific combination of hardware and software.

[0199] Correspondingly, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are implemented.

[0200] Correspondingly, an embodiment of the present invention provides a data processing device 800, including a first memory 802 and a first processor 801, wherein the first memory 802 stores a computer program that can be executed on the first processor 801, and the first processor 801 implements the steps in the above method when executing the program.

[0201] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.

[0202] It should be noted that Figure 8 A hardware entity diagram of a data processing device provided by an embodiment of the present invention Figure 1 ,like Figure 8 As shown, the hardware entity of the data processing device 800 includes: a first processor 801 and a first memory 802, wherein;

[0203] The first processor 801 generally controls the overall operation of the data processing apparatus 800 .

[0204] The first memory 802 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the first processor 801 and each module in the data processing device 800 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0205] See also Fig. 9 , which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention Figure 2 .

[0206] The embodiment of the present invention further provides a data processing device 900 , which is applied to a target node and includes: a second receiving unit 903 .

[0207] The second receiving unit 903 is used to receive a certain number of current detection messages sent by the detection node, respond to the current detection message to form a current response message and feed it back to the detection node; wherein, the current detection message is sent by the detection node within the current detection cycle based on the constructed virtual address information; the number represented by the certain number is greater than the number of local network ports.

[0208] The second receiving unit 903 is also used to receive a target message sent by the detection node; wherein the target message is obtained by the detection node by loading a preset program to modify the service message based on the address resolution protocol table when the communication link detection result indicates that the local link is abnormal; the communication link detection result is determined by the detection node based on the current response message and the current detection message; the address resolution protocol table is determined by the detection node through the detection message in the detection cycle before the current detection cycle.

[0209] In the embodiment of the present invention, the second receiving unit 903 in the data processing device 900 is used to receive K current detection messages sent by the detection node, form K response messages in response to the K detection messages, and send them to the detection node.

[0210] In the embodiment of the present invention, the second receiving unit 903 in the data processing device 900 is used to receive a first detection message sent by the detection node, and in response to the first detection message, form a first response message based on the constructed second virtual address information and feed it back to the detection node.

[0211] In an embodiment of the present invention, the second receiving unit 903 in the data processing device 900 is used to receive the loading notification information sent by the target node and load the second preset program; in response to the second preset program, the target message is modified based on the preset second address resolution protocol table to obtain the target corresponding message to send to the detection node; wherein the second address resolution protocol table contains the sending rule information between the target node and other nodes.

[0212] In an embodiment of the present invention, a second receiving unit 903 is used to receive a certain number of current detection messages sent by a detection node, and to respond to the current detection message to form a current response message and feed it back to the detection node; wherein the current detection message is sent by the detection node in the current detection cycle based on the constructed virtual address information; the number represented by the certain number is greater than the number of local network ports. The second receiving unit 903 is also used to receive a target message sent by the detection node; wherein the target message is obtained by the detection node by loading a preset program to modify the service message based on the address resolution protocol table when the communication link detection result indicates that the local link is abnormal; the communication link detection result is determined by the detection node based on the current response message and the current detection message; the address resolution protocol table is determined by the detection node through the detection message in the detection cycle before the current detection cycle. Since this solution can detect the communication link detection results between each node to be tested in real time within each detection cycle, when the communication link of a node to be tested is abnormal, a preset program can be loaded to modify the business message of the node to be tested based on the address resolution protocol table, so that the business message can be sent to the corresponding node, which can improve the efficiency and security of data communication when a link fails.

[0213] Correspondingly, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are implemented.

[0214] Correspondingly, an embodiment of the present invention provides a data processing device 900, including a second memory 902 and a second processor 901, wherein the second memory 902 stores a computer program that can be executed on the second processor 901, and the second processor 901 implements the steps in the above method when executing the program.

[0215] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.

[0216] It should be noted that Fig.10 A hardware entity diagram of a data processing device provided by an embodiment of the present invention Figure 2 ,like Fig.10 As shown, the hardware entity of the data processing device 900 includes: a second processor 901 and a second memory 902, wherein;

[0217] The second processor 901 generally controls the overall operation of the data processing device 900 .

[0218] The second memory 902 is configured to store instructions and applications executable by the processor 901, and can also cache data to be processed or processed by the second processor 901 and each module in the data processing device 900 (for example, image data, audio data, voice communication data and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0219] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present invention, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0220] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0221] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0222] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0223] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0224] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.

[0225] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, a magnetic disk or an optical disk.

[0226] The above is only an embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: Detection nodes used in aggregated network ports include: In the current detection cycle, a certain number of current detection messages are sent to each node to be tested based on the constructed virtual address information; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested; Receiving a current response message fed back by each node to be tested in response to the current detection message; Determine the communication link detection result between each node to be tested based on the current response message and the current detection message; When the communication link detection result indicates that the target node link is abnormal, the service message is modified based on the preset address resolution protocol table by loading a preset program to obtain a target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

2. The data processing method according to claim 1, characterized in that: The method of sending a certain number of current detection messages to each node to be detected based on the constructed virtual address information during the current detection cycle includes: Determine the number of network ports N of each node to be tested in a local information table; wherein the information table stores the network port information and aggregated network port information of each node to be tested; N is an integer greater than or equal to 1; Constructing N to the power of M virtual address information according to a predetermined program instruction; M is an integer greater than 1; N to the power of M current detection messages corresponding to each node to be tested are formed based on the N to the power of M virtual address information, and sent to each node to be tested.

3. The data processing method according to claim 2, characterized in that: The forming of N to the power of M current detection messages corresponding to each node to be tested based on the N to the power of M virtual address information includes one of the following: Using the N to the power of M virtual address information as source physical address information respectively, using the address information of the aggregation network port of each node to be tested as destination physical address information, combining the local identifier, the local aggregation network port identifier, and the local aggregation network port physical address information to form the N to the power of M current detection messages; The N to the power of M virtual address information is used as the destination physical address information, the local aggregation network port physical address information is used as the source physical address information, and the local identifier and the local aggregation network port identifier are combined to form the N to the power of M current detection messages.

4. The data processing method according to claim 1, characterized in that: Before sending a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle, the method further includes: In a first detection cycle, a certain number of first detection messages are sent to each node to be tested based on the constructed first virtual address information; wherein the first detection cycle is before the current detection cycle; Receiving a first response message fed back by each node to be tested in response to the first detection message; The address resolution protocol table is constructed based on the first detection message and the first response message.

5. The data processing method according to claim 4, characterized in that: The constructing the address resolution protocol table based on the first detection message and the first response message includes: Based on the source physical address information and local aggregate network port identifier contained in each first detection message of each node to be tested, the second source physical address information, the corresponding node to be tested identifier, the corresponding network port identifier of the node to be tested, and the aggregate network port information of the corresponding node to be tested contained in the corresponding first response message, each row of the address resolution protocol table is constructed to obtain the address resolution protocol table.

6. The data processing method according to claim 1, characterized in that: The determining, based on the current response message and the current detection message, a communication link detection result between each node to be tested, comprises one of the following: Calculate the packet loss rate through K current response messages fed back by the target node and N to the power of M current detection messages, compare the packet loss rate with a packet loss rate threshold, and determine the communication link detection result of each node to be tested; Obtain delay information of the K response messages, compare the delay information with a delay threshold, and determine the communication link detection result of each node to be tested.

7. The data processing method according to claim 5, characterized in that: When the communication link detection result indicates that the target node link is abnormal, modifying the service message based on a preset address resolution protocol table by loading a preset program to obtain a target message to send to the target node includes: When the communication link detection result indicates that the target node link is abnormal, loading the preset program; Determining a switch forwarding rule based on the address resolution protocol table to determine replacement address information in the address resolution protocol table; In response to the preset program, the source address information or the destination address information in the service message is replaced according to the switch forwarding rule using the replacement address information to obtain the target message to send to the target node.

8. The data processing method according to claim 7, characterized in that: The step of determining a switch forwarding rule based on the address resolution protocol table to determine replacement address information in the address resolution protocol table includes: Determine the switch forwarding rule based on the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table; The replacement address information corresponding to the switch forwarding rule is determined in the address resolution protocol table.

9. The data processing method according to claim 8, characterized in that: The determining the switch forwarding rule based on the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table includes one of the following: If the source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule is obtained as a source address forwarding algorithm; If the second source physical address information of each node to be tested in the address resolution protocol table is inconsistent, the switch forwarding rule is obtained as a destination address forwarding algorithm; If the source physical address information and the second source physical address information of each node to be tested in the address resolution protocol table are inconsistent, then the switch forwarding rule is obtained as a source-destination address forwarding algorithm.

10. The data processing method according to claim 9, characterized in that: Determining the replacement address information corresponding to the switch forwarding rule in the address resolution protocol table includes: Determine the corresponding target source physical address information and target second source physical address information in the address resolution protocol table according to the identifier of the target node included in the service message; Based on the switch forwarding rule, the replacement address information is determined from the target source physical address information and the target second source physical address information; wherein the replacement address information is the address information corresponding to the network port with the smallest load on the target node.

11. The data processing method according to claim 1, characterized in that: After determining the communication link detection result between each node to be tested based on the current response message and the current detection message, the method further includes: When the communication link detection result indicates that the target node link is abnormal, a loading notification message is sent to the target node, so that the target node can load a second preset program based on the loading notification message; wherein the target node constructs a target response message based on the second preset program for feedback.

12. A data processing device, characterized in that: Detection nodes used in aggregated network ports include: A first sending unit is used to send a certain number of current detection messages to each node to be tested based on the constructed virtual address information within the current detection cycle; the number represented by the certain number is greater than the number of network ports of the corresponding node to be tested; A first receiving unit, configured to receive a current response message fed back by each node to be tested in response to the current detection message; A determination unit, configured to determine a communication link detection result between the node and each node to be tested based on the current response message and the current detection message; A modification processing unit is used to modify the service message based on a preset address resolution protocol table by loading a preset program when the communication link detection result indicates that the target node link is abnormal, so as to obtain a target message to be sent to the target node; wherein the address resolution protocol table contains the sending rule information between each node to be tested, and the address resolution protocol table is determined by the detection message in the detection cycle before the current detection cycle.

13. A data processing device, characterized in that: The method comprises a first memory and a first processor, wherein the first memory stores a computer program executable on the first processor, and the first processor implements the steps of the method according to any one of claims 1 to 11 when executing the program.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the first processor, the steps in the method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Virtual router redundancy protocol fault detection method and router equipment

    CN104168193A

  • Link switching method and device

    CN110177010A