CN106998371A - Decision method, the update method of IP information banks and the device of credible IP information - Google Patents

Decision method, the update method of IP information banks and the device of credible IP information Download PDF

Info

Publication number
CN106998371A
CN106998371A CN201610048749.2A CN201610048749A CN106998371A CN 106998371 A CN106998371 A CN 106998371A CN 201610048749 A CN201610048749 A CN 201610048749A CN 106998371 A CN106998371 A CN 106998371A
Authority
CN
China
Prior art keywords
information
address
address information
geographical location
location information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610048749.2A
Other languages
Chinese (zh)
Other versions
CN106998371B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610048749.2A priority Critical patent/CN106998371B/en
Publication of CN106998371A publication Critical patent/CN106998371A/en
Application granted granted Critical
Publication of CN106998371B publication Critical patent/CN106998371B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

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

Abstract

The embodiment of the present application, which is disclosed, provides a kind of decision method, the update method of IP information banks and the device of credible IP information, the problem of to solve that collected IP address information and whether credible corresponding geographical location information can not be judged in the prior art.Wherein, the decision method of the credible IP information includes:The IP address information and geographical location information corresponding with the IP address information of the network equipment is gathered to form first information set;Determine the default geographic area residing for the corresponding geographical location information of IP address information to be determined;In the first information set, it is determined that with above-mentioned IP address information to be determined preset IP address field value identical, and in the default geographic area IP address information quantity;Judge whether the quantity is more than or equal to predetermined number threshold value;If so, judging the IP address information to be determined as credible IP geographical location information.

Description

Decision method, the update method of IP information banks and the device of credible IP information
Technical field
The application is related to computer technology, more particularly to a kind of decision method of credible IP information, IP information The update method and device in storehouse.
Background technology
IP address (Internet Protocol Address, internet protocol address) is each in internet Each network equipment in the logical address that the network equipment is distributed, internet corresponds to a geographical position Information is (such as:Latitude and longitude information), by gather each network equipment in internet IP address information and with Corresponding geographical location information, you can with formed include maps mutually IP address information and geographical position letter The IP geographical information libraries of breath.Above-mentioned IP geographical information libraries can apply in several scenes, such as:According to net The IP address of network equipment determines the geographical position residing for the network equipment.
Generally, IP address information and corresponding geographical location information are not in the internet collected It is all correct.For example:The equipment a collected IP address information is:192.201.30.45, with the IP Address information:192.201.30.45 corresponding geographical location information is:Beijing supermarket b, and in actual feelings In condition, with the IP address information:192.201.30.45 corresponding geographical location information should be:Beijing Supermarket c, so, above-mentioned data are incredible.
On the one hand, IP address information in the prior art, in internet is collected and corresponding Manage after positional information, collected IP address information and corresponding geographical position are not can determine that also Confidence breath whether believable technology.
On the other hand, in the prior art, due in internet for each network equipment distribute IP address and Geographical location information corresponding with the IP address is continually changing, formed above-mentioned IP geographical information libraries it Afterwards, the IP address information and corresponding geographical location information in internet typically can be in time gathered, And the IP geographical information libraries are updated using the information collected, to ensure data accuracy.Obviously, In the prior art, if collected IP address information and corresponding geographical location information can not be judged It is whether credible, then it can not ensure the accuracy of data in the IP geographical information libraries after updating.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of decision method of credible IP information, IP information banks more New method and device, to solve one of above mentioned problem of the prior art.
In order to solve the above technical problems, decision method, the IP of the credible IP information that the embodiment of the present application is provided The update method and device of information bank.It is realized in:
A kind of decision method of credible IP information, including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered with shape Into first information set;
Determine the default geographic area residing for the corresponding geographical location information of IP address information to be determined;
In the first information set, it is determined that with above-mentioned IP address information to be determined in preset IP address The value identical of field, and the quantity of the IP address information in the default geographic area;
Judge whether the quantity is more than or equal to predetermined number threshold value;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information.
A kind of decision method of credible IP information, including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered with shape Into first information set;
In the first information set, determine respectively it is in each default geographic area and with it is to be determined IP address information preset IP address field value identical IP address information quantity;Wherein, it is described Second information aggregate includes some IP address information and geographical position corresponding with each IP address information is believed Breath;
Determine the default geographic area residing for the corresponding geographical location information of IP address information to be determined;
Judge corresponding with the default geographic area of the above-mentioned determination quantity whether more than with it is other default Manage the corresponding quantity in region;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information.
A kind of update method of IP information banks, including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered, Obtain comprising the IP address information collected and the first information set of geographical location information;
If the IP address information included in the first information set is present in the second information aggregate to be updated In, judge in the first information set geographical location information corresponding with the IP address information and in institute Whether consistent state geographical location information corresponding with the IP address information in the second information aggregate;
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Default geographic area residing for information, and count and exist in the first information set with the IP address information The quantity of the value identical IP address information of preset IP address field;
Judge whether the quantity is more than or equal to predetermined number threshold value;
If the quantity be more than or equal to predetermined number threshold value, will in second information aggregate with the IP The corresponding geographical location information of address information replace with the first information set with the IP address information Corresponding geographical location information.
A kind of update method of IP information banks, including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered, Obtain comprising the IP address information collected and the first information set of geographical location information;
The first information set is divided according to the default geographic area residing for the geographical location information Group, obtains grouping set corresponding with each default geographic area;
If the IP address information included in the first information set is present in the second information aggregate to be updated In, judge in the first information set geographical location information corresponding with the IP address information and in institute Whether consistent state geographical location information corresponding with the IP address information in the second information aggregate;
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Default geographic area residing for information, and determine to preset the corresponding grouping set in geographic area with this;
Judge it is determined that the grouping set in it is identical in the value of preset IP address field with the IP address information IP address information quantity with whether exceeding in remaining grouping set with the IP address information in default IP The quantity of the value identical IP address information of location field;
If exceeding, will in second information aggregate geographical location information corresponding with the IP address information Replace with the geographical location information corresponding with the IP address information in the first information set.
A kind of decision maker of credible IP information, including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Positional information is managed to form first information set;
First determining unit, for determining residing for the corresponding geographical location information of IP address information to be determined Default geographic area;
Second determining unit, in the first information set, it is determined that with above-mentioned IP to be determined Location information preset IP address field value identical, and in the default geographic area IP address The quantity of information;
First judging unit, for judging whether the quantity is more than or equal to predetermined number threshold value;
Identifying unit, for when the quantity is more than or equal to predetermined number threshold value, judgement to be waited to sentence with described The fixed corresponding geographical location information of IP address information is the credible geographical location information of the IP address information.
A kind of decision maker of credible IP information, including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Positional information is managed to form first information set;
First determining unit, in the first information set, determining respectively in each default geography Region and with IP address information to be determined preset IP address field value identical IP address information Quantity;
Second determining unit, for determining residing for the corresponding geographical location information of IP address information to be determined Default geographic area;
First judging unit, for whether judging the quantity corresponding with the default geographic area of above-mentioned determination The quantity corresponding more than with other default geographic areas;
Identifying unit, for the quantity corresponding with the default geographic area of above-mentioned determination be more than with it is other During the corresponding quantity in default geographic area, judge correspondingly with the IP address information to be determined Manage the credible geographical location information that positional information is the IP address information.
A kind of updating device of IP information banks, including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information, is obtained comprising the IP address information collected and the first information collection of geographical location information Close;
First judging unit, the IP address information for being included in the first information set, which is present in, to be treated When in the second information aggregate updated, judge corresponding with the IP address information in the first information set Geographical location information and corresponding with the IP address information geographical position letter in second information aggregate Whether breath is consistent;
First determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set residing for geographical location information corresponding with the IP address information Default geographic area, and with counting in the first information set with the IP address information in default IP The quantity of the value identical IP address information of location field;
Second judging unit, for judging whether the quantity is more than or equal to predetermined number threshold value;
Replacement unit, for that when the quantity is more than or equal to predetermined number threshold value, will believe described second Geographical location information corresponding with the IP address information is replaced with the first information set in breath set Geographical location information corresponding with the IP address information.
A kind of updating device of IP information banks, including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information, is obtained comprising the IP address information collected and the first information collection of geographical location information Close;
Grouped element, for by the first information set according to default residing for the geographical location information Reason region is grouped, and obtains grouping set corresponding with each default geographic area;
First judging unit, the IP address information for being included in the first information set, which is present in, to be treated When in the second information aggregate updated, judge corresponding with the IP address information in the first information set Geographical location information and corresponding with the IP address information geographical position letter in second information aggregate Whether breath is consistent
First determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set residing for geographical location information corresponding with the IP address information Default geographic area, and determine to preset the corresponding grouping set in geographic area with this;
Second judging unit, for judge it is determined that the grouping set in the IP address information default The quantity of the value identical IP address information of IP address field whether exceed in remaining grouping set with the IP Quantity of the address information in the value identical IP address information of preset IP address field;
Replacement unit, for that when the quantity is more than or equal to predetermined number threshold value, will believe described second Geographical location information corresponding with the IP address information is replaced with the first information set in breath set Geographical location information corresponding with the IP address information.
The technical scheme provided from each embodiment of above the application, in the IP address of the collection network equipment , it is necessary to weigh the IP address information and whether geographical location information is credible after information and geographical location information. Found by studying, for certain the IP address information collected and corresponding geographical location information, if It is existing in the corresponding default geographic area of the geographical location information and with above-mentioned IP address to be determined Information is more in the quantity of the IP address information of the value identical of preset IP address field, then with showing the IP Location information and the confidence level of corresponding geographical location information are higher.Based on this principle, the application is implemented Example is by determining in above-mentioned default geographic area and being preset with above-mentioned IP address information to be determined The quantity of the IP address information of the value identical of IP address field, and wait to sentence described in being judged according to the quantity The fixed corresponding geographical location information of IP address information whether be the IP address information credible geographical position letter Breath.
In addition, the IP address information collected and corresponding geographical location information are being utilized, to advance During second information aggregate of generation is updated, equally some IP can be judged according to above-mentioned principle Whether address information and corresponding geographical location information are credible, if credible, will be in second information In set geographical location information corresponding with the IP address information replace with the first information set with The corresponding geographical location information of IP address information, so as to complete the renewal of above-mentioned second information aggregate, enters And ensure the accuracy of data in the second information aggregate to be updated.
Brief description of the drawings
, below will be to implementing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art The accompanying drawing used required in example or description of the prior art is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments described in the application, for those of ordinary skill in the art, Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
The flow chart of the decision method for the credible IP geographical location information that Fig. 1 provides for the embodiment of the application one;
Fig. 2, which is shown, determines some IP address information and corresponding geographical position in the embodiment of the present application The whether believable process of information;
The flow of the decision method for the credible IP geographical location information that Fig. 3 provides for another embodiment of the application Figure;
The flow chart of the update method for the IP information banks that Fig. 4 provides for the embodiment of the application one;
Fig. 5 is shown in the embodiment of the present application using the first information set collected to the second information aggregate The process being updated;
The flow chart of the update method for the IP information banks that Fig. 6 provides for another embodiment of the application;
Fig. 7 is the stream in the update method of the IP information banks provided on the basis of the embodiment shown in Fig. 6 Cheng Tu;
The module diagram of the decision maker for the credible IP information that Fig. 8 provides for the embodiment of the application one;
The module diagram of the updating device for the IP information banks that Fig. 9 provides for the embodiment of the application one;
The module diagram of the updating device for the IP information banks that Figure 10 provides for another embodiment of the application.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with this Apply for the accompanying drawing in embodiment, the technical scheme in the embodiment of the present application be clearly and completely described, Obviously, described embodiment is only some embodiments of the present application, rather than whole embodiments.Base Embodiment in the application, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment obtained, should all belong to the scope of the application protection.
The flow of the decision method for the credible IP geographical location information that Fig. 1 provides for the embodiment of the application one, Coordinate referring to Figures 1 and 2, this method comprises the following steps:
S101:Gather the IP address information and geographical position corresponding with IP address information letter of the network equipment Cease to form first information set.
The present embodiment can be believed by periodically or non-periodically gathering the IP address of the network equipment in internet Breath and geographical location information, obtain the comprising the above-mentioned IP address information that collects and geographical location information One information aggregate 20.Wherein, the above-mentioned network equipment can include personal computer (PC), mobile phone, printing The equipment of all kinds of being connected into the internet environment and allocated unique ip address such as machine, server. Above-mentioned geographical location information can be indicated in forms such as longitude and latitude or geographic names.Above-mentioned collection work Work can be completed by default information collecting platform, and the information platform possesses collection information, storage information simultaneously The condition calculated mass data.The corresponding Internet protocol of above-mentioned IP address can include IPV4 (Internet Protocol Version 4, the edition 4 of Internet protocol), IPV6 (Internet Protocol Version 6, the version 6 of Internet protocol).
S102:Determine the default geographic region residing for the corresponding geographical location information of IP address information to be determined Domain.
In the embodiment of the present application, it is possible to determine that any one IP address in above-mentioned first information set 20 and Whether corresponding geographical location information is credible.As shown in Fig. 2 for example:With it is to be determined whether credible IP address:189.234.102.109 in corresponding data 210, display and the IP address: 189.234.102.109 corresponding geographical location information is:Beijing market a (can carry out table with longitude and latitude Show).In order to judge the confidence level of IP address information and corresponding geographical location information, can in advance by Geographical position is divided into several default geographic areas according to certain distance scope, for example, each after dividing Default geographic area is the rectangular area that the length of side is 10 kilometers or has an area of 10 kilometers border circular areas etc..This Sample, for any one geographical location information, it may be determined that a corresponding default geographic area.Such as Shown in Fig. 2, by searching, it may be determined that with geographical location information:Beijing market a is corresponding defaultly Manage region R.
S103:In above-mentioned first information set 20, it is determined that with IP address information to be determined in default IP The value identical of address field, and the quantity of the IP address information in the default geographic area.
In the present embodiment, if an IP address information and another IP address information are in preset IP address word The value of section is identical, then it is IP address information similar each other that can define the two IP address information. For IPV4 IP address, it is indicated with decimal number or corresponding 32 bit, for example: Metric IP address:100.4.5.6, corresponding 32 binary IP address are: 01100100.00000100.00000101.00000110 (4 sections, 8 every section are divided).Wherein, for IPV4 IP address, if being indicated with decimal number, then above-mentioned preset IP address field can be with " " Preceding 3 fields divided:100.4.5, if being indicated with 32 bits, then above-mentioned default IP Address field can be first 24 (first 3 sections, 8 every section):01100100.00000100.00000101. Similarly, for IPV6 IP address, it is indicated with decimal number or corresponding 128 bit, Then above-mentioned preset IP address field then needs to be adjusted accordingly.In a word, for different types of IP Location, corresponding above-mentioned preset IP address field can also be adjusted accordingly.
Can one by one it be found in upper based on the data included in first information set 20 in the present embodiment State in default geographic area R, and with IP address information:189.234.102.109 in preset IP address The quantity M of the value identical IP address information of field.Continue to continue to use above-mentioned example, for it is to be determined whether Believable IP address information:189.234.102.109, similar IP address information can be 189.234.102.x, wherein x can be any one number in 0~255, for the IP address information: 189.234.102.x, if corresponding geographical location information is in first information set 20:Beijing business City b, and " Beijing store b " is located in the default geographic area R, then can be assumed that State IP address information:189.234.102.x with above-mentioned IP address information:189.234.102.109 in default IP The value identical of address field and in the same default geographic area., can be by by said process The above-mentioned 189.234.102.x finally determined sum is defined as above-mentioned M..
S104:Judge whether the quantity M is more than or equal to predetermined number threshold value M0;If so, entering step Rapid S105.
S105:Judge geographical location information corresponding with IP address information to be determined as the IP address information Credible geographical location information.
For example, it is assumed that the predetermined number threshold value M of setting0It is 10 (can be an empirical values), then such as Obtained quantity M >=10 of fruit, show in above-mentioned first information set 20 with the IP address information: 189.234.102.109 corresponding geographical location information:" Beijing store a " is that believable (or confidence level is Higher).
Based in above example, after the IP address information and geographical location information of the collection network equipment, Need to weigh the IP address information and whether geographical location information is credible.Found by studying, for collection Certain the IP address information arrived and corresponding geographical location information, if corresponding in the geographical location information In default geographic area presence and with above-mentioned IP address information to be determined in preset IP address field The quantity for being worth the IP address information of identical is more, then shows the IP address information and corresponding geography The confidence level of positional information is higher.Based on this principle, the embodiment of the present application is by determining above-mentioned default Manage it is in region and with above-mentioned IP address information to be determined preset IP address field value identical The quantity of IP address information, and the IP address information to be determined is judged according to the size of the quantity Corresponding geographical location information whether be the IP address information credible geographical location information, realize to IP The checking of the reliability of confidence breath.
The flow of the decision method for the credible IP geographical location information that Fig. 3 provides for another embodiment of the application, Coordinate reference picture 3 and Fig. 2, this method comprises the following steps:
S201:Gather the IP address information and geographical position corresponding with IP address information letter of the network equipment Cease to form first information set.The step can refer to above-mentioned steps S101 content, no longer be repeated.
S202:In above-mentioned first information set, determine respectively it is in each default geographic area and with The quantity of IP address information to be determined in the value identical IP address information of preset IP address field.
As previously mentioned, for IP address information to be determined preset IP address field value identical its His IP address information, these other IP address information may be distributed in one or more default geographic areas. If respectively in multiple default geographic areas, need to count respectively in each default geographic area with treating Quantity of the IP address information of judgement in the value identical IP address information of preset IP address field.For example: The default geographic area that there is distribution situation includes:Preset geographic area R, default geographic area S, preset Geographic area H, by statistics, the quantity for obtaining being distributed in default geographic area R is 20, default The quantity of distribution is 3 in the S of geographic area, and the quantity being distributed in default geographic area H is 1.
S203:Determine the default geographic region residing for the corresponding geographical location information of IP address information to be determined Domain.
In the example in figure 2, with IP address information:189.234.102.109 corresponding geographical location information: Default geographic area residing for a of Beijing market is:Default geographic area R.
S204:Judge corresponding with the default geographic area of the above-mentioned determination quantity whether more than with it is other pre- If the corresponding quantity in geographic area;If so, then entering step S205.
In the above example, sorted from big to small according to quantity M:Default geographic area R > preset geographic region Domain S > preset geographic area H.That is, the similar IP address being distributed in default geographic area R The quantity of information is most, is shown and IP address information to be determined:189.234.102.109 it is corresponding Above-mentioned geographical location information:Beijing market a confidence level is highest.
S205:Judge geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information.
Similarly, the embodiment of the present application is by determining in above-mentioned default geographic area and waiting to sentence with above-mentioned Fixed IP address information the IP address information of the value identical of preset IP address field quantity, and according to The size of the quantity come judge the corresponding geographical location information of IP address information to be determined whether as The credible geographical location information of the IP address information, realizes the checking to the reliability of IP positional informations.
The whether believable side of IP address information and corresponding geographical location information that above-mentioned judgement is collected Method, can be used in the method that is updated to the data in the IP information banks that previously generate, to ensure IP The accuracy of data in information bank, next describes the update method to the IP information banks.
The flow of the update method for the IP information banks that Fig. 4 provides for the embodiment of the application one, coordinates reference picture 4 And Fig. 5, this method comprises the following steps:
S301:Gather the IP address information of the network equipment in internet and corresponding with the IP address information Geographical location information, obtain the first information comprising the IP address information that collects and geographical location information Set 20.
As shown in figure 5, after the second information aggregate (alternatively referred to as IP geographical information libraries) 10 is set up, The present embodiment can by periodically or non-periodically gather each network equipment in internet IP address information and Geographical location information, obtains the first letter comprising the above-mentioned IP address information and geographical location information collected Breath set 20, and finally carried out using 20 pairs of second information aggregates 10 having built up of the first information set Update, so that it is guaranteed that the accuracy of the data in second information aggregate 10.Wherein, for collecting A large amount of IP address information and corresponding geographical location information, can be in advance by undesirable number According to being filtered, IP address and the nonstandard data of geographical location information are such as filtered out, then will be obtained after filtering To mass data be put into first information set 20.It is worth mentioning that according to the actual requirements, it is above-mentioned Acquisition platform can also gather the MAC Address (Medium/Media of each network equipment in internet Access Control, physical address) etc. other information.
S303:If certain the IP address information included in first information set 20 is present in the second letter to be updated In breath set 10, the geographical position letter corresponding with the IP address information in first information set 20 is judged Cease and whether geographical location information corresponding with the IP address information is consistent in the second information aggregate 10.If It is inconsistent, into step S304.
By above-mentioned steps S303, by the data in first information set 20 and the second information aggregate 10 Data are compared, if finding same IP address in the information aggregate 10 of first information set 20 and second Middle corresponding geographical location information respectively is inconsistent, then shows correspondingly with the IP address information Manage positional information and there is dispute, it is meant that be originally stored in the geographical position in above-mentioned second information aggregate 10 Information is probably inaccurate or altered at current time.For example:In first information set 20 with IP address:189.234.102.109 in corresponding data 210, display and the IP address:189.234.102.109 Corresponding geographical location information is:Beijing market a (can be represented with longitude and latitude);And in the second letter With above-mentioned IP address in breath set 10:189.234.102.109 in corresponding data 110, display and the IP Address:189.234.102.109 corresponding geographical location information is:Beijing supermarket b.Obviously, this hour hand To same IP address information, there is dispute, it is necessary to which which is further verified in its corresponding geographical location information Individual geographical location information confidence level is higher.
S304:It is determined that in first information set 20 geographical location information institute corresponding with the IP address information The default geographic area at place, and count in first information set 20 it is in the default geographic area and with Quantity of the IP address information in the value identical IP address information of preset IP address field.
Definition on IP address (identical in the value of preset IP address field) similar each other can be joined above Content.Usually, if in default geographic area, with certain IP address preset IP address field value phase The quantity of other same IP address is more, that is, shows the credible of geographical location information corresponding with the IP address Degree is higher.
Above-mentioned example is continued to use, with IP address in first information set 20:189.234.102.109 it is corresponding In data 210, display and the IP address:189.234.102.109 corresponding geographical location information is:North Capital market a, by searching, it may be determined that default geographic area corresponding with Beijing market a is for example It is:10 kilometers of the circumference centered on " 20 ° of east longitude, 30 ° of north latitude ".Assuming that by searching, obtaining (it is with " 20 ° of east longitude, 30 ° of north latitude " in above-mentioned default geographic area in first information set 20 10 kilometers of the circumference at center) and with the IP address information preset IP address field value identical IP Address information includes:
IP address:189.234.102.101, corresponding geographical location information:Beijing market a;
IP address:189.234.102.102, corresponding geographical location information:Beijing market a;
IP address:189.234.102.104, corresponding geographical location information:Beijing market a;
……
IP address:189.234.102.18, corresponding geographical location information:Beijing market b (is also at State in default geographic area);
IP address:189.234.102.10, corresponding geographical location information:Beijing market b (is also at State in default geographic area)
……
By count it is in same default geographic area and with IP address information:189.234.102.109 In the value identical IP address information of preset IP address field, the value in preset IP address field can be obtained The quantity M of identical IP address information.
S305:Judge whether the quantity is more than or equal to predetermined number threshold value.If the quantity is more than or waited In predetermined number threshold value, into step S306.
For example, it is assumed that the predetermined number threshold value of setting is 10 (can be an empirical values), if then obtained Quantity M >=10 arrived, show in above-mentioned first information set 20 with the IP address information: 189.234.102.109 the confidence level of corresponding geographical location information is higher, and in the second information aggregate 10 In with the IP address information:189.234.102.109 the confidence level of corresponding geographical location information is relatively low.
S306:Will in second information aggregate 10 geographical location information corresponding with the IP address information The geographical location information corresponding with the IP address information in the first information set 20 is replaced with, so that Complete the renewal to IP information banks.In the above example, by geographical location information:Beijing supermarket b is replaced It is changed to Beijing store a.
In the present embodiment, the process for performing above-mentioned steps S303~S306 can be circulated, so that one by one by first Data in information aggregate 20 are compared with the data in the second information aggregate 10, and with same IP When the corresponding geographical location information of address information is inconsistent, the geographical position in checking first information set 20 The confidence level of information, and when confidence level is higher, the geographical position in above-mentioned second information aggregate 10 is believed Breath replaces with the geographical location information in above-mentioned first information set 20, realizes the number to the second information aggregate According to renewal, and ensure the accuracy that updates the data.
In the embodiment of the present application, after above-mentioned steps S303, before above-mentioned steps S306, the side Method also comprises the following steps:
S307:If in first information set 20 geographical location information corresponding with the IP address information and Geographical location information corresponding with the IP address information is inconsistent in second information aggregate 10, it is determined that in institute State in first information set 20 geographical location information corresponding with the IP address information and in second information The first distance in set 10 between geographical location information corresponding with the IP address information.
Continue to continue to use above-mentioned example, it is assumed that with IP address in first information set 20:189.234.102.109 Corresponding geographical location information is:Beijing market a;And with above-mentioned IP in the second information aggregate 10 Location:189.234.102.109 corresponding geographical location information is:Beijing supermarket b, by calculating, it is assumed that It is 9 kilometers to draw the first distance between Beijing market a and Beijing supermarket b.
S308:Judge whether first distance is less than or equal to pre-determined distance threshold value.
Assuming that pre-determined distance threshold value is 10 kilometers, then in the above example, Beijing market a and Beijing (9 kilometers) of the first distance between supermarket b is less than the pre-determined distance threshold value.
In the present embodiment, it is in step S308 judged result:"Yes", and above-mentioned steps S305 Judged result is:During "Yes", into above-mentioned steps S306.The present embodiment is by increasing above-mentioned steps S307 And S308, can be with further such that the trust verification process of geographical location information in first information set Accuracy (requirement that similar IP predetermined number threshold value and pre-determined distance threshold value need to be met simultaneously), so as to carry Rise the accuracy that IP geographical position updates.
The flow of the update method for the IP information banks that Fig. 6 provides for another embodiment of the application, coordinates reference Shown in Fig. 6 and Fig. 5, this method comprises the following steps:
S401:Gather the IP address information of the network equipment in internet and corresponding with the IP address information Geographical location information, obtain the information collection 20 comprising the IP address information that collects and geographical location information. Step S401 is referred to above-mentioned steps S301 content, is no longer repeated herein.
S402:First information set 20 is entered according to the default geographic area residing for the geographical location information Row packet, obtains grouping set corresponding with each default geographic area.
As shown in figure 5, after first information set 20 is collected, can be by the first information set 20 Default geographic area according to dividing in advance is grouped, and obtains multiple with each default corresponding point of geographic area Group set, be respectively:1st grouping set 21~k-th grouping set 2k, wherein k >=2, k are certainly So count.For example, it is assumed that geographical position is divided into 1000 in advance according to a certain distance scope in advance If geographic area, then there are 1000 grouping sets corresponding with each default geographic area accordingly, it is each The geographical location information corresponding to IP address deposited in individual grouping set need to be corresponding in the grouping set In default geographic area.
S404:If the IP address information included in first information set 20 is present in the second information to be updated In set 10, the geographical location information corresponding with the IP address information in first information set 20 is judged Whether geographical location information corresponding with the IP address information with second information aggregate 10 is consistent; If inconsistent, into step S405.
S405:It is determined that in first information set 20 geographical location information institute corresponding with the IP address information The default geographic area at place, and determine to preset the corresponding grouping set in geographic area with this.
Continue as an example it is assumed that in first information set 20 with IP address:189.234.102.109 correspondence Geographical location information be:Beijing market a;By matching, it is determined that with the geographical location information:Beijing A corresponding default geographic areas in certain market are:Circumference centered on " 20 ° of east longitude, 30 ° of north latitude " 10 kilometers, it is further possible to determine and the default geographic area:With " 20 ° of east longitude, 30 ° of north latitude " Centered on 10 kilometers of corresponding grouping sets of circumference be s-th of grouping set 2s, wherein, 1≤s≤k.
S406:Judge it is determined that the grouping set in the IP address information in preset IP address field Whether the quantity for being worth identical IP address information exceedes in remaining grouping set with the IP address information pre- If the quantity of the value identical IP address information of IP address field.If exceeding, into step S407.
In the present embodiment, with above-mentioned IP address information preset IP address field value identical IP address Information may be distributed in one or more packets set, can if being distributed at least two grouping sets With count respectively in each grouping set with the IP address information preset IP address field value identical IP The quantity of address information, and be ranked up, obtain the corresponding quantity ranking of each grouping set.For example, false If with IP address in first information set 20:189.234.102.109 corresponding geographical location information is:North Capital market a, by statistics, has found the IP address in remaining IP of the value identical of preset IP address field Address d istribution is respectively in three grouping sets:1st grouping set 21, the 2nd grouping set 22, s-th of grouping set 2s, wherein, with the geographical location information:The corresponding packets of Beijing market a Collection is combined into s-th of grouping set 2s.By statistics, draw in above-mentioned 1st grouping set 21 with IP address:189.234.102.109 it is 10 in the value identical IP address quantity of preset IP address field, In above-mentioned 2nd grouping set 22 and IP address:189.234.102.109 in preset IP address field Value identical IP address quantity is 20, in above-mentioned s-th of grouping set 2s and IP address: 189.234.102.109 it is 30 in the value identical IP address quantity of preset IP address field, then finally, sentences The quantity of similar IP address in fixed above-mentioned s-th of grouping set 2s is more than remaining grouping set (above-mentioned the 1 grouping set 21, above-mentioned 2nd grouping set 22) in similar IP address quantity.
S407:It will be replaced geographical location information corresponding with the IP address information in the second information aggregate 10 For the geographical location information corresponding with the IP address information in first information set 20.
In the above example, due in first information set 20 with IP address:189.234.102.109 it is right The geographical location information answered is:Beijing market a, and be with the geographical location information:Beijing business With the IP address information in the corresponding grouping sets (above-mentioned s-th of grouping set 2s) of field a: 189.234.102.109 preset IP address field value identical IP address information (i.e. 189.234.102.x, X represents any one natural number in 0~255) quantity be more than in remaining grouping set (above-mentioned 1st Grouping set 21, above-mentioned 2nd grouping set 22) with the IP address information:189.234.102.109 In the value identical IP address information of preset IP address field.Similar IP in above-mentioned s-th of grouping set 2s Quantity at most, that is, shows geographical location information Beijing market a and the IP address information: 189.234.102.109 compatible degree highest (confidence level highest).At this point it is possible to by the second information aggregate 10 In with the IP address information:189.234.102.109 corresponding geographical location information:" Beijing supermarket b " It is substituted for " Beijing market a ".
Above-mentioned steps S404~S407 process is performed by circulating, it is possible to achieve to the number of the second information aggregate According to renewal, and ensure the accuracy that updates the data.
In the embodiment of the present application, after above-mentioned steps S404, before above-mentioned steps S407, this method It can also comprise the following steps:
S408:It is determined that in first information set 20 geographical location information corresponding with the IP address information and The first distance in the second information aggregate 10 between geographical location information corresponding with the IP address information.
S409:Judge whether the first distance is less than or equal to pre-determined distance threshold value.
Above-mentioned steps S408 and step S409 are referred to above-mentioned steps S307 and step S308 content, The present embodiment, can be with further such that in first information set by increasing above-mentioned steps S408 and S409 The accuracy of the trust verification process of geographical location information (need to meet similar IP predetermined number threshold simultaneously The requirement of value and pre-determined distance threshold value), so as to lift the accuracy of IP geographical position renewal.
For further optimization data more new technological process, in the embodiment of the present application, a nothing can be pre-defined and striven Information bank Q1 and a dispute information bank Q2 are discussed, it is determined that with some IP in above-mentioned first information set When information corresponding geographical location information confidence level in location is higher, can not be immediately performed above-mentioned steps S306 or Above-mentioned steps S407, but by the higher IP address information of the confidence level and corresponding with the IP address information Geographical location information be put into it is above-mentioned without dispute information bank Q1, finally, this without dispute information bank Q1 in Data need not be verified, and have some data can not determine that its confidence level is highest, but It can not directly be given up, then these data can be put into above-mentioned dispute information bank Q2, to treat into one Step demonstrate,proves confidence level.Finally, some data in first information set 20 can be divided into above-mentioned nothing to strive Discuss in information bank Q1 and dispute information bank Q2, also, for the data of same IP address, if its It is present in simultaneously above-mentioned without in dispute information bank Q1 and dispute information bank Q2, then the IP address can be existed Data in dispute information bank Q2 are deleted.
Next, by introduce how to dispute on information bank Q2 data carry out trust verification process.
Fig. 7 is the stream in the update method of the IP information banks provided on the basis of the embodiment shown in Fig. 6 Journey, including:
S410:Determine respectively in each grouping set with the IP address information preset IP address field value The quantity of identical IP address information.Wherein, after above-mentioned steps S404 has been performed, into the step S410。
S412:By the corresponding quantity of each grouping set according to being ranked up from big to small, obtain and each set of packets Close corresponding quantity ranking.
Continue to continue to use above-mentioned example, it is assumed that with IP address in first information set 20:189.234.102.109 Corresponding geographical location information is:Beijing market a, by statistics, has found the IP address in default IP Remaining IP address of the value identical of address field is distributed in three grouping sets, is respectively:1st point Group the 21, the 2nd grouping set 22 of set, s-th of grouping set 2s, wherein, believe with the geographical position Breath:A corresponding grouping sets in Beijing market are s-th of grouping set 2s.By statistics, draw upper State in the 1st grouping set 21 and IP address:189.234.102.109 in the value of preset IP address field Identical IP address quantity is 10, in above-mentioned 2nd grouping set 22 and IP address: 189.234.102.109 it is 20 in the value identical IP address quantity of preset IP address field, in above-mentioned s In individual grouping set 2s and IP address:189.234.102.109 in the value identical of preset IP address field IP address quantity is 30, then finally, by by the corresponding quantity of each grouping set according to carrying out from big to small Sequence, is obtained:
S-th of grouping set 21 of the > of grouping set 22 the 1st of grouping set 2s > the 2nd.
S414:Judge whether the corresponding quantity ranking of grouping set currently determined is 1 any one into n It is individual, wherein, after step S405 has been performed, into step S414.
Wherein, if above-mentioned steps S414 judged result is "Yes", and above-mentioned steps S409 judgement As a result it is "No", then into step S416.
In the above example, it is assumed that being determined in step S405 with default geographic area:" with " 20 ° of east longitude, The corresponding grouping set of 10 kilometers of circumference centered on 30 ° of north latitude " " is:S-th of grouping set 2s, If above-mentioned quantity ranking corresponding with s-th of grouping set 2s is 1, and in first information set 20 In with the IP address:" 189.234.102.109 " corresponding geographical location information:" Beijing market a " and With the IP address in second information aggregate 10:" 189.234.102.109 " corresponding geographical location information:" north The first distance (such as 9 kilometers) between capital supermarket b " is less than pre-determined distance threshold value (such as 10 kilometers), Then free from controvery it can be assumed that in first information set with above-mentioned IP address:189.234.102.109 it is right The geographical location information answered:Beijing market a is that confidence level is higher, and then puts it into Q1.
If conversely, find in first information set 20 with the IP address:" 189.234.102.109 " correspondence Geographical location information:" with the IP address in Beijing market a " and the second information aggregate 10: " 189.234.102.109 " corresponding geographical location information:" the first distance between Beijing supermarket b " is (such as 11 kilometers) it is more than or equal to pre-determined distance threshold value (such as 10 kilometers), and above-mentioned s-th of grouping set The corresponding above-mentioned quantity rankings of 2s are any one in 1~n (wherein, 2≤n, n are natural number), then Step S416 can be entered.
S416:The IP address information is defined as IP address information of disputing on, and by the dispute IP address information And geographical location information corresponding with the dispute IP address information is put into dispute in above-mentioned first information set In information bank Q2.
The credible of data in above-mentioned dispute information bank Q2 is verified by step S418, S420, S422 Degree, if confidence level meets the condition updated, into step S424.Wherein, on step S418, S420, S422 will be described in detail below.
S424:Will in the second information aggregate 10 geographical location information corresponding with the dispute IP address information Replace with the geographical location information corresponding with the dispute IP address information in dispute information bank Q2.
In the embodiment of the present application, above-mentioned steps S418 can be specifically included:
S4181:It is determined that at least one adjacent IP address information adjacent with the dispute IP address information, and It is determined that in second information aggregate 10 geographical location information corresponding with above-mentioned adjacent IP address information and In the first information set 10 between geographical location information corresponding with the dispute IP address information Two distances.
Wherein, it is fixed if an IP address and numerical value of another IP address on last position are adjacent The two adopted IP address are IP address adjacent each other.For example, for IP address: " 189.234.102.109 ", IP address adjacent thereto is:“189.234.102.108”、 “189.234.102.110”.Assuming that in the second information aggregate 10 and above-mentioned IP address:“189.234.102.108” Corresponding geographical location information is:Beijing market b, in the second information aggregate 10 and above-mentioned IP address: " 189.234.102.110 " corresponding geographical location information is:Beijing supermarket c, in the first information With the dispute IP address information in 10 (i.e. above-mentioned dispute information bank Q2) of set:“189.234.102.109” Corresponding geographical location information is:Beijing market a, finally draws respectively:
" Beijing market b " with " Beijing market a " second distance is 5 kilometers;
" Beijing supermarket c " with " Beijing market a " second distance is 7 kilometers;
S4182:Judge whether the second distance is more than or equal to the pre-determined distance threshold value.If described Two distances are less than the pre-determined distance threshold value, into above-mentioned steps S424.
In the above example, if the pre-determined distance threshold value of setting is 10 kilometers, above-mentioned " Beijing market b " With " Beijing market a " second distance, " Beijing supermarket c " and " the second of Beijing market a " Distance is respectively less than this 10 kilometers.During by above-mentioned steps S418, above-mentioned dispute information can be verified The confidence level of data in the Q2 of storehouse.
In the embodiment of the present application, above-mentioned steps S420 can be specifically included:
S4201:Determine respectively in above-mentioned dispute information bank Q2, in the above-mentioned storehouse of IP geography information 10 with certain Dispute on IP address information the value identical IP address information of preset IP address field the first quantity, second Quantity.
Continue to continue to use above-mentioned example, for the dispute IP address information:" 189.234.102.109 ", above-mentioned With the dispute IP address information in dispute information bank Q2:" 189.234.102.109 " is in preset IP address word First quantity of the value identical IP address information of section is 100, is striven in above-mentioned IP geography information 10 with this Discuss IP address information:" 189.234.102.109 " believes in the value identical IP address of preset IP address field First quantity of breath is 80.
S4202:Judge whether first quantity is more than m times of second quantity;Wherein, 1≤m.
For example, the m=1.1, that is, judge whether above-mentioned first quantity is more than the 1.1 of second quantity Times.If so, then entering step S4203.
S4203:Judge whether first quantity, the second quantity are all higher than basic threshold.If described first Quantity, the second quantity are all higher than basic threshold, then into above-mentioned steps S424.
In a practical situation, although it is possible that the first quantity is more than m times of the second quantity, first Quantity and the second quantity too it is small (such as the first quantity is 2, the second quantity be 1), then such case also without The confidence level of method checking dispute IP address information.To improve the accuracy of checking, basic threshold, example are set Such as:10.It can be seen that above-mentioned first quantity:100 are more than above-mentioned second quantity:1.1 times of 80, and it is big In 10, then the data corresponding with the dispute IP address information in above-mentioned dispute information bank Q2 can be determined Confidence level it is higher, can be put into without dispute information bank Q1, and finally utilize without dispute information bank Q1 Interior data are updated to the second information aggregate 10.
In the embodiment of the present application, above-mentioned steps S422 can be specifically included:
S4221:Determine respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate with certain dispute IP First quantity, second quantity of the address information in the value identical IP address information of preset IP address field. Step S4221 is referred to above-mentioned steps S4201 content.
S4222:Judge whether the first quantity is more than second quantity and whether first quantity is all higher than Basic threshold;Step S4222 is referred to above-mentioned steps S4203 content.
If first quantity is less than second quantity and first quantity is more than basic threshold, enter Step S4223.
S4223:It is determined that with the dispute IP address information in preset IP address in the dispute information bank Q2 The first variance of the geographical location information of each IP address information of value identical of field, it is determined that described second In information aggregate 10 with the dispute IP address information preset IP address field each IP address of value identical The second variance of the geographical location information of information;
For example:For dispute IP address information:189.234.102.109, with it in dispute information bank Q2 Include in the value identical IP address information of preset IP address field:189.234.102.107 (correspondingly It is x to manage positional information1), (corresponding geographical location information is x to 189.234.102.1082), 189.234.102.166 (corresponding geographical location information is x3);With it pre- in the second information aggregate 10 If the value identical IP address information of IP address field includes:189.234.102.155 (corresponding geographical position Confidence breath is y1), (corresponding geographical location information is y to 189.234.102.102), 189.234.102.177 (corresponding geographical location information is y3)。
Utilize variance calculation formula, it can be deduced that:
First varianceWherein,It is x1、x2、x3Average (can To be the average of longitude and latitude).
Second varianceWherein,It is y1、y2、y3Average (can To be the average of longitude and latitude).
S4224:Judge the first varianceWhether the second variance is less thanIf so, into above-mentioned Step S424.
The embodiment of the present application by any one or more processes in above-mentioned steps S418, S420, S422, Data in obtained dispute information bank Q2 are verified one by one, and confidence level satisfaction is required (credible Degree it is higher) IP address information and corresponding geographical location information be put into without dispute information bank Q1 in, It is final that the second information aggregate 10 is updated using without the data in dispute information bank Q1.
Corresponding with above method flow, embodiments herein additionally provides a kind of sentencing for credible IP information Determine the updating device of device and IP information banks.Said apparatus can be realized by software, can also be by hard The mode of part or software and hardware combining is realized.Exemplified by implemented in software, as the device on logical meaning, it is Corresponding computer program is referred to by the central processing unit (Central Process Unit, CPU) of server Order reads what operation in internal memory was formed.
The module diagram of the decision maker for the credible IP information that Fig. 8 provides for the embodiment of the application one.Its In, each step institute included in function and the above method that the unit included in the device is realized is real Existing function phase is same, therefore the device is referred to the detail in the above method, is no longer repeated herein. In the embodiment of the application one, the decision maker of credible IP information includes:
Collecting unit 101, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information to form first information set;
First determining unit 102, for determining the corresponding geographical location information institute of IP address information to be determined The default geographic area at place;
Second determining unit 103, in the first information set, it is determined that with above-mentioned IP to be determined Address information is in the value identical of preset IP address field, and the IP in the default geographic area The quantity of location information;
First judging unit 104, for judging whether the quantity is more than or equal to predetermined number threshold value;
Identifying unit 105, for the quantity be more than or equal to predetermined number threshold value when, judge with it is described The corresponding geographical location information of IP address information to be determined is believed for the credible geographical position of the IP address information Breath.
In the embodiment of the present application, described device also includes:
Searching unit, for based on the second information aggregate previously generated, searching in second information aggregate Geographical location information corresponding with IP address information to be determined;
3rd determining unit, for the geographical position corresponding with IP address information to be determined for determining to collect Confidence ceases, geographical position corresponding with the IP address information to be determined with above-mentioned second information aggregate The first distance between confidence breath;Wherein, second information aggregate include some IP address information and with The corresponding geographical location information of each IP address information.
Second judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
Correspondingly, the identifying unit 105 specifically for:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, judge that geographical location information corresponding with the IP address information to be determined is believed as the IP address The credible geographical location information of breath.
In another embodiment of the application, the decision maker of above-mentioned credible IP information includes:
Collecting unit 101, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information to form first information set;
First determining unit 102, in the first information set, determining respectively in each default Geographic area and with IP address information to be determined preset IP address field value identical IP address The quantity of information;
Second determining unit 103, for determining the corresponding geographical location information institute of IP address information to be determined The default geographic area at place;
First judging unit 104, for judging the quantity corresponding with the default geographic area of above-mentioned determination Whether with the other default geographic areas corresponding quantity is more than;
Identifying unit 105, for the quantity corresponding with the default geographic area of above-mentioned determination be more than with During the corresponding quantity in other default geographic areas, judge corresponding with the IP address information to be determined Geographical location information be the IP address information credible geographical location information.
In the embodiment of the present application, described device also includes:
Searching unit, for based on the second information aggregate previously generated, searching in second information aggregate Geographical location information corresponding with IP address information to be determined;Wherein, second information aggregate includes Some IP address information and geographical location information corresponding with each IP address information.
3rd determining unit, for the geographical position corresponding with IP address information to be determined for determining to collect Confidence ceases, geographical position letter corresponding with IP address information to be determined with above-mentioned second information aggregate The first distance between breath;
Second judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
Correspondingly, the identifying unit 105 specifically for:If the default geographic area with above-mentioned determination is corresponding The quantity be more than the quantity corresponding with other default geographic areas, and first distance be less than or Equal to pre-determined distance threshold value, judge geographical location information corresponding with the IP address information to be determined as The credible geographical location information of the IP address information.
To sum up content, the decision maker for the credible IP information that the embodiment of the present application is provided, can pass through determination It is in above-mentioned default geographic area and with above-mentioned IP address information to be determined in preset IP address field Value identical IP address information quantity, it is and described to be determined to judge according to the size of the quantity The corresponding geographical location information of IP address information whether be the IP address information credible geographical location information, Realize the checking to the reliability of IP geography information.
The module diagram of the updating device for the IP information banks that Fig. 9 provides for the embodiment of the application one.Wherein, Each step included in function and the above method that the unit included in the device is realized is realized Function phase it is same, therefore the device is referred to the detail in the above method, is no longer repeated herein. The device includes:
Collecting unit 201, for gather each network equipment in internet IP address information and with the IP The corresponding geographical location information of address information, is obtained comprising IP address information and the geographical position letter collected The first information set of breath;
First judging unit 203, the IP address information for being included in the first information set is present in When in the second information aggregate to be updated, judge in the first information set with the IP address information pair The geographical location information answered and the geographical position corresponding with the IP address information in second information aggregate Whether information is consistent;
First determining unit 204, for corresponding with the IP address information in the first information set Manage positional information and geographical location information corresponding with the IP address information is not in second information aggregate When consistent, it is determined that the geographical location information institute corresponding with the IP address information in the first information set The default geographic area at place, and count in the first information set it is in the default geographic area and with Quantity of the IP address information in the value identical IP address information of preset IP address field;
Second judging unit 205, for judging whether the quantity is more than or equal to predetermined number threshold value;
Replacement unit 206, will be described for when the quantity is more than or equal to predetermined number threshold value Geographical location information corresponding with the IP address information is replaced with the first information collection in two information aggregates Geographical location information corresponding with the IP address information in conjunction.
The present apparatus can be carried out more using the data in first information set to the data in the second information aggregate Newly, it is ensured that the accuracy updated the data.
In the embodiment of the present application, described device also includes:
Second determining unit 207, for corresponding with the IP address information in the first information set Manage positional information and geographical location information corresponding with the IP address information is not in second information aggregate When consistent, it is determined that in the first information set geographical location information corresponding with the IP address information and The first distance in second information aggregate between geographical location information corresponding with the IP address information;
3rd judging unit 208, for judging whether first distance is less than or equal to pre-determined distance threshold value;
Correspondingly, the replacement unit 206 specifically for:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, it will be replaced geographical location information corresponding with the IP address information in second information aggregate For the geographical location information corresponding with the IP address information in the first information set.
The module diagram of the updating device for the IP information banks that Figure 10 provides for another embodiment of the application.Its In, each step institute included in function and the above method that the unit included in the device is realized is real Existing function phase is same, therefore the device is referred to the detail in the above method, is no longer repeated herein. The device includes:
Collecting unit 301, for gather each network equipment in internet IP address information and with the IP The corresponding geographical location information of address information, is obtained comprising IP address information and the geographical position letter collected The first information set of breath;
Grouped element 302, for by the first information set according to pre- residing for the geographical location information If geographic area is grouped, grouping set corresponding with each default geographic area is obtained;
First judging unit 304, the IP address information for being included in the first information set is present in When in the second information aggregate to be updated, judge in the first information set with the IP address information pair The geographical location information answered and the geographical position corresponding with the IP address information in second information aggregate Whether information is consistent;
First determining unit 305, for corresponding with the IP address information in the first information set Manage positional information and geographical location information corresponding with the IP address information is not in second information aggregate When consistent, it is determined that the geographical location information institute corresponding with the IP address information in the first information set The default geographic area at place, and determine to preset the corresponding grouping set in geographic area with this;
Second judging unit 306, for judge it is determined that the grouping set in the IP address information pre- If whether the quantity of the value identical IP address information of IP address field exceedes in remaining grouping set with being somebody's turn to do Quantity of the IP address information in the value identical IP address information of preset IP address field;
Replacement unit 307, will be described for when the quantity is more than or equal to predetermined number threshold value Geographical location information corresponding with the IP address information is replaced with the first information collection in two information aggregates Geographical location information corresponding with the IP address information in conjunction.
The present apparatus can be carried out more using the data in first information set to the data in the second information aggregate Newly, it is ensured that the accuracy updated the data.
In the embodiment of the present application, described device also includes:
Second determining unit 308, for corresponding with the IP address information in the first information set Manage positional information and geographical location information corresponding with the IP address information is not in second information aggregate When consistent, it is determined that in the first information set geographical location information corresponding with the IP address information and The first distance in second information aggregate between geographical location information corresponding with the IP address information;
3rd judging unit 309, for judging whether first distance is less than or equal to pre-determined distance threshold value;
Correspondingly, the replacement unit 307 specifically for:
If it is determined that the grouping set in the IP address information preset IP address field value identical The quantity of IP address information exceedes in remaining grouping set with the IP address information in preset IP address field Value identical IP address information quantity and it is described first distance be less than or equal to pre-determined distance threshold value, Geographical location information corresponding with the IP address information it will be replaced with second information aggregate described Geographical location information corresponding with the IP address information in first information set.
In the embodiment of the present application, described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information;Wherein, 2≤n, n are natural number;
5th determining unit, for determining at least one the adjacent IP adjacent with the dispute IP address information Location information, and determine the geographical position corresponding with above-mentioned adjacent IP address information in second information aggregate Confidence cease and in the first information set geographical location information corresponding with the dispute IP address information it Between second distance;
4th judging unit, for judging whether the second distance is more than or equal to the pre-determined distance threshold Value;
Correspondingly, the replacement unit 307 specifically for:
If the second distance is less than the pre-determined distance threshold value, it will be striven in second information aggregate with this The corresponding geographical location information of view IP address information replace with the first information set with dispute IP The corresponding geographical location information of address information.
In the embodiment of the present application, described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information, and by the dispute IP address information and in above-mentioned first information set with dispute IP The corresponding geographical location information of address information is put into dispute information bank;Wherein, 2≤n, n are natural number;
5th determining unit, for determining respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate With certain dispute IP address information the value identical IP address information of preset IP address field the first quantity, Second quantity;
4th judging unit, for judging whether first quantity is more than m times of second quantity;Its In, 1≤m;
5th judging unit, for being more than m times of second quantity in first quantity, judges described Whether the first quantity, the second quantity are all higher than basic threshold;
Correspondingly, the replacement unit 307 specifically for:
If first quantity, the second quantity are all higher than basic threshold, will in second information aggregate with The corresponding geographical location information of dispute IP address information replace with it is described dispute information bank in the dispute The corresponding geographical location information of IP address information.
In the embodiment of the present application, described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information, and by the dispute IP address information and in above-mentioned first information set with dispute IP The corresponding geographical location information of address information is put into dispute information bank;Wherein, 2≤n, n are natural number;
5th determining unit, for determining respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate With certain dispute IP address information the value identical IP address information of preset IP address field the first quantity, Second quantity;
4th judging unit, for judging whether first quantity is more than second quantity and described first Whether quantity is all higher than basic threshold;
6th determining unit, for being less than second quantity and first quantity is big in first quantity When basic threshold, it is determined that with the dispute IP address information in preset IP address in the dispute information bank The first variance of the geographical location information of each IP address information of value identical of field, it is determined that described second In information aggregate with the dispute IP address information preset IP address field each IP address information of value identical Geographical location information second variance;
5th judging unit, for judging whether the first variance is less than the second variance;
Correspondingly, the replacement unit 307 specifically for:
If the first variance be less than the second variance, will in second information aggregate with dispute IP The corresponding geographical location information of address information is replaced with to be believed in the dispute information bank with the dispute IP address Cease corresponding geographical location information.
In summary, in the updating device of above-mentioned IP information banks, some can be judged according to above-mentioned principle Whether IP address information and corresponding geographical location information are credible, if credible, will be in the described second letter Geographical location information corresponding with the IP address information is replaced with the first information set in breath set Geographical location information corresponding with the IP address information, so that the renewal of above-mentioned second information aggregate is completed, And then ensure the accuracy of data in the second information aggregate.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, The function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot The form of embodiment in terms of conjunction software and hardware.Wherein wrapped one or more moreover, the present invention can be used Containing computer usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention is with reference to the production of method according to embodiments of the present invention, equipment (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions implementation process figure and / or each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through and calculate The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or the processing of other programmable datas to set In the standby computer-readable memory worked in a specific way so that be stored in the computer-readable memory Instruction produce include the manufacture of command device, the command device realization in one flow or multiple of flow chart The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and perform series of operation steps on computer or other programmable devices to produce computer implemented place Reason, so that the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, commodity or equipment including a series of key elements not only include Those key elements, but also other key elements including being not expressly set out, or also include for this process, Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the application can be used wherein includes calculating one or more Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, Optical memory etc.) on the form of computer program product implemented.
The application can be described in the general context of computer executable instructions, example Such as program module.Usually, program module includes performing particular task or realizes particular abstract data type Routine, program, object, component, data structure etc..This can also be put into practice in a distributed computing environment Application, in these DCEs, by the remote processing devices connected by communication network come Execution task.In a distributed computing environment, program module can be located at local including storage device In remote computer storage medium.
Each embodiment in this specification is described by the way of progressive, between each embodiment it is identical The value identical part of preset IP address field is mutually referring to what each embodiment was stressed is With the difference of other embodiment.For system embodiment, due to its side of being substantially similar to Method embodiment, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle Any modification, equivalent substitution and improvements of work etc., should be included within the scope of claims hereof.

Claims (22)

1. a kind of decision method of credible IP information, it is characterised in that including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered with shape Into first information set;
Determine the default geographic area residing for the corresponding geographical location information of IP address information to be determined;
In the first information set, it is determined that with above-mentioned IP address information to be determined in preset IP address The value identical of field, and the quantity of the IP address information in the default geographic area;
Judge whether the quantity is more than or equal to predetermined number threshold value;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Based on the second information aggregate previously generated, search in second information aggregate with IP to be determined The corresponding geographical location information of address information, wherein, second information aggregate is believed including some IP address Breath and geographical location information corresponding with each IP address information;
It is determined that the geographical location information corresponding with IP address information to be determined collected, with the second information The first distance in set between geographical location information corresponding with the IP address information to be determined;
Judge whether first distance is less than or equal to pre-determined distance threshold value;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information, is specifically included:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, judge that geographical location information corresponding with the IP address information to be determined is believed as the IP address The credible geographical location information of breath.
3. a kind of decision method of credible IP information, it is characterised in that including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered with shape Into first information set;
In the first information set, determine respectively it is in each default geographic area and with it is to be determined IP address information preset IP address field value identical IP address information quantity;
Determine the default geographic area residing for the corresponding geographical location information of IP address information to be determined;
Judge corresponding with the default geographic area of the above-mentioned determination quantity whether more than with it is other default Manage the corresponding quantity in region;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information.
4. method according to claim 3, it is characterised in that methods described also includes:
Based on the second information aggregate previously generated, search in second information aggregate with IP to be determined The corresponding geographical location information of address information;Wherein, second information aggregate is believed including some IP address Breath and geographical location information corresponding with each IP address information;
It is determined that the geographical location information corresponding with IP address information to be determined collected, and above-mentioned The first distance in two information aggregates between geographical location information corresponding with IP address information to be determined;
Judge whether first distance is less than or equal to pre-determined distance threshold value;
If so, judging geographical location information corresponding with the IP address information to be determined as the IP address The credible geographical location information of information, is specifically included:
If the quantity corresponding with the default geographic area of above-mentioned determination is more than and other default geographic areas The corresponding quantity, and first distance is less than or equal to pre-determined distance threshold value, judgement is waited to sentence with described The fixed corresponding geographical location information of IP address information is the credible geographical location information of the IP address information.
5. a kind of update method of IP information banks, it is characterised in that including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered, Obtain comprising the IP address information collected and the first information set of geographical location information;
If the IP address information included in the first information set is present in the second information aggregate to be updated In, judge in the first information set geographical location information corresponding with the IP address information and in institute Whether consistent state geographical location information corresponding with the IP address information in the second information aggregate;
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Default geographic area residing for information, and count and exist in the first information set with the IP address information The quantity of the value identical IP address information of preset IP address field;
Judge whether the quantity is more than or equal to predetermined number threshold value;
If the quantity be more than or equal to predetermined number threshold value, will in second information aggregate with the IP The corresponding geographical location information of address information replace with the first information set with the IP address information Corresponding geographical location information.
6. method according to claim 5, it is characterised in that judge in the first information set In geographical location information corresponding with the IP address information and in second information aggregate with the IP address , will be in second information aggregate with the IP after whether the corresponding geographical location information of information is consistent The corresponding geographical location information of location information replace with the first information set with the IP address information pair Before the geographical location information answered, methods described also includes:
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Information and in second information aggregate between geographical location information corresponding with the IP address information One distance;
Judge whether first distance is less than or equal to pre-determined distance threshold value;
If the quantity be more than or equal to predetermined number threshold value, will in second information aggregate with the IP The corresponding geographical location information of address information replace with the first information set with the IP address information Corresponding geographical location information, is specifically included:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, it will be replaced geographical location information corresponding with the IP address information in second information aggregate For the geographical location information corresponding with the IP address information in the first information set.
7. a kind of update method of IP information banks, it is characterised in that including:
The IP address information and geographical location information corresponding with the IP address information of the network equipment are gathered, Obtain comprising the IP address information collected and the first information set of geographical location information;
The first information set is divided according to the default geographic area residing for the geographical location information Group, obtains grouping set corresponding with each default geographic area;
If the IP address information included in the first information set is present in the second information aggregate to be updated In, judge in the first information set geographical location information corresponding with the IP address information and in institute Whether consistent state geographical location information corresponding with the IP address information in the second information aggregate;
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Default geographic area residing for information, and determine to preset the corresponding grouping set in geographic area with this;
Judge it is determined that the grouping set in it is identical in the value of preset IP address field with the IP address information IP address information quantity with whether exceeding in remaining grouping set with the IP address information in default IP The quantity of the value identical IP address information of location field;
If exceeding, will in second information aggregate geographical location information corresponding with the IP address information Replace with the geographical location information corresponding with the IP address information in the first information set.
8. method according to claim 7, it is characterised in that judge in the first information set In geographical location information corresponding with the IP address information and in second information aggregate with the IP address , will be in second information aggregate with the IP after whether the corresponding geographical location information of information is consistent The corresponding geographical location information of location information replace with the first information set with the IP address information pair Before the geographical location information answered, methods described also includes:
If inconsistent, it is determined that the geographical position corresponding with the IP address information in the first information set Information and in second information aggregate between geographical location information corresponding with the IP address information One distance;
Judge whether first distance is less than or equal to pre-determined distance threshold value;
If exceeding, will in second information aggregate geographical location information corresponding with the IP address information The geographical location information corresponding with the IP address information in the first information set is replaced with, specific bag Include:
If it is determined that the grouping set in the IP address information preset IP address field value identical The quantity of IP address information exceedes in remaining grouping set with the IP address information in preset IP address field Value identical IP address information quantity and it is described first distance be less than or equal to pre-determined distance threshold value, Geographical location information corresponding with the IP address information it will be replaced with second information aggregate described Geographical location information corresponding with the IP address information in first information set.
9. method according to claim 8, it is characterised in that methods described also includes:
If the geographical location information corresponding with the IP address information and described in the first information set Geographical location information corresponding with the IP address information is inconsistent in second information aggregate, determines respectively each In grouping set with the IP address information the value identical IP address information of preset IP address field number Amount;
By the corresponding quantity of each grouping set according to being ranked up from big to small, obtain corresponding with each grouping set Quantity ranking;
Judge whether first distance is less than or equal to after pre-determined distance threshold value, methods described also includes:
If first distance is more than pre-determined distance threshold value and quantity corresponding with the grouping set currently determined Ranking is 1 to any one in n, then the IP address information is defined as into IP address information of disputing on;Its In, 2≤n, n is natural number;
It is determined that at least one adjacent IP address information adjacent with the dispute IP address information, and determine in institute State in the second information aggregate geographical location information corresponding with above-mentioned adjacent IP address information and described first Second distance in information aggregate between geographical location information corresponding with the dispute IP address information;
Judge whether the second distance is more than or equal to the pre-determined distance threshold value;
, will be in second information aggregate with being somebody's turn to do if the second distance is less than the pre-determined distance threshold value The corresponding geographical location information of dispute IP address information replace with the first information set with the dispute The corresponding geographical location information of IP address information.
10. method according to claim 8, it is characterised in that methods described also includes:
If the geographical location information corresponding with the IP address information and described in the first information set Geographical location information corresponding with the IP address information is inconsistent in second information aggregate, determines respectively each In grouping set with the IP address information the value identical IP address information of preset IP address field number Amount;
By the corresponding quantity of each grouping set according to being ranked up from big to small, obtain corresponding with each grouping set Quantity ranking;
Judge whether first distance is less than or equal to after pre-determined distance threshold value, methods described also includes:
If first distance is more than pre-determined distance threshold value and quantity corresponding with the grouping set currently determined Ranking is 1 to any one in n, then the IP address information is defined as into IP address information of disputing on, and By the dispute IP address information and in above-mentioned first information set correspondingly with the dispute IP address information Reason positional information is put into dispute information bank;Wherein, 2≤n, n are natural number;
Determine respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate with certain dispute IP address letter Cease the first quantity, the second quantity in the value identical IP address information of preset IP address field;
Judge whether first quantity is more than m times of second quantity;Wherein, 1≤m;
If being more than, judge whether first quantity, the second quantity are all higher than basic threshold;
, will be in second information aggregate if first quantity, the second quantity are all higher than basic threshold Geographical location information corresponding with the dispute IP address information is replaced with to be striven in the dispute information bank with this Discuss the corresponding geographical location information of IP address information.
11. method according to claim 8, it is characterised in that methods described also includes:
If the geographical location information corresponding with the IP address information and described in the first information set Geographical location information corresponding with the IP address information is inconsistent in second information aggregate, determines respectively each In grouping set with the IP address information the value identical IP address information of preset IP address field number Amount;
By the corresponding quantity of each grouping set according to being ranked up from big to small, obtain corresponding with each grouping set Quantity ranking;
Judge whether first distance is less than or equal to after pre-determined distance threshold value, methods described also includes:
If first distance is more than pre-determined distance threshold value and quantity corresponding with the grouping set currently determined Ranking is 1 to any one in n, then the IP address information is defined as into IP address information of disputing on, and By the dispute IP address information and in above-mentioned first information set correspondingly with the dispute IP address information Reason positional information is put into dispute information bank;Wherein, 2≤n, n are natural number;
Determine respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate with certain dispute IP address letter Cease the first quantity, the second quantity in the value identical IP address information of preset IP address field;
Judge whether first quantity is more than second quantity and whether first quantity is all higher than base Plinth threshold value;
If first quantity is less than second quantity and first quantity is more than basic threshold, it is determined that It is described dispute information bank in the dispute IP address information preset IP address field each IP of value identical The first variance of the geographical location information of address information, it is determined that in second information aggregate with dispute IP Address information each IP address information of value identical of preset IP address field geographical location information second Variance;
Judge whether the first variance is less than the second variance;
If so, then will in second information aggregate geographical position corresponding with the dispute IP address information Information replaces with the geographical location information corresponding with the dispute IP address information in the dispute information bank.
12. a kind of decision maker of credible IP information, it is characterised in that including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Positional information is managed to form first information set;
First determining unit, for determining residing for the corresponding geographical location information of IP address information to be determined Default geographic area;
Second determining unit, in the first information set, it is determined that with above-mentioned IP to be determined Location information preset IP address field value identical, and in the default geographic area IP address The quantity of information;
First judging unit, for judging whether the quantity is more than or equal to predetermined number threshold value;
Identifying unit, for when the quantity is more than or equal to predetermined number threshold value, judgement to be waited to sentence with described The fixed corresponding geographical location information of IP address information is the credible geographical location information of the IP address information.
13. device according to claim 12, it is characterised in that described device also includes:
Searching unit, for based on the second information aggregate previously generated, searching in second information aggregate Geographical location information corresponding with IP address information to be determined;Wherein, second information aggregate includes Some IP address information and geographical location information corresponding with each IP address information;
3rd determining unit, for the geographical position corresponding with IP address information to be determined for determining to collect Confidence ceases, geographical position corresponding with the IP address information to be determined with above-mentioned second information aggregate The first distance between confidence breath;
Second judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
The identifying unit specifically for:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, judge that geographical location information corresponding with the IP address information to be determined is believed as the IP address The credible geographical location information of breath.
14. a kind of decision maker of credible IP information, it is characterised in that including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Positional information is managed to form first information set;
First determining unit, in the first information set, determining respectively in each default geography Region and with IP address information to be determined preset IP address field value identical IP address information Quantity;
Second determining unit, for determining residing for the corresponding geographical location information of IP address information to be determined Default geographic area;
First judging unit, for whether judging the quantity corresponding with the default geographic area of above-mentioned determination The quantity corresponding more than with other default geographic areas;
Identifying unit, for the quantity corresponding with the default geographic area of above-mentioned determination be more than with it is other During the corresponding quantity in default geographic area, judge correspondingly with the IP address information to be determined Manage the credible geographical location information that positional information is the IP address information.
15. method according to claim 14, it is characterised in that described device also includes:
Searching unit, for based on the second information aggregate previously generated, searching in second information aggregate Geographical location information corresponding with IP address information to be determined;Wherein, second information aggregate includes Some IP address information and geographical location information corresponding with each IP address information;
3rd determining unit, for the geographical position corresponding with IP address information to be determined for determining to collect Confidence ceases, geographical position letter corresponding with IP address information to be determined with above-mentioned second information aggregate The first distance between breath;
Second judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
The identifying unit specifically for:
If the quantity corresponding with the default geographic area of above-mentioned determination is more than and other default geographic areas The corresponding quantity, and first distance is less than or equal to pre-determined distance threshold value, judgement is waited to sentence with described The fixed corresponding geographical location information of IP address information is the credible geographical location information of the IP address information.
16. a kind of updating device of IP information banks, it is characterised in that including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information, is obtained comprising the IP address information collected and the first information collection of geographical location information Close;
First judging unit, the IP address information for being included in the first information set, which is present in, to be treated When in the second information aggregate updated, judge corresponding with the IP address information in the first information set Geographical location information and corresponding with the IP address information geographical position letter in second information aggregate Whether breath is consistent;
First determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set residing for geographical location information corresponding with the IP address information Default geographic area, and with counting in the first information set with the IP address information in default IP The quantity of the value identical IP address information of location field;
Second judging unit, for judging whether the quantity is more than or equal to predetermined number threshold value;
Replacement unit, for that when the quantity is more than or equal to predetermined number threshold value, will believe described second Geographical location information corresponding with the IP address information is replaced with the first information set in breath set Geographical location information corresponding with the IP address information.
17. device according to claim 16, it is characterised in that described device also includes:
Second determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set geographical location information corresponding with the IP address information and The first distance in second information aggregate between geographical location information corresponding with the IP address information;
3rd judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
The replacement unit specifically for:
If the quantity is more than or equal to predetermined number threshold value and first distance be less than or equal to it is default away from From threshold value, it will be replaced geographical location information corresponding with the IP address information in second information aggregate For the geographical location information corresponding with the IP address information in the first information set.
18. a kind of updating device of IP information banks, it is characterised in that including:
Collecting unit, for gathering the IP address information of the network equipment and corresponding with the IP address information Geographical location information, is obtained comprising the IP address information collected and the first information collection of geographical location information Close;
Grouped element, for by the first information set according to default residing for the geographical location information Reason region is grouped, and obtains grouping set corresponding with each default geographic area;
First judging unit, the IP address information for being included in the first information set, which is present in, to be treated When in the second information aggregate updated, judge corresponding with the IP address information in the first information set Geographical location information and corresponding with the IP address information geographical position letter in second information aggregate Whether breath is consistent
First determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set residing for geographical location information corresponding with the IP address information Default geographic area, and determine to preset the corresponding grouping set in geographic area with this;
Second judging unit, for judge it is determined that the grouping set in the IP address information default The quantity of the value identical IP address information of IP address field whether exceed in remaining grouping set with the IP Quantity of the address information in the value identical IP address information of preset IP address field;
Replacement unit, for that when the quantity is more than or equal to predetermined number threshold value, will believe described second Geographical location information corresponding with the IP address information is replaced with the first information set in breath set Geographical location information corresponding with the IP address information.
19. device according to claim 18, it is characterised in that described device also includes:
Second determining unit, for the geography corresponding with the IP address information in the first information set Positional information and geographical location information corresponding with the IP address information differs in second information aggregate During cause, it is determined that in the first information set geographical location information corresponding with the IP address information and The first distance in second information aggregate between geographical location information corresponding with the IP address information;
3rd judging unit, for judging whether first distance is less than or equal to pre-determined distance threshold value;
The replacement unit specifically for:
If it is determined that the grouping set in the IP address information preset IP address field value identical The quantity of IP address information exceedes in remaining grouping set with the IP address information in preset IP address field Value identical IP address information quantity and it is described first distance be less than or equal to pre-determined distance threshold value, Geographical location information corresponding with the IP address information it will be replaced with second information aggregate described Geographical location information corresponding with the IP address information in first information set.
20. device according to claim 19, it is characterised in that described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information;Wherein, 2≤n, n are natural number;
5th determining unit, for determining at least one the adjacent IP adjacent with the dispute IP address information Location information, and determine the geographical position corresponding with above-mentioned adjacent IP address information in second information aggregate Confidence cease and in the first information set geographical location information corresponding with the dispute IP address information it Between second distance;
4th judging unit, for judging whether the second distance is more than or equal to the pre-determined distance threshold Value;
The replacement unit specifically for:
If the second distance is less than the pre-determined distance threshold value, it will be striven in second information aggregate with this The corresponding geographical location information of view IP address information replace with the first information set with dispute IP The corresponding geographical location information of address information.
21. device according to claim 19, it is characterised in that described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information, and by the dispute IP address information and in above-mentioned first information set with dispute IP The corresponding geographical location information of address information is put into dispute information bank;Wherein, 2≤n, n are natural number;
5th determining unit, for determining respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate With certain dispute IP address information the value identical IP address information of preset IP address field the first quantity, Second quantity;
4th judging unit, for judging whether first quantity is more than m times of second quantity;Its In, 1≤m;
5th judging unit, for being more than m times of second quantity in first quantity, judges described Whether the first quantity, the second quantity are all higher than basic threshold;
The replacement unit specifically for:
If first quantity, the second quantity are all higher than basic threshold, will in second information aggregate with The corresponding geographical location information of dispute IP address information replace with it is described dispute information bank in the dispute The corresponding geographical location information of IP address information.
22. device according to claim 19, it is characterised in that described device also includes:
3rd determining unit, for determining respectively in each grouping set with the IP address information in default IP The quantity of the value identical IP address information of address field;
Sequencing unit, for the corresponding quantity of each grouping set, according to being ranked up from big to small, is obtained with The corresponding quantity ranking of each grouping set;
4th determining unit, in the described first point apart from pre-determined distance threshold value is more than and with currently determining The group corresponding quantity ranking of set for 1 to any one in n when, the IP address information is defined as striving Discuss IP address information, and by the dispute IP address information and in above-mentioned first information set with dispute IP The corresponding geographical location information of address information is put into dispute information bank;Wherein, 2≤n, n are natural number;
5th determining unit, for determining respectively in above-mentioned dispute information bank, in above-mentioned second information aggregate With certain dispute IP address information the value identical IP address information of preset IP address field the first quantity, Second quantity;
4th judging unit, for judging whether first quantity is more than second quantity and described first Whether quantity is all higher than basic threshold;
6th determining unit, for being less than second quantity and first quantity is big in first quantity When basic threshold, it is determined that with the dispute IP address information in preset IP address in the dispute information bank The first variance of the geographical location information of each IP address information of value identical of field, it is determined that described second In information aggregate with the dispute IP address information preset IP address field each IP address information of value identical Geographical location information second variance;
5th judging unit, for judging whether the first variance is less than the second variance;
The replacement unit specifically for:
If the first variance be less than the second variance, will in second information aggregate with dispute IP The corresponding geographical location information of address information is replaced with to be believed in the dispute information bank with the dispute IP address Cease corresponding geographical location information.
CN201610048749.2A 2016-01-25 2016-01-25 Credible IP information judging method, IP information base updating method and device Active CN106998371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610048749.2A CN106998371B (en) 2016-01-25 2016-01-25 Credible IP information judging method, IP information base updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610048749.2A CN106998371B (en) 2016-01-25 2016-01-25 Credible IP information judging method, IP information base updating method and device

Publications (2)

Publication Number Publication Date
CN106998371A true CN106998371A (en) 2017-08-01
CN106998371B CN106998371B (en) 2020-11-06

Family

ID=59428816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610048749.2A Active CN106998371B (en) 2016-01-25 2016-01-25 Credible IP information judging method, IP information base updating method and device

Country Status (1)

Country Link
CN (1) CN106998371B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540309A (en) * 2018-03-06 2018-09-14 中国互联网络信息中心 Potential risk IPv6 address positioning method and positioning server
CN112422577A (en) * 2020-11-25 2021-02-26 北京微步在线科技有限公司 Method, device, server and storage medium for preventing original address spoofing attack

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333609A (en) * 2014-10-15 2015-02-04 北京百度网讯科技有限公司 IP address positioning method and device thereof
CN104935676A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and device for determining IP address fields and corresponding latitude and longitude
CN104994185A (en) * 2015-06-25 2015-10-21 小米科技有限责任公司 Method and apparatus for processing IP address database
US9197595B1 (en) * 2012-05-04 2015-11-24 Google Inc. Evaluating IP-location mapping data
CN105245627A (en) * 2015-08-31 2016-01-13 罗向阳 IP positioning method based on network coordinate system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197595B1 (en) * 2012-05-04 2015-11-24 Google Inc. Evaluating IP-location mapping data
CN104935676A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and device for determining IP address fields and corresponding latitude and longitude
CN104333609A (en) * 2014-10-15 2015-02-04 北京百度网讯科技有限公司 IP address positioning method and device thereof
CN104994185A (en) * 2015-06-25 2015-10-21 小米科技有限责任公司 Method and apparatus for processing IP address database
CN105245627A (en) * 2015-08-31 2016-01-13 罗向阳 IP positioning method based on network coordinate system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540309A (en) * 2018-03-06 2018-09-14 中国互联网络信息中心 Potential risk IPv6 address positioning method and positioning server
CN108540309B (en) * 2018-03-06 2022-05-13 中国互联网络信息中心 Potential risk IPv6 address positioning method and positioning server
CN112422577A (en) * 2020-11-25 2021-02-26 北京微步在线科技有限公司 Method, device, server and storage medium for preventing original address spoofing attack

