CN103595566B - A kind of method and device for detecting free IP addresses - Google Patents
A kind of method and device for detecting free IP addresses Download PDFInfo
- Publication number
- CN103595566B CN103595566B CN201310562248.2A CN201310562248A CN103595566B CN 103595566 B CN103595566 B CN 103595566B CN 201310562248 A CN201310562248 A CN 201310562248A CN 103595566 B CN103595566 B CN 103595566B
- Authority
- CN
- China
- Prior art keywords
- address
- free
- addresses
- detection
- module
- 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 24
- 238000001514 detection method Methods 0.000 claims abstract description 116
- 230000005540 biological transmission Effects 0.000 claims description 15
- 238000007689 inspection Methods 0.000 claims description 5
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 230000007774 longterm Effects 0.000 abstract description 4
- 241001134453 Lista Species 0.000 description 9
- 230000004044 response Effects 0.000 description 7
- 238000007726 management method Methods 0.000 description 6
- 238000010276 construction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000029087 digestion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides the device and its corresponding method of a kind of detection of free IP addresses.Wherein described device is divided into foreground and two, backstage part, it is responsible for the startup of free IP addresses detection and issuing for configuration in foreground, IP address accessible detecting is then responsible on backstage, the data of free IP addresses update and when keeper inquires about, the offer of free IP addresses data.It is periodically detected by the way that the present invention is permanently effective to IP address, the long-term IP address not used of record, so as to facilitate network manager to the release of these free IP addresses, redistribute, and then increases IP address resource utilization.
Description
Technical field
The present invention relates to data communication field, more particularly to a kind of method and device for detecting free IP addresses.
Background technology
IP address has goed deep into network management as a kind of Internet resources, by the management to IP address, network manager
Can in time in awareness network IP address access situation and utilization rate, it is long-term not for those so as to planning network again
The IP address for using, can discharge to save IP address resource.
However, the discontinuity used due to IP address(That is, IP address is possible to access network at any time, it is also possible at any time
It is offline)And the continuous expansion of network size so that the detection of free IP addresses becomes extremely difficult.
The content of the invention
In view of this, the present invention provides a kind of method and device for detecting free IP addresses, by the inventive method, management
Member can in time obtain the free message of IP address, and then free IP addresses can be discharged, redistributed.
The present invention is achieved through the following technical solutions:
A kind of method for detecting free IP addresses, wherein methods described includes:
Receive the instruction of the startup detection free IP addresses of keeper;
It is whether reachable according to the IP address accessible detecting cycle detection IP address that keeper sets, if it is,
Reachable IP address then be recorded into IP address up in list, if it is not, then inaccessible IP address recorded into IP address
In unreachable list;
When reaching the free IP addresses data update cycle, free IP addresses database is updated.
Further, the free IP addresses data update cycle is more than or equal to the IP address accessible detecting cycle.
Further, the free IP addresses data update cycle is some integers in IP address accessible detecting cycle
Portion.
Further, detected for the first time within the free IP addresses data update cycle IP address whether up to when, give tacit consent to institute
The state of reachability for having allocated IP address is unreachable.
Further, by first time detect after, next cycle detection IP address whether up to when, only to a upper cycle
The inaccessible IP address of interior detection detected again, and the reachable IP address of all detections in the detection cycle recorded can
Up in IP address list, inaccessible IP address recorded in unreachable IP address list.
Further, when reaching the free IP addresses data update cycle, free IP addresses database is updated, is had
Body is:
Reachable after testing free IP addresses within the free IP addresses data update cycle are deleted from database;
To not exist in database but detect that inaccessible IP address increases within the free IP addresses data update cycle
In database;
Will be existing in database but within the free IP addresses data update cycle detect inaccessible IP address, then basis
The free IP addresses data update cycle updates the data the idle number of days of free IP addresses in storehouse.
Further, methods described also includes:
The query statement of the free IP addresses set according to keeper, free IP addresses in reading database, and will meet
The free IP addresses for inquiring about content feed back to enquiry module.
Further, the query statement can be manually entered by keeper, it is also possible to by keeper according to predetermined
Strategy setting is inquired about into automatic.
Further, methods described also includes:
The instruction of detection free IP addresses is closed, and the parameter instruction for whether retaining historical record set according to keeper
To decide whether to delete the free IP addresses data recorded in database.
The present invention also provides a kind of device for detecting free IP addresses simultaneously, at least includes configuration module, detection module
And update module, wherein:
Configuration module, for receiving the instruction of the startup detection free IP addresses of keeper's setting and realizing detection free time IP
The other specification instruction of address, and send it to detection module, update module;
Detection module, for after the instruction of startup detection free IP addresses for receiving configuration module transmission, according to management
Whether the IP address accessible detecting cycle detection IP address of member's setting is reachable, if it is, by reachable IP address
IP address be recorded up in list, if it is not, then inaccessible IP address recorded in the unreachable list of IP address;
Update module, for when reaching the free IP addresses data update cycle, entering to the free IP addresses in database
Row updates.
Further, IP address of the free IP addresses data update cycle of the update module more than or equal to detection module
The accessible detecting cycle.
Further, the free IP addresses data update cycle of the update module is the IP address accessibility of detection module
Some integer portions of detection cycle.
Further, detection module detects whether IP address is reachable for the first time within the free IP addresses data update cycle
When, the state of reachability for giving tacit consent to all allocated IP address is unreachable.
Further, detection module by first time detect after, within the subsequent cycle detect IP address whether up to when,
Only inaccessible IP address in a upper cycle was detected again, and reachable IP address is detected by all in the detection cycle
Recorded up in IP address list, inaccessible IP address recorded in unreachable IP address list.
Further, when reaching the free IP addresses data update cycle, update module is entered to free IP addresses database
Row updates, specially:
Reachable after testing free IP addresses within the free IP addresses data update cycle are deleted from database;
To not exist in database but detect that inaccessible IP address increases within the free IP addresses data update cycle
In database;
Will be existing in database but within the free IP addresses data update cycle detect inaccessible IP address, then basis
The free IP addresses data update cycle updates the data the idle number of days of free IP addresses in storehouse.
Further, described device also includes enquiry module and output module, wherein:
Enquiry module, the query statement of the free IP addresses for keeper to be set is sent to output module;
Output module, after receiving the query statement of enquiry module transmission, free IP addresses in reading database, and will be full
The free IP addresses of foot inquiry content feed back to enquiry module.
Further, the query statement in the enquiry module can be manually entered by keeper in enquiry module,
Automatic inquiry can also be arranged in enquiry module according to predetermined strategy by keeper.
Further, the configuration module is additionally operable to:
Keeper setting close detection free IP addresses instruction, and according to keeper set whether reservation historical record
Parameter instruction come decide whether delete database in record free IP addresses data.
Compared with prior art, the present invention is not by the way that to the permanently effective detection of free IP addresses, record is used for a long time
IP address, so as to facilitate keeper to these free IP addresses release, redistribute, and then increase the IP address utilization of resources
Rate.
Brief description of the drawings
Fig. 1 is a kind of device logical construction and hardware environment original for detecting free IP addresses in exemplary embodiment of the present
Reason schematic diagram;
Fig. 2 is a kind of method flow schematic diagram for detecting free IP addresses in exemplary embodiment of the present shown in Fig. 1;
Fig. 3 is the implementation example figure of present invention detection free IP addresses under certain application scenarios.
Specific embodiment
In order to realize the object of the invention, the present invention by increase on NM server a feature card for realize to IP
The idle-detection of allocated IP address in address pool.The feature card is specifically divided into foreground and two, backstage part, foreground
Be responsible for the startup of free IP addresses detection, free IP addresses detection configuration issue and free IP addresses inquiry etc., backstage
Then it is responsible for free IP addresses accessible detecting, the data of free IP addresses update and send free time IP by foreground in keeper
After the query statement of address, it is responsible for the offer to free IP addresses data.By the cycle that the present invention is permanently effective to IP address
Property detection, the long-term free IP addresses not used of record, so as to facilitate keeper to the release of these free IP addresses, divide again
Match somebody with somebody, and then increase IP address resource utilization.
So that software coordinates realization as an example, as shown in figure 1, the present invention provides a kind of device for detecting free IP addresses, essence
It is to read corresponding computer program from nonvolatile memory by the CPU of NM server to be formed to operation in internal memory
Logic device.The carrier that NM server runs as apparatus of the present invention, its hardware environment typically at least all includes CPU, internal memory
And nonvolatile memory supports the operation of above-mentioned logic device.Certainly, the NM server also includes that other are such as defeated
Enter the business hardware such as output port, be not the core component for realizing the object of the invention due to these, will not be described here and also do not scheme
Show.In addition, the present invention is also not excluded for other such as using only hardware or the implementation of software and hardware combining.
Further as shown in figure 1, apparatus of the present invention include:Configuration module, enquiry module, detection module, update module with
And output module.Wherein, configuration module and enquiry module are arranged at the foreground of software program, for being interacted simultaneously with keeper
The instruction that keeper sets is handed down to detection module, update module and the output module on backstage;Detection module, update module
And output module is then arranged at the backstage of software program, the finger sent according to foreground configuration module, enquiry module is respectively used to
Order carries out the detection of IP address accessibility, the renewal of free IP addresses data and the output of free IP addresses data.In the present invention,
Described device reads by CPU and instructs during realizing that free IP addresses are detected, each intermodule interaction flow is specifically as schemed
Shown in 2:
Step 1, configuration module receive the instruction of the startup detection free IP addresses of keeper's setting, and after sending it to
Detection module, update module and output module in platform program.
Specifically, when keeper determines to start free IP addresses detection function, then network manager is needed by configuring mould
Block setting starts the instruction of detection free IP addresses.At the same time, in order to realize the detection to free IP addresses, keeper also needs
The parameter instruction of other detection free IP addresses is further set by configuration module.For example:IP address accessible detecting
Cycle(Can be in units of hour, span is 1-12, and wherein detection cycle is smaller, that is, IP address accessible detecting
Granularity is smaller, and detection free IP addresses can be more accurate), the free IP addresses data update cycle and when keeper send close inspection
After surveying the instruction of free IP addresses, if continue the configuration parameters such as the record of free IP addresses in retention data storehouse.
In the present invention, the free IP addresses data update cycle should be greater than be equal to the IP address accessible detecting cycle.It is preferred that
Ground, the free IP addresses data update cycle is some integral multiples in IP address accessible detecting cycle.
When network manager completes above-mentioned parameter with postponing, the configuration module is further by the order parameter of above-mentioned configuration
It is sent respectively to detection module in background program, update module and output module.
After step 2, detection module receive the instruction of startup detection free IP addresses of configuration module transmission, according to management
Whether the IP address accessible detecting cycle detection IP address of member's setting is reachable, if it is, by reachable IP address
IP address be recorded up in list, if it is not, then inaccessible IP address recorded in the unreachable list of IP address.
Specifically, when backstage detection module receives the instruction of the startup detection free IP addresses that foreground configuration module sends
When, the detection module can start one according to keeper by the IP address accessible detecting cycle that foreground configuration module is set
Corresponding detection timer, so as to detection module according to keeper's customized cycle come cycle detection NM server institute
The IP address reachable state of management.
It should be noted that in the present invention, when detection module is examined for the first time within the free IP addresses data update cycle
Survey IP address whether up to when, the state of reachability that detection module needs give tacit consent to all allocated IP address be it is unreachable, with
Ensure within the free IP addresses data update cycle, whether each IP address is reachable to be at least detected once.In addition, when detection mould
Block has been distributed after IP address accessible detecting finishes all, and the reachable IP address of all detections recorded up to IP address row
In table, all inaccessible IP address recorded in unreachable IP address list.If now free IP addresses data update
Cycle not yet reaches, then, when next detection cycle arrives, detection module only can be to those at upper one week for the detection module
Inaccessible IP address is detected again during detection in phase, then remembers the reachable IP address of all detections in the detection cycle
Record up in IP address list, inaccessible IP address recorded in unreachable IP address list.Go round and begin again, until idle
Untill when the IP address data update cycle reaches.
Step 3, when reaching the free IP addresses data update cycle, update module is entered to the free IP addresses in database
Row updates.
In order to realize the object of the invention, in realization of the invention, except enabling the IP address accessibility inspection described in step 2
Survey outside corresponding timer, further, the detection module also enables one with the free IP addresses data update cycle simultaneously
Corresponding data update timer, so that when reaching the free IP addresses data update cycle, detection module can be remembered in time
The all of record are sent to update module up to IP address and unreachable IP address information, so that update module is in database
Free IP addresses data are updated.
After update module receives all reachable IP address and unreachable IP address of detection module transmission, in database
Free IP addresses be updated.Specially:When update module receives all up to IP address and not of detection module transmission
Up to after IP address, the free IP addresses in further reading database will be within the free IP addresses data update cycle through inspection
Survey reachable free IP addresses to be deleted from database, while will not exist in database but update week in free IP addresses data
During the inaccessible IP address of detection increases to database in phase, and it is existing in database but in free IP addresses data more
The inaccessible IP address of detection in the new cycle, then update the data free IP addresses in storehouse according to the free IP addresses data update cycle
Idle number of days.
By after the interaction of above steps intermodule, the present invention can realize the permanently effective inspection to free IP addresses
Survey, and the accessible detecting according to IP address have recorded the long-term distribution free IP addresses not used simultaneously.
Further describe keeper is how to complete inquiry to these free IP addresses, release and divide again below
Match somebody with somebody, and then increase IP address resource utilization.
The query statement of the free IP addresses that step 4, enquiry module set according to keeper, query statement is sent to defeated
Go out module, free IP addresses in the output module reading database, and the free IP addresses of inquiry content will be met to feed back to
Enquiry module.
Specifically, when the free IP addresses that keeper needs inquiry to distribute, it is by looking into that foreground program is set
Ask module and set specific query statement.Wherein described query statement can every time manually enter completion by keeper, and certain has
The inquiry of qualified free IP addresses in body IP address or IP address section, it is also possible to by network manager according to predetermined
Strategy setting is inquired about into automatic.For example:When keeper's query statement automatic according to predetermined strategy setting, can be according to fixed week
Phase(For example with " moon " for unit)Or the idle number of days of the IP address of free time completes automatic inquiry more than or equal to a certain threshold value etc.
And output.
When enquiry module receive keeper manually enter or set automatic query statement after, send it to output mould
Block.The output module meets query statement content according to the input or the automatic query statement of setting in reading database
Free IP addresses, and it is exported to the enquiry module on foreground, discharged for keeper and redistributed, and will release and
The free IP addresses redistributed are deleted from database, and then increase the resource utilization of free IP addresses.
In addition, detecting free time IP ground by the closing that foreground configuration module sets when backstage detection module receives keeper
During the instruction of location, idle IP detection timers can be stopped and free IP addresses data update timer, while being set according to user
The fixed parameter instruction for whether retaining historical record decide whether delete database in record free IP addresses data.
In order that those skilled in the art are more clear and clear, below in conjunction with the exemplary application of the present invention shown in Fig. 3
Scene describes the present invention in detail.
Assuming that under certain application scenarios, 250 IP address have been assigned with certain network, network segment interval is:10.153.89.1
~10.153.89.250, records 10.153.89.131~10.153.89.250 this 120 in the database of NM server
IP address free time number of days is 10 days, does not have remaining IP address free message.
It is further assumed that under the application scenarios, it is 12 hours to set the IP address accessible detecting cycle, that is, every 12
Hour, detection module re-starts accessible detecting to inaccessible IP address in a upper detection cycle.And set each IP
The address unreachable time limit is 3 seconds, that is, if detection module receives the reachable response message of IP address in 3 seconds, depending on the IP
Address up to and by renewals in reachable IP address list, whereas if not received also more than 3 seconds after an IP address transmission
The corresponding response message of the IP address, then it is unreachable regarding the IP address, by renewal in unreachable IP address list, wherein not
It is 1 second up to the frequency that IP address updates, i.e., inaccessible IP address is updated once every 1 second;Free IP addresses data are more
The new cycle is one day, and the time that data update is the 23 of the same day:59:59 seconds.
ICMP is sent with detection module below(Internet Control Message Protocol, Internet controls
Message protocol)The detection intraday accessibility of IP address and idle number of days situation of change are illustrated as a example by message.
Before the daily first time detection cycle of detection module startup starts, specific implementation of the invention, meeting
It is unreachable to give tacit consent to the state of reachability on the day of all allocated IP address.When first detection cycle of arrival(It is assumed to be 0:
0:0 second)Afterwards, 250 IP address to be detected in foregoing network segment interval can be write non-transmission list by the detection module
In ListA, then, the detection module can construct icmp packet, and 10.153.89.1~10.153.89.100 is sent for the first time
Individual message(The value can arbitrarily be set by keeper), while this 100 IP address for having sent are transferred into internal memory having sent
In list ListB, and record this 100 IP address for having sent and send the time accordingly.After first time sends, do not send
150 IP address are there remains in list ListA.
In view of the pressure of aspect of performance, in the exemplary application scenarios of the invention, preceding 100 IP ground is being sent
Behind location, the ICMP response messages of the IP address of the transmission can be received, and set a length of 100 milliseconds during reception, if this 100
Receive several ICMP response messages in millisecond, then in internal memory reachable IP address list ListC to record these IP address reachable,
These IP address are deleted from transmission list ListB simultaneously, is then selected in remaining not detected IP address in ListA
Same number IP address continues construction icmp packet and is transmitted again, is completed until all of IP address is all detected.
With exemplary application scene of the present invention as an example it is assumed that detection module is in 100 milliseconds, have received altogether before this
10.153.89.1~the 10.153.89.10 of transmission this 10 response messages of IP address, then up to IP address list in internal memory
This 10 IP address are recorded in ListC reachable, while delete this 10 IP address from transmission list ListB, then followed by
It is continuous that 10 IP address are selected from ListA(Such as 10.153.89.101~10.153.89.110)Continue construction icmp packet to enter
Row sends, remaining 140 IP address in so subsequent non-transmission list ListA.Used because one cycle sends 100 IP address
Shi Keneng is no more than 1 second, has IP address in ListA and ListB during this period, and the ICMP that 100 milliseconds are at this moment received again should
Message is answered, if receive this 20 ICMP response messages of 10.153.89.11~10.153.89.30, then up to IP in internal memory
This 20 IP address of record 10.153.89.11~10.153.89.30 are reachable in address list ListC, and deleted from ListB
These IP address.Then 20 IP address of reselection from ListA(Such as 10.153.89.111~10.153.89.130)Structure
Make icmp packet to be transmitted, remaining 120 IP address in ListB.The like, until all of IP address has all been detected
Into.
Due to the application scenarios according to present invention setting, detection module can will update unreachable IP address list every 1 second
ListD is once.That is, overtime unreachable IP address is deleted from transmission list ListB, and it is transferred to unreachable IP ground
In location list ListD.Because the unreachable time-out time of IP address in this application scene, setting is 3 seconds, before institute twice not
Have any IP address time-out.When the IP address for sending still was not received by corresponding ICMP response messages more than 3 seconds, then
These overtime IP address are deleted from the IP address list ListB for having sent, and the overtime unreachable IP address is transferred to not
In up to IP address list ListD, it is assumed that have 10 IP address with current time difference more than or equal to 3 seconds in ListB, be
10.153.89.91~10.153.89.100, recording these IP address in the unreachable IP address list ListD in internal memory can not
Reach, and this 10 IP address are deleted from ListB, if now there is the IP address not detected in ListA, continue to construct 10
The icmp packet of individual IP address is transmitted detection.
When ListA and ListB are space-time, show that the IP reachability detection has detected completion in this detection cycle.
Assuming that the following 10.153.89.91~10.153.89.100 of testing result, 10.153.89.200~10.153.89.250 be not for
Reachable, remaining IP address is reachable.According to testing result, apparatus of the present invention update the data the number of days of IP address free time in storehouse, internal memory
And the IP address accessibility on the same day, there are following several situations:
When in internal memory up to IP address list ListC in record 10.153.89.1~10.153.89.90,
10.153.89.101~10.153.89.199 these IP address same day states are reachable, are remembered up in IP address list in internal memory
Record that these IP address free time number of days is 0 and same day state is reachable, detection module of the present invention is no longer during next accessible detecting
Detect these IP address.
When in unreachable IP address list ListD in internal memory record 10.153.89.91~10.153.89.100,
10.153.89.200~10.153.89.250 same day states are unreachable, and next accessible detecting continues to detect these IP ground
Location.When the next detection cycle of arrival(It is assumed to be 12:00:01 second)When, only to 10.153.89.91~10.153.89.100,
10.153.89.200~10.153.89.250 these IP address carry out accessible detecting.Then will be detected in the detection cycle
During reachable IP address recorded up to IP address list ListC, unreachable IP address be recorded into unreachable IP address list
In ListD.Go round and begin again, reached until the free IP addresses data update cycle.
Furthermore, it is contemplated that under some application scenarios, the software of individual plants can ignore the ICMP detections of IP address in network
Message, in the present invention, on the basis of icmp packet detection, further increases the ARP testing mechanisms of free IP addresses, has
Body is as follows:
After detection module is detected in the icmp packet for completing IP address, the further poll gateway within ARP digestion periods
In the network equipment, therefrom obtain equipment ARP information, if during unreachable list ListD is got in ARP information record
IP address, then the state on the day of the IP address from " unreachable " is revised as " reachable " and moves on to up to list ListC it
In.
When the free IP addresses data update cycle is reached, for example:23 are reached in this application scene:59:It is false at 59 seconds
If all unreachable in 10.153.89.90~10.153.89.95,10.153.89.230~10.153.89.250 mono- day.Then more
New module increases the idle number of days of these IP address 1 day, updates in free IP addresses database.Final result is
The idle number of days of 10.153.89.90~10.153.89.95 is 1 day, 10.153.89.230~10.153.89.250 free time days
Number is 11 days, and remaining IP address free time number of days is 0.It is interim over next day, all IP address same day reachable states are reset for not
It is reachable, start the IP address accessible detecting of new a day.
Compared with prior art compared with the present invention is by the permanently effective detection of IP address, recording what is do not used for a long time
IP address, so as to facilitate network manager to the release of these free IP addresses, redistribute, and then increases the IP address utilization of resources
Rate.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (18)
1. it is a kind of detect free IP addresses method, it is characterised in that methods described includes:
Receive the instruction of the startup detection free IP addresses of keeper;
It is whether reachable according to the IP address accessible detecting cycle detection IP address that keeper sets, if it is, will
Reachable IP address recorded IP address up in list, if it is not, then inaccessible IP address recorded into IP address can not
Up in list;
When reaching the free IP addresses data update cycle, by reachable after testing IP within the free IP addresses data update cycle
Deleted from database address;To not exist in database but detect inaccessible IP within the free IP addresses data update cycle
Address increases in database.
2. the method for claim 1, it is characterised in that the free IP addresses data update cycle is more than or equal to IP ground
The location accessible detecting cycle.
3. method as claimed in claim 2, it is characterised in that the free IP addresses data update cycle is that IP address is reachable
Some integral multiples of property detection cycle.
4. the method for claim 1, it is characterised in that detect IP for the first time within the free IP addresses data update cycle
Address whether up to when, give tacit consent to the state of reachability of all allocated IP address for unreachable.
5. method as claimed in claim 4, it is characterised in that after first time is detected, in the inspection of next IP address accessibility
Survey cycle detection IP address whether up to when, only to detecting that inaccessible IP address was entered in the upper IP address accessible detecting cycle
Row is detected again, and the reachable IP address of all detections in next IP address accessible detecting cycle recorded up to IP
In address list, inaccessible IP address recorded in unreachable IP address list.
6. the method for claim 1, it is characterised in that methods described also includes:
When reaching the free IP addresses data update cycle, will be existing in database but in the free IP addresses data update cycle
The interior inaccessible IP address of detection, the idle day of free IP addresses in storehouse is updated the data according to the free IP addresses data update cycle
Number.
7. the method as described in claim 1 or 6, it is characterised in that methods described also includes:
The query statement of the free IP addresses set according to keeper, free IP addresses in reading database, and inquired about meeting
The free IP addresses of content feed back to enquiry module.
8. method as claimed in claim 7, it is characterised in that the query statement can be manually entered by keeper,
Can be by keeper according to predetermined strategy setting into automatic inquiry.
9. the method for claim 1, it is characterised in that methods described also includes:
Close the instruction of detection free IP addresses, and set according to keeper whether retain the parameter instruction of historical record to determine
It is fixed whether to delete the free IP addresses data recorded in database.
10. a kind of device for detecting free IP addresses, at least includes configuration module, detection module and update module, its feature
It is:
Configuration module, for receiving the instruction of the startup detection free IP addresses of keeper's setting and realizing detection free IP addresses
Other specification instruction, and send it to detection module, update module;
Detection module, for after the instruction of startup detection free IP addresses for receiving configuration module transmission, being set according to keeper
Whether fixed IP address accessible detecting cycle detection IP address is reachable, if it is, reachable IP address is recorded
To IP address up in list, if it is not, then inaccessible IP address recorded in the unreachable list of IP address;
Update module, for when reaching the free IP addresses data update cycle, will be within the free IP addresses data update cycle
Reachable IP address is deleted from database after testing;To not exist but within the free IP addresses data update cycle in database
In detecting inaccessible IP address and increasing to database.
11. devices as claimed in claim 10, it is characterised in that the free IP addresses data update cycle of the update module
More than or equal to the IP address accessible detecting cycle of detection module.
12. devices as claimed in claim 11, it is characterised in that the free IP addresses data update cycle of the update module
It is some integral multiples in the IP address accessible detecting cycle of detection module.
13. devices as claimed in claim 10, it is characterised in that detection module is within the free IP addresses data update cycle
One-time detection IP address whether up to when, give tacit consent to the state of reachability of all allocated IP address for unreachable.
14. devices as claimed in claim 13, it is characterised in that detection module by first time detect after, in subsequent IP
In address reachability detection cycle detection IP address whether up to when, only to unreachable in the upper IP address accessible detecting cycle
IP address detected again, and by the reachable IP address of all detections in the subsequent IP address accessible detecting cycle
Recorded up in IP address list, inaccessible IP address recorded in unreachable IP address list.
15. devices as claimed in claim 10, it is characterised in that:
The update module, is additionally operable to when reaching the free IP addresses data update cycle, will be existing in database but in sky
The inaccessible IP address of detection, storehouse is updated the data according to the free IP addresses data update cycle in the not busy IP address data update cycle
The idle number of days of middle free IP addresses.
16. device as described in claim 10 or 15, it is characterised in that described device also includes enquiry module and output mould
Block, wherein:
Enquiry module, the query statement of the free IP addresses for keeper to be set is sent to output module;
Output module, after receiving the query statement of enquiry module transmission, free IP addresses in reading database, and satisfaction is looked into
The free IP addresses for asking content feed back to enquiry module.
17. devices as claimed in claim 16, it is characterised in that the query statement in the enquiry module i.e. can be by managing
Member manually enters in enquiry module, it is also possible to be arranged to look into automatically in enquiry module according to predetermined strategy by keeper
Ask.
18. devices as claimed in claim 10, it is characterised in that the configuration module is additionally operable to:
Whether the instruction of detection free IP addresses is closed in keeper's setting, and the ginseng for retaining historical record set according to keeper
Number instructs to decide whether to delete the free IP addresses data recorded in database.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310562248.2A CN103595566B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device for detecting free IP addresses |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310562248.2A CN103595566B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device for detecting free IP addresses |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103595566A CN103595566A (en) | 2014-02-19 |
| CN103595566B true CN103595566B (en) | 2017-06-06 |
Family
ID=50085557
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310562248.2A Active CN103595566B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device for detecting free IP addresses |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103595566B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104579827A (en) * | 2014-12-24 | 2015-04-29 | 北京华胜天成科技股份有限公司 | IP (Internet protocol) address conflict detecting method and device |
| CN104580548A (en) * | 2014-12-24 | 2015-04-29 | 北京华胜天成科技股份有限公司 | IP (Internet protocol) address conflict detecting method and device |
| CN107181829B (en) * | 2016-03-10 | 2020-09-11 | 北京神州泰岳软件股份有限公司 | Method and device for monitoring IP address state |
| CN106453684A (en) * | 2016-11-07 | 2017-02-22 | 迈普通信技术股份有限公司 | IP address management method and IP address management device |
| CN107728773A (en) * | 2017-10-17 | 2018-02-23 | 北京腾凌科技有限公司 | Magnetic disc control method and device |
| CN108259218B (en) * | 2017-10-30 | 2021-04-27 | 新华三技术有限公司 | IP address allocation method and device |
| CN109246180B (en) * | 2018-07-24 | 2021-05-21 | 深圳市魔数智擎人工智能有限公司 | Information query method, relay server and computer readable medium |
| CN109525683B (en) * | 2018-11-14 | 2020-07-17 | 中盈优创资讯科技有限公司 | Vacant address diving method and device for IPV4 address of metropolitan area network |
| CN119398355A (en) * | 2025-01-03 | 2025-02-07 | 碳金智瑞(天津)科技有限公司 | An intelligent data management system and method for experimental instruments based on RFID electronic tags |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102801825A (en) * | 2012-08-29 | 2012-11-28 | 清华大学 | Validity detection method for terminal multiple IP addresses |
| CN102932498A (en) * | 2012-10-24 | 2013-02-13 | 广州杰赛科技股份有限公司 | Virtual machine internet protocol (IP) resource management method of cloud computing platform |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1992736A (en) * | 2005-12-30 | 2007-07-04 | 西门子(中国)有限公司 | IP address distribution method and use thereof |
-
2013
- 2013-11-12 CN CN201310562248.2A patent/CN103595566B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102801825A (en) * | 2012-08-29 | 2012-11-28 | 清华大学 | Validity detection method for terminal multiple IP addresses |
| CN102932498A (en) * | 2012-10-24 | 2013-02-13 | 广州杰赛科技股份有限公司 | Virtual machine internet protocol (IP) resource management method of cloud computing platform |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103595566A (en) | 2014-02-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103595566B (en) | A kind of method and device for detecting free IP addresses | |
| CN111371696B (en) | Method for realizing Pod network flow control in Kubernetes | |
| CN105376083B (en) | Energy-saving control method, management server and the network equipment | |
| CN109788027A (en) | Method of data synchronization, device, server and computer storage medium | |
| CN105282047A (en) | Access request processing method and device | |
| US10230644B2 (en) | Distributed API proxy system and apparatus and method for managing traffic in such system | |
| US10075409B2 (en) | Terminal and application synchronization method therefor | |
| CN106060909A (en) | Network access method and mobile terminal | |
| CN100496056C (en) | A method and node device for updating address resolution protocol entries | |
| CN109558065A (en) | Data-erasure method and distributed memory system | |
| EP2486523A1 (en) | Computer network service providing system including self adjusting volume enforcement functionality | |
| WO2017206943A1 (en) | Optical network terminal and operating method thereof, communication system, and data storage medium | |
| CN102868770A (en) | Method, equipment and system for distributing interface | |
| KR20130024801A (en) | Terminal and method for managing application thereof | |
| CN102207888A (en) | Method and device for managing timer | |
| CN101577646A (en) | Alarm synchronizing method based on SNMP | |
| CN108886689B (en) | Resource allocation method, equipment and system | |
| US8855693B2 (en) | Method and apparatus for controlling wireless devices | |
| US8595351B2 (en) | Monitoring system | |
| CN105278931A (en) | Android system application program backstage self-start forbidden method and terminal | |
| EP3962180B1 (en) | Network-based control method for power consumption of applications, terminal and storage medium | |
| CN105897869A (en) | APP sleep management method and apparatus | |
| CN101119234B (en) | Apparatus and method for implementing access control | |
| US12032429B2 (en) | Application program freezing control method and apparatus, terminal, and readable storage medium | |
| US20210250995A1 (en) | Performance-guaranteed channel access control for security alarm and image sensors |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Applicant before: Huasan Communication Technology Co., Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |