CN113242330B - Method, device, equipment and storage medium for determining network address library - Google Patents

Method, device, equipment and storage medium for determining network address library Download PDF

Info

Publication number
CN113242330B
CN113242330B CN202110503927.7A CN202110503927A CN113242330B CN 113242330 B CN113242330 B CN 113242330B CN 202110503927 A CN202110503927 A CN 202110503927A CN 113242330 B CN113242330 B CN 113242330B
Authority
CN
China
Prior art keywords
geographic
address
determining
network address
database
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
CN202110503927.7A
Other languages
Chinese (zh)
Other versions
CN113242330A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110503927.7A priority Critical patent/CN113242330B/en
Publication of CN113242330A publication Critical patent/CN113242330A/en
Application granted granted Critical
Publication of CN113242330B publication Critical patent/CN113242330B/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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

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

Abstract

The present disclosure relates to the field of internet of things, and in particular, to a method, an apparatus, a device and a storage medium for determining a network address base, where the method includes: acquiring a plurality of identification information of a target network address from a plurality of databases; identifying a plurality of geographic addresses from the plurality of identification information; scoring the plurality of geographic addresses to obtain a plurality of scoring results; and determining the target geographic address of the target network address according to the plurality of grading results. The method and the device can improve the comprehensiveness and accuracy of the mapping relation in the network address base.

Description

Method, device, equipment and storage medium for determining network address library
Technical Field
The present invention relates to the field of internet of things, and in particular, to a method, an apparatus, a device, and a storage medium for determining a network address repository.
Background
The network address library is a mapping relation library of network addresses and geographic addresses, wherein the network addresses can be DNS addresses or IP addresses, and the geographic addresses are cities where intelligent service terminals such as servers are located. In recent years, with the rapid development of the internet, more and more ownership persons expand or buy and sell network addresses, and the expansion leads to the increase of a plurality of network addresses with unknown geographic addresses, so that the network addresses in the original network address library are not comprehensive enough; the change of the geographic address of the network address caused by the transaction causes the incorrect mapping relation in the original network address library, which causes the service efficiency of the related application system depending on the network address library to be reduced.
Therefore, a determination method for a network address repository is needed to improve the comprehensiveness and accuracy of the mapping relationship in the network address repository.
Disclosure of Invention
Embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for determining a network address repository, so as to improve comprehensiveness and accuracy of a mapping relationship in the network address repository.
In order to achieve the above object, in one aspect, an embodiment herein provides a method for determining a network address base, including:
acquiring a plurality of identification information of a target network address from a plurality of databases;
identifying a plurality of geographic addresses from the plurality of identification information;
scoring the plurality of geographic addresses to obtain a plurality of scoring results;
and determining the target geographic address of the target network address according to the plurality of grading results.
Preferably, the identifying a plurality of geographic addresses from the plurality of identification information includes:
judging whether the identification information has an address mark or not;
if the identification information has an address mark, determining a geographic address corresponding to the target network address through the address mark;
judging whether the identification information is associated information;
if the identification information is the association information, determining an association database through the association information;
and determining the geographic address corresponding to the target network address according to the association information and the corresponding association database.
Preferably, the scoring the plurality of geographic addresses to obtain a plurality of scoring results includes:
determining the weights of a plurality of geographic addresses according to the weights of a database and an associated database and database query paths corresponding to the plurality of geographic addresses of the target network address;
and scoring the plurality of geographic addresses according to the weights of the plurality of geographic addresses to obtain a plurality of scoring results.
Preferably, the method for determining the weight of the database and the associated database includes:
determining the weight of the database according to the corresponding issuing mechanism and issuing time of the database; wherein the issuing authority comprises a government agency, a standard-making authority and a third party authority;
and determining the weight of the associated database according to the release mechanism and the release time corresponding to the associated database.
Preferably, the determining the weights of the plurality of geographic addresses according to the weights of the database and the associated database and the database query paths corresponding to the plurality of geographic addresses of the target network address includes:
according to the database query path of any geographic address, carrying out weight summation on the database and the associated database passing through the database query path;
dividing the sum result by the number of all the databases and the associated databases passing through the database query path to obtain a weight value;
and taking the weight value as the weight of the corresponding geographic address.
Preferably, the method further comprises the following steps:
determining a correction coefficient corresponding to the geographic address according to the number of all the databases and the associated databases passing through the database query path;
and correcting the weight of the corresponding geographic address through the correction coefficient.
Preferably, the scoring the plurality of geographic addresses according to the weights of the plurality of geographic addresses to obtain a plurality of scoring results includes:
carrying out weight summation on the same geographic address in the target network address to obtain the weight sum of the corresponding geographic address;
carrying out weight summation on all geographic addresses in the target network address to obtain the total weight of the corresponding target network address;
and dividing the weighted sum by the total weight to obtain a scoring result of the corresponding geographic address.
In another aspect, an embodiment herein provides an apparatus for determining a network address repository, where the apparatus includes:
an acquisition module: a plurality of identification information for obtaining a target network address from a plurality of databases;
an identification module: for identifying a plurality of geographic addresses from the plurality of identification information;
a scoring module: the system is used for scoring the plurality of geographic addresses to obtain a plurality of scoring results;
a determination module: and determining the target geographic address of the target network address according to the plurality of grading results.
In yet another aspect, embodiments herein also provide a computer device comprising a memory, a processor, and a computer program stored on the memory, the computer program when executed by the processor performing the instructions of any one of the methods described above.
In yet another aspect, embodiments herein also provide a computer-readable storage medium having stored thereon a computer program, which when executed by a processor of a computer device, performs the instructions of any one of the methods described above.
As can be seen from the technical solutions provided in the embodiments above, in the embodiments herein, after a plurality of geographic addresses are obtained by identifying a plurality of identification information, a plurality of scoring results are obtained by scoring the geographic addresses, and it is possible to determine the scoring results, if one geographic address with a higher scoring result exists in the scoring results, the geographic address may be used as a target geographic address, and if all the scoring results are lower, the geographic address originally recorded by the target network address may be used as the target geographic address. The accuracy of determining the target geographic address of the target network address is improved by the grading and address determining mode, and the service efficiency of a subsequent related application system depending on the network address library can be improved after the mapping relation in the original network address library is further updated.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for determining a network address repository provided in an embodiment of the present disclosure;
FIG. 2 illustrates a flow diagram for identifying multiple geographic addresses provided by embodiments herein;
fig. 3 shows a schematic flowchart of scoring provided by embodiments herein;
FIG. 4 illustrates a flow diagram for determining multiple geographic address weights provided by embodiments herein;
fig. 5 is another schematic flow chart illustrating a method for determining a network address repository provided in an embodiment of the present disclosure;
fig. 6 shows a schematic flow chart for obtaining multiple scoring results provided by embodiments herein;
fig. 7 is a schematic block diagram illustrating a module structure of a device for determining a network address repository according to an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of a computer device provided in an embodiment herein.
Description of the figures the symbols:
100. an acquisition module;
200. an identification module;
300. a scoring module;
400. a determination module;
802. a computer device;
804. a processor;
806. a memory;
808. a drive mechanism;
810. an input/output module;
812. an input device;
814. an output device;
816. a presentation device;
818. a graphical user interface;
820. a network interface;
822. a communication link;
824. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments herein without making any creative effort, shall fall within the scope of protection.
The network address library is a mapping relation library of network addresses and geographic addresses, and the geographic addresses are cities where intelligent service terminals such as servers are located. With the rapid development of the internet, more and more ownership persons expand or buy and sell the network addresses, and the expansion results in the increase of a plurality of network addresses with unknown geographic addresses, so that the network addresses in the original network address library are not comprehensive enough; the geographic address of the network address changes due to the business, so that the mapping relation in the original network address library is incorrect, which causes the service efficiency of the related application system depending on the network address library to be reduced.
In order to solve the above problem, embodiments herein provide a method for determining a network address repository. Fig. 1 is a schematic diagram of steps of a method for determining a network address repository provided in an embodiment of the present disclosure, and the present disclosure provides the method operation steps described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of sequences, and does not represent a unique order of performance. When an actual system or apparatus product executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures.
Referring to fig. 1, a method for determining a network address repository includes:
s101: a plurality of identification information of the target network address is obtained from a plurality of databases.
S102: a plurality of geographic addresses are identified from the plurality of identification information.
S103: and scoring the plurality of geographic addresses to obtain a plurality of scoring results.
S104: and determining the target geographic address of the target network address according to the plurality of grading results.
After the plurality of identification information are identified to obtain a plurality of geographic addresses, the geographic addresses are scored to obtain a plurality of scoring results, the scoring results can be judged, if one geographic address with a higher scoring result exists in the scoring results, the geographic address can be used as a target geographic address, and if the scoring results are all lower, the geographic address originally recorded by the target network address can be used as the target geographic address. The accuracy of determining the target geographic address of the target network address is improved by the grading and address-fixing mode, and the service efficiency of a subsequent related application system depending on the network address library can be improved after the mapping relation in the original network address library is updated.
The destination network address may be an IP address or a DNS address. Before step S101, the target network address needs to be acquired first. Specifically, the destination network address may be: deploying data packet capturing equipment on an internet gateway of a company or a key path of DNS request flow, capturing a DNS request data packet based on a UDP message interface, wherein the source address of the data packet is the DNS address; the method can also be implemented by: starting log analysis on a DNS (domain name server), and capturing a DNS request source address in log information, namely the DNS address; the method can also be realized by: a real-time or periodic DNS address provided in a request such as a DNS proxy service or a CDN resolution service provided by a third party.
In addition to this, a determination of the country to which the target network address belongs may be added. For example, we only identify The target network address of asia-pacific region, then can query The country to which The target network address belongs through The domain name address library issued by ICANN (The Internet Corporation for Assigned Names and Numbers, internet name and number assignment mechanism), determine whether The country is asia-pacific region, if The country belongs to asia-pacific region, then The following operation can be performed, if The country does not belong to asia-pacific region, then The target network address can be abandoned.
After the target network address is obtained, the target network address can be queried through a plurality of databases, wherein the plurality of databases comprise an RDAP database, a whois database, a BGP routing database table and the like. For example: the RDAP database may query a company address, a contact mailbox, a contact phone, etc. corresponding to the target network address, and may obtain a plurality of identification information of the target network address through querying of a plurality of databases, for example: corporate president, corporate address, contact mailbox, etc.
Referring to fig. 2, in this embodiment, the identifying a plurality of geographic addresses from the plurality of identification information includes:
s1021: and judging whether the identification information has an address mark or not.
S1022: and if the identification information contains an address mark, determining the geographic address corresponding to the target network address through the address mark.
S1023: and judging whether the identification information is associated information.
S1024: and if the identification information is the associated information, determining an associated database according to the associated information.
S1025: and determining the geographic address corresponding to the target network address according to the associated information and the corresponding associated database.
Step S1021 and step S1023 have no context and can be executed in parallel. The address mark is mark information capable of determining a geographic address, and the address mark may or may not be present in the identification information, for example: the address mark indicates Beijing or BJ indicates that the geographic address is Beijing, the address mark indicates the telephone area number 010 indicates that the geographic address is Beijing, when the identification information is the duration of the company's antique, the address mark indicates the beginning 110 of the identification number to indicate that the geographic address is Beijing, and if the identification information has the address mark, the geographic address corresponding to the target network address can be determined through the address mark. The association information is information that can be associated with other databases, for example: the identification information is a BGP autonomous domain system number 200, and the BGP autonomous domain system number may be associated with another database, and a contact means or a company address, etc., corresponding to the number may be found in the database by the BGP autonomous domain system number 200, and the corresponding BGP autonomous domain system number is the associated information.
And if the identification information is the association information, determining the association database through the association information. And determining a plurality of identification information according to the association information and the association database, and for the identification information, circularly executing S1021 to S1025 to further judge whether the identification information has an address mark and whether the identification information is the association information until the identification information is not the association information. At the moment, the data base A can be associated with the data base B and then associated with the data base C, if the geographic address is determined to be Beijing through the data base C, a data base query path A-B-C is formed, and if the geographic address is determined to be Shanghai through the data base A, the data base query path is A. Thus, for a target network address, there may be multiple database query paths, and multiple geographic addresses.
Referring to fig. 3, in this embodiment, the scoring the plurality of geographic addresses to obtain a plurality of scoring results includes:
s1031: and determining the weights of the plurality of geographic addresses according to the weights of the database and the associated database and database query paths corresponding to the plurality of geographic addresses of the target network address.
S1032: and scoring the plurality of geographic addresses according to the weights of the plurality of geographic addresses to obtain a plurality of scoring results.
Further, the method for determining the weight of the database and the associated database comprises the following steps:
determining the weight of the database according to the release mechanism and the release time corresponding to the database; wherein the issuing authority comprises a government agency, a standard-making authority and a third party authority.
And determining the weight of the associated database according to the release mechanism and the release time corresponding to the associated database.
Specifically, for the database and the associated database, the issuing organization of different databases and associated databases is different, and the issuing time is also different. The weight of the database may be determined specifically by: weighting a database of which the issuing organization is a government organization by a weight, a database of which the issuing organization is a standard establishing organization by a weight b, and a database of which the issuing organization is a third party organization by a weight c, wherein a is more than b and more than c; the database with the release time within one year is weighted to m, the database with the release time within one to three years is weighted to n, the database with the release time within three to five years is weighted to x, the database with the release time above five years is weighted to y, wherein m is more than n and x is more than y. Assuming that the issuing agency of a certain database is a government agency, and the issuing time is within one year, the weight of the database is a × m.
Referring to fig. 4, further, the determining weights of a plurality of geographic addresses according to the weights of the database and the associated database and the database query paths corresponding to the plurality of geographic addresses of the target network address includes:
s1031a: and according to the database query path of any geographic address, carrying out weight summation on the database and the associated database passing through the database query path.
S1031b: and dividing the sum result by the number of all the databases and the associated databases passing through the database query path to obtain the weight value.
S1031c: and taking the weight value as the weight of the corresponding geographic address.
Specifically, after the weight of the database and the associated database and the database query path corresponding to the plurality of geographic addresses are known, the weight of the corresponding geographic address can be determined in the following manner: suppose that the target network address has three database query paths, A, B and A-B-C, respectively, where the geographic addresses corresponding to A and A-B-C are both Beijing and B is the geographic address corresponding to BIs Shanghai. The weight of the database A is Q, the weight of the database B is P, the weight of the database C is U, and the weights corresponding to the three database query paths are Q, P,
Figure BDA0003057556400000081
For Beijing, the weights include Q and
Figure BDA0003057556400000082
for Shanghai, the weight is P.
Referring to fig. 5, in this embodiment, further includes:
s201: and determining a correction coefficient corresponding to the geographic address according to the number of all the databases and the associated databases passing through the database query path.
S202: and correcting the weight of the corresponding geographic address through the correction coefficient.
Specifically, the total number may be set as the sum of the numbers of the databases and the associated databases, the correction coefficient decreases with the increase of the total number, and the boundary decreasing effect is met, so that the correction coefficient is 1 when the total number is 1, the correction coefficient is 0.95 when the total number is 2, and the correction coefficient is 0.9 … … when the total number is 3. For the above-mentioned geographic address Beijing, the total number corresponding to the weight Q is 1, the correction coefficient is 1, Q × 1 during correction, Q remains after correction, and the weight Q remains
Figure BDA0003057556400000091
Corresponding to a total number of 3, a correction factor of 0.9, corrected by
Figure BDA0003057556400000092
The corrected value is (Q + P + U) × 0.3, and for the geographic address of shanghai, the total number corresponding to the weight P is 1, the correction coefficient is 1, and the corrected value is P × 1, and is still P after correction. Because the reliability is reduced due to the fact that information distortion is easy to occur in the searching process of the associated database, the accuracy in the geographic address calculation process can be improved through the correction step, and the final target geographic address is improvedThe accuracy of the address determination.
Referring to fig. 6, in this embodiment, the scoring the multiple geographic addresses according to the weights of the multiple geographic addresses to obtain multiple scoring results includes:
s1032a: and carrying out weight summation on the same geographic address in the target network address to obtain the weight sum of the corresponding geographic address.
S1032b: and carrying out weight summation on all the geographic addresses in the target network address to obtain the total weight of the corresponding target network address.
S1032c: and dividing the weighted sum by the total weight to obtain a scoring result of the corresponding geographic address.
In particular, according to the above example, the geographic address may be Beijing or Shanghai for the same target network address. For the geographic address Beijing, the weight sum of Beijing is Q + (Q + P + U) multiplied by 0.3, and for the geographic address Shanghai, the weight sum of Shanghai is P. The total weight of the target network address is Q + (Q + P + U) x 0.3+ P, wherein the scoring result of Beijing is as follows:
Figure BDA0003057556400000093
the results of the Shanghai scoring are:
Figure BDA0003057556400000094
further, the determining the target geographic address of the target network address according to the plurality of scoring results specifically includes: and judging whether any scoring result in the plurality of scoring results is larger than D1, if any scoring result is larger than or equal to D1, the geographic address corresponding to the scoring result is the target geographic address. If all the scoring results are smaller than D1, whether the original physical address of the target network address corresponds to the scoring result or not is judged, and the scoring result is larger than or equal to D2, and if the original physical address corresponds to the scoring result and the scoring result is larger than D2, the original physical address is the target geographic address. If all the scoring results are smaller than D1, and the original physical address of the target network address does not have a corresponding scoring result, or all the scoring results are smaller than D1, and the scoring result corresponding to the original physical address of the target network address is smaller than D2, whether the highest scoring result in the scoring results is larger than D3 is judged, and if the highest scoring result in the scoring results is larger than D3, the geographic address corresponding to the scoring result is the target geographic address. Wherein D1 is at least 50% and both D2 and D3 are less than D1.
The following examples: assuming that D1 is 50%, D2 is 40%, and D3 is 30%, for a certain target network address, if the rating result of the geographic address of beijing is 60%, and the rating result of the geographic address of shanghai is 40%, the target geographic address of the target network address is beijing. If the original network address library records that the original physical address is Guangzhou, the scoring result of the geographic address Beijing is 30%, the scoring result of the geographic address Shanghai is 30%, and the scoring result of the geographic address of Guangzhou is 40%, the target geographic address of the target network address is Guangzhou. If the original network address library records that the original physical address is Guangzhou, the scoring result of the geographic address is Beijing is 45%, the scoring result of the geographic address is 25% in Shanghai, and the scoring result of the geographic address is 30% in Guangzhou, the target geographic address of the target network address is Beijing.
Based on the foregoing method for determining a network address repository, an embodiment herein further provides a device for determining a network address repository. The apparatus may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that employ the methods described herein in embodiments, in conjunction with any necessary apparatus to implement the hardware. Based on the same innovative concepts, embodiments herein provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present disclosure may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 7 is a schematic block structure diagram of an embodiment of a device for determining a network address base, provided in an embodiment of the present disclosure, and referring to fig. 7, the device for determining a network address base provided in an embodiment of the present disclosure includes: the system comprises an acquisition module 100, a recognition module 200, a scoring module 300 and a determination module 400.
The acquisition module 100: the method includes obtaining a plurality of identification information of a target network address from a plurality of databases.
The identification module 200: for identifying a plurality of geographic addresses from the plurality of identification information.
The scoring module 300: the system is used for scoring the plurality of geographic addresses to obtain a plurality of scoring results.
The determination module 400: and determining the target geographic address of the target network address according to the plurality of grading results.
In an embodiment herein, referring to fig. 8, there is also provided a computer device 802. Computer device 802 may include one or more processors 804, such as one or more Central Processing Units (CPUs) or Graphics Processors (GPUs), each of which may implement one or more hardware threads. The computer device 802 may also include any memory 806 for storing any kind of information, such as code, settings, data, etc., and in a particular embodiment a computer program on the memory 806 and executable on the processor 804, which computer program when executed by the processor 804 may perform instructions according to the above-described method. For example, and without limitation, memory 806 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent fixed or removable components of computer device 802. In one case, when the processor 804 executes the associated instructions, which are stored in any memory or combination of memories, the computer device 802 can perform any of the operations of the associated instructions. The computer device 802 also includes one or more drive mechanisms 808, such as a hard disk drive mechanism, an optical disk drive mechanism, etc., for interacting with any memory.
Computer device 802 may also include an input/output module 810 (I/O) for receiving various inputs (via input device 812) and for providing various outputs (via output device 814). One particular output mechanism may include a presentation device 816 and an associated graphical user interface 818 (GUI). In other embodiments, input/output module 810 (I/O), input device 812, and output device 814 may also be excluded, as just one computer device in a network. Computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communication buses 824 couple the above-described components together.
Communication link 822 may be implemented in any manner, such as over a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
Corresponding to the methods in fig. 1-6, the embodiments herein also provide a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, performs the steps of the above-described method.
Embodiments herein also provide computer readable instructions, wherein when executed by a processor, a program thereof causes the processor to perform the method as shown in fig. 1-6.
It should be understood that, in various embodiments herein, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments herein.
It should also be understood that, in the embodiments herein, the term "and/or" is only one kind of association relation describing an associated object, meaning that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided herein, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments herein.
In addition, functional units in the embodiments herein may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present invention may be implemented in a form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. 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 other various media capable of storing program codes.
The principles and embodiments of this document are explained herein using specific examples, which are presented only to aid in understanding the methods and their core concepts; meanwhile, for a person skilled in the art, according to the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

Claims (9)

1. A method for determining a network address repository, comprising:
acquiring a plurality of identification information of a target network address from a plurality of databases;
identifying a plurality of geographic addresses from the plurality of identification information by performing S1-S5 as follows:
s1: judging whether the identification information has an address mark or not;
s2: if the identification information has an address mark, determining a geographic address corresponding to the target network address through the address mark;
s3: judging whether the identification information is associated information;
s4: if the identification information is the associated information, determining an associated database through the associated information;
s5: determining a plurality of identification information according to the association information and a corresponding association database, and executing the steps S1-S5 in a circulating mode for the plurality of identification information until the identification information is not the association information; determining a plurality of database query paths corresponding to the target network address and a plurality of geographic addresses;
scoring the plurality of geographic addresses to obtain a plurality of scoring results;
and determining the target geographic address of the target network address according to the plurality of grading results.
2. The method for determining the network address repository according to claim 1, wherein the scoring the plurality of geographic addresses to obtain a plurality of scoring results comprises:
determining the weights of a plurality of geographic addresses according to the weights of a database and an associated database and database query paths corresponding to the plurality of geographic addresses of the target network address;
and scoring the plurality of geographic addresses according to the weights of the plurality of geographic addresses to obtain a plurality of scoring results.
3. The method for determining the network address base according to claim 2, wherein the method for determining the weight of the database and the associated database comprises:
determining the weight of the database according to the corresponding issuing mechanism and issuing time of the database; wherein the issuing authority comprises a government agency, a standard making authority and a third party authority;
and determining the weight of the associated database according to the release mechanism and the release time corresponding to the associated database.
4. The method according to claim 3, wherein the determining weights of the plurality of geographic addresses according to the weights of the database and the associated database and the database query paths corresponding to the plurality of geographic addresses of the target network address comprises:
according to the database query path of any geographic address, carrying out weight summation on the database and the associated database passing through the database query path;
dividing the sum result by the number of all the databases and the associated databases passing through the database query path to obtain a weight value;
and taking the weight value as the weight of the corresponding geographic address.
5. The method for determining the network address repository according to claim 4, further comprising:
determining a correction coefficient corresponding to the geographic address according to the number of all the databases and the associated databases passing through the database query path;
and correcting the weight of the corresponding geographic address through the correction coefficient.
6. The method according to claim 4, wherein the scoring the plurality of geographic addresses according to the weights of the plurality of geographic addresses to obtain a plurality of scoring results comprises:
carrying out weight summation on the same geographic address in the target network address to obtain the weight sum of the corresponding geographic address;
carrying out weight summation on all geographic addresses in the target network address to obtain the total weight of the corresponding target network address;
and dividing the weighted sum by the total weight to obtain a scoring result of the corresponding geographic address.
7. An apparatus for determining a network address repository, the apparatus comprising:
an acquisition module: a plurality of identification information for obtaining a target network address from a plurality of databases;
an identification module: a step for executing the following steps S1-S5 to identify a plurality of geographic addresses from the plurality of identification information;
s1: judging whether the identification information has an address mark or not;
s2: if the identification information has an address mark, determining a geographic address corresponding to the target network address through the address mark;
s3: judging whether the identification information is associated information;
s4: if the identification information is the associated information, determining an associated database through the associated information;
s5: determining a plurality of identification information according to the association information and a corresponding association database, and executing the steps S1-S5 in a circulating mode for the plurality of identification information until the identification information is not the association information; determining a plurality of database query paths corresponding to the target network address and a plurality of geographic addresses;
a scoring module: the system is used for scoring the plurality of geographic addresses to obtain a plurality of scoring results;
a determination module: and determining the target geographic address of the target network address according to the plurality of grading results.
8. A computer arrangement comprising a memory, a processor, and a computer program stored on the memory, characterized in that the computer program, when executed by the processor, executes the instructions of the method according to any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor of a computer device, is adapted to carry out the instructions of the method according to any one of claims 1-6.
CN202110503927.7A 2021-05-10 2021-05-10 Method, device, equipment and storage medium for determining network address library Active CN113242330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110503927.7A CN113242330B (en) 2021-05-10 2021-05-10 Method, device, equipment and storage medium for determining network address library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110503927.7A CN113242330B (en) 2021-05-10 2021-05-10 Method, device, equipment and storage medium for determining network address library

