Fault exploration adjustment method and device, computer equipment and storage medium

By constructing detection messages and generating flow tables, faulty nodes in the SDN network are located and transferred to faultless nodes, the problem of difficulty in fault location in the SDN network is solved, and fault processing efficiency and network reliability are improved.

CN119094318APending Publication Date: 2024-12-06ZHENGZHOU INSPUR DATA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411134587.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In SDN network, it becomes difficult to quickly locate and resolve fault points. Traditional fault positioning methods are inefficient and time-consuming, which brings heavy burden to operation and maintenance.

Method used

By obtaining the port information of the virtual device and its related network configuration information, constructing detection messages, and generating flow tables according to the open flow protocol, issuing flow tables to the virtual device, analyzing the detection messages and flow table information, locate the faulty nodes, and It introduces fault-free nodes for reanalysis and calculation.

Benefits of technology

It realizes fast and efficient positioning and adjustment of fault nodes, reduces troubleshooting time, improves network reliability and operation and maintenance efficiency, avoids network failures, and ensures the normal operation of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094318A_ABST
    Figure CN119094318A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer networks, in particular to a fault exploration adjustment method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring virtual equipment port information and related network configuration information; constructing a detection message according to the virtual device port information and the related network configuration information; generating a flow table according to the detection message information and an open flow protocol, and issuing the flow table to the virtual device; the detection message is sent to the virtual device; analyzing and positioning a fault node according to the detection message received by the virtual equipment and the flow table received by the virtual equipment; and introducing the fault node into a fault-free node according to the flow table to perform analysis and calculation again. By adopting the method, the fault point can be quickly and efficiently checked and positioned, and the fault node can be adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and in particular to a fault detection and adjustment method, device, computer equipment and storage medium. Background Art

[0002] In recent years, the rapid development of cloud computing technology has paved a solid path for the widespread application of SDN (Software Defined Network). SDN has completely reshaped the traditional network structure with its architecture. This innovative architecture divides the network into a clear control layer and forwarding layer, achieving unprecedented decoupling: the control layer focuses on intelligent decision-making and plans the optimal data transmission path for the forwarding layer devices; while the forwarding layer faithfully executes the instructions of the control layer and focuses on fast forwarding of data without intervening in the complex path selection process. This design greatly enhances the flexibility and programmability of the network, allowing new services to be deployed quickly, while network configuration and adjustment have become unprecedentedly convenient.

[0003] However, as the scale of SDN networks continues to expand and the complexity of policies increases, its operation and maintenance challenges are becoming increasingly prominent. Especially when a network failure occurs, due to the hugeness of the network architecture and the interweaving of policies, it becomes particularly difficult to quickly locate and resolve the fault point. Currently, some traditional fault location methods, such as relying on the background system to query and analyze flow table information one by one, are inefficient and time-consuming, which brings a heavy burden to troubleshooting. Summary of the invention

[0004] Based on this, it is necessary to provide a fault detection and adjustment method, device, computer equipment and storage medium that can quickly and efficiently troubleshoot and locate faulty nodes and adjust faulty nodes in response to the above technical problems.

[0005] On the one hand, a fault detection and adjustment method is provided, the method comprising:

[0006] Get virtual device port information and its related network configuration information;

[0007] Constructing a detection message according to the virtual device port information and the related network configuration information;

[0008] Generate a flow table according to the detection message and the open flow protocol and send the flow table to the virtual device;

[0009] Sending the detection message to the virtual device;

[0010] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0011] According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

[0012] In one embodiment, it also includes:

[0013] Comparing the flow table received by the virtual device with the detection message, if the flow table and the detection message match, reporting the matching information;

[0014] According to the device information where the flow table in the reported matching information is located and the detection message in the matching information, the flow path information of the detection message is obtained;

[0015] The faulty node is located according to the flow path information of the detection message.

[0016] In one embodiment,

[0017] Probing multiple target devices through the ICMP message and the TCP message;

[0018] Generate first matching results respectively according to the matching conditions between the ICMP message and the flow tables of the multiple target devices, and copy and report the multiple first matching results;

[0019] Generate multiple second matching results respectively according to the matching conditions between the TCP message and the flow tables of the multiple target devices, and copy and report the multiple second matching results;

