CN112291078A - Subnet network resource management method and system based on virtualization platform - Google Patents

Subnet network resource management method and system based on virtualization platform Download PDF

Info

Publication number
CN112291078A
CN112291078A CN202010952308.1A CN202010952308A CN112291078A CN 112291078 A CN112291078 A CN 112291078A CN 202010952308 A CN202010952308 A CN 202010952308A CN 112291078 A CN112291078 A CN 112291078A
Authority
CN
China
Prior art keywords
subnet
current
network segment
capacity reduction
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010952308.1A
Other languages
Chinese (zh)
Other versions
CN112291078B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010952308.1A priority Critical patent/CN112291078B/en
Publication of CN112291078A publication Critical patent/CN112291078A/en
Application granted granted Critical
Publication of CN112291078B publication Critical patent/CN112291078B/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/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • 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
    • H04L41/0893Assignment of logical groups to network elements

Landscapes

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

Abstract

The application discloses a subnet network resource management method and a system based on a virtualization platform, wherein the method comprises the following steps: expanding a new openstack interface based on a virtualization platform, wherein the new openstack interface comprises: a subnet capacity expansion interface and a subnet capacity reduction interface; acquiring a subnet network resource management command and subnet attribute information; if the subnet network resource management command is an expansion command, expanding the current subnet network segment according to the subnet attribute information; and if the subnet network resource management command is a capacity reduction command, carrying out capacity reduction on the current subnet network segment according to the subnet attribute information. The system comprises: the openstack interface expansion module, the information acquisition module, the capacity expansion module and the capacity reduction module. By the method and the device, flexibility and expansibility of subnet network segment resource management in the virtualization platform can be effectively improved.

Description

