CN117354197A - Virtual network breakpoint detection method and device, terminal equipment and storage medium - Google Patents

Virtual network breakpoint detection method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117354197A
CN117354197A CN202311659483.1A CN202311659483A CN117354197A CN 117354197 A CN117354197 A CN 117354197A CN 202311659483 A CN202311659483 A CN 202311659483A CN 117354197 A CN117354197 A CN 117354197A
Authority
CN
China
Prior art keywords
node
virtual network
ovn
target detection
tracking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311659483.1A
Other languages
Chinese (zh)
Other versions
CN117354197B (en
Inventor
李斌
林志辉
高振宇
郭长友
陈璐璐
何颂祺
邓智韬
刘伟健
何智标
赵汝恩
杨玮琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fifth Affiliated Hospital Of Guangzhou Medical University Guangdong Provincial Laboratory Affiliated Hospital Of Guangzhou Regenerative Medicine And Health
Original Assignee
Fifth Affiliated Hospital Of Guangzhou Medical University Guangdong Provincial Laboratory Affiliated Hospital Of Guangzhou Regenerative Medicine And Health
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fifth Affiliated Hospital Of Guangzhou Medical University Guangdong Provincial Laboratory Affiliated Hospital Of Guangzhou Regenerative Medicine And Health filed Critical Fifth Affiliated Hospital Of Guangzhou Medical University Guangdong Provincial Laboratory Affiliated Hospital Of Guangzhou Regenerative Medicine And Health
Priority to CN202311659483.1A priority Critical patent/CN117354197B/en
Publication of CN117354197A publication Critical patent/CN117354197A/en
Application granted granted Critical
Publication of CN117354197B publication Critical patent/CN117354197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Landscapes

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

Abstract

The invention discloses a virtual network breakpoint detection method, a device, a terminal device and a storage medium, wherein the method is applied to an open virtual network OVN, and the open virtual network OVN comprises: a trace controller and a number of trace processors deployed on working nodes contained in the open virtual network OVN; the method comprises the following steps: determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller; generating a tracking message on an initial detection node of the target detection path according to the target detection path; transmitting the trace message to the open virtual network OVN, so that when each trace processor corresponding to the working node receiving the trace message receives the trace message, the trace processor sends the working node information corresponding to the current trace processor to the trace controller; and when the fact that the corresponding working node information is not matched with the node information in the target detection path is detected, determining that the corresponding working node is a breakpoint.

Description

Virtual network breakpoint detection method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of virtual network technologies, and in particular, to a method and apparatus for detecting a breakpoint of a virtual network, a terminal device, and a storage medium.
Background
OVN (Open Virtual Network ) represents these network functions in a virtual switching environment and addresses their scalability in multi-host clusters. OVN provides a production level simple design with high scalability that can extend OVS (Open Virtual Switch, open virtual switch device) functionality to thousands of virtual machine hypervisors. It shows higher performance and stability than existing OVS plugins without requiring any additional agents for deployment and debugging. OVN is a very widely used virtual network system, often used in the Geneve (Generic Network Virtualization Encapsulation, general network virtualization encapsulation) virtual network of component containers and virtual machines.
The logical topology of a large virtual network built on the basis of OVN is complex, and various virtual switches, virtual routers and various combinations of virtual routing and firewall message processing rules are involved. Since these complex rule combinations and changes or network changes may suddenly cause a problem for a certain virtual network, it is very complex and difficult to find out from them the specific message processing rules that caused the problem.
The general solution to the problems with the above-described networks is to analyze the data by means of tools, first manually constructing the header information of a data message by means of tools ovn-trace provided by OVN, then plug it into the central control system of OVN, and then simulate the logical rule path of the virtual network that the message passes through in the virtual network by the simulator of the central control system. At this time, it is necessary to determine manually and empirically whether the logic rules of the virtual network are all correct. If the logic rules of the virtual network are correct, the possible problems are in each working node, but not in the central control node, and the nodes with high possibility are manually searched by experience to check the actual message processing rules on the nodes to see if the actual message processing rules are correct. This approach to network breakpoint troubleshooting with the ovn-trace tool is very complex and time consuming to troubleshoot the entire virtual network.
Disclosure of Invention
The embodiment of the invention provides a virtual network breakpoint detection method, a device, terminal equipment and a storage medium, which can improve the convenience of virtual network breakpoint investigation and the breakpoint detection efficiency.
An embodiment of the present invention provides a method for detecting a breakpoint of a virtual network, which is applied to an open virtual network OVN, where the open virtual network OVN includes: a trace controller and a number of trace processors deployed on working nodes contained in the open virtual network OVN;
the breakpoint detection method comprises the following steps:
determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller; the target detection path comprises a start detection node, a middle node and an end detection node;
generating a tracking message on an initial detection node of the target detection path according to the target detection path;
transmitting the tracking message from the initial detection node to an open virtual network OVN, so that when each tracking processor corresponding to the working node in the open virtual network OVN receiving the tracking message receives the tracking message, the tracking processor sends the working node information corresponding to the current tracking processor to the tracking controller;
and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
Further, the open virtual network further includes: OVN-North-DB and OVN-South-DB;
before determining the target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller, further comprising:
the tracking controller communicates with OVN-North-DB and OVN-South-DB to obtain the logical structure of the virtual network stored in OVN-North-DB and the corresponding relationship between each physical node and virtual logical node stored in OVN-South-DB;
and determining the topological relation diagram of the virtual network and the physical network according to the logic structure of the virtual network and the corresponding relation between each physical node and the virtual logic node.
Further, the determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller, comprises:
determining a start detection node and an end detection node of a target detection path of the open virtual network OVN in response to a user selecting operation on each working node in the topological relation diagram in a tracking controller;
and determining the target detection path according to the initial detection node, the tail detection node and the topological relation diagram.
Further, generating a trace message on the initial detection node of the target detection path according to the target detection path includes:
generating a header of a tracking message according to the target detection path;
intercepting normal flow data at an initial detection node of the target detection path;
and generating the tracking message according to the header of the tracking message and the normal flow data.
Further, the method further comprises the following steps:
acquiring tracking circulation information corresponding to a target detection path; wherein the tracking circulation information includes: parallel node information, path cut-off information, tracking range and forwarding setting information;
the generating the header of the trace message according to the target detection path includes:
and generating a header of the tracking message according to the tracking circulation information and the target detection path.
Further, the method further comprises the following steps:
and acquiring all the working nodes determined to be breakpoints of the open virtual network OVN, and generating a breakpoint node information table corresponding to the target detection path.
Further, the method further comprises the following steps:
when detecting that the working node information corresponding to the tracking processor matches the node information in the target detection path, determining that the corresponding working node is not a breakpoint of the open virtual network OVN.
On the basis of the method item embodiments, the invention correspondingly provides device item embodiments;
an embodiment of the present invention correspondingly provides a virtual network breakpoint detection apparatus, including: the device comprises a target detection path determining module, a tracking message generating module and a breakpoint detecting module;
the target detection path determining module is configured to determine a target detection path of the open virtual network OVN in response to a user selecting an operation on the working node in the tracking controller; the target detection path comprises a start detection node, a middle node and an end detection node;
the tracking message generation module is used for generating a tracking message on an initial detection node of the target detection path according to the target detection path;
the breakpoint detection module is configured to transmit the trace packet from an initial detection node to an open virtual network OVN, so that when each trace processor corresponding to a working node in the open virtual network OVN that receives the trace packet, send working node information corresponding to a current trace processor to the trace controller; and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements a virtual network breakpoint detection method according to the embodiment of the present invention when the processor executes the computer program.
Another embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, controls a device where the storage medium is located to execute a virtual network breakpoint detection method according to the foregoing embodiment of the present invention.
The invention has the following beneficial effects:
the invention provides a virtual network breakpoint detection method, a device, a terminal device and a storage medium, wherein the method is applied to an open virtual network OVN, and the method determines a target detection path of the open virtual network OVN by responding to the selected operation of a user on a working node in a tracking controller, and generates a tracking message on an initial detection node of the target detection path according to the target detection path; the tracking message is sent to each working node in the open virtual network OVN according to the intermediate node and the tail detection node recorded in the target detection path from the initial detection node; each working node comprises a tracking processor, when the tracking processor of each working node receives a tracking message, the self working node information is fed back to the tracking controller, the tracking controller determines whether the fed back working node information is matched with the node information contained in the target detection path according to the working node information fed back by each tracking processor, and when the fed back working node information is not matched with the node information contained in the target detection path, the corresponding working node is determined to be a breakpoint. By responding to the self-defining mode of the user on the target detection path and then conducting breakpoint check in the path based on the selected target detection path, convenience and breakpoint check efficiency of virtual network breakpoint check are improved.
Drawings
Fig. 1 is a flowchart of a virtual network breakpoint detection method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an open virtual network OVN according to an embodiment of the present invention.
FIG. 3 is a diagram of a data structure of an Option header of Gene in a message according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a GPT header data structure according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of GPT header data structure padding according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a trace packet according to an embodiment of the present invention.
Fig. 7 is a trace network path diagram according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a virtual network breakpoint detection apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, a virtual network breakpoint detection method according to an embodiment of the present invention is applied to an open virtual network OVN shown in fig. 2, where the open virtual network OVN includes: a trace controller and a number of trace processors deployed on working nodes contained in the open virtual network OVN; the breakpoint detection method comprises the following steps:
step S1: determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller; the target detection path comprises a start detection node, a middle node and an end detection node;
step S2: generating a tracking message on an initial detection node of the target detection path according to the target detection path;
step S3: transmitting the tracking message from the initial detection node to an open virtual network OVN, and transmitting the tracking message to a tracking processor corresponding to each working node of the target detection path, so that when each tracking processor corresponding to each working node in the open virtual network OVN receiving the tracking message receives the tracking message, the tracking processor transmits the working node information corresponding to the current tracking processor to the tracking controller;
step S4: and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
Fig. 2 is a schematic structural diagram of an open virtual network OVN according to an embodiment of the present invention. The open virtual network OVN includes at least a Trace controller Trace-Mgmt and a Trace processor Trace-Handler disposed on each working node of the open virtual network OVN. The Trace-Mgmt is used for unified management of whole network tracking; trace-Handler is deployed on each working node of the network, and communicates with Trace-Mgmt, receives instructions transmitted by Trace-Mgmt, and is used to tell the vswitch on the same node how to construct GPT messages. The vswitch is a virtual switch, an underlying component of OVN, and all message processing rules are performed in the vswitch. A ovn-controller is also included in each working node and is a key component of OVN for controlling the vswitch to drive the vswitch to construct a virtual network.
The virtual network breakpoint detection method of the present invention is implemented based on an open virtual network as shown in fig. 2.
For step S1, in a preferred embodiment, the open virtual network further comprises: OVN-North-DB and OVN-South-DB, prior to determining the target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller, further comprising: the tracking controller communicates with OVN-North-DB and OVN-South-DB to obtain the logical structure of the virtual network stored in OVN-North-DB and the corresponding relationship between each physical node and virtual logical node stored in OVN-South-DB; and determining the topological relation diagram of the virtual network and the physical network according to the logic structure of the virtual network and the corresponding relation between each physical node and the virtual logic node.
In a preferred embodiment, said determining the target detection path of the open virtual network OVN in response to a user selected operation of said working node in the tracking controller comprises: determining a start detection node and an end detection node of a target detection path of the open virtual network OVN in response to a user selecting operation on each working node in the topological relation diagram in a tracking controller; and determining the target detection path according to the initial detection node, the tail detection node and the topological relation diagram.
Specifically, as shown in FIG. 2, OVN-North-DB and OVN-South-DB are also included in open virtual network OVN; trace-Mgmt is respectively communicated with OVN-North-DB and OVN-South-DB, the logic structure of the virtual network is obtained from OVN-North-DB, the corresponding relation between each physical node and the virtual logic node is obtained from OVN-South-DB, and after the data are obtained, the Trace-Mgmt can determine the topology relation diagram of the virtual network and the physical network based on the obtained logic structure of the virtual network and the corresponding relation between each physical node and the virtual logic node.
After the topological contact diagram is determined, the topological contact diagram is provided for a user, so that the user can select a corresponding path required to be subjected to breakpoint detection. The user designates a start detection node and an end detection node based on the provided topological relation diagram, and a target detection path is determined according to the designated start detection node and end detection node combined with the topological relation diagram. Preferably, the topology relation diagram is provided for the user to select the target detection path, and the topology relation diagram can be visually rendered on a display device correspondingly provided by Trace-Mgmt, so that the user can perform the clicking operation of the start detection node and the end detection node in the target detection path.
For step S2, after the user completes the determination of the target detection path, a tracking message is generated on the initial detection node selected in step S1 according to the target detection path. After the determination of the target detection path is completed, trace-Mgmt can interact with Trace-Handler, preferably, in the process of continuously detecting from the start detection node to each intermediate node and the end detection node, normal communication messages can be added to the data packet header of GPT-Version3 according to a certain rule, such as a normal traffic percentage, a traffic type and a traffic characteristic, so as to transmit tracking messages by using the communication channel of the normal messages.
In a preferred embodiment, generating the trace message on the initial detection node of the target detection path according to the target detection path includes: generating a header of a tracking message according to the target detection path; intercepting normal flow data at an initial detection node of the target detection path; and generating the tracking message according to the header of the tracking message and the normal flow data.
In a preferred embodiment, further comprising: acquiring tracking circulation information corresponding to a target detection path; wherein the tracking circulation information includes: parallel node information, path cut-off information, tracking range and forwarding setting information; the generating the header of the trace message according to the target detection path includes: and generating a header of the tracking message according to the tracking circulation information and the target detection path.
Specifically, the trace message of the present invention is a special message based on the gene protocol, which can be received by the working node of OVN. After receiving the special message, the working node assembles the payload carried by the gene message into a message which can be processed by the virtual network rule according to the information in the TLV in the Optional header of the message of the gene. The assembled message is recorded in detail as it passes through both physical and virtual network nodes, and finally these records are uploaded and stored in a central processing node.
As shown in FIG. 3, the data structure of the Optionheader in the general protocol standard provided by the invention is that special information can be written into the Optionheader from the standard of the Optionheader of the general to expand the functions of the general and carry metadata information describing more messages. Wherein Option Class is used to indicate which organization or product the Option header is used, 0x103 for labeling as OVN or 0xFF54 (0 xFF00 to 0xFFFF in the Gene standard) for experimental use can be used, the Option header introduced in the present invention is GPT (GenevePiplineTrace); type is used to designate the format of the data in the Option header, and in the present invention we take 0xF1 as the format designation of GPT. Length is used to describe the Variable Option Data Length of GPT Option header, and is set to 12 in GPT. Variable Option Data stores the necessary information that is actually carried by the GPT, and information corresponding to the target detection path is stored therein.
The GPT header format shown in fig. 4 is constructed based on the GPT packet, and the corresponding filled packet is shown in fig. 5. Where VER (Version) occupies two bits, representing the current Version of GPT, which Version is used for later upgrades of the GPT protocol. Version is currently set to 0x03, designated as Version of the invention. T-TTL (Trace Time To Live) occupies 5 bit space, indicating that the life cycle of the special message should be reduced by one value every time a physical node or virtual network node passes (i.e. any working node passes), if T-TTL is 0, the message should not carry GPT header information if it is forwarded and processed. The introduction of the T-TTL is mainly used for avoiding that the special trace message is repeatedly processed in a dead loop, and finally the whole breakpoint trace system is in fault. PKT-ID (Packet Identifier) is used for marking the unique ID number of the trace message and distinguishing different trace messages, and the trace message PKT-ID is reusable. A (NAT) occupies 1bit space and is used to inform OVN whether to continue tracing after the tracing packet is NAT (Network Address Translation ) translated by OVN. Because a trace message is replaced by OVN when it passes through NAT, the setting of this field of a (NAT) is 1, so OVN needs to change the newly replaced trace message into trace message even if it is replaced. N (New) occupies 1bit space, is used for confirming whether other messages can be generated in the life cycle of the message, and is mainly used for determining the tracking range of the tracking message, when the tracking range is set to 0, the message is indicated to be only on the first node which receives the message, and the tracking message is not regenerated or is sent to other nodes. All following the PKT-ID in the message are nodes through which the message passes in turn. T (Type) occupies 1Bit, indicating whether the passing node is a parallel node, and 0 indicates that it is not a parallel node. PATH-ID marks the ID of the passing intermediate node or end detection node, occupying 4 bits. If T is 1, the node through which the following message passes should be the node ID of one or more parallel nodes in a set of parallel paths, followed by NUM, occupying 4 bits, for indicating the number of parallel nodes in the parallel paths. The GRP (Group-PATH) is the ID of the parallel PATH, and is because a message passes through several parallel PATHs during transmission, for example: if the message is transmitted from node a to node D, the path may be the transmission sequence from a- > B- > D- > F- > G, or the transmission sequence from a- > C- > D- > E- > G, where B and C are two parallel nodes in one set of parallel paths, and E and F are two parallel nodes in the other set of parallel paths. The EOS (emergency-of-service) occupies 1bit and is used to instruct the intermediate device whether to continue to encapsulate the GPT packet if the resources are under tension. 1 indicates that the GPT message can be forwarded without further encapsulation under resource shortage. T (Truncated) occupies 1bit and is used to indicate whether it is a message with path information Truncated, because in a practical environment, there are many paths that a message may pass through, and the length of a GPT message is limited, so that some paths cannot be included in the GPT message. And the GPT header is rewritten into the initial message, and then generates the trace message containing the filling information.
After the data format of the GPT header of the trace message is determined and each piece of information in the corresponding target detection path is filled in the working node where the initial detection node is located according to the description, such as the GPT header; the working node where the control start detection node is located intercepts normal traffic data by utilizing the vswitch in the working node, and attaches the filled GPT header to the normal traffic data to generate a trace message as shown in FIG. 6. The normal flow data refers to normal flow data used for conventional data interaction between the computer network nodes due to business and the like. By adopting the method for intercepting the normal flow data, the GPT header filled with the data containing the target detection path and other related information can be attached to the normal flow data to generate the trace message without generating the completed GPT message from the beginning of detection, so that the time required for generating the trace message is shortened, the generated GPT header is only, and the normal flow data is not required to be generated in a direct interception way, so that in the process of transmitting the trace message and breakpoint detection, compared with the method for generating the trace message according to the complete GPT message, faster response can be realized when the breakpoint is detected, and even millisecond-level and microsecond-level response can be realized.
In addition, a flow demand rule can be added, after the Trace-Mgmt and the Trace-Handler interact, the Trace-Handler receives the rule and synchronizes information into the vswitch, the vswitch judges whether the real-time flow meeting the condition exists in real time, and if the real-time flow meeting the condition exists in the GPT header, the real-time flow meeting the condition is added.
Illustratively, after determining that the start detection node is node 1 and the end detection node is node 5, a Trace network path diagram as shown in fig. 7, that is, all possible paths including the start detection node 1 and the end detection node 5, in combination with the topology map, may be determined in Trace-Mgmt, where node 2 and node 3 are a set of parallel nodes; the node 1 starts, the middle passes through the node 2 or the node 3, then passes through the node 4 and finally reaches the node 5; this information will be given to Trace-Handler on node 1, which will tell the vswitch on the machine to generate a GPT header containing node 1, node 2, node 3, node 4, node 5, and generate Trace messages in combination with normal traffic data. The trace message is sent out from the node 1, and based on the record information in the trace message, the T-TTL data-1 in the trace message is traced every time the trace message passes through 1 node (such as any node of the nodes 2, 3, 4 and 5) so as to avoid dead circulation.
For step S3, after determining the Trace packet, the Trace packet sequentially sends the Trace packet to the Trace-Handler in the corresponding working node in the open virtual network OVN according to the transmission sequence of the working node recorded in the target detection path, so that the Trace-Handler in the corresponding working node receives the current Trace packet, and sends the working node information corresponding to the current working node to the Trace-Mgmt. And when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, namely, the detected working node does not exist in the nodes contained in the target detection path, determining that the detected working node is a breakpoint of the open virtual network OVN.
In a preferred embodiment, further comprising: when detecting that the working node information corresponding to the tracking processor matches the node information in the target detection path, determining that the corresponding working node is not a breakpoint of the open virtual network OVN.
Specifically, when it is detected that the working node information corresponding to the tracking processor matches the node information in the target detection path, that is, when the detected working node exists in the nodes included in the target detection path, it is determined that the detected working node is a normal working node of the target detection path in the open virtual network OVN, that is, a middle node or an end detection node of the target detection path.
Preferably, in the process of tracking the tracking message, when the tracking message is sent to the working node in the open virtual network OVN, and when the working node is detected to be not a breakpoint, the working node information corresponding to the current working node is not sent to the Trace-Mgmt, so as to reduce the feedback data amount, and only obtain the breakpoint information contained in the target detection path in the Trace-Mgmt.
In a preferred embodiment, further comprising: and acquiring all the working nodes determined to be breakpoints of the open virtual network OVN, and generating a breakpoint node information table corresponding to the target detection path.
It is to be added that after the tracking of the tracking message is completed, a target detection path corresponding to the detection process and a current detection path corresponding to the open virtual network are obtained from Trace-Mgmt; generating a path node information table according to the current detection path and the target detection path; for example, the current detection path is: a- > B- > C- > E- > F, wherein the initial detection node of the target detection path is A, the final detection node is G, a group of parallel nodes are C and D, and the corresponding target detection path is: a- > B- > D- > E- > G or A- > B- > C- > E- > G. Generating a path node information table shown in the following table according to the current detection path and the target detection path:
as can be seen from the above table, the end detection node of the target detection path is G, the end detection node of the current detection path is F, the node information fed back here is not matched, and there is no parallel node, so that transmission of the end detection node is wrong, and the end detection node in the target detection path is determined to be a breakpoint position. In addition, since points C and D are a set of parallel nodes, it is not necessary to repeat the step D when the current detection path passes through point C, and vice versa. When determining the breakpoint position, preferably, the working node information of the current breakpoint position can be reported to Trace-Mgmt, but the reporting process does not affect the subsequent message transmission process, namely, after the breakpoint is found, the breakpoint information is fed back in time and the message is tracked to be transmitted to the next working node to be detected, and the message transmission is stopped until the detection of the last node of the path is completed.
On the basis of the method item embodiments, the invention correspondingly provides the device item embodiments.
As shown in fig. 8, an embodiment of the present invention provides a virtual network breakpoint detection apparatus, including: the device comprises a target detection path determining module, a tracking message generating module and a breakpoint detecting module;
the target detection path determining module is configured to determine a target detection path of the open virtual network OVN in response to a user selecting an operation on the working node in the tracking controller;
the tracking message generation module is used for generating a tracking message on an initial detection node of the target detection path according to the target detection path;
the breakpoint detection module is configured to transmit the trace packet from an initial detection node to an open virtual network OVN, so that when each trace processor corresponding to a working node in the open virtual network OVN that receives the trace packet, send working node information corresponding to a current trace processor to the trace controller; and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
It should be noted that the above modules are generally disposed in the Trace-Mgmt of the Trace controller according to the present invention.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be clear to those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
On the basis of the method item embodiment, the invention correspondingly provides a terminal equipment item embodiment.
An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements a virtual network breakpoint detection method according to any one of the present invention when the processor executes the computer program.
The terminal device may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor, a memory.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program, and the processor may implement various functions of the terminal device by running or executing the computer program stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Based on the method item embodiments, the invention correspondingly provides storage medium item embodiments.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, controls a device where the storage medium is located to execute a virtual network breakpoint detection method according to any one of the present invention.
The storage medium is a computer readable storage medium, and the computer program is stored in the computer readable storage medium, and when executed by a processor, the computer program can implement the steps of the above-mentioned method embodiments. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (10)

1. A virtual network breakpoint detection method, applied to an open virtual network OVN, wherein the open virtual network OVN includes: a trace controller and a number of trace processors deployed on working nodes contained in the open virtual network OVN;
the breakpoint detection method comprises the following steps:
determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller; the target detection path comprises a start detection node, a middle node and an end detection node;
generating a tracking message on an initial detection node of the target detection path according to the target detection path;
transmitting the tracking message from the initial detection node to an open virtual network OVN, so that when each tracking processor corresponding to the working node in the open virtual network OVN receiving the tracking message receives the tracking message, the tracking processor sends the working node information corresponding to the current tracking processor to the tracking controller;
and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
2. The method for detecting a break point in a virtual network according to claim 1, wherein said open virtual network further comprises: OVN-North-DB and OVN-South-DB;
before determining the target detection path of the open virtual network OVN in response to a user selected operation of the working node in the tracking controller, further comprising:
the tracking controller communicates with OVN-North-DB and OVN-South-DB to obtain the logical structure of the virtual network stored in OVN-North-DB and the corresponding relationship between each physical node and virtual logical node stored in OVN-South-DB;
and determining the topological relation diagram of the virtual network and the physical network according to the logic structure of the virtual network and the corresponding relation between each physical node and the virtual logic node.
3. The method of claim 2, wherein said determining a target detection path of the open virtual network OVN in response to a user selected operation of the working node in the trace controller comprises:
determining a start detection node and an end detection node of a target detection path of the open virtual network OVN in response to a user selecting operation on each working node in the topological relation diagram in a tracking controller;
and determining the target detection path according to the initial detection node, the tail detection node and the topological relation diagram.
4. A virtual network breakpoint detection method according to claim 3, wherein generating the trace message at the initial detection node of the target detection path according to the target detection path comprises:
generating a header of a tracking message according to the target detection path;
intercepting normal flow data at an initial detection node of the target detection path;
and generating the tracking message according to the header of the tracking message and the normal flow data.
5. The method for detecting a break point in a virtual network of claim 4, further comprising:
acquiring tracking circulation information corresponding to a target detection path; wherein the tracking circulation information includes: parallel node information, path cut-off information, tracking range and forwarding setting information;
the generating the header of the trace message according to the target detection path includes:
and generating a header of the tracking message according to the tracking circulation information and the target detection path.
6. The method for detecting a break point in a virtual network of claim 5, further comprising:
and acquiring all the working nodes determined to be breakpoints of the open virtual network OVN, and generating a breakpoint node information table corresponding to the target detection path.
7. The method for detecting a break point in a virtual network of claim 6, further comprising:
when detecting that the working node information corresponding to the tracking processor matches the node information in the target detection path, determining that the corresponding working node is not a breakpoint of the open virtual network OVN.
8. A virtual network breakpoint detection apparatus, comprising: the device comprises a target detection path determining module, a tracking message generating module and a breakpoint detecting module;
the target detection path determining module is used for determining a target detection path of the open virtual network OVN in response to the selected operation of the user on the working node in the tracking controller; the target detection path comprises a start detection node, a middle node and an end detection node;
the tracking message generation module is used for generating a tracking message on an initial detection node of the target detection path according to the target detection path;
the breakpoint detection module is configured to transmit the trace packet from an initial detection node to an open virtual network OVN, so that when each trace processor corresponding to a working node in the open virtual network OVN that receives the trace packet, send working node information corresponding to a current trace processor to the trace controller; and when detecting that the working node information corresponding to the tracking processor is not matched with the node information in the target detection path, determining that the corresponding working node is a breakpoint of the open virtual network OVN.
9. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a virtual network breakpoint detection method according to any of claims 1 to 7 when the computer program is executed.
10. A storage medium comprising a stored computer program, wherein the computer program, when run, controls a device in which the storage medium is located to perform a virtual network breakpoint detection method according to any one of claims 1 to 7.
CN202311659483.1A 2023-12-06 2023-12-06 Virtual network breakpoint detection method and device, terminal equipment and storage medium Active CN117354197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311659483.1A CN117354197B (en) 2023-12-06 2023-12-06 Virtual network breakpoint detection method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311659483.1A CN117354197B (en) 2023-12-06 2023-12-06 Virtual network breakpoint detection method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117354197A true CN117354197A (en) 2024-01-05
CN117354197B CN117354197B (en) 2024-02-27

Family

ID=89365363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311659483.1A Active CN117354197B (en) 2023-12-06 2023-12-06 Virtual network breakpoint detection method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117354197B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375105A (en) * 2015-07-24 2017-02-01 华为技术有限公司 Method of determining path fault, controller, switches and system
CN108156046A (en) * 2016-12-06 2018-06-12 ***通信有限公司研究院 Distributed route detecting method and device
US20180367371A1 (en) * 2017-06-16 2018-12-20 Cisco Technology, Inc. Handling controller and node failure scenarios during data collection
CN112769632A (en) * 2020-11-30 2021-05-07 锐捷网络股份有限公司 Method and system for detecting network fault of data center
CN113709043A (en) * 2021-10-28 2021-11-26 阿里云计算有限公司 Path tracking method and device
CN114363021A (en) * 2021-12-22 2022-04-15 绿盟科技集团股份有限公司 Network shooting range system, virtual network implementation method and device of network shooting range system
CN115208759A (en) * 2022-07-14 2022-10-18 中国电信股份有限公司 Fault analysis system and method
CN115296985A (en) * 2022-09-27 2022-11-04 广州医科大学附属第五医院(广州再生医学与健康广东省实验室附属医院) Breakpoint positioning method and device and electronic equipment
CN116271829A (en) * 2021-12-07 2023-06-23 腾讯科技(深圳)有限公司 Virtual object control method, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375105A (en) * 2015-07-24 2017-02-01 华为技术有限公司 Method of determining path fault, controller, switches and system
CN108156046A (en) * 2016-12-06 2018-06-12 ***通信有限公司研究院 Distributed route detecting method and device
US20180367371A1 (en) * 2017-06-16 2018-12-20 Cisco Technology, Inc. Handling controller and node failure scenarios during data collection
CN112769632A (en) * 2020-11-30 2021-05-07 锐捷网络股份有限公司 Method and system for detecting network fault of data center
CN113709043A (en) * 2021-10-28 2021-11-26 阿里云计算有限公司 Path tracking method and device
CN116271829A (en) * 2021-12-07 2023-06-23 腾讯科技(深圳)有限公司 Virtual object control method, device and storage medium
CN114363021A (en) * 2021-12-22 2022-04-15 绿盟科技集团股份有限公司 Network shooting range system, virtual network implementation method and device of network shooting range system
CN115208759A (en) * 2022-07-14 2022-10-18 中国电信股份有限公司 Fault analysis system and method
CN115296985A (en) * 2022-09-27 2022-11-04 广州医科大学附属第五医院(广州再生医学与健康广东省实验室附属医院) Breakpoint positioning method and device and electronic equipment

Also Published As

Publication number Publication date
CN117354197B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN109802852B (en) Method and system for constructing network simulation topology applied to network target range
Agarwal et al. SDN traceroute: Tracing SDN forwarding without changing network behavior
EP3451587B1 (en) Creating searchable and global database of user visible process traces
US11711288B2 (en) Centralized error telemetry using segment routing header tunneling
CN1992635B (en) Method of simulating SNMP network element and performing network management system test with the network element
CN112422498A (en) In-band network remote measuring method, system and computer readable storage medium
US20150296399A1 (en) Event Management in Telecommunications Networks
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN103269315B (en) Label distribution method, device, System and Network equipment
CN112714047A (en) Industrial control protocol flow based test method, device, equipment and storage medium
CN105743687B (en) Method and device for judging node fault
CN115065637B (en) Method and device for transmitting computing power resource information and electronic equipment
EP3554007A1 (en) Parallel recovery method, device and system for multiple services in sdn architecture
CN112291116A (en) Link fault detection method and device and network equipment
CN111522727A (en) Simulation object test method, device and system
CN110971540B (en) Data information transmission method and device, switch and controller
CN110876155A (en) Simulation system and method for wireless mesh network
CN117354197B (en) Virtual network breakpoint detection method and device, terminal equipment and storage medium
CN112787930B (en) Method, device and storage medium for monitoring running state of peer
CN107819594B (en) Network fault positioning method and device
US11258702B2 (en) Routing path analysis method and device
CN104980352A (en) Routing method and device for multiline computer room
CN111682966A (en) Network communication device with fault active reporting function, system and method thereof
CN116915837B (en) Communication method and communication system based on software defined network
CN110890981A (en) System for configuring network equipment and method for realizing network equipment configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant