CN104780235A - IP attribution inquiry method and device and server - Google Patents

IP attribution inquiry method and device and server Download PDF

Info

Publication number
CN104780235A
CN104780235A CN201410016192.5A CN201410016192A CN104780235A CN 104780235 A CN104780235 A CN 104780235A CN 201410016192 A CN201410016192 A CN 201410016192A CN 104780235 A CN104780235 A CN 104780235A
Authority
CN
China
Prior art keywords
ownership place
address
database
alternative
ownership
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
CN201410016192.5A
Other languages
Chinese (zh)
Other versions
CN104780235B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410016192.5A priority Critical patent/CN104780235B/en
Publication of CN104780235A publication Critical patent/CN104780235A/en
Application granted granted Critical
Publication of CN104780235B publication Critical patent/CN104780235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an IP attribution inquiry method and device and a server, and belongs to the technical field of communication. The method comprises the following steps: for any IP address to be inquired, inquiring n alternative IP attributions corresponding to the IP address to be inquired from n IP attribution databases respectively, wherein n is greater than or equal to 1; grouping the n alternative IP attributions, wherein identical alternative IP attributions are put into one group; and determining the practical IP attribution of the IP address to be inquired according to a grouping result. The problem of low accuracy in an existing IP attribution inquiry method is solved. N IP attribution databases acquired from different channels are integrated, and the practical IP attribution is determined after comprehensive consideration of the n IP attribution databases, so that the accuracy of IP attribution inquiry is increased greatly.

Description

