CN107135095B - Visual editing method and system for virtual machine network topology - Google Patents

Visual editing method and system for virtual machine network topology Download PDF

Info

Publication number
CN107135095B
CN107135095B CN201710229572.0A CN201710229572A CN107135095B CN 107135095 B CN107135095 B CN 107135095B CN 201710229572 A CN201710229572 A CN 201710229572A CN 107135095 B CN107135095 B CN 107135095B
Authority
CN
China
Prior art keywords
virtual machine
network topology
agent
structured data
information
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
Application number
CN201710229572.0A
Other languages
Chinese (zh)
Other versions
CN107135095A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201710229572.0A priority Critical patent/CN107135095B/en
Publication of CN107135095A publication Critical patent/CN107135095A/en
Application granted granted Critical
Publication of CN107135095B publication Critical patent/CN107135095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Abstract

The invention provides a visual editing method and a visual editing device for virtual machine network topology. The method and the device are beneficial to a user to visually observe and understand the configuration information such as the virtual machine network and the like, and carry out configuration operation on the virtual machine network, so that the efficiency of configuring the virtual machine network and operating the virtual machine is improved, and the use experience is greatly improved.

Description

Visual editing method and system for virtual machine network topology
Technical Field
The invention relates to the technical field of virtual machine management, in particular to a visual editing method and a visual editing system for virtual machine network topology.
Background
The application of virtual machines is becoming widespread, and network experiments, tests of network programs and protocols and provision of virtualized grid computing environments are possible with the virtual machines. If the virtual machine is not utilized to carry out network experiment, a large amount of manpower and material resources are wasted. If the network experiment is carried out by using simulation software, the simulated network condition is not close to the real condition, and great influence is generated on a tester or an experiment result.
Meanwhile, with the rise of cloud computing enthusiasm, the virtual machine service which is the most common virtual machine service in cloud services is more and more sought by people. The virtual machine has the advantages of high reliability, good isolation and the like. However, in the current various cloud services, when the number of virtual machines is large, the virtual machine information is not displayed visually, the target virtual machine is difficult to search, the topology information of the virtual machine network is difficult to understand, the virtual machine network is inconvenient to configure, and the like.
In the prior art, a method for displaying a virtual machine network topology exists, where the method is based on virtual machine network topology information, and a data structuring method performs structured display on the virtual machine network topology information. The user can carry out corresponding configuration modification on the virtual machine network according to the displayed virtual machine network topology information and the requirement of the user.
However, the method for displaying the topology of the virtual machine network in the prior art cannot visually display the data information of the topology of the virtual machine to be managed to audiences, and a user cannot rapidly and conveniently modify the configuration of the virtual machine network.
Disclosure of Invention
In order to overcome the problems or at least partially solve the problems, the invention provides a visual editing method and device for a virtual machine network topology.
According to one aspect of the present invention, a method for visually editing a network topology of a virtual machine is provided, which includes:
step 1, a second agent converts network topology information of a virtual machine into structured data and sends the structured data to a first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and 2, receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
According to one aspect of the present invention, a method for visually editing a network topology of a virtual machine is provided, which includes:
step 1', a first agent receives structured data of the virtual machine network topology information, analyzes the structured data to obtain network topology information in the structured data, and generates a graphical virtual machine network topology map based on the network topology information;
step 2', the first agent receives modification operation on the graphical virtual machine network topological graph, edits the graphical virtual machine network topological graph based on the modification operation, and converts the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
According to an aspect of the present invention, there is provided a visual editing apparatus for a virtual machine network topology, including:
the acquisition module is used for converting the network topology information of the virtual machine into structured data and sending the structured data to the first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and the modification module is used for receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
According to an aspect of the present invention, there is provided a visual editing apparatus for a virtual machine network topology, including:
the generating module is used for receiving the structured data of the virtual machine network topology information, analyzing the structured data to obtain the network topology information in the structured data, and generating a graphical virtual machine network topology map based on the network topology information;
the configuration module is used for receiving modification operation on the graphical virtual machine network topological graph, editing the graphical virtual machine network topological graph based on the modification operation, and converting the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
The invention provides a visual editing method and a visual editing device for virtual machine network topology. The method and the device are beneficial to a user to visually observe and understand the configuration information such as the virtual machine network and the like, and carry out configuration operation on the virtual machine network, so that the efficiency of configuring the virtual machine network and operating the virtual machine is improved, and the use experience is greatly improved.
Drawings
Fig. 1 is a schematic general flow chart of a visual editing method for a virtual machine network topology according to an embodiment of the present invention;
fig. 2 is a schematic general flow chart of a visual editing method for a virtual machine network topology according to an embodiment of the present invention;
fig. 3 is a schematic general framework diagram of a visualization editing apparatus for a virtual machine network topology according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1 is a schematic flowchart illustrating a general method for visually editing a network topology of a virtual machine according to an embodiment of the present invention. In general, the method comprises the following steps:
step 1, a second agent converts network topology information of a virtual machine into structured data and sends the structured data to a first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and 2, receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
In another embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the second agent is disposed on a host of a virtual machine in the virtual machine network, and the first agent is disposed on any host in the virtual machine network.
In another specific embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the virtual machine network topology information in step 1 is obtained through the following steps: the second agent collects virtual machine network topology information using the programming interface of the virtual machine software.
In another specific embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the virtual machine network topology information in step 1 is obtained through the following steps: and the second agent arranged on the host machine of the virtual machine in the virtual machine network collects the topology information of the virtual machine network by using the programming interface of the virtual machine software.
In another embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the step of converting the network topology information of the virtual machine into structured data in step 1 further includes: and converting the network topology information of the virtual machine into structured data by using an XML or JSON data format.
In another specific embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the step of modifying configuration information of the virtual network according to the analyzed data in step 2 further includes: and the second agent calls a programming interface of the virtual machine software according to the analyzed data and modifies the configuration information of the corresponding virtual machine in the virtual network.
Fig. 1 is a schematic flowchart illustrating a general method for visually editing a network topology of a virtual machine according to an embodiment of the present invention. In general, the method comprises the following steps:
step 1', a first agent receives structured data of the virtual machine network topology information, analyzes the structured data to obtain network topology information in the structured data, and generates a graphical virtual machine network topology map based on the network topology information;
step 2', the first agent receives modification operation on the graphical virtual machine network topological graph, edits the graphical virtual machine network topological graph based on the modification operation, and converts the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
In another embodiment of the present invention, a method for visually editing a network topology of a virtual machine, where the graphical virtual machine network topology further includes:
representing a single virtual machine by using nodes with specific shapes, and representing network connection between the virtual machines by using lines between the nodes;
different information of each virtual machine is represented by nodes with different shapes, colors, animations and interactive effects; different information of network connection is represented by connecting lines with different shapes, colors, animations and interactive effects.
In another embodiment of the present invention, a method for visually editing a network topology of a virtual machine is provided, where the graphical virtual machine network topology map can be generated in a web page by using a data visualization tool d3. js.
In another embodiment of the present invention, a method for visually editing a network topology of a virtual machine is provided. The example method is detailed as follows:
the invention skillfully realizes the visual viewing and editing functions of the virtual machine network topology by respectively arranging the agents on the host machine where the virtual machine is positioned and an arbitrary host machine and mutually interacting the two agents. The method is suitable for various virtual machine software, operating systems and virtual network types, and is simple and easy to use. The method in this embodiment includes a first agent provided on any host and a second agent provided on a host of a virtual machine, and includes the steps of:
the second agent collects network topology information of the virtual machine on the host machine of the virtual machine by using a programming interface of virtual machine software;
the second agent converts the collected network topology information into structured data, and can use XML, JSON and other formats;
the first agent acquires the structured data through network communication by using communication protocols such as HTTP, TCP and the like;
the first generation understands network topology information in the analytics structure;
the first agent generates a graphical virtual machine network topology map in a webpage by means of data visualization tools such as D3.js and the like according to network topology information;
the user interacts and edits the virtual machine network topological graph provided in the first generation, and the interaction and editing comprise left and right mouse click, keyboard input, touch screen operation and the like;
the first agent converts the edited virtual machine network topological graph into structured data, and can use XML, JSON and other formats;
the second agent obtains the structured data through a network by using communication protocols such as HTTP, TCP and the like;
the second generation analyzes the structured data;
and the second agent calls a programming interface of the virtual machine software according to the analyzed data, and modifies the network configuration of the virtual machine to keep the two consistent.
In order to implement the foregoing method, an embodiment of the present invention further provides a visual editing apparatus for a virtual machine network topology, as shown in fig. 3, including a first agent module disposed on any host and a second agent module disposed on the host, where:
the second agent collects network topology information of the virtual machine on the host machine of the virtual machine by using a programming interface of virtual machine software;
the second agent converts the collected network topology information into structured data, and can use XML, JSON and other formats;
the first agent acquires the structured data through network communication by using communication protocols such as HTTP or TCP;
the first generation understands network topology information in the analytics structure;
the first agent generates a graphical virtual machine network topology map in a webpage by means of data visualization tools such as D3.js and the like according to network topology information;
the user interacts and edits the virtual machine network topological graph provided in the first generation, and the interaction and editing comprise left and right mouse click, keyboard input, touch screen operation and the like;
the first agent converts the edited virtual machine network topological graph into structured data, and can use XML, JSON and other formats;
the second agent obtains the structured data through a network by using communication protocols such as HTTP, TCP and the like;
the second generation analyzes the structured data;
and the second agent calls a programming interface of the virtual machine software according to the analyzed data, and modifies the network configuration of the virtual machine to keep the two consistent.
In another embodiment of the present invention, an apparatus for visually editing a network topology of a virtual machine includes:
the acquisition module is used for converting the network topology information of the virtual machine into structured data and sending the structured data to the first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and the modification module is used for receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
In another embodiment of the present invention, an apparatus for visually editing a network topology of a virtual machine, where the obtaining module is further configured to: and collecting the network topology information of the virtual machine by using a programming interface of the virtual machine software.
In another embodiment of the present invention, an apparatus for visually editing a network topology of a virtual machine, where the obtaining module is further configured to: and converting the network topology information of the virtual machine into structured data by using an XML or JSON data format.
In another embodiment of the present invention, an apparatus for visually editing a network topology of a virtual machine, where the modification module is further configured to: and calling a programming interface of the virtual machine software according to the analyzed data, and modifying the configuration information of the corresponding virtual machine in the virtual network.
In another embodiment of the present invention, an apparatus for visually editing a network topology of a virtual machine includes:
the generating module is used for receiving the structured data of the virtual machine network topology information, analyzing the structured data to obtain the network topology information in the structured data, and generating a graphical virtual machine network topology map based on the network topology information;
the configuration module is used for receiving modification operation on the graphical virtual machine network topological graph, editing the graphical virtual machine network topological graph based on the modification operation, and converting the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
In another embodiment of the present invention, a visual editing apparatus for a network topology of a virtual machine, where the graphical virtual machine network topology further includes:
representing a single virtual machine by using nodes with specific shapes, and representing network connection between the virtual machines by using lines between the nodes;
different information of each virtual machine is represented by nodes with different shapes, colors, animations and interactive effects; different information of network connection is represented by connecting lines with different shapes, colors, animations and interactive effects.
In another embodiment of the present invention, a visualization editing apparatus for a virtual machine network topology is provided, where the graphical virtual machine network topology map can be generated in a web page by using a data visualization tool d3. js.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A visual editing method for virtual machine network topology is characterized by comprising the following steps:
step 1, a second agent converts network topology information of a virtual machine into structured data and sends the structured data to a first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and 2, receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
2. The method of claim 1, wherein the second agent is disposed on a virtual machine host in the virtual machine network and the first agent is disposed on any host in the virtual machine network.
3. The method according to claim 2, wherein the virtual machine network topology information in step 1 is obtained by: the second agent collects virtual machine network topology information using the programming interface of the virtual machine software.
4. The method of claim 1, wherein the step of converting the virtual machine network topology information into structured data in step 1 further comprises: and converting the network topology information of the virtual machine into structured data by using an XML or JSON data format.
5. The method of claim 1, wherein the step of modifying the configuration information of the virtual network according to the parsed data in step 2 further comprises: and the second agent calls a programming interface of the virtual machine software according to the analyzed data and modifies the configuration information of the corresponding virtual machine in the virtual network.
6. A visual editing method for virtual machine network topology is characterized by comprising the following steps:
step 1', a first agent receives structured data of the virtual machine network topology information, analyzes the structured data to obtain network topology information in the structured data, and generates a graphical virtual machine network topology map based on the network topology information;
step 2', the first agent receives modification operation on the graphical virtual machine network topological graph, edits the graphical virtual machine network topological graph based on the modification operation, and converts the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
7. The method of claim 6, wherein the graphical virtual machine network topology further comprises:
representing a single virtual machine by using nodes with specific shapes, and representing network connection between the virtual machines by using lines between the nodes;
different information of each virtual machine is represented by nodes with different shapes, colors, animations and interactive effects; different information of network connection is represented by connecting lines with different shapes, colors, animations and interactive effects.
8. The method of claim 6, wherein the graphical virtual machine network topology map can be generated in a web page using a data visualization tool D3. js.
9. A visual editing device for virtual machine network topology is characterized by comprising:
the acquisition module is used for converting the network topology information of the virtual machine into structured data and sending the structured data to the first agent; the first agent graphically displays the virtual machine network topology based on the structured data, and sends a graphical virtual machine network topology graph containing modification information to a second agent in a structured data form;
and the modification module is used for receiving the structural data which is sent by the first agent and contains modification information, analyzing the structural data containing the modification information, and modifying the configuration information of the virtual network according to the analyzed data.
10. A visual editing device for virtual machine network topology is characterized by comprising:
the generating module is used for receiving the structured data of the virtual machine network topology information, analyzing the structured data to obtain the network topology information in the structured data, and generating a graphical virtual machine network topology map based on the network topology information;
the configuration module is used for receiving modification operation on the graphical virtual machine network topological graph, editing the graphical virtual machine network topological graph based on the modification operation, and converting the edited virtual machine network topological graph into structured data; and sending the edited structured data to a second agent for the second agent to analyze the edited structured data and modify the configuration information of the virtual network according to the analyzed data.
CN201710229572.0A 2017-04-10 2017-04-10 Visual editing method and system for virtual machine network topology Active CN107135095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710229572.0A CN107135095B (en) 2017-04-10 2017-04-10 Visual editing method and system for virtual machine network topology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710229572.0A CN107135095B (en) 2017-04-10 2017-04-10 Visual editing method and system for virtual machine network topology

