CN112187571B - Virtual network fault detection method and device based on X86 virtualization environment - Google Patents
Virtual network fault detection method and device based on X86 virtualization environment Download PDFInfo
- Publication number
- CN112187571B CN112187571B CN202010972243.7A CN202010972243A CN112187571B CN 112187571 B CN112187571 B CN 112187571B CN 202010972243 A CN202010972243 A CN 202010972243A CN 112187571 B CN112187571 B CN 112187571B
- Authority
- CN
- China
- Prior art keywords
- information
- virtual network
- fault
- resource type
- preset
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 121
- 230000008439 repair process Effects 0.000 claims abstract description 47
- 238000000034 method Methods 0.000 claims abstract description 18
- 238000012545 processing Methods 0.000 claims abstract description 8
- 238000010586 diagram Methods 0.000 claims description 21
- 238000004519 manufacturing process Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 11
- 238000012827 research and development Methods 0.000 description 11
- 230000009286 beneficial effect Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 238000013519 translation Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000011160 research Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45591—Monitoring or debugging support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a virtual network fault detection method and a virtual network fault detection device based on an X86 virtualization environment, wherein the method comprises the following steps: receiving a resource type input by a user; constructing a data stream according to the resource type; detecting the virtual network based on the data flow to obtain flow information; processing the circulation information to obtain a detection result; and displaying the detection result. The system comprises modules corresponding to the method steps. According to the virtual network fault detection method and device based on the X86 virtualization environment, the virtual network fault is detected, corresponding repair schemes are given according to different detection results, meanwhile, a user can give out a detection instruction, view the detection result and the repair schemes through a user interface, the use experience of the user and operation and maintenance personnel on virtual machine products is improved, the time for locating fault points and fault reasons is shortened, and the fault detection efficiency is improved.
Description
Technical Field
The invention relates to the technical field of virtual network fault detection, in particular to a virtual network fault detection method and device based on an X86 virtualization environment.
Background
In the cloud computing era, OVS (virtual switch) becomes a preferred implementation scheme for realizing interconnection and intercommunication among virtual machines OF a data center, functions OF various traditional networks such as a virtual switch, a virtual router, a virtual firewall and SNAT (source address translation) in a virtual network are realized by invisible OF (flow table), and the functions are realized by hardware in the traditional network. And the functions OF a virtual switch, a virtual router, a virtual firewall, a SNAT and the like realized by issuing the OF flow table through the OVS in the virtual environment have no logic entity but only one OF flow table, which brings great challenges to problem location when a network fault occurs, similarly, for users and operation and maintenance personnel, a high-level network function consisting OF one OF flow table is provided, because there is no visible entity and the users and the operation and maintenance personnel are often not familiar with the OF flow table, the network fault possibly caused by a certain mis-configuration OF the users during use also needs to be solved by a back-end research and development personnel, which leads to three problems: firstly, the experience of a user and operation and maintenance personnel on a virtual machine product is poor; secondly, all the problems need to be solved by the back-end research and development in person, and a large amount of research and development cost is wasted; third, detecting and locating faults and fault causes for virtual networks is time consuming.
Disclosure of Invention
One of the purposes of the present invention is to provide a virtual network fault detection method based on an X86 virtualization environment, which detects a virtual network fault and provides corresponding repair schemes for different detection results, and meanwhile, a user can issue a detection instruction, view the detection result and the repair schemes through a user interface, thereby improving the use experience of the user and operation and maintenance personnel on a virtual machine product, reducing the time for locating a fault point and a fault reason, improving the efficiency of fault detection, avoiding the problem that a traditional virtual network needs a back-end research and development personnel to participate in solution when a fault occurs, and reducing the research and development cost.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, which comprises the following steps:
receiving a resource type input by a user;
constructing a data stream according to the resource type;
detecting the virtual network based on the data flow to obtain flow information;
processing the circulation information to obtain a detection result;
and displaying the detection result.
Preferably, the receiving of the resource type input by the user includes:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
Preferably, the constructing a data stream according to the resource type includes:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
Preferably, the detecting the virtual network based on the data flow to obtain flow information includes:
screening out virtual network components corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method includes the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
Preferably, the processing the circulation information to obtain a detection result includes:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram according to a preset path diagram manufacturing rule to serve as second result information;
and combining the first result information and the second result information as a detection result.
An embodiment of the present invention further provides a virtual network fault detection apparatus based on an X86 virtualization environment, including: the system comprises a UI (user interface), a virtual network detection device and a result and repair scheme generation device;
the UI interface receives a resource type input by a user, the virtual network detection device constructs a data stream according to the resource type, and detects the virtual network based on the data stream to obtain circulation information; the result and restoration scheme generation device processes the circulation information to obtain a detection result; and the UI interface displays the detection result.
Preferably, the UI interface performs operations including:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
Preferably, the virtual network detection apparatus performs operations including:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
Preferably, the virtual network detection apparatus performs operations including:
screening out virtual network components corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method comprises the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
Preferably, the result and repair scenario generation apparatus performs operations including:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram as second result information according to a preset path diagram manufacturing rule;
and combining the first result information and the second result information as a detection result.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a virtual network fault detection method based on an X86 virtualization environment in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a specific application of one embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it should be understood that they are presented herein only to illustrate and explain the present invention and not to limit the present invention.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, as shown in FIG. 1, comprising:
s1, receiving a resource type input by a user;
s2, constructing a data stream according to the resource type;
s3, detecting the virtual network based on the data flow to obtain flow information;
s4, processing the circulation information to obtain a detection result;
and S5, displaying the detection result.
The working principle of the technical scheme is as follows:
when a data center connected with a virtual machine, namely a virtual network, breaks down, a user selects a resource type to be detected through a User Interface (UI) of a user terminal; then, acquiring resource information corresponding to the resource type selected by the user in the virtual machine through an interface between the virtual network and the virtual machine; then, the resource information is made into a data flow by using a FlowTable (flow table) of OpenFlow (a network communication protocol); openFlow is specifically a network communication protocol, belongs to a data link layer, and can control a forwarding plane of an online switch or router; the FlowTable (flow table) is specifically composed of a plurality of flow table entries, each flow table entry is a forwarding rule, and the flow table is composed of a header field, a counter and an operation; when the data stream is used for detecting the virtual network, the stream information of the data stream in the virtual network is recorded and stored; processing the circulation information to obtain a detection result; and finally, displaying the detection result, so that a user can check the detection result to know the position and the reason of the fault point in the virtual network, and meanwhile, the detection result also comprises a repair scheme aiming at the fault point and the fault reason for the user to refer to or select.
The beneficial effects of the above technical scheme are: according to the embodiment of the invention, the virtual network fault is detected, corresponding repair schemes are given according to different detection results, and meanwhile, a user can issue a detection instruction, view the detection result and the repair schemes through a user interface, so that the use experience of the user and operation and maintenance personnel on the virtual machine product is improved, the time for positioning a fault point and a fault reason is reduced, the fault detection efficiency is improved, the problem that a traditional virtual network needs a back-end research and development personnel to participate in solving when the fault occurs is avoided, and the research and development cost is reduced.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, wherein the step of receiving a resource type input by a user comprises the following steps:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
The working principle of the technical scheme is as follows:
when a data center connected with the virtual machine, namely a virtual network, has a network fault, a user can call out a resource type list which is configured in advance on a user interface on a user terminal, so that a resource type which needs to be detected is selected; the user terminal is specifically as follows: computers, smart phones, and tablet computers; the user interface is specifically: a UI interface; the resource types are specifically: a plurality of separately numbered VMs (virtual machines), external networks, and the like; the external network is specifically an Ethernet; the user can choose to perform fault detection on one or more virtual machines, or choose to perform fault detection on an external network, or choose to perform fault detection on one or more virtual machines and the external network simultaneously.
For example: the resource type selected by the user must contain a VM (virtual machine); the resource type selected by the user can be two VMs, or one end of each VM can be the other end of each VM and the other end of each VM can be an external network; when the resource type selected by the user is two VMs, the VMs can be on the same computing node or different computing nodes; when the resource type selected by the user is two VMs, the two VMs need to be connected to the same subnet or two different subnets connected to the same DVR (distributed virtual router); when one end of the user-selected resource type is an external network, the subnet to which the VM of the other end is connected needs to be connected to the DVR and the DVR has a SNAT (source address translation) address.
The beneficial effects of the above technical scheme are: the embodiment of the invention provides the user with the selectable resource type list, and the user can select the resource type to be subjected to fault detection by selecting the resource type option on the resource type list and issue the detection instruction, so that the use experience of the user and operation and maintenance personnel on the virtual machine product is improved, and the convenience for selecting the resource type to be subjected to fault detection is increased.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, wherein the step of constructing a data stream according to the resource type comprises the following steps:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
The working principle of the technical scheme is as follows:
the preset resource information obtaining path specifically includes: an interface between the virtual machine and a data center, i.e., a virtual network; after a user selects the resource type needing fault detection, acquiring resource information corresponding to the resource type needing fault detection selected by the user through an interface between a virtual machine and a virtual network; the preset OpenFllow data flow making rule is specifically that the resource information is made into data flow by using the FlowTable of OpenFlow; the OpenFlow is specifically a network communication protocol, belongs to a data link layer, and can control a forwarding plane of an on-network switch or router; the FlowTable (flow table) is composed of a plurality of flow table entries, each flow table entry is a forwarding rule, and the flow table is composed of a header field, a counter and an operation; the data stream is specifically a set of ordered data sequences of bytes with a start and an emphasis.
The beneficial effects of the above technical scheme are: according to the embodiment of the invention, after the user selects the resource type to be subjected to fault detection, the resource information corresponding to the resource type selected by the user is acquired through the interface between the virtual machine and the virtual network, and then the acquired resource information is made into the data flow through the OpenFlow flow table, the flow is completely completed by the software layer, and the hardware cost for performing fault detection on the virtual network is greatly reduced.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, wherein the virtual network is detected based on data flow to obtain flow information, and the method comprises the following steps:
screening out a virtual network component corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method comprises the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
The working principle of the technical scheme is as follows:
the virtual network components in the virtual network are specifically: virtual switches, virtual routers, virtual firewalls, SNAT (source address translation), and the like; the preset circulation rule is specifically, for example: firstly, the data passes through the virtual switch and then returns through the virtual router; recording and storing the circulation information of the data flow circulating among the virtual network components;
for example: as shown in fig. 2, when the resource type selected by the user is two VMs, and the two VMs belong to the same subnet and the same compute node, a data packet is generated at the compute node to which the VM belongs, and flow is transferred on the virtual switch to which the VM belongs and flow information is recorded; when the resource type selected by a user is two VMs and the two VMs belong to the same subnet, if the two VMs belong to different computing nodes, respectively generating a data message at the computing node to which the two VMs belong, performing flow conversion on a virtual switch to which the two VMs belong, recording flow information, and simultaneously recording VLAN-ID/SG-ID information carried by the generated data message when the data message exits a host; when the resource type selected by the user is two VMs and the two VMs belong to different subnets, if the VMs belong to the same computing node, generating a data message at the computing node to which the VMs belong, and performing flow conversion on a virtual switch and a DVR to which the VMs belong and recording flow information; when the resource type selected by a user is two VMs, the two VMs belong to different subnets, the VMs belong to different computing nodes, data messages are respectively generated at the computing nodes to which the VMs belong, flow and transfer are carried out on a virtual switch and a DVR to which the VMs belong, circulation information is recorded, and VLAN-ID/SG-ID information carried when the generated data messages are discharged from a host is recorded; when one end of the resource type selected by the user is a VM and the other end is an external network, generating a data message at a computing node to which the VM belongs, and circulating and recording circulation information on a virtual switch, a DVR and the external network to which the VM belongs; if the system uses security components such as a distributed firewall, and the like, in the data message circulation process, the data message is also circulated on the distributed firewall, and the safety rules of circulation information and data message discarding are recorded.
The beneficial effects of the above technical scheme are: the embodiment of the invention can obtain the information of the circulation path, the information of the virtual network components, the state information of the virtual network links and the information of the discarding points by controlling the data flow to circulate between the virtual network components corresponding to the resource information and simultaneously recording and storing the circulation information of the data flow to circulate between the virtual network components.
The embodiment of the invention provides a virtual network fault detection method based on an X86 virtualization environment, wherein the step of processing the circulation information to obtain a detection result comprises the following steps:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram as second result information according to a preset path diagram manufacturing rule;
and combining the first result information and the second result information as a detection result.
The working principle of the technical scheme is as follows:
the preset fault analysis rule is specifically as follows: analyzing and judging the virtual network component information, the virtual network link state information and the discarded point information in the circulation information to obtain a fault reason, and associating the fault reason with the circulation path information to obtain the position of a fault point; a preset fault repairing scheme database stores repairing schemes corresponding to all faults; associating the fault point, the fault reason and the repair scheme corresponding to the fault reason and acquired from the fault repair scheme database to form a complete detection result as first result information; the preset path diagram making rule is specifically that the circulation path information is made into a graphical path diagram; taking the generated circulation path diagram as second result information; combining the first result information and the second result information to obtain a detection result; displaying the detection result on a user interface of the user terminal; the user can check the fault reason, the fault point position and the suggested repair scheme, and can visually check the circulation path diagram.
The beneficial effects of the above technical scheme are: according to the embodiment of the invention, the fault point and the fault reason are obtained by analyzing the circulation information, the restoration scheme suitable for the fault reason is automatically prepared, the circulation path information is made into the circulation path graph and is used as the detection result and output, the user can check the detection result and the restoration scheme through the user interface, the use experience of the user and operation and maintenance personnel on the virtual machine product is improved, the time for positioning the fault point and the fault reason is reduced, the fault detection efficiency is improved, the problem that the traditional virtual network needs back-end research personnel to participate in solving when the fault occurs is avoided, and the research and development cost is reduced.
The embodiment of the invention also provides a virtual network fault detection device based on the X86 virtualization environment, which comprises: the system comprises a UI interface, a virtual network detection device and a result and repair scheme generation device;
the UI interface receives a resource type input by a user, the virtual network detection device constructs a data stream according to the resource type, and detects the virtual network based on the data stream to obtain circulation information; the result and restoration scheme generation device processes the circulation information to obtain a detection result; and the UI displays the detection result.
The working principle of the technical scheme is as follows:
the UI interface is specifically an interface on a display of a user terminal of a user; the user terminal is specifically as follows: computers, tablets, and smart phones; when a data center connected with a virtual machine, namely a virtual network, breaks down, a user selects a resource type to be detected through a user interface, namely a UI interface, of a UI interface user terminal; then, the virtual network detection device acquires resource information corresponding to the resource type selected by the user in the virtual machine through an interface between the virtual network and the virtual machine; then, the virtual network detection apparatus uses the FlowTable (flow table) of OpenFlow (a network communication protocol) to make the resource information into a data flow; the OpenFlow is specifically a network communication protocol, belongs to a data link layer, and can control a forwarding plane of an on-network switch or router; the FlowTable (flow table) is specifically composed of a plurality of flow table entries, each flow table entry is a forwarding rule, and the flow table is composed of a header field, a counter and an operation; when the virtual network detection device detects the virtual network by using the data stream, the flow information of the data stream in the virtual network is recorded and stored; the result and restoration scheme generation device processes the circulation information to obtain a detection result; and finally, the UI interface displays the detection result, so that a user can check the detection result to know the position and the reason of the fault point in the virtual network, and meanwhile, the detection result also comprises a repair scheme aiming at the fault point and the fault reason for the user to refer to or select.
The beneficial effects of the above technical scheme are: the embodiment of the invention detects the virtual network fault and provides corresponding repair schemes according to different detection results, and meanwhile, a user can issue a detection instruction, check the detection result and the repair schemes through a user interface, so that the use experience of the user and operation and maintenance personnel on the virtual machine product is improved, the time for positioning a fault point and a fault reason is reduced, the fault detection efficiency is improved, the problem that a traditional virtual network needs a back-end research and development personnel to participate in solving when the fault occurs is avoided, and the research and development cost is reduced.
The embodiment of the invention provides a virtual network fault detection device based on an X86 virtualization environment, wherein the UI execution comprises the following operations:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
The working principle of the technical scheme is as follows:
when a network fault occurs in a data center connected with a virtual machine, namely a virtual network, a user can call a resource type list which is configured in advance on a UI (user interface), namely a user terminal, so as to select a resource type which needs to be detected; the user terminal specifically comprises: computers, smart phones, and tablets; the user interface is specifically: a UI interface; the resource types are specifically: a plurality of separately numbered VMs (virtual machines), external networks, and the like; the external network is specifically an Ethernet; the user can choose to perform fault detection on one or more virtual machines, or choose to perform fault detection on an external network, or choose to perform fault detection on one or more virtual machines and the external network simultaneously.
For example: the resource type selected by the user must contain a VM (virtual machine); the resource type selected by the user can be two VMs or one end of each VM and the other end of each VM can be an external network; when the resource type selected by the user is two VMs, the VMs can be on the same computing node or different computing nodes; when the resource type selected by the user is two VMs, the two VMs need to be connected to the same subnet or two different subnets connected to the same DVR (distributed virtual router); when the user selects a resource type with one end being an external network, the subnet to which the VM of the other end is connected needs to be connected to the DVR and the DVR has a SNAT (source address translation) address.
The beneficial effects of the above technical scheme are: the UI interface of the embodiment of the invention provides a selectable resource type list for a user, and the user can select the resource type to be subjected to fault detection by selecting the resource type option on the resource type list and issue a detection instruction, so that the use experience of the user and operation and maintenance personnel on a virtual machine product is improved, and the convenience of selecting the resource type to be subjected to fault detection is improved.
The embodiment of the invention provides a virtual network fault detection device based on an X86 virtualization environment, which comprises the following operations:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
The working principle of the technical scheme is as follows:
the preset resource information obtaining path specifically includes: an interface between the virtual machine and a data center, i.e., a virtual network; after a user selects a resource type needing fault detection, the virtual network detection device acquires resource information corresponding to the resource type needing fault detection selected by the user through an interface between a virtual machine and a virtual network; the preset OpenFllow data flow making rule is specifically that the resource information is made into data flow by using the FlowTable of OpenFlow; the OpenFlow is specifically a network communication protocol, belongs to a data link layer, and can control a forwarding plane of an on-network switch or router; the FlowTable (flow table) is composed of a plurality of flow table entries, each flow table entry is a forwarding rule, and the flow table is composed of a header field, a counter and an operation; the data stream is specifically a set of ordered data sequences of bytes with a start and an emphasis.
The beneficial effects of the above technical scheme are: according to the virtual network detection device, after the user selects the resource type to be subjected to fault detection, the resource information corresponding to the resource type selected by the user is acquired through the interface between the virtual machine and the virtual network, and then the acquired resource information is made into the data flow through the OpenFlow flow table, the flow is completed by the software layer, and the hardware cost for performing fault detection on the virtual network is greatly reduced.
The embodiment of the invention provides a virtual network fault detection device based on an X86 virtualization environment, which comprises the following operations:
screening out virtual network components corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method includes the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
The working principle of the technical scheme is as follows:
the virtual network components in the virtual network are specifically: virtual switches, virtual routers, virtual firewalls, SNAT (source address translation), and the like; the preset circulation rule is specifically, for example: firstly, the data passes through the virtual switch and then returns through the virtual router; recording and storing the flow information of the data flow flowing among the virtual network components;
for example: as shown in fig. 2, when the resource type selected by the user is two VMs, and the two VMs belong to the same subnet and the same compute node, a data packet is generated at the compute node to which the VM belongs, and flow is transferred on the virtual switch to which the VM belongs and flow information is recorded; when the resource type selected by a user is two VMs and the two VMs belong to the same subnet, if the two VMs belong to different computing nodes, respectively generating a data message at the computing node to which the two VMs belong, performing flow conversion on a virtual switch to which the two VMs belong, recording flow information, and simultaneously recording VLAN-ID/SG-ID information carried by the generated data message when the data message exits a host; when the resource type selected by the user is two VMs and the two VMs belong to different subnets, if the VMs belong to the same computing node, generating a data message at the computing node to which the VMs belong, and performing flow conversion on a virtual switch and a DVR to which the VMs belong and recording flow information; when the resource type selected by a user is two VMs, the two VMs belong to different subnets, the VMs belong to different computing nodes, data messages are generated at the computing nodes to which the VMs belong, flow and transfer are carried out on the virtual switch and the DVR to which the VMs belong, flow information is recorded, and VLAN-ID/SG-ID information carried when the generated data messages are output from a host is recorded; when one end of the resource type selected by the user is a VM and the other end is an external network, generating a data message at a computing node to which the VM belongs, and circulating and recording circulation information on a virtual switch, a DVR and the external network to which the VM belongs; if the system uses security components such as a distributed firewall, and the like, in the data message transferring process, the data message is transferred on the distributed firewall, and the transferring information and the security rule of discarding the data message are recorded.
The beneficial effects of the above technical scheme are: the virtual network detection device of the embodiment of the invention can obtain the circulation path information, the virtual network component information, the virtual network link state information and the discarding point information by controlling the data flow to circulate between the virtual network components corresponding to the resource information and simultaneously recording and storing the circulation information of the data flow circulating between the virtual network components.
The embodiment of the invention provides a virtual network fault detection device based on an X86 virtualization environment, wherein the result and repair scheme generation device executes the following operations:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram according to a preset path diagram manufacturing rule to serve as second result information;
and combining the first result information and the second result information as a detection result.
The working principle of the technical scheme is as follows:
the preset fault analysis rule is specifically as follows: analyzing and judging the virtual network component information, the virtual network link state information and the discarded point information in the circulation information to obtain a fault reason, and associating the fault reason with the circulation path information to obtain the position of a fault point; a corresponding repair scheme of each fault is stored in a preset fault repair scheme database; associating the fault point, the fault reason and the repair scheme corresponding to the fault reason and acquired from the fault repair scheme database to form a complete detection result as first result information; the preset path diagram making rule is specifically that the circulation path information is made into a graphical path diagram; taking the made circulation path diagram as second result information; the result and repair scheme generation device combines the first result information and the second result information to obtain a detection result; displaying the detection result on a user interface of the user terminal; the user can check the fault reason, the fault point position and the suggested repair scheme, and can visually check the circulation path diagram.
The beneficial effects of the above technical scheme are: the result and repair scheme generation device provided by the embodiment of the invention analyzes the circulation information to obtain the fault point and the fault reason, automatically prepares the repair scheme suitable for the fault reason, and then makes the circulation path information into the circulation path graph which is taken as the detection result and output, so that a user can check the detection result and the repair scheme through a user interface, the use experience of the user and operation and maintenance personnel on the virtual machine product is improved, the time for positioning the fault point and the fault reason is reduced, the fault detection efficiency is improved, the problem that the traditional virtual network needs back-end research personnel to participate in solution when the fault occurs is avoided, and the research and development cost is reduced.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (8)
1. A virtual network fault detection method based on an X86 virtualization environment is characterized by comprising the following steps:
receiving a resource type input by a user;
constructing a data stream according to the resource type;
detecting the virtual network based on the data flow to obtain flow information;
processing the circulation information to obtain a detection result;
displaying the detection result;
the processing the circulation information to obtain the detection result comprises:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram as second result information according to a preset path diagram manufacturing rule;
and combining the first result information and the second result information as a detection result.
2. The method for detecting the virtual network fault based on the X86 virtualization environment as claimed in claim 1, wherein the receiving the resource type input by the user comprises:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
3. The method for detecting the virtual network fault based on the X86 virtualization environment as claimed in claim 2, wherein the constructing the data stream according to the resource type includes:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
4. The method as claimed in claim 3, wherein the detecting the virtual network based on the data flow to obtain the flow information includes:
screening out virtual network components corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method comprises the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
5. A virtual network fault detection device based on X86 virtualization environment, characterized by comprising: the system comprises a UI interface, a virtual network detection device and a result and repair scheme generation device;
the UI interface receives a resource type input by a user, the virtual network detection device constructs a data stream according to the resource type, and detects the virtual network based on the data stream to obtain circulation information; the result and repair scheme generation device processes the circulation information to obtain a detection result; the UI displays the detection result;
the result and repair scheme generation device executes the following operations:
analyzing the circulation information according to a preset fault analysis rule to obtain a fault point and a fault reason;
acquiring a repair scheme corresponding to the fault reason in a preset fault repair scheme database;
associating the fault point, the fault reason and the repair scheme as first result information;
converting the circulation path into a circulation path diagram as second result information according to a preset path diagram manufacturing rule;
and combining the first result information and the second result information as a detection result.
6. The apparatus for virtual network failure detection in an X86-based virtualization environment as claimed in claim 5, wherein said UI interface performs operations comprising:
acquiring and displaying a preset resource type list;
and receiving the resource type selected by the user from the resource type list.
7. The virtual network failure detection apparatus in an X86 virtualization-based environment according to claim 6, wherein the virtual network detection apparatus performs operations comprising:
acquiring resource information corresponding to the resource type through a preset resource information acquisition path;
and making the resource information into data flow according to a preset OpenFlow data flow making rule.
8. The virtual network failure detection apparatus in an X86 virtualization-based environment according to claim 7, wherein the virtual network detection apparatus performs operations comprising:
screening out a virtual network component corresponding to the resource information from the virtual network;
controlling the data flow to flow among the virtual network components according to a preset flow rule;
recording and storing the circulation information of the data flow circulating among the virtual network components;
wherein the circulation information includes: the method includes the steps of circulating path information, virtual network component information, virtual network link state information and discarding point information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010972243.7A CN112187571B (en) | 2020-09-16 | 2020-09-16 | Virtual network fault detection method and device based on X86 virtualization environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010972243.7A CN112187571B (en) | 2020-09-16 | 2020-09-16 | Virtual network fault detection method and device based on X86 virtualization environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112187571A CN112187571A (en) | 2021-01-05 |
CN112187571B true CN112187571B (en) | 2022-12-20 |
Family
ID=73920776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010972243.7A Active CN112187571B (en) | 2020-09-16 | 2020-09-16 | Virtual network fault detection method and device based on X86 virtualization environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187571B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230171174A1 (en) * | 2021-11-29 | 2023-06-01 | International Business Machines Corporation | Detect network fault point for virtual machines |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763309A (en) * | 2013-12-31 | 2014-04-30 | 曙光云计算技术有限公司 | Safety domain control method and system based on virtual network |
CN105119765A (en) * | 2015-09-30 | 2015-12-02 | 浪潮(北京)电子信息产业有限公司 | Intelligent processing fault system architecture |
CN107451040A (en) * | 2017-07-07 | 2017-12-08 | 深信服科技股份有限公司 | Localization method, device and the computer-readable recording medium of failure cause |
CN107682182A (en) * | 2017-09-14 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of alarm method and system for realizing virtualization network load monitoring |
CN110752952A (en) * | 2019-10-25 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Network fault positioning method and device, network equipment and computer storage medium |
-
2020
- 2020-09-16 CN CN202010972243.7A patent/CN112187571B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763309A (en) * | 2013-12-31 | 2014-04-30 | 曙光云计算技术有限公司 | Safety domain control method and system based on virtual network |
CN105119765A (en) * | 2015-09-30 | 2015-12-02 | 浪潮(北京)电子信息产业有限公司 | Intelligent processing fault system architecture |
CN107451040A (en) * | 2017-07-07 | 2017-12-08 | 深信服科技股份有限公司 | Localization method, device and the computer-readable recording medium of failure cause |
CN107682182A (en) * | 2017-09-14 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of alarm method and system for realizing virtualization network load monitoring |
CN110752952A (en) * | 2019-10-25 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Network fault positioning method and device, network equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112187571A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11736367B2 (en) | Network health checker | |
US10805239B2 (en) | Visualization of path between logical network endpoints | |
US20190058670A1 (en) | Method for service implementation in network function virtualization (nfv) system and communications unit | |
CN104468358B (en) | The message forwarding method and equipment of the distributed virtual switch system | |
US20180241586A1 (en) | Path Detection Method in VxLAN, Controller, and Network Device | |
CN105260337B (en) | A kind of automatic addressing method and system of single-chip microcomputer | |
EP3089412A1 (en) | Load balancing method and system | |
CN106878194B (en) | Message processing method and device | |
CN106919242A (en) | Server system and its management method and computer-readable storage multimedia | |
CN107306215B (en) | Data processing method, system and node | |
US20160057043A1 (en) | Diagnostic routing system and method for a link access group | |
CN105389242A (en) | Method for acquiring overall cabinet server information in batch | |
CN112187571B (en) | Virtual network fault detection method and device based on X86 virtualization environment | |
CN105743687B (en) | Method and device for judging node fault | |
KR20210151979A (en) | Message detection method, device, and system | |
CN107094091A (en) | A kind of intelligent substation station level network configuration method of calibration and system | |
JP5792688B2 (en) | Synchronized commands for network inspection | |
CN104618246A (en) | Network topology discovery method for XEN virtualization environment | |
CN105490960A (en) | SDN configuration, and message forwarding method based on same | |
CN109005080B (en) | Distributed packet forwarding implementation method, implementation system and automatic test method | |
US20120063453A1 (en) | MULTICAST TREE DISCOVERY USING 802.1ag | |
CN109412851B (en) | Link layer path detection method, device and system | |
EP2713552A1 (en) | Method for processing a multicast group, a data center interconnect router, and system | |
EP3474497B1 (en) | Aggregating virtual local area networks | |
CN114666373A (en) | Maintenance method of Internet of things terminal and related equipment |
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 |