IP attribution inquiry method, device and server
Technical field
The present invention relates to communication technical field, particularly a kind of IP attribution inquiry method, device and server.
Background technology
IP(Internet Protocol, Internet protocol) address is a kind of unified address format that IP agreement provides, it is each host assignment logical address on the Internet.
IP allocated by network operator distributes.IP address assignment in a segment, when distributing IP address, can be given a city by Virtual network operator usually.Such as, by the IP address assignment in segment A to Guangzhou, Guangdong; By the IP address assignment in segment B to Shenzhen City, Guangdong Province; By the IP address assignment in segment C to Wuxi City, Jiangsu Province.Corresponding relation between the segment at network operation chamber of commerce record place, IP address and city, then generates IP ownership place database.When user uses equipment for surfing the net to surf the Net, the IP address that Virtual network operator can be used by equipment for surfing the net accessing Internet inquires the geographical position at equipment for surfing the net place from IP ownership place database, and this geographical position is IP ownership place.Such as, the IP address that the equipment for surfing the net accessing Internet used when certain user surfs the Net uses is positioned at segment B, then illustrate that the equipment for surfing the net that this user uses is positioned at Shenzhen City, Guangdong Province, and also namely IP ownership place is Shenzhen City, Guangdong Province.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: on the one hand, share the phenomenon of the IP address in same segment owing to there is multiple city, thus cannot determine IP ownership place exactly according to IP address in this case; On the other hand, distribute because IP address is rented from the Virtual network operator that company size is larger by the network operation chamber of commerce that some company sizes are less, and the less Virtual network operator of these company sizes will correspond to the IP address assignment in the first city to the second city sometimes originally, thus also IP ownership place cannot be determined exactly according to IP address in this case.As can be seen here, based on the reason of above-mentioned two aspects, there is the lower problem of accuracy in existing IP attribution inquiry method.
Summary of the invention
There is the lower problem of accuracy to solve existing IP attribution inquiry method, embodiments providing a kind of IP attribution inquiry method, device and server.Described technical scheme is as follows:
First aspect, provide a kind of IP attribution inquiry method, described method comprises:
For any one IP address to be checked, from n IP ownership place database, inquiry obtains n alternative IP ownership place corresponding to described IP address to be checked respectively, n >=1;
Described n alternative IP ownership place is divided into groups, identical described alternative IP ownership place is divided into one group;
The practical IP ownership place of described IP address to be checked is determined according to group result;
Wherein, described n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
Second aspect, provide a kind of IP homing address searching device, described device comprises:
Alternative acquisition module, for for any one IP address to be checked, inquires about n the alternative IP ownership place obtained corresponding to described IP address to be checked, n >=1 respectively from n IP ownership place database;
Alternative grouping module, for dividing into groups to described n alternative IP ownership place, is divided into one group by identical described alternative IP ownership place;
Ownership determination module, for determining the practical IP ownership place of described IP address to be checked according to group result;
Wherein, described n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
The third aspect, provides a kind of server, and described server comprises the IP homing address searching device as described in second aspect.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the IP attribution inquiry method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the IP attribution inquiry method that another embodiment of the present invention provides;
Fig. 3 is the block diagram of the IP homing address searching device that one embodiment of the invention provides;
Fig. 4 is the block diagram of the IP homing address searching device that another embodiment of the present invention provides;
Fig. 5 is the structural representation of the server that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Inventor finds, there is the related service provided based on IP ownership place in a lot of Internet firm, be exactly the most typically the login record according to IP ownership place recording user account, and then by informing that the login record of its account of user confirms its account whether safety to make user.But, if these Internet firms find the IP ownership place data base querying IP ownership place set up according to Virtual network operator when providing the related service based on IP ownership place, due to two reasons described in background technology, the IP ownership place error that inquiry obtains is very large.Thus, they, after the real IP ownership place of guiding user feedback, set up the IP ownership place database of oneself company.Such as, the company such as Tengxun, Alibaba and Baidu all has the IP ownership place database of oneself.The IP ownership place query scheme that the embodiment of the present invention provides, the IP ownership place database that the IP ownership place database set up by integration networks operator and each Internet firm are set up, after considering the IP ownership place database obtained from multiple support channels, determine IP ownership place more accurately.Below, IP ownership place query scheme higher to this accuracy provided by the invention is in conjunction with specific embodiments described in detail and illustrates.
First it should be noted that, server involved in each embodiment of the present invention can be a station server, or the server cluster be made up of some station servers, or a cloud computing service center.
Please refer to Fig. 1, it illustrates the method flow diagram of the IP attribution inquiry method that one embodiment of the invention provides, this IP attribution inquiry method is used in server.This IP attribution inquiry method can comprise following several step:
Step 102, for any one IP address to be checked, from n IP ownership place database, inquiry obtains n alternative IP ownership place corresponding to IP address to be checked respectively, n >=1.
Wherein, n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
Step 104, divides into groups to n alternative IP ownership place, identical alternative IP ownership place is divided into one group.
Step 106, determines the practical IP ownership place of IP address to be checked according to group result.
In sum, the IP attribution inquiry method that the present embodiment provides, by inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
Please refer to Fig. 2, it illustrates the method flow diagram of the IP attribution inquiry method that another embodiment of the present invention provides, this IP attribution inquiry method is used in server.This IP attribution inquiry method can comprise following several step:
Step 201, collects n IP ownership place database, n >=1.
Collects n IP ownership place database, stores the corresponding relation between IP address and IP ownership place in each IP ownership place database.Collects IP ownership place database can pass through following three kinds of channels: the first, from the Internet, directly obtain some IP ownership place databases of increasing income, such as pure IP ownership place database; The second, by obtaining IP ownership place database after Whois query facility inquiry IP address assignment section; 3rd, by the cooperation with Virtual network operator or other Internet firm, obtain IP ownership place database from Virtual network operator or other Internet firm.
In addition, consider that the data format of each IP ownership place database may difference to some extent, the data format of this n IP ownership place database, after collecting n IP ownership place database, can be unified by server.Such as, unified data format is set for " IP address: city, national province ".
Step 202, for each IP ownership place database, obtains the query accuracy of this IP ownership place database.
For each IP ownership place database, server obtains the query accuracy of this IP ownership place database, and the query accuracy of an IP ownership place database refers to the order of accuarcy of the IP ownership place obtained by this IP ownership place data base querying.
Specifically, this step comprises following a few sub-steps:
The first, random selecting x IP address sample, x >=1.
Server random selecting x IP address sample.Such as, server random selecting 10000 IP address samples.
The second, for each IP ownership place database, determine according to the IP address stored in IP ownership place database and the corresponding relation between IP ownership place the IP ownership place that each IP address sample is corresponding.
Server determines according to the IP address stored in IP ownership place database and the corresponding relation between IP ownership place the IP ownership place that each IP address sample is corresponding.
3rd, for each IP address sample, to using the equipment for surfing the net of this IP address sample online to send IP ownership place checking request, IP ownership place checking request includes the IP ownership place corresponding in IP ownership place database with this IP address sample.
For each IP address sample, server sends IP ownership place checking request to using the equipment for surfing the net of this IP address sample online, includes the IP ownership place corresponding in IP ownership place database with this IP address sample in this IP ownership place checking request.Afterwards, server guides user feedback IP ownership place the result.Use after the user of equipment for surfing the net online receives the IP ownership place that server sends, whether accurate according to the IP ownership place that the geographical position authentication server of self reality is sent, then to server feedback IP ownership place the result.
4th, receive the IP ownership place the result of each equipment for surfing the net feedback.
Server receives the IP ownership place the result of each equipment for surfing the net feedback.
In the present embodiment, suppose to have in the IP ownership place the result to the IP ownership place corresponding to 10000 IP address samples that server receives 9500 for IP ownership place accurately, and have 500 for the IP ownership place of mistake.
5th, the query accuracy of IP ownership place database is determined according to each IP ownership place the result received.
Server determines the query accuracy of IP ownership place database according to each IP ownership place the result received.Wherein, query accuracy P=result number of samples accurately/total number of samples; Or, number of samples/total number of samples of query accuracy P=1-erroneous results.
In the present embodiment, the query accuracy P of IP ownership place database is 95%.
Certainly, each sub-steps of above-mentioned steps 202 and step 202 provide only a kind of method obtaining the query accuracy of IP ownership place database.When other is possible, also the query accuracy of IP ownership place database directly can be obtained from the Virtual network operator or Internet firm that provide this IP ownership place database, the query accuracy of IP ownership place database can also be obtained by some other method, concrete restriction is not done to this.
Step 203, determines the weights corresponding to IP ownership place database according to query accuracy.
Server determines the weights corresponding to IP ownership place database according to query accuracy.Wherein, weights and query accuracy correlation, namely also the query accuracy of IP ownership place database is higher, and these weights corresponding to IP ownership place database are larger; Otherwise the query accuracy of IP ownership place database is lower, these weights corresponding to IP ownership place database are less.
The computing formula of weights can be expressed as: weights W=λ × query accuracy P.λ be greater than 0 arbitrary numerical value, in the present embodiment, be convenience of calculation, get λ=100.
In addition, in the present embodiment, n=3 is supposed, also i.e. collects 3 IP ownership place databases.Suppose that the query accuracy of these 3 IP ownership place databases is respectively: P simultaneously 1=95%, P 2=97% and P 3=94%.Weights then corresponding to above-mentioned 3 IP ownership place databases are respectively: W 1=95, W 2=97 and W 3=94.
Step 204, for any one IP address to be checked, from n IP ownership place database, inquiry obtains n alternative IP ownership place corresponding to this IP address to be checked respectively.
For any one IP address to be checked, server inquires about n the alternative IP ownership place obtained corresponding to this IP address to be checked respectively from n IP ownership place database.
In the present embodiment, suppose that a certain IP address to be checked is inquired about 3 the alternative IP ownership place obtained and is respectively in above-mentioned 3 IP ownership place databases: Chinese Guangdong economizes Dongguan City; Shenzhen of Chinese Guangdong province; Shenzhen of Chinese Guangdong province.
Step 205, divides into groups to n alternative IP ownership place, identical alternative IP ownership place is divided into one group.
In the n that server lookup obtains an alternative IP ownership place, identical alternative IP ownership place may be there is, also may there is different alternative IP ownership place.Server divides into groups to n alternative IP ownership place, and identical alternative IP ownership place is divided into one group.
In the present embodiment, server will " Chinese Guangdong economizes Dongguan City; Shenzhen of Chinese Guangdong province; Shenzhen of Chinese Guangdong province " these 3 alternative IP ownership place are divided into two groups, and include in one group 1 " Chinese Guangdong province Dongguan City ", and include in another group 2 " Shenzhen of Chinese Guangdong province ".
Step 206, determines the practical IP ownership place of IP address to be checked according to group result.
Server determines the practical IP ownership place of IP address to be checked according to group result.Specifically, this step comprises the possible execution mode of the following two kinds:
In the execution mode that the first is possible, this step comprises following two sub-steps:
The first, calculate the quantity of the alternative IP ownership place comprised in each group.
Server calculates the quantity of the alternative IP ownership place comprised in each group.
The second, using the practical IP ownership place of the alternative IP ownership place in groupings maximum for quantity as IP address to be checked.
Server is using the practical IP ownership place of the alternative IP ownership place in groupings maximum for quantity as IP address to be checked.In the present embodiment, server is by the practical IP ownership place of " Shenzhen of Chinese Guangdong province " this alternative IP ownership place as IP address.
It should be noted that, present embodiment is only better simply execution mode, and when inquiring about the practical IP ownership place of any IP address by present embodiment, only need perform above-mentioned steps 201, step 204 to these four steps of step 206, also namely above-mentioned steps 201, step 204 can form separately an embodiment to step 206.
In the execution mode that the second is possible, this step comprises following two sub-steps:
The first, calculate the weights sum corresponding to each self-corresponding IP ownership place database of the alternative IP ownership place comprised in each group.
In above-mentioned steps 203, server determines the weights corresponding to each IP ownership place database according to the query accuracy of n IP ownership place database.These weights reflect the query accuracy of IP ownership place database, can be reflected the credibility of the IP ownership place obtained according to this IP ownership place data base querying by the size of these weights.
Server calculates the weights sum corresponding to each self-corresponding IP ownership place database of the alternative IP ownership place comprised in each group.In the present embodiment, alternative IP ownership place is the weights sum of " Chinese Guangdong province Dongguan City " this group is W 1=95; And the weights sum that alternative IP ownership place is " Shenzhen of Chinese Guangdong province " this group is W 2+ W 3=97+94=191.
The second, using the practical IP ownership place of the alternative IP ownership place in grouping maximum for weights sum as IP address to be checked.
Server is using the practical IP ownership place of the alternative IP ownership place in grouping maximum for weights sum as IP address to be checked.In the present embodiment, server is by " Shenzhen of Chinese Guangdong province " the practical IP ownership place as IP address.
In sum, the IP attribution inquiry method that the present embodiment provides, by inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
In addition, for each IP ownership place database, by obtaining the query accuracy of this IP ownership place database, determine the weights corresponding to IP ownership place database according to query accuracy, make these weights fully can reflect the credibility of the IP ownership place obtained according to this IP ownership place data base querying; Then by using the practical IP ownership place of the alternative IP ownership place in grouping maximum for weights sum as IP address to be checked, make to inquire about the practical IP ownership place obtained more accurate.
Following is apparatus of the present invention embodiment, may be used for performing the inventive method embodiment.For the details do not disclosed in apparatus of the present invention embodiment, please refer to the inventive method embodiment.
Please refer to Fig. 3, it illustrates the block diagram of the IP homing address searching device that one embodiment of the invention provides, this IP homing address searching device can realize becoming the some or all of of server by software, hardware or both combinations.This IP homing address searching device comprises: alternative acquisition module 310, alternative grouping module 320 and ownership determination module 330.
Alternative acquisition module 310, for for any one IP address to be checked, inquires about n the alternative IP ownership place obtained corresponding to described IP address to be checked, n >=1 respectively from n IP ownership place database.
Wherein, n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
Alternative grouping module 320, for dividing into groups to described n alternative IP ownership place, is divided into one group by identical described alternative IP ownership place.
Ownership determination module 330, for determining the practical IP ownership place of described IP address to be checked according to group result.
In sum, the IP homing address searching device that the present embodiment provides, by inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
Please refer to Fig. 4, it illustrates the block diagram of the IP homing address searching device that another embodiment of the present invention provides, this IP homing address searching device can realize becoming the some or all of of server by software, hardware or both combinations.This IP homing address searching device comprises: alternative acquisition module 310, alternative grouping module 320 and ownership determination module 330.
Alternative acquisition module 310, for for any one IP address to be checked, inquires about n the alternative IP ownership place obtained corresponding to described IP address to be checked, n >=1 respectively from n IP ownership place database.
Wherein, n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
Alternative grouping module 320, for dividing into groups to described n alternative IP ownership place, is divided into one group by identical described alternative IP ownership place.
Ownership determination module 330, for determining the practical IP ownership place of described IP address to be checked according to group result.
In the implementation that the first is possible, described ownership determination module 330, comprising: amount calculation unit 330a and the first determining unit 330b.
Described amount calculation unit 330a, for calculating in each group the quantity of the described alternative IP ownership place comprised.
Described first determining unit 330b, for using the practical IP ownership place of the described alternative IP ownership place in groupings maximum for described quantity as described IP address to be checked.
In the implementation that the second is possible, described ownership determination module 330, comprising: precision acquiring unit 330c, weights determining unit 330d, weight calculation unit 330e and the second determining unit 330f.
Described precision acquiring unit 330c, for for each IP ownership place database, obtains the query accuracy of described IP ownership place database.
Specifically, described precision acquiring unit 330c, comprising: sample chooses subelement 330c1, sample queries subelement 330c2, request sends subelement 330c3, result receives subelement 330c4 and precision determination subelement 330c5.
Subelement 330c1 chosen by described sample, for random selecting x IP address sample, and x >=1.
Described sample queries subelement 330c2, for for each IP ownership place database, the IP ownership place that described in each, IP address sample is corresponding is determined with the corresponding relation between IP ownership place in the IP address according to storing in described IP ownership place database.
Described request sends subelement 330c3, for for each IP address sample, to using the equipment for surfing the net of described IP address sample online to send IP ownership place checking request, described IP ownership place checking request includes the described IP ownership place corresponding in described IP ownership place database with described IP address sample.
Described result receives subelement 330c4, for receiving the IP ownership place the result of each equipment for surfing the net feedback.
Described precision determination subelement 330c5, for determining the query accuracy of described IP ownership place database according to each IP ownership place the result received.
Described weights determining unit 330d, for determining the weights corresponding to described IP ownership place database according to described query accuracy.
Described weight calculation unit 330e, for calculating in each group the weights sum corresponding to each self-corresponding described IP ownership place database of the described alternative IP ownership place comprised.
Described second determining unit 330f, for using the practical IP ownership place of the described alternative IP ownership place in grouping maximum for described weights sum as described IP address to be checked.
In sum, the IP homing address searching device that the present embodiment provides, by inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
In addition, for each IP ownership place database, by obtaining the query accuracy of this IP ownership place database, determine the weights corresponding to IP ownership place database according to query accuracy, make these weights fully can reflect the credibility of the IP ownership place obtained according to this IP ownership place data base querying; Then by using the practical IP ownership place of the alternative IP ownership place in grouping maximum for weights sum as IP address to be checked, make to inquire about the practical IP ownership place obtained more accurate.
It should be noted that: the IP homing address searching device that above-described embodiment provides and server are when inquiring about IP ownership place, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the IP homing address searching device that above-described embodiment provides and the embodiment of the method for server and IP attribution inquiry method belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 5, it illustrates the structural representation of the server that one embodiment of the invention provides, this server may be used for the IP attribution inquiry method in the server implementing to provide in above-described embodiment.Described server 500 comprises CPU (CPU) 501, comprises the system storage 504 of random-access memory (ram) 502 and read-only memory (ROM) 503, and the system bus 505 of connected system memory 504 and CPU 501.Described server 500 also comprises the basic input/output (I/O system) 506 of transmission information between each device of helping in computer, and for the mass-memory unit 507 of storage operation system 513, application program 514 and other program modules 515.
Described basic input/output 506 includes the input equipment 509 of the display 508 for showing information and the such as mouse, keyboard and so on for user's input information.Wherein said display 508 and input equipment 509 are all connected to CPU 501 by the i/o controller 510 being connected to system bus 505.Described basic input/output 506 can also comprise i/o controller 510 for receiving and processing the input from other equipment multiple such as keyboard, mouse or electronic touch pens.Similarly, i/o controller 510 also provides the output equipment outputting to display screen, printer or other types.
Described mass-memory unit 507 is connected to CPU 501 by the bulk memory controller (not shown) being connected to system bus 505.Described mass-memory unit 507 and the computer-readable medium that is associated thereof provide non-volatile memories for server 500.That is, described mass-memory unit 507 can comprise the computer-readable medium (not shown) of such as hard disk or CD-ROM drive and so on.
Without loss of generality, described computer-readable medium can comprise computer-readable storage medium and communication media.Computer-readable storage medium comprises the volatibility and non-volatile, removable and irremovable medium that realize for any method or technology that store the information such as such as computer-readable instruction, data structure, program module or other data.Computer-readable storage medium comprises RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical storage, cassette, tape, disk storage or other magnetic storage apparatus.Certainly, the known described computer-readable storage medium of those skilled in the art is not limited to above-mentioned several.Above-mentioned system storage 504 and mass-memory unit 507 can be referred to as memory.
According to various embodiments of the present invention, the remote computer that described server 500 can also be connected on network by networks such as such as internets runs.Also namely server 500 can be connected to network 512 by the network interface unit 511 be connected on described system bus 505, in other words, network interface unit 511 also can be used to be connected to network or the remote computer system (not shown) of other types.
Described memory also comprises one or more than one program, and described more than one or one program is stored in memory, and is configured to be performed by more than one or one CPU 501.Above-mentioned more than one or one program package is containing the instruction for carrying out following operation:
For any one IP address to be checked, from n IP ownership place database, inquiry obtains n alternative IP ownership place corresponding to described IP address to be checked respectively, n >=1;
Described n alternative IP ownership place is divided into groups, identical described alternative IP ownership place is divided into one group;
The practical IP ownership place of described IP address to be checked is determined according to group result;
Wherein, n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
Suppose that above-mentioned is the first possible execution mode, then, in the execution mode that the second provided based on the execution mode that the first is possible is possible, in the memory of described server, also comprise the instruction for performing following operation:
Calculate in each group the quantity of the described alternative IP ownership place comprised;
Using the practical IP ownership place of the described alternative IP ownership place in groupings maximum for described quantity as described IP address to be checked.
In the third the possible execution mode provided based on the execution mode that the first is possible, in the memory of described server, also comprise the instruction for performing following operation:
Calculate in each group the weights sum corresponding to each self-corresponding described IP ownership place database of the described alternative IP ownership place comprised;
Using the practical IP ownership place of the described alternative IP ownership place in grouping maximum for described weights sum as described IP address to be checked.
In the 4th kind of possible execution mode provided based on the execution mode that the third is possible, in the memory of described server, also comprise the instruction for performing following operation:
For each IP ownership place database, obtain the query accuracy of described IP ownership place database;
The weights corresponding to described IP ownership place database are determined according to described query accuracy.
In the 5th kind of possible execution mode provided based on the 4th kind of possible execution mode, in the memory of described server, also comprise the instruction for performing following operation:
Random selecting x IP address sample, x >=1;
For each IP ownership place database, the IP ownership place that described in each, IP address sample is corresponding is determined with the corresponding relation between IP ownership place in the IP address according to storing in described IP ownership place database;
For each IP address sample, to using the equipment for surfing the net of described IP address sample online to send IP ownership place checking request, described IP ownership place checking request includes the described IP ownership place corresponding in described IP ownership place database with described IP address sample;
Receive the IP ownership place the result of each equipment for surfing the net feedback;
The query accuracy of described IP ownership place database is determined according to each IP ownership place the result received.
In sum, the server that the present embodiment provides, by inquiring about n the alternative IP ownership place obtained corresponding to IP address to be checked respectively from n IP ownership place database, this n alternative IP ownership place is divided into groups, identical alternative IP ownership place is divided into one group, then determines the practical IP ownership place of IP address to be checked according to group result; Solve existing IP attribution inquiry method and there is the lower problem of accuracy; The embodiment of the present invention, by integrating n the IP ownership place database obtained from different channel, determines practical IP ownership place after considering a said n IP ownership place database, substantially increases the accuracy of IP ownership place inquiry.
In addition, for each IP ownership place database, by obtaining the query accuracy of this IP ownership place database, determine the weights corresponding to IP ownership place database according to query accuracy, make these weights fully can reflect the credibility of the IP ownership place obtained according to this IP ownership place data base querying; Then by using the practical IP ownership place of the alternative IP ownership place in grouping maximum for weights sum as IP address to be checked, make to inquire about the practical IP ownership place obtained more accurate.
Should be understood that, use in this article, unless context clearly supports exception, singulative " " (" a ", " an ", " the ") is intended to also comprise plural form.It is to be further understood that the "and/or" used in this article refers to comprise any of more than one or one project listed explicitly and likely combine.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. an IP attribution inquiry method, is characterized in that, described method comprises:
For any one IP address to be checked, from n IP ownership place database, inquiry obtains n alternative IP ownership place corresponding to described IP address to be checked respectively, n >=1;
Described n alternative IP ownership place is divided into groups, identical described alternative IP ownership place is divided into one group;
The practical IP ownership place of described IP address to be checked is determined according to group result;
Wherein, described n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
2. method according to claim 1, is characterized in that, the described practical IP ownership place determining described IP address to be checked according to group result, comprising:
Calculate in each group the quantity of the described alternative IP ownership place comprised;
Using the practical IP ownership place of the described alternative IP ownership place in groupings maximum for described quantity as described IP address to be checked.
3. method according to claim 1, is characterized in that, the described practical IP ownership place determining described IP address to be checked according to group result, comprising:
Calculate in each group the weights sum corresponding to each self-corresponding described IP ownership place database of the described alternative IP ownership place comprised;
Using the practical IP ownership place of the described alternative IP ownership place in grouping maximum for described weights sum as described IP address to be checked.
4. method according to claim 3, is characterized in that, before the weights sum corresponding to each self-corresponding described IP ownership place database of the described alternative IP ownership place comprised, also comprises in each group of described calculating:
For each IP ownership place database, obtain the query accuracy of described IP ownership place database;
The weights corresponding to described IP ownership place database are determined according to described query accuracy.
5. method according to claim 4, is characterized in that, described for each IP ownership place database, obtains the query accuracy of described IP ownership place database, comprising:
Random selecting x IP address sample, x >=1;
For each IP ownership place database, the IP ownership place that described in each, IP address sample is corresponding is determined with the corresponding relation between IP ownership place in the described IP address according to storing in described IP ownership place database;
For each IP address sample, to using the equipment for surfing the net of described IP address sample online to send IP ownership place checking request, described IP ownership place checking request includes the described IP ownership place corresponding in described IP ownership place database with described IP address sample;
Receive the IP ownership place the result of each equipment for surfing the net feedback;
The query accuracy of described IP ownership place database is determined according to each IP ownership place the result received.
6. an IP homing address searching device, is characterized in that, described device comprises:
Alternative acquisition module, for for any one IP address to be checked, inquires about n the alternative IP ownership place obtained corresponding to described IP address to be checked, n >=1 respectively from n IP ownership place database;
Alternative grouping module, for dividing into groups to described n alternative IP ownership place, is divided into one group by identical described alternative IP ownership place;
Ownership determination module, for determining the practical IP ownership place of described IP address to be checked according to group result;
Wherein, described n IP ownership place database refers to the database storing the corresponding relation between IP address and IP ownership place obtained from different channel.
7. device according to claim 6, is characterized in that, described ownership determination module, comprising: amount calculation unit and the first determining unit;
Described amount calculation unit, for calculating in each group the quantity of the described alternative IP ownership place comprised;
Described first determining unit, for using the practical IP ownership place of the described alternative IP ownership place in groupings maximum for described quantity as described IP address to be checked.
8. device according to claim 6, is characterized in that, described ownership determination module, comprising: weight calculation unit and the second determining unit;
Described weight calculation unit, for calculating in each group the weights sum corresponding to each self-corresponding described IP ownership place database of the described alternative IP ownership place comprised;
Described second determining unit, for using the practical IP ownership place of the described alternative IP ownership place in grouping maximum for described weights sum as described IP address to be checked.
9. device according to claim 8, is characterized in that, described ownership determination module, also comprises: precision acquiring unit and weights determining unit;
Described precision acquiring unit, for for each IP ownership place database, obtains the query accuracy of described IP ownership place database;
Described weights determining unit, for determining the weights corresponding to described IP ownership place database according to described query accuracy.
10. device according to claim 9, is characterized in that, described precision acquiring unit, comprising: sample chooses subelement, sample queries subelement, request sends subelement, result receives subelement and precision determination subelement;
Subelement chosen by described sample, for random selecting x IP address sample, and x >=1;
Described sample queries subelement, for for each IP ownership place database, the IP ownership place that described in each, IP address sample is corresponding is determined with the corresponding relation between IP ownership place in the described IP address according to storing in described IP ownership place database;
Described request sends subelement, for for each IP address sample, to using the equipment for surfing the net of described IP address sample online to send IP ownership place checking request, described IP ownership place checking request includes the described IP ownership place corresponding in described IP ownership place database with described IP address sample;
Described result receives subelement, for receiving the IP ownership place the result of each equipment for surfing the net feedback;
Described precision determination subelement, for determining the query accuracy of described IP ownership place database according to each IP ownership place the result received.
11. 1 kinds of servers, is characterized in that, described server comprise as arbitrary in claim 6 to 10 as described in IP homing address searching device.
CN201410016192.5A 2014-01-14 2014-01-14 IP attribution inquiry method, device and server Active CN104780235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410016192.5A CN104780235B (en) 2014-01-14 2014-01-14 IP attribution inquiry method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410016192.5A CN104780235B (en) 2014-01-14 2014-01-14 IP attribution inquiry method, device and server

