Network quality determination method, storage medium, electronic device, and program product
By sending network detection parameters to VTEP nodes on the management platform, the problem that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network is solved, and real-time perception and service recovery efficiency of the Underlay physical network are improved.
Patent Information
- Application Number
- CN202411870257.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-12-18
AI Technical Summary
The Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network, resulting in interruption of business traffic and complex problem positioning, which requires manual investigation and affect the business recovery time.
The network detection parameters are sent to the VTEP node through the management platform, instructing the node to perform target detection operations, and obtaining the detection results to determine the network quality between nodes, including real-time connectivity.
Real-time connectivity perception of Underlay physical network is realized, which avoids business interruptions, simplifies problem positioning, and improves business recovery efficiency.
Smart Images

Figure CN119316319B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of software-defined networks, and in particular, to a method for determining network quality, a storage medium, an electronic device, and a program product. Background Art
[0002] Software-Defined Networking (SDN) is a host overlay technology. The overlay logical network is separated from the underlying physical underlay network, which means that the physical network and the logical network are not aware of each other. The control plane virtual network solution (Open Virtual Network, OVN) does not detect the end-to-end reachability of the underlay network when establishing the virtual tunnel access point (VTEP) tunnel. In the underlay three-layer networking scenario, there may be multiple devices such as switches and routers between VTEP nodes. If a fault occurs in a certain section of the network, causing the physical network Internet Protocol (IP) between VTEP nodes to be unavailable, service traffic will be interrupted. However, since the overlay tunnel cannot detect and perceive the real-time connectivity of the physical network, it will not report alarm events, and the control plane does not have a mechanism to link and cancel the VTEP tunnel. This may make the problem location vague and complicated, requiring manual troubleshooting, which will bring uncertainty to the service recovery time.
[0003] In the related technology, the problem that the overlay logical network cannot perceive the real-time connectivity of the underlay physical network has not yet been effectively solved. Summary of the invention
[0004] The embodiments of the present application provide a method for determining network quality, a storage medium, an electronic device, and a program product to at least solve the problem in the related art that the overlay logical network cannot perceive the real-time connectivity of the underlay physical network.
[0005] According to one embodiment of the present application, a method for determining network quality is provided, which is applied to a management platform, and the management platform communicates with at least two VTEP nodes respectively. The method includes: sending a network detection parameter to a first node among the at least two VTEP nodes to instruct the first node to perform a target detection operation on a second node among the at least two VTEP nodes; receiving a detection result of the target detection operation fed back by the first node; and determining the network quality between the first node and the second node based on the detection result, wherein the network quality includes at least: real-time connectivity between the first node and the second node.
[0006] In an exemplary embodiment, before sending the network detection parameters to the first node of the at least two VTEP nodes, the method also includes: determining a first selected operation performed by the target object on the management platform, wherein the first selected operation is at least used to indicate a target operation type of the target detection operation; determining a second selected operation performed by the target object on a drop-down list of the target operation type, wherein the drop-down list records a plurality of detection times and a plurality of detection intervals at which the target detection operation corresponding to the target operation type is allowed to be executed; and determining the target detection times and target detection interval selected by the second selected operation as the network detection parameters.
[0007] In an exemplary embodiment, before sending network detection parameters to the first node among the at least two VTEP nodes, the method further includes: determining whether a first switch and a second switch deployed in the management platform are both turned on, wherein the first switch is a master switch for indicating whether the management platform is allowed to perform any of a plurality of network detection operations, and the second switch is a switch for indicating whether the management platform is allowed to perform a target detection operation, and the plurality of network detection operations include: the target detection operation; when the first switch and the second switch are both turned on, determining that the management platform is allowed to send network detection parameters to the first node among the at least two VTEP nodes.
[0008] In an exemplary embodiment, determining the network quality between the first node and the second node based on the detection result includes: obtaining M second messages in the detection result, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times, and the M second messages are feedback messages of the second node to the M first messages continuously sent by the first node to the second node through the network detection parameters; when the message meanings of the M second messages are all network unreachable, determining the real-time connectivity between the first node and the second node as network disconnection.
[0009] In an exemplary embodiment, after determining the network quality between the first node and the second node based on the detection result, the method also includes: generating a network quality report between the first node and the second node through the M first messages and the M second messages, wherein the network quality report is at least used to indicate the real-time connectivity and network jitter between the first node and the second node.
[0010] According to another embodiment of the present application, a method for determining network quality is provided, which is applied to a first node among at least two VTEP nodes, and the at least two VTEP nodes communicate with a management platform respectively, and the method includes: receiving network detection parameters sent by the management platform, and performing a target detection operation on a second node among the at least two VTEP nodes; and feeding back a detection result of the target detection operation to the management platform to instruct the management platform to determine the network quality between the first node and the second node based on the detection result, wherein the network quality includes at least: real-time connectivity between the first node and the second node.
[0011] In an exemplary embodiment, performing a target detection operation on a second node among the at least two VTEP nodes includes: performing M consecutive target detection operations on the second node according to a target detection interval, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection interval, and the target detection times.
[0012] In an exemplary embodiment, performing a target detection operation on a second node among the at least two VTEP nodes includes: sending a first message to the second node using the network detection parameters; and determining that the target detection operation is completed upon receiving a second message fed back by the second node.
[0013] In an exemplary embodiment, after performing a target detection operation on the second node among the at least two VTEP nodes, the method further includes: obtaining a first message field carried in the second message; determining whether there is a third message field that is identical to the first message field in a plurality of pre-set second message fields, wherein the plurality of second message fields are respectively used to indicate different message meanings; and in the case that the third message field exists in the plurality of second message fields, determining the message meaning corresponding to the third message field as the message meaning of the second message.
[0014] In an exemplary embodiment, after performing a target detection operation on a second node among the at least two VTEP nodes, the method further includes: obtaining M second messages fed back by the second node, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times; when the message meanings of the M second messages are all network unreachable, determining that the real-time connectivity between the first node and the second node is network disconnection.
[0015] In an exemplary embodiment, the detection result of the target detection operation is fed back to the management platform, including: when the Mth second message fed back by the second node has been obtained, determining the M first messages that have been sent to the second node, and the M second messages fed back by the second node, wherein the M first messages and the M second messages correspond one-to-one; determining the M first messages, the M second messages and the real-time connectivity as the detection result, and feeding back the detection result to the management platform.
[0016] In an exemplary embodiment, before performing a target detection operation on the second node among the at least two VTEP nodes, the method further includes: parsing the network detection parameters to determine whether the network detection parameters carry a node indication parameter, wherein the node indication parameter is used to indicate a third node on which the first node needs to perform a target detection operation; when the network detection parameters carry the node indication parameter, determining the third node as the second node; and when the network detection parameters do not carry the node indication parameter, determining all fourth nodes among the at least two VTEP nodes that can communicate with the first node as the second nodes.
[0017] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0018] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0020] Through the present application, a management platform that communicates with at least two VTEP nodes respectively sends a network detection parameter to the first node of the at least two VTEP nodes to instruct the first node to perform a target detection operation on the second node of the at least two VTEP nodes; receives the detection result of the target detection operation fed back by the first node; and determines the network quality between the first node and the second node based on the detection result, wherein the network quality at least includes: the real-time connectivity between the first node and the second node. That is, by sending the network detection parameter to the first node, the management platform can enable the first node to perform a target detection operation on the second node, thereby at least determining the real-time connectivity between the first node and the second node. Therefore, the problem in the related art that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network can be solved. The technical effect of perceiving the real-time connectivity of the Underlay physical network is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a hardware structure block diagram of a computer terminal of a method for determining network quality according to an embodiment of the present application;
[0022] Figure 2 is a flowchart of a method for determining network quality according to an embodiment of the present application (I);
[0023] Figure 3 is a switch schematic diagram of a management platform according to a method for determining network quality according to an embodiment of the present application;
[0024] Figure 4 is a flow chart of a method for determining network quality according to an embodiment of the present application (II);
[0025] Figure 5 is a schematic diagram of node interaction according to a method for determining network quality according to an embodiment of the present application;
[0026] Figure 6 is a schematic diagram of an implementation architecture of a method for determining network quality according to an embodiment of the present application;
[0027] Figure 7 This is a structural block diagram of a device for determining network quality according to an embodiment of the present application (I).
[0028] Figure 8 This is a structural block diagram (II) of a device for determining network quality according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0031] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a method for determining network quality in an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for allocating load resources in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] Figure 2 is a flowchart (I) of a method for determining network quality according to an embodiment of the present application, which is applied to a management platform, and the management platform communicates with at least two VTEP nodes respectively; Figure 2 As shown, the process includes the following steps:
[0035] Step S202: Send a network detection parameter to a first node among the at least two VTEP nodes to instruct the first node to perform a target detection operation on a second node among the at least two VTEP nodes;
[0036] Step S204, receiving the detection result of the target detection operation fed back by the first node; and determining the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: real-time connectivity between the first node and the second node.
[0037] Through the above steps, the management platform that communicates with at least two VTEP nodes respectively sends a network detection parameter to the first node of the at least two VTEP nodes to instruct the first node to perform a target detection operation on the second node of the at least two VTEP nodes; receives the detection result of the target detection operation fed back by the first node; and determines the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: the real-time connectivity between the first node and the second node. That is to say, by sending the network detection parameter to the first node, the management platform can enable the first node to perform a target detection operation on the second node, thereby at least determining the real-time connectivity between the first node and the second node. Therefore, the problem in the related technology that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network can be solved. The technical effect of perceiving the real-time connectivity of the Underlay physical network is achieved.
[0038] In an exemplary embodiment, before sending the network detection parameters to the first node of the at least two VTEP nodes, the method also includes: determining a first selected operation performed by the target object on the management platform, wherein the first selected operation is at least used to indicate a target operation type of the target detection operation; determining a second selected operation performed by the target object on a drop-down list of the target operation type, wherein the drop-down list records a plurality of detection times and a plurality of detection intervals at which the target detection operation corresponding to the target operation type is allowed to be executed; and determining the target detection times and target detection interval selected by the second selected operation as the network detection parameters.
[0039] It is understandable that the management platform can provide a display interface for the target object of the management platform. When the target object needs to determine the network quality between the first node and the second node that can communicate with the first node, it can first determine the network quality parameters that need to be detected. Secondly, clearly determine the target operation type corresponding to the target detection operation that needs to be performed for the network quality parameter; again, perform the first selection operation in the display interface to select the target operation type; finally, select the network detection parameter in the drop-down list of the target operation type. Optionally, the embodiment of the present application can detect multiple network quality parameters, and the multiple network quality parameters include but are not limited to at least one of the following: the real-time connectivity, network jitter (Jitter), Transmission Control Protocol (TCP) delay, User Datagram Protocol (UDP) delay, Hypertext Transfer Protocol (HTTP) delay, etc.
[0040] For example, if the network quality parameter that the target object needs to detect is real-time connectivity, then the target operation type corresponding to the real-time connectivity is selected in the display interface, and then the execution network detection parameter is selected in the drop-down list of the target operation type corresponding to the real-time connectivity. For real-time connectivity, the target detection operation can be: Internet Control Message Protocol (ICMP) detection operation.
[0041] Therefore, the embodiment of the present application implements the selection of network detection parameters for the target detection operation through the first selection operation and the second selection operation, so that the target detection operation can be configured by the target object, thereby improving the user experience.
[0042] In an exemplary embodiment, before sending network detection parameters to the first node among the at least two VTEP nodes, the method further includes: determining whether a first switch and a second switch deployed in the management platform are both turned on, wherein the first switch is a master switch for indicating whether the management platform is allowed to perform any of a plurality of network detection operations, and the second switch is a switch for indicating whether the management platform is allowed to perform a target detection operation, and the plurality of network detection operations include: the target detection operation; when the first switch and the second switch are both turned on, determining that the management platform is allowed to send network detection parameters to the first node among the at least two VTEP nodes.
[0043] The embodiment of the present application can implement detection operations for multiple network quality parameters, and accordingly, the management platform is deployed with control switches corresponding to the multiple network quality parameters. Specifically, the control switch includes: a first switch, and multiple third switches, each of which is a switch indicating whether the management platform is allowed to perform each of the multiple network detection operations corresponding to the multiple network quality parameters, and the multiple third switches include: a second switch.
[0044] like Figure 3 As shown, the first switch is equivalent to Figure 3 The NQA switch in the embodiment (equivalent to the first switch), the plurality of third switches include Figure 3 In: ICMP switch, ICMP Jitter switch, TCP switch, UDP switch. For example, when the network quality parameter to be detected is real-time connectivity, and the target detection operation to be performed is an ICMP detection operation, both the NQA switch and the ICMP switch (equivalent to the second switch) need to be turned on.
[0045] Therefore, the embodiment of the present application realizes the control of multiple network detection operations through switches on the management platform side.
[0046] In an exemplary embodiment, determining the network quality between the first node and the second node based on the detection result includes: obtaining M second messages in the detection result, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times, and the M second messages are feedback messages of the second node to the M first messages continuously sent by the first node to the second node through the network detection parameters; when the message meanings of the M second messages are all network unreachable, determining the real-time connectivity between the first node and the second node as network disconnection.
[0047] It should be noted that the first node performs a target detection operation on the second node, including: sending a first message to the second node through the network detection parameter; and determining that the target detection operation is completed when receiving a second message fed back by the second node.
[0048] Exemplarily, when the network detection parameters are: ping 5 times (ie, the number of target detection times) and an interval of 1 second (ie, the target detection interval), if the message meanings of the M second messages are all that the network is unreachable, the real-time connectivity is that the network is not connected.
[0049] Optionally, when it is determined that the network connectivity is not connected, an alarm needs to be sent to an alarm center.
[0050] Therefore, the embodiment of the present application can determine the network connectivity between the first node and the second node through the M second messages fed back by the second node, and can determine the location that needs maintenance through the M second messages when the network is not connected.
[0051] Optionally, different alarm levels can be set for a variety of network detection parameters. For example, if the real-time connectivity of the network is the most basic network quality parameter, a first-level alarm can be set for the real-time connectivity, and a second-level alarm can be set for other network detection parameters, such as TCP delay. For another example, different alarm values can be set for a variety of network detection parameters, and multiple alarm ranges can be set accordingly, each alarm range corresponding to a different alarm level, so that when there are at least two events that need to be alarmed at the same time, the alarm values of the network detection parameters corresponding to the at least two events that need to be alarmed can be summed and averaged. The average value is in the alarm level corresponding to the target alarm range of the multiple alarm ranges, that is, the common alarm level of the at least two events that need to be alarmed. Therefore, by setting the alarm level, the target object can be reminded of the severity of the current network quality-related problems, so that the target object will not ignore the handling of serious problems.
[0052] In an exemplary embodiment, after determining the network quality between the first node and the second node based on the detection result, the method also includes: generating a network quality report between the first node and the second node through the M first messages and the M second messages, wherein the network quality report is at least used to indicate the real-time connectivity and network jitter between the first node and the second node.
[0053] Figure 4 is a flowchart (II) of a method for determining network quality according to an embodiment of the present application, which is applied to a first node of at least two VTEP nodes, wherein the at least two VTEP nodes communicate with a management platform respectively; Figure 4 As shown, the process includes the following steps:
[0054] Step S402, receiving the network detection parameters sent by the management platform, and performing a target detection operation on the second node of the at least two VTEP nodes;
[0055] Step S404, feeding back the detection result of the target detection operation to the management platform to instruct the management platform to determine the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: real-time connectivity between the first node and the second node.
[0056] Through the above steps, the first node of at least two VTEP nodes receives the network detection parameters sent by the management platform, and performs a target detection operation on the second node of the at least two VTEP nodes, and the at least two VTEP nodes communicate with the management platform respectively; the detection result of the target detection operation is fed back to the management platform to instruct the management platform to determine the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: the real-time connectivity between the first node and the second node. That is, the first node performs a target detection operation on the second node through the network detection parameters sent by the received management platform, thereby at least determining the real-time connectivity between the first node and the second node. Therefore, the problem in the related technology that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network can be solved. The technical effect of perceiving the real-time connectivity of the Underlay physical network is achieved.
[0057] In an exemplary embodiment, performing a target detection operation on a second node among the at least two VTEP nodes includes: performing M consecutive target detection operations on the second node according to a target detection interval, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection interval, and the target detection times.
[0058] For example, if the number of target detection times in the network detection parameters is ping 5 times and the target detection interval is 1 second, the second node is pinged 5 times continuously at an interval of 1 second. Pinging means performing a target detection operation.
[0059] In an exemplary embodiment, performing a target detection operation on a second node among the at least two VTEP nodes includes: sending a first message to the second node using the network detection parameters; and determining that the target detection operation is completed upon receiving a second message fed back by the second node.
[0060] Optional, such as Figure 5 As shown, the target detection operation is specifically: the first node sends a first message to the second node. In one case, when a second message is received from the second node in response to the first message, it is confirmed that a target detection operation is completely performed; in another case, as long as the first node sends the first message to the node, it can be considered that a target detection operation is performed.
[0061] Specifically, the first message may be an ICMP ECHO-REQUEST message, and the second message may be an ICMP ECHO-REPLY message.
[0062] Therefore, the embodiment of the present application realizes the detection of network quality by sending and receiving messages between the first node and the second node.
[0063] In an exemplary embodiment, after performing a target detection operation on the second node among the at least two VTEP nodes, the method further includes: obtaining a first message field carried in the second message; determining whether there is a third message field that is identical to the first message field in a plurality of pre-set second message fields, wherein the plurality of second message fields are respectively used to indicate different message meanings; and in the case that the third message field exists in the plurality of second message fields, determining the message meaning corresponding to the third message field as the message meaning of the second message.
[0064] Optionally, the third message field may be a field specified in the ICMP protocol; the third message field may also be a field specially set for the method for determining the network quality of the present application.
[0065] In an exemplary embodiment, after performing a target detection operation on a second node among the at least two VTEP nodes, the method further includes: obtaining M second messages fed back by the second node, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times; when the message meanings of the M second messages are all network unreachable, determining that the real-time connectivity between the first node and the second node is network disconnection.
[0066] Optionally, the first node also wants to alert the alarm center when determining that the real-time connectivity between the first node and the second node is network disconnection. Optionally, the alarm center can communicate with at least two VTEP nodes and the management platform respectively.
[0067] In an exemplary embodiment, the detection result of the target detection operation is fed back to the management platform, including: when the Mth second message fed back by the second node has been obtained, determining the M first messages that have been sent to the second node, and the M second messages fed back by the second node, wherein the M first messages and the M second messages correspond one-to-one; determining the M first messages, the M second messages and the real-time connectivity as the detection result, and feeding back the detection result to the management platform.
[0068] In an exemplary embodiment, before performing a target detection operation on the second node among the at least two VTEP nodes, the method further includes: parsing the network detection parameters to determine whether the network detection parameters carry a node indication parameter, wherein the node indication parameter is used to indicate a third node on which the first node needs to perform a target detection operation; when the network detection parameters carry the node indication parameter, determining the third node as the second node; and when the network detection parameters do not carry the node indication parameter, determining all fourth nodes among the at least two VTEP nodes that can communicate with the first node as the second nodes.
[0069] It is understandable that on the management platform side, the target object can also choose whether to configure which third nodes the first node needs to perform target detection operations on. If configured, the configured third node is used as the second node to perform network detection operations; if not configured, all fourth nodes in at least two VTEP nodes that can communicate with the first node are used as the second node.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0071] In order to better understand the process of the above-mentioned method for determining network quality, the implementation process of the above-mentioned method for determining network quality is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0072] In the traditional historical stage, the network of the data center is based on the three-layer architecture (core, aggregation, access) as the basic standard. In the specific implementation process, with the continuous development of technology, different manufacturers have different ways of organization. Some manufacturers add virtualization technology to the core layer to achieve virtual separation of the core layer and the aggregation layer on the physical device, making the overall network architecture flat; some manufacturers add virtualization technology to the aggregation layer and the access layer to achieve virtual separation of the aggregation layer and the access layer on the physical device. However, no matter how it changes, the basic principle of Ethernet network transmission has not changed. It is necessary to rely on network addresses and physical addresses for control and forwarding. However, with the development of cloud computing, data centers are moving towards large-scale and ultra-flexible needs. Then, there are difficulties in cross-regional migration and protection of virtual computing, limited cluster network isolation scale, and limited overall network resources in data centers. It is in this historical background that the new software-defined network (SDN) technology based on control and forwarding separation came into being. As a new generation of network technology, SDN has begun to be widely used in various industries. The essential characteristics of SDN are the separation of control plane and data plane and open programmability. By separating the control plane and data plane and opening communication protocols, the closed nature of traditional network equipment is broken. In addition, the open interfaces and programmability of north-south and east-west directions also make network management more flat, dynamic and flexible. Currently, there are two mainstream SDN technology routes: software SDN and hardware SDN.
[0073] Software SDN is a software-defined network implementation based on general-purpose servers and software. Software SDN relies on general-purpose computing devices and software to perform network functions and control. In software SDN, network management and control functions are implemented by software, and network control and management are usually performed by a controller running on a general-purpose server. Because they use general-purpose computing devices and software, they have greater flexibility and scalability than hardware SDN through dedicated network devices. The overlay forwarder of software SDN is vSwitch, and its performance is slightly lower than that of dedicated hardware network devices. However, in recent years, the industry has continuously tried new technologies such as network card unloading and white boxes, and has achieved significant improvements in single-node performance. Through cluster multi-node expansion, the overall performance under large-scale networking can fully meet business needs. In addition, by being compatible with and reusing old network devices, the Capex advantage of software SDN is also more obvious. Therefore, more and more customers choose to consider the software SDN technology route when building cloud data centers.
[0074] Software SDN is a host overlay technology. The overlay logical network is separated from the underlying physical underlay network, which means that the physical network and the logical network are not aware of each other. When the control plane OVN establishes the VTEP tunnel, it does not detect the end-to-end reachability of the underlay network. In the underlay three-layer networking scenario, there may be multiple devices such as switches and routers between VTEP nodes. If a certain section of the network fails and the physical network IP between VTEP nodes is disconnected, the service traffic will be interrupted. However, since the overlay tunnel cannot detect and perceive the real-time connectivity of the physical network, it will not report alarm events, and the control plane does not have a mechanism to link and cancel the VTEP tunnel. This may make the problem location vague and complicated, requiring manual troubleshooting, which will bring uncertainty to the service recovery time.
[0075] Based on the existing problems between logical networks and physical networks, the optional embodiment of the present application proposes a detection scheme based on Underlay network connectivity (quality) (equivalent to the method for determining network quality in the above embodiment). The core idea of this scheme is to break the previous limitations of the separation of logical networks and physical networks, and to achieve linkage between logical networks and physical networks through automatic network quality detection and analysis tools (equivalent to the management platform in the above embodiment), which can not only quickly perceive faults, but also provide comprehensive network performance analysis reports. The detection of Underlay network connectivity (quality) in soft SDN scenarios is achieved, and by timely reporting alarm events, the operation and maintenance personnel (equivalent to the target object) are helped to quickly locate the problem, improve the efficiency of troubleshooting, and quickly restore platform services. In addition, the optional embodiment of the present application can also generate network quality (delay, jitter) reports through detection tools to provide intuitive Underlay physical network performance data for operation and maintenance personnel.
[0076] In an optional embodiment of the present application, in combination with the existing software SDN architecture, a network QoS report is generated by detecting the connectivity of the network, reporting alarms, and analyzing the network quality, thereby ultimately achieving timely perception and comprehensive analysis of the Underlay physical network.
[0077] Specifically, network connectivity detection and alarm reporting include:
[0078] In the soft SDN architecture, the Overlay tunnel cannot sense the connectivity of the Underlay network. In order to sense whether the remote VTEP node network is reachable, the source end (client, equivalent to the first node in the above embodiment) sends ICMP ECHO-REQUEST messages to the target end (equivalent to the second node in the above embodiment) at regular intervals, and the target end responds to the ICMP ECHO-REPLY message to calculate the communication time from the source end to the target end, thereby clearly reflecting the network performance and network smoothness. The implementation principle is as follows: Figure 5 shown.
[0079] like Figure 5 As shown, the computing node node1 (equivalent to the first node) is set to automatically ping the computing node node2 (equivalent to the second node) according to a certain period (configurable), where the ping is based on the fact that the VTEP IP configuration has been completed correctly and the function switch is turned on (equivalent to the second switch in the above embodiment). By default, the ping operation is performed 5 times in a row. If the network is always unreachable, it is determined that there is a connectivity failure in the Underlay network between node1 and node2 (equivalent to the real-time connectivity in the above embodiment being network disconnection), and an alarm event is recorded. The specific implementation process is shown in the figure below:
[0080] Design the NQA-Manager (Network Quality Analysis) module in the management platform. The management platform designs the NQA function master switch (equivalent to the first switch in the above embodiment), including ICMP sub-switch, TCP sub-switch, UDP sub-switch, and ICMP Jitter sub-switch. Turning off the NQA master switch will turn off all sub-switches. If you need to turn on a sub-switch, you must turn on the NQA master switch in advance. Taking the ICMP sub-switch as an example, after the function is enabled, call the restAPI interface of the NQA-manager module to pass parameters (ping times, intervals), such as Figure 6 As shown in the figure, the etcd module stores the VTEP IP and network detection parameters of all computing nodes and the result record data. The execute execution module traverses to obtain the information in etcd and performs the icmp detection operation.
[0081] The detection results are divided into two categories: one that needs to be reported to the alarm center, and the other that does not need to be reported to the alarm center. For events such as network unreachability and severe packet loss, it is necessary to actively report to the alarm center, and the operation and maintenance personnel can determine the cause of the fault in the first time based on the alarm. In addition, the management platform can read the detection result data of the NQA-Manager module in real time and display it visually on the management interface.
[0082] Further, a comprehensive analysis of network quality is conducted, including:
[0083] In the NQA module of the management platform, you can expand a variety of network monitoring tools, such as network jitter, TCP delay, UDP delay, HTTP delay, etc. Jitter time is calculated by calculating the difference between the time interval for receiving data packets at the destination and the time interval for sending data packets at the source after the source receives the data packet.
[0084] like Figure 3 As shown, various protocol detection tools can be set under the NQA main switch, and users can turn on sub-switches as needed to perform network quality detection. NQA monitors the performance of multiple protocols running on the network, allowing users to collect various network operation indicators in real time and automatically generate a network service quality (Quality of Service, referred to as QoS) report (equivalent to the network quality report in the above embodiment). On the one hand, it can perform effective fault diagnosis and location when a network failure occurs, and on the other hand, it provides complete network monitoring data, which can be displayed on a centralized large screen, fully understand the network operation status, and provide a judgment basis for network quality optimization.
[0085] In summary, the optional embodiments of the present application optimize the problem that the current software SDN Overlay tunnel cannot perceive the connectivity of the Underlay network. By adding the core management module NQA-manager, the perception capability of the underlying Underlay network connectivity is realized, which can help operation and maintenance personnel quickly locate the underlay network problems and improve the troubleshooting efficiency. A complete network quality analysis report can also be generated by expanding multiple detection tools, thereby realizing comprehensive monitoring and analysis of network quality, providing comprehensive Underlay network QoS analysis data, and realizing basic cloud-network linkage functions.
[0086] Optionally, you can consider linking NQA and the OVN control plane, and use the network detection results fed back by NQA to trigger the control plane to automatically perform related actions, such as flow table withdrawal and re-issuance, to achieve more advanced cloud-network linkage functions.
[0087] In this embodiment, a device for determining network quality is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0088] Figure 7 is a structural block diagram of a device for determining network quality according to an embodiment of the present application (I), such as Figure 7As shown, the device is applied to a management platform, and the management platform communicates with at least two VTEP nodes respectively. The device includes:
[0089] A sending module 72, configured to send a network detection parameter to a first node among the at least two VTEP nodes to instruct the first node to perform a target detection operation on a second node among the at least two VTEP nodes;
[0090] The receiving module 74 is used to receive the detection result of the target detection operation fed back by the first node; and determine the network quality between the first node and the second node based on the detection result, wherein the network quality at least includes: real-time connectivity between the first node and the second node.
[0091] Through the above-mentioned device, the management platform that communicates with at least two VTEP nodes respectively sends a network detection parameter to the first node of the at least two VTEP nodes to instruct the first node to perform a target detection operation on the second node of the at least two VTEP nodes; receives the detection result of the target detection operation fed back by the first node; and determines the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: the real-time connectivity between the first node and the second node. That is to say, by sending the network detection parameter to the first node, the management platform can enable the first node to perform a target detection operation on the second node, thereby at least determining the real-time connectivity between the first node and the second node. Therefore, the problem in the related technology that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network can be solved. The technical effect of perceiving the real-time connectivity of the Underlay physical network is achieved.
[0092] In an exemplary embodiment, before sending network detection parameters to the first node of the at least two VTEP nodes, the device also includes a first determination module, which is used to: determine a first selected operation performed by the target object on the management platform, wherein the first selected operation is at least used to indicate a target operation type of the target detection operation; determine a second selected operation performed by the target object on a drop-down list of the target operation type, wherein the drop-down list records a plurality of detection times and a plurality of detection intervals at which the target detection operation corresponding to the target operation type is allowed to be executed; and determine the target detection times and target detection interval selected by the second selected operation as the network detection parameters.
[0093] In an exemplary embodiment, before sending network detection parameters to the first node among the at least two VTEP nodes, the device also includes a second determination module, which is used to: determine whether the first switch and the second switch deployed in the management platform are both turned on, wherein the first switch is a master switch used to indicate whether the management platform is allowed to perform any of a plurality of network detection operations, and the second switch is a switch used to indicate whether the management platform is allowed to perform a target detection operation, and the plurality of network detection operations include: the target detection operation; when the first switch and the second switch are both turned on, determine that the management platform is allowed to send network detection parameters to the first node among the at least two VTEP nodes.
[0094] In an exemplary embodiment, the receiving module 74 is also used to: obtain M second messages in the detection result, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times, and the M second messages are feedback messages of the second node to the M first messages continuously sent by the first node to the second node through the network detection parameters; when the message meanings of the M second messages are all network unreachable, it is determined that the real-time connectivity between the first node and the second node is network disconnection.
[0095] In an exemplary embodiment, after determining the network quality between the first node and the second node according to the detection result, the device also includes a generation module for: generating a network quality report between the first node and the second node through the M first messages and the M second messages, wherein the network quality report is at least used to indicate the real-time connectivity and network jitter between the first node and the second node.
[0096] Figure 8 is a structural block diagram of a device for determining network quality according to an embodiment of the present application (II), such as Figure 8 As shown, the device is applied to a first node of at least two VTEP nodes, and the at least two VTEP nodes communicate with a management platform respectively. The device includes:
[0097] An execution module 82, configured to receive the network detection parameters sent by the management platform, and perform a target detection operation on a second node of the at least two VTEP nodes;
[0098] The feedback module 84 is used to feed back the detection result of the target detection operation to the management platform to instruct the management platform to determine the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: real-time connectivity between the first node and the second node.
[0099] Through the above-mentioned device, the first node of at least two VTEP nodes receives the network detection parameters sent by the management platform, and performs a target detection operation on the second node of the at least two VTEP nodes, and the at least two VTEP nodes communicate with the management platform respectively; the detection result of the target detection operation is fed back to the management platform to instruct the management platform to determine the network quality between the first node and the second node according to the detection result, wherein the network quality at least includes: the real-time connectivity between the first node and the second node. That is, the first node performs a target detection operation on the second node through the network detection parameters sent by the received management platform, thereby at least determining the real-time connectivity between the first node and the second node. Therefore, the problem in the related technology that the Overlay logical network cannot perceive the real-time connectivity of the Underlay physical network can be solved. The technical effect of perceiving the real-time connectivity of the Underlay physical network is achieved.
[0100] In an exemplary embodiment, the execution module 82 is further used to: perform M consecutive target detection operations on the second node according to the target detection interval, where M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection interval, and the target detection times.
[0101] In an exemplary embodiment, the execution module 82 is further used to: send a first message to the second node using the network detection parameter; and determine that the target detection operation is completed when receiving a second message fed back by the second node.
[0102] In an exemplary embodiment, after performing a target detection operation on the second node among the at least two VTEP nodes, the device also includes a third determination module, which is used to: obtain the first message field carried in the second message; determine whether there is a third message field that is the same as the first message field in the pre-set multiple second message fields, wherein the multiple second message fields are respectively used to indicate different message meanings; in the case that the third message field exists in the multiple second message fields, the message meaning corresponding to the third message field is determined as the message meaning of the second message.
[0103] In an exemplary embodiment, after performing a target detection operation on the second node of the at least two VTEP nodes, the device also includes a fourth determination module, which is used to: obtain M second messages fed back by the second node, wherein M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameters include: the target detection times; when the message meanings of the M second messages are all network unreachable, determine that the real-time connectivity between the first node and the second node is network disconnection.
[0104] In an exemplary embodiment, the feedback module 84 is also used to: when the Mth second message fed back by the second node has been obtained, determine the M first messages that have been sent to the second node and the M second messages fed back by the second node, wherein the M first messages and the M second messages correspond one to one; determine the M first messages, the M second messages and the real-time connectivity as the detection results, and feed back the detection results to the management platform.
[0105] In an exemplary embodiment, before performing a target detection operation on the second node among the at least two VTEP nodes, the device also includes a parsing module, which is used to: parse the network detection parameters to determine whether the network detection parameters carry a node indication parameter, wherein the node indication parameter is used to indicate a third node on which the first node needs to perform a target detection operation; when the network detection parameters carry the node indication parameter, the third node is determined as the second node; when the network detection parameters do not carry the node indication parameter, all fourth nodes among the at least two VTEP nodes that can communicate with the first node are used as the second nodes.
[0106] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0107] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0108] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0109] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0110] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0111] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0112] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0113] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0114] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0115] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining network quality, characterized in that: Applied to a management platform, the management platform communicates with at least two VTEP nodes respectively, the method comprising: Sending a network detection parameter to a first node of the at least two VTEP nodes to instruct the first node to perform a target detection operation on a second node of the at least two VTEP nodes; Receive a detection result of the target detection operation fed back by the first node; and determine the network quality between the first node and the second node according to the detection result, wherein the network quality includes multiple network quality parameters, and the multiple network quality parameters include: real-time connectivity, network jitter, transmission control protocol delay, user datagram protocol delay, and hypertext transfer protocol delay between the first node and the second node; Before sending the network detection parameter to the first node of the at least two VTEP nodes, the method further includes: Determine a first selected operation performed by the target object on the management platform, wherein the first selected operation is at least used to indicate a target operation type of the target detection operation, wherein different network quality parameters correspond to different target operation types; Determine a second selected operation performed by the target object on a drop-down list of the target operation type, wherein the drop-down list records a plurality of detection times and a plurality of detection intervals at which the target detection operation corresponding to the target operation type is allowed to be performed; The target detection times and target detection interval selected by the second selection operation are determined as the network detection parameters.
2. The method according to claim 1, characterized in that Before sending the network detection parameter to the first node of the at least two VTEP nodes, the method further includes: Determine whether a first switch and a second switch deployed in the management platform are both turned on, wherein the first switch is a master switch for indicating whether the management platform is allowed to perform any operation of a plurality of network detection operations, and the second switch is a switch for indicating whether the management platform is allowed to perform a target detection operation, wherein the plurality of network detection operations include: the target detection operation; When both the first switch and the second switch are turned on, it is determined that the management platform is allowed to send a network detection parameter to a first node among the at least two VTEP nodes.
3. The method according to claim 1, characterized in that Determining the network quality between the first node and the second node according to the detection result includes: Obtaining M second messages in the detection result, where M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameter includes: the number of target detection times, and the M second messages are feedback messages of the second node to the M first messages continuously sent by the first node to the second node through the network detection parameter; When the message meanings of the M second messages are all network unreachable, it is determined that the real-time connectivity between the first node and the second node is network disconnection.
4. The method according to claim 3, characterized in that After determining the network quality between the first node and the second node according to the detection result, the method further includes: A network quality report between the first node and the second node is generated by using the M first messages and the M second messages, wherein the network quality report is at least used to indicate real-time connectivity and network jitter between the first node and the second node.
5. A method for determining network quality, characterized in that: Applied to a first node of at least two VTEP nodes, the at least two VTEP nodes respectively communicating with a management platform, the method comprising: Receiving the network detection parameters sent by the management platform, and performing a target detection operation on a second node of the at least two VTEP nodes; Feedback the detection result of the target detection operation to the management platform to instruct the management platform to determine the network quality between the first node and the second node according to the detection result, wherein the network quality includes multiple network quality parameters, and the multiple network quality parameters include: real-time connectivity between the first node and the second node, network jitter, transmission control protocol delay, user datagram protocol delay, and hypertext transfer protocol delay; Among them, the management platform determines the network detection parameters, including: determining a first selected operation performed by the target object on the management platform, wherein the first selected operation is at least used to indicate the target operation type of the target detection operation, and different network quality parameters correspond to different target operation types; determining a second selected operation performed by the target object on a drop-down list of the target operation type, wherein the drop-down list records a plurality of detection times and a plurality of detection intervals at which the target detection operation corresponding to the target operation type is allowed to be executed; and determining the target detection times and target detection intervals selected by the second selected operation as the network detection parameters.
6. The method according to claim 5, characterized in that Performing a target detection operation on a second node of the at least two VTEP nodes includes: Perform M consecutive target detection operations on the second node according to the target detection interval, where M is a positive integer, and M is used to indicate the number of target detection times. The network detection parameters include: the target detection interval, and the target detection times.
7. The method according to claim 5, characterized in that Performing a target detection operation on a second node of the at least two VTEP nodes includes: Sending a first message to the second node using the network detection parameter; When the second message fed back by the second node is received, it is determined that the target detection operation is completed.
8. The method according to claim 7, characterized in that After performing the target detection operation on the second node of the at least two VTEP nodes, the method further includes: Obtaining a first message field carried in the second message; Determine whether there is a third message field that is the same as the first message field among a plurality of preset second message fields, wherein the plurality of second message fields are respectively used to indicate different message meanings; In a case where the third message field exists in the plurality of second message fields, the message meaning corresponding to the third message field is determined as the message meaning of the second message.
9. The method according to claim 7, characterized in that: After performing the target detection operation on the second node of the at least two VTEP nodes, the method further includes: Acquire M second messages fed back by the second node, where M is a positive integer, and M is used to indicate the number of target detection times, and the network detection parameter includes: the number of target detection times; When the message meanings of the M second messages are all network unreachable, it is determined that the real-time connectivity between the first node and the second node is network disconnection.
10. The method according to claim 9, characterized in that Feedback of the detection result of the target detection operation to the management platform includes: In a case where the Mth second message fed back by the second node has been obtained, determining the M first messages that have been sent to the second node and the M second messages fed back by the second node, wherein the M first messages correspond one to one to the M second messages; The M first messages, the M second messages, and the real-time connectivity are determined as the detection result, and the detection result is fed back to the management platform.
11. The method according to claim 5, characterized in that Before performing the target detection operation on the second node of the at least two VTEP nodes, the method further includes: Parsing the network detection parameter to determine whether the network detection parameter carries a node indication parameter, wherein the node indication parameter is used to indicate a third node on which the first node needs to perform a target detection operation; In a case where the network detection parameter carries the node indication parameter, determining the third node as the second node; In a case where the network detection parameter does not carry the node indication parameter, all fourth nodes among the at least two VTEP nodes that can communicate with the first node are used as the second nodes.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 4, or implements the steps of the method described in any one of claims 5 to 11.
13. An electronic 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 processor implements the steps of the method described in any one of claims 1 to 4, or implements the steps of the method described in any one of claims 5 to 11.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 4, or implements the steps of the method described in any one of claims 5 to 11.
Citation Information
Patent Citations
Connectivity detection method and device, electronic equipment and storage medium
CN114520778A