Publications (2)

Publication Number Publication Date
CN113242330A CN113242330A (en) 2021-08-10
CN113242330B true CN113242330B (en) 2022-11-04

Family

ID=77132827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110503927.7A Active CN113242330B (en) 2021-05-10 2021-05-10 Method, device, equipment and storage medium for determining network address library

Country Status (1)

Country Link
CN (1) CN113242330B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009049279A2 (en) * 2007-10-12 2009-04-16 Microsoft Corporation Mapping network addresses to geographical locations
CN104168341A (en) * 2014-08-15 2014-11-26 北京百度网讯科技有限公司 IP address locating method and CDN dispatching method and device
CN105491172A (en) * 2014-09-17 2016-04-13 阿里巴巴集团控股有限公司 Method and device for determining attribution location information of network address
CN112543926A (en) * 2018-07-30 2021-03-23 脸谱公司 Determining a geographic location of a network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009049279A2 (en) * 2007-10-12 2009-04-16 Microsoft Corporation Mapping network addresses to geographical locations
CN104168341A (en) * 2014-08-15 2014-11-26 北京百度网讯科技有限公司 IP address locating method and CDN dispatching method and device
CN105491172A (en) * 2014-09-17 2016-04-13 阿里巴巴集团控股有限公司 Method and device for determining attribution location information of network address
CN112543926A (en) * 2018-07-30 2021-03-23 脸谱公司 Determining a geographic location of a network device