Publications (2)

Publication Number Publication Date
CN104780235A true CN104780235A (en) 2015-07-15
CN104780235B CN104780235B (en) 2019-08-06

Family

ID=53621468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410016192.5A Active CN104780235B (en) 2014-01-14 2014-01-14 IP attribution inquiry method, device and server

Country Status (1)

Country Link
CN (1) CN104780235B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172129A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 A kind of server collocation method and device
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium
CN109783521A (en) * 2018-12-29 2019-05-21 湖南安数网络有限公司 A kind of IP ownership place determines method, apparatus and computer storage medium
CN113495892A (en) * 2020-03-20 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for updating IP address information base

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355595A (en) * 2008-09-17 2009-01-28 北京搜狗科技发展有限公司 Method and apparatus for locating physical location of IP address
JP2009077338A (en) * 2007-09-25 2009-04-09 Saxa Inc Method of determining location of ip communication terminal, ip network management apparatus and hub
CN102014366A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Method, device and system for updating IP address home information
CN103164475A (en) * 2011-12-16 2013-06-19 北京思博途信息技术有限公司 Method and system of combining multiple internet protocol (IP) regional information bases
CN103207901A (en) * 2013-03-21 2013-07-17 百度在线网络技术(北京)有限公司 Method and system for obtaining internet protocol address attribution position based on search engine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009077338A (en) * 2007-09-25 2009-04-09 Saxa Inc Method of determining location of ip communication terminal, ip network management apparatus and hub
CN101355595A (en) * 2008-09-17 2009-01-28 北京搜狗科技发展有限公司 Method and apparatus for locating physical location of IP address
CN102014366A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Method, device and system for updating IP address home information
CN103164475A (en) * 2011-12-16 2013-06-19 北京思博途信息技术有限公司 Method and system of combining multiple internet protocol (IP) regional information bases
CN103207901A (en) * 2013-03-21 2013-07-17 百度在线网络技术(北京)有限公司 Method and system for obtaining internet protocol address attribution position based on search engine

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172129A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 A kind of server collocation method and device
CN107172129B (en) * 2017-04-25 2020-05-19 北京潘达互娱科技有限公司 Server configuration method and device
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium
CN109684303B (en) * 2018-12-10 2020-10-27 世纪龙信息网络有限责任公司 Communication code attribution inquiry method and device, computer equipment and storage medium
CN109783521A (en) * 2018-12-29 2019-05-21 湖南安数网络有限公司 A kind of IP ownership place determines method, apparatus and computer storage medium
CN109783521B (en) * 2018-12-29 2021-09-28 湖南安数网络有限公司 IP home location determination method, device and computer storage medium
CN113495892A (en) * 2020-03-20 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for updating IP address information base