[0020] In response to the first matching result and the second matching result corresponding to any target device among the multiple target devices being successfully matched, the state of the target device is normal;

[0021] In response to a first matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device through which the TCP message flows is used as the IP address of the faulty node;

[0022] In response to the second matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device in the abnormal state through which the ICMP message flows is used as the IP address of the faulty node.

[0023] In one embodiment,

[0024] Deleting the flow table of the faulty node and forming a new flow table;

[0025] Introducing the faulty node into a non-faulty node according to the new flow table;

[0026] Update the MAC address of the detection message according to the fault-free node, and send the new flow table and the detection message to the barrier-free node;

[0027] The current node is calculated based on the new flow table and the detection message.

[0028] In one embodiment,

[0029] Determine whether there is a fault-free node at present, and if there is a fault-free node, introduce the faulty node into the fault-free node;

[0030] If all current nodes are faulty, no calculation will be performed and an alarm will be issued.

[0031] In one embodiment,

[0032] The detection message includes: TCP message, UDP message and ICMP message, the TCP message includes: TCP1, TCP2 and TCP3; the UDP message includes: UDP1, UDP2 and UDP3; the ICMP message includes: ICMP1, ICMP2 and ICMP3;

[0033] The ICMP1 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0034] The ICMP2 message includes: an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0035] The ICMP3 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0036] The TCP1 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the TCP header includes: type, code, checksum;

[0037] The TCP2 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the TCP header includes: type, code, checksum;

[0038] The TCP3 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the TCP header includes: type, code, checksum;

[0039] The UDP1 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the UDP header includes: type, code, checksum;

[0040] The UDP2 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the UDP header includes: type, code, checksum;

[0041] The UDP3 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the UDP header includes: type, code, checksum;

[0042] In one embodiment,

[0043] Generate a flow table according to the ICMP message type, source IP, destination IP, and date field, and in combination with the open flow protocol;

[0044] Generate a flow table according to the TCP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol;

[0045] A flow table is generated according to the UDP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol.

[0046] On the other hand, a fault detection and adjustment device is provided, the device comprising:

[0047] An information acquisition module is used to obtain virtual machine ports and related network configuration information;

[0048] A message construction module, used to construct a detection message according to the virtual machine port and the relevant network configuration information;

[0049] A flow table control module, configured to generate a flow table according to the virtual machine port, the relevant network configuration information and the open flow protocol and send the flow table to the virtual device;

[0050] A message sending module, sending the detection message to the virtual device;

[0051] A fault analysis module, analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0052] The link adjustment module is used to introduce the faulty node into the normal node for re-analysis and calculation according to the flow table.

[0053] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0054] Get virtual device port information and its related network configuration information;

[0055] Constructing a detection message according to the virtual device port information and the related network configuration information;

[0056] Generate a flow table according to the detection message information and the open flow protocol and send the flow table to the virtual device;

[0057] Sending the detection message to the virtual device;

[0058] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0059] According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

[0060] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0061] Get virtual device port information and its related network configuration information;

[0062] Constructing a detection message according to the virtual device port information and the related network configuration information;

[0063] Generate a flow table according to the detection message information and the open flow protocol and send the flow table to the virtual device;

[0064] Sending the detection message to the virtual device;

[0065] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0066] According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

[0067] The above-mentioned fault detection and adjustment method, device, computer equipment and storage medium,

[0068] By obtaining the virtual device port information and its related network configuration information, and constructing a detection message according to the virtual device port information and the related network configuration information; generating a flow table according to the constructed message information and the open flow protocol; sending the flow table and the detection message to the virtual device respectively; comparing and analyzing the detection message received by the virtual device and the flow table received by the virtual device, the specific location of the faulty node is obtained; introducing the faulty node into the fault-free node through the flow table, and re-analyzing and calculating the node. This method can quickly and efficiently find out the faulty node and locate the position of the faulty node by comparing the information of the detection message and the flow table. By transferring the faulty node, the current network failure can be avoided, ensuring the normal operation of the current network; at the same time, the transferred faulty node is re-compared and analyzed to further investigate and analyze the cause of the failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 An application environment diagram of a fault detection and adjustment method in an embodiment;