Also Published As

Publication number Publication date
CN106998371B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN105933294B (en) Network user's localization method, device and terminal
CN107798412B (en) Route recommendation method and device
CN106471488B (en) Tiling techniques for server control based on location information
RU2615059C2 (en) Method of displaying marker in map service
Avila et al. SUSSING MERGER TREES: the influence of the halo finder
KR20180048788A (en) Methods and apparatuses for determining the need for placement on points of interest
CN104484477B (en) Electronic map searching method, device and system
CN105491529B (en) The memory mapping treatment method and big data platform of mobile terminal locations data
CN105227618A (en) A kind of communication site's position information processing method and system
CN108829804A (en) Based on the high dimensional data similarity join querying method and device apart from partition tree
CN110335068A (en) A kind of trade company's aggregation zone determines method and device
Martinez et al. Innovation in the measurement of tourism competitiveness
EP3309693A1 (en) Position information providing method and device
CN109547872A (en) A kind of network plan method and device
CN108268504A (en) A kind of method and apparatus for the region of search for dividing point of interest
CN110019989A (en) A kind of data processing method and device
CN107622406A (en) Identify the method and system of virtual unit
CN109460444A (en) Method and apparatus for output information
CN106998371A (en) Decision method, the update method of IP information banks and the device of credible IP information
US11194873B1 (en) Grid-based ranking of location data
CN110033117A (en) Model calibration method and device
CN105900491A (en) Method and apparatus for automatic detection and selection of alternative roaming provider
CN104794135B (en) A kind of method and apparatus being ranked up to search result
CN108810577A (en) A kind of construction method, device and the electronic equipment of user's portrait
CN112860996A (en) Interest point processing method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1241155

Country of ref document: HK

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant