CN110661901B - Letter collecting method, integration method, electronic equipment and storable medium of IP library - Google Patents

Letter collecting method, integration method, electronic equipment and storable medium of IP library Download PDF

Info

Publication number
CN110661901B
CN110661901B CN201910728631.8A CN201910728631A CN110661901B CN 110661901 B CN110661901 B CN 110661901B CN 201910728631 A CN201910728631 A CN 201910728631A CN 110661901 B CN110661901 B CN 110661901B
Authority
CN
China
Prior art keywords
library
libraries
attribution
integration
granularity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910728631.8A
Other languages
Chinese (zh)
Other versions
CN110661901A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910728631.8A priority Critical patent/CN110661901B/en
Publication of CN110661901A publication Critical patent/CN110661901A/en
Application granted granted Critical
Publication of CN110661901B publication Critical patent/CN110661901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The embodiment of the invention relates to the field of application development and discloses a letter collection method, an integration method, electronic equipment and a storage medium of an IP library. In the invention, the method for collecting the information of the IP library comprises the following steps: integrating a plurality of IP libraries to be collected to obtain an integrated library; respectively determining first coincidence rates of attributions of the IP libraries and the integration libraries under the preset hierarchical granularity; and the adoption rate of coincidence accords with the IP library of the preset condition. The embodiment of the invention can obtain the IP library which has higher accuracy and better meets the requirements of users.

Description