Also Published As

Publication number Publication date
CN113242330A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
US10459899B1 (en) Splitting database partitions
CN112347377B (en) IP address field searching method, service scheduling method, device and electronic equipment
CN106649708A (en) Method and device for storing data
CN109377383A (en) Product data synchronous method, device, computer equipment and storage medium
KR20120046114A (en) Characterizing unregistered domain names
US9075836B2 (en) Partitioning keys for hash tables
CN110213365B (en) User access request processing method based on user partition and electronic equipment
CN116233064B (en) Information determination method, device, equipment and computer readable storage medium
CN113268550A (en) Method and system for scheduling autonomous domain system, electronic device and storage medium
CN115037720A (en) Method and device for processing domain name resolution request, electronic equipment and storage medium
CN105227386A (en) For method, the Apparatus and system of point population statistics online user number
CN113242330B (en) Method, device, equipment and storage medium for determining network address library
CN105554181A (en) DNS log compression method and device
US11531706B2 (en) Graph search using index vertices
CN115022289B (en) Method, device, equipment and storage medium for detecting continuously available IP addresses
CN113055420A (en) HTTPS service identification method and device and computing equipment
CN112532414B (en) Method, device, equipment and computer storage medium for determining ISP attribution
CN112261134B (en) Network data access auditing method, device, equipment and storage medium
CN114615015A (en) Method, device, equipment and medium for determining repair priority of service system
CN111106980B (en) Bandwidth binding detection method and device
CN114448822A (en) Node detection data representation method and device, electronic equipment and storage medium
CN113282347A (en) Plug-in operation method, device, equipment and storage medium
CN113949690A (en) IPv6 seed address sampling method, device, equipment and storage medium
CN110598072A (en) Feature data aggregation method and device
CN113065078B (en) Statistical analysis method for simulating user behavior to dial and test multistage domain names of WEB sites

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