CN102929684A - Implementation method for topology drawing of virtual machines - Google Patents

Implementation method for topology drawing of virtual machines Download PDF

Info

Publication number
CN102929684A
CN102929684A CN201210337300XA CN201210337300A CN102929684A CN 102929684 A CN102929684 A CN 102929684A CN 201210337300X A CN201210337300X A CN 201210337300XA CN 201210337300 A CN201210337300 A CN 201210337300A CN 102929684 A CN102929684 A CN 102929684A
Authority
CN
China
Prior art keywords
many
virtual machine
drawn
resources
relation
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.)
Pending
Application number
CN201210337300XA
Other languages
Chinese (zh)
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.)
PCI Suntek Technology Co Ltd
Original Assignee
PCI Suntek Technology Co Ltd
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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN201210337300XA priority Critical patent/CN102929684A/en
Publication of CN102929684A publication Critical patent/CN102929684A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an implementation method for topology drawing of virtual machines, comprising the following steps: a one-to-many topology of the virtual machine is drawn, and a many-to-many topology of the virtual machine is drawn; the one-to-many topology such as the topology of a host computer and virtual machines is drawn according to a quasi-circle model, a host computer node is used as the circle center, and virtual machine nodes are uniformly distributed around the host computer node; the many-to-many topology can be drawn in two ways, the many-to-many topology can be drawn according to a quasi-circle model, models with the most relations are used as initial original points, the models with relations are drawn in a complete block, the height and width of the complete block are calculated, the models without relations are carried out repeatedly according to the step, the total height, total width and the positions of respective circle centers of multiple blocks of all the models are calculated, respective nodes are worked out, and the topology is drawn at last, and the quasi-circle drawing method is applicable to more complicated many-to-many relationships; and the many-to-many topology can be drawn according to a quasi-rectangle model, nodes with less objects are drawn above and under the rectangle, nodes with more objects are drawn in the middle, and the quasi-rectangle drawing method is applicable to simpler many-to-many relationships.

Description

