CN106325972B - Virtual machine management method and network equipment - Google Patents

Virtual machine management method and network equipment Download PDF

Info

Publication number
CN106325972B
CN106325972B CN201510353604.9A CN201510353604A CN106325972B CN 106325972 B CN106325972 B CN 106325972B CN 201510353604 A CN201510353604 A CN 201510353604A CN 106325972 B CN106325972 B CN 106325972B
Authority
CN
China
Prior art keywords
virtual machine
type
network
state
virtual
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
CN201510353604.9A
Other languages
Chinese (zh)
Other versions
CN106325972A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510353604.9A priority Critical patent/CN106325972B/en
Publication of CN106325972A publication Critical patent/CN106325972A/en
Application granted granted Critical
Publication of CN106325972B publication Critical patent/CN106325972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a virtual machine management method and network equipment, wherein the method comprises the following steps: determining a first parameter of a first type of virtual machine from the first network, wherein the first type of virtual machine represents a virtual machine with a capacity less than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine; and if the first network is in a first state, migrating the service in the first type of virtual machine to a target virtual machine, and deleting the first type of virtual machine.

Description

Virtual machine management method and network equipment
Technical Field
The present invention relates to virtual management technologies in the field of communications, and in particular, to a virtual machine management method and a network device.
Background
At present, more and more network elements are provided in a network for carrying more diversified services, a way of allocating resources by using a virtualization technology appears, and allocation of computing resources through virtualization can be more flexible.
However, as the number of services increases and decreases, the number of virtual machines and the services in the network need to be managed, and computing resources are more fully utilized. Generally, a virtual machine management platform will have built-in virtual hardware resource templates of multiple virtual machines in advance for network element deployers to choose. Therefore, after the platform normally runs for a period of time, many virtual machines with different sizes exist in the platform at the same time, and if many small virtual machines exist, the virtual resources are fragmented. In a certain period of time, the network element is continuously expanded, after the network element runs for a long time, a large number of small virtual machines exist in the system, namely, fragmentation of resources occurs, and the fragmentation of the virtual machines can cause the number of virtual machines to increase, so that the performance of a virtualization platform is reduced; meanwhile, too many virtual machines can cause the internal network of the platform to transmit too many messages, thus increasing the burden of the network.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a virtual machine management method and a network device, which can at least solve the above problems in the prior art.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a virtual machine management method, which comprises the following steps:
determining a first parameter of a first type of virtual machine from the first network, wherein the first type of virtual machine represents a virtual machine with a capacity less than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine;
if the first network is in a first state, migrating the service in the first type of virtual machine to a target virtual machine, and deleting the first type of virtual machine; and the target virtual machine represents a virtual machine with the capacity not less than a first threshold value.
In the foregoing solution, the determining whether the first network is in the first state based on the first parameter of the first type of virtual machine includes:
acquiring a first number of the first type of virtual machines from first parameters of the first type of virtual machines;
judging whether the first number is higher than a second threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
In the foregoing solution, the determining whether the first network is in the first state based on the first parameter of the first type of virtual machine includes:
acquiring a proportion reference value of the first type of virtual machine from a first parameter of the first type of virtual machine;
judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
In the above scheme, before migrating the service in the first type of virtual machine to the target virtual machine and deleting the first type of virtual machine, the method further includes:
creating a target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
In the foregoing scheme, the migrating the service in the first type of virtual machine to the target virtual machine and deleting the first type of virtual machine may include:
migrating the service in the first type of virtual machine to the target virtual machine;
and detecting whether the first type of virtual machine bears the service or not, and deleting the first type of virtual machine if the first type of virtual machine does not bear the service.
An embodiment of the present invention provides a network device, including:
the scheduling unit is used for acquiring a first parameter of a first type of virtual machine from the first network by the virtual machine information unit occupied by the network element, wherein the first type of virtual machine represents a virtual machine with capacity smaller than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine; if the first network is in a first state, controlling a virtual machine network element management unit to migrate the service in the first type of virtual machine to a target virtual machine and controlling a virtual machine management unit to delete the first type of virtual machine; the target virtual machine represents a virtual machine of which the capacity is not less than a first threshold value;
the network element occupies the virtual machine information unit, is used for confirming the first parameter of the first kind of virtual machine; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
the virtual machine management unit is used for deleting the first type of virtual machine;
and the virtual machine network element management unit is used for migrating the service in the first type of virtual machine to a target virtual machine.
In the foregoing scheme, the scheduling unit is specifically configured to obtain the first number of the first type of virtual machines from the first parameter of the first type of virtual machines; judging whether the first number is higher than a second threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
In the foregoing scheme, the scheduling unit is specifically configured to obtain a proportional reference value of the first type of virtual machine from a first parameter of the first type of virtual machine; judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
In the foregoing solution, the network device further includes: the network element to virtual machine requirement calculating unit is used for calculating the capacity required by the target virtual machine;
correspondingly, the scheduling unit is further configured to control the virtual machine management unit to create a target virtual machine according to the capacity required by the target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
In the foregoing scheme, the scheduling unit is specifically configured to control the virtual machine network element management unit to migrate the service in the first type of virtual machine to the target virtual machine; and detecting whether the first type of virtual machine bears the service or not, and if not, controlling the virtual machine management unit to delete the first type of virtual machine.
The virtual machine management method and the network device provided by the invention can detect the first parameter of the first type of virtual machine with the capacity smaller than the first threshold value in the first network, judge the current state of the first network according to the first parameter of the first type of virtual machine, and migrate the service in the first type of virtual machine to the target virtual machine with the capacity larger than the first type of virtual machine when the first network is in the state of needing to migrate the service in the first type of virtual machine. Therefore, the capacity of the virtual machine in the network can be monitored in real time, and the situation of fragmentation of the virtual machine is avoided, so that the performance of a virtualization platform is improved, and the burden of the network is reduced.
Drawings
FIG. 1 is a schematic flow chart of a virtual machine management method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a virtual machine according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a virtual machine management assembly according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating an embodiment of the present invention;
FIG. 5 is a first schematic diagram of a network device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a network device composition structure according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
An embodiment of the present invention provides a virtual machine management method, as shown in fig. 1, the method includes:
step 101: determining a first parameter of a first type of virtual machine from the first network, wherein the first type of virtual machine represents a virtual machine with a capacity less than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
step 102: judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine;
step 103: if the first network is in a first state, migrating the service in the first type of virtual machine to a target virtual machine, and deleting the first type of virtual machine; and the target virtual machine represents a virtual machine with the capacity not less than a first threshold value.
In this embodiment, the virtualization refers to abstracting physical resources of a server into logical resources, so that one network device becomes a plurality of logically isolated virtual servers, that is, hardware such as a Central Processing Unit (CPU), a memory, a disk, and an input/output interface (I/O) becomes a "resource pool" capable of being dynamically managed, thereby improving resource utilization, simplifying system management, and implementing server integration. The management for the virtual machine can adopt a KVM, Xen, VMware and other virtualization systems to become more mature virtualization products. Fig. 2 is a schematic diagram of a virtualization general architecture, in which a Virtual Machine (VM) refers to a virtual hardware system simulated on a hardware platform, and a different operating system, i.e., a Guest operating system (Guest OS), may be run on each virtual hardware system, and Guest application software (Guest App) is run on the virtual hardware system; the Guest operating systems (Guest OSs) in these VMs access the actual hardware physical resources through a Virtual Machine Monitor (VMM). The VMM is a software layer located between computer hardware and an operating system, and is responsible for managing and isolating a plurality of virtual machines running on an upper layer, providing independent and safe running environments for the virtual machines, and virtualizing a set of virtual hardware environments, such as a CPU, a memory, a hard disk, and the like, for each virtual machine, which are unrelated to real hardware.
Fig. 3 is a basic management framework after virtualization of network functions, in which a virtual machine management module mainly relates to operations of resource layers of creation, deletion, monitoring, and the like of a virtual machine. The virtualized network element management unit mainly relates to the operation of service layers such as the creation of network elements, the capacity expansion and the capacity reduction of the network elements, the traffic statistics and the like. The virtualized network element management unit may send a message to the virtual machine management module, so that the virtual machine management module executes operations such as creation and deletion of the virtual machine. The virtual machine management module may send a resource usage status to the virtualized network element management unit, for example, how many virtual machines are occupied by a certain network element at present, and how large the configuration of each virtual machine is.
Preferably, in this embodiment, the determining the first number of the first type of virtual machines may include: sequentially acquiring the capacity of the N virtual machines, judging whether the acquired capacity is smaller than a first threshold value, and if so, determining that the virtual machine is the first type of virtual machine;
wherein, the capacity of the virtual machine may be: and characterizing the memory size corresponding to the virtual machine. The first threshold may be set according to an actual situation, for example, the memory corresponding to the virtual machine may be set to be less than 2G, or less than 1.5G.
For example, it is assumed that hardware templates corresponding to the virtual machines in 3 can be set in the first network, and the hardware templates are respectively shown in the following table:
form panel Number of CPU cores Memory size Network rate Processing capacity
Form 1 1 1G 1G 1
Form 2 2 2G 2G 2
Form 3 4 4G 4G 4
The processing capacities of the templates of the virtual machines are respectively 1, 2 and 4. When the IMS CSCF service processing unit is operated on these three types of virtual machines, the traffic that each type of virtual machine can carry is 1 ten thousand users, 2 ten thousand users, and 4 ten thousand users, respectively. At a certain period of time, the IMS CSCF network element is continuously expanded, assuming that there are 10 expansion times, the interval time of each expansion is 1 month, there are 7 expansion times of 1 ten thousand users, and 3 expansion times of 2 ten thousand users. Thus, after 10 expansion operations are completed, 7 virtual machines of template 1 type and 3 virtual machines of template 2 type are added in the system.
The hardware targeted by the flow in this embodiment may be a scheduling unit, which is used to manage each unit in fig. 2 and fig. 3.
The determining, in step 102, whether the first network is in the first state based on the first parameter of the first type of virtual machine may include:
acquiring a first number of the first type of virtual machines from first parameters of the first type of virtual machines;
judging whether the first number is higher than a second threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
In this embodiment, the first parameter may at least include: the first number of the first type of virtual machines and the first number of the first type of virtual machines are divided by N to obtain a proportional reference value.
The second threshold may be set according to an actual situation, for example, the second threshold may be set in combination with the number of virtual machines included in the current first network, and assuming that the current N is equal to 100, the second threshold may be set to be equal to 80, that is, when the first number is greater than 80, it is determined that the service of the first type of virtual machine needs to be migrated.
Alternatively, the determining, in the step 102, whether the first network is in the first state based on the first parameter of the first type of virtual machine may include:
acquiring a proportion reference value of the first type of virtual machine from a first parameter of the first type of virtual machine;
judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
The third threshold is a proportional value, and may be set according to an actual situation, for example, the third threshold may be set to be 60%, that is, when the proportional value of the number between the first type of virtual machine and the N virtual machines is higher than 60%, it is determined that the first network is in the first state.
Preferably, in this embodiment, before migrating the service in the first type of virtual machine to the target virtual machine and deleting the first type of virtual machine, the method may further include: creating a target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
The specific operation mode of creating the target virtual machine may be explained based on fig. 3: firstly, a control virtualization network element management unit determines physical resources of a required virtual machine based on a first parameter of the first type of virtual machine;
notifying the physical resources of the virtual machine to virtual machine management so that the virtual machine management obtains a second type of virtual machine as a target virtual machine according to the physical resources;
and installing network element software at the resource corresponding to the target virtual machine, and configuring the network element to obtain the target virtual machine.
The virtual machine management shown in fig. 3 may have the following functions: firstly, creating a virtual machine: after receiving the request of creating the virtual machine, the VMM allocates corresponding physical resources (CPU, memory, hard disk and the like) according to the application requirement, and selects a server to run the virtual machine. The request may include a resource requirement for specifying a required virtual machine, such as the number of CPUs, the size of a memory, the size of a hard disk, a required virtual machine image, and the like.
Secondly, deleting the virtual machine: after receiving a request of deleting the virtual machine, the virtual machine management unit closes the virtual machine, deletes the relevant files of the virtual machine, and releases the physical resources occupied by the virtual machine.
The virtualized network element management unit in fig. 3 may have the following functions: firstly, creating a network element: according to the virtual machine resource required by the network element, requesting a virtual machine management unit for resources, and after the virtual machine management unit creates corresponding resources, the virtualized network element management unit installs network element software in the virtual machine and configures the network element. Secondly, network element capacity expansion: calculating virtual machine resources required by the capacity expansion network element, requesting the resources to the virtual machine management unit, installing network element software in the virtual machine by the virtualization network element management unit after the virtual machine management unit creates the corresponding resources, and configuring the network element so that the newly added virtual machine provides services.
Correspondingly, the migrating the service in the first type of virtual machine to the target virtual machine and deleting the first type of virtual machine may include:
migrating the service in the first type of virtual machine to the target virtual machine;
and detecting whether the first type of virtual machine bears the service or not, and deleting the first type of virtual machine if the first type of virtual machine does not bear the service.
Therefore, by adopting the scheme, the first number of the first type of virtual machines with the capacity smaller than the first threshold value in the first network can be detected, the current state of the first network is judged according to the first number of the virtual machines, and when the first network is in the state that the service in the first type of virtual machines needs to be migrated, the service in the first type of virtual machines is migrated to the target virtual machine. Therefore, the capacity of the virtual machine in the network can be monitored in real time, and the situation of fragmentation of the virtual machine is avoided, so that the performance of a virtualization platform is improved, and the burden of the network is reduced.
Example II,
An embodiment of the present invention provides a virtual machine management method, as shown in fig. 1, the method includes:
step 101: determining a first parameter of a first type of virtual machine from the first network, wherein the first type of virtual machine represents a virtual machine with a capacity less than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
step 102: judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine;
step 103: if the first network is in a first state, migrating the service in the first type of virtual machine to a target virtual machine, and deleting the first type of virtual machine; and the target virtual machine represents a virtual machine with the capacity not less than a first threshold value.
In this embodiment, the virtualization refers to abstracting physical resources of a server into logical resources, so that one network device becomes a plurality of logically isolated virtual servers, that is, hardware such as a Central Processing Unit (CPU), a memory, a disk, and an input/output interface (I/O) becomes a "resource pool" capable of being dynamically managed, thereby improving resource utilization, simplifying system management, and implementing server integration. The management for the virtual machine can adopt a KVM, Xen, VMware and other virtualization systems to become more mature virtualization products. Fig. 2 is a schematic diagram of a virtualization general architecture, in which a Virtual Machine (VM) refers to a virtual hardware system simulated on a hardware platform, and a different operating system, i.e., a Guest operating system (Guest OS), may be run on each virtual hardware system, and Guest application software (Guest App) is run on the virtual hardware system; the Guest operating systems (Guest OSs) in these VMs access the actual hardware physical resources through a Virtual Machine Monitor (VMM). The VMM is a software layer located between computer hardware and an operating system, and is responsible for managing and isolating a plurality of virtual machines running on an upper layer, providing independent and safe running environments for the virtual machines, and virtualizing a set of virtual hardware environments, such as a CPU, a memory, a hard disk, and the like, for each virtual machine, which are unrelated to real hardware.
Fig. 3 is a basic management framework after virtualization of network functions, in which a virtual machine management module mainly relates to operations of resource layers of creation, deletion, monitoring, and the like of a virtual machine. The virtualized network element management unit mainly relates to the operation of service layers such as the creation of network elements, the capacity expansion and the capacity reduction of the network elements, the traffic statistics and the like. The virtualized network element management unit may send a message to the virtual machine management module, so that the virtual machine management module executes operations such as creation and deletion of the virtual machine. The virtual machine management module may send a resource usage status to the virtualized network element management unit, for example, how many virtual machines are occupied by a certain network element at present, and how large the configuration of each virtual machine is.
Assuming that the unit provided in this embodiment is a scheduling unit, configured to manage each unit in fig. 2 and fig. 3, with respect to the above steps and the structures provided in fig. 2 and fig. 3, this embodiment provides an implementation manner, as shown in fig. 4, including:
step 401: the scheduling unit sets a threshold value for achieving resource defragmentation; for example, for a virtual machine composed of the templates 1, 2, and 3 described in the table provided in the first embodiment, a threshold value of 60% of the threshold value of the virtual machine using the template 1 is set.
Step 402: for the managed network element instance, the scheduling unit periodically inquires about the usage of the virtual machine of the device.
Step 403: assuming that after a certain query, the usage of the virtual machine template reaches the threshold of resource defragmentation, the virtualized network element management unit calculates the number of the required large-capacity template virtual machines. The calculation should be based on the amount of traffic that needs to be migrated to the large capacity virtual machine, the capacity of the virtual machine, and the redundancy requirements.
Step 404: and sending a message to the virtual machine management unit to create a corresponding virtual machine.
Step 405: and after the virtual machine is established, returning the established virtual machine information to the virtualized network element management unit. Such as the IP address of the virtual machine.
Step 406: and sending a message to the network element software, informing the network element software, and migrating the traffic to the newly established virtual machine.
Step 407: and when the small-capacity virtual machine does not bear the service any more, the network element software sends a message to the virtualized network element management unit for informing.
Step 408: and sending a message to the virtual machine management unit, and deleting the corresponding virtual machine.
Step 409: and returning confirmation to the virtualized network element management unit after the network element deletion is completed.
Step 410: finishing the defragmentation.
Therefore, by adopting the scheme, the first number of the first type of virtual machines with the capacity smaller than the first threshold value in the first network can be detected, the current state of the first network is judged according to the first number of the virtual machines, and when the first network is in the state that the service in the first type of virtual machines needs to be migrated, the service in the first type of virtual machines is migrated to the target virtual machine. Therefore, the capacity of the virtual machine in the network can be monitored in real time, and the situation of fragmentation of the virtual machine is avoided, so that the performance of a virtualization platform is improved, and the burden of the network is reduced.
Example III,
An embodiment of the present invention provides a network device, as shown in fig. 5, including:
a scheduling unit 51, configured to obtain, from a network element occupation virtual machine information unit 52, a first parameter of a first type of virtual machine in the first network, where the first type of virtual machine represents a virtual machine whose capacity is smaller than a first threshold value; the first network is a network consisting of the N virtual machines, and N is a positive integer greater than or equal to 1; judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents that the first network is in a state of needing to migrate the service of the first type of virtual machine; if the first network is in the first state, controlling the virtual machine network element management unit 54 to migrate the service in the first type of virtual machine to the target virtual machine, and controlling the virtual machine management unit 53 to delete the first type of virtual machine;
a network element occupation virtual machine information unit 52, configured to determine a first parameter of a first type of virtual machine; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
a virtual machine management unit 53, configured to delete the first type of virtual machine;
a virtual machine network element management unit 54, configured to migrate services in the first type of virtual machine to a target virtual machine; and the target virtual machine represents a virtual machine with the capacity not less than a first threshold value.
In this embodiment, the virtualization refers to abstracting physical resources of a server into logical resources, so that one network device becomes a plurality of logically isolated virtual servers, that is, hardware such as a Central Processing Unit (CPU), a memory, a disk, and an input/output interface (I/O) becomes a "resource pool" capable of being dynamically managed, thereby improving resource utilization, simplifying system management, and implementing server integration. The management for the virtual machine can adopt a KVM, Xen, VMware and other virtualization systems to become more mature virtualization products. Fig. 2 is a schematic diagram of a virtualization general architecture, in which a Virtual Machine (VM) refers to a virtual hardware system simulated on a hardware platform, and a different operating system, i.e., a Guest operating system (Guest OS), may be run on each virtual hardware system, and Guest application software (Guest App) is run on the virtual hardware system; the Guest operating systems (Guest OSs) in these VMs access the actual hardware physical resources through a Virtual Machine Monitor (VMM). The VMM is a software layer located between computer hardware and an operating system, and is responsible for managing and isolating a plurality of virtual machines running on an upper layer, providing independent and safe running environments for the virtual machines, and virtualizing a set of virtual hardware environments, such as a CPU, a memory, a hard disk, and the like, for each virtual machine, which are unrelated to real hardware.
Fig. 3 is a basic management framework after virtualization of network functions, in which a virtual machine management module mainly relates to operations of resource layers of creation, deletion, monitoring, and the like of a virtual machine. The virtualized network element management unit mainly relates to the operation of service layers such as the creation of network elements, the capacity expansion and the capacity reduction of the network elements, the traffic statistics and the like. The virtualized network element management unit may send a message to the virtual machine management module, so that the virtual machine management module executes operations such as creation and deletion of the virtual machine. The virtual machine management module may send a resource usage status to the virtualized network element management unit, for example, how many virtual machines are occupied by a certain network element at present, and how large the configuration of each virtual machine is.
Preferably, in this embodiment, the determining the first number of the first type of virtual machines may include: sequentially acquiring the capacity of the N virtual machines, judging whether the acquired capacity is smaller than a first threshold value, and if so, determining that the virtual machine is the first type of virtual machine;
wherein, the capacity of the virtual machine may be: and characterizing the memory size corresponding to the virtual machine. The first threshold may be set according to an actual situation, for example, the memory corresponding to the virtual machine may be set to be less than 2G, or less than 1.5G.
For example, it is assumed that hardware templates corresponding to the virtual machines in 3 can be set in the first network, and the hardware templates are respectively shown in the following table:
form panel Number of CPU cores Memory size Network rate Processing capacity
Form 1 1 1G 1G 1
Form 2 2 2G 2G 2
Form 3 4 4G 4G 4
The processing capacities of the templates of the virtual machines are respectively 1, 2 and 4. When the IMS CSCF service processing unit is operated on these three types of virtual machines, the traffic that each type of virtual machine can carry is 1 ten thousand users, 2 ten thousand users, and 4 ten thousand users, respectively. At a certain period of time, the IMS CSCF network element is continuously expanded, assuming that there are 10 expansion times, the interval time of each expansion is 1 month, there are 7 expansion times of 1 ten thousand users, and 3 expansion times of 2 ten thousand users. Thus, after 10 expansion operations are completed, 7 virtual machines of template 1 type and 3 virtual machines of template 2 type are added in the system.
The scheduling unit is specifically configured to determine whether the first number is higher than a second threshold, determine that the first network is in a first state if the first number is higher than the second threshold, and determine that the first network is in a second state if the first number is not higher than the second threshold; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
The second threshold may be set according to an actual situation, for example, the second threshold may be set in combination with the number of virtual machines included in the current first network, and assuming that the current N is equal to 100, the second threshold may be set to be equal to 80, that is, when the first number is greater than 80, it is determined that the service of the first type of virtual machine needs to be migrated.
Or, the scheduling unit is specifically configured to divide the first number of the first class of virtual machines by N to obtain a reference value; judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
The third threshold is a proportional value, and may be set according to an actual situation, for example, the third threshold may be set to be 60%, that is, when the proportional value of the number between the first type of virtual machine and the N virtual machines is higher than 60%, it is determined that the first network is in the first state.
Preferably, in this embodiment, before migrating the service in the first type of virtual machine to the target virtual machine and deleting the first type of virtual machine, the network device further includes: a network element to virtual machine requirement calculating unit 55, configured to calculate a capacity required by a target virtual machine;
correspondingly, the scheduling unit is further configured to control the virtual machine management unit to create a target virtual machine according to the capacity required by the target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
The specific operation mode of creating the target virtual machine may be explained based on fig. 3: firstly, the virtualized network element management unit determines physical resources of the required virtual machine based on a first parameter of the first type of virtual machine;
notifying the physical resources of the virtual machine to virtual machine management so that the virtual machine management obtains a second type of virtual machine as a target virtual machine according to the physical resources;
and installing network element software at the resource corresponding to the target virtual machine, and configuring the network element to obtain the target virtual machine.
The virtualized network element management unit in fig. 3 may have the following functions: firstly, creating a network element: according to the virtual machine resource required by the network element, requesting a virtual machine management unit for resources, and after the virtual machine management unit creates corresponding resources, the virtualized network element management unit installs network element software in the virtual machine and configures the network element. Secondly, network element capacity expansion: calculating virtual machine resources required by the capacity expansion network element, requesting the resources to the virtual machine management unit, installing network element software in the virtual machine by the virtualization network element management unit after the virtual machine management unit creates the corresponding resources, and configuring the network element so that the newly added virtual machine provides services.
The scheduling unit is specifically configured to control the virtual machine network element management unit to migrate the service in the first type of virtual machine to the target virtual machine; and detecting whether the first type of virtual machine bears the service or not, and if not, controlling the virtual machine management unit to delete the first type of virtual machine.
The virtual machine management shown in fig. 3 may have the following functions: firstly, creating a virtual machine: after receiving the request of creating the virtual machine, the VMM allocates corresponding physical resources (CPU, memory, hard disk and the like) according to the application requirement, and selects a server to run the virtual machine. The request may include a resource requirement for specifying a required virtual machine, such as the number of CPUs, the size of a memory, the size of a hard disk, a required virtual machine image, and the like.
Secondly, deleting the virtual machine: after receiving a request of deleting the virtual machine, the virtual machine management unit closes the virtual machine, deletes the relevant files of the virtual machine, and releases the physical resources occupied by the virtual machine.
Further, based on the operation flow corresponding to the second embodiment shown in fig. 4, the present embodiment provides a logic structure shown in fig. 6 for the operation flow:
the scheduling unit sets a threshold value for resource defragmentation.
The scheduling unit interacts with the virtual machine information module occupied by the network element, and regularly obtains the virtual machine occupation condition of the specific network element.
The dispatching unit interacts with the computing module of the virtual machine demand of the network element, the resource dispatching coordination module sends the user scale to the computing module of the virtual machine demand of the network element, and the computing module of the virtual machine demand of the network element returns the computing result to the dispatching unit.
And the scheduling unit interacts with the existing virtual machine management unit and indicates the scheduling unit to create or delete the corresponding virtual machine. The virtual machine management unit interacts with an external virtual machine management unit, instructs the virtual machine management unit to complete the creation and deletion of the virtual machine, and returns the result to the scheduling unit.
And the scheduling unit interacts with the existing virtual machine network element management unit and indicates the scheduling unit to migrate the traffic to the newly established virtual machine.
The virtual machine network element management unit interacts with external network element software, instructs the network element software to perform corresponding service migration operation, and returns the result to the scheduling unit.
Therefore, by adopting the scheme, the first number of the first type of virtual machines with the capacity smaller than the first threshold value in the first network can be detected, the current state of the first network is judged according to the first number of the virtual machines, and when the first network is in the state that the service in the first type of virtual machines needs to be migrated, the service in the first type of virtual machines is migrated to the target virtual machine. Therefore, the capacity of the virtual machine in the network can be monitored in real time, and the situation of fragmentation of the virtual machine is avoided, so that the performance of a virtualization platform is improved, and the burden of the network is reduced.
The integrated module according to the embodiment of the present invention may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as an independent product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, the embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, where the computer program is used to execute the method for deciding the interoperation with the WLAN in the client cell handover according to the embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A virtual machine management method, the method comprising:
determining a first parameter of a first type of virtual machine from a first network, wherein the first type of virtual machine represents a virtual machine with a capacity less than a first threshold value; the first network is a network consisting of N virtual machines, wherein N is a positive integer greater than or equal to 1; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents a state that a first number of the first type of virtual machine in the first network is higher than a second threshold value, or the first state represents a state that a proportion reference value of the first type of virtual machine in the first network is higher than a third threshold value;
if the first network is in a first state, migrating the service in the first type of virtual machine to a target virtual machine and deleting the first type of virtual machine; and the target virtual machine represents a virtual machine with the capacity not less than a first threshold value.
2. The method of claim 1, wherein determining whether the first network is in the first state based on the first parameter of the first type of virtual machine comprises:
acquiring a first number of the first type of virtual machines from first parameters of the first type of virtual machines;
judging whether the first number is higher than a second threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
3. The method of claim 1, wherein determining whether the first network is in the first state based on the first parameter of the first type of virtual machine comprises:
acquiring a proportion reference value of the first type of virtual machine from a first parameter of the first type of virtual machine;
judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
4. The method according to any one of claims 1-3, wherein before migrating traffic in the first type of virtual machine to a target virtual machine and deleting the first type of virtual machine, the method further comprises:
creating a target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
5. The method of claim 4, wherein migrating the traffic in the first type of virtual machine to a target virtual machine and deleting the first type of virtual machine comprises:
migrating the service in the first type of virtual machine to the target virtual machine;
and detecting whether the first type of virtual machine bears the service or not, and deleting the first type of virtual machine if the first type of virtual machine does not bear the service.
6. A network device, comprising:
the scheduling unit is used for acquiring a first parameter of a first type of virtual machine from a network element occupying virtual machine information unit in a first network, wherein the first type of virtual machine represents a virtual machine with capacity smaller than a first threshold value; the first network is a network consisting of N virtual machines, wherein N is a positive integer greater than or equal to 1; judging whether the first network is in a first state or not based on a first parameter of the first type of virtual machine, wherein the first state represents a state that a first number of the first type of virtual machine in the first network is higher than a second threshold value, or the first state represents a state that a proportion reference value of the first type of virtual machine in the first network is higher than a third threshold value; if the first network is in a first state, controlling a virtual machine network element management unit to migrate the service in the first type of virtual machine to a target virtual machine and controlling a virtual machine management unit to delete the first type of virtual machine; the target virtual machine represents a virtual machine of which the capacity is not less than a first threshold value;
the network element occupies the virtual machine information unit, is used for confirming the first parameter of the first kind of virtual machine; the first parameter at least comprises a first number of the first type of virtual machines and/or a proportion reference value of the first type of virtual machines in the first network;
the virtual machine management unit is used for deleting the first type of virtual machine;
and the virtual machine network element management unit is used for migrating the service in the first type of virtual machine to a target virtual machine.
7. The network device according to claim 6, wherein the scheduling unit is specifically configured to obtain the first number of the first type of virtual machines from a first parameter of the first type of virtual machines; judging whether the first number is higher than a second threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
8. The network device according to claim 6, wherein the scheduling unit is specifically configured to obtain a proportional reference value of the first type of virtual machine from a first parameter of the first type of virtual machine; dividing the first number of the first type of virtual machines by N to obtain a reference value; judging whether the proportion reference value is higher than a third threshold value, if so, determining that the first network is in a first state, otherwise, determining that the first network is in a second state; wherein the second state represents that the first network is in a state that does not require migration of traffic of the first type of virtual machine.
9. The network device of any of claims 6-8, wherein the network device further comprises: the network element to virtual machine requirement calculating unit is used for calculating the capacity required by the target virtual machine;
correspondingly, the scheduling unit is further configured to control the virtual machine management unit to create a target virtual machine according to the capacity required by the target virtual machine; the target virtual machine may be a second type of virtual machine different from the first type of virtual machine, and the second type of virtual machine is a virtual machine whose capacity is not less than a first threshold value.
10. The network device according to claim 9, wherein the scheduling unit is specifically configured to control the virtual machine network element management unit to migrate the service in the first type of virtual machine to the target virtual machine; and detecting whether the first type of virtual machine bears the service or not, and if not, controlling the virtual machine management unit to delete the first type of virtual machine.
CN201510353604.9A 2015-06-24 2015-06-24 Virtual machine management method and network equipment Active CN106325972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510353604.9A CN106325972B (en) 2015-06-24 2015-06-24 Virtual machine management method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510353604.9A CN106325972B (en) 2015-06-24 2015-06-24 Virtual machine management method and network equipment

