CN103716416A - IP configuration method and apparatus under cloud computing platform - Google Patents

IP configuration method and apparatus under cloud computing platform Download PDF

Info

Publication number
CN103716416A
CN103716416A CN201210379708.3A CN201210379708A CN103716416A CN 103716416 A CN103716416 A CN 103716416A CN 201210379708 A CN201210379708 A CN 201210379708A CN 103716416 A CN103716416 A CN 103716416A
Authority
CN
China
Prior art keywords
address
database
pond
user
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210379708.3A
Other languages
Chinese (zh)
Other versions
CN103716416B (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.)
Beijing Sohu Internet Information Service Co Ltd
Original Assignee
Beijing Sohu Internet Information Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sohu Internet Information Service Co Ltd filed Critical Beijing Sohu Internet Information Service Co Ltd
Priority to CN201210379708.3A priority Critical patent/CN103716416B/en
Publication of CN103716416A publication Critical patent/CN103716416A/en
Application granted granted Critical
Publication of CN103716416B publication Critical patent/CN103716416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an IP configuration method and apparatus under a cloud computing platform. The method comprises the following steps: receiving an IP processing request massage of a user; according to the IP processing request massage of the user, obtaining a distribution mode and a processing instruction; according to the distribution mode, executing the processing instruction; and updating the states of the IP addresses in an IP pool in an IP resource database and updating the states of static IP addresses, such that different distribution strategies are employed for different demands on a cloud platform, and the IP addresses distributed through the different distribution strategies are configured in a unified mode, thus correctness and uniqueness of IP distribution are guaranteed.

Description

IP collocation method and device under a kind of cloud computing platform
Technical field
The present invention relates to cloud computing field, particularly IP collocation method and the device under a kind of cloud computing platform.
Background technology
In cloud computing platform, IP resource provides to user as a part for cloud computing platform resource, its to the configuration of IP based on method of salary distribution basis, IP pond, IP pond is one group of IP set, with IP scope, carry out the size in regulation IP pond and start end position, the described IP pond method of salary distribution refers to from IP resource database the method for salary distribution of automatically selecting IP address to distribute in the defined IP scope of keeper, be applicable to cloud computing platform according to IP address range automatically to virtual machine distributing IP address.
But, cloud computing platform only provides the IP collocation method based on IP pond dynamic assignment can not meet actual needs at present, in actual applications, the static IP of conventional data centers distributes, the methods of salary distribution such as DHCP dynamic assignment also usually need to be used on cloud computing platform, but because cloud computing platform is ripe not enough in development aspect IP configuration, when plurality of distribution mode coexists in cloud computing platform, can not guarantee the correctness of IP configuration and uniqueness.
Summary of the invention
In view of this, main purpose of the present invention is to provide IP collocation method and the device under a kind of cloud computing platform, to realize, effective configuration is unified in the IP address of different allocation strategies, guarantees the correctness of IP configuration and the object of uniqueness.
The invention provides the IP collocation method under a kind of cloud computing platform, the method comprises:
Receive User IP and process request message;
According to described User IP, process request message, obtain the method for salary distribution and processing instruction, the described method of salary distribution comprises the IP pond method of salary distribution or the static IP method of salary distribution;
According to the described method of salary distribution, carry out processing instruction;
If the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes;
If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database;
Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
Preferably, described IP resource database comprises the first database, the second database and the 3rd database;
Wherein, the IP address range in described the first database storing IP pond;
Described the second database is stored the corresponding relation of described IP pond and server pools, the corresponding relation that the corresponding relation of described IP pond and server pools is multi-to-multi;
Described the 3rd database is stored the state information of each IP address and the state information of the defined static ip address of user in described IP pond.
Preferably, when the described method of salary distribution is specially the IP pond method of salary distribution, when described processing instruction is specially distributing IP address instruction, also comprise: according to described User IP, process request message, obtain user's assigned ip pond;
Describedly according to the described method of salary distribution, carry out processing instruction and specifically comprise the following steps:
Within the scope of described user's assigned ip pond of described IP resource database, query State is idle IP address;
If the state of inquiring is idle IP address, by described state, be that in idle IP address, at least one IP address assignment is to described user, described renewal IP resource database is specially in IP resource database the state of distributing to described user's IP address in user's assigned ip pond is updated to and is distributed.
Preferably, IP address assignment is given after described user, also comprise: create virtual machine, the IP address of distributing to described user is write to this virtual machine configuration.
Preferably, when the method for salary distribution of described User IP is specially the IP pond method of salary distribution, described processing instruction is specially while reclaiming IP address instruction, also comprises: according to described User IP, process request message, obtain user's source IP address;
The described state that is specially definite described user's source IP address according to described method of salary distribution execution processing instruction changes the free time into, and described renewal IP resource database is specially in described IP resource database, and the state of described user's source IP address is updated to the free time.
Preferably, disconnecting with after being connected of described user, also comprise: send destruction by the processing instruction of the virtual machine of described user ID.
The present invention also provides the inking device of the IP under a kind of cloud computing platform, and this device comprises:
Acquiring unit: process request message for receiving User IP, process request message according to described User IP, obtain the method for salary distribution and processing instruction;
Processing unit: for carrying out processing instruction according to the described method of salary distribution, if the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes; If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database; Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
Visible the present invention has following beneficial effect:
Because the present invention processes request message by receiving User IP, according to User IP, process the method for salary distribution and the processing instruction that request message obtains User IP, realized on cloud platform and adopted different allocation strategies for different demands, configuration is unified in the IP address of different allocation strategies being distributed by the state of IP address in IP pond in renewal IP resource database and the state of renewal static ip address, has guaranteed correctness and uniqueness that IP distributes; Secondly, by the present invention, can also IP be distributed address automatically to write virtual machine configuration in distributing IP, when reclaiming IP, destroy virtual machine, in the whole life cycle of virtual machine, IP be safeguarded.
Accompanying drawing explanation
Fig. 1 is the IP collocation method flow chart under a kind of cloud computing platform provided by the invention;
Fig. 2 is the IP inking device composition diagram under a kind of cloud computing platform provided by the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the embodiment of the present invention is described in further detail.
It should be noted that, the IP collocation method under a kind of cloud computing platform described herein, described in it, collocation method refers to any processing methods relevant to IP such as IP address assignment, the change of IP address, the recovery of IP address.
Referring to Fig. 1, be the IP collocation method flow chart under a kind of cloud computing platform provided by the invention, the method comprises:
S101, reception User IP are processed request message;
S102, according to described User IP, process request message, obtain the method for salary distribution and processing instruction, the described method of salary distribution comprises the IP pond method of salary distribution or the static IP method of salary distribution;
Wherein, described according to the User IP processing request message acquisition method of salary distribution and processing instruction, specifically can have following several mode to realize:
(1) User IP is processed request message and is carried IP configuration list, by IP, configures the method for salary distribution and the processing instruction that list obtains User IP, on this IP configuration list, provides the method for salary distribution to select for user;
(2) User IP is processed request message and is carried concrete IP address and processing instruction, and by inquiring about, whether this IP address in described IP resource database exists, the state of this IP address, obtains the method for salary distribution of User IP, as:
User IP is processed concrete IP address that request message carries in described IP resource database, and state is for idle or distributed, and thinks the IP pond method of salary distribution;
User IP is processed concrete IP address that request message carries not in described IP resource database, or in described IP resource database, and state is that static IP distributes, and thinks the static IP method of salary distribution.
S103, according to the described method of salary distribution, carry out processing instruction;
If the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in the described processing instruction process of S104, state changes;
If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database;
Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
It should be noted that, in IP resource database, in IP pond, the state information of IP address comprises distribution, idle two states; And static ip address is by distributing generation, by reclaiming, delete, therefore, in IP resource database, the state of static ip address comprises static IP distribution state, does not have idle condition.
Below, in the situation of the different methods of salary distribution and different disposal instruction, several specific embodiments of the present invention are elaborated:
Embodiment (one): when the method for salary distribution of described User IP is specially the IP pond method of salary distribution, when described processing instruction is specially distributing IP address instruction, the present invention also comprises:
According to described User IP, process request message, obtain user's assigned ip pond;
Described in step S103, according to the described method of salary distribution, carrying out processing instruction specifically comprises the following steps:
Within the scope of described user's assigned ip pond in described IP resource database, query State is idle IP address;
If the state of inquiring is idle IP address, by described state be in idle IP address at least one idle IP address assignment to described user;
Described step S104 comprises:
If the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes;
If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database;
Specific to this embodiment, the IP address that in described processing instruction process, state changes is in user's assigned ip pond, therefore, described in described step S104, upgrading IP resource database is specially in IP resource database the state of distributing to described user's IP address in user's assigned ip pond is updated to and is distributed.
It should be noted that, if within the scope of the described user's assigned ip pond in described IP resource database, the state of not inquiring is idle IP address, can return to request distributing IP failure to user, can also in the alternative IP pond setting in advance, be the automatic distributing IP of user, and inform the message of user's distributing IP from alternative IP pond, therefore, on basis of the present invention, can take any redemption or inform the mode of IP distribution state, do not limit in the present invention.
Also it should be noted that, in this embodiment (), within the scope of described user's assigned ip pond in described IP resource database, inquire about idle IP address, specifically can utilize least recently used algorithm to inquire about suitable idle IP address, distributed to described user.
Embodiment (two): when the method for salary distribution of described User IP is specially the static IP method of salary distribution, when described processing instruction is specially distributing IP address instruction, the present invention also comprises: according to described User IP, process request message, obtain the IP address range of user's appointment;
Described in step S103, according to the described method of salary distribution, carrying out processing instruction specifically comprises the following steps:
For each the IP address in the IP address range of described user's appointment, carry out following operation:
If there is this IP address, the state information of inquiring about this IP address in described IP resource database;
If the state of this IP address is idle, by this IP address assignment, give described user, it should be noted that, because this IP address is Already in described IP resource database, and state is idle, therefore this IP address is the IP address in IP pond, upgrades IP resource database described in step S104 and is specially the state of this IP address is updated to and is distributed;
It should be noted that, if there is this IP address in described IP resource database, and the state of this IP address is for distributing or static IP distribution, the request of this IP address assignment is processed unsuccessfully, can return to this IP address assignment request failure to user, can also from the alternative IP pond setting in advance, be the automatic distributing IP of user, and inform the message of user's distributing IP from alternative IP pond, therefore, on basis of the present invention, can take any redemption or inform the mode of IP distribution state, not limit in the present invention.
If there is not this IP address in described IP resource database, by this IP address assignment, give described user, described in step S104, upgrade IP resource database and be specially in described IP resource database, increase this IP address, the state of this IP address is updated to static IP and distributes.
It should be noted that, under cloud computing platform, in order to realize the maintenance of virtual machine IP and the life cycle of virtual machine combines, on above embodiment () and (twos') basis, the present invention proposes, IP address assignment is given after described user, also comprise: create virtual machine, the IP address of distributing to described user is write to this virtual machine configuration.
Embodiment (three): when the method for salary distribution of described User IP is specially the DHCP method of salary distribution, when described processing instruction is specially distributing IP address instruction, according to the described method of salary distribution, carries out processing instruction described in step S103 and be specially described distributing IP address instruction is sent to outside DHCH server.
Embodiment (four): when the method for salary distribution of described User IP is specially the IP pond method of salary distribution, when described processing instruction is specially change IP address instruction, also comprise: process request message according to described User IP and obtain user's source IP address and Target IP pond;
Described in step S103, according to the described method of salary distribution, carry out processing instruction and be specially described user's source IP address within the scope of the described Target IP pond in described IP resource database, inquire about idle IP address;
If inquire idle IP address, by least one idle IP address assignment in the IP address of described free time, give described user;
Described in step 104, upgrade IP resource database and be specially in described IP resource database, the state of distributing to described user's idle IP address is updated to and is distributed, and the state of described user's source IP address is updated to the free time in described Target IP pond.
Embodiment five: when the method for salary distribution of described User IP is specially the IP pond method of salary distribution, described processing instruction is specially while reclaiming IP address instruction, also comprises: according to described User IP, process request message, obtain user's source IP address;
Described in step S103, according to described method of salary distribution execution processing instruction, be specially and determine that the state of described user's source IP address changes the free time into, described in step 104, upgrade IP resource database and be specially in described IP resource database, the state of described user's source IP address is updated to the free time.
Embodiment six: when the method for salary distribution of described User IP is specially static IP, distribute, described processing instruction is specially while reclaiming IP address instruction, also comprises: according to described User IP, process request message, obtain user's source IP address;
Described in step S103, according to described method of salary distribution execution processing instruction, be specially and determine that the state of described user's source IP address changes the free time into, described renewal IP resource database is specially in described IP resource database, deletes described user's source IP address and state.
It should be noted that, in order to realize the maintenance of virtual machine IP and the life cycle of virtual machine combines, on above embodiment (five) and (sixs') basis, the present invention proposes, disconnecting with after being connected of described user, also comprise: send the processing instruction of destroying by the described virtual machine with identifying.
Below, described IP resource database is described in detail, and in one embodiment of the invention, described IP resource database comprises the first database, the second database and the 3rd database, specifically can utilize mysql Database, store respectively following information:
(1) IP address range in described the first database storing IP pond;
In described the first database, the IP address range in storing IP pond is mainly the IP scope of distributing when determining automatic distributing IP, and expression mode is as 192.168.0.0/24 or 192.168.1.2-200 etc.;
(2) described the second database is stored the corresponding relation of described IP pond and server pools, the corresponding relation that the corresponding relation of described IP pond and server pools is multi-to-multi;
Because data center is comprised of a plurality of server pools, so the IP pond in described second data library storage the first database and the affiliated corresponding relation of server pools are used for differentiating server pools and can use which IP scope, its corresponding relation is many-to-many relationship;
(3) described the 3rd database is stored the state information of each IP address and the state information of the defined static ip address of user in described IP pond;
The state information of described IP address is used for determining the detailed situation that IP is assigned with, as determine distribution state be distribute, free time or static IP distributes, can also be used to determine distribute to the various state informations such as any platform virtual machine, do not limit in the present invention.
It should be noted that, the present invention to the maintenance of described IP resource database except above embodiment () to (six), mention by User IP, process that request message triggers to the renewal of IP resource database, also comprise the active management of keeper to IP resource database, specifically can be by web interface be provided, also can by keeper, carry out active management by the mode of order line, described keeper mainly comprises the active management of IP resource database: IP pond creates, revise in IP pond and delete in IP pond:
Described IP pond creates and specifically comprises the following steps:
Obtain the newly-increased IP address range of keeper's definition;
The newly-increased IP address range that judges described keeper definition whether with described the first database in the defined IP address range of keeper have lap;
If there is lap, create the failure of IP pond;
If there is no lap:
The newly-increased IP address range that adds keeper to define in described the first database;
In described the second database, generate the newly-increased IP address range of described keeper's definition and the corresponding relation of server pools;
Whether judgement has IP address in the 3rd database in the newly-increased IP address range of described keeper's definition;
If, state by first kind IP address in described the 3rd database is distributed to be updated to by static IP and distributes, Equations of The Second Kind IP address is increased in described the 3rd database, the state of initialization Equations of The Second Kind IP address is idle, wherein said first kind IP address is in the newly-increased IP address range of described keeper's definition, and the IP address in the 3rd database, described Equations of The Second Kind IP address is in the newly-increased IP address range of described keeper definition, and the IP address in the 3rd database not;
If not, each the IP address in the newly-increased IP address range of described keeper's definition is all increased in described the 3rd database, state is initialized as the free time.
Described IP pond is revised and is specifically comprised the following steps:
Obtain modification IP address range and the destination server pond of keeper's definition;
Inquire about in described the 3rd database, in the modification IP address range of described keeper's definition, whether have the IP address of having distributed;
If had, revise the failure of IP pond;
If do not had, in described the second database, delete the modification IP address range of described keeper's definition and the corresponding relation of server pools, in described the second database, generate the modification IP address range of described keeper's definition and the corresponding relation in described destination server pond.
Described IP pond is deleted and is specifically comprised the following steps:
Obtain the deletion IP address range of keeper's definition;
If not deleting by force, carry out following verification step and delete step;
If delete by force, carry out following delete step;
Described verification step comprises:
Whether judgement has the state of IP address in the 3rd database for distributing in the deletion IP address range of described keeper's definition;
If had, state by the 3rd class IP address in described the 3rd database is updated to static IP and distributes, described the 3rd class IP address is got rid of in the deletion IP address range of described keeper's definition, wherein, described the 3rd class IP address is in the deletion IP address range of described keeper's definition, and the state in described the 3rd database is for distributing;
Described delete step comprises:
In described the first database, delete the deletion IP address range of described keeper's definition, in described the second database, delete described keeper deletion IP address range and the corresponding relation of server pools surely, in described the 3rd database, delete all IP address and state in the deletion IP address range of described keeper's definition.
It should be noted that, in the establishment of above IP pond, the modification of IP pond and IP pond, delete in embodiment, the form of expression of described IP address range can set in advance as required, for example 192.168.0.0/24,192.168.0.0/255.255.255.0 or 192.168.0.2-100, and after obtaining the IP address range of keeper's definition, the whether legal step of the IP address range form of expression that can also comprise keeper's definition that checking is obtained, if illegal, return to error message, do not carry out corresponding establishment, modification or delete action; In described IP pond, create in embodiment, before the newly-increased IP address range of keeper's definition adds described the first database, can also comprise, judge whether the IP address in the newly-increased IP address range of keeper definition comprises gateway and broadcast address, if do not comprised, according to the gateway standard setting in advance, generate default gateway and broadcast address.
The present invention also provides the inking device of the IP under a kind of cloud computing platform, and referring to Fig. 2, this device comprises:
Acquiring unit 201: process request message for receiving User IP, process request message according to described User IP, obtain the method for salary distribution and processing instruction;
Processing unit 202: for carrying out processing instruction according to the described method of salary distribution, if the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes; If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database; Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (14)

1. the IP collocation method under cloud computing platform, is characterized in that, comprising:
Receive User IP and process request message;
According to described User IP, process request message, obtain the method for salary distribution and processing instruction, the described method of salary distribution comprises the IP pond method of salary distribution or the static IP method of salary distribution;
According to the described method of salary distribution, carry out processing instruction;
If the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes;
If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database;
Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
2. method according to claim 1, is characterized in that, the described method of salary distribution also comprises: the DHCP method of salary distribution;
When the described method of salary distribution is specially the DHCP method of salary distribution, when described processing instruction is specially distributing IP address instruction, describedly according to the described method of salary distribution, carries out processing instruction and be specially described distributing IP address instruction is sent to outside DHCH server.
3. method according to claim 1, is characterized in that, when the described method of salary distribution is specially the IP pond method of salary distribution, when described processing instruction is specially distributing IP address instruction, also comprises: according to described User IP, process request message, obtain user's assigned ip pond;
Describedly according to the described method of salary distribution, carry out processing instruction and specifically comprise the following steps:
Within the scope of described user's assigned ip pond of described IP resource database, query State is idle IP address;
If the state of inquiring is idle IP address, by described state, be that in idle IP address, at least one IP address assignment is to described user, described renewal IP resource database is specially in IP resource database the state of distributing to described user's IP address in user's assigned ip pond is updated to and is distributed.
4. method according to claim 1, it is characterized in that, when the described method of salary distribution is specially the static IP method of salary distribution, when described processing instruction is specially distributing IP address instruction, also comprise: according to described User IP, process request message, obtain the IP address range of user's appointment;
Describedly according to the described method of salary distribution, carry out processing instruction and specifically comprise the following steps:
For each the IP address in the IP address range of described user's appointment, carry out following operation:
If there is this IP address, the state information of inquiring about this IP address in described IP resource database;
If the state of this IP address is idle, by this IP address assignment, give described user, the state that described renewal IP resource database is specially the IP address of this being distributed to described user in IP resource database is updated to and distributes;
If there is not this IP address in described IP resource database, by this IP address assignment, give described user, described renewal IP resource database is specially in described IP resource database, increases this IP address, the state of this IP address is updated to static IP and distributes.
5. according to the method described in claim 3,4, it is characterized in that, IP address assignment is given after described user, also comprise: create virtual machine, the IP address of distributing to described user is write to this virtual machine configuration.
6. method according to claim 1, is characterized in that,
When the method for salary distribution of described User IP is specially the IP pond method of salary distribution, when described processing instruction is specially change IP address instruction, also comprise: according to described User IP, process request message, obtain user's source IP address and Target IP pond;
Describedly according to the described method of salary distribution, carry out processing instruction and specifically comprise the following steps:
Within the scope of described Target IP pond in described IP resource database, inquire about idle IP address;
If inquire idle IP address, by least one idle IP address assignment in the IP address of described free time, give described user;
Described renewal IP resource database is specially in described IP resource database, and the state of distributing to described user's idle IP address in described Target IP pond is updated to and is distributed, and the state of described user's source IP address is updated to the free time.
7. method according to claim 1, is characterized in that,
When the method for salary distribution of described User IP is specially the IP pond method of salary distribution, described processing instruction is specially while reclaiming IP address instruction, also comprises: according to described User IP, process request message, obtain user's source IP address;
The described state that is specially definite described user's source IP address according to described method of salary distribution execution processing instruction changes the free time into, and described renewal IP resource database is specially in described IP resource database, and the state of described user's source IP address is updated to the free time.
8. method according to claim 1, is characterized in that,
When the method for salary distribution of described User IP is specially static IP, distribute, described processing instruction is specially while reclaiming IP address instruction, also comprises: according to described User IP, process request message, obtain user's source IP address;
Describedly according to described, carry out processing instruction be specially and determine that the state of described user's source IP address changes the free time into according to the described method of salary distribution, described renewal IP resource database is specially in described IP resource database, deletes described user's source IP address and state.
9. according to the method described in claim 7,8, it is characterized in that,
At the state of determining described user's source IP address, change into after the free time, also comprise: send the processing instruction of destroying by the virtual machine of described user ID.
10. according to any described method of claim 1-8, it is characterized in that, described IP resource database comprises the first database, the second database and the 3rd database;
Wherein, described the first database storing IP pond;
Described the second database is stored the corresponding relation of described IP pond and server pools, the corresponding relation that the corresponding relation of described IP pond and server pools is multi-to-multi;
Described the 3rd database is stored the state information of each IP address and the state information of the defined static ip address of user in described IP pond.
11. methods according to claim 10, is characterized in that, also comprise:
Obtain the newly-increased IP address range of keeper's definition;
The newly-increased IP address range that judges described keeper definition whether with described the first database in the defined IP address range of keeper have lap;
If there is lap, create the failure of IP pond;
If there is no lap:
The newly-increased IP address range that adds keeper to define in described the first database;
In described the second database, generate the newly-increased IP address range of described keeper's definition and the corresponding relation of server pools;
Whether judgement has IP address in the 3rd database in the newly-increased IP address range of described keeper's definition;
If, state by first kind IP address in described the 3rd database is updated to and distributes, Equations of The Second Kind IP address is increased in described the 3rd database, the state of initialization Equations of The Second Kind IP address is idle, wherein said first kind IP address is in the newly-increased IP address range of described keeper's definition, and the IP address in the 3rd database, described Equations of The Second Kind IP address is in the newly-increased IP address range of described keeper definition, and the IP address in the 3rd database not;
If not, each the IP address in the newly-increased IP address range of described keeper's definition is all increased in described the 3rd database, state is initialized as the free time.
12. methods according to claim 10, is characterized in that, also comprise:
Obtain modification IP address range and the destination server pond of keeper's definition;
Inquire about in described the 3rd database, in the modification IP address range of described keeper's definition, whether have the IP address of having distributed;
If had, revise the failure of IP pond;
If do not had, in described the second database, delete the modification IP address range of described keeper's definition and the corresponding relation of server pools, in described the second database, generate the modification IP address range of described keeper's definition and the corresponding relation in described destination server pond.
13. methods according to claim 10, is characterized in that, also comprise:
Obtain the deletion IP address range of keeper's definition;
If not deleting by force, carry out following verification step and delete step;
If delete by force, carry out following delete step;
Described verification step comprises:
Whether judgement has the state of IP address in the 3rd database for distributing in the deletion IP address range of described keeper's definition;
If had, state by the 3rd class IP address in described the 3rd database is updated to static IP and distributes, described the 3rd class IP address is got rid of in the deletion IP address range of described keeper's definition, wherein, described the 3rd class IP address is in the deletion IP address range of described keeper's definition, and the state in described the 3rd database is for distributing;
Described delete step comprises:
In described the first database, delete the deletion IP address range of described keeper's definition, in described the second database, delete described keeper deletion IP address range and the corresponding relation of server pools surely, in described the 3rd database, delete all IP address and state in the deletion IP address range of described keeper's definition.
IP inking device under 14. 1 kinds of cloud computing platforms, is characterized in that, comprising:
Acquiring unit: process request message for receiving User IP, process request message according to described User IP, obtain the method for salary distribution and processing instruction, the described method of salary distribution comprises the IP pond method of salary distribution or the static IP method of salary distribution;
Processing unit: for carrying out processing instruction according to the described method of salary distribution, if the state information of this Zhong GaiIP address, IP pond in IP resource database, in IP pond, is upgraded in the IP address that in described processing instruction process, state changes; If the IP address that in described processing instruction process, state changes is static ip address, upgrade the state information of this static ip address in IP resource database; Described IP resource database comprises: the state information of each IP address in the corresponding relation of IP pond, IP pond and server pools, described IP pond and the state information of the defined static ip address of user.
CN201210379708.3A 2012-09-29 2012-09-29 IP configuration method and apparatus under cloud computing platform Active CN103716416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210379708.3A CN103716416B (en) 2012-09-29 2012-09-29 IP configuration method and apparatus under cloud computing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210379708.3A CN103716416B (en) 2012-09-29 2012-09-29 IP configuration method and apparatus under cloud computing platform

Publications (2)

Publication Number Publication Date
CN103716416A true CN103716416A (en) 2014-04-09
CN103716416B CN103716416B (en) 2017-02-22

Family

ID=50408985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210379708.3A Active CN103716416B (en) 2012-09-29 2012-09-29 IP configuration method and apparatus under cloud computing platform

Country Status (1)

Country Link
CN (1) CN103716416B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111862A (en) * 2014-07-17 2014-10-22 湖南昇云科技有限公司 Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN104378455A (en) * 2014-11-13 2015-02-25 杭州华三通信技术有限公司 IP address distribution method and device
CN105872130A (en) * 2016-06-14 2016-08-17 浪潮电子信息产业股份有限公司 Method for distributing IP (Internet Protocol) addresses and cloud management platform
CN105915660A (en) * 2015-10-22 2016-08-31 乐视致新电子科技(天津)有限公司 Method for detecting successful setting of static IP and device thereof
CN106790735A (en) * 2016-11-15 2017-05-31 国云科技股份有限公司 The virtual machine static network method to set up communicated using serial ports and DHCP protocol
CN107277189A (en) * 2017-06-20 2017-10-20 郑州埃文计算机科技有限公司 A kind of sorting technique for full IP application scenarios
CN107613044A (en) * 2017-10-26 2018-01-19 郑州云海信息技术有限公司 The method and apparatus of virtual machine IP address is updated in a kind of SDN
CN110113445A (en) * 2019-05-10 2019-08-09 广东电网有限责任公司 Method, apparatus and equipment are managed on a kind of IP resource line for enterprise network

Citations (5)

* Cited by examiner, † Cited by third party
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
CN102316447A (en) * 2011-09-14 2012-01-11 福建星网锐捷网络有限公司 Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN102315968A (en) * 2011-09-19 2012-01-11 华中科技大学 Network configuration method in virtual machine environment
WO2012079461A1 (en) * 2010-12-13 2012-06-21 联想(北京)有限公司 Method, device and system for allocating ip address
US20120230277A1 (en) * 2007-03-29 2012-09-13 Stefano Faccin Ip address allocation in evolved wireless networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120230277A1 (en) * 2007-03-29 2012-09-13 Stefano Faccin Ip address allocation in evolved wireless networks
CN101662511A (en) * 2009-10-10 2010-03-03 中国电信股份有限公司 Network address distributing method, DHCP server, access system and method thereof
WO2012079461A1 (en) * 2010-12-13 2012-06-21 联想(北京)有限公司 Method, device and system for allocating ip address
CN102316447A (en) * 2011-09-14 2012-01-11 福建星网锐捷网络有限公司 Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN102315968A (en) * 2011-09-19 2012-01-11 华中科技大学 Network configuration method in virtual machine environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹忠: ""IP地址管理系统设计和实现"", 《电脑学习》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111862A (en) * 2014-07-17 2014-10-22 湖南昇云科技有限公司 Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN104378455A (en) * 2014-11-13 2015-02-25 杭州华三通信技术有限公司 IP address distribution method and device
CN104378455B (en) * 2014-11-13 2018-02-09 新华三技术有限公司 IP address distribution method and device
CN105915660A (en) * 2015-10-22 2016-08-31 乐视致新电子科技(天津)有限公司 Method for detecting successful setting of static IP and device thereof
CN105872130A (en) * 2016-06-14 2016-08-17 浪潮电子信息产业股份有限公司 Method for distributing IP (Internet Protocol) addresses and cloud management platform
CN106790735A (en) * 2016-11-15 2017-05-31 国云科技股份有限公司 The virtual machine static network method to set up communicated using serial ports and DHCP protocol
CN107277189A (en) * 2017-06-20 2017-10-20 郑州埃文计算机科技有限公司 A kind of sorting technique for full IP application scenarios
CN107613044A (en) * 2017-10-26 2018-01-19 郑州云海信息技术有限公司 The method and apparatus of virtual machine IP address is updated in a kind of SDN
CN107613044B (en) * 2017-10-26 2021-10-01 郑州云海信息技术有限公司 Method and device for updating IP address of virtual machine in SDN network
CN110113445A (en) * 2019-05-10 2019-08-09 广东电网有限责任公司 Method, apparatus and equipment are managed on a kind of IP resource line for enterprise network
CN110113445B (en) * 2019-05-10 2022-02-15 广东电网有限责任公司 IP resource on-line management method, device and equipment for enterprise network

Also Published As

Publication number Publication date
CN103716416B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN103716416A (en) IP configuration method and apparatus under cloud computing platform
EP2696555B1 (en) Method and system for identifying storage device
US8321549B2 (en) Action execution management for service configuration items
CN103518364B (en) The data-updating method of distributed memory system and server
US8832130B2 (en) System and method for implementing on demand cloud database
CN103067463B (en) user root authority centralized management system and management method
CN102291416B (en) A kind of method and system of client and server bi-directional synchronization
CN109391664A (en) System and method for the deployment of more cluster containers
CN103294675A (en) Method and device for updating data in distributed storage system
CN102110121A (en) Method and system for processing data
CN104715001A (en) Method and system performing wirite operation on shared resource in cluster of data processing system
CN104657158A (en) Method and device for processing business in business system
US10126969B1 (en) Mechanism for non-disruptive virtual tape libraries removal and reconfiguration
TWI567649B (en) Dynamic firmware updating
CN105373734A (en) Application data protection method and apparatus
CN103064797A (en) Data processing method and virtual machine management platform
CN110659259A (en) Database migration method, server and computer storage medium
CN105630571A (en) Virtual machine creating method and device
CN109165175B (en) Equipment identifier generation method and device
CN108073423A (en) A kind of accelerator loading method, system and accelerator loading device
CN111385370B (en) ID allocation method, device, storage medium and ID allocation system
GB2518894A (en) A method and a system for operating programs on a computer cluster
CN110737506A (en) virtual machine image version management method
CN115185697A (en) Cluster resource scheduling method, system, equipment and storage medium based on kubernets
CN104461736B (en) Resource allocation and searching method, resource allocation and search system and Cloud Server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 100086 11, 1101, 3 building, 2 South Road, Haidian District Academy of Sciences, Beijing.

Patentee after: Internet Information Service Co., Ltd of Beijing Sohu

Address before: 100084 Beijing Haidian District Zhongguancun East Road 1 hospital 9 building Sohu cyber building 15 Floor

Patentee before: Internet Information Service Co., Ltd of Beijing Sohu

CP02 Change in the address of a patent holder