CN106302843B - A kind of IP address library update method and device - Google Patents

A kind of IP address library update method and device Download PDF

Info

Publication number
CN106302843B
CN106302843B CN201510274507.0A CN201510274507A CN106302843B CN 106302843 B CN106302843 B CN 106302843B CN 201510274507 A CN201510274507 A CN 201510274507A CN 106302843 B CN106302843 B CN 106302843B
Authority
CN
China
Prior art keywords
address
library
data
information
address data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510274507.0A
Other languages
Chinese (zh)
Other versions
CN106302843A (en
Inventor
袁苏龙
徐永丰
吴林峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Supreme Being Joins Information Technology Share Co Ltd
Original Assignee
Shanghai Supreme Being Joins Information Technology Share Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Supreme Being Joins Information Technology Share Co Ltd filed Critical Shanghai Supreme Being Joins Information Technology Share Co Ltd
Priority to CN201510274507.0A priority Critical patent/CN106302843B/en
Publication of CN106302843A publication Critical patent/CN106302843A/en
Application granted granted Critical
Publication of CN106302843B publication Critical patent/CN106302843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of IP address library update method and device, which comprises when receiving update request every the first preset time, the IP address data in target ip address library are divided into first kind IP address data and the second IP like address date according to data source;When determining that the information of home location in the first kind IP address data and the information of home location in the corresponding IP address data in first IP address library are inconsistent, the information of home location in the first kind IP address data is updated using the information of home location in the corresponding IP address data in first IP address library;When determining that the information of home location in the second IP like address date and the information of home location in corresponding IP address data in the second IP address library are inconsistent, the information of home location in the second IP like address date is updated using the information of home location in IP address data corresponding in second IP address library.IP address data updating efficiency can be improved in above-mentioned scheme.

Description

A kind of IP address library update method and device
Technical field
The invention belongs to fields of communication technology, more particularly to a kind of IP address library update method and device.
Background technique
Internet (Internet) by transmission control protocol (Transmission Control Protocol, TCP)/ Internet protocol (Internet Protocol, IP) realizes different hardware structure, different operating system, no in the world With the interconnection of network system.On the internet, each node depends on unique IP address and distinguishes one another and connect each other.Often The computer of one networking haves no right sets itself IP address, by interconnection network data distributor gear (Internet Assigned Numbers Authority, IANA) it is responsible for the distribution of IP address.
IP address library, as the term suggests it is exactly the database for storing IP address.In theory, one comprehensively and accurately IP address library can help user correctly to identify every computer on Internet.With the quick hair of internet industry It opens up, the update cycle of the IP address data in network is also shorter and shorter.In order to keep the accurate scheduling of data in network, need pair Corresponding IP address data are regularly updated.
But IP address data-updating method in the prior art is usually manually updated, it is time-consuming and laborious.Therefore, IP address data-updating method in the prior art, there is update inefficiency.
Summary of the invention
The embodiment of the present invention solves the problems, such as it is how to improve IP address data updating efficiency.
To solve the above problems, the embodiment of the invention provides a kind of IP address library update methods, which comprises
When receiving update request every the first preset time, by the IP address data in target ip address library according to number First kind IP address data and the second IP like address date are divided into according to source, the first kind IP address data source is in fortune Quotient is sought, the second IP like address date source internet, the IP address data include the ownership place of IP address and IP address Information;
Judge information of home location in the first kind IP address data and corresponding IP address number in the first IP address library Whether the information of home location in is consistent;
When determine the information of home location in the first kind IP address data with it is corresponding in first IP address library When information of home location in IP address data is inconsistent, using the ownership in the corresponding IP address data in first IP address library Information of home location in first kind IP address data described in ground information update;
Judge information of home location in the second IP like address date and corresponding IP in preset second IP address library Whether the information of home location in address date is consistent, and the IP address number obtained from internet is stored in second IP address library According to;
When determining the information of home location in the second IP like address date and corresponding IP address in the second IP address library When information of home location in data is inconsistent, believed using the ownership place in IP address data corresponding in second IP address library Breath is updated the information of home location in the second IP like address date.
Optionally, the method also includes: in the updated IP address data in the target ip address library add number According to the information in source and renewal time.
Optionally, the method also includes: generate the update table of comparisons of the IP address data in the target ip address library, institute State the IP address data updated include in the table of comparisons before updating and the corresponding updated IP address data.
Optionally, described when the information of home location in the determining second IP like address date and phase in the second IP address library When the information of home location in IP address data answered is inconsistent, using in IP address data corresponding in second IP address library Information of home location the information of home location in the second IP like address date is updated, comprising:
The second IP like address date is divided into multiple IP address sections, the IP address section divided The interior corresponding resource data of IP address data is identical;
It obtains the start ip address of current IP address section and terminates IP address;
Judge whether the start ip address and the information of home location for terminating IP address are consistent;
When determining that the start ip address is consistent with the information of home location of IP address is terminated, next IP address area is judged Whether the start ip address of section is consistent with the information of home location for terminating IP address;
When the information of home location for determining the start ip address and termination IP address is inconsistent, by current IP address section More than two IP address sub-segments are divided into, two adjacent IP in the more than two IP address sub-segments divided The information of home location of address sub-segments is different;
Judgement divide information of home location in obtained corresponding IP address data of more than two IP address sub-segments with Whether the information of home location of corresponding IP address data is consistent in second IP address library;
Information of home location in the corresponding IP address data of more than two IP address sub-segments that determining division obtains With the information of home location in IP address data corresponding in second IP address library it is inconsistent when, use second IP address Information of home location in library in corresponding IP address data corresponds to the obtained more than two IP address sub-segments that divide IP address data in information of home location be updated.
It is optionally, described that current IP address section partition is become into more than two IP address sub-segments, comprising:
Dotted decimal notation, which is respectively adopted, in the start ip address of current IP address section and termination IP address indicates;
Judge that the start ip address of current IP address section and termination IP address are current according to the sequence from a high position to low level Whether the number of digital section is identical;
When determining that the start ip address is identical with the number of IP address current number field is terminated, more next number Section number it is whether identical;
When determine start ip address with terminate IP address current number field number it is different, judge the termination IP address and Whether the half of difference is more than or equal to 1 between the number of the current number field of the start ip address;
When the half of difference between the number of current number field for determining the termination IP address and the start ip address It when more than or equal to 1, recalculates to obtain intermediate IP address, and judges the ownership of the start ip address and the intermediate IP address Whether ground information is identical;Wherein, the number of each digital section before the current number field of the intermediate IP address and the end Only digital identical, the number of current number field of the respective counts field of IP address are as follows: the termination IP address and start ip address Current number field number between difference half, the sum of the number with the current number field of the start ip address, and working as The number all zero of the following digital section of preceding digital section;
When the ownership place for determining the start ip address and the intermediate IP address is identical, the intermediate IP address is made For the start ip address, and execute described when determining the current number field for terminating IP address and the start ip address When the half of difference is more than or equal to 1 between number, recalculate to obtain intermediate IP address, and judge the start ip address and institute The whether identical operation of ownership place of intermediate IP address is stated, until the initial address that redefines and the termination address is current The number of digital section is identical, or the intermediate IP address redefined is different from the ownership place of the start ip address;
When determining the ownership place difference of the start ip address and the intermediate IP address, the start ip address is judged It is whether identical as the ownership place of the IP address of the previous position sequence of the intermediate IP address;
When the ownership place for determining the IP address of previous position sequence of the start ip address and the intermediate IP address is identical, By the IP section of the IP address of the previous position sequence from the start ip address to the intermediate IP address, the IP obtained as division Address sub-segments, and continue to divide to from the intermediate IP address to the IP address section that the termination IP address forms, Until the information of home location for dividing two IP address sub-segments adjacent in obtained more than two IP address sub-segments It is different;
When determining the ownership place difference of the IP address of previous position sequence of the start ip address and the intermediate IP address, Using the intermediate IP address as the termination IP address, and execute described when the determining termination IP address and the starting ip When the half of difference is more than or equal to 1 between the number of the current number field of address, recalculate to obtain intermediate IP address, and judge The whether identical operation of the ownership place of the start ip address and the intermediate IP address, until the start ip address with it is described The ownership place of the intermediate IP address recalculated is identical.
Optionally, further includes: every the second preset time using the IP address data in IP address library disclosed in internet IP address data in second IP address library are updated.
Optionally, the information of home location in the IP address data includes home country, province, city and the fortune of IP address Seek the information of quotient;
The IP address data using in IP address library disclosed in internet are to the IP in second IP address library Location data are updated, comprising:
The IP address library of third, the four, the 5th and the 6th is chosen from multiple IP address library disclosed in internet;
When determining the corresponding IP address data of corresponding IP address section in third IP address library, with the four, the 5th or When corresponding IP address data are consistent in the 6th IP address library of person, using IP address data corresponding in third IP address library IP address data in second IP address library are updated;
When determining in the third IP address library home country, province and operator's informaiton in corresponding IP address data, Phase is distinguished with home country in corresponding IP address data, province and operator's informaiton in the 5th or the 6th IP address library Meanwhile using IP address data corresponding in third IP address library to the IP address data in second IP address library into Row updates;
When determining corresponding IP address data and corresponding IP in the 5th IP address library in the 4th IP address library When address date is consistent, using IP address data corresponding in the 4th IP address library to the IP in second IP address library Address date is updated;
When determining corresponding IP address data and corresponding IP in the 6th IP address library in the 5th IP address library When address date is consistent, using IP address data corresponding in the 5th IP address library to the IP in second IP address library Address date is updated;
When determining in the 4th IP address library home country, province and operator's informaiton in corresponding IP address data, When with home country in IP address data corresponding in the 5th IP address library, province and identical operator's informaiton difference, using institute Corresponding IP address data in the 4th IP address library are stated more to be updated the IP address data in second IP address library;
When determining in the 4th IP address library home country, province and operator's informaiton in corresponding IP address data, When with home country in IP address data corresponding in the 6th IP address library, province and identical operator's informaiton difference, using institute Corresponding IP address data in the 4th IP address library are stated to be updated the IP address data in second IP address library;
When determining in the 4th IP address library home country, province information in corresponding IP address data, with described Home country, province information difference are identical in corresponding IP address data in five IP address libraries, and the 4th or the 5th IP When there is no the information of home-operator in corresponding IP address data in the library of location, using phase in the 4th or the 5th IP address library the two The corresponding IP address data in the IP address library of the information in the IP address data answered with home-operator are to the 2nd IP IP address data in address base are updated;
When determining in the 4th IP address library home country, province information in corresponding IP address data, with described Home country, province information difference are identical in corresponding IP address data in six IP address libraries, and the 4th or the 6th IP When there is no the information of home-operator in corresponding IP address data in the library of location, using phase in the 4th or the 6th IP address library the two Corresponding IP address data are to the 2nd IP in the IP address library of information in the IP address data answered with home-operator IP address data in address base are updated;
When determining in the 5th IP address library home country, province information in corresponding IP address data, with the 6th IP Home country, province information difference are identical in corresponding IP address data in address base, and the 5th or the 6th IP address library In when there is no the information of home-operator in corresponding IP address data, using corresponding in the 5th or the 6th IP address library the two Corresponding IP address data are to second IP address in the IP address library of information in IP address data with home-operator IP address data in library are updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information for belonging to country, operator, with IP address home country, operation in corresponding IP address data in third IP address library When the information of quotient is consistent, using IP address data corresponding in third IP address library to the IP in second IP address library Address date is updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information for belonging to country, operator, with IP address home country, operation in corresponding IP address data in the 4th IP address library When the information of quotient is consistent, using IP address data corresponding in the 4th IP address library to the IP in second IP address library Address date is updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information for belonging to country, operator, with IP address home country, operation in corresponding IP address data in the 5th IP address library When the information of quotient is consistent, using IP address data corresponding in the 5th IP address library to the IP in second IP address library Address date is updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information for belonging to country, operator, with IP address home country, operation in corresponding IP address data in the 6th IP address library When the information of quotient is consistent, using IP address data corresponding in the 6th IP address library to the IP in second IP address library Address date is updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information that belongs to country, province, with IP address home country in corresponding IP address data in third IP address library, province When information is consistent, using IP address data corresponding in third IP address library to the IP address in second IP address library Data are updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information that belongs to country, province, with IP address home country in corresponding IP address data in the 4th IP address library, province When information is consistent, using IP address data corresponding in the 4th IP address library to the IP address in second IP address library Data are updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information for belonging to country, province, with IP address home country in corresponding IP address data in the 5th IP address library, province letter When ceasing consistent, using in the 5th IP address library corresponding IP address data to the IP address data in second IP address library It is updated;
When determining that IP address is returned in corresponding IP address data at least two IP address libraries in the multiple IP address library The information that belongs to country, province, with IP address home country in corresponding IP address data in the 6th IP address library, province When information is consistent, using IP address data corresponding in the 6th IP address library to the IP address in second IP address library Data are updated.
Optionally, third IP address library is pure IP address library, and the 4th IP address library is Taobao's IP address library, The 5th IP address library is IP138 address base, and the 6th IP address library is IPCN address base.
Optionally, the method also includes: when every preset time receive update request when, further includes: described in backup Target ip address library.
The embodiment of the invention also provides a kind of IP address library updating device, described device includes:
Cache unit is suitable for the second IP address library of storage, is stored in second IP address library from internet acquisition IP address data;
Request unit is periodically updated, is suitable for sending to update to target ip address library every the first preset time and request;
Data dividing unit, suitable for when receive update request when, by the IP address data in target ip address library according to Data source is divided into first kind IP address data and the second IP like address date, the first kind IP address data source in Operator, the second IP like address date source internet, the IP address data include the ownership of IP address and IP address Ground information;
First judging unit, suitable for judging information of home location and the first IP address library in the first kind IP address data In information of home location in corresponding IP address data it is whether consistent;
First updating unit, suitable for when the information of home location and the first IP in the determining first kind IP address data When the information of home location in corresponding IP address data in address base is inconsistent, using the corresponding IP in first IP address library Information of home location in address date updates the information of home location in the first kind IP address data;
Second judgment unit, suitable for judging the information of home location in the second IP like address date and preset 2nd IP Whether the information of home location in address base in corresponding IP address data is consistent;
Second updating unit, suitable for when the information of home location and the second IP address in the determining second IP like address date When information of home location in library in corresponding P address data is inconsistent, corresponding IP address in second IP address library is used Information of home location in data is updated the information of home location in the second IP like address date.
Optionally, described device further include: marking unit, suitable for the updated IP address in the target ip address library The information of data source and renewal time is added in data.
Optionally, described device further includes generation unit, the IP address data suitable for the generation target ip address library The table of comparisons is updated, includes IP address data and the corresponding updated IP address number before updating in the update table of comparisons According to.
Optionally, second updating unit is suitable for the second IP like address date with being divided into multiple IP Location section, the corresponding resource data of IP address data in the IP address section divided are identical;Obtain current IP address area The start ip address and termination IP address of section;Judge the start ip address and it is described terminate IP address information of home location whether Unanimously;When determining that the start ip address is consistent with the information of home location of IP address is terminated, next IP address section is judged Start ip address and terminate IP address information of home location it is whether consistent;When determine the start ip address and terminate IP address Information of home location it is inconsistent when, current IP address section partition is become into more than two IP address sub-segments, division obtains More than two IP address sub-segments in adjacent two IP address sub-segments information of home location it is different;Judgement is divided and is obtained The corresponding IP address data of more than two IP address sub-segments in information of home location and phase in second IP address library Whether the information of home location for the IP address data answered is consistent;When more than two IP address sub-segments that determining division obtains are corresponding IP address data in information of home location and the information of home location in corresponding IP address data in second IP address library When inconsistent, two obtained are divided to described using the information of home location in IP address data corresponding in the second IP address library Information of home location in the corresponding IP address data of above IP address sub-segments is updated.
Optionally, second updating unit is suitable for the start ip address of current IP address section and terminates IP address point It Cai Yong not dotted decimal notation expression;Start ip address and the end of current IP address section are judged according to the sequence from a high position to low level Only whether the number of IP address current number field is identical;When determining the start ip address and terminate IP address current number field Number it is identical when, more next digital section number it is whether identical;When determine start ip address and terminate IP address it is current The number of digital section is different, judges difference between the number of the current number field of the termination IP address and the start ip address Half whether be more than or equal to 1;When the number for determining the current number field for terminating IP address and the start ip address Between difference half be more than or equal to 1 when, recalculate to obtain intermediate IP address, and judge the start ip address and the centre Whether the information of home location of IP address is identical;Wherein, each digital section before the current number field of the intermediate IP address It is digital identical as the termination number of respective counts field of IP address, the number of current number field are as follows: the termination IP address The half of difference between the number of the current number field of start ip address, the number with the current number field of the start ip address The sum of word, and the number all zero of the following digital section of current number field;When determining the start ip address and the centre When the ownership place of IP address is identical, work as described in determining using the intermediate IP address as the start ip address, and described in execution When terminating the half of difference between the number of the current number field of IP address and the start ip address more than or equal to 1, count again Calculation obtains intermediate IP address, and judges the whether identical operation of the ownership place of the start ip address and the intermediate IP address, Until the initial address centre identical, or redefining as the number of current number field of the termination address redefined IP address is different from the ownership place of the start ip address;When the ownership for determining the start ip address and the intermediate IP address When ground difference, judge the IP address of the previous position sequence of the start ip address and the intermediate IP address ownership place whether phase Together;It, will be from when the ownership place for determining the IP address of previous position sequence of the start ip address and the intermediate IP address is identical The start ip address to the intermediate IP address previous position sequence IP address IP section, as the obtained IP address of division Sub-segments, and continue to divide to from the intermediate IP address to the IP address section that the termination IP address forms, until The information of home location for dividing two IP address sub-segments adjacent in obtained more than two IP address sub-segments is different; When determining the ownership place difference of the IP address of previous position sequence of the start ip address and the intermediate IP address, in described Between IP address as the termination IP address, and execute and described described terminate working as IP address and the start ip address when determining When the half of difference is more than or equal to 1 between the number of preceding digital section, recalculate to obtain intermediate IP address, and judge the starting The whether identical operation of the ownership place of IP address and the intermediate IP address, until the start ip address is recalculated with described The ownership place of obtained intermediate IP address is identical.
Optionally, described device further include: periodically update query unit, be suitable for every the second preset time using interconnection The IP address data netted in disclosed IP address library are updated the IP address data in second IP address library.
Optionally, the information of home location in the IP address data includes home country, province, city and the fortune of IP address Seek the information of quotient;The query unit that periodically updates is suitable for choosing third, the from multiple IP address library disclosed in internet Four, the 5th and the 6th IP address library;When determining the corresponding IP address data of corresponding IP address section in third IP address library, When consistent with IP address data corresponding in the four, the 5th or the 6th IP address library, using phase in third IP address library The IP address data answered are updated the IP address data in second IP address library;When determining third IP address library In phase in home country, province and operator's informaiton, with the 5th or the 6th IP address library in corresponding IP address data In the IP address data answered when home country, province and identical operator's informaiton difference, using phase in third IP address library The IP address data answered are updated the IP address data in second IP address library;When determining the 4th IP address library In corresponding IP address data it is consistent with IP address data corresponding in the 5th IP address library when, using the 4th IP Corresponding IP address data are updated the IP address data in second IP address library in the library of location;When determining the described 5th When corresponding IP address data are consistent with IP address data corresponding in the 6th IP address library in IP address library, using described Corresponding IP address data are updated the IP address data in second IP address library in 5th IP address library;Work as determination Home country, province and operator's informaiton in corresponding IP address data in the 4th IP address library, with the 5th IP address library In in corresponding IP address data when home country, province and identical operator's informaiton difference, using the 4th IP address library In corresponding IP address data more the IP address data in second IP address library are updated;When determining the 4th IP Home country, province and operator's informaiton in corresponding IP address data in address base, with corresponding IP in the 6th IP address library In address date when home country, province and identical operator's informaiton difference, using corresponding IP in the 4th IP address library Address date is updated the IP address data in second IP address library;It is corresponding in the 4th IP address library when determining IP address data in home country, province information, and belong to state in corresponding IP address data in the 5th IP address library Family, province information difference are identical, and run in corresponding IP address data without ownership in the 4th or the 5th IP address library When the information of quotient, using the information in IP address data corresponding in the 4th or the 5th IP address library the two with home-operator The corresponding IP address data in IP address library the IP address data in second IP address library are updated;When determining Home country, province information in corresponding IP address data are stated in the 4th IP address library, it is corresponding to the 6th IP address library IP address data in home country, province information difference it is identical, and corresponding IP in the 4th or the 6th IP address library When there is no the information of home-operator in the data of location, using in IP address data corresponding in the 4th or the 6th IP address library the two Corresponding IP address data are to the IP address in second IP address library in the IP address library of information with home-operator Data are updated;When determining in the 5th IP address library home country, province information in corresponding IP address data, with Home country, province information difference are identical in corresponding IP address data in six IP address libraries, and the 5th or the 6th IP When there is no the information of home-operator in corresponding IP address data in the library of location, using phase in the 5th or the 6th IP address library the two Corresponding IP address data are to the 2nd IP in the IP address library of information in the IP address data answered with home-operator IP address data in address base are updated;It is corresponding at least two IP address libraries when determining in the multiple IP address library IP address home country, the information of operator in IP address data, with corresponding IP address data in third IP address library When middle IP address home country, the information of operator are consistent, using IP address data pair corresponding in third IP address library IP address data in second IP address library are updated;When determining at least two IP address in the multiple IP address library IP address home country, the information of operator in corresponding IP address data in library, it is corresponding with the 4th IP address library When IP address home country, the information of operator are consistent in IP address data, using corresponding IP in the 4th IP address library Address date is updated the IP address data in second IP address library;When determining in the multiple IP address library at least IP address home country, the information of operator in corresponding IP address data in two IP address libraries, with the 5th IP address When IP address home country, the information of operator are consistent in corresponding IP address data in library, using the 5th IP address library In corresponding IP address data the IP address data in second IP address library are updated;When with determining the multiple IP IP address home country, the information of operator in corresponding IP address data at least two IP address libraries in the library of location, and it is described When IP address home country, the information of operator are consistent in corresponding IP address data in 6th IP address library, using described Corresponding IP address data are updated the IP address data in second IP address library in six IP address libraries;When determining State in multiple IP address libraries at least two IP address libraries the letter of IP address home country in corresponding IP address data, province Breath is used with when IP address home country, the information in province are consistent in corresponding IP address data in third IP address library Corresponding IP address data are updated the IP address data in second IP address library in third IP address library;When Determine in the multiple IP address library at least two IP address libraries IP address home country, province in corresponding IP address data Information, and when IP address home country, the information in province are consistent in corresponding IP address data in the 4th IP address library, The IP address data in second IP address library are carried out more using IP address data corresponding in the 4th IP address library Newly;When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province one in corresponding IP address data in the 5th IP address library When cause, using in the 5th IP address library corresponding IP address data the IP address data in second IP address library are carried out It updates;When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province in corresponding IP address data in the 6th IP address library When consistent, using IP address data corresponding in the 6th IP address library to the IP address data in second IP address library It is updated.
Optionally, third IP address library is pure IP address library, and the 4th IP address library is Taobao's IP address library, The 5th IP address library is IP138 address base, and the 6th IP address library is IPCN address base.
Optionally, described device further include: backup units, suitable for when every preset time receive update request when, it is standby Part target ip address library.
Compared with prior art, technical solution of the present invention has the advantage that
Above-mentioned scheme carries out automatically more the IP address data in IP address library by periodically receiving update request Newly, compared with by the way of artificial regeneration, the update efficiency in IP address library can be promoted, promotes the real-time in IP address library.
Further, due to choosing pure IP address library, IPCN address base, IP138 address base from multiple IP address libraries IP address data corresponding in target ip address library are updated with Taobao's IP address library, due to pure IP address library, IPCN Address base, the real-time of IP138 address base and the IP address data in Taobao's IP address library and accuracy are higher, therefore, can be with Further promote the real-time and accuracy of IP address data in target ip address library.
Detailed description of the invention
Fig. 1 is the flow chart of IP address library update method a kind of in the embodiment of the present invention;
Fig. 2 is to be believed in the embodiment of the present invention using the ownership place in IP address data corresponding in second IP address library Cease the flow chart being updated to the information of home location in the second IP like address date;
Fig. 3 is that current IP address section partition is become more than two IP address sub-segments in the embodiment of the present invention Flow chart;
Fig. 4 is in the embodiment of the present invention in the embodiment of the present invention using IP address in IP address library disclosed in internet The flow chart that data are updated the IP address data in second IP address library;
Fig. 5 is the structural schematic diagram of one of embodiment of the present invention IP address library updating device.
Specific embodiment
IP address data-updating method in the prior art, general to be carried out using artificial, time-consuming and laborious, there is update to imitate The low problem of rate.
To solve the above-mentioned problems in the prior art, technical solution used in the embodiment of the present invention periodically by connecing When receiving update request, the IP address data in IP address library are automatically updated, compared with using the method for artificial regeneration, The update efficiency in IP address library can be promoted, and the real-time in IP address library can be promoted.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
Fig. 1 is the flow chart of one of embodiment of the present invention IP address library update method.IP address library as shown in Figure 1 Update method may include:
Step S101: when receiving update request every the first preset time, backup target IP address library.
In specific implementation, can every preset time to target ip address library send update request by way of, it is right IP address data in target ip address library are timed update, to keep the accuracy in target ip address library.Wherein, described every It can be configured according to the actual needs every preset time.
In specific implementation, when target ip address library receives update request, IP address therein can be backed up first Data, for restoring original data, to improve the reliable of target ip address library when target ip address library updates data failure Property.
Step S102: the IP address data in target ip address library are divided into first kind IP address according to data source Data and the second IP like address date.
In specific implementation, can be according to the source of data when target ip address library receives update request, it will wherein IP address data be divided into different classifications.In an embodiment of the present invention, according to the IP address number in target ip address library According to operator or network (internet) is derived from, first kind IP address data and the second class IP address can be divided into.Its In, first kind IP address data source is in operator, and the second IP like address sources are in network.Wherein, the IP address data packet Include the information of home location of IP address and IP address
Step S103: the information of home location in the first kind IP address data is corresponding with the first IP address library Information of home location in IP address data.
In specific implementation, operator of the divided obtained first kind IP address data source belonging to it, therefore, When updating the first kind IP address data, the information of home location in first kind IP address data can be passed through belonging to it first The operator interface and the information of home location in corresponding IP address data in the first IP address library that operator provides that provide It is compared, to determine the need for updating.
Step S104: when determining in the information of home location in the first kind IP address data and first IP address library Corresponding IP address data in information of home location it is inconsistent when, using in the corresponding IP address data in first IP address library Information of home location update the information of home location in the first kind IP address.
In specific implementation, when determining in the information of home location in first kind IP address data and first IP address library Corresponding IP address data in information of home location it is inconsistent when, can be using IP address number corresponding in the first IP address library Information of home location in updates the information of home location in first kind IP address data.
Conversely, the information of home location in the first kind IP address data is with the corresponding IP in first IP address library When information of home location in location is consistent, then do not need to be updated the information of home location in first kind IP address data.
In an embodiment of the present invention, the IP address data in first IP address library can be stored, and fixed Phase is updated the IP address data in the first IP address library, it is ensured that while the accuracy of data, due to from local The IP address data in the first IP address library are obtained, obtain the IP in the first IP address library with the interface that provides by operator Address date is compared, and the speed of data update can be promoted.
Step S105: by the information of home location in the second IP like address date and phase in preset second IP address library The information of home location in IP address data answered is compared.
In specific implementation, the IP address data obtained from internet are stored in second IP address library.More When new, it is not necessary that the information of home location in the second IP like address date is directly corresponding to acquisition in IP address library disclosed in internet IP address data in information of home location be compared, and only need to be compared with the IP address data in the second IP address library Compared with, therefore the renewal speed of IP address data can be promoted.
In specific implementation, the second IP like address date divided derives from network, therefore, is updating the second IP like It, first can be by the information of home location and the second IP address in the second IP like address date when information of home location in address date Information of home location in library in corresponding IP address data is compared, to determine whether an update is necessary.
Step S106: when determining that the information of home location in the second IP like address date is corresponding to the second IP address library IP address data in information of home location it is inconsistent when, using in IP address data corresponding in second IP address library Information of home location is updated the information of home location in the second IP like address date.
In specific implementation, when determining in the information of home location in the second IP like address date and second IP address library Corresponding IP address data in information of home location it is inconsistent when, can be using IP address number corresponding in the second IP address library Information of home location in updates the information of home location in the second IP like address date, with keeping the IP in target ip address library The accuracy of location data.
Conversely, the information of home location in the second IP like address date is with the corresponding IP in second IP address library When information of home location in the data of location is consistent, then do not need to be updated the information of home location in the second IP like address date.
In specific implementation, the accuracy of the IP address in the second IP address library in order to keep deriving from network, thus So that the accuracy of the IP address data in updated target ip address library, it can periodically to the IP in the second IP address library Location data are updated.
It is to be herein pointed out when being updated to first kind IP address data and the second IP like address date, it can To be updated first to first kind IP address data, then the second IP like address date is updated, it can also be first to Two IP like address dates are updated, then are updated to first kind IP address data, or simultaneously to first kind IP address number It is updated simultaneously according to the second IP like address date, herein with no restrictions.
In specific implementation, the IP address library update method in the embodiment of the present invention can also include:
Step S107: the information of data source and renewal time is added in IP address data in the updated.
In specific implementation, by adding the information of data source and renewal time in IP address data in the updated, It can be in order to the update of the IP address data in target ip address library.
Step S108: the update table of comparisons of IP address data in target ip address library is generated.
In specific implementation, described update includes IP address data and corresponding updated institute before updating in the table of comparisons State IP address data.
In specific implementation, by generate target ip address library in IP address data the update table of comparisons, can in order to Family obtains the data update status in target ip address library, in order to the update of the IP address data in next target ip address library.
In specific implementation, the IP address library update method in the embodiment of the present invention can also include:
Step S109: every the second preset time using the IP address data in IP address library disclosed in internet to described IP address data in second IP address library are updated.
In specific implementation, the IP in order to ensure the accuracy of data, in Internet can be used disclosed IP address library Address date is updated the IP address data in the second IP address library, can make updated using the second IP address library IP address is more accurate in target ip address library.
It is to be herein pointed out first kind IP address data source in corresponding operator, therefore, is used when updating The information of home location in the IP address data in the first IP address library that operator provides is to returning in first kind IP address data Possession information is updated.
It is specifically introduced in determining the second IP like address date in target ip address library below in conjunction with Fig. 2 and Fig. 3 When information of home location difference in information of home location and the second IP address data, how using returning in the second IP like address date Possession information is updated with the information of home location in the second IP address data.
Fig. 2 is the ownership place in the second IP address library described in use in the embodiment of the present invention in corresponding IP address data The flow chart that information is updated the information of home location in the second IP like address date.Described in use as shown in Figure 2 Information of home location in second IP address library in corresponding IP address data is to the ownership place in the second IP like address date Information is updated, and may include:
Step S201: the corresponding IP address of the second IP like address date is divided into multiple IP address sections.
In specific implementation, the corresponding resource data of IP address data in the IP address section divided is identical, IP address section partition is become into multiple IP address sections according to whether resource data is identical.
Step S202: obtaining the start ip address of current IP address section and terminates IP address.
In specific implementation, successively each IP address section can be analyzed, to determine the need for dividing The each IP address section arrived carries out further detection segmentation.It wherein, can be first when analyzing current IP address section It first obtains the start ip address of current IP address section and terminates IP address.
Step S203: the start ip address and the information of home location for terminating IP address.
In specific implementation, start ip address and the termination IP of current IP address section can be determined by network detection The information of home location of location, to determine whether the two is consistent.
Step S204: more next when determining that the start ip address is consistent with the information of home location of IP address is terminated The start ip address of a IP address section and the information of home location for terminating IP address.
In specific implementation, when the information of home location of the start ip address and termination IP address that determine current IP address section When consistent, illustrate that the information of home location in the IP address data in current current IP address section is identical, it at this time should not be to current IP address section carries out detection segmentation, can continue the detection segmentation of next IP address section.
Step S205:, will be current when the information of home location for determining the start ip address and termination IP address is inconsistent IP address section partition becomes more than two IP address sub-segments.
In specific implementation, it when the information of home location for determining the start ip address and termination IP address is inconsistent, says Information of home location in IP address data in bright current IP address section is different, needs to carry out current IP address section at this time Current IP address section partition is become more than two IP address sub-segments, so that each IP divided by detection segmentation The information of home location of the IP address of address sub-segments is identical, and the information of home location of two adjacent IP address sub-segments is different.
Step S206: the ownership place in the obtained corresponding IP address data of more than two IP address sub-segments will be divided Information is compared with the information of home location in corresponding IP address data in second IP address library.
It in specific implementation, can be by the information of home location and in the corresponding IP address data of corresponding IP address sub-segments Information of home location in two IP address libraries in corresponding IP address data compares, to further determine whether to need to division The information of home location of obtained described two above IP address sub-segments is updated.
Step S207: when returning in the corresponding IP address data of more than two IP address sub-segments that determining division obtains When possession information and the inconsistent information of home location in corresponding IP address data in second IP address library, the 2nd IP is used Information of home location in address base in corresponding IP address data is to the more than two IP address sub-segments pair for dividing and obtaining The information of home location in IP address data answered is updated.
In specific implementation, the second IP like address date derives from network, is updated to the second IP like address date When, the information of home location in same IP address data corresponding in the second IP address library of internet can be used and come pair The information of home location obtained in the corresponding IP address data of IP address sub-segments is divided to be updated.Conversely, not needing then to carry out It updates.
It below will be made of how to be divided each IP address section to obtain the process of more than two IP address sub-segments It is further described in detail, specifically refers to Fig. 3.
Fig. 3 is that current IP address section partition is become more than two IP address sub-segments in the embodiment of the present invention Flow chart.It is as shown in Figure 3 when determine the start ip address and terminate IP address information of home location it is inconsistent when, will be current IP address section partition becomes more than two IP address sub-segments, may include:
Step S301: dotted decimal notation table is respectively adopted in the start ip address of current IP address section and termination IP address Show.
In specific implementation, when carrying out detection segmentation to each IP address section, first by current IP address section Start ip address and termination IP address, which are respectively adopted dotted decimal notation and are indicated, becomes (a.b.c.d) form.Wherein, a, b, c, D is respectively according to the number of each digital section in the IP address arranged from a high position to low level.
For example, " 1.0.1.0 " therein is using point minute when current IP address section is 1.0.1.0:1.0.3.255 The start ip address of decimal representation, 1.0.3.255 are then the termination IP address address indicated using dotted decimal notation.
Step S302: compare the start ip address of current IP address section according to the sequence from a high position to low level and terminate IP Whether the number of address current number field is identical.
In specific implementation, in order to carry out further division to current IP address section, first, in accordance with from a high position to low level Sequence by the start ip address of current IP address section and terminate the number of each digital section of IP address and be compared, with true It is fixed whether identical.Wherein, for the ease of narration, it will respectively indicate and work as using (a1.b1.c1.d1) and (a2.b2.c2.d2) below The start ip address and termination IP address of preceding IP address section.
Step S303: when determining that the start ip address is identical with the number of IP address current number field is terminated, compare Next digital section number it is whether identical.
In specific implementation, when determining that the start ip address is identical with the number of IP address current number field is terminated, Then explanation can not carry out further division from current number field, therefore, can carry out the comparison of the number an of digital section.
Equally, by taking current session 1.0.1.0:1.0.3.255 as an example, wherein before in start ip address and termination IP address The number of two digital sections is respectively 1 and 0, therefore, continues the number of more next digital section.
Step S304: when determining that start ip address is different with the number of IP address current number field is terminated, described in judgement Whether the half for terminating difference between the number of the current number field of IP address and the start ip address is more than or equal to 1.
In specific implementation, when the start ip address (a1.b1.c1.d1) and termination IP address for determining current address section (a2.b2.c2.d2) it when the number of current number field is different, then needs to judge to terminate IP address and the start ip address Current number field number between the half of difference whether be more than or equal to 1.
Equally by taking current session is 1.0.1.0:1.0.3.255 as an example, wherein before in start ip address and termination IP address The number of two digital sections is respectively 1 and 0, therefore, continues the number for comparing third digit section.Wherein, start ip address It is respectively 1 and 3 with the number for terminating the first two digital section in IP address, then may determine that at this time and terminate IP address and described The number of the current number field of beginning IP address, i.e., whether the half of difference is more than or equal to 1 between 3 and 1.
Step S305: when poor between the number of current number field for determining the termination IP address and the start ip address When the half of value is more than or equal to 1, recalculate to obtain intermediate IP address, and with judging the start ip address and the intermediate IP Whether the ownership place of location is identical.
In specific implementation, when determine start ip address (a1.b1.c1.d1) and terminate IP address (a2.b2.c2.d2) when The number of preceding digital section is different, and the termination IP address (a2.b2.c2.d2) and the start ip address (a1.b1.c1.d1) Current number field number between difference half be more than or equal to 1 when, can be since the number of current number field to current IP address section carries out detection segmentation.Specifically, recalculate to obtain intermediate IP address, and by the starting of current IP address section Address is compared with intermediate IP address to information of home location, to determine the ownership place letter of start ip address and intermediate IP address It whether identical ceases.
In specific implementation, the termination IP address (a2.b2.c2.d2) and the start ip address (a1.b1.c1.d1) Current number field number between difference half be more than or equal to 1 when, the intermediate each digital section of IP address number by with Under mode determine:
The digital phase of the number of each digital section before current number field and the respective counts field for terminating IP address Together, the number of current number field are as follows: difference between the number of the current number field for terminating IP address and start ip address The number of half, the sum of the number with the current number field of the start ip address, and the following digital section of current number field is complete Portion is zero.
Equally, by taking current session is 1.0.1.0:1.0.3.255 as an example, wherein initial address (1.0.1.0) and termination The number of the first two digital section is identical in (1.0.3.255), and the number of third digit section is different, and respectively 1 and 3.Wherein, 3-1/2=1, at this point, terminate the number 3 and 1 of the third digital section of IP address (1.0.3.255) and initial address (1.01.0) The half of difference is greater than 1, at this point it is possible to recalculate to obtain intermediate IP address.
Wherein, each digital section before the current number field of the intermediate IP address recalculated i.e. third digital section Number, i.e. the number of the first digital section and the second digital section in initial address (1.0.1.0) and termination (1.0.3.255) before The number of two digital sections is identical, i.e., and respectively 1 and 0;The number of third digital section is 1+ (3-1/2)=2;Following digital section Number, the i.e. number of the 4th digital section are 0, and therefore, obtained intermediate IP address is (1.0.2.0).
It, can be by start ip address (1.0.1.0) and centre IP by network detection when intermediate IP address is calculated The information of home location of address (1.0.2.0) is compared, and whether the information of home location to determine the two is identical.
Step S306: when the ownership place for determining the start ip address and the intermediate IP address is identical, in described Between IP address as the start ip address, and execute and described described terminate working as IP address and the start ip address when determining When the half of difference is more than or equal to 1 between the number of preceding digital section, recalculate to obtain intermediate IP address, and judge the starting The whether identical operation of the ownership place of IP address and the intermediate IP address, until the intermediate IP address redefined and the end Only the number of the current number field of address is identical, or the ownership place of the intermediate IP address and the start ip address redefined It is different.
In specific implementation, the information of home location phase of the intermediate IP address and start ip address that are calculated when determining reconstruction Meanwhile then using the intermediate IP address recalculated as the termination IP address group of start ip address and current IP address section The IP address section of Cheng Xin, and continue to repeat above-mentioned step S305, until the initial address redefined and the end Only the number of the current number field of address is identical, or the ownership place of the intermediate IP address and the start ip address redefined It is different.
For example, by current IP address section be 1.0.1.0:1.0.7.255 for, recalculate to obtain intermediate IP address be (1.0.4.0) can determine intermediate IP address (1.0.4.0) and start ip address (1.0.4.0) by network detection first Whether information of home location is identical.When the information of home location for determining start ip address (1.0.1.0) and intermediate IP address (1.0.4.0) When identical, then continue to recalculate to obtain intermediate IP address (1.0.5.0), and judges the intermediate IP address recalculated Whether (1.0.5.0) be identical as the ownership place of start ip address (1.0.1.0).When the intermediate IP address recalculated When (1.0.5.0) is identical as the ownership place of start ip address (1.0.1.0), continue to recalculate to obtain intermediate IP address (1.0.6.0), and start ip address (1.0.1.0) is determined by network detection and recalculates to obtain intermediate IP address Whether the information of home location of (1.0.6.0) is identical.It start ip address (1.0.1.0) and is recalculated with obtaining intermediate IP when determining When the information of home location of location (1.0.6.0) is identical, the intermediate IP address recalculated will be (1.0.7.0), so that again The number of the current number field of the termination IP address (1.0.7.255) of the intermediate IP address and current IP address section that are calculated It is identical, that is, when being 7, then stop the operation of detection segmentation.
Step S307: when determining the ownership place difference of the start ip address and the intermediate IP address, described in judgement Whether the information of home location of the IP address of the previous position sequence of start ip address and the intermediate IP address is identical.
In specific implementation, the information of home location of the intermediate IP address and start ip address that recalculate when determination is not Meanwhile then judge start ip address and the previous position sequence of the intermediate IP address recalculated information of home location whether phase Together.
For example, by taking current IP address section is 1.0.1.0:1.0.7.255 as an example, the intermediate IP address that recalculates (1.0.4.0) is determined the start ip address (1.0.1.0) of current IP address section and is recalculated by network detection The information of home location of intermediate IP address (1.0.4.0) is different, then will be before the intermediate IP address (1.0.4.0) that recalculated The information of home location of the IP address (1.0.3.255) of one sequence, and carried out with the information of home location of start ip address (1.0.1.0) Compare, to determine whether the two is identical.
Step S308: when the ownership of the IP address for the previous position sequence for determining the start ip address and the intermediate IP address When ground is identical, by the IP section of the IP address of the previous position sequence from the start ip address to the intermediate IP address, as drawing The IP address sub-segments got, and continue to from the intermediate IP address to the IP address section that the termination IP address forms It is divided, until described divide returning for two IP address sub-segments adjacent in obtained more than two IP address sub-segments Possession information is different.
In specific implementation, the information of home location of the intermediate IP address and start ip address that are calculated when determining reconstruction is not Together, and the start ip address of current IP address section and the IP address of the previous position sequence of intermediate IP address recalculated When information of home location is identical, then it can thereby determine that by the previous position of start ip address and the intermediate IP address recalculated The information of home location of each IP address of the IP address section of the IP address composition of sequence is all the same, therefore, can will be by starting ip The IP address section of the IP address composition of the previous position sequence of address and the intermediate IP address recalculated is obtained as division An IP address sub-segments.
Meanwhile using the intermediate IP address recalculated and terminating the IP address IP address section continuation new as one Above-mentioned step S304~S307 is executed, until current IP address section partition is become into more than two IP address sub-segments, And the information of home location for dividing two IP address sub-segments adjacent in obtained more than two IP address sub-segments is different.
For example, by taking current IP address section is 1.0.1.0:1.0.7.255 as an example, the intermediate IP address that recalculates (1.0.4.0) is determined the start ip address (1.0.1.0) of current IP address section and is recalculated by network detection The information of home location of intermediate IP address (1.0.4.0) is different, and with determining the intermediate IP recalculated by network detection The information of home location of the IP address (1.0.3.255) of the previous position sequence of location (1.0.4.0) is identical, then can be by IP address section 1.0.1.0:1.0.3.255 the first IP address sub-segments obtained as division.Meanwhile by IP address section 1.0.4.0: 1.0.7.255 the IP address section new as one continues to execute above-mentioned detection segmentation, until current IP address section is drawn More than two IP address sub-segments are divided into, and divide two IP adjacent in obtained more than two IP address sub-segments The information of home location of address sub-segments is different.
Step S309: when the ownership of the IP address for the previous position sequence for determining the start ip address and the intermediate IP address When ground difference, using the intermediate IP address as the termination IP address, and execute it is described when determine the terminations IP address and When the half of difference is more than or equal to 1 between the number of the current number field of the start ip address, recalculate to obtain intermediate IP Address, and judge the whether identical operation of the ownership place of the start ip address and the intermediate IP address, until the starting The ownership place of IP address and the intermediate IP address recalculated is identical.
In specific implementation, the information of home location for the intermediate IP address and start ip address that reconstruction is calculated is determined not Together, and the information of home location of start ip address and the IP address of the previous position sequence of the intermediate IP address recalculated also not phase Meanwhile then using the intermediate IP address recalculated as termination IP address, namely it is to continue with to current IP address section Start ip address to recalculate intermediate IP address composition IP address section continue detection segmentation, until rise The ownership place of beginning IP address to the intermediate IP address recalculated is identical.
When the ownership place of start ip address to the intermediate IP address recalculated is identical, then current start ip address The information of home location of the IP address in IP address section constituted to the intermediate IP address recalculated is all the same, can incite somebody to action The IP address section of the start ip address of current IP address section to the intermediate IP address composition recalculated, which is used as, to be divided An obtained IP address sub-segments.
For example, by taking current IP address section is 1.0.1.0:1.0.7.255 as an example, the centre recalculated for the first time IP address (1.0.4.0) is determined the start ip address (1.0.1.0) of current IP address section and is recalculated by network detection The information of home location of obtained intermediate IP address (1.0.4.0) is different, and in being recalculated by the way that network detection is determining Between IP address (1.0.4.0) previous position sequence IP address (1.0.3.255) information of home location it is also not identical when, at this point, can Using by intermediate IP address (1.0.4.0) as terminating IP address, namely to start ip address (1.0.1.0) to intermediate IP address (1.0.4.0) IP address section continues detection segmentation, until start ip address and the intermediate IP address recalculated Information of home location it is identical.
Specifically, due to 4-1/2=1.5 > 1, then can continue to recalculate to obtain intermediate IP address (1.0.2.0), and It recalculates to obtain the ownership place of intermediate IP address (1.0.2.0) Yu start ip address (1.0.1.0) by network detection determination Whether information is identical.When determining intermediate IP address (1.0.2.0) is different from the information of home location of start ip address (1.0.1.0) When, and the IP address (1.0.1.255) of intermediate IP address (1.0.2.0) previous position sequence information of home location it is identical when, then will then The IP that the IP address section of start ip address (1.0.1.0) to intermediate IP address (1.0.1.255) is obtained as division Address sub-segments.Meanwhile detection segmentation is continued to IP address (1.0.7.255) is terminated to intermediate IP address (1.0.2.0).
In specific implementation, the second class IP address in target ip address library is divided when by above-mentioned detection segmentation When to multiple IP address sub-segments, the second IP address library provided using network is needed to obtain multiple IP address sub-segments to division The information of home location of corresponding IP address is updated.
In specific implementation, IP address data disclosed in internet can be used to the 2nd IP every the second preset time The IP address data stored in the library of location are updated, and to keep the accuracy of data, specifically refer to Fig. 4.
Fig. 4 be in the embodiment of the present invention using IP address data in IP address library disclosed in internet to the 2nd IP The flow chart that IP address data in address base are updated.As shown in Figure 4 uses IP in IP address library disclosed in internet Address date is updated the IP address data in second IP address library, may include:
Step S401: the IP address library of third, the four, the 5th and the 6th is chosen from multiple IP address libraries.
It in specific implementation, can be according to data renewal frequency, accuracy rate etc. from multiple IP address library disclosed in network The IP address library of the third of selection, the four, the 5th and the 6th.
In an embodiment of the present invention, third IP address library is pure IP address library, and the 4th IP address library is Taobao IP address library, the 5th IP address library are IP138 address base, and the 6th IP address library is IPCN address base.
Step S402: when determining the corresponding IP address data of corresponding IP address section in third IP address library, with When corresponding IP address data are consistent in the IP address library of four IP address libraries, the 5th or the 6th, using third IP address library In corresponding IP address data the IP address data in second IP address library are updated.
In the present invention one is implemented, when determining the corresponding IP address data of corresponding IP address section in pure IP address library, When consistent with IP address data corresponding in Taobao's IP address library, IP138 address base or IPCN address base, by pure IP Corresponding IP address data are updated the IP address data in second IP address library in the library of location.
Step S403: when determining in the third IP address library home country, province and fortune in corresponding IP address data Quotient's information is sought, with home country, province and operator in corresponding IP address data in the 5th or the 6th IP address library When information difference is identical, using IP address data corresponding in third IP address library to the IP in second IP address library Address date is updated.
In specific implementation, the information of home location of IP address includes the information in the ownership world, province and operator.
In an embodiment of the present invention, when determining in pure IP address library home country in corresponding IP address data, save Part and operator's informaiton, with home country in corresponding IP address data in IP138 address base or IPCN address base, province and When operator's informaiton difference is identical, using IP address data corresponding in pure IP address library in second IP address library IP address data are updated.
Step S404: when determining in the 4th IP address library in corresponding IP address data and the 5th IP address library When IP address data are consistent accordingly, using IP address data corresponding in the 4th IP address library to second IP address IP address data in library are updated.
In an embodiment of the present invention, when determining corresponding IP address data and IP138 address base in Taobao's IP address library In corresponding IP address data it is consistent when, using IP address data corresponding in Taobao's IP address library to second IP address library In IP address data be updated.
Step S405: when determining in the 5th IP address library in corresponding IP address data and the 6th IP address library When IP address data are consistent accordingly, using IP address data corresponding in the 5th IP address library to second IP address IP address data in library are updated.
In specific implementation, when determining that corresponding IP address data are corresponding with IPCN address base in IP138 address base When IP address data are consistent, using IP address data corresponding in the IP138 address base in second IP address library IP address data are updated.
Step S406: when determine the home country in the 4th IP address library in corresponding IP address data, province and Operator's informaiton distinguishes phase with home country, province and operator's informaiton in corresponding IP address data in the 5th IP address library Meanwhile using IP address data corresponding in the 4th IP address library to the IP address data in second IP address library into Row updates.
In an embodiment of the present invention, when determining in Taobao's IP address library home country in corresponding IP address data, save Part and operator's informaiton are distinguished with home country, province and operator's informaiton in IP address data corresponding in IP138 address base When identical, the IP address data in second IP address library are carried out using IP address data corresponding in Taobao's IP address library It updates.
Step S407: when determining in the 4th IP address library home country, province and fortune in corresponding IP address data Quotient's information is sought, it is identical as home country, province and operator's informaiton difference in corresponding IP address data in the 6th IP address library When, the IP address data in second IP address library are carried out using IP address data corresponding in the 4th IP address library It updates.
In an embodiment of the present invention, when determining in Taobao's IP address library home country in corresponding IP address data, save Part and operator's informaiton are distinguished with home country, province and operator's informaiton in IP address data corresponding in IPCN address base When identical, the IP address data in second IP address library are carried out using IP address data corresponding in Taobao's IP address library It updates.
Step S408: when determining in the 4th IP address library home country, province information in corresponding IP address data, It is identical as home country in corresponding IP address data, province information difference in the 5th IP address library, and the described 4th or When there is no the information of home-operator in corresponding IP address data in the 5th IP address library, using the 4th or the 5th IP address library The corresponding IP address data in the IP address library of the information in the two in corresponding IP address data with home-operator are to institute The IP address data stated in the second IP address library are updated.
In an embodiment of the present invention, when determining in Taobao's IP address library home country in corresponding IP address data, save Part information, it is identical as home country, province information difference in IP address data corresponding in IP138 address base, and Taobao IP When there is no the information of home-operator in corresponding IP address data in location library or IP138 address base, using Taobao's IP address There is in corresponding IP address data the corresponding of the IP address library of the information of home-operator in library or IP138 address base the two IP address data the IP address data in second IP address library are updated.
Step S409: when determining in the 4th IP address library home country, province information in corresponding IP address data, It is identical as home country in corresponding IP address data, province information difference in the 6th IP address library, and the described 4th or When there is no the information of home-operator in corresponding IP address data in the 6th IP address library, using the 4th or the 6th IP address library Corresponding IP address data are to institute in the IP address library of information in the two in corresponding IP address data with home-operator The IP address data stated in the second IP address library are updated.
In an embodiment of the present invention, when determining in Taobao's IP address library home country in corresponding IP address data, save Part information, it is identical as home country, province information difference in IP address data corresponding in IPCN address base, and Taobao's IP address When there is no the information of home-operator in corresponding IP address data in library or the 4th IP address library, using the address second or IPCN Corresponding IP address data pair in the IP address library of information in the two of library in corresponding IP address data with home-operator IP address data in second IP address library are updated.
Step S410: when determining in the 5th IP address library home country, province information in corresponding IP address data, It is identical as home country, province information difference in IP address data corresponding in the 6th IP address library, and the described 5th or the 6th When there is no the information of home-operator in corresponding IP address data in IP address library, using both the 5th or the 6th IP address libraries In in corresponding IP address data in the IP address library of the information with home-operator corresponding IP address data to described the IP address data in two IP address libraries are updated.
In the present invention one is implemented, when determining in IP138 address base that home country in corresponding IP address data, province believe Breath, distinguish with home country in IP address data corresponding in IPCN address base, province information it is identical, and IP138 address base or When there is no the information of home-operator in corresponding IP address data in IPCN address base, using IP138 address base or IPCN Corresponding IP address data in the IP address library of information in the two of location library in corresponding IP address data with home-operator IP address data in second IP address library are updated.
Step S411: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information of operator belong to IP address in corresponding IP address data in third IP address library Country, operator information it is consistent when, to the 2nd IP using IP address data corresponding in third IP address library IP address data in the library of location are updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including purity Including IP address library, Taobao's IP address library, IP138 address base and IPCN address base) in IP address in corresponding IP address data Home country, the information of operator, with IP address home country, operator in corresponding IP address data in pure IP address library Information it is consistent when, update the current IP address sub-district to be updated using IP address data corresponding in pure IP address library The corresponding IP address data of section.
Step S412: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information of operator belong to IP address in corresponding IP address data in the 4th IP address library Country, operator information it is consistent when, to the 2nd IP using IP address data corresponding in the 4th IP address library IP address data in the library of location are updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in corresponding IP address data IP address data home country, the information of operator, with Taobao's IP address library In in corresponding IP address data IP address data home country, the information of operator it is consistent when, using Taobao's IP address library In corresponding IP address data the IP address data in second IP address library are updated.
Step S413: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information of operator belong to IP address in corresponding IP address data in the 5th IP address library Country, operator information it is consistent when, to the 2nd IP using IP address data corresponding in the 5th IP address library IP address data in the library of location are updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information of operator in corresponding IP address data, it is corresponding to IP138 address base IP address data in IP address home country, the information of operator it is consistent when, using corresponding IP address in IP138 address base Data are updated the IP address data in second IP address library.
Step S414: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information of operator belong to IP address in corresponding IP address data in the 6th IP address library Country, operator information it is consistent when, to the 2nd IP using IP address data corresponding in the 6th IP address library IP address data in the library of location are updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information of operator in corresponding IP address data, it is corresponding with IPCN address base When IP address home country, the information of operator are consistent in IP address data, using IP address number corresponding in IPCN address base It is updated according to the IP address data in second IP address library.
Step S415: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information in province belong to state with IP address in corresponding IP address data in third IP address library Family, province information it is consistent when, using IP address data corresponding in third IP address library to second IP address library In IP address data be updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information in province in corresponding IP address data, it is corresponding to fixed pure IP address library IP address data in IP address home country, the information in province it is consistent when, using corresponding IP in fixed pure IP address library Location data are updated the IP address data in second IP address library.
Step S416: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information in province belong to state with IP address in corresponding IP address data in the 4th IP address library Family, province information it is consistent when, using IP address data corresponding in the 4th IP address library to second IP address library In IP address data be updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information in province in corresponding IP address data, it is corresponding with Taobao's IP address library When IP address home country, the information in province are consistent in IP address data, using IP address number corresponding in Taobao's IP address library It is updated according to the IP address data in second IP address library.
Step S417: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information in province belong to state with IP address in corresponding IP address data in the 5th IP address library Family, province information it is consistent when, using IP address data corresponding in the 5th IP address library to second IP address library In IP address data be updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information in province in corresponding IP address data, it is corresponding with IP138 address base When IP address home country, the information in province are consistent in IP address data, using IP address data corresponding in IP138 address base Update the corresponding IP address data of the current IP address sub-segments to be updated.
Step S418: when determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP address home country, the information in province belong to state with IP address in corresponding IP address data in the 6th IP address library Family, province information it is consistent when, using IP address data corresponding in the 6th IP address library to second IP address library In IP address data be updated.
In the present invention one is implemented, at least two IP address libraries in multiple IP address libraries disclosed in the network (including target IP address library) in IP address home country, the information in province in corresponding IP address data, with corresponding IP in IPCN address base When IP address home country, the information in province are consistent in address date, using IP address data pair corresponding in IPCN address base IP address data in second IP address library are updated.
It is to be herein pointed out when being updated to the IP address data in the second IP address library, according to update frequency The factors such as rate and accuracy have chosen the IP address library of third, the four, the 5th and the 6th from the IP address library in internet.When When IP address data in multiple IP address libraries disclosed in all internets are consistent, any one IP address library can be used IP address data the IP address data in the second IP address library of caching are updated.Conversely, working as more disclosed in internet When IP address data in a IP address library are inconsistent, then adopted according to what the information of home location in identical IP address data occurred The priority of sample frequency and data source is determined using IP address data corresponding in IP address library disclosed in which internet.It connects , it will determine that the corresponding IP address data used are compared with the IP address data in target ip address library, if one Cause is then updated, conversely, then without updating.
Fig. 5 shows a kind of IP address library updating device in the embodiment of the present invention.IP address library more new clothes as shown in Figure 5 500 are set, may include cache unit 501, periodically updates request unit 502, data dividing unit 503, the first judging unit 504, the first updating unit 505, second judgment unit 506, the second updating unit 507, in which:
Cache unit 501 is suitable for the second IP address library of storage, being stored in second IP address library from internet and obtaining IP address data.
Request unit 502 is periodically updated, is suitable for sending to update to target ip address library every the first preset time and request.
Data dividing unit 503, suitable for when receiving update request, the IP address data in target ip address library are pressed First kind IP address data and the second IP like address date are divided into according to data source, the IP address data include IP address With the information of home location of IP address.
First judging unit 504, suitable for judging information of home location and the first IP in the first kind IP address data Whether the information of home location in the library of location in corresponding IP address data is consistent.
First updating unit 505, suitable for when determining information of home location in the first kind IP address data and described the It is corresponding using first IP address library when information of home location in corresponding IP address data in one IP address library is inconsistent IP address data in information of home location update the information of home location in the first kind IP address data.
Second judgment unit 506, suitable for judging the information of home location in the second IP like address date and preset the Whether the information of home location in two IP address libraries in corresponding IP address data consistent, be stored in second IP address library with The corresponding IP address data of the second IP like address date in the target ip address library.
Second updating unit 507, suitable for when the information of home location and the 2nd IP in the determining second IP like address date When information of home location in address base in corresponding P address data is inconsistent, corresponding IP in second IP address library is used Information of home location in address date is updated the information of home location in the second IP like address date.It is being embodied In, second updating unit 507 is suitable for the IP address data in the second IP address library being divided into multiple IP Address section, the corresponding resource data of IP address data in the IP address section divided are identical;Obtain current IP address The start ip address and termination IP address of section;Judge the start ip address and the information of home location for terminating IP address is It is no consistent;When determining that the start ip address is consistent with the information of home location of IP address is terminated, next IP address area is judged Whether the start ip address of section is consistent with the information of home location for terminating IP address;When with determining the start ip address and termination IP When the information of home location of location is inconsistent, current IP address section partition is become into more than two IP address sub-segments, is divided To more than two IP address sub-segments in adjacent two IP address sub-segments information of home location it is different;Judgement divides To the corresponding IP address data of more than two IP address sub-segments in information of home location and second IP address library in Whether the information of home location of corresponding IP address data is consistent;When the more than two IP address sub-segments pair for determining that division obtains The information of home location in IP address data answered is believed with the ownership place in corresponding IP address data in second IP address library When ceasing inconsistent, two obtained are divided to described using the information of home location in IP address data corresponding in the second IP address library Information of home location in a above corresponding IP address data of IP address sub-segments is updated.In specific implementation, described Second updating unit 507 is suitable for the start ip address of current IP address section and termination IP address dotted decimal notation is respectively adopted It indicates;The start ip address of current IP address section is judged according to the sequence from a high position to low level and terminates IP address Contemporary Digital Whether the number of section is identical;When determining that the start ip address is identical with the number of IP address current number field is terminated, compare Next digital section number it is whether identical;When determine start ip address and terminate IP address current number field number not Together, judge whether the half of difference between the number of the current number field of the termination IP address and the start ip address is greater than Equal to 1;One when difference between the number of current number field for determining the termination IP address and the start ip address is medium-sized When being equal to 1, recalculate to obtain intermediate IP address, and judge the ownership place of the start ip address and the intermediate IP address Whether information is identical;Wherein, the number and the termination of each digital section before the current number field of the intermediate IP address Digital identical, the number of current number field of the respective counts field of IP address are as follows: IP address and the start ip address of terminating The half of difference between the number of current number field, the sum of the number with the current number field of the start ip address, and it is current The number all zero of the following digital section of digital section;When the ownership place for determining the start ip address and the intermediate IP address When identical, using the intermediate IP address as the start ip address, and execute described when the determining termination IP address and institute When stating the half of difference between the number of the current number field of start ip address more than or equal to 1, recalculate with obtaining intermediate IP Location, and judge the whether identical operation of the ownership place of the start ip address and the intermediate IP address, until redefine Initial address is identical as the number of current number field of the termination address, or the intermediate IP address redefined and described The ownership place of beginning IP address is different;When determining the ownership place difference of the start ip address and the intermediate IP address, judgement Whether the ownership place of the IP address of the previous position sequence of the start ip address and the intermediate IP address is identical;When determining described When the ownership place of the IP address of the previous position sequence of beginning IP address and the intermediate IP address is identical, will from the start ip address to The IP section of the IP address of the previous position sequence of the intermediate IP address, as the obtained IP address sub-segments of division, and to from institute The IP address section for stating intermediate IP address to the termination IP address composition continues to divide, until described divide two obtained The information of home location of two adjacent IP address sub-segments is different in a above IP address sub-segments;When determining the starting ip When the ownership place difference of the IP address of the previous position sequence of address and the intermediate IP address, using the intermediate IP address as described in IP address is terminated, and executes the number worked as and determine the current number field for terminating IP address and the start ip address Between difference half be more than or equal to 1 when, recalculate to obtain intermediate IP address, and judge the start ip address and the centre The whether identical operation of the ownership place of IP address, until the start ip address and the intermediate IP address recalculated Ownership place it is identical.
In specific implementation, IP address library updating device 500 as shown in Figure 5 can also include: marking unit 508, In:
Marking unit 508, suitable for adding data source in the updated IP address data in the target ip address library With the information of renewal time.
In specific implementation, IP address library updating device 500 as shown in Figure 5 can also include generation unit 509, In:
Generation unit 509, the update table of comparisons of the IP address data suitable for generating the target ip address library, the update It include the IP address data and the corresponding updated IP address data before updating in the table of comparisons.
In specific implementation, IP address library updating device 500 as shown in Figure 5 can also include periodically updating cargo tracer Member 510, in which:
Query unit 510 is periodically updated, is suitable for every the second preset time using IP address number in preset IP address library It is updated according to the IP address data in second IP address library, the preset IP address library is for IP disclosed in internet Location library.Address base.Wherein, the information of home location in the IP address data include the home country of IP address, province, city and The information of operator.In specific implementation, third IP address library is pure IP address library, and the 4th IP address library is naughty BaoIPDi Zhiku, the 5th IP address library are IP138 address base, and the 6th IP address library is IPCN;The periodicity is more New query unit 510 is suitable for choosing the IP address library of third, the four, the 5th and the 6th from multiple IP address libraries;Described in determination The corresponding IP address data of corresponding IP address section in third IP address library, with phase in the four, the 5th or the 6th IP address library When the IP address data answered are consistent, using IP address data corresponding in third IP address library to second IP address library In IP address data be updated;When determining in the third IP address library home country in corresponding IP address data, save Part and operator's informaiton, with home country in corresponding IP address data in the 5th or the 6th IP address library, province and When operator's informaiton difference is identical, using IP address data corresponding in third IP address library to second IP address library In IP address data be updated;When with determining in the 4th IP address library corresponding IP address data and the 5th IP When corresponding IP address data are consistent in the library of location, using IP address data corresponding in the 4th IP address library to described second IP address data in IP address library are updated;When determine in the 5th IP address library corresponding IP address data with it is described When corresponding IP address data are consistent in 6th IP address library, using IP address data pair corresponding in the 5th IP address library IP address data in second IP address library are updated;When determining corresponding IP address number in the 4th IP address library According to middle home country, province and operator's informaiton, with home country, province in corresponding IP address data in the 5th IP address library When identical with operator's informaiton difference, more to the 2nd IP using IP address data corresponding in the 4th IP address library IP address data in the library of location are updated;Belong to state in corresponding IP address data when determining in the 4th IP address library Family, province and operator's informaiton are believed with home country, province and operator in corresponding IP address data in the 6th IP address library When breath is identical respectively, to the IP in second IP address library using IP address data corresponding in the 4th IP address library Location data are updated;When determining in the 4th IP address library home country, province information in corresponding IP address data, with Home country in corresponding IP address data, province information difference are identical in the 5th IP address library, and the described 4th or the When there is no the information of home-operator in corresponding IP address data in five IP address libraries, using the 4th or the 5th IP address library two The corresponding IP address data in the IP address library of the information in person in corresponding IP address data with home-operator are to described IP address data in second IP address library are updated;When determining in the 4th IP address library in corresponding IP address data Home country, province information are distinguished with home country, province information in corresponding IP address data in the 6th IP address library It is identical, and when there is no the information of home-operator in corresponding IP address data in the 4th or the 6th IP address library, it uses Phase in the IP address library of information in 4th or the 6th IP address library the two in corresponding IP address data with home-operator The IP address data answered are updated the IP address data in second IP address library;When determining the 5th IP address library In home country, province information in corresponding IP address data, and belong in corresponding IP address data in the 6th IP address library Country, province information difference are identical, and transport in corresponding IP address data without ownership in the 5th or the 6th IP address library When seeking the information of quotient, using the letter in IP address data corresponding in the 5th or the 6th IP address library the two with home-operator Corresponding IP address data are updated the IP address data in second IP address library in the IP address library of breath;Work as determination IP address home country in corresponding IP address data at least two IP address libraries in the multiple IP address library, operator Information, and when IP address home country, the information of operator are consistent in corresponding IP address data in third IP address library, The IP address data in second IP address library are carried out more using IP address data corresponding in third IP address library Newly;When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in the 4th IP address library, operator When information is consistent, using IP address data corresponding in the 4th IP address library to the IP address in second IP address library Data are updated;When with determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP Location home country, the information of operator, with IP address home country in corresponding IP address data in the 5th IP address library, When the information of operator is consistent, using IP address data corresponding in the 5th IP address library in second IP address library IP address data be updated;When determining in the multiple IP address library corresponding IP address number at least two IP address libraries According to middle IP address home country, the information of operator, with IP address in corresponding IP address data in the 6th IP address library When home country, the information of operator are consistent, using IP address data corresponding in the 6th IP address library to described second IP address data in IP address library are updated;It is corresponding at least two IP address libraries when determining in the multiple IP address library IP address data in IP address home country, the information in province, with corresponding IP address data in third IP address library When middle IP address home country, the information in province are consistent, using IP address data corresponding in third IP address library to institute The IP address data stated in the second IP address library are updated;When determining at least two IP address libraries in the multiple IP address library In IP address home country, the information in province in corresponding IP address data, with corresponding IP in the 4th IP address library When IP address home country, the information in province are consistent in the data of location, using IP address number corresponding in the 4th IP address library It is updated according to the IP address data in second IP address library;When determining at least two IP in the multiple IP address library IP address home country, the information in province in corresponding IP address data in address base, it is corresponding with the 5th IP address library of institute When IP address home country, the information in province are consistent in IP address data, using corresponding IP address in the 5th IP address library of institute Data are updated the IP address data in second IP address library;When determining at least two in the multiple IP address library Phase in IP address home country, the information in province, with the 6th IP address library in corresponding IP address data in IP address library When IP address home country, the information in province are consistent in the IP address data answered, using corresponding in the 6th IP address library IP address data are updated the IP address data in second IP address library.
In specific implementation, IP address library updating device 500 as shown in Figure 5 can also include backup units 511, In:
Backup units 511, suitable for backing up the target ip address library when receiving update request every preset time.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in computer readable storage medium, and storage is situated between Matter may include: ROM, RAM, disk or CD etc..
The method and system of the embodiment of the present invention are had been described in detail above, the present invention is not limited thereto.Any Field technical staff can make various changes or modifications without departing from the spirit and scope of the present invention, therefore guarantor of the invention Shield range should be defined by the scope defined by the claims..

Claims (16)

1. a kind of IP address library update method characterized by comprising
When receiving update request every the first preset time, the IP address data in target ip address library are come according to data Source is divided into first kind IP address data and the second IP like address date, and the first kind IP address data source is in operation Quotient, the second IP like address date source internet, the IP address data include the ownership place letter of IP address and IP address Breath;
Judge information of home location in the first kind IP address data in corresponding IP address data in the first IP address library Information of home location it is whether consistent;
When determining the information of home location in the first kind IP address data with the corresponding IP in first IP address library When information of home location in the data of location is inconsistent, believed using the ownership place in the corresponding IP address data in first IP address library Breath updates the information of home location in the first kind IP address data;
Judge information of home location in the second IP like address date and corresponding IP address in preset second IP address library Whether the information of home location in data is consistent, and the IP address data obtained from internet are stored in second IP address library;
When determining the information of home location in the second IP like address date and corresponding IP address data in the second IP address library In information of home location it is inconsistent when, use the information of home location pair in IP address data corresponding in second IP address library Information of home location in the second IP like address date is updated, comprising: when determine start ip address and terminate IP address Information of home location it is inconsistent when, current IP address section partition is become into more than two IP address sub-segments, division obtains More than two IP address sub-segments in adjacent two IP address sub-segments information of home location it is different;Wherein, described to incite somebody to action Current IP address section partition becomes more than two IP address sub-segments, comprising:
Dotted decimal notation, which is respectively adopted, in the start ip address of current IP address section and termination IP address indicates;
The start ip address of current IP address section is judged according to the sequence from a high position to low level and terminates IP address Contemporary Digital Whether the number of section is identical;
When determining that the start ip address is identical with the number of IP address current number field is terminated, more next digital section Whether digital is identical;
When determine start ip address with terminate IP address current number field number it is different, judge the termination IP address with it is described Whether the half of difference is more than or equal to 1 between the number of the current number field of start ip address;
When the half of difference between the number of current number field for determining the termination IP address and the start ip address is greater than It when equal to 1, recalculates to obtain intermediate IP address, and judges that the ownership place of the start ip address and the intermediate IP address is believed It whether identical ceases;Wherein, the number of each digital section before the current number field of the intermediate IP address and the termination IP Digital identical, the number of current number field of the respective counts field of address are as follows: described to terminate working as IP address and start ip address The half of difference between the number of preceding digital section, the sum of the number with the current number field of the start ip address, and current number The number all zero of the following digital section of field;
When the ownership place for determining the start ip address and the intermediate IP address is identical, using the intermediate IP address as institute Start ip address is stated, and is executed described when the number for determining the current number field for terminating IP address and the start ip address Between difference half be more than or equal to 1 when, recalculate to obtain intermediate IP address, and judge the start ip address and it is described in Between IP address the whether identical operation of ownership place, until the Contemporary Digital of the initial address that redefines and the termination address The number of section is identical, or the intermediate IP address redefined is different from the ownership place of the start ip address;
When determining the ownership place difference of the start ip address and the intermediate IP address, the start ip address and institute are judged Whether the ownership place for stating the IP address of the previous position sequence of intermediate IP address is identical;
It, will be from when the ownership place for determining the IP address of previous position sequence of the start ip address and the intermediate IP address is identical The start ip address to the intermediate IP address previous position sequence IP address IP section, as the obtained IP address of division Sub-segments, and continue to divide to from the intermediate IP address to the IP address section that the termination IP address forms, until The information of home location for dividing two IP address sub-segments adjacent in obtained more than two IP address sub-segments is different;
When determining the ownership place difference of the IP address of previous position sequence of the start ip address and the intermediate IP address, by institute Intermediate IP address is stated as the termination IP address, and is executed described when the determining termination IP address and the start ip address Current number field number between the half of difference when being more than or equal to 1, recalculate to obtain intermediate IP address, and described in judging The whether identical operation of the ownership place of start ip address and the intermediate IP address, until the start ip address and it is described again The ownership place for the intermediate IP address being calculated is identical.
2. IP address library according to claim 1 update method, which is characterized in that further include: in the target ip address The information of data source and renewal time is added in the updated IP address data in library.
3. IP address library according to claim 1 update method, which is characterized in that further include: with generating the Target IP The update table of comparisons of the IP address data in location library, it is described update include in the table of comparisons IP address data before updating and it is corresponding more The IP address data after new.
4. IP address library according to claim 1 update method, which is characterized in that described when with determining second IP like When information of home location and the inconsistent information of home location in corresponding IP address data in the second IP address library in the data of location, make With the information of home location in IP address data corresponding in second IP address library in the second IP like address date Information of home location is updated, comprising:
The second IP like address date is divided into multiple IP address sections, the IP in IP address section divided Data corresponding resource data in location is identical;
It obtains the start ip address of current IP address section and terminates IP address;
Judge whether the start ip address and the information of home location for terminating IP address are consistent;
When determining that the start ip address is consistent with the information of home location of IP address is terminated, next IP address section is judged Whether start ip address is consistent with the information of home location for terminating IP address;
When the information of home location for determining the start ip address and termination IP address is inconsistent, by current IP address section partition As more than two IP address sub-segments, two adjacent IP address in more than two IP address sub-segments for dividing The information of home location of sub-segments is different;
Judgement divide information of home location in obtained corresponding IP address data of more than two IP address sub-segments with it is described Whether the information of home location of corresponding IP address data is consistent in second IP address library;
When determination divides information of home location and institute in the obtained corresponding IP address data of more than two IP address sub-segments State information of home location in the second IP address library in corresponding IP address data it is inconsistent when, using in second IP address library Information of home location in corresponding IP address data is to the corresponding IP of more than two IP address sub-segments for dividing and obtaining Information of home location in address date is updated.
5. IP address library according to claim 1 update method, which is characterized in that further include: every the second preset time The IP address data in second IP address library are carried out more using the IP address data in IP address library disclosed in internet Newly.
6. IP address library according to claim 5 update method, which is characterized in that the ownership place in the IP address data Information includes home country, province, city and the information of operator of IP address;It is described to use IP address library disclosed in internet In IP address data the IP address data in second IP address library are updated, comprising:
The IP address library of third, the four, the 5th and the 6th is chosen from multiple IP address library disclosed in internet;
When determining the corresponding IP address data of corresponding IP address section in third IP address library, with the the 4th, the 5th or When corresponding IP address data are consistent in six IP address libraries, using IP address data corresponding in third IP address library to institute The IP address data stated in the second IP address library are updated;
When determining in the third IP address library home country, province and operator's informaiton in corresponding IP address data, with institute It is identical to state in the 5th or the 6th IP address library home country in corresponding IP address data, province and operator's informaiton difference When, the IP address data in second IP address library are carried out using IP address data corresponding in third IP address library It updates;
When determining corresponding IP address data and corresponding IP address in the 5th IP address library in the 4th IP address library When data are consistent, using IP address data corresponding in the 4th IP address library to the IP address in second IP address library Data are updated;
When determining corresponding IP address data and corresponding IP address in the 6th IP address library in the 5th IP address library When data are consistent, using IP address data corresponding in the 5th IP address library to the IP address in second IP address library Data are updated;
When determining in the 4th IP address library home country, province and operator's informaiton in corresponding IP address data, with In five IP address libraries when home country in corresponding IP address data, province and identical operator's informaiton difference, using described the Corresponding IP address data are more updated the IP address data in second IP address library in four IP address libraries;
When determining in the 4th IP address library home country, province and operator's informaiton in corresponding IP address data, with In six IP address libraries when home country in corresponding IP address data, province and identical operator's informaiton difference, using described the Corresponding IP address data are updated the IP address data in second IP address library in four IP address libraries;
When determining in the 4th IP address library home country, province information in corresponding IP address data, with the 5th IP Home country, province information difference are identical in corresponding IP address data in address base, and the 4th or the 5th IP address library In when there is no the information of home-operator in corresponding IP address data, using corresponding in the 4th or the 5th IP address library the two The corresponding IP address data in the IP address library of the information in IP address data with home-operator are to second IP address IP address data in library are updated;
When determining in the 4th IP address library home country, province information in corresponding IP address data, with the 6th IP Home country, province information difference are identical in corresponding IP address data in address base, and the 4th or the 6th IP address library In when there is no the information of home-operator in corresponding IP address data, using corresponding in the 4th or the 6th IP address library the two Corresponding IP address data are to second IP address in the IP address library of information in IP address data with home-operator IP address data in library are updated;
When determining in the 5th IP address library home country, province information in corresponding IP address data, with the 6th IP address Home country, province information difference are identical in corresponding IP address data in library, and phase in the 5th or the 6th IP address library When there is no the information of home-operator in the IP address data answered, using IP corresponding in the 5th or the 6th IP address library the two Corresponding IP address data are in second IP address library in the IP address library of information in the data of location with home-operator IP address data be updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in third IP address library, operator When information is consistent, using IP address data corresponding in third IP address library to the IP address in second IP address library Data are updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in the 4th IP address library, operator When information is consistent, using IP address data corresponding in the 4th IP address library to the IP address in second IP address library Data are updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in the 5th IP address library, operator When information is consistent, using IP address data corresponding in the 5th IP address library to the IP address in second IP address library Data are updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in the 6th IP address library, operator When information is consistent, using IP address data corresponding in the 6th IP address library to the IP address in second IP address library Data are updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province in corresponding IP address data in third IP address library When consistent, using IP address data corresponding in third IP address library to the IP address data in second IP address library It is updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province in corresponding IP address data in the 4th IP address library When consistent, using IP address data corresponding in the 4th IP address library to the IP address data in second IP address library It is updated;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province one in corresponding IP address data in the 5th IP address library When cause, using in the 5th IP address library corresponding IP address data the IP address data in second IP address library are carried out It updates;
When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries Family, province information, with IP address home country, the information in province in corresponding IP address data in the 6th IP address library When consistent, using IP address data corresponding in the 6th IP address library to the IP address data in second IP address library It is updated.
7. IP address library according to claim 6 update method, which is characterized in that third IP address library is purity IP Address base, the 4th IP address library be Taobao's IP address library, the 5th IP address library be IP138 address base, the described 6th IP address library is IPCN address base.
8. IP address library according to claim 1 update method, which is characterized in that further include: it is connect when every preset time When receiving update request, further includes: back up the target ip address library.
9. a kind of IP address library updating device characterized by comprising
Request unit is periodically updated, is suitable for sending to update to target ip address library every the first preset time and request;
Cache unit is suitable for the second IP address library of storage, in second IP address library with being stored with the IP obtained from internet Location data;
Data dividing unit, suitable for when receive update request when, by the IP address data in target ip address library according to data Source is divided into first kind IP address data and the second IP like address date, and the first kind IP address data source is in operation Quotient, the second IP like address date source internet, the IP address data include the ownership place letter of IP address and IP address Breath;
First judging unit, suitable for judging the information of home location in the first kind IP address data and phase in the first IP address library Whether the information of home location in IP address data answered is consistent;
First updating unit, suitable for working as the information of home location and first IP address that determine in the first kind IP address data When the information of home location in corresponding IP address data in library is inconsistent, using the corresponding IP address in first IP address library Information of home location in data updates the information of home location in the first kind IP address data;
Second judgment unit, suitable for judging the information of home location in the second IP like address date and preset second IP address Whether the information of home location in library in corresponding IP address data is consistent;
Second updating unit, suitable for when in the information of home location and the second IP address library in the determining second IP like address date When information of home location in corresponding IP address data is inconsistent, IP address data corresponding in second IP address library are used In information of home location the information of home location in the second IP like address date is updated, comprising: when determining starting ip When address and the information of home location for terminating IP address are inconsistent, current IP address section partition is become into more than two IP address Sub-segments, the information of home location of two adjacent IP address sub-segments is not in the more than two IP address sub-segments divided Together;It is wherein, described that current IP address section partition is become into more than two IP address sub-segments, comprising:
Dotted decimal notation, which is respectively adopted, in the start ip address of current IP address section and termination IP address indicates;
The start ip address of current IP address section is judged according to the sequence from a high position to low level and terminates IP address Contemporary Digital Whether the number of section is identical;
When determining that the start ip address is identical with the number of IP address current number field is terminated, more next digital section Whether digital is identical;
When determine start ip address with terminate IP address current number field number it is different, judge the termination IP address with it is described Whether the half of difference is more than or equal to 1 between the number of the current number field of start ip address;
When the half of difference between the number of current number field for determining the termination IP address and the start ip address is greater than It when equal to 1, recalculates to obtain intermediate IP address, and judges that the ownership place of the start ip address and the intermediate IP address is believed It whether identical ceases;Wherein, the number of each digital section before the current number field of the intermediate IP address and the termination IP Digital identical, the number of current number field of the respective counts field of address are as follows: described to terminate working as IP address and start ip address The half of difference between the number of preceding digital section, the sum of the number with the current number field of the start ip address, and current number The number all zero of the following digital section of field;
When the ownership place for determining the start ip address and the intermediate IP address is identical, using the intermediate IP address as institute Start ip address is stated, and is executed described when the number for determining the current number field for terminating IP address and the start ip address Between difference half be more than or equal to 1 when, recalculate to obtain intermediate IP address, and judge the start ip address and it is described in Between IP address the whether identical operation of ownership place, until the Contemporary Digital of the initial address that redefines and the termination address The number of section is identical, or the intermediate IP address redefined is different from the ownership place of the start ip address;
When determining the ownership place difference of the start ip address and the intermediate IP address, the start ip address and institute are judged Whether the ownership place for stating the IP address of the previous position sequence of intermediate IP address is identical;
It, will be from when the ownership place for determining the IP address of previous position sequence of the start ip address and the intermediate IP address is identical The start ip address to the intermediate IP address previous position sequence IP address IP section, as the obtained IP address of division Sub-segments, and continue to divide to from the intermediate IP address to the IP address section that the termination IP address forms, until The information of home location for dividing two IP address sub-segments adjacent in obtained more than two IP address sub-segments is different;
When determining the ownership place difference of the IP address of previous position sequence of the start ip address and the intermediate IP address, by institute Intermediate IP address is stated as the termination IP address, and is executed described when the determining termination IP address and the start ip address Current number field number between the half of difference when being more than or equal to 1, recalculate to obtain intermediate IP address, and described in judging The whether identical operation of the ownership place of start ip address and the intermediate IP address, until the start ip address and it is described again The ownership place for the intermediate IP address being calculated is identical.
10. IP address library according to claim 9 updating device, which is characterized in that further include: marking unit is suitable for The information of data source and renewal time is added in the updated IP address data in the target ip address library.
11. IP address library according to claim 9 updating device, which is characterized in that further include: generation unit is suitable for life It is described to update in the table of comparisons including the IP address before updating at the update table of comparisons of the IP address data in the target ip address library Data and the corresponding updated IP address data.
12. IP address library according to claim 9 updating device, which is characterized in that second updating unit is suitable for will The second IP like address date is divided into multiple IP address sections, the IP address data in IP address section divided Corresponding resource data is identical;It obtains the start ip address of current IP address section and terminates IP address;Judge the starting ip Whether address and the information of home location for terminating IP address are consistent;Return when determining the start ip address and terminating IP address When possession information is consistent, judge next IP address section start ip address and terminate IP address information of home location whether one It causes;When the information of home location for determining the start ip address and termination IP address is inconsistent, by current IP address section partition As more than two IP address sub-segments, two adjacent IP address in more than two IP address sub-segments for dividing The information of home location of sub-segments is different;Judgement divides in the obtained corresponding IP address data of more than two IP address sub-segments Information of home location and the information of home location of corresponding IP address data in second IP address library it is whether consistent;It is drawn when determining The information of home location in the corresponding IP address data of more than two IP address sub-segments got and second IP address When information of home location in library in corresponding IP address data is inconsistent, IP address data corresponding in the second IP address library are used In information of home location to the ownership divided in obtained corresponding IP address data of more than two IP address sub-segments Ground information is updated.
13. IP address library according to claim 9 updating device, which is characterized in that further include: periodically update cargo tracer Member, suitable for using the IP address data in IP address library disclosed in internet to second IP address every the second preset time IP address data in library are updated.
14. IP address library according to claim 13 updating device, which is characterized in that the ownership in the IP address data Ground information includes home country, province, city and the information of operator of IP address;The query unit that periodically updates is suitable for The IP address library of third, the four, the 5th and the 6th is chosen from multiple IP address library disclosed in internet;When determining the 3rd IP The corresponding IP address data of corresponding IP address section in address base, with corresponding IP in the four, the 5th or the 6th IP address library When address date is consistent, using IP address data corresponding in third IP address library to the IP in second IP address library Address date is updated;When determining in the third IP address library home country, province and fortune in corresponding IP address data Quotient's information is sought, with home country, province and operator in corresponding IP address data in the 5th or the 6th IP address library When information difference is identical, using IP address data corresponding in third IP address library to the IP in second IP address library Address date is updated;When determining in the 4th IP address library in corresponding IP address data and the 5th IP address library When IP address data are consistent accordingly, using IP address data corresponding in the 4th IP address library to second IP address IP address data in library are updated;When determining corresponding IP address data and the 6th IP in the 5th IP address library When corresponding IP address data are consistent in address base, using IP address data corresponding in the 5th IP address library to described IP address data in two IP address libraries are updated;Return in corresponding IP address data when determining in the 4th IP address library Belong to country, province and operator's informaiton, with home country, province and operation in corresponding IP address data in the 5th IP address library When quotient's information difference is identical, using IP address data corresponding in the 4th IP address library more in second IP address library IP address data be updated;When determining in the 4th IP address library home country, province in corresponding IP address data And operator's informaiton, distinguish with home country, province and operator's informaiton in corresponding IP address data in the 6th IP address library When identical, using IP address data corresponding in the 4th IP address library to the IP address data in second IP address library It is updated;When determining in the 4th IP address library home country, province information in corresponding IP address data, with described Home country, province information difference are identical in corresponding IP address data in five IP address libraries, and the 4th or the 5th IP When there is no the information of home-operator in corresponding IP address data in the library of location, using phase in the 4th or the 5th IP address library the two The corresponding IP address data in the IP address library of the information in the IP address data answered with home-operator are to the 2nd IP IP address data in address base are updated;Belong to state in corresponding IP address data when determining in the 4th IP address library Family, province information, it is identical as home country, province information difference in corresponding IP address data in the 6th IP address library, And when there is no the information of home-operator in corresponding IP address data in the 4th or the 6th IP address library, using the 4th or Corresponding IP in the IP address library of information in 6th IP address library the two in corresponding IP address data with home-operator Address date is updated the IP address data in second IP address library;It is corresponding in the 5th IP address library when determining IP address data in home country, province information, with home country in corresponding IP address data in the 6th IP address library, save Part information difference is identical, and does not have the letter of home-operator in corresponding IP address data in the 5th or the 6th IP address library When breath, using the IP of the information in IP address data corresponding in the 5th or the 6th IP address library the two with home-operator Corresponding IP address data are updated the IP address data in second IP address library in the library of location;It is the multiple when determining IP address home country, the information of operator in corresponding IP address data at least two IP address libraries in IP address library, with When IP address home country, the information of operator are consistent in corresponding IP address data in third IP address library, using institute Corresponding IP address data in third IP address library are stated to be updated the IP address data in second IP address library;When true IP address home country, operator in corresponding IP address data at least two IP address libraries in fixed the multiple IP address library Information, it is consistent with IP address home country, the information of operator in corresponding IP address data in the 4th IP address library When, the IP address data in second IP address library are carried out using IP address data corresponding in the 4th IP address library It updates;When determining in the multiple IP address library that IP address belongs to state in corresponding IP address data at least two IP address libraries The information of family, operator, with IP address home country in corresponding IP address data in the 5th IP address library, operator When information is consistent, using IP address data corresponding in the 5th IP address library to the IP address in second IP address library Data are updated;When with determining in the multiple IP address library at least two IP address libraries in corresponding IP address data IP Location home country, the information of operator, with IP address home country in corresponding IP address data in the 6th IP address library, When the information of operator is consistent, using IP address data corresponding in the 6th IP address library in second IP address library IP address data be updated;When determining in the multiple IP address library corresponding IP address number at least two IP address libraries According to middle IP address home country, the information in province, return with IP address in corresponding IP address data in third IP address library Belong to country, province information it is consistent when, to the 2nd IP using IP address data corresponding in third IP address library IP address data in the library of location are updated;When determining in the multiple IP address library corresponding IP at least two IP address libraries IP address home country, the information in province in address date, with IP in corresponding IP address data in the 4th IP address library Address attribution country, province information it is consistent when, using IP address data corresponding in the 4th IP address library to described the IP address data in two IP address libraries are updated;When determining in the multiple IP address library phase at least two IP address libraries IP address home country, the information in province in the IP address data answered, with corresponding IP address data in the 5th IP address library of institute When middle IP address home country, the information in province are consistent, using corresponding IP address data in the 5th IP address library of institute to described IP address data in second IP address library are updated;When determining in the multiple IP address library at least two IP address libraries IP address home country, the information in province in corresponding IP address data, with corresponding IP address in the 6th IP address library When IP address home country, the information in province are consistent in data, using IP address data corresponding in the 6th IP address library IP address data in second IP address library are updated.
15. IP address library according to claim 14 updating device, which is characterized in that third IP address library is purity IP address library, the 4th IP address library are Taobao's IP address library, and the 5th IP address library is IP138 address base, described the Six IP address libraries are IPCN address base.
16. IP address library according to claim 9 updating device, which is characterized in that further include: backup units, suitable for working as When preset time receives update request, the target ip address library is backed up.
CN201510274507.0A 2015-05-26 2015-05-26 A kind of IP address library update method and device Active CN106302843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510274507.0A CN106302843B (en) 2015-05-26 2015-05-26 A kind of IP address library update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510274507.0A CN106302843B (en) 2015-05-26 2015-05-26 A kind of IP address library update method and device

Publications (2)

Publication Number Publication Date
CN106302843A CN106302843A (en) 2017-01-04
CN106302843B true CN106302843B (en) 2019-08-06

Family

ID=57634515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510274507.0A Active CN106302843B (en) 2015-05-26 2015-05-26 A kind of IP address library update method and device

Country Status (1)

Country Link
CN (1) CN106302843B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018210A (en) * 2017-04-12 2017-08-04 北京微影时代科技有限公司 A kind of IP address base establishing method and device
CN108573018B (en) * 2018-01-12 2020-08-07 北京金山云网络技术有限公司 IP library generation method and device, electronic equipment and computer readable storage medium
CN109347945A (en) * 2018-10-12 2019-02-15 北京天融信网络安全技术有限公司 A kind of method and apparatus of nslookup
CN110505320A (en) * 2019-08-13 2019-11-26 锐捷网络股份有限公司 A kind of method, apparatus, the network equipment and the storage medium of more new IP address
CN112437167B (en) * 2020-11-11 2023-03-24 北京天融信网络安全技术有限公司 Method and device for creating transmission channel, storage medium and electronic equipment
CN112559542B (en) * 2020-12-11 2023-11-07 赛尔网络有限公司 Network basic information base updating method, device, equipment and storage medium
CN113225308B (en) * 2021-03-19 2022-11-08 深圳市网心科技有限公司 Network access control method, node equipment and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104635B (en) * 2009-12-17 2014-07-16 阿里巴巴集团控股有限公司 Method and device for updating Internet protocol (IP) address base
CN103164475B (en) * 2011-12-16 2016-08-17 北京思博途信息技术有限公司 The merging method and system in multiple IP regional information storehouses
CN103716282B (en) * 2012-09-28 2017-10-10 北京新媒传信科技有限公司 A kind of method and system in amendment IP storehouses
CN103561123B (en) * 2013-10-28 2017-05-10 北京国双科技有限公司 Method and device for determining IP segment affiliation
CN103678676A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 IP library processing method and system

Also Published As

Publication number Publication date
CN106302843A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106302843B (en) A kind of IP address library update method and device
CN103902698B (en) A kind of data-storage system and storage method
CN104239417A (en) Dynamic adjustment method and dynamic adjustment device after data fragmentation in distributed database
CN111143368B (en) Relational database data comparison method and system
WO2021139317A1 (en) Data feature enhancement method and apparatus for corpus data, computer device, and storage medium
CN106649412B (en) Data processing method and equipment
CN104408118B (en) The creation method and device of database
CN107256132B (en) Performance test-based heterogeneous Redis cluster storage allocation method
CN105843933A (en) Index building method for distributed memory columnar database
CN104636401A (en) Method and device for data rollback of SCADA (supervisory control and data acquisition) system
CN110855812B (en) Positioning method, device and equipment based on IP address
CN106682017B (en) Database updating method and device
CN105302838B (en) Classification method, lookup method and equipment
CN114239960A (en) Distribution network project group progress management method and system based on dynamic resource optimization
CN109522242A (en) A kind of method and apparatus for searching for Cache data
CN114020721A (en) Data management method, device, equipment and storage medium for time sequence database cluster
CN108363796A (en) A kind of moving method and device of data
CN110765074B (en) Method and system for quickly accessing electric load curve data of acquisition terminal
CN108205559A (en) A kind of data managing method and its equipment
CN116842244A (en) Search engine data synchronization method, system, device and storage medium
CN106980673A (en) Main memory database table index updating method and system
CN110505321B (en) Method and system for accessing IP address
CN112150102A (en) Smart grid information system account updating method and device combining RPA and AI
CN108984793A (en) A kind of data-updating method and system, storage medium
CN108833298A (en) Packet sending method, device and storage medium

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