Publications (2)

Publication Number Publication Date
CN106325972A CN106325972A (en) 2017-01-11
CN106325972B true CN106325972B (en) 2020-02-07

Family

ID=57729528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510353604.9A Active CN106325972B (en) 2015-06-24 2015-06-24 Virtual machine management method and network equipment

Country Status (1)

Country Link
CN (1) CN106325972B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153570B (en) * 2017-04-11 2020-08-25 华为技术有限公司 Method and device for controlling number of virtual machines
CN108737144B (en) * 2017-04-24 2021-06-29 华为技术有限公司 Method and device for resource management
CN112202857B (en) * 2020-09-21 2021-05-14 青岛国信会展酒店发展有限公司 Intelligent management system applied to exhibition center

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077079A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and device for controlling migration of virtual machine
CN103888501A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Virtual machine migration method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888501A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Virtual machine migration method and device
CN103077079A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and device for controlling migration of virtual machine

Also Published As

Publication number Publication date
CN106325972A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US10659318B2 (en) Methods and apparatus related to management of unit-based virtual resources within a data center environment
US11775335B2 (en) Platform independent GPU profiles for more efficient utilization of GPU resources
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
JP4519098B2 (en) Computer management method, computer system, and management program
US9588789B2 (en) Management apparatus and workload distribution management method
US10241836B2 (en) Resource management in a virtualized computing environment
US20160259665A1 (en) Methods and apparatus to select virtualization environments for migration
EP3265911B1 (en) Methods and apparatus to select virtualization environments during deployment
US20150309828A1 (en) Hypervisor manager for virtual machine management
EP3462671B1 (en) Virtual network function resource management method and device
US20170017511A1 (en) Method for memory management in virtual machines, and corresponding system and computer program product
US20160156568A1 (en) Computer system and computer resource allocation management method
US20160196157A1 (en) Information processing system, management device, and method of controlling information processing system
CN111078363A (en) NUMA node scheduling method, device, equipment and medium for virtual machine
US20140282540A1 (en) Performant host selection for virtualization centers
US20150234671A1 (en) Management system and management program
US11740921B2 (en) Coordinated container scheduling for improved resource allocation in virtual computing environment
CN104539708A (en) Capacity reduction method, device and system for cloud platform resources
TW201347459A (en) Management method and system using the same
CN106325972B (en) Virtual machine management method and network equipment
EP3358795B1 (en) Method and apparatus for allocating a virtual resource in network functions virtualization (nfv) network
CN113626145A (en) Dynamic capacity expansion method and system for number of service virtual machines
CN105208111A (en) Information processing method and physical machine
JP2014167713A (en) Information processing device, information processing system, information processing device management program and information processing device management method
CN107766122B (en) Method and device for setting available memory space of host machine

Legal Events

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