[0070] Figure 2 A schematic diagram of a flow chart of a fault detection and adjustment method in one embodiment;

[0071] Figure 3 A structural block diagram of a fault detection and adjustment device in one embodiment;

[0072] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0074] The present application provides a fault detection and adjustment method, which can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0075] In one embodiment, Figure 2 As shown, a fault detection adjustment method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0076] Step 202: Acquire virtual device port information and related network configuration information.

[0077] The virtual device port information includes: port name, MAC address, IP address, gateway IP address and MAC address of the network where it is located; the related network configuration information includes: the network information to which the port belongs, routing information, and firewall information.

[0078] Step 204: construct a detection message according to the virtual device port information and the related network configuration information.

[0079] Among them, the detection message is a special message used to detect and confirm the network status or the status of a specific device in network communication. By setting different key field information, a detection message data packet is constructed, and the window status or other network characteristics of the target host are detected by sending a specific data packet. It can help administrators identify potential network threats and vulnerabilities and improve network security.

[0080] Step 206: Generate a flow table according to the detection message information and the OpenFlow protocol and send the flow table to the virtual device.

[0081] Among them, the open flow protocol is the OpenFlow protocol. OpenFlow is a network communication protocol that allows the controller to directly access and control the forwarding plane of the forwarder, which can make network management more flexible and efficient.

[0082] A flow table is a key data structure that contains a series of flow table entries. Each flow table entry defines a matching rule to guide the forwarding decision of the device. In this application, the flow table defines an action: if a data packet successfully matches a flow table entry, the matching information is copied and reported and then forwarded.

[0083] The use of flow tables makes network control more flexible and efficient. Administrators can quickly define and adjust network behavior to adapt to changing business needs and network environments. At the same time, administrators can manage network traffic more accurately.

[0084] Specifically, after a flow table is generated according to key field information in the detection message and the open flow protocol, the flow table is sent to the virtual device.

[0085] Step 208: Send the detection message to the virtual device.

[0086] Specifically, the controller sends a constructed detection message to the virtual device.

[0087] Step 210: locating the faulty node according to the detection message received by the virtual device and the flow table received by the virtual device.

[0088] Specifically, the virtual device performs comparative analysis based on the received flow table and detection message. Based on the analysis and comparison, it can quickly and comprehensively check whether there is a faulty node in the virtual device, and accurately locate the specific faulty node based on the detection message, which facilitates further processing of the fault and saves troubleshooting time.

[0089] Step 212: According to the flow table, the faulty node is introduced into a normal node for re-analysis and calculation.

[0090] Specifically, the controller uses the forwarding action specified in the flow table to randomly introduce the faulty node into the normal node for recalculation, which can troubleshoot multiple possible fault scenarios, making the diagnosis process more comprehensive and accurate. By analyzing the analysis and comparison results of the faulty node in the new node, potential problems in the network architecture can be discovered and optimized accordingly.

[0091] In the above-mentioned network fault detection and adaptive adjustment method, by obtaining the virtual device port information and its related network configuration information, a detection message is constructed according to the virtual device port information and the related network configuration information; a flow table is generated according to the constructed message information and the open flow protocol; a flow table and a detection message are respectively issued to the virtual device; the detection message received by the virtual device and the flow table received by the virtual device are compared and analyzed to obtain the specific location of the faulty node; the faulty node is introduced into the non-faulty node through the flow table, and the node is re-analyzed and calculated. This method can quickly and efficiently find out the faulty node and locate the position of the faulty node by comparing the information of the detection message and the flow table. By transferring the faulty node, the current network failure can be avoided, ensuring the normal operation of the current network; at the same time, the transferred faulty node is re-compared and analyzed to further investigate and analyze the cause of the fault.

[0092] In one embodiment, locating a faulty node according to the detection message received by the virtual device and the flow table analysis received by the virtual device includes:

[0093] Step 302: Compare the flow table received by the virtual device with the detection message. If the flow table and the detection message match, report the matching information.

[0094] Specifically, by sending a flow table and a detection message to the virtual device, and comparing the flow table information with the detection message information, if the flow table identifies the key field information in the detection message, the flow table information and the detection message information match successfully, and the matching information is copied and reported.