Letter collecting method, integration method, electronic equipment and storable medium of IP library
Technical Field
The embodiment of the invention relates to the field of application development, in particular to a letter collecting method, an integration method, electronic equipment and a storage medium of an IP library.
Background
The accuracy of the IP library in CDN services directly affects the quality of service. Because the resolution process is to find the matching service resource of the domain name request through the home information (geography, operator) of the IP.
At present, a plurality of IP libraries exist in the market, the data source, the data processing method and the data processing technology of each IP library are different, and the precision granularity and the naming mode of data are different from each other. When a CDN manufacturer purchases and uses an IP library, the CDN manufacturer is often lost, and does not know which library data is accurate, and if a plurality of third-party libraries are used, how to unify various data and how to adopt confidence is large.
In the traditional mode, a third-party library test is carried out through an IP with known attribution, and purchasing and communication collection are carried out according to a library with higher test accuracy. However, because the number of IPs is too large and the information known by most vendors is limited, the accuracy of the current test does not represent that the accuracy of the IP library is still the highest after future business development. For example, a certain manufacturer originally has only the service of the china region, and the IP library a has more resource information in the china region with accuracy, but the manufacturer opens up the U.S. service along with the business expansion, but the IP library a has no resource in the U.S., and has some very inaccurate information only through public information. If the user still uses the IP library A, the expanded business service capability of the user is influenced.
In the traditional mode, the situation that the databases are spliced according to the geographic levels also exists, for example, if the accuracy of the IP database A of the national granularity is higher, the IP database A is adopted, and if the accuracy of the IP database B of the provincial granularity is higher, the IP database B is adopted. The method seems that the data of each geographic level are accurate, but because of the actual service range, the most accurate dominant data of each IP library cannot be obtained only by adopting the IP information according to the geographic level. Even if the granularity of the same country is the same, the accuracy of the IP information of China and the United states can hardly reach a high level by one IP library. If the accuracy of the IP library A is high in the European Union region and the accuracy of the IP library B is high in the Asia-Pacific region, if the trust is adopted according to the traditional whole national granularity, the IP library A is used because the number of the European Union IP is dominant, but the service quality can be influenced by the inaccurate problem of the IP library of the service users in the Asia-Pacific region.
Disclosure of Invention
The embodiment of the invention aims to provide a letter collection method, an integration method, electronic equipment and a storage medium of an IP library, so that the IP library which is higher in accuracy and more suitable for user requirements can be obtained.
In order to solve the above technical problem, an embodiment of the present invention provides a method for acquiring an IP library, including: integrating a plurality of IP libraries to be collected to obtain an integrated library; respectively determining first coincidence rates of attributions of the IP libraries and the integration library under a preset hierarchical granularity; and acquiring the IP library with the coincidence rate meeting the preset condition.
An embodiment of the present invention provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of credit collection for an IP library as described above.
An embodiment of the present invention provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of integrating IP libraries as described above.
An embodiment of the present invention provides a computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method for acquiring a message in an IP library as described above. An embodiment of the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to implement the method for integrating IP libraries as described above when executed by a processor.
Compared with the prior art, the main differences and effects of some embodiments of the invention are as follows: determining the coincidence rate of each IP library and an integration library according to the preset hierarchical granularity based on the basic data of the IP libraries and the integration library integrated according to each IP library, and acquiring the IP libraries according to the coincidence rate. According to the scheme, when the IP library is adopted, the basic data is associated with the actual service, and the IP library with the precision advantage under the granularity is adopted according to the given granularity, so that the adopted IP library better meets the requirements of users. Meanwhile, due to the fact that the data with high coincidence rate and the accuracy are generally high, the process of collecting the information of the IP library is rapid, accurate and high in automation degree through collecting the information with the coincidence rate.
As a further improvement, the determining a first coincidence ratio of attributions of the number of IP repositories and the integrated repository respectively at a preset hierarchical granularity includes: screening the IP with the attribute meeting the preset service area under the preset level granularity from the plurality of IP libraries to respectively form IP division libraries corresponding to the plurality of IP libraries one by one; screening the IP with the attribute meeting the preset service area under the preset level granularity from the integration library to form a first division library corresponding to the integration library; and calculating a second coincidence rate of the IP division base and the first division base, and taking the second coincidence rate as the first coincidence rate. And screening according to a preset service area, wherein the practical application of the user is generally concentrated in a specific service area, so that the screening is carried out according to the service area, the obtained coincidence rate is more in line with the requirement of the user, and the user obtains IP attribution with higher accuracy in the required service area.
As a further improvement, the preset service area includes: geographic attribution, and/or operator origin. According to the scheme, because the IP accuracy rates of different geographic attributions and different operators are different, the IP accuracy rate of the screened IP is increased by combining screening according to one or two items of geographic attribution and operator information.
As a further improvement, said integrating said plurality of IP libraries specifically includes: determining a problem IP, wherein the problem IP meets the condition that the attribution repetition degree in the plurality of IP libraries is lower than a preset threshold value; acquiring the communication quality of the plurality of IP libraries; and taking the attribution of the problem IP in the IP library with the optimal communication quality as the attribution of the problem IP in the integration library. In the integration process, the problem IP can be quickly determined through the attribution repetition rate, and the communication quality of the IP library is combined for letter collection, so that the method is quick and accurate, and is further convenient for automation.
As a further improvement, said integrating said plurality of IP libraries specifically comprises: determining a problem IP, wherein the problem IP accords with the IP of which the attribution repetition degree in the plurality of IP libraries is lower than a preset threshold value; detecting the attribution of the problem IP to obtain target attribution; and updating the attribution information of the problem IP in the integration library to the target attribution. And more accurate target attribution is obtained through actual detection of the problem IP, so that the attribution of the IP in the integration library is more accurate.
The embodiment of the invention provides an integration method of an IP library, which comprises the following steps: presetting a plurality of hierarchical granularities; acquiring a credit IP library from a plurality of IP libraries according to the credit acquisition method under each level granularity to obtain the IP library of the acquired credit; and when the obtained IP libraries are more than 1, integrating the obtained IP libraries according to the attribution information of the trusted IP library in the corresponding hierarchy granularity.
Compared with the prior art, the main differences and effects of some embodiments of the invention are as follows: and respectively collecting and integrating the attributions of the IP addresses under different levels of granularity, so that the integrated IP addresses collect the dominant data in each level, and the integrated IP library is more accurate in different granularities.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic diagram of a trust collection method for an IP library according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a trust-exploiting method of an IP library according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a trust collection method of an IP library according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for integrating IP libraries according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of an integration method of IP libraries in a fifth embodiment according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the invention;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The first embodiment of the present invention relates to a method for collecting information from an IP library. The method is applied to an electronic device which can be a computer, a server or other processors.
Fig. 1 shows a flowchart of the trust collection method for the IP library in this embodiment, which is specifically as follows:
step 101, integrating a plurality of IP libraries to be collected to obtain an integrated library.
Specifically, in this embodiment, the IP libraries to be trusted may be third-party IP libraries, which may be specified by a user, and the stored information includes all the IPs in the IP libraries and their corresponding affiliations.
More specifically, during integration, the IP and corresponding information in each IP library can be firstly arranged into a table form, visibility is improved, and if attribution information in part of IP libraries is incomplete, the IP and corresponding information can be completely supplemented according to international standard codes and short names. In addition, if the naming modes are not uniform, the uniform ISO can be adopted for uniform. For example, the library A is called CHN, the library B is called China, the library C is called China, and the unified three libraries are named CN according to the unified ISO China.
And continuing to explain, according to different levels, performing data integration on the plurality of third-party IP libraries according to a weight ratio credit-taking integration mode to obtain an integrated library.
Step 102, determining first coincidence rates of attributions of the IP libraries and the integration libraries under a preset hierarchy granularity respectively.
And 103, acquiring the IP library with the coincidence rate meeting the preset conditions.
The steps 101 to 103 are described by using the data of the three IP libraries in the following table 1, and the preset hierarchical granularity may be a country, wherein the IP of the countries other than the three countries is unified into other countries due to the large proportion of the three countries, i.e., the country, the united states and the russian, which the IP belongs to, so as to simplify the operation.
Figure BDA0002159773990000051
TABLE 1
Firstly, the IP library a, the IP library B and the IP library C are three libraries to be collected, and after data of the three libraries are obtained, the three libraries are integrated into an integrated library as shown in the following table 2 according to a weight ratio trust-taking integration mode:
Figure BDA0002159773990000052
TABLE 2
Next, the overlapping ratio of each IP library and the integration library is calculated according to Table 1 and Table 2, as shown in Table 3 below:
Figure BDA0002159773990000061
TABLE 3
Moreover, if the preset condition of the coincidence rate is that the coincidence rate is greater than 3/4, for example, then the IP library conforming to the preset range is the IP library a, it is determined that the coincidence rate of the IP library a meets the requirement under the national granularity, and since the coincidence rate is proportional to the attribution accuracy of the IP, it can be further determined that the accuracy of the IP library a meets the requirement under the national granularity, and finally the IP library a of the three IP libraries is determined to be adopted.
In the previous example, the preset condition of the coincidence rate may also be "maximum coincidence rate", and in the previous example, the IP library with the maximum coincidence rate is the IP library a, the credit acquisition IP library a is finally determined, and the only IP library can be acquired based on the preset condition of "maximum coincidence rate".
As can be seen, in the embodiment, based on the alternative IP libraries and the integrated library integrated according to each IP library, the coincidence rate of each IP library and the integrated library is determined according to the preset hierarchy granularity, and the IP libraries are adopted according to the coincidence rate. According to the scheme, when the IP library is trusted, the IP library with the precision advantage under the granularity is trusted according to the given granularity, so that the trusted IP library is more in line with the requirements of users. Meanwhile, due to the fact that the data with high coincidence rate and the accuracy are generally high, the automation degree of the process of collecting the information IP library is high through collecting the information with the coincidence rate, and the speed is high.
The second embodiment of the present invention relates to a method for collecting a message in an IP library. The second embodiment is further improved on the basis of the first embodiment, and the main improvement is that: in the embodiment, when the coincidence rate is calculated, the adoption of the full data in the IP library is avoided, the calculation is carried out only by adopting the IP which accords with the preset service area, and the coincidence rate in the IP of the preset service area is calculated because the requirement of the user can be concentrated in the specific service area, so that the data processing amount can be reduced under the condition of meeting the precision requirement of the user, and the IP library which accords with the requirement of the user better is obtained.
A flowchart of the trust-collecting method for the IP library in this embodiment is shown in fig. 2, and specifically includes the following steps:
step 201 in this embodiment is similar to step 101 in the first embodiment, and is not described herein again.
Step 202, screening the IPs with the attribute meeting the preset service area at the preset level granularity from the plurality of IP libraries, and respectively forming IP partition libraries corresponding to the plurality of IP libraries one to one.
Step 203, screening the IP with the attribute meeting the preset service area under the preset level granularity from the integration library to form a first division library corresponding to the integration library.
Specifically, before calculating the coincidence ratio, the method further includes: the operator source of each IP in a plurality of IP libraries is determined.
And 204, calculating a second coincidence rate of the IP partition library and the first partition library, and taking the second coincidence rate as the first coincidence rate.
Taking three IP libraries as an example, a process of calculating the first coincidence rate in the above step 202 to step 204 is specifically described below, where the preset hierarchy granularity may be province, the preset service area may include a geographic attribution and an operator source of the IP, and the geographic attribution is a civic and the operator source is a mobile in the embodiment as an example:
Figure BDA0002159773990000071
TABLE 4
Firstly, IP in each IP library is screened according to the preset level granularity and the preset service area, the preset level granularity is province, the preset service area comprises geographical attribution-Fujian and operator source-telecommunication, the screened IP needs to simultaneously accord with the geographical attribution and the operator source, and then IP division libraries which are in one-to-one correspondence with the IP library D, the IP library E and the IP library F are respectively formed.
And secondly, screening the IP in the integration library to obtain a first division library corresponding to the integration library according to the fact that the hierarchy granularity is province, and the preset service area comprises geographical attribution, fujian and operator source, telecommunication. The IP partition pools and the first partition pool are shown in table 5.
Name of storehouse Screening result with Fujian telecom as service area
IP partition library corresponding to IP library D 1.1.1.1、1.1.1.2、1.1.1.4
IP partition library corresponding to IP library E 1.1.1.1
IP division library corresponding to IP library F 1.1.1.4
First division library corresponding to integration library 1.1.1.1、1.1.1.4
TABLE 5
Further, the respective IP partition bases were compared with the first partition base, and the second overlapping ratio was calculated, as shown in table 6 below.
Name of storehouse Screening result with Fujian telecom as service area Second rate of coincidence
IP division base corresponding to IP base D 1.1.1.1、1.1.1.2、1.1.1.4 2/3
IP division library corresponding to IP library E 1.1.1.1 1/3
IP division library corresponding to IP library F 1.1.1.4 1/3
First partition library corresponding to integration library 1.1.1.1、1.1.1.4
TABLE 6
Then, the second overlapping rate is defined as the first overlapping rate, and the overlapping rates of the respective IP banks can be clearly understood from table 6. After the first coincidence rate is obtained, step 205 is executed to obtain an IP library of the signal mining. Specifically, step 205 in this embodiment is similar to step 103 in the first embodiment, and is not described herein again.
It can be seen that, in the present embodiment, the screening is performed according to the preset service area, and since the actual application of the user is generally concentrated in the specific service area, the screening is performed according to the service area, and the basic data is associated with the actual service, which not only can reduce the amount of data participating in the processing, but also can make the obtained coincidence rate more in line with the needs of the user, so that the user obtains the IP attribution with higher accuracy in the required service area. In addition, because the IP accuracy rates of different geographic attributions and different operators are different, the method and the system combine screening according to the geographic attribution and the operator information, and increase the accuracy rate of the screened IP.
In addition, in practical application, in addition to the screening IP combining the geographic attribution and the operator information as in this embodiment, the screening IP may also be performed by only using any one of the geographic attribution and the operator information, and a user may determine a screening basis according to an actual requirement by combining the reference value of the geographic attribution or the operator information in an application scene, which is not listed one by one here.
The third embodiment of the present invention relates to a method for collecting a message in an IP library. The third embodiment is further improved on the basis of the first embodiment, and the main improvement is that: in the embodiment, when a plurality of IP libraries to be collected are used, the IP with possible problems in attribution can be determined, and the accurate attribution of the problem IP can be further determined.
A flowchart of the trust collection method for the IP library in this embodiment is shown in fig. 3, and specifically follows:
step 301, integrating a plurality of IP libraries to be collected.
Specifically, when integrating IP data, the integration method is basically the same as that in the first embodiment, and is not described herein again.
Step 302, problem IPs are determined from a number of IP libraries.
Specifically, the problem IP meets the condition that the attaching repetition degree of an IP in a plurality of IP libraries is lower than a preset threshold, wherein the attaching repetition degree of an IP in a plurality of IP libraries can be the same number of times the IP is attached in a plurality of IP libraries/the total number of IP libraries. Therefore, according to the characteristic, the attribution repetition degree of each IP can be compared from the IP library to be adopted.
Taking table 1 as an example: the IP section 1 belongs to China, china and China respectively in the three IP libraries, and the attribution repetition degree of the IP section 1 in the three IP libraries is 3/3; the IP section 2 belongs to Russia, china and Russia in the three IP libraries respectively, so that the home duplication degree of the IP section 2 in the three IP libraries is 2/3; the home duplication degree of the IP section 3 and other IP sections is calculated in the same way and is respectively 2/3 and 3/3. Taking the preset threshold as 1/2 as an example, the repetition degrees of the four IP segments are all higher than the preset threshold, so there is no problem IP in the three IP banks in table 1.
Taking table 4 as an example: aiming at several hierarchical granularities of continents, continent districts, countries and national districts, if the information in the three original IP libraries is the same, the information is directly determined as the information of the corresponding granularity in the integrated library. Aiming at city granularity, IP1.1.1.1 is respectively Xiamen, quanzhou and Shantou in three original libraries, the repetition degree is 1/3, if the preset threshold value of the repetition degree is 1/2, the repetition degree of IP1.1.1.1 in the three original libraries is lower than 1/2, so that IP1.1.1.1 is determined as a problem IP.
In practical application, a plurality of problem IPs can be determined according to the method and corrected together in the subsequent steps.
Step 303, the communication quality of a plurality of IP libraries is obtained.
And step 304, attributing the problem IP in the IP library with the optimal communication quality as the attribution of the problem IP in the integration library.
Specifically, taking table 4 as an example, the communication quality of the IP library D, the IP library E, and the IP library F in table 4 is obtained, and if the time delay and the packet loss rate of the detection result of the IP library E are the lowest, the home of the foggy quan telecommunications in the city granularity of ip1.1.1.1 is determined according to the IP library E.
The above steps 301 to 304 complete the process of integrating the basic IP library data to form an integrated library, and in this process, an IP whose attribution may be inaccurate can be automatically determined and corrected according to the duplication degree of the IP attribution, so that the integration process is fast and accurate.
In addition, although the problem IP is determined according to the duplication degree of the IP attribution in the embodiment, in practical application, the problem IP may be preset, for example, a problem IP set is preset according to experience in an actual use process, when IP data is integrated, if a certain IP needing to be collected belongs to the problem IP set, the IP is detected, and the attribution in the integration library can be corrected, so that the accuracy of the IP attribution in the integration library is further increased.
Continuing to explain, the IP library is periodically updated in practical application, if the attribution of the screened problem IP in each library is not different from the attribution problem of the previous period, in the validity period (configurable), re-analysis is not performed, and the last detection result is directly adopted. If there is a difference, the deviation correction method in the embodiment may be performed again to analyze and determine the accurate attribution.
It should be noted that, although the accurate attribution of the problem IP is determined according to the communication quality of the IP library in this embodiment, in practical application, the attribution of the problem IP may be detected by the IP monitor, and the IP monitor returns the target attribution through actual detection.
After completing step 301 to step 304, step 305 and step 306 are continuously executed, and since step 305 and step 306 are similar to step 102 and step 103 in the first embodiment, they are not described again here.
It can be found that in the embodiment, the third-party library is subjected to a weight-to-weight ratio credit acquisition integration mode to perform data integration, and the IP and the attribution information which are lower than the threshold value are screened out to be used as the problem IP to perform secondary analysis, and the attribution of the problem IP is effectively corrected, so that the IP data in the integration library is more accurate.
The fourth embodiment of the invention also relates to an integration method of the IP library.
A flowchart of the integration method in this embodiment is shown in fig. 4, and specifically includes:
step 401, presetting a plurality of hierarchical granularities.
Specifically, the plurality of hierarchical granularities may include: country, province, and city. It should be noted that, since the multiple hierarchical granularities can be used for multiple times after being preset once, in practical applications, when the IP library is integrated, if there is preset data, the preset step may not be executed.
Step 402, acquiring the trusted IP library from the plurality of IP libraries according to the method for acquiring trusted information from any one of the IP libraries in the first to third embodiments, at each level granularity, and obtaining the trusted IP library.
And step 403, when the number of the obtained IP libraries is more than 1, integrating the obtained IP libraries according to the attribution information of the adopted IP library in the corresponding hierarchy granularity.
For example, according to the hierarchical granularity preset in step 401, the IP libraries of the adopted letter obtained from the IP library G, the IP library H, the IP library I and the IP library J of the to-be-adopted letter according to step 402 are respectively: under the national granularity, the IP library of the collected message is an IP library G; under the granularity of the national community, the IP library of the collected information is an IP library H; under provincial granularity, the IP library of the collected message is an IP library I; under the city granularity, the IP library of the collected information is an IP library J. Then, since there are four IP libraries obtained, when the four IP libraries are integrated into a new integrated library according to step 403, the attribution information of each IP in the new integrated library includes: attribution of national granularity of each IP in an attribution credit IP library G of national granularity, attribution of national granularity of each IP in an attribution credit IP library H of national granularity of a national area, attribution of provincial granularity of each IP in an attribution credit IP library I of provincial granularity, and attribution of urban granularity of each IP in an attribution credit IP library J of urban granularity.
Because the different IP libraries have different accuracies on different levels of granularity, the integration mode in the embodiment can adopt the dominant data in each basic library, so that the new IP libraries obtained by integration have higher accuracy performance in different levels of granularity.
Therefore, in the embodiment, the attributions of the IP are respectively collected and integrated under different levels of granularity, so that the dominant data in each level are collected during integration, and the integrated IP library is more accurate in different granularities.
A fifth embodiment of the present invention relates to a method for collecting a credit from an IP library. The fifth embodiment is further improved based on the fourth embodiment, and the main improvement lies in that: when the service area is preset and more than one geographical attribution is included in the service area, different IP libraries can be respectively adopted according to different geographical attributions, and then the data in the adopted IP libraries are spliced according to the geographical attributions, so that not only the granularity in the new integration library but also more optimal basic data can be adopted in the geographical attribution, and the data accuracy of the new integration library is further improved.
A flowchart of the integration method in this embodiment is shown in fig. 5, and specifically includes:
step 501, presetting a plurality of hierarchical granularities.
Step 502, in each level granularity, acquiring a credit from a plurality of IP libraries according to the credit acquisition method of any one IP library in the second embodiment, and respectively obtaining a trusted IP library corresponding to each geographic attribution.
And 503, when the number of the obtained IP libraries is more than 1, integrating the obtained IP libraries according to the attribution information of the intercepted IP library in the corresponding level granularity and the corresponding geographic attribution.
Taking table 1 as an example, a service area is preset, and the service area includes a plurality of geographic attributes, and under the country granularity, the plurality of geographic attributes may be three countries, such as china, the united states, and other countries, so the adopted message IP library obtained according to step 502 includes: the method is corresponding to the geographic attribution message-collecting IP library A in China, the geographic attribution message-collecting IP library B in the United states and the geographic attribution message-collecting IP library C in other countries. Thereafter, according to step 503, when the obtained IP libraries are greater than 1, the IP library a, the IP library B, and the IP library C are integrated into a new integrated library. In the new integrated library, under the national granularity, the IP attribution letter collection IP library A of the Chinese region belongs to the attribution of each IP in China, the IP attribution letter collection IP library B of the American region belongs to the attribution of each IP in America, and the IP attribution letter collection IP library C of the other national regions belongs to the attribution of each IP in other countries.
It is worth mentioning that if the IP1.1.1.1 belonging to china in the IP library a is determined to be the problem IP, the problem IP needs to be analyzed for the second time, for example, an IP monitor is used to perform actual detection, and if the accurate attribution of the IP1.1.1 is obtained as the Mongolia, the attribution of the new IP1.1.1.1 in the integrated library under the national granularity is updated to the Mongolia.
Therefore, by adopting the integration mode of adopting different IP libraries for different geographical attributions, the dominant data in the basic IP library can be further adopted during integration, and the accuracy of IP attribution in a new integration library is further improved. In addition, the problem IP is analyzed secondarily in the new integration library, and the accuracy of IP attribution in the new integration library is further ensured.
A sixth embodiment of the present invention relates to an electronic apparatus, as shown in fig. 6, including:
at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for acquiring the message of the IP library according to any one of the first to third embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A seventh embodiment of the present invention relates to an electronic apparatus, as shown in fig. 7, including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of integrating IP libraries as in the fourth embodiment or the fifth embodiment.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by the processor, implements the above-described embodiments of the method for acquiring an IP library.
A ninth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the above-described method embodiments of integrating IP libraries.
Those skilled in the art can understand that all or part of the steps in the method according to the above embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of practicing the invention, and that various changes in form and detail may be made therein without departing from the spirit and scope of the invention in practice.

Claims (8)

1. A method for collecting information of an IP library is characterized by comprising the following steps:
integrating a plurality of IP libraries to be collected to obtain an integrated library;
respectively determining first coincidence rates of attributions of the IP libraries and the integration library under a preset hierarchical granularity;
acquiring an IP library with the coincidence rate meeting preset conditions;
wherein, the integration is waited a plurality of IP storehouse of letter, includes: integrating the plurality of IP libraries to be collected according to the weight ratio collection integration mode;
the determining a first coincidence rate of attributions of the plurality of IP libraries and the integration library under a preset hierarchy granularity comprises: screening the IP with the attribute meeting the preset service area under the preset level granularity from the plurality of IP libraries to respectively form IP division libraries corresponding to the plurality of IP libraries one by one; screening the IP with the attribute meeting the preset service area under the preset level granularity from the integration library to form a first division library corresponding to the integration library; calculating a second coincidence rate of the IP division base and the first division base, and taking the second coincidence rate as the first coincidence rate;
the weight-to-weight credit-fetching integration mode comprises the following steps: and for each IP contained in the integration library, taking the attribution of the IP with the highest weight occupation ratio in the IP libraries to be adopted as the attribution of the IP corresponding to each IP in the integration library.
2. The method of claim 1, wherein the predetermined service area comprises: geographic attribution, and/or operator origin.
3. The method for acquiring the mail of the IP library according to claim 1, wherein the integrating the plurality of IP libraries specifically comprises:
determining a problem IP, wherein the problem IP meets the condition that the attribution repetition degree in the plurality of IP libraries is lower than a preset threshold value;
acquiring the communication quality of the plurality of IP libraries;
and taking the attribution of the problem IP in the IP library with the optimal communication quality as the attribution of the problem IP in the integration library.
4. The method for acquiring the mail of the IP library according to claim 1, wherein the integrating the plurality of IP libraries specifically comprises:
determining a problem IP, wherein the problem IP accords with the IP of which the attribution repetition degree in the plurality of IP libraries is lower than a preset threshold value;
detecting the attribution of the problem IP to obtain target attribution;
and updating the attribution information of the problem IP in the integration library to the target attribution.
5. A method for integrating IP libraries, comprising:
presetting a plurality of hierarchical granularities;
acquiring a credit from a plurality of IP libraries by the credit acquisition method according to any one of claims 1 to 4 under each level granularity to obtain an acquired credit IP library;
and when the obtained IP libraries are more than 1, integrating the obtained IP libraries according to the attribution information of the intercepted IP libraries in the corresponding hierarchy granularity.
6. The method of integrating IP libraries of claim 5,
when the message collection method according to claim 1 collects the message from the IP databases and the preset service area includes at least two geographical affiliations, the collected message IP database corresponding to each geographical affiliation is obtained at each level granularity;
the method for integrating the IP libraries obtained according to the attribution information of the picked IP libraries in the corresponding hierarchical granularity specifically comprises the following steps:
and integrating the obtained IP libraries according to the attribution information of the intercepted IP libraries in the corresponding hierarchy granularity and the corresponding geographic attribution.
7. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform:
the method for acquiring an IP library according to any one of claims 1 to 4, or,
the method of claim 5 or 6 for integrating IP libraries.
8. A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing:
the adoption method of the IP library according to any one of the claims 1 to 4, or,
the method of claim 5 or 6 for integrating IP libraries.
CN201910728631.8A 2019-08-08 2019-08-08 Letter collecting method, integration method, electronic equipment and storable medium of IP library Active CN110661901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910728631.8A CN110661901B (en) 2019-08-08 2019-08-08 Letter collecting method, integration method, electronic equipment and storable medium of IP library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910728631.8A CN110661901B (en) 2019-08-08 2019-08-08 Letter collecting method, integration method, electronic equipment and storable medium of IP library

Publications (2)

Publication Number Publication Date
CN110661901A CN110661901A (en) 2020-01-07
CN110661901B true CN110661901B (en) 2022-11-04

Family

ID=69036446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910728631.8A Active CN110661901B (en) 2019-08-08 2019-08-08 Letter collecting method, integration method, electronic equipment and storable medium of IP library

Country Status (1)

Country Link
CN (1) CN110661901B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371914A (en) * 2020-02-25 2020-07-03 网宿科技股份有限公司 IP library generation method, domain name resolution method, electronic device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
CN108737592A (en) * 2018-06-27 2018-11-02 北京云端智度科技有限公司 A method of verification IP address resources bank precision

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7089558B2 (en) * 2001-03-08 2006-08-08 International Business Machines Corporation Inter-partition message passing method, system and program product for throughput measurement in a partitioned processing environment
EP1873673A4 (en) * 2006-03-29 2011-05-18 Bank Of Tokyo Mitsubishi Ufj User verifying device, method and program
CN103259877B (en) * 2013-04-15 2017-03-15 北京百度网讯科技有限公司 The geographic position determination method and system of IP address

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
CN108737592A (en) * 2018-06-27 2018-11-02 北京云端智度科技有限公司 A method of verification IP address resources bank precision

Also Published As

Publication number Publication date
CN110661901A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN106936887B (en) Geographic position positioning method and device
CN110719568B (en) Indoor positioning method, device, medium and equipment
US9560534B2 (en) Processing objects of a radiomap database
EP2545736B1 (en) Exchange of messages relating to positioning data
CN101355595A (en) Method and apparatus for locating physical location of IP address
TW201543859A (en) Method, apparatus, and system for determining a location of a terminal
CN109936820B (en) User terminal positioning method and device
CN112738297B (en) IP address positioning data acquisition method, device, server and storage medium
CN112039861B (en) Risk identification method and device, electronic equipment and computer readable storage medium
CN111541986B (en) Positioning method, positioning device, storage medium and processor
WO2020024597A1 (en) Indoor positioning method and apparatus
CN108089216B (en) Auxiliary positioning method and system
CN109963253B (en) Method and device for identifying geographic position of user residence
CN111356085B (en) Roaming user positioning method, device, equipment and medium
CN110661901B (en) Letter collecting method, integration method, electronic equipment and storable medium of IP library
CN110727752B (en) Position fingerprint database processing method, device and computer readable storage medium
TW202024964A (en) User position determination method and apparatus, device, and computer readable storage medium
CN112867147A (en) Positioning method and positioning device
CN109670122A (en) Address information earth-filling method, device, equipment and computer readable storage medium
CN111372270B (en) Method, device, equipment and medium for determining suspected fault cell
CN110456398B (en) Geographic position determining method, device, storage medium and equipment
CN109769202B (en) Method and device for positioning flow data, storage medium and server
CN106371122A (en) Cloud positioning platform based RTK reference station searching method
CN110247989A (en) The geographical position information acquisition method and system of smart home device
CN110988939A (en) Semi-distributed satellite navigation acquisition monitoring system and method

Legal Events

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