Publications (2)

Publication Number Publication Date
CN107135095A CN107135095A (en) 2017-09-05
CN107135095B true CN107135095B (en) 2020-06-12

Family

ID=59716309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710229572.0A Active CN107135095B (en) 2017-04-10 2017-04-10 Visual editing method and system for virtual machine network topology

Country Status (1)

Country Link
CN (1) CN107135095B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697319B (en) * 2020-12-30 2023-06-16 华为云计算技术有限公司 Tenant service management method and device for public cloud
CN112799654B (en) * 2021-04-13 2021-06-29 南京雷电信息技术有限公司 JSON-based graph agent implementation method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043380B (en) * 2007-04-20 2010-07-21 北京航空航天大学 Method and apparatus for processing network topology information of virtual machine
US20110072487A1 (en) * 2009-09-23 2011-03-24 Computer Associates Think, Inc. System, Method, and Software for Providing Access Control Enforcement Capabilities in Cloud Computing Systems
CN103118127A (en) * 2013-02-22 2013-05-22 浪潮电子信息产业股份有限公司 Method for positioning topology view of virtual resource rapidly based on color and state identification
CN104243193A (en) * 2013-06-18 2014-12-24 阿里巴巴集团控股有限公司 Network topology dynamic allocation and display method and device
US9836284B2 (en) * 2014-06-18 2017-12-05 Vmware, Inc. HTML5 graph layout for application topology
CN104363159B (en) * 2014-07-02 2018-04-06 北京邮电大学 A kind of opening virtual network constructing system and method based on software defined network

