CN109729182B - Network address allocation method and system of virtual network function and VNFM - Google Patents

Network address allocation method and system of virtual network function and VNFM Download PDF

Info

Publication number
CN109729182B
CN109729182B CN201711039857.4A CN201711039857A CN109729182B CN 109729182 B CN109729182 B CN 109729182B CN 201711039857 A CN201711039857 A CN 201711039857A CN 109729182 B CN109729182 B CN 109729182B
Authority
CN
China
Prior art keywords
network
virtual machine
vnfm
addresses
cards
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
CN201711039857.4A
Other languages
Chinese (zh)
Other versions
CN109729182A (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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201711039857.4A priority Critical patent/CN109729182B/en
Publication of CN109729182A publication Critical patent/CN109729182A/en
Application granted granted Critical
Publication of CN109729182B publication Critical patent/CN109729182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure discloses a network address allocation method and system of a virtual network function and a VNFM, and relates to the field of data communication. The method comprises the following steps: the VNFM sends a network address pool application request to a DHCP server; the VNFM receives a network address pool allocated by the DHCP server; and the VNFM allocates network addresses to the network cards of the active virtual machines according to the number of the network addresses in the network address pool and the number of the network cards of the active virtual machines. According to the method and the device, a plurality of network addresses are applied for the network card of the virtual machine in the virtual network function in advance, and then the network addresses are equally distributed to the network cards according to the load balancing principle, so that the flexibility of network address distribution can be improved.

Description

Network address allocation method and system of virtual network function and VNFM
Technical Field
The present disclosure relates to the field of data communications, and in particular, to a method and a system for allocating Network addresses of virtual Network functions, and a VNFM (virtual Network Function Manager).
Background
In the process of advancing the implementation of network reconfiguration, NFV technology has been gradually introduced into the existing network. However, in the deployment process of the virtual network functional network element, it is found that the implementation details of each manufacturer are greatly different, and an ideal elastic expansion effect cannot be achieved. In particular to the expansion and contraction of a virtual machine for network address allocation, which generally cannot be automatically implemented without the intervention of manual configuration.
Disclosure of Invention
One technical problem to be solved by the present disclosure is to provide a network address allocation method, system and VNFM for a virtual network function, which can improve flexibility of network address allocation.
According to an aspect of the present disclosure, a method for allocating network addresses of a virtual network function is provided, including: the method comprises the steps that a VNFM sends a network address pool application request to a DHCP server; the VNFM receives a network address pool allocated by the DHCP server; and the VNFM allocates network addresses to the network cards of the active virtual machines according to the number of the network addresses in the network address pool and the number of the network cards of the active virtual machines.
Optionally, the method further comprises: the method comprises the steps that a VNFM receives a request sent by a DHCP server for distributing a network address for a network card of a newly-built virtual machine, wherein the DHCP server inquires a VNFM to which the newly-built virtual machine belongs after receiving a network address application request of the newly-built virtual machine, and sends a request for distributing the network address for the network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs; the VNFM recycles a part of the network addresses allocated to the network cards of the active virtual machines, and allocates the recycled network addresses to the network cards of the newly-built virtual machines.
Optionally, the VNFM determines the total number of network cards of the newly-built virtual machine and the active virtual machine; determining the number of network addresses to be allocated to each virtual machine network card according to the ratio of the total number of the network addresses to the total number of the network cards; and determining and recycling the number of the network addresses allocated to each active virtual machine network card according to the number of the network addresses to be allocated to each virtual machine network card, and distributing the recycled network addresses to the newly-built virtual machine network cards.
Optionally, the method further comprises: after the VNFM determines to deactivate the virtual machines, the network addresses of the network cards of the deactivated virtual machines are recycled; the VNFM allocates the reclaimed network address to the remaining active virtual machine network cards.
Optionally, the VNFM determines a total number of network addresses of the recovered deactivated virtual machine network cards and a total number of remaining active virtual machine network cards; determining the number of network addresses to be allocated to each residual active virtual machine network card according to the ratio of the total number of the recovered network addresses to the total number of the residual active virtual machine network cards; and according to the number of the network addresses which are to be distributed to the network cards of the remaining active virtual machines, uniformly distributing the recovered network addresses to the network cards of the remaining active virtual machines.
According to another part of the present disclosure, there is also provided a virtual network function manager VNFM, comprising: the address pool application request unit is used for sending a network address pool application request to a Dynamic Host Configuration Protocol (DHCP) server; the network address pool receiving unit is used for receiving a network address pool distributed by the DHCP server; and the network address allocation unit is used for allocating network addresses to the network cards of the active virtual machines according to the number of the network addresses in the network address pool and the number of the network cards of the active virtual machines.
Optionally, the VNFM further comprises: the network address request receiving unit is used for receiving a request sent by a DHCP server for distributing a network address for a network card of a newly-built virtual machine, wherein the DHCP server inquires a VNFM to which the newly-built virtual machine belongs after receiving a network address application request of the newly-built virtual machine, and sends a request for distributing the network address for the network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs; the network address recovery unit is used for recovering a part of the network addresses distributed to the network cards of the active virtual machines; and the network address allocation unit is used for allocating the recovered network address to the newly-built virtual machine network card.
Optionally, the network address recycling unit is configured to determine the total number of network cards of the newly-built virtual machine and the active virtual machines, determine the number of network addresses that each virtual machine network card should allocate according to a ratio of the total number of network addresses to the total number of network cards, and determine to recycle the number of network addresses that each virtual machine network card has allocated to each active virtual machine network card according to the number of network addresses that each virtual machine network card should allocate.
Optionally, the VNFM further comprises: the network address recovery unit is used for recovering the network address of each deactivated virtual machine network card after the deactivated virtual machine is determined; and the network address allocation unit is used for allocating the recycled network addresses to the network cards of the remaining active virtual machines.
Optionally, the network address allocation unit is configured to determine a total number of network addresses of the recovered deactivated virtual machine network cards and a total number of remaining active virtual machine network cards, determine a number of network addresses to be allocated to each remaining active virtual machine network card according to a ratio of the total number of the recovered network addresses to the total number of the remaining active virtual machine network cards, and evenly allocate the recovered network addresses to the remaining active virtual machine network cards according to the number of network addresses to be allocated to the remaining active virtual machine network cards.
According to another part of the disclosure, a network address allocation system of a virtual network function is also provided, which includes a dynamic host configuration protocol DHCP server and the above-mentioned virtual network function manager VNFM.
According to another part of the present disclosure, there is also provided a virtual network function manager VNFM, comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method as described above based on instructions stored in the memory.
According to another part of the disclosure, a computer-readable storage medium is also proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of the above-described method.
According to the method and the device, a plurality of network addresses are applied for the network card of the virtual machine in the virtual network function in advance, and then the network addresses are equally distributed to the network cards according to the load balancing principle, so that the flexibility of network address distribution can be improved.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a flowchart illustrating an embodiment of a network address allocation method for a virtual network function.
Fig. 2 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
Fig. 3 is a flowchart illustrating a network address allocation method of a virtual network function according to still another embodiment.
Fig. 4 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
Fig. 5 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
Fig. 6 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
Fig. 7 is a schematic structural diagram of an embodiment of the VNFM of the present disclosure.
Fig. 8 is a schematic structural diagram of another embodiment of the VNFM of the present disclosure.
Fig. 9 is a schematic structural diagram of an embodiment of the network address allocation system of the virtual network function according to the present disclosure.
Fig. 10 is a schematic structural diagram of yet another embodiment of the VNFM of the present disclosure.
Fig. 11 is a schematic structural diagram of another embodiment of the VNFM of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
Fig. 1 is a flowchart illustrating an embodiment of a network address allocation method for a virtual network function.
In step 110, the VNFM sends a network address pool application request to a DHCP (Dynamic Host Configuration Protocol) server. In this embodiment, a VNF address pool management function module may be added to the DHCP server, allowing the VNFM to apply for multiple IP addresses in advance for the virtual machine in the VNF.
At step 120, the VNFM receives a network address pool assigned by the DHCP server.
In step 130, the VNFM allocates a network address to each network card of the active virtual machine according to the number of network addresses in the network address pool and the number of network cards of the active virtual machine. For example, if the number of IP addresses is N and the number of active virtual machine network cards is M, the number of network addresses allocated to each active virtual machine network card is N/M, where an active virtual machine refers to a virtual machine that interacts with the outside.
In the embodiment, a plurality of network addresses are applied for the network card of the virtual machine in the virtual network function in advance, and then the network addresses are equally distributed to the network cards according to the load balancing principle, so that the flexibility of network address distribution can be improved.
Fig. 2 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
In step 210, the VNFM applies for multiple IP addresses from the DHCP server.
At step 220, the VNFM receives a plurality of IP addresses sent by the DHCP server.
In step 230, the number of IP addresses to be allocated to each active virtual machine network card is determined according to the load balancing requirement, where one active virtual machine network card may configure multiple IP addresses, in this embodiment, if there are an active virtual machine 1 and an active virtual machine 2, where the active virtual machine 1 has two network cards, the active virtual machine 2 has three network cards, and the VNFM receives 10 IP addresses sent by the DHCP server, then each active virtual machine network card may configure 2 IP addresses.
In step 240, the VNFM allocates IP addresses to the network cards of the active virtual machine 1 and the active virtual machine 2, wherein all the IP addresses are always in an active state, the externally active IP addresses are issued, and the IP addresses are considered to be active as long as a data packet comes back.
In the embodiment, a plurality of IP addresses are applied for the network cards of the active virtual machines 1 and 2 in advance, and then the IP addresses are equally distributed to the network cards according to the load balancing principle, so that the flexibility of IP address distribution can be improved.
Fig. 3 is a flowchart illustrating a network address allocation method of a virtual network function according to still another embodiment.
In step 310, the VNFM receives a request sent by the DHCP server to allocate a network address for the network card of the newly-built virtual machine. After receiving the network address application request of the newly-built virtual machine, the DHCP server inquires the VNFM to which the newly-built virtual machine belongs and sends a request for allocating a network address for a network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs.
At step 320, the VNFM reclaims a portion of the network addresses that have been assigned to each active virtual machine network card. The VNFM firstly determines the total number of network cards of the newly-built virtual machines and the active virtual machines, then determines the number of network addresses which are to be allocated to each virtual machine network card according to the ratio of the total number of the network addresses to the total number of the network cards, and determines and recycles the number of the network addresses which are allocated to each active virtual machine network card according to the number of the network addresses which are to be allocated to each virtual machine network card.
In step 330, the VNFM assigns the recycled network address to the newly created virtual machine network card.
In this embodiment, in the virtual machine capacity expansion process, the VNFM first recovers the network address of a part of the active virtual machine network card and reallocates the network address to the newly-built virtual machine network card, so that the problems of network address management and allocation in the automatic capacity expansion process of the virtual machine can be solved.
Fig. 4 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
At step 410, after the creation of the new virtual machine 3 is completed, an IP address is applied to DHCP.
In step 420, the DHCP server queries the VNFM to which the new virtual machine 3 belongs, and sends an IP address assignment request to the VNFM to which the new virtual machine 3 belongs.
At step 430, the VNFM determines the number of IP addresses that need to be received back to each active virtual machine network. For example, the active virtual machine 1 has two network cards, the active virtual machine 2 has two network cards, each network card has 5 IP addresses, and the newly-built virtual machine 3 has 1 network card, and then through calculation, each network card should be allocated with 4 IP addresses, and it is necessary to separately recover 1 IP address to the network card of the active virtual machine 1 and the network card of the active virtual machine 2.
In step 440, the VNFM reclaims IP addresses to the network card of the active virtual machine 1 and the network card of the active virtual machine 2, respectively.
In step 450, the VNFM issues the recovered IP address to the network card of the newly-built virtual machine 3.
In step 460, the newly created virtual machine 3 sends an IP address advertisement to the routing device. Namely, the newly-built virtual machine 3 sends a gratuitous ARP (Address Resolution Protocol) to the routing device to refresh the routing table. Since the original IP addresses are all active addresses, the traffic flow can be automatically dragged to the new virtual machine.
In this embodiment, after the new virtual machine is created, the DHCP server does not directly allocate an address to the new virtual machine, but recovers the IP address of the active virtual machine network card through negotiation with the VNFM and allocates the IP address to the new virtual machine network card, so that the allocation of the IP address in the capacity expansion process of the virtual machine is more flexible, and the load processing flow required for updating the IP address in the capacity expansion process is simplified.
Fig. 5 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
In step 510, the VNFM recycles the network address of each deactivated virtual machine network card after determining to deactivate the virtual machine.
At step 520, the VNFM assigns the reclaimed network address to the remaining active virtual machine network card. The VNFM determines the total number of the network addresses of the recovered deactivated virtual machine network cards and the total number of the remaining active virtual machine network cards, determines the number of the network addresses which are to be distributed to each remaining active virtual machine network card according to the ratio of the total number of the recovered network addresses to the total number of the remaining active virtual machine network cards, and distributes the recovered network addresses to the remaining active virtual machine network cards according to the number of the network addresses which are to be distributed to the remaining active virtual machine network cards. For example, the total number of the recycled network addresses is N1, and the number of the remaining active virtual machine network cards is M1, so that the number of the network addresses to be allocated to each remaining active virtual machine network card is N1/M1.
In the embodiment, in the virtual machine capacity reduction process, the VNFM first recovers the network address of the deactivated virtual machine network card and reallocates the network address to the remaining active virtual machine network card, so that the problems of network address management and allocation of the virtual machine in the automatic capacity reduction process can be solved.
Fig. 6 is a flowchart illustrating a network address allocation method of a virtual network function according to another embodiment.
In step 610, the VNFM recycles the IP address of the network card of the deactivated virtual machine 3 after determining that the virtual machine 3 is deactivated. For example, a deactivated virtual machine 3 network card has 4 IP addresses.
In step 620, the VNFM distributes the recycled IP addresses to the network cards of the active virtual machine 1 and the active virtual machine 2. For example, if 4 network cards are shared by active virtual machine 1 and active virtual machine 2, 1 IP address is assigned to each network card.
In step 630, after obtaining the new IP address, the active virtual machine 1 and the active virtual machine 2 actively notify the routing device, and the traffic flow is automatically pulled to the active virtual machine.
In this embodiment, in the virtual machine capacity reduction process, the VNFM first recovers the network address of the deactivated virtual machine network card and reallocates the network address to the remaining active virtual machine network card, so that the allocation of the IP address in the capacity reduction process of the virtual machine is more flexible, and the load processing flow required for updating the IP address in the capacity reduction process is simplified.
Fig. 7 is a schematic structural diagram of an embodiment of the VNFM of the present disclosure. The VNFM includes an address pool application request unit 710, a network address pool receiving unit 720, and a network address allocation unit 730, where:
the address pool application request unit 710 is configured to send a network address pool application request to the DHCP server. In this embodiment, a VNF address pool management function module may be added to the DHCP server, allowing the VNFM to apply for multiple IP addresses in advance for the virtual machine in the VNF.
The network address pool receiving unit 720 is configured to receive a network address pool allocated by the DHCP server.
The network address allocation unit 730 is configured to allocate a network address to each network card of the active virtual machine according to the number of network addresses in the network address pool and the number of network cards of the active virtual machine. The network address allocation unit 730 determines the number of IP addresses to be allocated to each active virtual machine network card according to the load balancing requirement. For example, if the number of IP addresses is N and the number of active virtual machine network cards is M, the number of network addresses allocated to each active virtual machine network card is N/M, where an active virtual machine refers to a virtual machine that interacts with the outside.
In this embodiment, flexible allocation of network addresses can be achieved by applying for a plurality of network addresses in advance for the network card of the virtual machine in the virtual network function, and then equally dividing the network addresses to the network cards according to the load balancing principle.
Fig. 8 is a schematic structural diagram of another embodiment of the VNFM of the present disclosure. The VNFM includes an address pool application request unit 810, a network address pool receiving unit 820, a network address allocation unit 830, a network address request receiving unit 840, and a network address recovery unit 850, wherein the address pool application request unit 810 and the network address pool receiving unit 820 are respectively adapted to the address pool application request unit 710 and the network address pool receiving unit 720.
The network address request receiving unit 840 is configured to receive a request sent by the DHCP server to allocate a network address for a network card of a newly-built virtual machine. After receiving the network address application request of the newly-built virtual machine, the DHCP server inquires the VNFM to which the newly-built virtual machine belongs and sends a request for allocating a network address for a network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs.
The network address recycling unit 850 is used to recycle a part of the network addresses allocated to the network cards of the active virtual machines. The network address recycling unit 850 determines the total number of the network cards of the newly-built virtual machines and the active virtual machines, then determines the number of the network addresses to be allocated to each virtual machine network card according to the ratio of the total number of the network addresses to the total number of the network cards, and determines to recycle the number of the network addresses allocated to each active virtual machine network card according to the number of the network addresses to be allocated to each virtual machine network card.
The network address allocation unit 830 is configured to allocate the recycled network address to the newly-built virtual machine network card. And the newly-built virtual machine sends a free ARP to the routing equipment to refresh the routing table. Since the original IP addresses are all active addresses, the traffic flow can be automatically dragged to the new virtual machine.
In this embodiment, in the virtual machine capacity expansion process, the VNFM first recovers the network address of a part of the active virtual machine network card and reallocates the network address to the newly-built virtual machine network card, so that the problems of network address management and allocation in the automatic capacity expansion process of the virtual machine can be solved.
In another embodiment of the present disclosure, the network address recycling unit 850 is configured to recycle the network address of each deactivated virtual machine network card after determining that the virtual machine is deactivated.
The network address allocation unit 830 is configured to allocate the recycled network address to the remaining active virtual machine network card. The network address allocation unit 830 determines the total number of the network addresses of the recovered deactivated virtual machine network cards and the total number of the remaining active virtual machine network cards, determines the number of the network addresses to be allocated to each remaining active virtual machine network card according to the ratio of the total number of the recovered network addresses to the total number of the remaining active virtual machine network cards, and distributes the recovered network addresses to the remaining active virtual machine network cards according to the number of the network addresses to be allocated to the remaining active virtual machine network cards. For example, the total number of the recycled network addresses is N1, and the number of the remaining active virtual machine network cards is M1, so that the number of the network addresses to be allocated to each remaining active virtual machine network card is N1/M1.
In the embodiment, in the virtual machine capacity reduction process, the VNFM first recovers the network address of the deactivated virtual machine network card and reallocates the network address to the remaining active virtual machine network card, so that the problems of network address management and allocation of the virtual machine in the automatic capacity reduction process can be solved.
Fig. 9 is a schematic structural diagram of an embodiment of the network address allocation system of the virtual network function according to the present disclosure. The system comprises a DHCP server 910 and a VNFM920, wherein a VNF address pool management function module can be added into the DHCP server 910, and the VNFM920 is allowed to apply for a plurality of IP addresses for virtual machines in the VNF in advance. In addition, after the new virtual machine is created, the DHCP server 910 does not directly allocate an IP address to the network card of the new virtual machine, but queries the VNFM920 to which the new virtual machine belongs, and sends a request for allocating a network address to the network card of the new virtual machine to the VNFM920 to which the new virtual machine belongs. The VNFM920 has been described in detail in the above embodiments and will not be further described here.
In the embodiment, a VNF address pool management function module is added to a DHCP server, allowing a VNFM to apply for a plurality of IP addresses in advance for virtual machines in the VNF, and allocate the IP addresses to network cards of each active virtual machine, and perform address keep-alive at the same time; in the capacity expansion process, the DHCP server recovers the IP address of the active virtual machine through negotiation with the VNFM, and allocates the IP address to a network card of the newly-built virtual machine; in the capacity reduction process, the VNFM recovers the IP address of the deactivated virtual machine and gives the IP address to the active virtual machine for keeping alive again, so that the elastic expansion of the virtual machine related to the interaction of the VNF external data flow can be improved, and the IP address is more flexibly distributed in the capacity reduction and expansion process of the virtual machine.
Fig. 10 is a schematic structural diagram of yet another embodiment of the VNFM of the present disclosure. The VNFM includes a memory 1010 and a processor 1020. Wherein: the memory 1010 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory 1010 is used to store instructions in the embodiments corresponding to fig. 1-6. The processor 1020, coupled to the memory 1010, may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 1020 is configured to execute instructions stored in a memory.
In one embodiment, the VNFM 1100 includes a memory 1110 and a processor 1120, as also shown in fig. 11. Processor 1120 is coupled to memory 1110 by a BUS 1130. The VNFM 1100 may be coupled to an external storage device 1150 via a storage interface 1140 for use in invoking external data, and may be coupled to a network or another computer system (not shown) via a network interface 1160, which will not be described in detail herein.
In this embodiment, the data instructions are stored in the memory, and then the instructions are processed by the processor, and a plurality of network addresses are applied in advance for the network card of the virtual machine in the virtual network function, so that flexible allocation of the network addresses can be realized.
In another embodiment, a computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the corresponding embodiments of fig. 1-6. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (11)

1. A network address allocation method of a virtual network function includes:
the method comprises the steps that a VNFM sends a network address pool application request to a DHCP server;
the VNFM receives a network address pool allocated by the DHCP server;
the VNFM allocates network addresses to network cards of the active virtual machines according to the number of the network addresses in the network address pool and the number of the network cards of the active virtual machines;
the VNFM receives a request sent by the DHCP server for allocating a network address to a network card of a newly-built virtual machine, wherein the DHCP server inquires the VNFM to which the newly-built virtual machine belongs after receiving a network address application request of the newly-built virtual machine, and sends a request for allocating a network address to the network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs;
and the VNFM recovers a part of the network addresses distributed to the network cards of the active virtual machines and distributes the recovered network addresses to the network cards of the newly-built virtual machines.
2. The method of claim 1, wherein,
the VNFM determines the total number of network cards of the newly-built virtual machine and the active virtual machine;
determining the number of network addresses to be allocated to each virtual machine network card according to the ratio of the total number of the network addresses to the total number of the network cards;
and determining and recycling the number of the network addresses allocated to each active virtual machine network card according to the number of the network addresses to be allocated to each virtual machine network card, and distributing the recycled network addresses to the newly-built virtual machine network cards.
3. The method of claim 1, further comprising:
after the VNFM determines to deactivate the virtual machines, the network addresses of the network cards of the deactivated virtual machines are recycled;
and the VNFM allocates the recycled network address to the network card of the residual active virtual machine.
4. The method of claim 3, wherein,
the VNFM determines the total number of the network addresses of the recovered deactivated virtual machine network cards and the total number of the remaining active virtual machine network cards;
determining the number of network addresses to be allocated to each residual active virtual machine network card according to the ratio of the total number of the recovered network addresses to the total number of the residual active virtual machine network cards;
and according to the number of the network addresses which are to be distributed to the network cards of the remaining active virtual machines, uniformly distributing the recovered network addresses to the network cards of the remaining active virtual machines.
5. A virtual network function manager, VNFM, comprising:
the address pool application request unit is used for sending a network address pool application request to a Dynamic Host Configuration Protocol (DHCP) server;
a network address pool receiving unit, configured to receive a network address pool allocated by the DHCP server;
the network address allocation unit is used for allocating network addresses to the network cards of the active virtual machines according to the number of the network addresses in the network address pool and the number of the network cards of the active virtual machines;
the network address request receiving unit is used for receiving a request sent by the DHCP server for distributing a network address for a network card of a newly-built virtual machine, wherein the DHCP server inquires a VNFM to which the newly-built virtual machine belongs after receiving a network address application request of the newly-built virtual machine, and sends a request for distributing a network address for the network card of the newly-built virtual machine to the VNFM to which the newly-built virtual machine belongs;
the network address recovery unit is used for recovering a part of the network addresses distributed to the network cards of the active virtual machines;
and the network address allocation unit is used for allocating the recovered network address to the newly-built virtual machine network card.
6. The VNFM of claim 5, wherein,
the network address recovery unit is used for determining the total number of network cards of the newly-built virtual machines and the active virtual machines, determining the number of network addresses to be allocated to each virtual machine network card according to the ratio of the total number of the network addresses to the total number of the network cards, and determining and recovering the number of the network addresses allocated to each active virtual machine network card according to the number of the network addresses to be allocated to each virtual machine network card.
7. The VNFM of claim 5, further comprising:
the network address recovery unit is used for recovering the network address of each deactivated virtual machine network card after the deactivated virtual machine is determined;
and the network address allocation unit is used for allocating the recovered network addresses to the network cards of the residual active virtual machines.
8. The VNFM of claim 7, wherein,
the network address allocation unit is used for determining the total number of the network addresses of the recovered deactivated virtual machine network cards and the total number of the residual active virtual machine network cards, determining the number of the network addresses to be allocated to each residual active virtual machine network card according to the ratio of the total number of the recovered network addresses to the total number of the residual active virtual machine network cards, and distributing the recovered network addresses to the residual active virtual machine network cards according to the number of the network addresses to be allocated to the residual active virtual machine network cards.
9. A network address allocation system for virtual network functions comprising a dynamic host configuration protocol, DHCP, server and a virtual network function manager, VNFM, according to any of claims 5-8.
10. A virtual network function manager, VNFM, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-4 based on instructions stored in the memory.
11. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 4.
CN201711039857.4A 2017-10-31 2017-10-31 Network address allocation method and system of virtual network function and VNFM Active CN109729182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711039857.4A CN109729182B (en) 2017-10-31 2017-10-31 Network address allocation method and system of virtual network function and VNFM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711039857.4A CN109729182B (en) 2017-10-31 2017-10-31 Network address allocation method and system of virtual network function and VNFM

Publications (2)

Publication Number Publication Date
CN109729182A CN109729182A (en) 2019-05-07
CN109729182B true CN109729182B (en) 2022-01-18

Family

ID=66293067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711039857.4A Active CN109729182B (en) 2017-10-31 2017-10-31 Network address allocation method and system of virtual network function and VNFM

Country Status (1)

Country Link
CN (1) CN109729182B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212071B (en) * 2019-12-31 2022-04-01 奇安信科技集团股份有限公司 Information processing method and device, electronic device and medium
CN111343731A (en) * 2020-02-19 2020-06-26 北京小米移动软件有限公司 Information processing method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010147929A (en) * 2008-12-19 2010-07-01 Fujitsu Ltd Address allocation method, computer, and program
CN103078965A (en) * 2012-12-25 2013-05-01 曙光云计算技术有限公司 IP (Internet Protocol) address management method of virtual machines
CN103312828A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Method, device and system of MAC and IP address couple configuration of virtual machine
CN105162897A (en) * 2015-09-16 2015-12-16 浪潮集团有限公司 System and method for allocating IP address for virtual machine and network virtual machine
CN105589749A (en) * 2014-12-30 2016-05-18 中国银联股份有限公司 Method and device for allocating network IP resources in cloud computing environment
CN106878480A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of DHCP service process sharing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010147929A (en) * 2008-12-19 2010-07-01 Fujitsu Ltd Address allocation method, computer, and program
CN103312828A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Method, device and system of MAC and IP address couple configuration of virtual machine
CN103078965A (en) * 2012-12-25 2013-05-01 曙光云计算技术有限公司 IP (Internet Protocol) address management method of virtual machines
CN105589749A (en) * 2014-12-30 2016-05-18 中国银联股份有限公司 Method and device for allocating network IP resources in cloud computing environment
CN105162897A (en) * 2015-09-16 2015-12-16 浪潮集团有限公司 System and method for allocating IP address for virtual machine and network virtual machine
CN106878480A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of DHCP service process sharing method and device

Also Published As

Publication number Publication date
CN109729182A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN108924268B (en) Container cloud service system and pod creation method and device
US10819538B2 (en) Method and apparatus for establishing link between virtualized network functions
US10686756B2 (en) Method and apparatus for managing MAC address generation for virtualized environments
CN103797462B (en) A kind of method and apparatus creating virtual machine
CN110221918B (en) Association method, device and system of NS and VNF
US11928493B2 (en) Sharing of FPGA board by multiple virtual machines
CN103078965B (en) The IP address management method of virtual machine
EP3185516A1 (en) Address processing method, related device and system
JP2019509529A5 (en)
US11036535B2 (en) Data storage method and apparatus
US20190205174A1 (en) Enhanced cache memory allocation based on virtual node resources
CN104468568A (en) Virtual machine security isolation method
EP3531280A1 (en) Accelerator loading method and system, and accelerator loading apparatus
CN109729182B (en) Network address allocation method and system of virtual network function and VNFM
CN108933844B (en) Method and equipment for providing DHCP service
CN108829523A (en) Memory source distribution method, device, electronic equipment and readable storage medium storing program for executing
CN103905232A (en) Virtual-machine management system and method
CN110990114A (en) Virtual machine resource allocation method, device, equipment and readable storage medium
CN104506654A (en) Cloud computing system and backup method of dynamic host configuration protocol server
CN106326226A (en) Method and system for starting database service on public cloud
WO2014029239A1 (en) Configuration method and apparatus for deployment policy of virtual machine
CN111327509B (en) Information updating method and device
CN106302861B (en) Address allocation method and device
CN106302075B (en) A kind of method and device creating logical volume
US9417900B2 (en) Method and system for automatic assignment and preservation of network configuration for a virtual machine

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