Subnet network resource management method and system based on virtualization platform
Technical Field
The present application relates to the technical field of subnet resource management in a virtualization platform, and in particular, to a subnet network resource management method and system based on a virtualization platform.
Background
With the development of virtualization technology, the number of virtual machines for management in a virtualization platform is increasing, and higher requirements are put forward on a virtualization management platform. In terms of subnet section management, a plurality of virtual machine ports usually exist in the same subnet, and how to manage network resources in the current subnet in a virtualization platform so as to ensure the normal operation of the virtualization platform is an important technical problem.
At present, in a method for managing subnet network resources in a virtualization platform, usually, when a network segment is created, the subnet segment is well divided, and network resources are designated, thereby ensuring effective management of the subnet network resources.
However, in the current method for managing subnet network resources, because subnet network resource division is specified during creation, when more and more virtual machine ports are in the same subnet, the available IP (Internet Protocol, Protocol for interconnection between networks) resources are insufficient; and some subnetworks have lower use frequency, and IP resources of the subnetworks are wasted and cannot be released, so that network resource planning is unreasonable, and flexibility and expandability of subnet network segment change are poor.
Disclosure of Invention
The application provides a subnet network resource management method and system based on a virtualization platform, which aim to solve the problems of unreasonable network resource planning and poor flexibility and expandability of subnet network segment change in the prior art.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
a virtualized platform based subnet network resource management method, the method comprising:
extending a new openstack interface based on a virtualization platform, the new openstack interface comprising: a subnet capacity expansion interface and a subnet capacity reduction interface;
acquiring a subnet network resource management command and subnet attribute information, wherein the subnet network resource management command comprises: the capacity expansion command and the capacity reduction command, wherein the subnet attribute information comprises: subnet ID (Identity document, unique code) identification and network segment CIDR (class Inter-Domain Routing, no classification Inter-Domain Routing);
if the subnet network resource management command is an expansion command, expanding the current subnet network segment according to the subnet attribute information;
and if the subnet network resource management command is a capacity reduction command, carrying out capacity reduction on the current subnet network segment according to the subnet attribute information.
Optionally, the method for expanding the capacity of the current subnet net segment according to the subnet attribute information includes:
judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
if the port IP information used by the virtual machine exists, judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded network segment;
if the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded subnet section, judging whether the current subnet section expanded by the expansion is repeated with the existing subnet section in the current virtualization platform according to the IP addresses of the virtual machine ports and the subnet mask bits;
if the subnet is repeated, the current subnet network segment is not expanded;
if the subnet expansion interface parameters are not repeated, the subnet expansion interface parameters are packaged, and the subnet expansion interface of the openstack platform is called to expand the current subnet network segment.
Optionally, the method for performing capacity reduction on the current subnet section according to the subnet attribute information includes:
judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
if the port IP information used by the virtual machine exists, judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction;
if the IP addresses of all virtual machine ports in the current subnet are contained in the network segment after the capacity reduction, judging whether the network segment after the capacity reduction of the current subnet is repeated with the existing subnet network segment in the current virtualization platform according to the IP addresses of the virtual machine ports and the subnet mask bits;
if the subnet is repeated, the current subnet net section is not subjected to capacity reduction;
if the subnet is not repeated, the subnet capacity reduction interface parameters are packaged, a subnet capacity reduction interface of the openstack platform is called, and the capacity reduction is carried out on the current subnet network segment.
Optionally, the method further comprises:
if the IP addresses of all the virtual machine ports in the current subnet are not contained in the network segment after the capacity reduction, the IP addresses are reconfigured aiming at the virtual machine ports not in the network segment after the capacity reduction;
and judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction again until the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction.
A virtualization platform-based subnet network resource management system, the system comprising:
the openstack interface expansion module is used for expanding a new openstack interface on a virtualization platform, and the new openstack interface includes: a subnet capacity expansion interface and a subnet capacity reduction interface;
an information obtaining module, configured to obtain a subnet network resource management command and subnet attribute information, where the subnet network resource management command includes: the capacity expansion command and the capacity reduction command, wherein the subnet attribute information comprises: subnet ID identification and network segment CIDR;
the capacity expansion module is used for expanding the capacity of the current subnet network segment according to the subnet attribute information when the subnet network resource management command is a capacity expansion command;
and the capacity reduction module is used for carrying out capacity reduction on the current subnet section according to the subnet attribute information when the subnet network resource management command is a capacity reduction command.
Optionally, the capacity expansion module includes:
the first capacity expansion judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
the second capacity expansion judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the expanded subnet when the IP information of the ports used by the virtual machines exists;
a third capacity expansion judging unit, configured to judge, when the IP addresses of all virtual machine ports in the current subnet are included in the expanded network segment, whether the network segment after the current subnet is expanded has duplication with an existing subnet network segment in the current virtualization platform according to the IP address of the virtual machine port and the subnet mask bit, if so, not expanding the current subnet network segment, and if not, starting the capacity expansion unit;
and the expansion unit is used for encapsulating the expansion interface parameters of the subnet when the current subnet expanded network segment is not repeated with the existing subnet network segment in the current virtualization platform, calling the subnet expansion interface of the openstack platform and expanding the current subnet network segment.
Optionally, the capacity reduction module includes:
the first capacity reduction judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
the second capacity reduction judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the network segment after capacity reduction when the IP information of the ports used by the virtual machines exists;
a third capacity reduction judging unit, configured to, when the IP addresses of all virtual machine ports in the current subnet are included in the network segment after capacity reduction, judge, according to the IP address of the virtual machine port and the subnet mask bit, whether the network segment after the current subnet capacity reduction is repeated with an existing subnet network segment in the current virtualization platform, if so, not perform capacity reduction on the current subnet network segment, and if not, start the capacity reduction unit;
and the capacity reduction unit is used for packaging the parameters of the subnet capacity reduction interface when the network segment subjected to capacity reduction of the current subnet is not repeated with the existing subnet network segment in the current virtualization platform, calling the subnet capacity reduction interface of the openstack platform and carrying out capacity reduction on the current subnet network segment.
Optionally, the capacity reduction module further includes:
and the IP address reconfiguration unit is used for reconfiguring the IP addresses aiming at the virtual machine ports which are not in the network segment after the reduction when the IP addresses of all the virtual machine ports in the current subnet are not in the network segment after the reduction until the IP addresses of all the virtual machine ports in the current subnet are in the network segment after the reduction.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the utility model provides a subnet network resource management method based on virtualization platform, the method is based on the new openstack interface of virtualization platform extension at first, expand subnet dilatation interface and subnet contraction capacity interface, then, acquire subnet network resource management command and subnet attribute information, finally, carry out corresponding operation according to different commands, if it is the dilatation command, expand the subnet network section according to subnet attribute information, if it is the contraction capacity command, contract the subnet network section according to subnet attribute information. In the embodiment, a new openstack interface is expanded in the existing virtualization platform, and a subnet capacity expansion interface and a subnet capacity reduction interface are added, so that dynamic change of the subnet net can be effectively supported, and reasonable utilization of subnet net resources of the virtualization platform is realized. By carrying out capacity expansion on the sub-network segments, the problem of insufficient available IP resources can be effectively solved, by carrying out capacity reduction on the sub-network segments, the waste of IP resources can be avoided, and the capacity expansion and capacity reduction operations can realize the re-partition management of the current system network resources, so that the network resource partition is no longer only specified during creation, and the improvement of the flexibility and the expansibility of the system is facilitated.
In the process of capacity expansion and capacity reduction, whether the port IP information and the IP address used by the virtual machine in the virtualization platform exist in the current subnet or not and whether the expanded or reduced subnet is repeated with the existing subnet are judged.
The application also provides a subnet network resource management system based on the virtualization platform. The system mainly comprises: the openstack interface expansion module, the information acquisition module, the capacity expansion module and the capacity reduction module. And expanding a subnet capacity expansion interface and a subnet capacity reduction interface in the virtualization platform through an openstack interface expansion module to provide hardware support for subsequent network resource change. The arrangement of the capacity expansion module and the capacity reduction module can reasonably plan the subnet network segment resources according to different user requirements, supports dynamic network segment change, and is beneficial to improving the flexibility and the expansibility of the whole system.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a subnet network resource management method based on a virtualization platform according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a subnet network resource management system based on a virtualization platform according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For a better understanding of the present application, embodiments of the present application are explained in detail below with reference to the accompanying drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a subnet network resource management method based on a virtualization platform according to an embodiment of the present application. As shown in fig. 1, the subnet network resource management method based on the virtualization platform in this embodiment mainly includes the following processes:
s1: and expanding a new openstack interface based on the virtualization platform.
The new openstack interface comprises: a subnet capacity expansion interface and a subnet capacity reduction interface. The scheme takes the subnet as a unit, and increases a self-defined subnet capacity expansion interface and a subnet capacity reduction interface on the basis of the existing openstack interface. And a foundation is provided for performing corresponding subnet capacity expansion and subnet capacity reduction according to the user requirements. By setting the subnet capacity expansion interface and the subnet capacity reduction interface, the division of the subnet network resources is not limited to the set mode during the creation, and the flexibility of subnet network resource management in the virtualization platform can be effectively improved.
S2: and acquiring a subnet network resource management command and subnet attribute information.
Wherein, the command of managing the subnet network resources comprises: the capacity expansion command and the capacity reduction command, the subnet attribute information includes: subnet ID identification and network segment CIDR.
After the corresponding command and the subnet attribute information are acquired through step S2, the corresponding capacity expansion or capacity reduction operation is executed according to different commands. Specifically, both cases of steps S3 and S4 are included.
S3: and if the subnet network resource management command is an expansion command, expanding the current subnet network segment according to the subnet attribute information.
Specifically, step S3 includes the following processes:
s31: and judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet.
If there is port IP information used by the virtual machine, step S32 is executed: and judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded subnet section or not.
If the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded network segment, step S33 is executed: and judging whether the network segment of the expanded current subnet is repeated with the existing subnet network segment in the current virtualization platform according to the IP address of the virtual machine port and the subnet mask bit.
Through steps S31-S33, the IP information of the current subnet, the inclusion relation between the IP address and the expanded subnet section and the relation between the current subnet section and the existing subnet section are respectively judged, and the pre-check of the existing subnet port and the subnet network section is added to the subnet, so that the original virtual machine port and the subnet network section are not influenced after the subnet network section is expanded, and the stability of the virtualization platform is improved.
If the expanded subnet section of the current subnet is repeated with the existing subnet section of the current virtualization platform, executing step S34: and the current subnet section is not expanded.
That is, when there is duplication in subnet segments, it means that the current subnet configuration is not suitable for capacity expansion.
If the expanded network segment of the current subnet is not repeated with the existing subnet network segment in the current virtualization platform, executing step S35: and packaging the subnet capacity expansion interface parameters, calling a subnet capacity expansion interface of the openstack platform, and expanding the capacity of the current subnet network segment.
When the subnet sections are not repeated, the current subnet configuration can be expanded, the specific subnet expansion interface adopts an expanseCidr interface, and the expanseCidr interface is a custom interface.
In this embodiment, the corresponding determination is performed according to the IP address of the virtual machine port and the subnet mask bit, so that in the process of expanding the subnet, the operation of subtracting 1 from the subnet mask bit may be specifically adopted. Specifically, according to steps S31-S35, after pre-checking the subnet section, obtaining an original subnet mask bit of the virtual machine port, performing a subtraction operation of 1 on the original subnet mask bit, obtaining an updated subnet mask bit, determining whether the current IP address is repeated with the existing IP address of the virtualization platform according to the updated subnet mask bit, and if the current IP address is repeated with the existing subnet section of the virtualization platform, that is, there is a conflict, prompting that expansion is not allowed; otherwise, if the operation is not repeated, the mask bit continues to perform the operation of subtracting 1, whether the IP address conflicts is calculated and compared again, and the expanseCidr interface is called to complete capacity expansion until the minimum mask bit is obtained.
With continued reference to fig. 1, according to the different subnet network resource management command in step S2, if the subnet network resource management command is a capacity reduction command, step S4 is executed: and carrying out capacity reduction on the current subnet net section according to the subnet attribute information.
Specifically, the process of the capacity reduction operation is as follows:
s41: and judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet.
If there is port IP information used by the virtual machine, step S42 is executed: and judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the reduction.
If the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the reduction, step S43 is executed: and judging whether the network segment subjected to the reduction of the current subnet is repeated with the existing subnet network segment in the current virtualization platform or not according to the IP address of the virtual machine port and the subnet mask bit.
If the network segment after the current subnet reduction is repeated with the existing subnet segment in the current virtualization platform, executing step S44: and not carrying out capacity reduction on the current subnet section.
If the network segment after the current subnet reduction is not repeated with the existing subnet segment in the current virtualization platform, execute step S45: and packaging the subnet capacity reduction interface parameters, calling a subnet capacity reduction interface of the openstack platform, and performing capacity reduction on the current subnet network segment.
In this embodiment, the subnet reduction interface is a shrinkageCidr interface, and the shrinkageCidr interface is a custom interface.
Corresponding to the expansion operation, in this embodiment, the corresponding determination is performed according to the IP address of the virtual machine port and the subnet mask bit, so that in the process of implementing subnet capacity reduction, the operation of adding 1 to the subnet mask bit may be specifically adopted. Specifically, according to steps S41-S45, after pre-checking the subnet section, obtaining an original subnet mask bit of the virtual machine port, performing a plus 1 operation on the original subnet mask bit, obtaining an updated subnet mask bit, determining whether the current IP address is repeated with the existing IP address of the virtualization platform according to the updated subnet mask bit, and if the current IP address is repeated with the existing subnet section of the virtualization platform, that is, there is a conflict, prompting that capacity reduction is not allowed; otherwise, if the operation is not repeated, the mask bit continues to perform the operation of subtracting and adding 1, whether the IP address conflicts is calculated and compared again, and the shrinkageCidr interface is called to complete the capacity reduction until the minimum and maximum mask bit is obtained.
Further, the method for performing capacity reduction on the current subnet section in this embodiment further includes step S46: and if the IP addresses of all the virtual machine ports in the current subnet are not contained in the network segment after the reduction, reconfiguring the IP addresses aiming at the virtual machine ports which are not in the network segment after the reduction.
Returning to step S42, it is determined again whether the IP addresses of all the virtual machine ports in the current subnet are included in the scaled network segment until the IP addresses of all the virtual machine ports in the current subnet are included in the scaled network segment.
As can be seen from step S46, in this embodiment, by supporting the virtual machine port IP reconfiguration, the reliability and scalability of network segment division can be further improved.
Example two
Referring to fig. 1 on the basis of the embodiment shown in fig. 1, fig. 2 is a schematic structural diagram of a subnet network resource management system based on a virtualization platform according to an embodiment of the present application. As shown in fig. 2, the subnet resource management system based on the virtualization platform in this embodiment mainly includes: the openstack interface expansion module, the information acquisition module, the capacity expansion module and the capacity reduction module.
Wherein, openstack interface extension module for at the new openstack interface of virtualization platform extension, new openstack interface includes: a subnet capacity expansion interface and a subnet capacity reduction interface. The information acquisition module is used for acquiring a subnet network resource management command and subnet attribute information, wherein the subnet network resource management command comprises: the capacity expansion command and the capacity reduction command, the subnet attribute information includes: subnet ID identification and network segment CIDR. And the capacity expansion module is used for expanding the capacity of the current subnet network segment according to the subnet attribute information when the subnet network resource management command is a capacity expansion command. And the capacity reduction module is used for carrying out capacity reduction on the current subnet section according to the subnet attribute information when the subnet network resource management command is a capacity reduction command.
Further, the capacity expansion module includes: the device comprises a first capacity expansion judging unit, a second capacity expansion judging unit, a third capacity expansion judging unit and a capacity expansion unit. The first capacity expansion judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet or not; the second capacity expansion judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the expanded subnet when the IP information of the ports used by the virtual machines exists; a third capacity expansion judging unit, configured to judge, when the IP addresses of all virtual machine ports in the current subnet are included in the expanded network segment, whether the network segment after the current subnet is expanded has duplication with an existing subnet network segment in the current virtualization platform according to the IP address of the virtual machine port and the subnet mask bit, if so, not expanding the current subnet network segment, and if not, starting the capacity expansion unit; and the expansion unit is used for encapsulating the expansion interface parameters of the subnet and calling the subnet expansion interface of the openstack platform to expand the current subnet network segment when the current subnet expanded network segment is not repeated with the existing subnet network segment in the current virtualization platform.
The capacity reduction module comprises: the device comprises a first capacity reduction judging unit, a second capacity reduction judging unit, a third capacity reduction judging unit and a capacity reduction unit. The first capacity reduction judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet; the second capacity reduction judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the network segment after capacity reduction when the IP information of the ports used by the virtual machines exists; a third capacity reduction judging unit, configured to, when the IP addresses of all virtual machine ports in the current subnet are included in the network segment after capacity reduction, judge, according to the IP address of the virtual machine port and the subnet mask bit, whether the network segment after the current subnet capacity reduction is repeated with an existing subnet network segment in the current virtualization platform, if so, not perform capacity reduction on the current subnet network segment, and if not, start the capacity reduction unit; and the capacity reducing unit is used for packaging the parameters of the subnet capacity reducing interface when the network segment subjected to capacity reduction of the current subnet is not repeated with the existing subnet network segment in the current virtualization platform, calling the subnet capacity reducing interface of the openstack platform and carrying out capacity reduction on the current subnet network segment.
Further, the capacity reduction module of this embodiment further includes an IP address reconfiguration unit, configured to, when the IP addresses of all the virtual machine ports in the current subnet are not included in the capacity reduced network segment, reconfigure the IP addresses for the virtual machine ports that are not in the capacity reduced network segment until the IP addresses of all the virtual machine ports in the current subnet are included in the capacity reduced network segment.
In this embodiment, the working principle and the working method of the subnet network resource management system based on the virtualization platform have been explained in detail in the embodiment shown in fig. 1, and the two embodiments may refer to each other, which is not described herein again.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A subnet network resource management method based on a virtualization platform is characterized by comprising the following steps:
extending a new openstack interface based on a virtualization platform, the new openstack interface comprising: a subnet capacity expansion interface and a subnet capacity reduction interface;
acquiring a subnet network resource management command and subnet attribute information, wherein the subnet network resource management command comprises: the capacity expansion command and the capacity reduction command, wherein the subnet attribute information comprises: subnet ID identification and network segment CIDR;
if the subnet network resource management command is an expansion command, expanding the current subnet network segment according to the subnet attribute information;
and if the subnet network resource management command is a capacity reduction command, carrying out capacity reduction on the current subnet network segment according to the subnet attribute information.
2. The subnet network resource management method based on the virtualization platform as recited in claim 1, wherein the method for expanding the current subnet network segment according to the subnet attribute information comprises:
judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
if the port IP information used by the virtual machine exists, judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded network segment;
if the IP addresses of all the virtual machine ports in the current subnet are contained in the expanded subnet section, judging whether the current subnet section expanded by the expansion is repeated with the existing subnet section in the current virtualization platform according to the IP addresses of the virtual machine ports and the subnet mask bits;
if the subnet is repeated, the current subnet network segment is not expanded;
if the subnet expansion interface parameters are not repeated, the subnet expansion interface parameters are packaged, and the subnet expansion interface of the openstack platform is called to expand the current subnet network segment.
3. The subnet network resource management method based on the virtualization platform as claimed in claim 1, wherein the method for shrinking the current subnet section according to the subnet attribute information comprises:
judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
if the port IP information used by the virtual machine exists, judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction;
if the IP addresses of all virtual machine ports in the current subnet are contained in the network segment after the capacity reduction, judging whether the network segment after the capacity reduction of the current subnet is repeated with the existing subnet network segment in the current virtualization platform according to the IP addresses of the virtual machine ports and the subnet mask bits;
if the subnet is repeated, the current subnet net section is not subjected to capacity reduction;
if the subnet is not repeated, the subnet capacity reduction interface parameters are packaged, a subnet capacity reduction interface of the openstack platform is called, and the capacity reduction is carried out on the current subnet network segment.
4. The subnet network resource management method based on virtualization platform of claim 3, wherein the method further comprises:
if the IP addresses of all the virtual machine ports in the current subnet are not contained in the network segment after the capacity reduction, the IP addresses are reconfigured aiming at the virtual machine ports not in the network segment after the capacity reduction;
and judging whether the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction again until the IP addresses of all the virtual machine ports in the current subnet are contained in the network segment after the capacity reduction.
5. A subnet network resource management system based on a virtualization platform, the system comprising:
the openstack interface expansion module is used for expanding a new openstack interface on a virtualization platform, and the new openstack interface includes: a subnet capacity expansion interface and a subnet capacity reduction interface;
an information obtaining module, configured to obtain a subnet network resource management command and subnet attribute information, where the subnet network resource management command includes: the capacity expansion command and the capacity reduction command, wherein the subnet attribute information comprises: subnet ID identification and network segment CIDR;
the capacity expansion module is used for expanding the capacity of the current subnet network segment according to the subnet attribute information when the subnet network resource management command is a capacity expansion command;
and the capacity reduction module is used for carrying out capacity reduction on the current subnet section according to the subnet attribute information when the subnet network resource management command is a capacity reduction command.
6. The system of claim 5, wherein the capacity expansion module comprises:
the first capacity expansion judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
the second capacity expansion judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the expanded subnet when the IP information of the ports used by the virtual machines exists;
a third capacity expansion judging unit, configured to judge, when the IP addresses of all virtual machine ports in the current subnet are included in the expanded network segment, whether the network segment after the current subnet is expanded has duplication with an existing subnet network segment in the current virtualization platform according to the IP address of the virtual machine port and the subnet mask bit, if so, not expanding the current subnet network segment, and if not, starting the capacity expansion unit;
and the expansion unit is used for encapsulating the expansion interface parameters of the subnet when the current subnet expanded network segment is not repeated with the existing subnet network segment in the current virtualization platform, calling the subnet expansion interface of the openstack platform and expanding the current subnet network segment.
7. The subnet network resource management system based on virtualization platform of claim 5, wherein the capacity reduction module comprises:
the first capacity reduction judging unit is used for judging whether the port IP information used by the virtual machine in the virtualization platform exists in the current subnet;
the second capacity reduction judging unit is used for judging whether the IP addresses of all virtual machine ports in the current subnet are contained in the network segment after capacity reduction when the IP information of the ports used by the virtual machines exists;
a third capacity reduction judging unit, configured to, when the IP addresses of all virtual machine ports in the current subnet are included in the network segment after capacity reduction, judge, according to the IP address of the virtual machine port and the subnet mask bit, whether the network segment after the current subnet capacity reduction is repeated with an existing subnet network segment in the current virtualization platform, if so, not perform capacity reduction on the current subnet network segment, and if not, start the capacity reduction unit;
and the capacity reduction unit is used for packaging the parameters of the subnet capacity reduction interface when the network segment subjected to capacity reduction of the current subnet is not repeated with the existing subnet network segment in the current virtualization platform, calling the subnet capacity reduction interface of the openstack platform and carrying out capacity reduction on the current subnet network segment.
8. The system of claim 7, wherein the capacity reduction module further comprises:
and the IP address reconfiguration unit is used for reconfiguring the IP addresses aiming at the virtual machine ports which are not in the network segment after the reduction when the IP addresses of all the virtual machine ports in the current subnet are not in the network segment after the reduction until the IP addresses of all the virtual machine ports in the current subnet are in the network segment after the reduction.
CN202010952308.1A 2020-09-11 2020-09-11 Subnet network resource management method and system based on virtualization platform Active CN112291078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010952308.1A CN112291078B (en) 2020-09-11 2020-09-11 Subnet network resource management method and system based on virtualization platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010952308.1A CN112291078B (en) 2020-09-11 2020-09-11 Subnet network resource management method and system based on virtualization platform

Publications (2)

Publication Number Publication Date
CN112291078A true CN112291078A (en) 2021-01-29
CN112291078B CN112291078B (en) 2022-12-27

Family

ID=74419877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010952308.1A Active CN112291078B (en) 2020-09-11 2020-09-11 Subnet network resource management method and system based on virtualization platform

Country Status (1)

Country Link
CN (1) CN112291078B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588917A (en) * 2004-09-30 2005-03-02 西安西电捷通无线网络通信有限公司 Method for solving net section conflict in flexible IP network technology system
WO2016058318A1 (en) * 2014-10-17 2016-04-21 中兴通讯股份有限公司 Elastic virtual machine (vm) resource scaling method, apparatus and system
CN108255497A (en) * 2018-01-12 2018-07-06 新华三大数据技术有限公司 The dispositions method and device of a kind of application
CN108287746A (en) * 2017-01-09 2018-07-17 大唐移动通信设备有限公司 It is a kind of to the virtual resource dilatation of EPC network elements or the method and device of capacity reducing
CN109302302A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Service scalable method, system and the computer readable storage medium of network element

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588917A (en) * 2004-09-30 2005-03-02 西安西电捷通无线网络通信有限公司 Method for solving net section conflict in flexible IP network technology system
WO2016058318A1 (en) * 2014-10-17 2016-04-21 中兴通讯股份有限公司 Elastic virtual machine (vm) resource scaling method, apparatus and system
CN108287746A (en) * 2017-01-09 2018-07-17 大唐移动通信设备有限公司 It is a kind of to the virtual resource dilatation of EPC network elements or the method and device of capacity reducing
CN109302302A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Service scalable method, system and the computer readable storage medium of network element
CN108255497A (en) * 2018-01-12 2018-07-06 新华三大数据技术有限公司 The dispositions method and device of a kind of application