Also Published As

Publication number Publication date
CN107135095A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN105068815B (en) Page editing device interactive device and method
Kim et al. DEVS-suite: a simulator supporting visual experimentation design and behavior monitoring.
WO2015188626A1 (en) Method for viewing single line diagram of electric power system on mobile terminal in real time
US9684301B2 (en) Computer product, assembly sequence generating apparatus, and manufacturing method
CN103778201A (en) Large-screen visualization display system and method based on procedural model configuration
JP7220753B2 (en) Labeling tool generation method and apparatus, labeling method and apparatus, electronic device, storage medium and program
CN104484189A (en) Construction and design method of application interface
EP2609531A1 (en) Infrastructure model generation system and method
CN103312814B (en) The method for building up of VNC concealed channel between cloud management platform and virtual machine terminal user
CN104102578B (en) Test method and system and operation terminal
Seider et al. Visualizing modules and dependencies of OSGi-based applications
CN107135095B (en) Visual editing method and system for virtual machine network topology
CN105893116A (en) Visual process management system and method oriented to real-time data flow processing
CN109828921A (en) HTML5 webpage automated function test method, system and electronic equipment
US8745537B1 (en) Graphical interface for managing and monitoring the status of a graphical model
CN106982140B (en) Information flow simulation method and system
CN106302524B (en) A method of manipulation distal end application software
CN112231387A (en) Railway data visualization interaction system and method, electronic device and storage medium
Usman et al. Interactive visualization of SDN-enabled multisite cloud playgrounds leveraging smartx multiview visibility framework
CN102929636B (en) A kind of human-computer interaction interface creation method and device
CN105262880A (en) Mobile phone control demonstration system applied to WiFi network
CN108399156B (en) The composition method and device of formula in a kind of pdf document
CN114356761A (en) Test case document generation method and device, storage medium and computer equipment
CN103294532B (en) The method of rapid implementation of matrix switch graphical control system
CN103795799A (en) Remote monitoring method and system

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