The implementation method that a kind of virtual machine topological diagram is drawn
Technical field
The present invention relates to the drawing algorithm field, particularly relate to a kind of multiple drafting mode of virtual machine topological diagram.
Background technology
The upsurge of cloud computing have swepts the globe, needs that should the development of each major company, and the development trend of cloud computing can not fail in a short time.The structure that in browser, represents the virtual machine network topology, applet, flex, vml, sva and javascript etc. can realize.
Technically, it is not crucial adopting which kind of technology, and key is the algorithm of drawing topological graph; Generally be the coordinate of calculating the node that will draw on method for drafting, the position of node on drawing board of having good positioning judges whether the position has had node, without then drawing, has then to move on every side and draws without the place of node.
But this kind drafting mode is generally comparatively single, has not considered multiple situation.The present invention makes up first model again according to the modeling rendering topological diagram, and is simple and clear, and this kind drafting mode does not have substantially.
Summary of the invention
Technical matters to be solved by this invention is the implementation method that a kind of virtual machine topological diagram of design is drawn, draw to solve the topology that realizes under the prior art for the resources of virtual machine relation, the design's method can be drawn out the topological relation of the various resources of virtual machine in browser, can mutual modification check relation in real time, have preferably simple and clear application.
For achieving the above object, the invention provides the implementation method that a kind of virtual machine topological diagram is drawn, comprise that the topological diagram of one-to-many is drawn, the topological diagram of multi-to-multi is drawn.The topology of multi-to-multi is drawn can be divided into again the drafting of simple many-to-many relationship topology and the drafting of complicated many-to-many relationship topology.
Described one-to-many topological diagram is drawn, be used for: it is the situation of one-to-many that resources of virtual machine closes, be the relation of one-to-many such as the relation of main frame and virtual machine, under this relation, the mode that adopts is the size that calculates the browser drawing board, and according to the size of browser, the used pattern of situation of determining this one-to-many is class circle model, calculate delegation and can place what classes circle model, surpassing namely increases delegation; The radius size that compute classes is round, but make on the node mean allocation and circle that will be positioned on the circle, and it is each class circle model of separating distance that 100 pixels are set.
Described multi-to-multi topological diagram is drawn, and is used for: it is the situation of multi-to-multi that resources of virtual machine closes, such as network and virtual machine, or main frame and network.In the relation such as main frame and network multi-to-multi in this, because the number of main frame and network is less, adopt the class circular pattern, also can solve, but compare the rectangle like mode, seem complicated.The model of employing rectangle like can be more clear, the rectangle like pattern is, for example in main frame and cyberrelationship, calculate first the size of browser drawing board, read host information, the main frame of related network is arranged by ascending order, calculate position, the left and right sides, about main frame is positioned over, network is placed in the middle of the rectangle like model, then connects their relation.For the relation of the multi-to-multi of complexity, still adopt class circle model, Set Font size 12, determine first the size of circle, to contact maximum mode 12 as initial initial point, coordinate (0,0) is organized in together related, be drawn as monoblock, the computed altitude width does not have the related above step that repeats, and will all be divided into polylith and calculate height overall beam overall and minute other home position, calculate node separately, then draw.
The present invention also provides a kind of method of drawing the various resources relationships of virtual machine, and operation topological diagram that can be mutual, comprising:
On binding alternative events and the topological diagram, the user can understand according to topological diagram the details of virtual machine.If the user has enough authorities, the relation of change part topological diagram that just can be manual, the relation of change can operate on virtual machine really;
The user provides the relationship type of required resources of virtual machine, and server is selected rendering algorithm according to relationship type, and selecting automatically can the more convenient mode of concisely drawing out topological diagram.One-to-many adopts class circle model, and simple multi-to-multi adopts the rectangle like model, and complicated many-to-many relationship adopts class circle model; The binding Event and Method is that topological diagram can a dynamic interaction virtual machine information.
Can be found out by such scheme, in browser, draw out among the present invention can be mutual topological diagram, can be cross-platform, move at many total browsers, can solve the browser-safe problem; In the time of drawing topological graph, define first the model of the topological diagram that will draw, then calculate coordinate according to model, can make things convenient for simple and clear drafting, can solve the complicated loaded down with trivial details operation of drawing topological graph.In some alternative events of topological diagram binding, can solve dynamic operation and check the resources of virtual machine details.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do simple the introduction to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 draws schematic flow sheet in the embodiment of the invention one;
Fig. 2 is that many-to-many relationship is drawn schematic diagram in the embodiment of the invention one.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one, referring to Fig. 1.
The invention provides a kind of method of drawing the various resources relationships of virtual machine, wherein:
The basic ideas of drawing topological graph are to determine first the relation of the resources of virtual machine that will draw, and according to the relation of resources of virtual machine, the type that will use of selection is drawn out relational model automatically, and judgment models generates, class circle model and rectangle like model.Establish model, according to model, distribute related node.As: the relation of one-to-many, under this relation, the mode of employing is the size that calculates the browser drawing board, size according to browser, the used pattern of situation of determining this one-to-many is class circle model, calculates delegation and can place what classes circle model, and surpassing namely increases delegation; The radius size that compute classes is round, but make on the node mean allocation and circle that will be positioned on the circle, and it is each class circle model of separating distance that 100 pixels are set.
Embodiment two, referring to Fig. 2.
The rectangle like pattern is, for example in main frame and cyberrelationship, calculate first the size of browser drawing board, read host information, the main frame of related network is arranged by ascending order, calculated position, the left and right sides, about main frame is positioned over, network is placed in the middle of the rectangle like model, then connects their relation.For the relation of the multi-to-multi of complexity, still adopt class circle model, the large s of Set Font is little by 12, determine first the size of circle, to contact maximum mode12 as initial initial point, coordinate (0,0) is organized in together related, be drawn as monoblock, the computed altitude width does not have the related above step that repeats, and will all be divided into polylith and calculate height overall beam overall and minute other home position, calculate node separately, then draw.
Therefore a kind of method of drawing the various resources relationships of virtual machine provided by the invention has following advantage.
(1) graphically shows the resources of virtual machine relation
Relation between resources of virtual machine has been depicted as topological diagram, is the relation of recognizing current resources of virtual machine that the user can be cheer and bright.
(2) browser-cross
Since do not adopt applet, flex, vml, the technology such as sva have only been used the c# technology, can well realize browser-cross.
(3) method of simple various drawing topological graph
Adopt first tectonic model to recycle internodal relation, the model that Automatic-searching is fit to constructs simple and clear topological diagram.
(4) has interactivity
On binding alternative events and the topological diagram, the focus of topological diagram is set, realizes the dynamic interaction of topological diagram according to focus.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (5)