Also Published As

Publication number Publication date
CN112291078B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN103607430B (en) A kind of method and system of network processes and the network control center
CN108924268B (en) Container cloud service system and pod creation method and device
EP3373518B1 (en) Service configuration method and device for network service
US20170180456A1 (en) Method, device, and system for controlling network device auto-provisioning
US11394607B2 (en) Method and system for network configuration
CN107005586B (en) Method and device for managing virtual network function
CN111371579A (en) Cloud platform deployment method, device, server and storage medium
CN111527726A (en) Network service management method, related device and system
CN111064649A (en) Method and device for realizing binding of layered ports, control equipment and storage medium
CN110674095B (en) CTDB cluster expansion method, device and equipment and readable storage medium
CN109284140A (en) Configuration method and relevant device
CN113472575B (en) Deployment method and device of open virtual network
CN112291097A (en) Virtual network topology generation method and device
CN107645402A (en) A kind of route management method and device
CN112468332A (en) Intelligent special line service automatic opening method and device
CN115150327A (en) Interface setting method, device, equipment and medium
CN112291078B (en) Subnet network resource management method and system based on virtualization platform
CN102377589B (en) Right management control method and terminal
CN116095145B (en) Data control method and system of VPC cluster
CN103684838B (en) A method, an apparatus, a system for configuring a network strategy of a virtual machine
CN107017998B (en) Method and system for implementing CGN flexible backup
CN107294746B (en) Method and equipment for deploying service
CN102291313A (en) Method, device and equipment for finding virtual router redundancy protocol (VRRP) network topology
CN113992721B (en) Intelligent terminal control method, system, equipment and storage medium
CN111988446B (en) Message processing method and device, electronic equipment and storage medium

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