[0095] Step 304: Obtain flow path information of the detection message according to the comparison between the device information where the flow table in the reported matching information is located and the detection message in the matching information.

[0096] Specifically, the reported matching information includes flow table information, device information where the flow table is located, and detection message information. The flow path information of the detection message is obtained after analysis based on the device information where the flow table is located and the detection message information.

[0097] Step 306: locate the faulty node according to the flow path information of the detection message.

[0098] Specifically, according to the flow path information of the detection message information, the different computing nodes of the virtual device through which each detection message flows, and the specific location of the fault node is determined according to the specific location of the computing node of the virtual device.

[0099] Through the troubleshooting and locating method of detecting messages and comparing and analyzing flow tables, the automated and intelligent troubleshooting process reduces the dependence on professional technicians and reduces labor costs. At the same time, through accurate fault location, the normal operation of network services can be restored more quickly, reducing the waste of resources caused by faults.

[0100] In one embodiment, locating the faulty node according to the flow path includes:

[0101] Probing multiple target devices through the ICMP message and the TCP message;

[0102] Generate first matching results respectively according to the matching conditions between the ICMP message and the flow tables of the multiple target devices, and copy and report the multiple first matching results;

[0103] Generate multiple second matching results respectively according to the matching conditions between the TCP message and the flow tables of the multiple target devices, and copy and report the multiple second matching results;

[0104] In response to the first matching result and the second matching result corresponding to any target device among the multiple target devices being successfully matched, the state of the target device is normal;

[0105] In response to a first matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device through which the TCP message flows is used as the IP address of the faulty node;

[0106] In response to the second matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device in the abnormal state through which the ICMP message flows is used as the IP address of the faulty node.

[0107] Specifically, the detection of routers and SNAT is shown in the following table:

[0108]

[0109]

[0110] Among them, through the matching results of the ICMP message and TCP message with the router and SNAT, it is judged that the current ICMP message matches the router and SNAT successfully respectively; the TCP message matches the router successfully. According to the matching results of the ICMP message and the TCP message, it can be concluded that the TCP message fails to match SNAT, that is, the TCP message does not reach SNAT. According to the detection method, it can be judged that the node is the faulty node. At this time, the specific computing node information of SNAT can be obtained from the matching information of the ICMP message and SNAT as 172.160.10.2, and the computing node is the faulty node.

[0111] By accurately locating the faulty node, the troubleshooting cycle can be significantly shortened, while greatly improving the efficiency and accuracy of fault handling. It also lays a solid foundation for subsequent repair work and avoids the waste of computing resources. Furthermore, by accurately locating the faulty node, timely countermeasures can be taken, thereby effectively enhancing the overall defense capability of the network and ensuring that the flow and storage of information are in a safer state. In summary, obtaining the precise address of the faulty node is a key link in improving the reliability, maintainability, performance optimization and security of the entire network. It not only speeds up the fault handling process, but also lays a solid foundation for building a more solid, intelligent and secure network environment.

[0112] In one embodiment,

[0113] According to the flow table, the faulty node is introduced into the normal node for analysis and calculation, including:

[0114] Step 402, deleting the flow table of the faulty node and forming a new flow table;

[0115] Specifically, after deleting the flow table of the part matching the current faulty node and the detection message, a new flow table is formed.

[0116] Step 404, introducing the faulty node to a normal node according to the flow table;

[0117] Among them, in the SDN network, the virtual devices between the original computing nodes can communicate with each other. The east-west traffic is carried out through the overlay tunnel between each node. The communication in the same network segment also needs to be encapsulated through the overlay tunnel and transferred to the destination node. For the virtual devices of the computing node, the traffic flows from the virtual device to its host machine. After flowing through each virtual device, when it needs to be sent out by the host machine, it must first send the traffic to the virtual tunnel port. Each node has this port. The traffic sent to this port will encapsulate the original detection message into a UDP message, and add the tunnel IP address and MAC address as its outer IP header and MAC header. In the destination host machine, this process is the opposite. After the message flows into the destination host machine from the destination host machine tunnel port, the outer layer of the message header is decapsulated to obtain the original message. The destination IP address and MAC address in this message are the real IP addresses and MAC addresses of the two parties in this communication, which is an important part of the tunnel and process SDN network. The present application uses a tunnel to direct the traffic of the virtual device of the faulty computing node through the tunnel port to the destination host port, that is, to the computing node of the destination host, that is, the non-faulty node.

[0118] Step 406 updates the MAC address of the detection message according to the fault-free node, and sends the new flow table and the detection message to the fault-free node;

[0119] Specifically, a new flow table is sent to the node without faults, the MAC address of the detection message is updated according to the MAC address of the node without faults, and the detection message is sent to the node.

[0120] Step 408: Analyze and calculate the current node according to the new flow table and the detection message.

[0121] Specifically, the current fault-free node is re-analyzed and calculated through the new flow table and the detection message. The calculation method has been described in detail above, so it will not be repeated here.

[0122] By transferring the faulty node, the current fault can be eliminated in time and these fault points can be avoided. The difficulty of SDN network operation and maintenance is reduced, and the reliability of the network is improved. The smooth operation of the network is ensured; after transferring the faulty node to a new fault-free node and re-analyzing and calculating, the cause of the node failure can be re-judged and analyzed.

[0123] In one embodiment,

[0124] Introducing the faulty node into a non-faulty node also includes:

[0125] Determine whether there is a fault-free node at present, and if there is a fault-free node, introduce the faulty node into the fault-free node;

[0126] If all current nodes are faulty, no calculation will be performed and an alarm will be issued.

[0127] Specifically, all current computing nodes are judged. If all nodes are in the computing judgment state, it is judged that all current nodes have faults and an alarm is issued; if there are currently computing nodes in an idle state, that is, non-faulty nodes, the faulty nodes are introduced into non-faulty nodes through the flow table.

[0128] In one embodiment, the detection message includes: TCP message, UDP message and ICMP message, the TCP message includes: TCP1, TCP2 and TCP3; the UDP message includes: UDP1, UDP2 and UDP3; the ICMP message includes: ICMP1, ICMP2 and ICMP3;

[0129] The ICMP1 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0130] The ICMP2 message includes: an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0131] The ICMP3 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0132] The TCP1 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the TCP header includes: type, code, checksum;

[0133] The TCP2 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the TCP header includes: type, code, checksum;

[0134] The TCP3 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the TCP header includes: type, code, checksum;

[0135] The UDP1 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the UDP header includes: type, code, checksum;

[0136] The UDP2 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the UDP header includes: type, code, checksum;

[0137] The UDP3 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the UDP header includes: type, code, checksum;

[0138] In SDN networks, different messages have different forwarding paths and methods in different virtual devices. By constructing multiple detection messages, different paths in the network can be explored to reflect the failure of the entire network link. When a network failure occurs, detection messages with different paths and methods can help quickly locate the source of the problem and shorten the troubleshooting time.

[0139] In one of the embodiments, generating a flow table according to the detection message and the open flow protocol and sending the flow table to the virtual device includes:

[0140] Generate a flow table according to the ICMP message type, source IP, destination IP, and date field, and in combination with the open flow protocol;

[0141] Generate a flow table according to the TCP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol;

[0142] A flow table is generated according to the UDP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol.

[0143] Specifically, by generating a flow table based on key field information in different types of detection messages and combining it with the open flow protocol, the forwarding action instruction of the flow table is specified as follows: if the field information in the data packet matches the information in the flow table entry, the matching information is copied and reported, and after reporting, it continues to be forwarded according to the forwarding instruction.

[0144] In one of the embodiments, when all detection messages are sent by the control module and all computing nodes are fault-free, all flow tables are deleted; if a computing node fails at this time, the link adjustment module is started to introduce the faulty node into the fault-free node for re-analysis and calculation.

[0145] In one of the embodiments, generating a flow table according to the detection message and the open flow protocol and sending the flow table to the virtual device further includes: sending the flow table to the network device;

[0146] Identify the detection message forwarded to the network device according to the flow table of the network device;

[0147] If the detection message matches the flow table information, the detection message is discarded.

