CN104994182B - Adjust the method and device of address pool - Google Patents
Adjust the method and device of address pool Download PDFInfo
- Publication number
- CN104994182B CN104994182B CN201510331028.8A CN201510331028A CN104994182B CN 104994182 B CN104994182 B CN 104994182B CN 201510331028 A CN201510331028 A CN 201510331028A CN 104994182 B CN104994182 B CN 104994182B
- Authority
- CN
- China
- Prior art keywords
- address
- unified
- pool
- interchanger
- manager
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000003139 buffering effect Effects 0.000 claims description 67
- 230000004044 response Effects 0.000 claims description 6
- 230000003993 interaction Effects 0.000 claims description 3
- 230000001934 delay Effects 0.000 claims description 2
- 239000000872 buffer Substances 0.000 description 15
- 238000010586 diagram Methods 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 6
- 230000007812 deficiency Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
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/5061—Pools of addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method and devices of adjustment address pool, are applied to address pool and adjust system, address pool adjustment system includes:At least one interchanger, manager and unified address pool, at least one interchanger carry out information exchange with manager, and manager carries out information exchange with unified address pool;It is related to information technology field, the complexity of adjustment address pool can be reduced.The method includes:Interchanger sends IP address request message to manager first, then total quantity of the interchanger to manager application IP address in manager statistics a cycle, and send address adjust instruction to unified address pool, finally unify address pool according to interchanger in a cycle to the total quantity of manager application IP address, adjusts IP address quantity in unified address pool.The present invention is suitable for adjustment IP address pond so that in IP address pond IP address quantity, disclosure satisfy that application quantity of the interchanger for IP address.
Description
Technical field
The present invention relates to information technology field, more particularly to a kind of method and device of adjustment address pool.
Background technology
With the development of information technology, since some users can use privately owned Internet Protocol Version 4 (full name in English:
Internet Protocol Version 4, english abbreviation:IPv4) address, when needing to access number of site, it is necessary to use
The publicly-owned addresses IPv4 and Internet Protocol Version 6 (full name in English:Internet Protocol Version6, english abbreviation:
IPv6) address, so as to by interchanger to the agreement (full name in English interconnected between network:Internet Protocol,
English abbreviation:IP) address pool application IP address, to realize the conversion of IP address, wherein containing a certain number of in IP address pond
IP address, therefore, it is necessary to be managed to address pool, so that interchanger can be in secondary IP address pond with obtaining corresponding IP
Location.
Currently, a kind of method of adjustment address pool, an interchanger correspond to an address pool, contain in each address pool
The certain amount of addresses IPv4 and the addresses IPv6, interchanger obtain corresponding IP address from its corresponding address pool, and
Management equipment is periodically adjusted the quantity of the addresses IPv4 and the addresses IPv6 in the corresponding address pool of each interchanger.
However, when management equipment periodically in the corresponding address pool of each interchanger the addresses IPv4 and IPv6
When the quantity of location is adjusted, since each interchanger corresponds to an address pool, it is therefore desirable to adjust each interchanger and correspond to
Address pool in the addresses IPv4 and the addresses IPv6 quantity, so as to cause adjustment address pool complexity it is higher.
Invention content
The present invention provides a kind of method and device of adjustment address pool, can reduce the complexity of adjustment address pool.
The technical solution adopted by the present invention is:
In a first aspect, the present invention provides a kind of method of adjustment address pool, it is applied to address pool and adjusts system, described address
Pond adjusts system:At least one interchanger, manager and unified address pool, at least one interchanger and the pipe
It manages device and carries out information exchange, the manager carries out information exchange with the unified address pool;The method includes:
The interchanger sends IP address request message to the manager, and the IP address request message carries exchange
Machine mark, application IP address quantity, the IP address quantity include:IPv4 number of addresses and IPv6 number of addresses;
In manager statistics a cycle total quantity from the interchanger to the manager application IP address, it is described
The total quantity of IP address includes:The addresses IPv4 total quantity and the addresses IPv6 total quantity;
The manager sends address adjust instruction to the unified address pool, is carried in described address adjust instruction
The interchanger is stated in a cycle to the IP address total quantity of the manager application;
The unified address pool adjusts IP address quantity in the unified address pool according to described address adjust instruction.
Second aspect, the present invention provide a kind of device of adjustment address pool, are applied to address pool and adjust system, described address
Pond adjusts system:At least one interchanger, manager and unified address pool, at least one interchanger and the pipe
It manages device and carries out information exchange, the manager carries out information exchange with the unified address pool;Described device includes:
First sending module is located in the interchanger, described for sending IP address request message to the manager
IP address request message carries switch identification, application IP address quantity, and the IP address quantity includes:IPv4 number of addresses
And IPv6 number of addresses;
Statistical module is located in the manager, for counting institute in a cycle that first sending module is sent
Total quantity of the interchanger to the manager application IP address is stated, the total quantity of the IP address includes:The addresses IPv4 total quantity
And the addresses IPv6 total quantity;
Address management module is located in the manager, for sending address adjust instruction, institute to the unified address pool
It states and carries in one period the interchanger in the adjust instruction of address to the IP address total quantity of the manager application;
Module is adjusted, is located in the unified address pool, for according to described address adjust instruction, described in adjustment uniformly
IP address quantity in the pond of location.
The method and device of adjustment address pool provided by the invention is applied to address pool and adjusts system, address pool adjustment system
System includes:At least one interchanger, manager and unified address pool, at least one interchanger are handed over manager into row information
Mutually, manager carries out information exchange with unified address pool;Interchanger sends IP address request message to manager first, then manages
The total quantity of interchanger in device statistics a cycle to manager application IP address is managed, and sends address to unified address pool and adjusts
Instruction finally unifies address pool according to interchanger in a cycle to the total quantity of manager application IP address, and adjustment is uniformly
IP address quantity in the pond of location.With current management equipment periodically to the addresses IPv4 in the corresponding address pool of each interchanger with
And the quantity of the addresses IPv6 is adjusted and compares, at least one manager of the present invention corresponds to an address pool, and manager
It is able to record in a cycle that at least one interchanger can make unified address pool to the total quantity of IP address pond application IP address
According to the total quantity of the IP address of at least one interchanger application in a cycle, adjusted in address pool after a cycle
The quantity of IP address adjusts the quantity of IP address in each interchanger without management equipment, and more in one cycle
The quantity of IP address in secondary adjustment address pool, so as to reduce the complexity of adjustment address pool.
Description of the drawings
It, below will be to the present invention or the prior art in order to illustrate more clearly of the present invention or technical solution in the prior art
Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is only the present invention's
Some embodiments for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other attached drawings.
Fig. 1 is the system architecture diagram that address pool is adjusted in the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of adjustment address pool in the embodiment of the present invention;
Fig. 3 is the method flow diagram of another adjustment address pool in the embodiment of the present invention;
Fig. 4 is the method flow diagram of another adjustment address pool in the embodiment of the present invention;
Fig. 5 is the method flow diagram of another adjustment address pool in the embodiment of the present invention;
Fig. 6 is the method flow diagram of another adjustment address pool in the embodiment of the present invention;
Fig. 7 is the method flow diagram of another adjustment address pool in the embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram of adjustment address pool in the embodiment of the present invention;
Fig. 9 is the apparatus structure schematic diagram of another adjustment address pool in the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of method of adjustment address pool, can reduce the complexity of adjustment address pool, application
System is adjusted in address pool, as shown in Figure 1, address pool adjustment system includes:At least one interchanger, manager, unified address
Pond and big address pool, wherein at least one interchanger carries out information exchange with manager, and manager carries out letter with unified address pool
Breath interaction, unified address pool carry out information exchange at least one interchanger, wherein unified address pool includes:The addresses IPv4 with
The address buffers IPv6, the addresses IPv4 dark zone, the addresses IPv6 dark zone.
The embodiment of the present invention provides a kind of method of adjustment address pool, can reduce the complexity of adjustment address pool, such as Fig. 2
It is shown, the method includes:
201, interchanger sends IP address request message to manager.
Wherein, IP address request message carries switch identification, application IP address quantity, and IP address quantity includes:
IPv4 number of addresses and IPv6 number of addresses.
For the embodiment of the present invention, an interchanger corresponds to multiple equipment, when the flow packet that equipment is sent needs to carry out
The flow packet is then passed through interchanger by the conversion of IP address, so that the flow packet realizes the conversion of IP address.
Wherein, the transformational relation of IP address is to be converted into publicly-owned addresses IPv4, by publicly-owned IPv4 by the addresses private ip v4
Location is converted into the addresses private ip v4, or is converted into the addresses IPv6 by the addresses IPv4.
For the embodiment of the present invention, when the corresponding equipment of interchanger needs to carry out IP address conversion, interchanger is to management
Device sends IP address request message, and IP address routing address is sent to the interchanger for request manager.
For the embodiment of the present invention, public affairs are converted by the addresses private ip v4 since the equipment in interchanger may be simultaneously present
Have the addresses IPv4, be converted into the addresses private ip v4 by the publicly-owned addresses IPv4, or by the addresses IPv4 be converted into the addresses IPv6 this three
Kind of situation, therefore, may be simultaneously present in the request message that interchanger is sent to manager the addresses IPv4 application quantity and
The application quantity of the addresses IPv6.
202, total quantity of the interchanger to manager application IP address in manager statistics a cycle.
Wherein, the total quantity of IP address includes:The addresses IPv4 total quantity and the addresses IPv6 total quantity.
For the embodiment of the present invention, application IPv4 number of addresses is carried in request message since interchanger is sent to manager
Amount and application IPv6 number of addresses, thus manager can know in a cycle interchanger every time to IPv4 number of addresses with
And IPv6 number of addresses, so that manager can count all interchangers in one cycle to the IPv4 of manager application
Location total quantity and the addresses IPv6 total quantity.
203, manager sends address adjust instruction to unified address pool.
Wherein, interchanger is carried in a cycle in the adjust instruction of address to the IP address total quantity of manager application.
For the embodiment of the present invention, manager can send adjust instruction, the tune to unified address pool after one cycle
The addresses IPv4 total quantity from interchanger in a cycle to manager application and the addresses IPv6 total quantity are carried in whole instruction,
Unified address pool is according to the addresses IPv4 total quantity from interchanger in a cycle to manager application and the addresses IPv6 total quantity
IPv4 number of addresses and IPv6 number of addresses in the unified address pool of adjustment.
204, unified address pool adjusts unified address according to address adjust instruction to the total quantity of manager application IP address
IP address quantity in pond.
For the embodiment of the present invention, unified address pool is according to IPv4 number of addresses in the pond of current address and IPv6 number of addresses
It measures and inputs a certain number of addresses IPv4 and the addresses IPv6 into big address pool, or certain amount is obtained from big address pool
The addresses IPv4 and the addresses IPv6 so that currently IPv4 number of addresses and IPv6 number of addresses in unified address pool, point
It is inequal to the addresses the IPv4 total quantity and the addresses IPv6 total quantity of manager application with interchanger in a cycle.
The method of adjustment address pool provided in an embodiment of the present invention is applied to address pool and adjusts system, address pool adjustment system
System includes:At least one interchanger, manager and unified address pool, at least one interchanger are handed over manager into row information
Mutually, manager carries out information exchange with unified address pool;Interchanger sends IP address request message to manager first, then manages
The total quantity of interchanger in device statistics a cycle to manager application IP address is managed, and sends address to unified address pool and adjusts
Instruction finally unifies address pool according to interchanger in a cycle to the total quantity of manager application IP address, and adjustment is uniformly
IP address quantity in the pond of location.With current management equipment periodically to the addresses IPv4 in the corresponding address pool of each interchanger with
And the quantity of the addresses IPv6 is adjusted and compares, at least one manager of the embodiment of the present invention corresponds to an address pool, and
Manager is able to record in a cycle that at least one interchanger can make unification to the total quantity of IP address pond application IP address
Address pool adjusts ground according to the total quantity of the IP address of at least one interchanger application in a cycle after a cycle
The quantity of IP address in the pond of location adjusts the quantity of IP address in each interchanger without management equipment, and in a week
The quantity that IP address in address pool is repeatedly adjusted in phase, so as to reduce the complexity of adjustment address pool.
The alternatively possible realization method of the embodiment of the present invention, on the basis of realization method as shown in Figure 2, step
201, interchanger sends IP address request message to manager, can also include step 301-302 as shown in Figure 3 later.
301, manager determines that dark zone and buffering area with corresponding to different types of IP respectively in current unified address pool
Location quantity.
For the embodiment of the present invention, manager includes:Address management module and database.Wherein, it stores in database
Dark zone and the corresponding current IPv4 number of addresses of buffering area and IPv6 number of addresses in unified address pool.
For the embodiment of the present invention, when manager is started to work, when engineer is according to starting, for unified address pool buffering area
And the quantity of the different types of IP address of dark zone configuration, it determines pre- in the unified address pool that memory stores in manager
Preparation area and the different types of IP address quantity of buffering area.
For the embodiment of the present invention, since unified address pool includes:The addresses IPv4 and the address buffers IPv6, IPv4
Location dark zone and the addresses IPv6 dark zone, therefore store the addresses IPv4 and the current IPv4 in the address buffers IPv6 in database
Number of addresses and current IPv6 number of addresses, the current IPv4 number of addresses in the addresses IPv4 dark zone and the addresses IPv6 dark zone
Current IPv6 number of addresses.
For example, storing the current IPv4 number of addresses in the addresses IPv4 and the address buffers IPv6 in unified address pool in database
It is the current IPv4 number of addresses in the addresses 8, IPv4 dark zone is that the addresses 6, IPv6 dark zone is current that amount, which is 8, IPv6 number of addresses,
IPv6 number of addresses is 8.
For the embodiment of the present invention, the addresses IPv4 that are stored in the address management module searching data library in manager and
The current IPv4 number of addresses in the address buffers IPv6 and current IPv6 number of addresses, the current addresses IPv4 in the addresses IPv4 dark zone
The current IPv6 number of addresses of quantity and the addresses IPv6 dark zone, and determine the corresponding addresses IPv4 of IP address buffering area
IPv6 number of addresses in IPv4 number of addresses, the addresses IPv6 dark zone in quantity and IPv6 number of addresses, the addresses IPv4 dark zone
Amount.
302, manager is according to dark zone and the corresponding different types of IP of buffering area in current unified address pool
The quantity of number of addresses, the IP address of interchanger application sends address flowing instruction to unified address pool.
For the embodiment of the present invention, due to store in unified address pool the current addresses IPv4 and IPv6 in database
Location buffering area IPv4 number of addresses and IPv6 number of addresses, the addresses IPv4 dark zone IPv4 number of addresses and the addresses IPv6 are pre-
Preparation area IPv6 number of addresses, and the IPv4 number of addresses of application and IPv6 number of addresses are sent to manager by interchanger,
So that manager sends address flowing instruction according to the quantity control between the two, to unified address pool, to control unification
IP address in address pool between dark zone and buffering area between the flowing of IP address or unified address area and big address pool
Flowing.
For the embodiment of the present invention, the addresses IPv4 and the address buffers IPv6 in address pool are unified by database purchase
The current IPv4 number of addresses of current IPv4 number of addresses and IPv6 number of addresses and the dark zones IPv4, the dark zones IPv6
Current IPv6 number of addresses, can be when current IPv4 number of addresses in unified address pool or IPv6 number of addresses deficiencies, no
It needs to send out alarm and asks human configuration, it is only necessary to the addresses IPv4 or the addresses IPv6 are first obtained from big address pool, and
So that when, containing the sufficient addresses IPv4 or when the addresses IPv6, manager is to unified address pool application IPv4 in unified address pool
Address and the addresses IPv6, so as to reduce the complexity of adjustment address pool.
The alternatively possible realization method of the embodiment of the present invention, on the basis of realization method as shown in Figure 3, step
302, manager according to dark zone in current unified address pool and the corresponding different types of IP address quantity of buffering area,
The quantity of the IP address of interchanger application sends address flowing instruction to unified address pool, can also include specifically as shown in Figure 4
Step 401-402.
401, manager determines the type of the IP address of interchanger application.
Wherein, the type of IP address includes:The addresses IPv4, the addresses IPv6 or the addresses IPv4 and the addresses IPv6.
402, manager is corresponding according to the type of the type of the IP address of interchanger application, the IP address of interchanger application
The quantity of dark zone and the corresponding different types of IP address of buffering area in quantity, current unified address pool, to unification
Address pool sends address flowing instruction.
For the embodiment of the present invention, the address management module in manager determines interchanger to the IP address of manager application
Type and the corresponding application of different types of IP address quantity, and with buffering area in current unified address pool and
The quantity of the corresponding different types of IP address in dark zone determines the class that address flowing instruction is sent to unified address pool
Type.
The alternatively possible realization method of the embodiment of the present invention, on the basis of realization method as shown in Figure 4, step
402, manager according to the type of the IP address of interchanger application, the corresponding quantity of type of the IP address of interchanger application, when
The quantity of dark zone and the corresponding different types of IP address of buffering area in preceding unified address pool, to unified address pool hair
Address flowing instruction is sent, can also include specifically step 501-503 as shown in Figure 5.
If 501, the quantity of the IP address of interchanger application is less than or equal to the current unified address stored in database
The IP address quantity of dark zone in pond, then manager send application IP addresses instruction to unified address pool.
Wherein, application IP addresses instruction carries interchanger to manager application IP address quantity, and application IP addresses instruction is used for
Address management module applies for IP address to the dark zone of unified address pool.
For the embodiment of the present invention, if the quantity of the addresses IPv4 of interchanger application is less than or equal in unified address pool
IPv4 number of addresses in the dark zone of the addresses IPv4, and the quantity of the addresses IPv6 of interchanger application is less than or equal to unification
The quantity of the addresses IPv6 of the addresses IPv6 dark zone in address pool, then manager send application IP addresses instruction to unified address pool.
For the embodiment of the present invention, when the addresses IPv4 that the addresses IPv4 dark zone or the addresses IPv6 dark zone are contained respectively
Quantity and IPv6 number of addresses are more than or equal to IPv4 number of addresses and IPv6 address of the interchanger when manager application
When quantity, manager directly sends application IP addresses instruction to the dark zone of unified address pool, to apply interchanger to manager Shen
IPv4 number of addresses please and IPv6 number of addresses.
For example, it is the 6, addresses IPv6 dark zone that IPv4 number of addresses is currently contained in the addresses the IPv4 dark zone of unified address pool
Currently containing IPv6 number of addresses be 8, and interchanger to manager application IPv4 number of addresses be 5, IPv6 number of addresses is
6, then the address management module of manager is directly to the addresses the IPv4 dark zone of unified address pool and the addresses IPv6 dark zone hair
Application IP addresses are sent to instruct, so that manager is applied for 5 addresses IPv4 to the addresses IPv4 dark zone and prepared to the addresses IPv6
Apply for 6 addresses IPv6 in area.
For the embodiment of the present invention, if the IP address of dark zone is more than or equal to interchanger application in unified address pool
The quantity of IP address, then manager directly transmit application IP addresses instruction, manager is obtained from the dark zone of unified address pool and is handed over
Change planes application IP address routing address.
If 502, the quantity of the IP address of interchanger application is more than preparation in the current unified address pool stored in database
The IP address quantity in area, and less than or equal in dark zone in unified address pool and buffering area IP address quantity it is total
With then manager sends application IP addresses instruction and home address input instruction to unified address pool.
Wherein, home address input instructs the buffering area for carrying unified address pool to need the dark zone to unified address pool
The quantity of IP address is inputted, dark zone of the home address input instruction for buffering area to the unified address pool of unified address pool is defeated
Enter certain amount of IP address, so that the IP address quantity in the dark zone of unified address pool reaches interchanger to manager Shen
It please IP address quantity.
For the embodiment of the present invention, if IPv4 number of addresses is less than interchanger in the dark zone of the addresses IPv4 in unified address pool
Into the IPv4 number of addresses of manager application, or unified address pool, IPv6 number of addresses is less than friendship in the dark zone of the addresses IPv6
The IPv6 number of addresses changed planes to manager application, and the addresses IPv4 total quantity and the addresses IPv6 sum in unified address pool
Amount is more than or equal to IPv4 number of addresses and IPv6 number of addresses of the interchanger to manager application, then the address of manager
Management module sends home address input instruction to unified address pool first, so that the buffering area of the addresses IPv4 and the addresses IPv6
The buffering area of a certain number of addresses IPv4 and the addresses IPv4 and the addresses IPv6 is inputted to the addresses IPv4 dark zone to IPv6
Location dark zone inputs a certain number of addresses IPv6, so that contain in the addresses IPv4 dark zone and the addresses IPv6 dark zone
The addresses IPv4 and the addresses IPv6 reach IPv4 number of addresses and IPv6 number of addresses of the interchanger to manager application, then
Application IP addresses instruction is sent to the dark zones IPv4 and the dark zones IPv6, to apply for IPv4 address of the interchanger to manager application
Quantity and IPv6 number of addresses.
For example, 4 addresses IPv4, the addresses IPv4 and the addresses IPv6 are currently contained in the unified addresses address pool IPv4 dark zone
Buffering area currently contains 3 addresses IPv4, and interchanger is to 6 addresses IPv4 of manager application, therefore manager is first to unified
Address pool sends home address input instruction, so that the addresses IPv4 and the address buffers IPv6 are defeated to the addresses IPv4 dark zone
Enter 2 addresses IPv4, so that the quantity of the addresses IPv4 is 6 in the dark zone of the addresses IPv4, and is sent out to the addresses IPv4 dark zone
It send application IP addresses to instruct, applies for 6 addresses IPv4 to the addresses IPv4 dark zone.
If 503, the quantity of the IP address of interchanger application is more than IP in dark zone in unified address pool and buffering area
The summation of location quantity, then manager send application IP addresses instruction, home address input instruction and externally to unified address pool
Location flowing instruction.
Wherein, external address flowing instruction carries the IP address quantity that unified address pool needs are obtained from big address pool,
External address flowing instruction, which is sent for unified address pool to big address pool, to be instructed, so that big address pool is to unified address pool
Buffering area inputs IP address, and the summation of IP address quantity in dark zone in unified address pool and buffering area is made to reach interchanger
The quantity of the IP address of application.
For the embodiment of the present invention, when the addresses the IPv4 total quantity or the addresses IPv6 total quantity contained in unified address pool
Less than IPv4 number of addresses from interchanger to manager application or IPv6 number of addresses, then manager is successively to unified address pool
External address flowing instruction, home address input instruction and application IP addresses instruction are sent, so that the IPv4 of unified address pool
Address first obtains a certain amount of addresses IPv4 or the addresses IPv6 with the address buffers IPv6 from big address pool, then by buffering area
The interior addresses IPv4 input the addresses IPv4 dark zone and the addresses IPv6 are inputted the addresses IPv6 dark zone, so that the addresses IPv4
The IPv4 number of addresses of dark zone and the IPv6 number of addresses of the addresses IPv6 dark zone reach interchanger to manager application
IPv4 number of addresses and IPv6 number of addresses, last manager are applied to the addresses IPv4 dark zone or the addresses IPv6 dark zone
A certain number of addresses IPv4 and the addresses IPv6.
For example, the quantity of the addresses IPv4 and the addresses IPv4 in the address buffers IPv6 is the 2, addresses IPv6 in unified address pool
Quantity be the quantity of the addresses IPv4 in the dark zone of the addresses 4, IPv4 be the quantity of the addresses IPv6 in the dark zones 4, IPv6 be 4, then
The total quantity of the addresses IPv4 is 6 in unified address pool, the total quantity of the addresses IPv6 is 8, and interchanger is to manager application 7
The addresses IPv4 and 9 addresses IPv6, then the buffering area of address pool unified first obtained from big address pool 1 address IPv4 with
And 1 address IPv6, then by 3 addresses IPv4 of buffering area dark zones input IPv4, and 5 addresses IPv6 are inputted into IPv6
Address dark zone, so that containing 7 addresses IPv4 in the dark zone of the addresses IPv4, the addresses IPv6 dark zone is with containing 9 IPv6
The address management module of location, last manager applies for 7 addresses IPv4 to the addresses IPv4 dark zone, to the addresses IPv6 dark zone Shen
It please 9 addresses IPv6.
For the embodiment of the present invention, if interchanger is less than to the IPv4 number of addresses of manager application in unified address pool
The IPv4 number of addresses of the addresses IPv4 dark zone, and interchanger is more than uniformly to the quantity of the addresses IPv6 of manager application
IPv6 number of addresses and less than the addresses IPv6 dark zone and IPv6 in unified address pool in the dark zone of the addresses IPv6 in the pond of location
The total quantity of the addresses IPv6 in address buffer or the addresses IPv6 be more than in unified address pool the addresses IPv6 dark zone and
The total quantity of the addresses IPv6 in buffering area, then the flowing of the addresses IPv4 according to step 501 execute, and the flowing of the addresses IPv6 according to
Step 502 or step 503 execute.
For the embodiment of the present invention, if interchanger is more than to the quantity of the addresses IPv4 of manager application in unified address pool
IPv4 number of addresses and slow less than the addresses IPv4 dark zone in unified address pool and the addresses IPv4 in the dark zone of the addresses IPv4
The total quantity or interchanger for rushing the addresses IPv4 in area are more than to the IPv4 number of addresses of manager application in unified address pool
The IPv6 number of addresses of the addresses IPv4 total quantity and interchanger to manager application in the addresses IPv4 dark zone and buffering area
Less than the quantity in the addresses IPv6 dark zone in unified address pool, then the flowing of the addresses IPv4 is according to step 502 or step 503
It executes, the flowing of the addresses IPv6 is executed according to step 501.
The alternatively possible realization method of the embodiment of the present invention, on the basis of realization method as shown in Figure 5, step
If 502, the quantity of the IP address of interchanger application is with being more than in the current unified address pool stored in database the IP of dark zone
Location quantity, and less than or equal to the summation of IP address quantity in dark zone in unified address pool and buffering area, then manage
If device sends application IP addresses instruction and the IP of home address input instruction or step 503, interchanger application to unified address pool
The quantity of address is more than the summation of IP address quantity in dark zone in unified address pool and buffering area, then manager is to uniformly
Location pond sends application IP addresses instruction, home address input instruction and external address flowing instruction, can also include such as Fig. 6 later
Further include step 506-508 as shown in Figure 6 after shown step 504-505, step 501 or step 505.
504, success message is sent to manager by unified address pool.
Wherein, success message for informing that address flowing instruction is completed in statistical module, unified address pool, take by success message
With dark zone and the corresponding different types of IP address quantity of buffering area in current unified address pool.
For the embodiment of the present invention, quantity containing the current addresses IPv4 in the addresses IPv4 dark zone in success message,
The current corresponding IPv4 in the current IPv6 number of addresses in the addresses IPv6 dark zone and the addresses IPv4 and the address buffers IPv6
Number of addresses and IPv6 number of addresses.
505, manager adjusts dark zone in the current unified address pool stored in database and delays according to success message
Rush the corresponding different types of IP address quantity in area.
For the embodiment of the present invention, manager is according to the current IPv4 in the addresses the IPv4 dark zone contained in success message
Quantity, the current IPv6 number of addresses in the addresses IPv6 dark zone and the addresses IPv4 of location and the address buffers IPv6 are currently right respectively
The IPv4 number of addresses and IPv6 number of addresses answered adjust the current IPv4 in the addresses the IPv4 dark zone of current data library storage
Quantity, the current IPv6 number of addresses in the addresses IPv6 dark zone and the addresses IPv4 of address and the address buffers IPv6 are currently distinguished
Corresponding IPv4 number of addresses and IPv6 number of addresses.
506, the IP address routing in the dark zone of unified address pool is sent to interchanger by manager, so that interchanger
It can be route according to IP address from the dark zone of unified address pool and obtain IP address.
For the embodiment of the present invention, manager sends the routing address of the corresponding IP address of the IP address of interchanger application
To interchanger, corresponded to so that interchanger is obtained by the routing address of IP address from the IP address dark zone in unified address pool
IP address.
For the embodiment of the present invention, when interchanger the addresses IPv4, the addresses IPv6 or IPv4 are got from manager
When the routing address of location and the addresses IPv6, interchanger sends to the host equipment under the interchanger and determines message.Wherein, if handing over
Change planes and receive the success response message of host equipment transmission, then interchanger according to the routing address of IP address from unified address pool
Dark zone obtain IP address.In embodiments of the present invention, if interchanger does not receive the success response sent to host equipment and disappears
Breath, then the dark zone of interchanger not secondary IP address obtains IP address, therefore the IP address of interchanger application and actually gets
IP address may differ.
For the embodiment of the present invention, manager is adjusted and is deposited in the database in manager by the success message received
The quantity of the corresponding IP address of unified address pool buffering area and dark zone of storage, and when manager determines unified address
When corresponding IP address is more than or equal to the quantity of IP address in the dark zone in pond, manager is from the dark zone of unified address pool
Obtain the routing address of the IP address of interchanger application.
507, interchanger will successfully obtain message and be sent to manager.
Wherein, it successfully obtains message and carries the dark zone practical IP address number that obtains of the interchanger from unified address pool
Amount.
For the embodiment of the present invention, due to the quantity of the IP address of interchanger application and the number of the IP address actually obtained
Amount differs, then success response message carries the dark zone practical IP address quantity that obtains of the interchanger from unified address pool,
So that manager can adjust the current IP of the unified address pool stored in database by the practical quantity obtained of interchanger
Number of addresses.
508, manager adjusts data according to interchanger from the practical IP address quantity obtained in dark zone of unified address pool
Dark zone and the corresponding different types of IP address quantity of buffering area in the current unified address pool of library storage.
For the embodiment of the present invention, since manager is needed through IP address dark zone and IP address in unified address pool
Buffering area currently corresponding IP address quantity and IP address quantity from interchanger to manager application, to unified address
Area sends different address flowing instruction, therefore the quantity of current IP address in unified address pool is accurately stored in database.
For the embodiment of the present invention, the quantity of the IP address actually obtained is sent to by manager by interchanger, it can
Manager is set to adjust the quantity of current IP address in unified address pool in database, so as to so that manager accurately obtains unification
The quantity of current IP address in address pool, and can be when interchanger is to manager application IP address, manager is to unified address
Pond sends out correct instruction, and then can improve the accuracy of adjustment address.
The alternatively possible realization method of the embodiment of the present invention, on the basis of realization method as shown in Figure 2, step
202, interchanger can also include specifically such as Fig. 7 to the total quantity of manager application IP address in manager statistics a cycle
Shown step 601-602.
601, manager stores the IP address quantity that interchanger is applied every time to database.
602, manager counts the IP address quantity of interchanger application in a cycle, to obtain interchanger in a cycle
To the total quantity of manager application IP address.
For the embodiment of the present invention, a cycle can be one day, one month or 1 year.In embodiments of the present invention not
It limits.
For the embodiment of the present invention, manager is stored by the different types of IP address quantity for applying for interchanger every time
To database, the different types of IP address quantity of interchanger in a cycle to manager application can be counted, so as to
The different types of IP address quantity of interchanger in a cycle to manager application is determined, so that unified address pool is according to one
Interchanger adjusts different types of IP in unified address pool to the different types of IP address quantity of manager application in a period
The quantity of address, and then the accuracy of adjustment address pool can be improved.
Further, the method for adjustment address pool provided in an embodiment of the present invention, unifies address pool by database purchase
The current IPv4 number of addresses and IPv6 number of addresses and the dark zones IPv4 in the middle addresses IPv4 and the address buffers IPv6
Current IPv4 number of addresses, the current IPv6 number of addresses in the dark zones IPv6 can work as current IPv4 number of addresses in unified address pool
When amount or IPv6 number of addresses deficiencies, alarm need not be sent out and ask human configuration, it is only necessary to first from big address pool
Obtain IPv4 addresses either the addresses IPv6 and make when in unified address pool containing the sufficient addresses IPv4 or the addresses IPv6
When, manager is to the unified address pool addresses application IPv4 and the addresses IPv6, so as to reduce answering in the conversion process of address
Miscellaneous degree;The quantity of the IP address actually obtained is sent to manager by interchanger, manager can be made to adjust in database
The quantity of current IP address in unified address pool, so as to so that manager accurately obtains current IP address in unified address pool
Quantity, and can be when interchanger applies for IP address to management, manager sends out correct instruction, Jin Erke to unified address pool
To improve the accuracy of adjustment address;Manager by the different types of IP address quantity for applying for interchanger every time store to
Database can count the different types of IP address quantity of interchanger in a cycle to manager application, so as to true
The different types of IP address quantity of interchanger in a cycle to manager application is determined, so that unified address pool is according to one
Interchanger is to the different types of IP address quantity of manager application in period, with adjusting in unified address pool different types of IP
The quantity of location, and then the accuracy of adjustment address pool can be improved.
As the realization to method shown in Fig. 2, Fig. 3, Fig. 4, Fig. 5, Fig. 6 and Fig. 7, the embodiment of the present invention additionally provides one kind
The device of address pool is adjusted, is applied to address pool and adjusts system, address pool adjustment system includes:At least one interchanger, management
Device and unified address pool, wherein at least one interchanger and manager carry out information exchange, manager and unified address pool into
Row information interacts;For reducing the complexity of adjustment address pool, as shown in figure 8, described device includes:First sending module 71,
Statistical module 72, address management module 73, adjustment module 74.
First sending module 71 is located in interchanger, for sending IP address request message to manager.
Wherein, IP address request message carries switch identification, application IP address quantity, and IP address quantity includes:
IPv4 number of addresses and IPv6 number of addresses.
Statistical module 72 is located in manager, interchanger in a cycle for counting the transmission of the first sending module 71
To the total quantity of manager application IP address.
Wherein, the total quantity of IP address includes:The addresses IPv4 total quantity and the addresses IPv6 total quantity.
Address management module 73 is located in manager, for sending address adjust instruction to unified address pool.
Wherein, interchanger is carried in a cycle in the adjust instruction of address to the IP address total quantity of manager application.
Module 74 is adjusted, is located in unified address pool, for according to address adjust instruction, adjusting in unified address pool IP
Location quantity.
Statistical module 72 is located in manager, is additionally operable to determine that dark zone and buffering are distinguished in current unified address pool
Different types of IP address quantity is not corresponded to.
Address management module 73 is located in manager, for according to dark zone and buffering area in current unified address pool
Corresponding different types of IP address quantity, the quantity of the IP address of interchanger application send address to unified address pool
Flowing instruction.
Address management module 73 is located in manager, is specifically used for determining the type of the IP address of interchanger application.
Wherein, the type of IP address includes:The addresses IPv4 or the addresses IPv6;
Address management module 73 is located in manager, is specifically used for the type of the IP address according to interchanger application, exchanges
Dark zone and buffering area are right respectively in the corresponding quantity of different types of IP address of machine application, current unified address pool
The quantity for the different types of IP address answered sends address flowing instruction to unified address pool.
Wherein, address flowing, which instructs, includes:Application IP addresses instruction, home address input instruction and external address flowing refer to
It enables.
Address management module 73, be located at manager in, be less than specifically for the quantity of the IP address when interchanger application or
When person is equal to the IP address quantity of dark zone in the current unified address pool stored in database, address is sent to unified address pool
Application instruction.
Wherein, application IP addresses instruction carries interchanger to manager application IP address quantity, and application IP addresses instruction is used for
Address management module applies for IP address to the dark zone of unified address pool.
Address management module 73 is located in manager, is specifically additionally operable to be more than when the quantity of the IP address of interchanger application
The IP address quantity of dark zone in the current unified address pool stored in database, and less than or equal in unified address pool
In dark zone and buffering area when the summation of IP address quantity, sends application IP addresses instruction to unified address pool and home address is defeated
Enter instruction.
Wherein, home address input instructs the buffering area for carrying unified address pool to need the dark zone to unified address pool
The quantity of IP address is inputted, dark zone of the home address input instruction for buffering area to the unified address pool of unified address pool is defeated
Enter certain amount of IP address, so that the IP address quantity in the dark zone of unified address pool reaches interchanger to manager Shen
It please IP address quantity.
Address management module 73 is located in manager, is specifically additionally operable to be more than when the quantity of the IP address of interchanger application
In current unified address pool application IP addresses are sent to unified address pool in dark zone and buffering area when the summation of IP address quantity
Instruction, home address input instruction and external address flowing instruction.
Wherein, external address flowing instruction carries the IP address quantity that unified address pool needs are obtained from big address pool,
External address flowing instruction, which is sent for unified address pool to big address pool, to be instructed, so that big address pool is to unified address pool
Buffering area inputs IP address, and the summation of IP address quantity in dark zone in unified address pool and buffering area is made to reach interchanger
The quantity of the IP address of application.
Further, as shown in figure 9, described device further includes:Second sending module 81 route indicating module 82.
Second sending module 81 is located in unified address pool, for success message to be sent to manager.
Wherein, for informing that address flowing instruction is completed in manager, unified address pool, success message carries success message
There are dark zone and the corresponding different types of IP address quantity of buffering area in current unified address pool.
Statistical module 72 is located in manager, is additionally operable to the success message sent according to the second sending module 82, adjusts number
According to dark zone and the corresponding different types of IP address quantity of buffering area in the current unified address pool stored in library.
It is route indicating module 82, is located in manager, is additionally operable to unify the IP address routing in the dark zone of address pool
Be sent to interchanger so that interchanger can IP address routing get IP address from the dark zone of unified address pool.
First sending module 71 is located in interchanger, and message will successfully be obtained by, which being additionally operable to, is sent to manager.
Wherein, success response message carries the dark zone practical IP address number that obtains of the interchanger from unified address pool
Amount.
Statistical module 72 is located in manager, is additionally operable to be obtained from the dark zone of unified address pool is practical according to interchanger
IP address quantity, adjust dark zone and the corresponding inhomogeneity of buffering area in the current unified address pool of database purchase
The IP address quantity of type.
Statistical module 72 is located in manager, is stored to number specifically for the IP address quantity for applying for interchanger every time
According to library.
Statistical module 72 is located in manager, is specifically used for the IP address quantity of interchanger application in statistics a cycle,
To obtain in a cycle interchanger to the total quantity of manager application IP address.
The device of adjustment address pool provided in an embodiment of the present invention is applied to address pool and adjusts system, address pool adjustment system
System includes:At least one interchanger, manager and unified address pool, at least one interchanger are handed over manager into row information
Mutually, manager carries out information exchange with unified address pool;Interchanger sends IP address request message to manager first, then manages
The total quantity of interchanger in device statistics a cycle to manager application IP address is managed, and sends address to unified address pool and adjusts
Instruction finally unifies address pool according to interchanger in a cycle to the total quantity of manager application IP address, and adjustment is uniformly
IP address quantity in the pond of location.With current management equipment periodically to the addresses IPv4 in the corresponding address pool of each interchanger with
And the quantity of the addresses IPv6 is adjusted and compares, at least one manager of the embodiment of the present invention corresponds to an address pool, and
Manager is able to record in a cycle that at least one interchanger can make unification to the total quantity of IP address pond application IP address
Address pool adjusts ground according to the total quantity of the IP address of at least one interchanger application in a cycle after a cycle
The quantity of IP address in the pond of location adjusts the quantity of IP address in each interchanger without management equipment, and in a week
The quantity that IP address in address pool is repeatedly adjusted in phase, so as to reduce the complexity of adjustment address pool.
Further, the device of adjustment address pool provided in an embodiment of the present invention, unifies address pool by database purchase
The current IPv4 number of addresses and IPv6 number of addresses and the dark zones IPv4 in the middle addresses IPv4 and the address buffers IPv6
Current IPv4 number of addresses, the current IPv6 number of addresses in the dark zones IPv6 can work as current IPv4 number of addresses in unified address pool
When amount or IPv6 number of addresses deficiencies, alarm need not be sent out and ask human configuration, it is only necessary to first from big address pool
Obtain IPv4 addresses either the addresses IPv6 and make when in unified address pool containing the sufficient addresses IPv4 or the addresses IPv6
When, manager is to the unified address pool addresses application IPv4 and the addresses IPv6, so as to answering in relatively low address conversion process
Miscellaneous degree;The quantity of the IP address actually obtained is sent to manager by interchanger, manager can be made to adjust in database
The quantity of current IP address in unified address pool, so as to so that manager accurately obtains current IP address in unified address pool
Quantity, and can be when interchanger applies for IP address to management, manager sends out correct instruction, Jin Erke to unified address pool
To improve the accuracy of adjustment address;Manager by the different types of IP address quantity for applying for interchanger every time store to
Database can count the different types of IP address quantity of interchanger in a cycle to manager application, so as to true
The different types of IP address quantity of interchanger in a cycle to manager application is determined, so that unified address pool is according to one
Interchanger is to the different types of IP address quantity of manager application in period, with adjusting in unified address pool different types of IP
The quantity of location, and then the accuracy of adjustment address pool can be improved.
It should be noted that other in the device of the adjustment address pool provided in the embodiment of the present invention corresponding to each module
Corresponding description, can be with the corresponding description in reference chart 2, Fig. 3, Fig. 4, Fig. 5, Fig. 6 and Fig. 7, and details are not described herein.
The embodiment of the method for above-mentioned offer, specific work(may be implemented in the device of adjustment address pool provided in an embodiment of the present invention
It can realize the explanation referred in embodiment of the method, details are not described herein.The side of adjustment address pool provided in an embodiment of the present invention
Method and device can be adapted for adjusting IP address pond so that in IP address pond IP address quantity, disclosure satisfy that interchanger pair
In the application quantity of IP address, but it is not limited only to this.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (6)
1. a kind of method of adjustment address pool, is applied to address pool and adjusts system, which is characterized in that described address pond adjusts system
Including:At least one interchanger, manager and unified address pool, at least one interchanger carry out letter with the manager
Breath interaction, the manager carry out information exchange with the unified address pool;The method includes:
The interchanger sends IP address request message to the manager, and the IP address request message carries interchanger mark
Know, application IP address quantity, the IP address quantity includes:IPv4 number of addresses and IPv6 number of addresses;
The manager determines that dark zone and buffering area correspond to different types of IP address number respectively in current unified address pool
Amount;
The manager determines that the type of the IP address of the interchanger application, the type of the IP address include:The addresses IPv4
Or the addresses IPv6;
The manager is according to the type of the IP address of the interchanger application, the different types of IP of the interchanger application
Dark zone and the corresponding different types of IP of buffering area in the corresponding quantity in location, the current unified address pool
The quantity of location sends address flowing instruction to the unified address pool;
The interchanger is to the total quantity of the manager application IP address, the IP in manager statistics a cycle
The total quantity of location includes:The addresses IPv4 total quantity and the addresses IPv6 total quantity;
The manager sends address adjust instruction to the unified address pool, and described one is carried in described address adjust instruction
IP address total quantity of the interchanger to the manager application in a period;
The unified address pool adjusts IP address quantity in the unified address pool according to described address adjust instruction.
2. the method for adjustment address pool according to claim 1, which is characterized in that described address flowing, which instructs, includes:Ground
Location application instruction, home address input instruction and external address flowing instruction;
The manager is according to the type of the IP address of the interchanger application, the type pair of the IP address of the interchanger application
The number of dark zone and the corresponding different types of IP address of buffering area in the quantity answered, the current unified address pool
Amount sends the step of address flowing instructs to the unified address pool, specifically includes:
If the quantity of the IP address of the interchanger application is less than or equal to the IP of dark zone in the current unified address pool
Number of addresses, then the manager send described address application instruction to the unified address pool, described address application instruction is taken
With the interchanger to the manager application IP address quantity, described address application instruction is used for address management module to institute
State the dark zone application IP address of unified address pool;
If the quantity of the IP address of the interchanger application is more than the IP address quantity of dark zone in the current unified address pool,
And less than or equal to the summation of IP address quantity in dark zone in the unified address pool and buffering area, the then management
Device sends described address application instruction and home address input instruction, the home address input to the unified address pool
Instruction carries the quantity that the buffering area of the unified address pool needs the dark zone to the unified address pool to input IP address,
The home address input instructs the buffering area for the unified address pool to input spy to the dark zone of the unified address pool
The IP address of fixed number amount, so that the IP address quantity in the dark zone of the unified address pool reaches the interchanger to described
Manager application IP address quantity;
If the quantity of the IP address of the interchanger application is more than in dark zone in the current unified address pool and buffering area
The summation of IP address quantity, then the manager to the unified address pool send described address application instruction, it is described internally
Location input instruction and external address flowing instruction, the external address flowing instruction carry the unified address pool and need
The IP address quantity to be obtained from big address pool, the external address flowing instruction are used for the unified address pool to the earth
Location pond sends instruction so that big address pool inputs IP address to the buffering area of the unified address pool, and make it is described uniformly
The summation of IP address quantity reaches the quantity of the IP address of the interchanger application in dark zone and buffering area in the pond of location;
If the quantity of the IP address of the interchanger application is less than or equal to dark zone in the current unified address pool
IP address quantity, then the manager send described address application instruction to the unified address pool, if alternatively, the exchange
The quantity of the IP address of machine application is more than the total of IP address quantity in dark zone in the current unified address pool and buffering area
With, then the manager to the unified address pool send described address application instruction, home address input instruction and
After the step of external address flowing instruction, further include:
Success message is sent to the manager by the unified address pool, and the success message is used to inform the manager,
Described address flowing instruction is completed in the unified address pool, and the success message carries pre- in presently described unified address pool
Preparation area and the corresponding different types of IP address quantity of buffering area;
The manager according to the success message, adjust in the presently described unified address pool stored in database dark zone with
And the corresponding different types of IP address quantity of buffering area;
If the quantity of the IP address of the interchanger application is less than or equal to dark zone in the current unified address pool
IP address quantity, then the manager send the step of described address application instructs or described to the unified address pool
Manager adjusts dark zone in the presently described unified address pool stored in the database and delays according to the success message
Further include after the step of rushing the corresponding different types of IP address quantity in area:
IP address routing in the dark zone of the unified address pool is sent to the interchanger by the manager, so that institute
The IP address can be got according to IP address routing from the dark zone of the unified address pool by stating interchanger;
The interchanger will successfully obtain message and be sent to the manager, and success response message carries the interchanger from institute
State the practical IP address quantity obtained in dark zone of unified address pool;
The manager according to interchanger from the practical IP address quantity obtained in dark zone of the unified address pool, described in adjustment
Dark zone and the corresponding different types of IP address number of buffering area in the presently described unified address pool of database purchase
Amount.
3. the method for adjustment address pool according to claim 1, which is characterized in that in the manager statistics a cycle
Total quantity from the interchanger to the manager application IP address the step of, specifically include:
The manager stores the IP address quantity that the interchanger is applied every time to database;
The IP address quantity of the interchanger application in the manager statistics a cycle, to obtain the friendship in a cycle
The total quantity changed planes to the manager application IP address.
4. a kind of device of adjustment address pool, is applied to address pool and adjusts system, which is characterized in that described address pond adjusts system
Including:At least one interchanger, manager and unified address pool, at least one interchanger carry out letter with the manager
Breath interaction, the manager carry out information exchange with the unified address pool;Described device includes:
First sending module is located in the interchanger, for sending IP address request message, the IP to the manager
Location request message carries switch identification, application IP address quantity, and the IP address quantity includes:IPv4 number of addresses and
IPv6 number of addresses;
Statistical module is located in the manager, for counting the friendship in a cycle that first sending module is sent
The total quantity changed planes to the manager application IP address, the total quantity of the IP address include:The addresses IPv4 total quantity and
The addresses IPv6 total quantity;
The statistical module is additionally operable to determine that dark zone and buffering area correspond to different types of respectively in current unified address pool
IP address quantity;
Address management module is located in the manager, the type of the IP address for determining the interchanger application, the IP
The type of address includes:The addresses IPv4 or the addresses IPv6;
Described address management module is additionally operable to the type of the IP address according to the interchanger application, the interchanger application
Dark zone and buffering area are corresponding in the corresponding quantity of different types of IP address, the current unified address pool
The quantity of different types of IP address sends address flowing instruction to the unified address pool;
Described address management module is additionally operable to send address adjust instruction, described address adjust instruction to the unified address pool
In carry in one period the interchanger to the IP address total quantity of the manager application;
Module is adjusted, is located in the unified address pool, for according to described address adjust instruction, adjusting the unified address pool
Middle IP address quantity.
5. the device of adjustment address pool according to claim 4, which is characterized in that described address flowing, which instructs, includes:Ground
Location application instruction, home address input instruction and external address flowing instruction;
Described address management module is specifically used for being less than or equal to database when the quantity of the IP address of the interchanger application
In the current unified address pool of middle storage when the IP address quantity of dark zone, described address is sent to the unified address pool
Application instruction, described address application instruction carry the interchanger to the manager application IP address quantity, described address
Application instruction applies for IP address for described address management module to the dark zone of the unified address pool;
Described address management module is specifically additionally operable to be more than in the database when the quantity of the IP address of the interchanger application
The IP address quantity of dark zone in the current unified address pool of storage, and less than or equal in the unified address pool
In dark zone and buffering area when the summation of IP address quantity, described address application instruction and institute are sent to the unified address pool
Home address input instruction is stated, the buffering area that the home address input instruction carries the unified address pool is needed to described
The quantity of the dark zone input IP address of unified address pool, the home address input instruction are slow for the unified address pool
It rushes area and inputs certain amount of IP address to the dark zone of the unified address pool, so that the dark zone of the unified address pool
In IP address quantity reach the interchanger to the manager application IP address quantity;
Described address management module is specifically additionally operable to be more than the current unification when the quantity of the IP address of the interchanger application
In address pool in dark zone and buffering area when the summation of IP address quantity, described address application is sent to the unified address pool
Instruction, home address input instruction and external address flowing instruction, the external address flowing instruction carry
The unified address pool needs the IP address quantity obtained from big address pool, the external address flowing instruction to be used for the unification
Address pool sends instruction to the big address pool so that buffering area from big address pool to the unified address pool with inputting IP
Location, and the summation of IP address quantity in dark zone in the unified address pool and buffering area is made to reach the interchanger application
The quantity of IP address;
Described device further includes:Second sending module route indicating module;
Second sending module is located in the unified address pool, described for success message to be sent to the manager
Success message is for informing that described address flowing instruction, the success message is completed in the manager, the unified address pool
Carry dark zone and the corresponding different types of IP address quantity of buffering area in presently described unified address pool;
The statistical module is additionally operable to the success message sent according to second sending module, adjusts the database
Dark zone and the corresponding different types of IP address quantity of buffering area in the presently described unified address pool of middle storage;
The routing indicating module is located in the manager, is used for the IP address in the dark zone of the unified address pool
Routing is sent to the interchanger so that the interchanger can IP address routing from the preparation of the unified address pool
Area gets the IP address;
First sending module, message will successfully be obtained by, which being additionally operable to, is sent to the manager, and success response message carries
The dark zone practical IP address quantity that obtains of the interchanger from the unified address pool;
The statistical module is additionally operable to the practical IP address number obtained in dark zone from the unified address pool according to interchanger
Amount adjusts dark zone and the corresponding different type of buffering area in the presently described unified address pool of the database purchase
IP address quantity.
6. the device of adjustment address pool according to claim 4, which is characterized in that
The statistical module is stored specifically for the IP address quantity for applying for the interchanger every time to database;
The statistical module is specifically additionally operable to the IP address quantity of the interchanger application in statistics a cycle, to obtain one
Total quantity of the interchanger to the manager application IP address in a period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510331028.8A CN104994182B (en) | 2015-06-15 | 2015-06-15 | Adjust the method and device of address pool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510331028.8A CN104994182B (en) | 2015-06-15 | 2015-06-15 | Adjust the method and device of address pool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104994182A CN104994182A (en) | 2015-10-21 |
CN104994182B true CN104994182B (en) | 2018-09-21 |
Family
ID=54305933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510331028.8A Active CN104994182B (en) | 2015-06-15 | 2015-06-15 | Adjust the method and device of address pool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104994182B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107809495B (en) | 2016-09-09 | 2021-06-22 | 华为技术有限公司 | Address management method and device |
CN110290228B (en) * | 2019-06-03 | 2022-03-11 | 网宿科技股份有限公司 | Internet protocol IP address allocation method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7788345B1 (en) * | 2001-06-04 | 2010-08-31 | Cisco Technology, Inc. | Resource allocation and reclamation for on-demand address pools |
CN102932501A (en) * | 2012-11-08 | 2013-02-13 | 杭州迪普科技有限公司 | Address pool resource protecting method and device thereof |
CN104486452A (en) * | 2014-09-23 | 2015-04-01 | 华为技术有限公司 | Address processing method and related equipment and system |
-
2015
- 2015-06-15 CN CN201510331028.8A patent/CN104994182B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7788345B1 (en) * | 2001-06-04 | 2010-08-31 | Cisco Technology, Inc. | Resource allocation and reclamation for on-demand address pools |
CN102932501A (en) * | 2012-11-08 | 2013-02-13 | 杭州迪普科技有限公司 | Address pool resource protecting method and device thereof |
CN104486452A (en) * | 2014-09-23 | 2015-04-01 | 华为技术有限公司 | Address processing method and related equipment and system |
Also Published As
Publication number | Publication date |
---|---|
CN104994182A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104090825B (en) | Dynamic migration computer network | |
US8582466B2 (en) | Flow statistics aggregation | |
CN105594166B (en) | For the method for configuration data stream, computer readable storage medium and device | |
CN1586065B (en) | Peer to peer network communication with network address translation | |
CN109600768A (en) | Management method, equipment and the system of network slice | |
CN103262498B (en) | Connect for issuing and subscribe environment server the method and system of optimizing | |
US20130305091A1 (en) | Drag and drop network topology editor for generating network test configurations | |
CN110417558A (en) | Verification method and device, the storage medium and electronic device of signature | |
US9001668B2 (en) | Endpoint selection in a network test system | |
CN107533438A (en) | Data duplication in accumulator system | |
CN105391628B (en) | Data communication system and data transferring method | |
CN110351111A (en) | A kind of subscription processing method, network node and customer data base | |
CN104811392A (en) | Method and system for processing resource access request in network | |
CN107210933A (en) | Mechanism for providing from hardware asset information to the equipment of attachment | |
CN109005252A (en) | A kind of IPv6 address generating method, equipment, system and the medium of fictitious host computer | |
CN108141469A (en) | Data plane in load equalizer manipulates | |
Bruno et al. | CCDA 640-864: official Cert guide | |
CN107547346A (en) | A kind of message transmitting method and device | |
CN104994182B (en) | Adjust the method and device of address pool | |
CN104182283B (en) | A kind of task synchronization method | |
CN109039959A (en) | A kind of the consistency judgment method and relevant apparatus of SDN network rule | |
CN107566270A (en) | The processing method and processing device that a kind of resource accesses | |
JP4727460B2 (en) | VPN management apparatus, program, and VPN management method | |
CN108464031B (en) | The redundancy based on database in telecommunication network | |
CN109413224A (en) | Message forwarding method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |