The content of the invention
Present invention is primarily targeted at providing a kind of IP sections ownership determines method and apparatus, to solve IP data sources in
The low problem of the attaching information accuracy of IP sections.
To achieve these goals, according to an aspect of the invention, there is provided a kind of IP sections ownership determination method.According to
The IP sections ownership determination method of the present invention includes:Obtain identical IP section in multiple IP data sources;IP sections are obtained respectively multiple
Attaching information in IP data sources, obtains the credibility that multiple IP sections attaching informations calculate respectively multiple IP sections attaching informations;With
And using the maximum IP sections attaching information of credibility as IP sections attaching information.
Further, the credibility of multiple IP sections attaching informations is calculated respectively to be included:Multiple IP data sources are determined respectively
Granularity, granularity is used for the series in the region for representing correspondence IP data source ownership;Each IP number in multiple IP data sources is obtained respectively
According to the corresponding IP data sources point in source and granularity point, wherein, IP data sources are divided into the numerical value being pre-configured with to IP data sources, granularity point
It is the numerical value that granularity is pre-configured with;And the credibility of an IP section attaching informations is calculated respectively by below equation, wherein,
First IP section attaching informations are the arbitrary IP sections attaching information in multiple IP sections attaching informations:
K=S+N*L
Wherein, K is the credibility of an IP section attaching informations, and S is IP data sources point, and N is granularity, and L is granularity point.
Further, IP data sources point are configured in the following manner:Arranged by the quantity of multiple IP data sources and had
Multiple IP data sources of respective numbers point, wherein, multiple IP data sources point meet:Any two of which IP data source point adds and big
In arbitrary IP data sources point;And multiple IP data sources point are allocated to into correspondingly multiple IP data sources.
Further, multiple IP data sources point are allocated to correspondingly into multiple IP data sources includes:By multiple IP numbers
According to source point, in a different configuration mode is allocated to correspondingly multiple IP data sources;Calculate the IP sections under each configuration mode
The credibility of attaching information;By the maximum confidence phase of the IP section attaching informations of multiple IP data sources under identical configuration mode
Plus;And be correspondingly allocated to multiple IP data sources point using maximum confidence addition and maximum configuration mode many
Individual IP data sources.
Further, multiple IP data sources include multiple identical IP sections, wherein, multiple IP sections ownership letters are calculated respectively
The credibility of breath includes:The credibility of each IP section attaching information in multiple IP data sources is calculated respectively;Credibility is maximum
IP sections attaching information include as the attaching information of IP sections:IP section attaching information identical credibilitys are added and;To add with after
Credibility as corresponding IP sections attaching information credibility;By the IP section attaching informations that credibility in each IP section is maximum
As the attaching information of corresponding IP sections.
To achieve these goals, according to a further aspect in the invention, there is provided a kind of IP sections ownership determines square law device.
IP sections ownership determining device of the invention includes:First acquisition unit, for obtaining multiple IP data sources in identical IP
Section;Second acquisition unit, for obtaining attaching information of the IP sections in multiple IP data sources respectively, obtains multiple IP sections ownership letters
Breath;Computing unit, for calculating the credibility of multiple IP sections attaching informations respectively;And signal generating unit, for by credibility most
Attaching information of the big IP sections attaching information as IP sections.
Further, computing unit includes:Determining module, for determining the granularity of multiple IP data sources respectively, granularity is used
In the series in the region for representing correspondence IP data source ownership;Acquisition module, for obtaining multiple IP data sources respectively in each IP
The corresponding IP data sources point of data source and granularity point, wherein, IP data sources are divided into the numerical value being pre-configured with to IP data sources, granularity
It is divided into the numerical value being pre-configured with to granularity;And first computing module, return for calculating an IP sections respectively by below equation
The credibility of category information, wherein, an IP section attaching informations are the arbitrary IP sections attaching information in multiple IP sections attaching informations:
K=S+N*L
Wherein, K is the credibility of an IP section attaching informations, and S is IP data sources point, and N is granularity, and L is granularity point.
Further, IP sections ownership determining device also includes dispensing unit, for configuration of IP data source point, wherein, configuration
Unit includes:Setup module, for arranging the multiple IP data sources with respective numbers point by the quantity of multiple IP data sources, its
In, multiple IP data sources point meet:Any two of which IP data source point adds and more than arbitrary IP data sources point;And configuration mould
Block, for multiple IP data sources point to be allocated to correspondingly into multiple IP data sources.
Further, configuration module includes:Configuration submodule, for dividing mode in a different configuration by multiple IP data sources
Multiple IP data sources are allocated to correspondingly;First calculating sub module, for calculating each configuration mode under IP sections return
The credibility of category information;Second calculating sub module, for the IP sections ownership of multiple IP data sources under identical configuration mode to be believed
The maximum confidence of breath is added;And determination sub-module, will for configuration mode be added using maximum confidence and maximum
Multiple IP data sources point are allocated to correspondingly multiple IP data sources.
Further, multiple IP data sources include multiple identical IP sections, wherein, computing unit is additionally operable to calculate respectively
The credibility of each IP section attaching information in multiple IP data sources;
Signal generating unit includes:Second computing module, for IP section attaching information identical credibilitys to be added and;First generates
Module, for credibility of the credibility with after as corresponding IP sections attaching information will to be added;Second generation module, for will be every
Attaching information of the maximum IP sections attaching information of credibility as corresponding IP sections in one IP section.
By the present invention, included using a kind of IP sections ownership determination method:Obtain identical IP section in multiple IP data sources;
Attaching information of the IP sections in the plurality of IP data sources is obtained respectively, obtains multiple IP sections attaching informations;Calculate respectively
The credibility of the plurality of IP sections attaching information;And using the maximum IP sections attaching information of credibility as the IP sections ownership
Information., by the credibility of identical IP section attaching information in the multiple IP data sources of calculating, by identical in multiple IP data sources
The credibility of IP section attaching informations is contrasted, and chooses maximum IP sections attaching information the returning as the identical IP section of credibility
Category information, relative to existing IP sections attaching information, its accuracy is of a relatively high, and the attaching information of the IP sections in IP data sources is accurate
Really the low problem of property, has reached the effect of the attaching information accuracy for improving the IP sections in IP data sources.
Specific embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Below with reference to the accompanying drawings and in conjunction with the embodiments describing the present invention in detail.
A kind of IP sections ownership determining device is embodiments provided, the device realizes its work(by computer equipment
Energy.
Fig. 1 is the structural representation that IP sections according to a first embodiment of the present invention belong to determining device.As shown in figure 1, should
IP sections belong to determining device, including:First acquisition unit 10, second acquisition unit 20, computing unit 30 and signal generating unit 40.
First acquisition unit 10 is used to obtain identical IP section in multiple IP data sources.Multiple IP data sources include identical
IP sections, the IP sections that first acquisition unit 10 is obtained can be one can also be it is multiple, for example, IP data sources A and IP data
Source B is according to including IP sections:1.0.0.1~2.0.0.0 and IP sections 2.0.0.1~3.0.0.0.With the proviso that, in multiple IP data sources
Different IP data sources between the division of IP sections be consistent.
Second acquisition unit 20 is used to obtain attaching information of the IP sections in multiple IP data sources respectively, obtains multiple IP sections
Attaching information.In multiple IP data sources are got after identical IP section, second acquisition unit 20 can obtain the IP sections and exist
Corresponding attaching information in each IP data source, because the corresponding attaching information of identical IP section in different IP data sources can
Identical difference can be likely to, multiple IP data sources then correspond to multiple IP sections attaching informations.Attaching information referred herein can be with
It is the corresponding geography information of IP sections, or the corresponding operator's informaiton of IP sections.
Computing unit 30 is used to calculate the credibility of multiple IP sections attaching informations respectively.Due to the IP of different IP data sources
Section attaching information can have differences, and the IP section attaching informations of single IP data sources have certain error, by computing unit
30 credibilitys for calculating IP section attaching informations, obtain the credibility of the IP section attaching informations of identical IP sections in multiple IP data sources.
Because the credibility of IP section attaching informations is determined by the factor such as granularity of IP sections attaching information and attaching information, therefore can basis
The granularity of IP sections attaching information and attaching information is arranged to IP data sources to the influence degree of the accuracy of IP section attaching informations and counted
Count value, according to the credibility of the numerical computations IP section attaching information.
Signal generating unit 40 be used for using the maximum IP sections attaching information of credibility as IP sections attaching information.Calculate respectively
To after the credibility of multiple IP sections attaching informations, the credibility of the IP section attaching informations in each IP data sources is contrasted,
Obtain the maximum IP section attaching informations of credibility, signal generating unit 40 using the IP sections attaching information as the IP sections attaching information.
According to embodiments of the present invention, by the credibility of identical IP section attaching information in the multiple IP data sources of calculating, will
The credibility of identical IP section attaching information is contrasted in multiple IP data sources, chooses the maximum IP section attaching informations of credibility
Used as the attaching information of the identical IP section, relative to existing IP sections attaching information, its accuracy is of a relatively high, IP data sources
In IP sections the low problem of attaching information accuracy, reached the attaching information accuracy that improves the IP sections in IP data sources
Effect.
Fig. 2 is the structural representation that IP sections according to a second embodiment of the present invention belong to determining device.The IP of the embodiment
Section ownership determining device can belong to a kind of preferred implementation of determining device as the IP sections of above-described embodiment.Such as Fig. 2 institutes
Show, the IP sections ownership determining device includes:First acquisition unit 10, second acquisition unit 20, computing unit 30 and signal generating unit
40, wherein, computing unit 30 includes determining module 301, the computing module 303 of acquisition module 302 and first.First acquisition unit
10th, second acquisition unit 20 and signal generating unit 40 are single with the first acquisition unit 10 shown in Fig. 1, second acquisition unit 20 and generation
First 40 function phases are same, do not repeat here.
Determining module 301 is used to determine the granularity of multiple IP data sources respectively that granularity to be used to represent that correspondence IP data sources are returned
The series in the region of category.Granularity can be used to indicate that the geographic area of IP data sources ownership or the series of administrative region, for example,
The corresponding granularity of country is 1, and it is 2 to save corresponding granularity, and the corresponding granularity in city is 3, and the corresponding granularity in area or county is 4, administrative
The series in region is bigger, and the value of granularity is bigger.IP sections one attaching information of correspondence in each IP data source, each ownership letter
Breath has a granularity, the multiple granularities of identical IP section correspondence in multiple IP data sources.
Acquisition module 302 is used to obtain the corresponding IP data sources point of each IP data source in multiple IP data sources and grain respectively
Degree point, wherein, IP data sources are divided into the numerical value being pre-configured with to IP data sources, and granularity is divided into the numerical value being pre-configured with to granularity.
Because the different IP data sources with identical IP sections, the attaching information identical IP data source of the IP sections are more, its ownership can
Reliability is higher, meanwhile, the value of granularity is bigger, that is to say that, to the thinner of IP section attaching informations, the credibility of IP section attaching informations is got over
It is high.As IP sections attaching information will height for the credibility in Hebei province for the Reliability ratio IP sections attaching information of Tangshan, Hebei Province.IP
Data source point can be configured according to the quantity of the IP data sources for getting, for calculating IP data sources in IP sections ownership
Credibility.Granularity is divided into the numerical value being pre-configured with to the granularity.Granularity point can be configured as needed.
First computing module 303 is used to calculate the credibility of an IP section attaching informations respectively by below equation, wherein,
First IP section attaching informations are the arbitrary IP sections attaching information in multiple IP sections attaching informations:
K=S+N*L
Wherein, K is the credibility of an IP section attaching informations, and S is IP data sources point, and N is granularity, and L is granularity point.Such as table
Shown in 1, in allocation plan 1, credibilitys K1=100+3*20=160 of the IP sections 1.0.0.1~2.0.0.0 in data source A,
Credibilitys K2=101+3*20=161 of the IP sections 1.0.0.1~2.0.0.0 in data source B, IP sections 1.0.0.1~2.0.0.0
Credibility K3=102+3*20=162 in data source C, due to, IP sections 1.0.0.1 in data source A and data source B~
2.0.0.0 attaching information is identical, is Beijing, then K1 is added the credibility for obtaining that attaching information is Beijing with K2
321, due to 321>162 so confirm that the final credibilitys of IP sections 1.0.0.1~2.0.0.0 are 321.Other schemes are in the same manner.
Preferably, IP sections ownership determining device also includes dispensing unit, and the dispensing unit divides for configuration of IP data source, its
In, dispensing unit includes setup module and configuration module.
Setup module is used to arrange the multiple IP data sources with respective numbers point by the quantity of multiple IP data sources, its
In, multiple IP data sources point meet:Any two of which IP data source point adds and more than arbitrary IP data sources point.Due to IP data
Source has multiple, therefore, corresponding IP data sources point also have multiple, and each IP data source is arranged into a corresponding IP data source
Point, wherein, IP data sources point meet:Any two IP data source point plus and more than other arbitrary IP data sources point, this be for
During credibility is calculated, it is to avoid IP section attaching information identicals IP data source point plus and less than other arbitrary IP data
Source point the occurrence of, unreasonable cause to affect IP section attaching informations credible due to what the distribution of IP data sources was put so as to avoid
The problem of degree.
Configuration module is used to for multiple IP data sources point to be allocated to multiple IP data sources correspondingly.So that each IP
Data source correspondence one IP data source point.
Preferably, configuration module includes:Configuration submodule, the first calculating sub module, the second calculating sub module and determination
Module.
Configuration submodule is used to divide mode to be in a different configuration allocated to multiple IP correspondingly multiple IP data sources
Data source.Due to the multiple IP data sources of multiple IP data sources point correspondence, therefore, configuration mode and the IP data sources of IP data sources point
Quantity it is related, for example, when there is three IP data sources to include IP sections 1.0.0.1~2.0.0.0, each IP data sources are respectively data
When source A, data source B and data source C, IP data sources point are respectively 100,101 and 102, then the configuration mode of IP data sources point is total
6 kinds are had, as shown in table 1, mode 1:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:
100th, 101 and 102;Mode 2:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:100、
102 and 101;Mode 3:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:101st, 100 and
102;Mode 4:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:101st, 102 and 100;
Mode 5:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:102nd, 100 and 101;Mode
6:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:102nd, 101 and 100.
Table 1:
In table 1, IP sections 1.0.0.1~2.0.0.0 is corresponding in data source A is attributed to Beijing, the IP in data source B
1.0.0.1~2.0.0.0 is corresponding is attributed to Beijing for section, and IP sections 1.0.0.1~2.0.0.0 is corresponding in data source C returns
Belong to for Shanghai City.
First calculating sub module is used to calculate the credibility of the IP section attaching informations under each configuration mode.As in table 1
It is shown, the credibility of the IP sections under each configuration mode is calculated, wherein, the credibility under mode 1 is 321, credible under mode 2
Spend for 322, the credibility under mode 3 is 321, credibility mode 4 under is 323, the credibility under mode 5 is 322, mode six
Under credibility be 323.
In the same manner, the computational methods in table 1, successively IP sections are matched somebody with somebody for 2.0.0.1~3.0.0.0 at six kinds in computational chart 2
Put the credibility of IP sections attaching information under mode;IP sections are 3.0.0.1~4.0.0.0 under six kinds of configuration modes in computational chart 3
The credibility of IP section attaching informations;IP sections are 4.0.0.1~5.0.0.0 IP sections attaching informations under six kinds of configuration modes in table 4
Credibility.
Table 2:
Table 3:
Table 4:
Second calculating sub module is used for the maximum of the IP section attaching informations of multiple IP data sources under identical configuration mode
Credibility is added.By IP sections 1.0.0.1 of the IP data sources under each configuration mode in six kinds of configuration modes~2.0.0.0, IP section
The credibility of 2.0.0.1~3.0.0.0, IP section 3.0.0.1~4.0.0.0 and IP sections 4.0.0.1~5.0.0.0 adds and records
In table 5.
Table 5:
Determination sub-module is used for configuration mode be added using maximum confidence and maximum by multiple IP data sources point
One is accordingly allocated to multiple IP data sources.Configuration mode be added using maximum confidence and maximum is by multiple IP data sources
Divide and be allocated to multiple IP data sources correspondingly.As can be seen from Table 5 the credibility of configuration mode 5 adds and does big, will match somebody with somebody
That puts mode 5 the most most preferably matches somebody with somebody offshoot program, and multiple IP data sources point are allocated to correspondingly into multiple IP data sources.Therefore,
The IP sections ownership and its corresponding credibility for obtaining final IP data sources is as shown in table 6.
Table 6:
IP sections |
Geography information |
Credibility |
1.0.0.1-2.0.0.0 |
Beijing |
322 |
2.0.0.1-3.0.0.0 |
Shanghai City Jing'an District |
181 |
3.0.0.1-4.0.0.0 |
Beijing |
323 |
4.0.0.1-5.0.0.0 |
Shanghai City |
162 |
Fig. 3 is the structural representation that IP sections according to a third embodiment of the present invention belong to determining device.The IP of the embodiment
Section ownership determining device can belong to a kind of preferred implementation of determining device as the IP sections of above-described embodiment.Such as Fig. 3 institutes
Show, the IP sections ownership determining device, including:First acquisition unit 10, second acquisition unit 20, computing unit 30 and signal generating unit
40, wherein, signal generating unit 40 includes the second computing module 401, the first generation module 402 and the second generation module 403.Second obtains
Take unit 20 and computing unit 30 same with the second acquisition unit 20 and the function phase of computing unit 30 shown in Fig. 1, do not go to live in the household of one's in-laws on getting married here
State.
In the present embodiment, multiple IP data sources include multiple identical IP sections.
Computing unit 10 is additionally operable to calculate the credibility of each IP section attaching information in multiple IP data sources respectively.It is multiple
IP data sources include identical IP section, the IP sections that first acquisition unit 10 is obtained can be one can also be it is multiple, for example,
IP data sources A and IP data sources B are according to including IP sections:1.0.0.1~2.0.0.0 and IP sections 2.0.0.1~3.0.0.0.Its premise
It is that the division of the IP sections between different IP data sources in multiple IP data sources is consistent.Multiple IP data sources include
Multiple identical IP sections, as shown in table 1, table 2, table 3 and table 4, data source A, data source B and data source C include IP sections
1.0.0.1~2.0.0.0, IP section 2.0.0.1~3.0.0.0, IP section 3.0.0.1~4.0.0.0 and IP sections 4.0.0.1~
5.0.0.0。
Second computing module 401 be used to adding IP section attaching information identical credibilitys and.Such as data source A in table 1 and
The attaching information of data source B is identical, then, data source A is added with the credibility of data source B.
First generation module 402 is used for the credibility that will add the credibility with after as corresponding IP sections attaching information.Will
Credibility of the credibility sum of above-mentioned middle data source A and data source B as the attaching information of IP sections 1.0.0.1~2.0.0.0.
Second generation module 403 is used for the maximum IP sections attaching information of credibility in each IP section as corresponding IP
The attaching information of section.Due to credibility K1=100+3*20=160 in data source A in table 1, IP sections 1.0.0.1~
2.0.0.0 credibility K2=101+3*20=161 in data source B, IP sections 1.0.0.1~2.0.0.0 is in data source C
Credibility K3=102+3*20=162, due to the attaching information of IP sections 1.0.0.1~2.0.0.0 in data source A and data source B
It is identical, be Beijing, then K1 is added the credibility 321 for obtaining that attaching information is Beijing with K2, due to 321>162 so
Confirm that the final credibilitys of IP sections 1.0.0.1~2.0.0.0 are 321, then the attaching information of the IP sections is Beijing.
The embodiment of the present invention additionally provides a kind of IP sections ownership determination method.The method is run on a computing device.Need
It is noted that the IP sections ownership determination method of the embodiment of the present invention can pass through the IP sections ownership that the embodiment of the present invention is provided
Performing, the IP sections ownership determining device of the embodiment of the present invention can be used for performing the embodiment of the present invention and provided determining device
IP sections ownership determination method.
Fig. 4 is the flow chart that IP sections according to a first embodiment of the present invention belong to determination method.As shown in figure 4, the IP sections
Ownership determination method includes that step is as follows:
Step S101, obtains identical IP section in multiple IP data sources.Multiple IP data sources include identical IP section, the
It can also be multiple that the IP sections that one acquiring unit 10 is obtained can be one, and for example, IP data sources A and IP data sources B evidence include
IP sections:1.0.0.1~2.0.0.0 and IP sections 2.0.0.1~3.0.0.0.With the proviso that, the different IP in multiple IP data sources
The division of the IP sections between data source is consistent.
Step S102, obtains respectively attaching information of the IP sections in multiple IP data sources, obtains multiple IP sections attaching informations.
In multiple IP data sources are got after identical IP section, second acquisition unit 20 can obtain the IP sections in each IP number
According to corresponding attaching information in source, because the corresponding attaching information of identical IP section identical also may may be used in different IP data sources
Can be different, multiple IP data sources then correspond to multiple IP sections attaching informations.Attaching information referred herein can be IP sections correspondence
Geography information, or the corresponding operator's informaiton of IP sections.
Step S103, calculates respectively the credibility of multiple IP sections attaching informations.Because the IP sections of different IP data sources are returned
Category information can have differences, and the IP section attaching informations of single IP data sources have certain error, are counted by computing unit 30
The credibility of IP section attaching informations is calculated, the credibility of the IP section attaching informations of identical IP sections in multiple IP data sources is obtained.Due to
The credibility of IP section attaching informations determines by the factor such as granularity of IP sections attaching information and attaching information, therefore can be according to IP sections
The granularity of attaching information and attaching information is arranged to IP data sources to the influence degree of the accuracy of IP section attaching informations and calculates number
Value, according to the credibility of the numerical computations IP section attaching information.
Step S104, using the maximum IP sections attaching information of credibility as IP sections attaching information.It is calculated respectively many
After the credibility of individual IP sections attaching information, the credibility of the IP section attaching informations in each IP data sources is contrasted, obtained
The maximum IP section attaching informations of credibility, signal generating unit 40 using the IP sections attaching information as the IP sections attaching information.
According to embodiments of the present invention, by the credibility of identical IP section attaching information in the multiple IP data sources of calculating, will
The credibility of identical IP section attaching information is contrasted in multiple IP data sources, chooses the maximum IP section attaching informations of credibility
Used as the attaching information of the identical IP section, relative to existing IP sections attaching information, its accuracy is of a relatively high, IP data sources
In IP sections the low problem of attaching information accuracy, reached the attaching information accuracy that improves the IP sections in IP data sources
Effect.
Fig. 5 is the flow chart that IP sections according to a second embodiment of the present invention belong to determination method.The IP sections of the embodiment are returned
Category determination method can be as a kind of preferred implementation of above-described embodiment, as shown in figure 5, the IP sections ownership determination method bag
Include step as follows:
Step S201, obtains identical IP section in multiple IP data sources.Multiple IP data sources include identical IP section, the
It can also be multiple that the IP sections that one acquiring unit 10 is obtained can be one, and for example, IP data sources A and IP data sources B evidence include
IP sections:1.0.0.1~2.0.0.0 and IP sections 2.0.0.1~3.0.0.0.With the proviso that, the different IP in multiple IP data sources
The division of the IP sections between data source is consistent.
Step S202, obtains respectively attaching information of the IP sections in multiple IP data sources, obtains multiple IP sections attaching informations.
In multiple IP data sources are got after identical IP section, second acquisition unit 20 can obtain the IP sections in each IP number
According to corresponding attaching information in source, because the corresponding attaching information of identical IP section identical also may may be used in different IP data sources
Can be different, multiple IP data sources then correspond to multiple IP sections attaching informations.Attaching information referred herein can be IP sections correspondence
Geography information, or the corresponding operator's informaiton of IP sections.
Step S203, determines respectively the granularity of multiple IP data sources, and granularity is used to represent the area of correspondence IP data source ownership
The series in domain.Granularity can be used to indicate that the geographic area of IP data sources ownership or the series of administrative region, and for example, country is right
The granularity answered is 1, and it is 2 to save corresponding granularity, and the corresponding granularity in city is 3, and the corresponding granularity in area or county is 4, administrative region
Series is bigger, and the value of granularity is bigger.IP sections one attaching information of correspondence in each IP data source, each attaching information has
One granularity, the multiple granularities of identical IP section correspondence in multiple IP data sources.
Step S204, obtains respectively the corresponding IP data sources point of each IP data source in multiple IP data sources and granularity point,
Wherein, IP data sources are divided into the numerical value being pre-configured with to IP data sources, and granularity is divided into the numerical value being pre-configured with to granularity.Due to tool
There are the different IP data sources of identical IP sections, the attaching information identical IP data source of the IP sections is more, its ownership credibility is got over
Height, meanwhile, the value of granularity is bigger, that is to say that, to the thinner of IP section attaching informations, the credibility of IP section attaching informations is higher.Such as IP
Section attaching information will height for the credibility in Hebei province for the Reliability ratio IP sections attaching information of Tangshan, Hebei Province.IP data sources point
Can be configured according to the quantity of the IP data sources for getting, for calculating IP data sources in IP sections ownership credibility.
Granularity is divided into the numerical value being pre-configured with to the granularity.Granularity point can be configured as needed.
Step S205, by below equation the credibility of an IP section attaching informations is calculated respectively, wherein, an IP sections are returned
Category information is the arbitrary IP sections attaching information in multiple IP sections attaching informations.
K=S+N*L
Wherein, K is the credibility of an IP section attaching informations, and S is IP data sources point, and N is granularity, and L is granularity point.Such as table
Shown in 1, in allocation plan 1, credibilitys K1=100+3*20=160 of the IP sections 1.0.0.1~2.0.0.0 in data source A,
Credibilitys K2=101+3*20=161 of the IP sections 1.0.0.1~2.0.0.0 in data source B, IP sections 1.0.0.1~2.0.0.0
Credibility K3=102+3*20=162 in data source C, due to, IP sections 1.0.0.1 in data source A and data source B~
2.0.0.0 attaching information is identical, is Beijing, then K1 is added the credibility for obtaining that attaching information is Beijing with K2
321, due to 321>162 so confirm that the final credibilitys of IP sections 1.0.0.1~2.0.0.0 are 321.Other schemes are in the same manner.
Step S206, using the maximum IP sections attaching information of credibility as IP sections attaching information.It is calculated respectively many
After the credibility of individual IP sections attaching information, the credibility of the IP section attaching informations in each IP data sources is contrasted, obtained
The maximum IP section attaching informations of credibility, signal generating unit 40 using the IP sections attaching information as the IP sections attaching information.
Preferably, IP data sources point are configured in the following manner:
Multiple IP data sources with respective numbers point are arranged by the quantity of multiple IP data sources, wherein, multiple IP data
Source point meets:What any two of which IP data source was divided adds and more than arbitrary IP data sources point.Because IP data sources have multiple, because
This, corresponding IP data sources also have multiple, and each IP data source is arranged into a corresponding IP data source point, wherein, IP data
Source point meets:What any two IP data source was divided adds and more than other arbitrary IP data sources point, and this is to calculate credibility
During, it is to avoid IP section attaching information identicals IP data source point plus and send out less than the situation of other arbitrary IP data sources point
It is raw, so as to avoid the unreasonable problem for causing to affect IP section attaching information credibilitys put due to the distribution of IP data sources.
Multiple IP data sources point are allocated to into correspondingly multiple IP data sources.So that each IP data sources correspondence one
Individual IP data sources point.
It is further preferred that by multiple IP data sources point, in a different configuration mode is allocated to correspondingly multiple IP numbers
According to source.Due to the multiple IP data sources of multiple IP data sources point correspondence, therefore, configuration mode and the IP data sources of IP data sources point
Quantity is related, and for example, when there is three IP data sources to include IP sections 1.0.0.1~2.0.0.0, each IP data sources are respectively data source
When A, data source B and data source C, IP data sources point are respectively 100,101 and 102, then the configuration mode that IP data sources are divided is altogether
There are 6 kinds, as shown in table 1, mode 1:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:
100th, 101 and 102;Mode 2:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:100、
102 and 101;Mode 3:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:101st, 100 and
102;Mode 4:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:101st, 102 and 100;
Mode 5:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:102nd, 100 and 101;Mode
6:The configuration of the corresponding IP data sources point of data source A, data source B and data source C is followed successively by:102nd, 101 and 100.
In table 1, IP sections 1.0.0.1~2.0.0.0 is corresponding in data source A is attributed to Beijing, the IP in data source B
1.0.0.1~2.0.0.0 is corresponding is attributed to Beijing for section, and IP sections 1.0.0.1~2.0.0.0 is corresponding in data source C returns
Belong to for Shanghai City.
Calculate the credibility of the IP section attaching informations under each configuration mode.As shown in table 1, each configuration side is calculated
The credibility of the IP sections under formula, wherein, the credibility under mode 1 be 321, credibility mode 2 under be 322, under mode 3 can
Reliability is 321, and the credibility under mode 4 is 323, and the credibility under mode 5 is 322, and the credibility under mode six is 323.
In the same manner, the computational methods in table 1, successively IP sections are matched somebody with somebody for 2.0.0.1~3.0.0.0 at six kinds in computational chart 2
Put the credibility of IP sections attaching information under mode;IP sections are 3.0.0.1~4.0.0.0 under six kinds of configuration modes in computational chart 3
The credibility of IP section attaching informations;IP sections are 4.0.0.1~5.0.0.0 IP sections attaching informations under six kinds of configuration modes in table 4
Credibility.
The maximum confidence of the IP section attaching informations of multiple IP data sources under identical configuration mode is added.Six kinds are matched somebody with somebody
Put IP sections 1.0.0.1~2.0.0.0, IP section 2.0.0.1~3.0.0.0, IP of the IP data sources in mode under each configuration mode
The credibility of section 3.0.0.1~4.0.0.0 and IP sections 4.0.0.1~5.0.0.0 adds and records in table 5.
Configuration mode be added using maximum confidence and maximum is correspondingly allocated to multiple IP data sources point
Multiple IP data sources.As can be seen from Table 5 the credibility of configuration mode 5 adds and does big, the most most preferably matching somebody with somebody configuration mode 5
Multiple IP data sources point are allocated to correspondingly multiple IP data sources by offshoot program.Therefore, the IP of final IP data sources is obtained
Section ownership and its corresponding credibility are as shown in table 6.
According to embodiments of the present invention, the IP data sources point being pre-configured with by configuring acquisition are divided to belong to IP sections with granularity
Information is calculated, and obtains the attaching information of each IP section, further increases the accuracy of IP section attaching informations.
Fig. 6 is the flow chart that IP sections according to a third embodiment of the present invention belong to determination method.The IP sections of the embodiment are returned
Category determination method can be as a kind of preferred implementation of above-described embodiment, as shown in fig. 6, the IP sections ownership determination method bag
Include step as follows:
Step S301, obtains identical IP section in multiple IP data sources.Multiple IP data sources include identical IP section, the
It can also be multiple that the IP sections that one acquiring unit 10 is obtained can be one, and for example, IP data sources A and IP data sources B evidence include
IP sections:1.0.0.1~2.0.0.0 and IP sections 2.0.0.1~3.0.0.0.With the proviso that, the different IP in multiple IP data sources
The division of the IP sections between data source is consistent.Multiple IP data sources include multiple identical IP sections, such as table 1, table 2, table 3
Shown in table 4, data source A, data source B and data source C include IP sections 1.0.0.1~2.0.0.0, IP section 2.0.0.1~
3.0.0.0, IP sections 3.0.0.1~4.0.0.0 and IP sections 4.0.0.1~5.0.0.0.
Step S302, obtains respectively attaching information of the IP sections in multiple IP data sources, obtains multiple IP sections attaching informations.
In multiple IP data sources are got after identical IP section, second acquisition unit 20 can obtain the IP sections in each IP number
According to corresponding attaching information in source, because the corresponding attaching information of identical IP section identical also may may be used in different IP data sources
Can be different, multiple IP data sources then correspond to multiple IP sections attaching informations.Attaching information referred herein can be IP sections correspondence
Geography information, or the corresponding operator's informaiton of IP sections.
Step S303, calculates respectively the credibility of each IP section attaching information in multiple IP data sources.Calculate multiple IP
The corresponding IP sections attaching information of each IP section in data source, such as the IP sections 1.0.0.1~2.0.0.0 in table 1, the IP in table 2
Section 2.0.0.1~3.0.0.0, the IP sections 4.0.0.1~5.0.0.0 in IP sections 3.0.0.1~4.0.0.0 and table 4 in table 3,
Calculate the credibility of the attaching information of every IP sections.
Step S304, IP section attaching information identical credibilitys are added and.Such as returning for data source A in table 1 and data source B
Category information is identical, then, data source A is added with the credibility of data source B.
Step S305, will add credibility of the credibility with after as corresponding IP sections.By above-mentioned middle data source A and data
Credibility of the credibility sum of source B as the attaching information of IP sections 1.0.0.1~2.0.0.0.
Step S306, believes the maximum IP sections attaching information of credibility in each IP section as the ownership of corresponding IP sections
Breath.Due to credibility K1=100+3*20=160 in data source A in table 1, IP sections 1.0.0.1~2.0.0.0 is in data source
Credibility K2=101+3*20=161 in B, credibilitys K3=102+ of the IP sections 1.0.0.1~2.0.0.0 in data source C
3*20=162, because data source A is identical with the attaching information of IP sections 1.0.0.1~2.0.0.0 in data source B, is Beijing
City, then K1 is added the credibility 321 for obtaining that attaching information is Beijing with K2, due to 321>162 so confirm IP sections
1.0.0.1~2.0.0.0 final credibility is 321, then the attaching information of the IP sections is Beijing.
It should be noted that can be in such as one group computer executable instructions the step of the flow process of accompanying drawing is illustrated
Perform in computer system, and, although show logical order in flow charts, but in some cases, can be with not
The order being same as herein performs shown or described step.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realizing, they can be concentrated on single computing device, or are distributed in multiple computing devices and are constituted
Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored
Performed by computing device in the storage device, or they be fabricated to respectively each integrated circuit modules, or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software is combined.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.