Also Published As

Publication number Publication date
CN104780235B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN104348679B (en) A kind of methods, devices and systems of point of bucket test
US9996565B2 (en) Managing an index of a table of a database
US20120078948A1 (en) Systems and methods for searching a cloud-based distributed storage resources using a set of expandable probes
CN104954401B (en) traffic scheduling method and device
CN103729471A (en) Method and device for database query
CN110519090B (en) Method and system for allocating accelerator cards of FPGA cloud platform and related components
CN112005219B (en) Method and system for workload management with data access awareness in a computing cluster
CN104243598A (en) Information recommendation method and device
CN104780235A (en) IP attribution inquiry method and device and server
CN112100279B (en) Data sharing system based on block chain
CN108268216B (en) Data processing method, device and server
US10929362B2 (en) Adaptive query processor for query systems with limited capabilities
CN106547646B (en) Data backup and recovery method and data backup and recovery device
CN103942209A (en) Data processing method
CN104731951A (en) Data query method and device
CN109063077A (en) A kind of data access method and device based on elasticity search
CN108563697A (en) A kind of data processing method, device and storage medium
CN109756584A (en) Domain name analytic method, domain name mapping device and computer readable storage medium
CN111490908A (en) Network speed measurement method, device, equipment, medium and speed measurement system
CN110830604A (en) DNS scheduling method and device
CN113128743B (en) Goods picking path planning method and device
CN109560940B (en) Charging method and device for content delivery network CDN service
CN103092886B (en) A kind of implementation method of data query operation, Apparatus and system
CN111400301B (en) Data query method, device and equipment
US20140289307A1 (en) Method for transmitting data between electronic devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant