CN105872130A - Method for distributing IP (Internet Protocol) addresses and cloud management platform - Google Patents
Method for distributing IP (Internet Protocol) addresses and cloud management platform Download PDFInfo
- Publication number
- CN105872130A CN105872130A CN201610424541.6A CN201610424541A CN105872130A CN 105872130 A CN105872130 A CN 105872130A CN 201610424541 A CN201610424541 A CN 201610424541A CN 105872130 A CN105872130 A CN 105872130A
- Authority
- CN
- China
- Prior art keywords
- address
- target
- use state
- cloud environment
- cloud
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5061—Pools of addresses
Abstract
The invention provides a method for distributing IP (Internet Protocol) addresses and a cloud management platform. The method is applied to the cloud management platform, and comprises the following steps of S0, setting an IP management pool in advance, wherein the IP management pool is used for recording at least two IP addresses and a using state corresponding to each IP address; S1, receiving an IP address distribution request order corresponding to a target cloud environment; S2, querying the IP management pool, and determining one target IP address, wherein the using state corresponding to the target IP address is undistributed; S3, updating the using state corresponding to the target IP address to be in a locked state; S4, sending a distribution order, carrying the target IP address, to the target cloud environment, thus binding the target IP address to the target cloud environment. Through the technical scheme of the invention, the situation that the same IP address is distributed to multiple cloud environments can be avoided.
Description
Technical field
The present invention relates to field of computer technology, particularly to a kind of IP (Internet Protocol, network
Between the agreement of interconnection) address distribution method and cloud management platform.
Background technology
Under the background that cloud computing technology is increasingly mature, different service application may operate in dissimilar
Cloud environment in, cloud management platform then needs for the different IP address of different types of cloud environment distribution.
At present, when cloud management platform is multiple cloud environment distribution IP address, mainly deposited by IP stored reservoir
Store up multiple IP address, and record the use state that multiple IP address is the most corresponding, receive corresponding mesh
When marking the IP address assignment request of cloud environment, then distribute one not according to IP stored reservoir to target cloud environment
The target ip address of distribution, so that target cloud environment bound targets IP address;Accordingly, receiving
During the binding success message that target cloud environment feeds back, update the use state of target ip address for distribute.
Visible, in technique scheme, cloud management platform needs receiving tying up of target cloud environment feedback
Just it is updated to distribute by the use state of target ip address when determining success message, same IP may be caused
Address is assigned to multiple cloud environment.
Summary of the invention
Embodiments provide a kind of IP address distribution method and cloud management platform, can avoid same
IP address is assigned to multiple cloud environment.
First aspect, embodiments provides a kind of IP address distribution method, is applied to cloud management and puts down
Platform, including:
S0: pre-set IP stored reservoir, wherein, described IP stored reservoir record at least two IP address and
The use state that each IP address is the most corresponding;
S1: receive the IP address assignment request instruction of corresponding target cloud environment;
S2: inquire about described IP stored reservoir, determines a target ip address, wherein, described Target IP ground
Use state corresponding to location is unallocated;
S3: use state corresponding for target ip address is updated to locking;
S4: send the distribution instruction carrying target ip address to target cloud environment, so that target cloud environment is tied up
Set the goal IP address.
Further, after the described distribution instruction carrying target ip address to target cloud environment transmission,
Also include:
Receiving the binding success message that target cloud environment sends, wherein, described binding success message carries mesh
Mark facility information corresponding to IP address and port information;
It is updated to distribute by use state corresponding for target ip address, and target ip address is corresponding
Facility information and port information increase to described IP stored reservoir.
Further,
Described pre-set IP stored reservoir, including: pre-set database table, wherein, described data base
Table includes at least two data storehouse records, one IP address of each described data-base recording record and current
The use state that IP address is corresponding;
Described use state corresponding for target ip address being updated to locks, including: lock onto target IP ground
The target database record that location is corresponding.
Further,
Described pre-set database table, farther include: utilize in described database table record at least
Two IP addresses build data queue;
Described inquiry described IP stored reservoir, determines a target ip address, wherein, described Target IP ground
The use state of location is unallocated, including:
In described database table, the use state that head of the queue IP address is corresponding is inquired about according to described data queue,
When the use state that current IP address is corresponding is unallocated, current IP address is defined as Target IP ground
Location, and current IP address is moved to the tail of the queue of described data queue.
Further,
Described pre-set IP stored reservoir, farther include: pre-set at least two cloud environment the most right
The interface drive program answered;
The described distribution instruction carrying target ip address to target cloud environment transmission, including: according to target cloud
The distribution that the target interface driver that environment is corresponding carries target ip address to target cloud environment transmission refers to
Order.
Second aspect, embodiments provides a kind of cloud management platform, including:
Module is set, is used for pre-setting IP stored reservoir, wherein, described IP stored reservoir record at least two
The use state of individual IP address and each IP address correspondence respectively;
Command reception module, for receiving the IP address assignment request instruction of corresponding target cloud environment;
Processing module, is used for inquiring about described IP stored reservoir, determines a target ip address, wherein, institute
It is unallocated for stating use state corresponding to target ip address;
State more new module, for being updated to locking by use state corresponding for target ip address;
Information sending module, for sending the distribution instruction carrying target ip address to target cloud environment, with
Make target cloud environment bound targets IP address.
Further, also include:
Information receiving module, for receiving the binding success message that target cloud environment sends, wherein, described
Binding success message carries facility information corresponding to target ip address and port information;
Described state more new module, is further used for being updated to use state corresponding for target ip address
Distribution, and facility information corresponding for target ip address and port information are increased to described IP stored reservoir.
Further,
Described arranging module, be used for pre-setting database table, wherein, described database table includes at least
Two data storehouse records, one IP address of each described data-base recording record and current IP address pair
The use state answered;
Described state more new module, for the target database record that lock onto target IP address is corresponding.
Further,
Described module is set, is further used for utilizing at least two IP address of record in described database table
Build data queue;
Described processing module, for inquiring about head of the queue IP ground according to described data queue in described database table
The use state that location is corresponding, when the use state that current IP address is corresponding is unallocated, by current IP
Address is defined as target ip address, and current IP address moves to the tail of the queue of described data queue.
Further,
Described arranging module, the interface being further used for pre-setting at least two cloud environment corresponding respectively drives
Dynamic program;
Described information sending module, for the target interface driver corresponding according to target cloud environment to mesh
Mark cloud environment sends the distribution instruction carrying target ip address.
Embodiments provide a kind of IP address distribution method and cloud management platform, by managing at IP
Reason pond records at least two IP address and the use state of each IP address correspondence respectively, is receiving
When IP distribution to corresponding target cloud environment is asked, determine that a use state is unappropriated Target IP
Address, sends the distribution instruction carrying target ip address, meanwhile, by Target IP ground to target cloud environment
The use state of location is updated to locking, prevents cloud management center from waiting being bound into of target cloud environment feedback
During merit message, target ip address is assigned to other cloud environments, i.e. avoids same IP address to be divided
The multiple cloud environment of dispensing.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, not
On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of IP address distribution method that one embodiment of the invention provides;
Fig. 2 is the flow chart of the another kind of IP address distribution method that one embodiment of the invention provides;
Fig. 3 is the structure chart of a kind of cloud management platform that one embodiment of the invention provides;
Fig. 4 is the structure chart of the another kind of cloud management platform that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments, based on
Embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of IP address distribution method, it is applied to cloud management
Platform, including:
S0: pre-set IP stored reservoir, wherein, described IP stored reservoir record at least two IP address and
The use state that each IP address is the most corresponding;
S1: receive the IP address assignment request instruction of corresponding target cloud environment;
S2: inquire about described IP stored reservoir, determines a target ip address, wherein, described Target IP ground
Use state corresponding to location is unallocated;
S3: use state corresponding for target ip address is updated to locking;
S4: send the distribution instruction carrying target ip address to target cloud environment, so that target cloud environment is tied up
Set the goal IP address.
In the above embodiment of the present invention, by recording at least two IP address and each in IP stored reservoir
The use state that individual IP address is the most corresponding, when the IP distribution request receiving corresponding target cloud environment,
Determine that a use state is unappropriated target ip address, send to target cloud environment and carry Target IP
The distribution instruction of address, meanwhile, is updated to the use state of target ip address locking, prevents cloud management
Center is during waiting the binding success message of target cloud environment feedback, and target ip address is assigned to other
Cloud environment, i.e. avoids same IP address to be assigned to multiple cloud environment.
Further, for convenience cloud management platform for IP address in its multiple cloud environments managed with
Binding situation between actual physical device is managed concentratedly, in a preferred embodiment of the invention,
After the described distribution instruction carrying target ip address to target cloud environment transmission, also include:
Receiving the binding success message that target cloud environment sends, wherein, described binding success message carries mesh
Mark facility information corresponding to IP address and port information;
It is updated to distribute by use state corresponding for target ip address, and target ip address is corresponding
Facility information and port information increase to described IP stored reservoir.
It should be appreciated that cloud environment refers to carry to miscellaneous service application from virtualized resource pool
For the Internet or the big data environment of the functions such as calculating, storage or virtual machine service, cloud environment is bound
The target ip address hardware corresponding under cloud environment that the process of target ip address, i.e. cloud environment will receive
Equipment and port are bound, and specifically, will be set to corresponding hardware device and end by target ip address
The network address of mouth.
Further, the target ip address in order to realize being locked will not be assigned to other cloud environments, this
Invent in a preferred embodiment, described in pre-set IP stored reservoir, including: pre-set database table,
Wherein, described database table includes at least two data storehouse records, each described data-base recording record
One IP address and use state corresponding to current IP address;
Described use state corresponding for target ip address being updated to locks, including: lock onto target IP ground
The target database record that location is corresponding.
In the above embodiment of the present invention, utilize the data base that database list row lock lock onto target IP address is corresponding
Record, the data-base recording after being locked then will not be distributed other cloud rings of the non-dispensing of process by other IP addresses
Border;It should be appreciated that database table can use state that simultaneously record object IP address is corresponding be
Locking.
Further, in order to realize cloud management platform perform the most next time IP address distribution business time, permissible
Quickly determine that corresponding use state is unappropriated target ip address, and distribute mesh from trend target cloud environment
Mark IP address, in a preferred embodiment of the invention, described in pre-set database table, farther include:
At least two IP address of record in described database table is utilized to build data queue;
Described inquiry described IP stored reservoir, determines a target ip address, wherein, described Target IP ground
The use state of location is unallocated, including:
In described database table, the use state that head of the queue IP address is corresponding is inquired about according to described data queue,
When the use state that current IP address is corresponding is unallocated, current IP address is defined as Target IP ground
Location, and current IP address is moved to the tail of the queue of described data queue.
In the above embodiment of the present invention, when receiving an IP address assignment request instruction, perform once
Query task, in this query task, according to data queue's inquiry database table to determine in data queue
Whether the use state that the IP address of head of the queue is corresponding is to have distributed or locked, and the use state in its correspondence is
When distributing, the IP address of head of the queue is moved to tail of the queue, until this query task inquires a position
When the use state that the target ip address of head of the queue is corresponding is unallocated, this target ip address is moved to
After tail of the queue, terminate this query task;So, can realize correspondence uses state be locking and distributed
IP address arrangement to rearward position in data queue, upper once distribute IP address during,
The inquiry performing fewer number is only needed i.e. to can determine that a corresponding use state is unappropriated target
IP address.
Further, the communication interface that provides to cloud platform due to different cloud environments also differs, in order to
Realize cloud platform all to communicate with multiple cloud environments, in a preferred embodiment of the invention, described pre-
IP stored reservoir is first set, farther includes: the interface pre-setting at least two cloud environment corresponding respectively drives
Dynamic program;
The described distribution instruction carrying target ip address to target cloud environment transmission, including: according to target cloud
The distribution that the target interface driver that environment is corresponding carries target ip address to target cloud environment transmission refers to
Order.
In the above embodiment of the present invention, by defining an interface drive program layer at cloud management platform,
When communicating from different cloud environments, from interface drive program layer, call different interface drive programs
To utilize the cloud environment of the interface drive program docking correspondence called.
For example, when managing platform and communicating with target cloud environment, if target cloud environment is to cloud
The IP operation interface that management platform provides is that a sync cap, i.e. target cloud environment are performing IP binding
To unbind operation be simultaneously operating for operation, IP, and cloud management platform then utilizes the interface drive program of correspondence by cloud
The packet that management platform is formed installs to, in message, be sent by message queue;Contrary, if cloud ring
The IP operation interface that border provides to cloud management platform is an asynchronous interface, then utilize the driver of correspondence
Realize receptor asynchronous event, the packet that cloud management platform is formed is installed in message, message body is solved
Sent by message queue after analysing into the data form of corresponding asynchronous interface.
As in figure 2 it is shown, embodiments provide a kind of IP address distribution method, to pass through data base
As a example by the use state of table record IP address, each IP address correspondence respectively and distribution condition, permissible
Comprise the steps.
Step 201, cloud management platform arranges database table.
Here, database table includes at least two data storehouse records, each data storehouse record record one
IP address and use state corresponding to current IP address, i.e. database table includes IP address field and use
Mode field, the data row record at least two IP address that IP address field is corresponding, use mode field
Record the use state that each IP address is the most corresponding;Use state can include unallocated, distribute
And locking, certainly, in a kind of mode in the cards, IP address pair can be characterized by relevant parameter
The use state answered, such as, characterizes unallocated by parameter 0, and parameter 1 characterizes locking, and parameter 2 characterizes
Distribute.
In the embodiment of the present invention, database table can also record the distribution letter that each IP address is the most corresponding
Breath, specifically, database table can also include subnet fields, device field (DFLD) and peer-port field, wherein,
Subnet mask corresponding to data row record IP address that subnet fields is corresponding, the data row that device field (DFLD) is corresponding
The device numbering that record IP address is corresponding, the port numbers that peer-port field record IP address is corresponding.
Step 202, cloud management platform utilizes at least two IP address of record in database table to build data
Queue.
In the embodiment of the present invention, with multiple cloud environment correspondence Class C IP address of cloud management platform management it is
Example, default subnet mask is 255.255.255.0,255 IP addresses of data base table recording;Accordingly,
Here may utilize 255 IP addresses, carry out arranging to build a data queue according to its ordering relation.
Step 203, cloud management platform arranges the interface drive program that at least two cloud environment is the most corresponding.
Step 204, cloud management platform receives the IP address assignment request instruction of corresponding target cloud environment.
Step 205, cloud management platform inquires about data queue's head of the queue according to data queue in database table
The use state that IP address is corresponding, it is judged that whether this use state is unallocated, when judged result is for being,
Perform step 206, otherwise, perform step 207.
Step 206, cloud management platform determines that the IP address of data queue's head of the queue is target ip address.
Step 207, the IP address of head of the queue in data queue is moved to tail of the queue by cloud management platform.
Step 204, in step 207, when receiving an IP address assignment request instruction, performs one
Secondary query task, in this query task, according to data queue's inquiry database table to determine in data team
Whether the use state lining up first IP address corresponding is to have distributed or locked, in the use state of its correspondence
During for distributing or locking, the IP address of head of the queue is moved to tail of the queue, until this query task is inquired about
To the use state that target ip address being positioned at head of the queue is corresponding be unallocated time, by this Target IP ground
After location moves to tail of the queue, terminate this query task;So, can realize correspondence uses state is locking
And allocated IP address arrangement is to rearward position in data queue, in upper IP address of once distributing
During, it is only necessary to the inquiry performing fewer number i.e. can determine that a corresponding use state is unallocated
Target ip address.
Step 208, the target ip address of record in cloud management platform locking database table.
In the embodiment of the present invention, it is possible to use the data base that database list row lock lock onto target IP address is corresponding
Record, the data-base recording after being locked then will not be distributed other cloud rings of the non-dispensing of process by other IP addresses
Border;It should be appreciated that database table can use state that simultaneously record object IP address is corresponding be
Locking.
Step 209, cloud management platform utilizes the target drives program of corresponding target cloud environment to target cloud ring
Border sends the distribution instruction carrying target ip address.
In the embodiment of the present invention, when managing platform and communicating with target cloud environment, if target cloud ring
Border is that a sync cap, i.e. target cloud environment are performing IP to the IP operation interface that cloud management platform provides
It is simultaneously operating that bindings, IP unbind operation, and cloud management platform then utilizes the interface drive program of correspondence
Install to, in message, be sent by message queue by the packet that cloud management platform is formed;Contrary, if
The IP operation interface that cloud environment provides to cloud management platform is an asynchronous interface, then utilize the driving of correspondence
Program realizes receptor asynchronous event, installs in message, by message by the packet that cloud management platform is formed
Body is sent by message queue after resolving to the data form of corresponding asynchronous interface.
Step 210, the target ip address received is tied up by target cloud environment with target device and port
Fixed.
Step 211, cloud management platform receives the binding success message that target cloud environment sends.
Here, binding success message carries target device and the facility information of port and port information.
Step 212, the use state of target ip address corresponding in database table is updated to by cloud management platform
Distribute, and facility information and port information are updated in the database table of correspondence.
It should be noted that step 211 is in step 212, when cloud management platform receives target cloud ring
The Bind Failed message of corresponding target ip address that border sends or when unbinding success message, should be in database table
Middle being updated to unallocated by use state corresponding for target ip address, delete target IP address is corresponding simultaneously
Facility information and port information.
As it is shown on figure 3, embodiments provide a kind of cloud management platform, including:
Arranging module 301, be used for pre-setting IP stored reservoir, wherein, described IP stored reservoir record is extremely
The use state of few two IP addresses and each IP address correspondence respectively;
Command reception module 302, for receiving the IP address assignment request instruction of corresponding target cloud environment;
Processing module 303, is used for inquiring about described IP stored reservoir, determines a target ip address, wherein,
The use state that described target ip address is corresponding is unallocated;
State more new module 304, for being updated to locking by use state corresponding for target ip address;
Information sending module 305, for sending the distribution instruction carrying target ip address to target cloud environment,
So that target cloud environment bound targets IP address.
Further, for convenience cloud management platform for IP address and reality in its multiple cloud environments managed
Binding situation between the physical equipment of border is managed concentratedly, as shown in Figure 4, and one preferred reality of the present invention
Execute in example, also include:
Information receiving module 401, for receiving the binding success message that target cloud environment sends, wherein,
Described binding success message carries facility information corresponding to target ip address and port information;
Described state more new module 304, is further used for updating use state corresponding for target ip address
For distributing, and facility information corresponding for target ip address and port information are increased to described IP management
Pond.
Further, the target ip address in order to realize being locked will not be assigned to other cloud environments, this
Invent in a preferred embodiment,
Described arranging module 301, be used for pre-setting database table, wherein, described database table includes
At least two data storehouse records, one IP address of each described data-base recording record and current IP ground
The use state that location is corresponding;
Described state more new module 304, for the target database record that lock onto target IP address is corresponding.
Further, in order to realize cloud management platform perform the most next time IP address distribution business time, permissible
Quickly determine that corresponding use state is unappropriated target ip address, and distribute mesh from trend target cloud environment
Mark IP address, in a preferred embodiment of the invention, described arranges module 301, is further used for utilizing
In described database table, at least two IP address of record builds data queue;
Described processing module 303, for inquiring about head of the queue according to described data queue in described database table
The use state that IP address is corresponding, when the use state that current IP address is corresponding is unallocated, ought
Front IP address is defined as target ip address, and current IP address moves to the tail of the queue of described data queue.
Further, the communication interface that provides to cloud platform due to different cloud environments also differs, in order to
Realize cloud platform all to communicate with multiple cloud environments, in a preferred embodiment of the invention, described in set
Put module 301, be further used for pre-setting the interface drive program that at least two cloud environment is the most corresponding;
Described information sending module 305, for the target interface driver corresponding according to target cloud environment
The distribution instruction carrying target ip address is sent to target cloud environment.
The contents such as the information between each unit in said apparatus is mutual, execution process, due to the present invention
Embodiment of the method is based on same design, and particular content can be found in the narration in the inventive method embodiment, this
Place repeats no more.
Each embodiment of the present invention at least has the advantages that
1, by recording at least two IP address and each IP address correspondence respectively in IP stored reservoir
Use state, when the IP distribution request receiving corresponding target cloud environment, determine a use state
For unappropriated target ip address, send the distribution instruction carrying target ip address to target cloud environment,
Meanwhile, the use state of target ip address is updated to locking, prevents cloud management center from waiting target cloud
During the binding success message of environmental feedback, target ip address is assigned to other cloud environments, i.e. avoids same
One IP address is assigned to multiple cloud environment.
2, the interface drive program the most corresponding by arranging multiple cloud environment in cloud management platform so that
Cloud management platform can be by calling the IP that different interface drive programs provides respectively from different cloud environments
Operation interface docks so that cloud management platform can be to different types of multiple cloud environments distribution IP ground
Location.
3, when receiving an IP address assignment request instruction, performing one query task, this is looked into
In inquiry task, corresponding in the IP address of data queue's head of the queue to determine according to data queue's inquiry database table
Use state whether be to have distributed or locked, its correspondence use state for distribute time, by head of the queue
IP address move to tail of the queue, until this query task in inquire a Target IP being positioned at head of the queue
When use state corresponding to address is unallocated, after this target ip address is moved to tail of the queue, terminate this
Query task;So, can realize using correspondence state is that locking and allocated IP address arrangement are to several
According to rearward position in queue, upper once distribute IP address during, it is only necessary to perform fewer number
Inquiry i.e. can determine that a corresponding use state is unappropriated target ip address.
It should be noted that in this article, the relational terms of such as first and second etc be used merely to by
One entity or operation separate with another entity or operating space, and not necessarily require or imply this
Relation or the order of any this reality is there is between a little entities or operation.And, term " includes ",
" comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is
The process of row key element, method, article or equipment not only include those key elements, but also include the brightest
Other key elements really listed, or also include intrinsic for this process, method, article or equipment
Key element.In the case of there is no more restriction, statement " include a 〃 " and limit
Key element, it is not excluded that there is also another in including the process of described key element, method, article or equipment
Outer same factor.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment
Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in embodied on computer readable
Storage medium in, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned
Storage medium include: various Jie that can store program code such as ROM, RAM, magnetic disc or CD
In matter.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate this
The technical scheme of invention, is not intended to limit protection scope of the present invention.All spirit in the present invention and former
Any modification, equivalent substitution and improvement etc. done within then, are all contained in protection scope of the present invention.
Claims (10)
1. the Protocol IP address distribution method of interconnection between a network, it is characterised in that be applied to cloud
Management platform, including:
Pre-set IP stored reservoir, wherein, described IP stored reservoir record at least two IP address and each
The use state that individual IP address is the most corresponding;
Receive the IP address assignment request instruction of corresponding target cloud environment;
Inquire about described IP stored reservoir, determine a target ip address, wherein, described target ip address pair
The use state answered is unallocated;
Use state corresponding for target ip address is updated to locking;
The distribution instruction carrying target ip address is sent to target cloud environment, so that target cloud environment binding mesh
Mark IP address.
IP address distribution method the most according to claim 1, it is characterised in that described to mesh
After mark cloud environment sends the distribution instruction carrying target ip address, also include:
Receiving the binding success message that target cloud environment sends, wherein, described binding success message carries mesh
Mark facility information corresponding to IP address and port information;
It is updated to distribute by use state corresponding for target ip address, and target ip address is corresponding
Facility information and port information increase to described IP stored reservoir.
IP address distribution method the most according to claim 1, it is characterised in that
Described pre-set IP stored reservoir, including: pre-set database table, wherein, described data base
Table includes at least two data storehouse records, one IP address of each described data-base recording record and current
The use state that IP address is corresponding;
Described use state corresponding for target ip address being updated to locks, including: lock onto target IP ground
The target database record that location is corresponding.
IP address distribution method the most according to claim 3, it is characterised in that
Described pre-set database table, farther include: utilize in described database table record at least
Two IP addresses build data queue;
Described inquiry described IP stored reservoir, determines a target ip address, wherein, described Target IP ground
The use state of location is unallocated, including:
In described database table, the use state that head of the queue IP address is corresponding is inquired about according to described data queue,
When the use state that current IP address is corresponding is unallocated, current IP address is defined as Target IP ground
Location, and current IP address is moved to the tail of the queue of described data queue.
5. according to described IP address distribution method arbitrary in Claims 1-4, it is characterised in that
Described pre-set IP stored reservoir, farther include: pre-set at least two cloud environment the most right
The interface drive program answered;
The described distribution instruction carrying target ip address to target cloud environment transmission, including: according to target cloud
The distribution that the target interface driver that environment is corresponding carries target ip address to target cloud environment transmission refers to
Order.
6. a cloud management platform, it is characterised in that including:
Module is set, is used for pre-setting IP stored reservoir, wherein, described IP stored reservoir record at least two
The use state of individual IP address and each IP address correspondence respectively;
Command reception module, for receiving the IP address assignment request instruction of corresponding target cloud environment;
Processing module, is used for inquiring about described IP stored reservoir, determines a target ip address, wherein, institute
It is unallocated for stating use state corresponding to target ip address;
State more new module, for being updated to locking by use state corresponding for target ip address;
Information sending module, for sending the distribution instruction carrying target ip address to target cloud environment, with
Make target cloud environment bound targets IP address.
Cloud management platform the most according to claim 6, it is characterised in that also include:
Information receiving module, for receiving the binding success message that target cloud environment sends, wherein, described
Binding success message carries facility information corresponding to target ip address and port information;
Described state more new module, is further used for being updated to use state corresponding for target ip address
Distribution, and facility information corresponding for target ip address and port information are increased to described IP stored reservoir.
Cloud management platform the most according to claim 1, it is characterised in that
Described arranging module, be used for pre-setting database table, wherein, described database table includes at least
Two data storehouse records, one IP address of each described data-base recording record and current IP address pair
The use state answered;
Described state more new module, for the target database record that lock onto target IP address is corresponding.
Cloud management platform the most according to claim 8, it is characterised in that
Described module is set, is further used for utilizing at least two IP address of record in described database table
Build data queue;
Described processing module, for inquiring about head of the queue IP ground according to described data queue in described database table
The use state that location is corresponding, when the use state that current IP address is corresponding is unallocated, by current IP
Address is defined as target ip address, and current IP address moves to the tail of the queue of described data queue.
10. according to described cloud management platform arbitrary in claim 6 to 9, it is characterised in that
Described arranging module, the interface being further used for pre-setting at least two cloud environment corresponding respectively drives
Dynamic program;
Described information sending module, for the target interface driver corresponding according to target cloud environment to mesh
Mark cloud environment sends the distribution instruction carrying target ip address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610424541.6A CN105872130A (en) | 2016-06-14 | 2016-06-14 | Method for distributing IP (Internet Protocol) addresses and cloud management platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610424541.6A CN105872130A (en) | 2016-06-14 | 2016-06-14 | Method for distributing IP (Internet Protocol) addresses and cloud management platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105872130A true CN105872130A (en) | 2016-08-17 |
Family
ID=56649539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610424541.6A Pending CN105872130A (en) | 2016-06-14 | 2016-06-14 | Method for distributing IP (Internet Protocol) addresses and cloud management platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105872130A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365812A (en) * | 2019-07-24 | 2019-10-22 | 无锡华云数据技术服务有限公司 | A kind of configuration method and device of VIP |
CN113055500A (en) * | 2019-12-26 | 2021-06-29 | 中国电信股份有限公司 | Address request method, device and computer readable storage medium |
CN116896543A (en) * | 2023-09-11 | 2023-10-17 | 中移(苏州)软件技术有限公司 | IP address allocation method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101662511A (en) * | 2009-10-10 | 2010-03-03 | 中国电信股份有限公司 | Network address distributing method, DHCP server, access system and method thereof |
CN102281333A (en) * | 2010-06-11 | 2011-12-14 | 中兴通讯股份有限公司 | Method and system for avoiding IP address conflict, DHCP server and DHCP client |
CN103544777A (en) * | 2013-11-06 | 2014-01-29 | 广州森锐电子科技有限公司 | Remote automatic card selling system and card selling method |
CN103716416A (en) * | 2012-09-29 | 2014-04-09 | 北京搜狐互联网信息服务有限公司 | IP configuration method and apparatus under cloud computing platform |
CN103854191A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Online application virtual resource automatic transaction method and device |
CN104363137A (en) * | 2014-11-14 | 2015-02-18 | 浪潮(北京)电子信息产业有限公司 | In-local-area-network IP address distribution information monitoring method and device |
CN104378456A (en) * | 2014-11-20 | 2015-02-25 | 无锡悟莘科技有限公司 | Allocation optimization method for IP addresses in local area network |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
CN104468778A (en) * | 2014-12-08 | 2015-03-25 | 广东工业大学 | Cloud manufacturing execution system and method based on cloud services |
-
2016
- 2016-06-14 CN CN201610424541.6A patent/CN105872130A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101662511A (en) * | 2009-10-10 | 2010-03-03 | 中国电信股份有限公司 | Network address distributing method, DHCP server, access system and method thereof |
CN102281333A (en) * | 2010-06-11 | 2011-12-14 | 中兴通讯股份有限公司 | Method and system for avoiding IP address conflict, DHCP server and DHCP client |
CN103716416A (en) * | 2012-09-29 | 2014-04-09 | 北京搜狐互联网信息服务有限公司 | IP configuration method and apparatus under cloud computing platform |
CN103854191A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Online application virtual resource automatic transaction method and device |
CN103544777A (en) * | 2013-11-06 | 2014-01-29 | 广州森锐电子科技有限公司 | Remote automatic card selling system and card selling method |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
CN104363137A (en) * | 2014-11-14 | 2015-02-18 | 浪潮(北京)电子信息产业有限公司 | In-local-area-network IP address distribution information monitoring method and device |
CN104378456A (en) * | 2014-11-20 | 2015-02-25 | 无锡悟莘科技有限公司 | Allocation optimization method for IP addresses in local area network |
CN104468778A (en) * | 2014-12-08 | 2015-03-25 | 广东工业大学 | Cloud manufacturing execution system and method based on cloud services |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365812A (en) * | 2019-07-24 | 2019-10-22 | 无锡华云数据技术服务有限公司 | A kind of configuration method and device of VIP |
CN113055500A (en) * | 2019-12-26 | 2021-06-29 | 中国电信股份有限公司 | Address request method, device and computer readable storage medium |
CN116896543A (en) * | 2023-09-11 | 2023-10-17 | 中移(苏州)软件技术有限公司 | IP address allocation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9930007B2 (en) | IP address and domain name automation of virtual infrastructure | |
US10298666B2 (en) | Resource management for multiple desktop configurations for supporting virtual desktops of different user classes | |
CN102710814B (en) | The control method of virtual machine IP address and device | |
CN109597853B (en) | Business scene element serial number generation method, device, medium and computer equipment | |
US8346856B2 (en) | Client environment creation system, client environment creation method, client environment creation program and storage medium | |
CN110138606B (en) | Container network configuration method and system | |
CN110716788B (en) | Method and device for managing virtualized resources | |
CN105791341A (en) | Method, device and system for processing application release | |
US20120144454A1 (en) | Apparatus for managing authorization in software-as-a-service platform and method for the same | |
CN105138389A (en) | Method and system for managing virtual devices in cluster | |
CN105530293B (en) | Using dissemination method and device | |
CN108399101A (en) | The methods, devices and systems of scheduling of resource | |
CN103092670A (en) | Cross-platform virtual computing resource management method under cloud computing environment | |
CN104272259A (en) | System and method for supporting version based routing in a transactional middleware machine environment | |
CN105872130A (en) | Method for distributing IP (Internet Protocol) addresses and cloud management platform | |
CN109067931A (en) | A kind of method and system of cloud management platform virtual machine floating IP address setting | |
CN103207965A (en) | Method and device for License authentication in virtual environment | |
CN103780686A (en) | Method and system for customizing application approval procedure in cloud organization | |
CN101378329B (en) | Distributed business operation support system and method for implementing distributed business | |
CN107534577A (en) | A kind of method and apparatus of Network instantiation | |
CN108540408B (en) | Openstack-based distributed virtual switch management method and system | |
CN103634322B (en) | Heartbeat management method, heartbeat management device and heartbeat management system for application programs | |
US20190132188A1 (en) | Method and apparatus for managing managed function object | |
CN113438295A (en) | Container group address allocation method, device, equipment and storage medium | |
CN108062239A (en) | A kind of accelerator loading method, system and accelerator loading device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |
|
RJ01 | Rejection of invention patent application after publication |