1. the implementation method that the virtual machine topological diagram is drawn is characterized in that, comprising: one based on C#, and cloud computing supports the relation of various resources of virtual machine information to draw comprehensively, and one supports interactivity to draw, regularly lastest imformation;
Described resources of virtual machine information relationship is used for: based on the hypervisor Intel Virtualization Technology, read resources of virtual machine information, such as virtual machine storage information, the network information, host information, virtual machine information etc.The relation of resources of virtual machine information is complicated; On the main frame many virtual machines can be arranged, can related a plurality of networks and storage on the main frame; Virtual machine can related a plurality of storages and a plurality of network;
Described interactivity is drawn, and is used for realizing that user interactions is capable reads and change resources of virtual machine information, change graph of a relation.
2. the implementation method that the virtual machine topological diagram is drawn is characterized in that, comprising:
Multiple drafting mode is provided, had both realized the drafting of one-to-many, also realized the drafting of multi-to-multi, and adopted different algorithms to realize; Make more straightforward of the topological diagram drawn out, and concern complete.
3. method according to claim 1 is characterized in that, also comprises: the information relationship of monitoring resource shows the resources of virtual machine relation intuitively.
4. method according to claim 2 is characterized in that, also comprises: the classification of many-to-many relationship is processed, and with the many-to-many relationship of complexity, uses and paints round algorithm process, says rectangular algorithm process is painted in the relation use of simple multi-to-multi.
5. according to claim 2, it is characterized in that described concrete construction step is as follows:
1. make up a small-sized virtual machine management system, list the various resource informations of the virtual machine that the client login user can view;
2. make up required resources relationship;
3. according to resources relationship, such as the relation of one-to-many or the relation of multi-to-multi, the mode of the topological diagram that selection will be drawn;
Make up picture output interactivity topological diagram, check resources relationship.
CN201210337300XA 2012-09-08 2012-09-08 Implementation method for topology drawing of virtual machines Pending CN102929684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210337300XA CN102929684A (en) 2012-09-08 2012-09-08 Implementation method for topology drawing of virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210337300XA CN102929684A (en) 2012-09-08 2012-09-08 Implementation method for topology drawing of virtual machines

Publications (1)

Publication Number Publication Date
CN102929684A true CN102929684A (en) 2013-02-13

Family

ID=47644494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210337300XA Pending CN102929684A (en) 2012-09-08 2012-09-08 Implementation method for topology drawing of virtual machines

Country Status (1)