[0148] In one embodiment, the detection module copies and uploads the successful matching information, including the successfully matched flow table and the detection message, the device information where the flow table is located, and the forwarding action. By comparing the next forwarding action reported by the current device with the information copied and reported by the next device, it is verified whether the flow direction of the traffic is correct.

[0149] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0150] In one embodiment, Figure 3 As shown, a fault detection device is provided, including: an information acquisition module 502, a message construction module 504, a flow table control module 506, a message sending module 508, a fault analysis module 510, and a link adjustment module 512, wherein:

[0151] Information acquisition module 502, used to obtain virtual machine port information and related network configuration information;

[0152] A message construction module 504, configured to construct a detection message according to the virtual machine port information and the related network configuration information;

[0153] A flow table control module 506, configured to generate a flow table according to the virtual machine port information, the relevant network configuration information and the open flow protocol and send the flow table to the virtual device;

[0154] A message sending module 508 sends the detection message to the virtual device;

[0155] A fault analysis module 510, configured to locate a faulty node based on the detection message received by the virtual device and the flow table received by the virtual device;

[0156] The link adjustment module 512 is used to randomly introduce the faulty node into the normal node for re-analysis and calculation according to the flow table.

[0157] In one embodiment, the device message construction module 504 is used to construct a detection message according to the virtual machine port information and the related network configuration information.

[0158] The detection message includes: TCP message, UDP message and ICMP message, the TCP message includes: TCP1, TCP2 and TCP3; the UDP message includes: UDP1, UDP2 and UDP3; the ICMP message includes: ICMP1, ICMP2 and ICMP3;

[0159] The ICMP1 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0160] The ICMP2 message includes: an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0161] The ICMP3 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string;

[0162] The TCP1 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the TCP header includes: type, code, checksum;

[0163] The TCP2 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the TCP header includes: type, code, checksum;

[0164] The TCP3 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the TCP header includes: type, code, checksum;

[0165] The UDP1 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the UDP header includes: type, code, checksum;

[0166] The UDP2 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the UDP header includes: type, code, checksum;

[0167] The UDP3 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the UDP header includes: type, code, checksum;

[0168] In one embodiment, the device flow table control module 506 is used to generate a flow table according to the virtual machine port information, the relevant network configuration information and the open flow protocol and send the flow table to the virtual device;

[0169] Generating a flow table according to the detection message and the open flow protocol and sending the flow table to the virtual device includes:

[0170] Generate a flow table according to the ICMP message type, source IP, destination IP, and date field, and in combination with the open flow protocol;

[0171] Generate a flow table according to the TCP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol;

[0172] A flow table is generated according to the UDP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol.

[0173] Comparing the flow table received by the virtual device with the detection message, if the flow table and the detection message match, reporting the matching information;

[0174] According to the device information where the flow table in the reported matching information is located and the detection message in the matching information, the flow path information of the detection message is obtained;

[0175] The faulty node is located according to the flow path information of the detection message.

[0176] In one embodiment, the device fault analysis module 510 is used to analyze and locate the faulty node according to the detection message received by the virtual device and the flow table received by the virtual device.

[0177] Comparing the flow table received by the virtual device with the detection message, if the flow table and the detection message match, reporting the matching information;

[0178] According to the device information where the flow table in the reported matching information is located and the detection message in the matching information, the flow path information of the detection message is obtained;

[0179] The faulty node is located according to the flow path information of the detection message.

[0180] In one embodiment, the link adjustment module 512 of the device is used to randomly introduce the faulty node into the non-faulty node for re-analysis and calculation according to the flow table.

[0181] Probing multiple target devices through the ICMP message and the TCP message;

[0182] Generate first matching results respectively according to the matching conditions between the ICMP message and the flow tables of the multiple target devices, and copy and report the multiple first matching results;

[0183] Generate multiple second matching results respectively according to the matching conditions between the TCP message and the flow tables of the multiple target devices, and copy and report the multiple second matching results;

[0184] In response to the first matching result and the second matching result corresponding to any target device among the multiple target devices being successfully matched, the state of the target device is normal;

[0185] In response to a first matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device through which the TCP message flows is used as the IP address of the faulty node;

[0186] In response to the second matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device in the abnormal state through which the ICMP message flows is used as the IP address of the faulty node.