Country Link
CN (1) CN102929684A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647754A (en) * 2013-11-19 2014-03-19 广州杰赛科技股份有限公司 Method and apparatus for drawing topological graph in cloud computing
CN107341040A (en) * 2016-04-28 2017-11-10 北京神州泰岳软件股份有限公司 A kind of collecting method and device for virtualizing cloud platform
CN108984249A (en) * 2018-06-26 2018-12-11 郑州云海信息技术有限公司 A kind of resource topology figure setting method and device
CN109218063A (en) * 2017-07-07 2019-01-15 中兴通讯股份有限公司 A kind of method and apparatus showing network topology

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6920494B2 (en) * 2001-10-05 2005-07-19 International Business Machines Corporation Storage area network methods and apparatus with virtual SAN recognition
CN101043380A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Method and apparatus for processing network topology information of virtual machine
US20080201715A1 (en) * 2006-07-05 2008-08-21 Gerd Breiter Method and system for dynamically creating and modifying resource topologies and executing systems management flows
CN101483935A (en) * 2008-12-19 2009-07-15 北京邮电大学 Topology drawing algorithm for wireless Ad-Hoc network
CN101729353A (en) * 2008-11-03 2010-06-09 华为技术有限公司 Method, device and system of network topology layout
CN101882179A (en) * 2010-06-18 2010-11-10 中兴通讯股份有限公司 Method and device for drawing topological graph
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6920494B2 (en) * 2001-10-05 2005-07-19 International Business Machines Corporation Storage area network methods and apparatus with virtual SAN recognition
US20080201715A1 (en) * 2006-07-05 2008-08-21 Gerd Breiter Method and system for dynamically creating and modifying resource topologies and executing systems management flows
CN101043380A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Method and apparatus for processing network topology information of virtual machine
CN101729353A (en) * 2008-11-03 2010-06-09 华为技术有限公司 Method, device and system of network topology layout
CN101483935A (en) * 2008-12-19 2009-07-15 北京邮电大学 Topology drawing algorithm for wireless Ad-Hoc network
CN101882179A (en) * 2010-06-18 2010-11-10 中兴通讯股份有限公司 Method and device for drawing topological graph
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647754A (en) * 2013-11-19 2014-03-19 广州杰赛科技股份有限公司 Method and apparatus for drawing topological graph in cloud computing
CN103647754B (en) * 2013-11-19 2017-03-29 广州杰赛科技股份有限公司 The method for drafting and device of topological diagram in cloud computing
CN107341040A (en) * 2016-04-28 2017-11-10 北京神州泰岳软件股份有限公司 A kind of collecting method and device for virtualizing cloud platform
CN109218063A (en) * 2017-07-07 2019-01-15 中兴通讯股份有限公司 A kind of method and apparatus showing network topology
CN109218063B (en) * 2017-07-07 2022-05-20 中兴通讯股份有限公司 Method and device for displaying network topology
CN108984249A (en) * 2018-06-26 2018-12-11 郑州云海信息技术有限公司 A kind of resource topology figure setting method and device

Similar Documents

Publication Publication Date Title
US9842417B2 (en) Computing device and method for simplifying point cloud of object
CN103795804A (en) Storage resource scheduling method and storage calculation system
CN111966496B (en) Data processing method, device, system and computer readable storage medium
CN105592122A (en) Cloud platform monitoring method and cloud platform monitoring system
CN102981910A (en) Realization method and realization device for virtual machine scheduling
CN104574510A (en) 3D (three-dimensional) reconstruction and editing system and method
JP2017111791A (en) Method, system and computer program for cloud-based computing cluster for simulated operator training system
CN102929684A (en) Implementation method for topology drawing of virtual machines
CN105338537B (en) A kind of method and terminal of the shared analysis of newly-increased base station site
CN103577165A (en) Form generation method and form generator
CN103458020A (en) Method and system for monitoring cloud platform based on XCP
CN112370783A (en) Virtual object rendering method and device, computer equipment and storage medium
CN115954933A (en) Power grid digital twin system construction method and device, electronic equipment and storage medium
CN112365366A (en) Micro-grid management method and system based on intelligent 5G slice
CN112329184A (en) Network architecture configuration information generation method and device, storage medium and electronic equipment
CN106250202A (en) A kind of cloud platform automatization opens the device and method of virtual machine
CN103647754A (en) Method and apparatus for drawing topological graph in cloud computing
CN105324968A (en) Method and apparatus for allocating reliability resource
CN105934915A (en) Method and apparatus for presenting device load state in cloud computing network
CN111224824B (en) Edge autonomous model construction method
US20170214588A1 (en) Enterprise cloud garbage collector
CN103297514A (en) Virtual machine management platform and virtual machine management method based on cloud infrastructure
CN104298537A (en) Electric power information communication virtual environment resource model
CN105357100A (en) Method and device for acquiring priorities of instant messaging group members
CN110868330A (en) Evaluation method, device and evaluation system for CPU resources which can be divided by cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130213