[0187] For the specific definition of the SDN network fault detection device, please refer to the definition of the SDN network fault detection method in the above text, which will not be repeated here. Each module in the above-mentioned SDN network fault detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0188] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store virtual device data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a fault detection and adjustment method is implemented.

[0189] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0190] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0191] Get virtual device port information and its related network configuration information;

[0192] Constructing a detection message according to the virtual device port information and the related network configuration information;

[0193] Generate a flow table according to the detection message information and the open flow protocol and send the flow table to the virtual device;

[0194] Sending the detection message to the virtual device;

[0195] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0196] According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

[0197] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0198] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device includes:

[0199] Comparing the flow table received by the virtual device with the detection message, if the flow table and the detection message match, reporting the matching information;

[0200] According to the device information where the flow table in the reported matching information is located and the detection message in the matching information, the flow path information of the detection message is obtained;

[0201] The faulty node is located according to the flow path information of the detection message.

[0202] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0203] Locating the faulty node according to the comparison result includes:

[0204] Probing multiple target devices through the ICMP message and the TCP message;

[0205] Generate first matching results respectively according to the matching conditions between the ICMP message and the flow tables of the multiple target devices, and copy and report the multiple first matching results;

[0206] Generate multiple second matching results respectively according to the matching conditions between the TCP message and the flow tables of the multiple target devices, and copy and report the multiple second matching results;

[0207] In response to the first matching result and the second matching result corresponding to any target device among the multiple target devices being successfully matched, the state of the target device is normal;

[0208] In response to a first matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device through which the TCP message flows is used as the IP address of the faulty node;

[0209] In response to the second matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device in the abnormal state through which the ICMP message flows is used as the IP address of the faulty node.

[0210] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0211] According to the flow table, the faulty node is introduced into the normal node for analysis and calculation, including:

[0212] Deleting the flow table of the faulty node and forming a new flow table;

[0213] Introducing the faulty node into a non-faulty node according to the new flow table;

[0214] Update the MAC address of the detection message according to the fault-free node, and send the new flow table and the detection message to the barrier-free node;

[0215] The current node is calculated based on the new flow table and the detection message.

[0216] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0217] Get virtual device port information and its related network configuration information;

[0218] Constructing a detection message according to the virtual device port information and the related network configuration information;

[0219] Generate a flow table according to the detection message information and the open flow protocol and send the flow table to the virtual device;

[0220] Sending the detection message to the virtual device;

[0221] Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device;

[0222] According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

[0223] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0224] Generating a flow table according to the detection message and the open flow protocol and sending the flow table to the virtual device includes:

[0225] Generate a flow table according to the ICMP message type, source IP, destination IP, and date field, and in combination with the open flow protocol;

[0226] Generate a flow table according to the TCP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol;

[0227] A flow table is generated according to the UDP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol.

[0228] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0229] Introducing the faulty node into a non-faulty node also includes:

[0230] Determine whether there is a fault-free node at present, and if there is a fault-free node, introduce the faulty node into the fault-free node;

[0231] If all current nodes are faulty, no calculation will be performed and an alarm will be issued.

[0232] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0233] Determine whether there is a fault-free node at present, and if there is a fault-free node, introduce the faulty node into the fault-free node;

[0234] If all current nodes are faulty, no calculation will be performed and an alarm will be issued.

[0235] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0236] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0237] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A fault detection and adjustment method, characterized in that: include, Get virtual device port information and its related network configuration information; Constructing a detection message according to the virtual device port information and the related network configuration information; Generate a flow table according to the detection message information and the open flow protocol and send the flow table to the virtual device; Sending the detection message to the virtual device; Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device; According to the flow table, the faulty node is introduced into the normal node for re-analysis and calculation.

2. A fault detection and adjustment method according to claim 1, characterized in that: Analyzing and locating a faulty node according to the detection message received by the virtual device and the flow table received by the virtual device includes: Comparing the flow table received by the virtual device with the detection message, if the flow table and the detection message match, reporting the matching information; According to the device information where the flow table in the reported matching information is located and the detection message in the matching information, the flow path information of the detection message is obtained; The faulty node is located according to the flow path information of the detection message.

3. A fault detection and adjustment method according to claim 2, characterized in that: Locating the faulty node according to the flow path information of the detection message includes: Probing multiple target devices through the ICMP message and the TCP message; Generate first matching results respectively according to the matching conditions between the ICMP message and the flow tables of the multiple target devices, and copy and report the multiple first matching results; Generate multiple second matching results respectively according to the matching conditions between the TCP message and the flow tables of the multiple target devices, and copy and report the multiple second matching results; In response to the first matching result and the second matching result corresponding to any target device among the multiple target devices being successfully matched, the state of the target device is normal; In response to a first matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device through which the TCP message flows is used as the IP address of the faulty node; In response to the second matching result corresponding to any target device among the multiple target devices being a matching failure, the target device is in an abnormal state, and the IP address of the target device in the abnormal state through which the ICMP message flows is used as the IP address of the faulty node.

4. A fault detection and adjustment method according to claim 1, characterized in that: According to the flow table, the faulty node is introduced into the normal node for analysis and calculation, including: Deleting the flow table of the faulty node and forming a new flow table; Introducing the faulty node into a non-faulty node according to the new flow table; Update the MAC address of the detection message according to the fault-free node, and send the new flow table and the detection message to the barrier-free node; The current node is calculated based on the new flow table and the detection message.

5. A fault detection and adjustment method according to claim 4, characterized in that: Introducing the faulty node into a non-faulty node also includes: Determine whether there is a fault-free node at present, and if there is a fault-free node, introduce the faulty node into the fault-free node; If all current nodes are faulty, no calculation will be performed and an alarm will be issued.

6. A fault detection and adjustment method according to claim 1, characterized in that: The detection message includes: TCP message, UDP message and ICMP message, the TCP message includes: TCP1, TCP2 and TCP3; the UDP message includes: UDP1, UDP2 and UDP3; the ICMP message includes: ICMP1, ICMP2 and ICMP3; The ICMP1 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string; The ICMP2 message includes: an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string; The ICMP3 message includes an Ethernet frame header, an IP header, an ICMP header and ICMP DATA, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the ICMP header includes: type, code, checksum; the ICMP DATA is a custom string; The TCP1 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the TCP header includes: type, code, checksum; The TCP2 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the TCP header includes: type, code, checksum; The TCP3 message includes an Ethernet frame header, an IP header, and a TCP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the TCP header includes: type, code, checksum; The UDP1 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination virtual device IP; the UDP header includes: type, code, checksum; The UDP2 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the MAC address of the current virtual device, the MAC address and type of the gateway in the destination virtual device network; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and destination network virtual device IP; the UDP header includes: type, code, checksum; The UDP3 message includes an Ethernet frame header, an IP header, and a UDP header, wherein the Ethernet frame header includes: the current virtual device MAC address, the destination virtual device MAC address and type; the IP header includes: version number, header length, service type, total length, identification, flag, segment offset, lifetime, header checksum, protocol, source virtual device IP and IP in non-SDN network area; the UDP header includes: type, code, checksum.

7. A fault detection and adjustment method according to claim 6, characterized in that: Generating a flow table according to the detection message and the open flow protocol and sending the flow table to the virtual device includes: Generate a flow table according to the ICMP message type, source IP, destination IP, and date field, and in combination with the open flow protocol; Generate a flow table according to the TCP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol; A flow table is generated according to the UDP message type, source IP, destination IP, source port and destination port, and in combination with the open flow protocol.

8. A fault detection and adjustment device, characterized in that: The device comprises: An information acquisition module is used to obtain virtual machine port information and related network configuration information; A message construction module, used to construct a detection message according to the virtual machine port information and the related network configuration information; A flow table control module, used to generate a flow table according to the virtual machine port information, the relevant network configuration information and the open flow protocol and send the flow table to the virtual device; A message sending module, sending the detection message to the virtual device; A fault analysis module, used to analyze and locate a faulty node based on the detection message received by the virtual device and the flow table received by the virtual device; The link adjustment module is used to introduce the faulty node into the normal node for re-analysis and calculation according to the flow table.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Cited By

  • Network fault diagnosis method and device, storage medium and electronic equipment

    CN119728407A