WO2015070788A1 - 一种识别ip地址的区域归属地信息的方法和装置 - Google Patents

一种识别ip地址的区域归属地信息的方法和装置 Download PDF

Info

Publication number
WO2015070788A1
WO2015070788A1 PCT/CN2014/091085 CN2014091085W WO2015070788A1 WO 2015070788 A1 WO2015070788 A1 WO 2015070788A1 CN 2014091085 W CN2014091085 W CN 2014091085W WO 2015070788 A1 WO2015070788 A1 WO 2015070788A1
Authority
WO
WIPO (PCT)
Prior art keywords
string
address
attribution information
digit
interval
Prior art date
Application number
PCT/CN2014/091085
Other languages
English (en)
French (fr)
Inventor
张涛
郭宁
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2015070788A1 publication Critical patent/WO2015070788A1/zh

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/5007Internet protocol [IP] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • 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/10Mapping addresses of different types
    • 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

Definitions

  • the present invention relates to the field of Internet technologies, and more particularly to a method and apparatus for identifying area attribution information of an IP address.
  • IP Internet Protocol
  • an advertiser placing an advertisement in an advertisement system specifies that the advertisement is only served in a specific area, for example, only in Beijing, when the system displays an advertisement to a user, and needs to pass his IP address. Determine if he is a Beijing user, and if so, advertise it; if not, do not. Since the advertising system needs to process a large number of user requests in a short time, the IP home address recognition system requires high efficiency.
  • the present invention proposes an innovative method to implement fast query of regional attribution information for an IP address, thereby improving the processing speed of the system.
  • the present invention has been made to provide an area attribution information for identifying an IP address.
  • the method and device reduce the computation and complexity in the process, improve the accuracy and time efficiency, and expand the application range.
  • the present invention provides a method for identifying area attribution information of an IP address, comprising: acquiring an IP address of a user; converting the IP address into a numeric string of a specific hexadecimal number; a string of numbers, querying a pre-established lookup table to determine a numeric string interval to which the digit string belongs, wherein the lookup table includes one or more numeric string intervals, and each digit string interval is associated with an IP address of a particular region
  • the area attribution information corresponds to; and determining the area attribution information of the IP address based on the digital string interval to which the digital string belongs.
  • the present invention further provides an apparatus for identifying area attribution information of an IP address, comprising: an obtaining module configured to acquire an IP address of a user; and a conversion module configured to convert the IP address into a specific hexadecimal a string of digits; a query module configured to query a pre-established lookup table to determine a numeric string interval to which the digit string belongs based on the digit string of the particular hexadecimal number, wherein the lookup table includes one or more numeric strings An interval, and each of the digital string intervals corresponds to the area attribution information of the IP address of the specific area; and the determining module is configured to determine the area attribution information of the IP address based on the digital string interval to which the digital string belongs .
  • the technical solution of the present invention can convert an IP address into a key (a numeric string) of a lookup table by using a simple mathematical operation, thereby improving recognition efficiency.
  • (2) and the conversion process can guarantee the uniqueness of the converted key (numeric string) when the number of IP addresses is large, and there is no case where different IP addresses are recognized as the same string; and (3) For a specific area, when it has multiple IP addresses, it can be merged, thereby reducing the number of keys (numeric strings) in the lookup table, increasing the query speed and reducing the storage amount.
  • FIG. 1 is a flowchart of a method for identifying area attribution information of an IP address according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a method of establishing a lookup table in accordance with an embodiment of the present invention
  • FIG. 3 is a schematic diagram for explaining a correspondence relationship between a digital string section and area attribution information
  • FIG. 4 is a structural diagram of an apparatus for identifying area attribution information of an IP address according to an embodiment of the present invention.
  • Figure 5 shows a block diagram of a terminal device for performing the method according to the invention
  • Figure 6 shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • One of the main ideas of the present invention is to query a pre-established lookup table to determine the number of the digital string to which the digital string belongs by converting the IP address into a numeric string of a specific hexadecimal number; a digital string interval; and determining area attribution information of the IP address based on the digital string interval to which the digital string belongs.
  • IP mapping dictionary of the detailed address.
  • the specific examples are as follows: IP: 123.0.0.1 province: Beijing: Beijing District: Chaoyang Address: Electronic Technology Building, No. 6 Jiuxianqiao Road.
  • Each IP is then considered to be a combination of a series of symbols.
  • 123.0.0.1 can be understood as a combination of nine symbols of 1, 2, 3, ., 0, ., 0, .
  • a number of methods can be used to build the query dictionary.
  • the nine symbols "123.0.0.1" are utilized by a specific algorithm, such as the md5 algorithm (Message-Digest Algorithm 5), and the hash algorithm. Etc., converted to a string of a certain length; the string is used as the key of the dictionary, the corresponding details (province: Beijing: Beijing District: Chaoyang Address: No. 6 Jiuxianqiao Road, Electronic Technology Building) as a dictionary Value, create a query dictionary. Finally, when an actual user's IP is accessed, the system first converts the IP into a string of a certain length by using a dictionary key algorithm, and then obtains the actual address of the actual user IP through the query in the dictionary, and then returns. To the visitor.
  • a specific algorithm such as the md5 algorithm (Message-Digest Algorithm 5), and the hash algorithm.
  • Etc. converted to a string of a certain length; the string is used as the key of the dictionary, the corresponding details (province: Beijing
  • FIG. 1 is a flowchart of a method for identifying area attribution information of an IP address according to an embodiment of the present invention.
  • the IP address of the user is acquired.
  • the IP address of the user is obtained. For example, for example When a user opens a website to browse, the user's IP address is obtained through a server operation.
  • the IP address is converted into a numeric string of a specific hexadecimal number.
  • the IP address needs to be converted to obtain a numeric string of a specific hexadecimal number.
  • the IP address can be converted to a twelve-digit string of decimal numbers.
  • the obtained user's IP address is IP: 123.0.0.2, and the IP is converted to a 12-bit integer in decimal. For example, 123.0.0.2 is converted to 123000000002.
  • step S130 based on the digit string of the specific hexadecimal, query a pre-established query table to determine a numeric string interval to which the digit string belongs, wherein the lookup table contains one or more numeric string intervals, and each The digital string interval corresponds to the area attribution information of the IP address of a specific area.
  • the lookup table includes a plurality of numeric string intervals:
  • the first two digit string intervals correspond to the regional attribution information of Beijing's IP address - Beijing; the third digit string interval and the regional attribution information of Shanghai's IP address - Shanghai phase Correspondence; the fourth digit string interval corresponds to the regional attribution information of the IP address of Guangzhou City - Guangzhou City.
  • each digit string interval can be defined by a maximum number string and a minimum number string at both ends of the digit string interval.
  • the third numeric string interval contains a numeric string between [125000000006, 125000000002], which is defined by the largest numeric string 125000000006 and the smallest numeric string 125000000002 at both ends of the numeric string interval.
  • the lookup table can be searched based on the numeric string of the specific hexadecimal to determine
  • the numeric string of a specific hexadecimal is the nearest largest string of digits.
  • the digit string of the specific hexadecimal may be compared with the largest digit string of each digit string interval in the lookup table to determine the largest digit string closest to the digit string of the particular hexadecimal number.
  • the digit string converted by the user's IP address is 123000000002
  • the lookup query table determines that the largest digit string closest to the digit string is 123000000004.
  • a numeric string 123000000002 corresponding to the user's IP address can be compared to the smallest digit string 123000000001 of the numeric string interval to determine if it is less than the smallest digit string of the numeric string interval.
  • the present invention is not limited thereto, but any other suitable method may be employed to determine whether the digital string is greater than the smallest number string of the digital string interval.
  • the digit string of the specific hexadecimal is greater than the smallest digit string of the digit string interval, it is determined that the digit string of the specific hexadecimal belongs to the digit string interval.
  • numeric string 123000000002 corresponding to the user's IP address is greater than the smallest numeric string 123000000001 of the numeric string interval. Therefore, it is determined that the numeric string 123000000002 belongs to the numeric string interval [123000000004, 123000000001].
  • step S140 the area attribution information of the IP address is determined based on the digital string interval to which the digital string belongs.
  • the area attribution information corresponding to the digital string interval is obtained, and then the area attribution information is determined as the area attribution information of the IP address.
  • the regional attribution information corresponding to the digital string interval [123000000004, 123000000001] is Beijing. Then, the attribution information of the area - Beijing is determined as the user's IP address Area attribution information of 123.0.0.2.
  • FIG. 2 there is shown a flow diagram of a method of establishing a lookup table in accordance with an embodiment of the present invention.
  • the IP addresses in the database are individually converted into corresponding digital strings of the specific hexadecimal number, wherein the database includes the IP address, the attribution information of the IP address, and the The correspondence between the IP address and the attribution information of the IP address.
  • the IP addresses in the database are individually converted into corresponding digital strings of the specific hexadecimal. For example, in one embodiment of the invention, it is converted to a twelve-digit string of decimal numbers.
  • an IP address in the database is 123.0.0.1
  • the attribution information of the IP address is: "Province: Beijing: Beijing District: Chaoyang Address: No. 6 Jiuxianqiao Road Electronic Technology Building", and the IP address Corresponds to the information of the attribution.
  • the IP address 123.0.0.1 is converted to a decimal twelve-digit string 123000000001.
  • all IP addresses in the database are converted to numeric strings.
  • step S220 based on the area attribution information defined by the predetermined area division rule and based on the attribution information of the IP address, the digital string of the specific hexadecimal corresponding to the IP address is mapped to the area attribution information.
  • the predetermined area division rule may be, for example, a level at which the city is a regional division rule, and the area attribution information is defined. That is to say, Beijing is a regional attribution information, Shanghai is another regional attribution information, other cities are similarly divided, and then IP based on the attribution information of the region and based on the IP address attribution information. The numeric string of the specific hexadecimal corresponding to the address is mapped to the area attribution information.
  • the above example is taken, for example, the following string corresponding to the IP address: 123000000004, 123000000002, 123000000001, 124000000003, 124000000001, 125000000006, 125000000005, 125000000002, 126000000010, 126000000009, 126000000008, 126000000001.
  • the attribution information of the 1-5th digit string corresponds to the north
  • the attribution information of Beijing City and the 6th-8th digit string corresponds to Shanghai
  • the attribution information of the 9th-12th digit string corresponds to Guangzhou City.
  • IP address the attribution information
  • regional attribution information may all contain a larger number.
  • mapping the 1-5th digit string to the regional attribution information - Beijing mapping the 6-8th digit string to Regional attribution information - Shanghai, and mapping the 9-12th digit string to the regional attribution information - Guangzhou City.
  • the area attribution information of the present invention is not limited thereto, and any other level of area may also be employed as the area division rule to define other levels of area attribution information.
  • the regional classification information may be classified by the level of the regional division rule in the regions of North China, South China, Northeast China, Northwest China, Southwest China, and East China.
  • one or more digital string intervals corresponding to the region attribution information are formed by the digital string mapped to each region attribution information, wherein each digital string interval utilizes both ends of the digital string interval
  • the maximum number string and the smallest number string are defined.
  • the 1-5th digit string mapped to the Beijing area attribution information forms two digital string intervals [123000000004, 123000000001] and [124000000003, 124000000001], and the sixth map mapped to the Shanghai area attribution information.
  • the -8-digit string forms a numeric string interval [125000000006, 125000000002]
  • the 9th-12th digit string mapped to the Guangzhou regional attribution information forms a numeric string interval [126000000010, 126000000001].
  • each area attribution information may correspond to one or more numeric string intervals.
  • the number of digital string intervals formed by the digit strings corresponding to the same region attribution information is not only the above-described digital interval, and the present invention is not limited thereto. According to the present invention, how many digital string intervals formed by the digital strings corresponding to the same area attribution information can be appropriately adjusted according to actual conditions or in an optimized manner.
  • step S240 based on the correspondence between the digital string interval and the region attribution information, Establish the lookup table.
  • all the obtained digital string intervals are associated with the area attribution information, and a lookup table is established based on their correspondence.
  • FIG. 4 is a structural diagram of an apparatus 400 for identifying area attribution information of an IP address according to an embodiment of the present invention.
  • the apparatus may include an acquisition module 410, a conversion module 420, a query module 430, and a determination module 440.
  • the obtaining module 410 can be configured to acquire an IP address of the user.
  • the conversion module 420 can be configured to convert the IP address to a numeric string of a particular hexadecimal number.
  • the query module 430 can be configured to query a pre-established lookup table to determine a numeric string interval to which the numeric string belongs based on the numeric string of the specific hexadecimal number, wherein the lookup table includes one or more numeric string intervals, and Each digit string interval corresponds to the area attribution information of the IP address of a specific area.
  • the determining module 440 can be configured to determine regional attribution information of the IP address based on a numeric string interval to which the digital string belongs.
  • the conversion module 420 is configured to convert the IP address into a decimal twelve-digit string.
  • the digital string interval is defined by a maximum number string and a minimum number string at both ends of the digit string interval.
  • the query module 430 may include: a comparison submodule configured to compare the digit string of the specific hexadecimal with a maximum digit string of each digit string interval in the lookup table to determine The numeric string of a specific hexadecimal is the nearest largest string of digits.
  • the query module 430 may include a lookup submodule configured to search the lookup table to determine a maximum number closest to the digit string of the specific hexadecimal number based on the digit string of the specific hexadecimal number.
  • a first determining submodule configured to determine that the largest digital string belongs to a numeric string interval; a determining submodule configured to determine whether the digit string of the specific hexadecimal number is greater than a minimum number string of the digit string interval; and a second determining submodule configured to be greater than the digit string of the specific hexadecimal number When the digit string is the smallest digit string, it is determined that the digit string of the specific hexadecimal belongs to the digit string interval.
  • the determining module 440 may include: an obtaining submodule configured to acquire area attribution information corresponding thereto according to the digital string interval to which the digital string belongs; and a determining submodule configured to: The area attribution information is determined as the area attribution information of the IP address.
  • the pre-established lookup table is pre-established by the following sub-module in the conversion module: a conversion sub-module configured to convert each IP address in the database into the corresponding specific hexadecimal a string of digits, wherein the database includes an IP address, a home location information of the IP address, and a correspondence between the two; and a mapping sub-module configured to be based on the region attribution information defined by the predetermined area division rule and based on the IP address
  • the attribution information maps the digit string of the specific hexadecimal number corresponding to the IP address to the area attribution information; and forms a sub-module configured to form a digital string corresponding to the attribution information of each area to correspond to the attribution information of the area
  • One or more digit string intervals wherein each digit string interval is defined by a maximum number string and a minimum number string at both ends of the digit string interval; a sub-module is established, configured to be based on a correspondence between the
  • the above-described means for identifying the area attribution information of the IP address corresponds to the previously described method of identifying the area attribution information of the IP address, and therefore, for more detailed technical details, reference may be made to the previously described method.
  • modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment.
  • the modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined.
  • Each feature disclosed in this specification may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components loaded with the ordered web address in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the present invention may be stored on a computer readable medium or may have one or more The form of the signal.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 5 illustrates a terminal device that can implement a user interface implementation method in accordance with the present invention.
  • the terminal device conventionally includes a processor 510 and a program product or readable medium in the form of a memory 520.
  • Memory 520 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, or ROM.
  • Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
  • storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • These program codes can be read from or written to one or more program products.
  • These program products include program code carriers such as memory cards.
  • Such a program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 520 in the terminal device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes readable code 531', ie, code that can be read by a processor, such as 510, that when executed by the terminal device causes the terminal device to perform various steps in the methods described above .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种识别IP地址的区域归属地信息的方法和装置,获取用户的IP地址;将所述IP地址转换成特定进制的数字串;基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应;以及基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。通过简单的方法对海量IP地址进行转换从而能够将快速有效地确定与IP地址相对应的区域归属地信息,降低了运算量和运算复杂度,提高了查询IP地址的区域归属地信息的速度和准确度。

Description

一种识别IP地址的区域归属地信息的方法和装置 技术领域
本发明涉及互联网技术领域,更具体地涉及一种识别IP地址的区域归属地信息的方法和装置。
背景技术
在互联网应用中,对于IP(Internet Protocol,网络互连协议)归属地址识别有着许多的实际应用。例如在天气预报系统中,天气发布者在天气预报系统中预报天气,例如可以指定只在某个特定的区域自动推送该区域的天气预报,例如针对北京自动推送北京的天气预报,则当系统对一个用户显示天气预报时需要通过他的IP地址确定他是否是北京用户,如果是,则显示北京的天气预报;如果不是,则不显示。再例如,在广告系统中,广告主在广告系统中投放广告,会指定只在某个特定的区域进行投放,例如只在北京投放,则当系统对一个用户展示广告时需要通过他的IP地址确定他是否是北京用户,如果是,则投放广告;如果不是,则不投放。由于广告系统需要在短时间内处理大量的用户请求,所以IP归属地址识别系统需要很高的效率。
综上所述,为了进一步提高IP归属地查询的效率,本发明提出利用一种创新的方法来实现针对IP地址的区域性的归属地信息的快速查询,从而提升系统的处理速度。
发明内容
鉴于上述问题,提出了本发明以提供一种识别IP地址的区域归属地信息 的方法和装置,以在的过程中,降低运算量和复杂度,提高准确率和时间效率,扩大应用范围。
为了解决上述技术问题,本发明的目的是通过以下技术方案实现:
本发明提供了一种识别IP地址的区域归属地信息的方法,其特征在于,包括:获取用户的IP地址;将所述IP地址转换成特定进制的数字串;基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应;以及基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
本发明还提供了一种识别IP地址的区域归属地信息的装置,其特征在于,包括:获取模块,配置为获取用户的IP地址;转换模块,配置为将所述IP地址转换成特定进制的数字串;查询模块,配置为基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应;以及确定模块,配置为基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
与现有技术相比,根据本发明的技术方案存在以下有益效果:(1)本发明的技术方案能够利用简单的数学运算将IP地址转换为查询表的键(数字串),从而提高识别效率;(2)并且该转换处理能够在IP地址数量巨大时也保证转换后的键(数字串)的唯一性,不会出现不同的IP地址被识别为同一个字符串的情形;并且(3)对某个特定的区域,当它有多个IP地址的时候,可以合并,从而减少查询表内的键(数字串)的数量,提高查询速度,降低存储量。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅配置为示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1是根据本发明一实施例的识别IP地址的区域归属地信息的方法的流程图;
图2是根据本发明一实施例的建立查询表的方法的流程图;
图3是用于说明数字串区间与区域归属地信息的对应关系的示意图;
图4是根据本发明一实施例的识别IP地址的区域归属地信息的装置的结构图;
图5示出了用于执行根据本发明的方法的终端设备的框图;以及
图6示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本发明的主要思想之一在于,通过将所述IP地址转换成特定进制的数字串;以所述特定进制的数字串为基础,查询预先建立的查询表以确定所述数字串所属的数字串区间;并基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明具体实施例及相应的附图对本发明技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中 的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在一个实现方式中,例如可以通过如下方法确定IP地址的详细归属地信息。首先,搜集详细地址的IP映射字典,具体例子如下:IP:123.0.0.1省:北京市:北京区:朝阳地址:酒仙桥路6号院电子科技大厦。然后将每个IP认为是一系列符号的组合,例如:123.0.0.1可以理解为1,2,3,.,0,.,0,.,1这九个符号的组合。再次,可以利用多种方法建立查询字典,例如:将“123.0.0.1”这九个符号利用一个特定的算法,例如md5算法(Message-Digest Algorithm5,信息摘要算法5),hash(哈希)算法等,转化为某个特定长度的字符串;将该字符串作为字典的key,对应的详细内容(省:北京 市:北京 区:朝阳 地址:酒仙桥路6号院电子科技大厦)作为字典的value,建立一个查询字典。最后,当某个实际用户的IP访问时,系统首先利用建立字典key的算法将IP转化为某个特定长度的字符串,再通过在字典中的查询得到这个实际用户IP的实际地址,再返回给访问方。
但是,该实现方式存在如下缺点:
(1)现有技术通过现有的一些方法将IP转化为字符串,但是往往转化的方法不是简单的数学运算,在转化过程中会存在一定的效率损耗。
(2)在实际运用中,往往某个特定地址有多个IP,这样就需要对每个IP进行字典key的建立,增加了字典key的数量,导致实际查询速度变慢(任何查询方法的速度都是与字典的key的数量成正比的,字典的key的数量越多,查询速度越慢)。
(3)将IP地址转化为字符串需要保证唯一性,现有技术中使用的转化方法在IP数据巨大时有可能不能保证唯一性,从而导致不同的IP被转化成了同一个字符串,这将导致系统识别错误,无法保证系统的正确识别。
下面将参考附图,详细描述本发明改进的技术方案。
如图1所示,图1是根据本发明一实施例的识别IP地址的区域归属地信息的方法的流程图。
在步骤S110处,获取用户的IP地址。
具体而言,在业务应用中,获取用户的IP地址。举例来说,例如一个用 户打开一个网站进行浏览,则通过服务器操作获取用户的IP地址。
在步骤S120处,将所述IP地址转换成特定进制的数字串。
具体而言,获取到用户的IP地址后,需要将IP地址进行转换以获得特定进制的数字串。可选地,在本发明的一个实施例中,可以将IP地址转换成十进制的十二位数字串。
例如,获取到的用户的IP地址为IP:123.0.0.2,按十进制将IP转换成为12位的整数,举例:123.0.0.2转换为123000000002。
应该理解,本发明不限于此,而是还可以采用其他任何合适的进制来将每个IP转化成为一个数字。
接下来,在步骤S130处,基于该特定进制的数字串,查询预先建立的查询表以确定该数字串所属的数字串区间,其中,查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应。
具体而言,例如如图3所示,查询表包含多个数字串区间:
[123000000004,123000000001]
[124000000003,124000000001]
[125000000006,125000000002]
[126000000010,126000000001]等等。
其中,例如,前两个数字串区间与北京市的IP地址的区域归属地信息——北京市相对应;第三个数字串区间与上海市的IP地址的区域归属地信息——上海市相对应;第四个数字串区间与广州市的IP地址的区域归属地信息——广州市相对应。
可选地,每个数字串区间可以通过数字串区间两端的最大数字串和最小数字串来定义。例如第三个数字串区间包含在[125000000006,125000000002]之间的数字串,其由该数字串区间两端的最大数字串125000000006和最小数字串125000000002来定义。
在了解了数字串区间的含义之后,接下来具体描述基于所述特定进制的数字串来查询预先建立的查询表以确定该数字串所属的数字串区间的过程。
首先,可以基于所述特定进制的数字串,查找所述查询表以确定与所述 特定进制的数字串距离最近的最大数字串。具体而言,可以将所述特定进制的数字串与所述查询表中的各个数字串区间的最大数字串进行比较以确定与所述特定进制的数字串距离最近的最大数字串。
承接上例,用户的IP地址所转换成的数字串为123000000002,查找查询表确定与该数字串距离最近的最大数字串为123000000004。
然后,基于确定的最大数字串123000000004,确定该最大数字串所属的数字串区间为[123000000004,123000000001]。
应该理解,本发明不限于此,而是还可以采用任何其他合适的方法来确定与该数字串距离最近的最大数字串。
接下来,判断所述特定进制的数字串是否大于该数字串区间的最小数字串。可选地,例如可以将与用户的IP地址相对应的数字串123000000002与该数字串区间的最小数字串123000000001进行比较以确定其是否小于该数字串区间的最小数字串。
应该理解,本发明不限于此,而是还可以采用任何其他合适的方法来确定该数字串是否大于该数字串区间的最小数字串。
如果所述特定进制的数字串大于该数字串区间的最小数字串,则确定该特定进制的数字串属于所述数字串区间。
继续前面的例子,可以看到,与用户的IP地址相对应的数字串123000000002大于该数字串区间的最小数字串123000000001。因此确定该数字串123000000002属于数字串区间[123000000004,123000000001]。
关于查询表的建立过程可以参见稍后图2的详细描述。
接下来,在步骤S140处,基于该数字串所属的数字串区间,确定该IP地址的区域归属地信息。
具体而言,可选地,基于该数字串所属的数字串区间,获取与之对应的区域归属地信息,然后,将所述区域归属地信息确定为所述IP地址的区域归属地信息。
例如,通过查询表中数字串区间与区域归属地信息之间的对应关系,可以获知数字串区间[123000000004,123000000001]相对应的区域归属地信息为北京市。然后,将该区域归属地信息——北京市确定为用户的IP地址 123.0.0.2的区域归属地信息。
至此描述了根据本发明一个实施例的识别IP地址的区域归属地信息的方法。关于其中查询表的建立过程,下面结合图2进行详细描述。
参照图2,其中示出了根据本发明一实施例的建立查询表的方法的流程图。
如图2所示,在步骤S210处,将数据库中的IP地址各个地转换成相应的所述特定进制的数字串,其中所述数据库中包含IP地址、IP地址的归属地信息,及该IP地址和该IP地址的归属地信息的对应关系。
为了更清楚地描述建立查询表的过程,下面参考图3的数字串区间与区域归属地信息的对应关系的示意图来进行描述。
如图3所示,例如将数据库中的IP地址各个地转换成相应的所述特定进制的数字串。例如,在本发明的一个实施例中,将其转换成十进制的十二位数字串。举例而言,数据库中的一个IP地址123.0.0.1,该IP地址的归属地信息为:“省:北京市:北京区:朝阳地址:酒仙桥路6号院电子科技大厦”,并且该IP地址与其归属地信息相对应。
按照本发明的方法,将IP地址123.0.0.1转换成十进制的十二位数字串123000000001。按照同样的方式,将数据库中所有的IP地址都转换成数字串。
在步骤S220处,基于预定区域划分规则所定义的区域归属地信息并且基于IP地址的归属地信息,将IP地址所对应的特定进制的数字串映射到区域归属地信息。
具体而言,预定区域划分规则例如可以是以市为区域划分规则的级别,定义区域归属地信息。也即是说,北京市为一个区域归属地信息,上海市为另一个区域归属地信息,其他城市也进行类似的划分,然后基于该区域归属地信息并且基于IP地址的归属地信息,将IP地址所对应的特定进制的数字串映射到区域归属地信息。
参考图3,承接上面的例子,例如有IP地址所对应的如下字符串:123000000004,123000000002,123000000001,124000000003,124000000001,125000000006,125000000005,125000000002,126000000010,126000000009,126000000008,126000000001。其中第1-5个数字串的归属地信息均对应北 京市、第6-8个数字串的归属地信息均对应上海市,第9-12个数字串的归属地信息均对应广州市。
应该理解,在实际应用中,IP地址、归属地信息以及区域归属地信息都可以包含更多数量。
从而基于各个市级的区域归属地信息,并且基于上述数字串的归属地信息,将第1-5个数字串映射到区域归属地信息——北京市、将第6-8个数字串映射到区域归属地信息——上海市、并将第9-12个数字串映射到区域归属地信息——广州市。
应该理解,上述示例仅仅是示意性的,本发明并不限于此,而是可以有任意多个数字串与某个区域归属地信息相映射。
还应该理解,本发明的区域归属地信息不限于此,而是还可以采用任何其他级别的区域作为区域划分规则来定义其他级别的区域归属地信息。例如,可以以华北、华南、东北、西北、西南、华东等等区域级别作为区域划分规则的级别来进行区域归属地信息的划分。
接下来,在步骤S230处,通过映射到每个区域归属地信息的数字串形成与该区域归属地信息相对应的一个或多个数字串区间,其中每个数字串区间利用数字串区间两端的最大数字串和最小数字串来定义。
参考图3,映射到北京市区域归属地信息的第1-5个数字串形成了两个数字串区间[123000000004,123000000001]和[124000000003,124000000001]、映射到上海市区域归属地信息的第6-8个数字串形成了一个数字串区间[125000000006,125000000002]、映射到广州市区域归属地信息的第9-12个数字串形成了一个数字串区间[126000000010,126000000001]。
应该理解,上述示例仅仅是示意性的,本发明并不限于此,而是每个区域归属地信息可能与一个或多个数字串区间相对应。
还应该理解,与同一个区域归属地信息相对应的数字串形成的数字串区间的数目并非仅仅上述的数字区间,本发明并不限于此。按照本发明,与同一个区域归属地信息相对应的数字串形成多少数字串区间是可以按照实际情况或者按照优化的方式进行适当调整的。
最后,在步骤S240处,基于数字串区间与区域归属地信息的对应关系, 建立所述查询表。
具体而言,如图3所示,将得到的所有数字串区间与区域归属地信息对应起来,基于它们的对应关系,建立查询表。
至此结合图2和图3描述了根据本发明一个实施例的预先建立查询表的方法的过程。利用本发明的查询表建立过程,能够建立对应关系简单且本身大小相对较小的查询表。然后,基于预先建立的查询表,利用本发明的方法可以进行快速、有效、准确的IP地址的区域归属地信息的查询。
与上述识别IP地址的区域归属地信息的方法类似,本发明还提供相应的一种识别IP地址的区域归属地信息的装置。如图4所示,图4是根据本发明一实施例的识别IP地址的区域归属地信息的装置400的结构图。
该装置可以包括:获取模块410,转换模块420,查询模块430以及确定模块440。
其中,获取模块410可以配置为获取用户的IP地址。转换模块420可以配置为将所述IP地址转换成特定进制的数字串。查询模块430可以配置为基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应。确定模块440可以配置为基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
根据本发明的实施例,转换模块420被配置成将IP地址转换成十进制的十二位数字串。
根据本发明的实施例,所述数字串区间通过数字串区间两端的最大数字串和最小数字串来定义。
根据本发明的实施例,查询模块430可以包括:比较子模块,配置为将所述特定进制的数字串与所述查询表中的各个数字串区间的最大数字串进行比较以确定与所述特定进制的数字串距离最近的最大数字串。
根据本发明的实施例,查询模块430可以包括:查找子模块,配置为基于所述特定进制的数字串,查找所述查询表以确定与所述特定进制的数字串距离最近的最大数字串;第一确定子模块,配置为确定所述最大数字串所属 的数字串区间;判断子模块,配置为判断所述特定进制的数字串是否大于该数字串区间的最小数字串;以及第二确定子模块,配置为当所述特定进制的数字串大于该数字串区间的最小数字串时,确定所述特定进制的数字串属于所述数字串区间。
根据本发明的实施例,确定模块440可以包括:获取子模块,配置为基于所述数字串所属的数字串区间,获取与之对应的区域归属地信息;以及确定子模块,配置为将所述区域归属地信息确定为所述IP地址的区域归属地信息。
根据本发明的实施例,所述预先建立的查询表是通过转换模块中的以下子模块预先建立的:转换子模块,配置为将数据库中的IP地址各个地转换成相应的所述特定进制的数字串,其中所述数据库中包含IP地址、IP地址的归属地信息及二者的对应关系;以及映射子模块,配置为基于预定区域划分规则所定义的区域归属地信息并且基于IP地址的归属地信息,将IP地址所对应的特定进制的数字串映射到区域归属地信息;形成子模块,配置为通过映射到每个区域归属地信息的数字串形成与该区域归属地信息相对应的一个或多个数字串区间,其中每个数字串区间利用数字串区间两端的最大数字串和最小数字串来定义;建立子模块,配置为基于数字串区间与区域归属地信息的对应关系,建立所述查询表。
以上描述的识别IP地址的区域归属地信息的装置与之前描述的识别IP地址的区域归属地信息的方法的处理是对应的,因此,关于更详细的技术细节,可以参见之前描述的方法。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的客户端中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个客户端中。可以把实施例中的模块组合成一个模块,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者客户端的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的加载有排序网址的客户端中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个 信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5示出了可以实现根据本发明的用户界面实现方法的终端设备。该终端设备传统上包括处理器510和以存储器520形式的程序产品或者可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个程序产品中读出或者写入到这一个或者多个程序产品中。这些程序产品包括诸如存储卡之类的程序代码载体。这样的程序产品通常为如参考图6所述的便携式或者固定存储单元。该存储单元可以具有与图5的终端设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由终端设备运行时,导致该终端设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。

Claims (16)

  1. 一种识别IP地址的区域归属地信息的方法,其特征在于,包括:
    获取用户的IP地址;
    将所述IP地址转换成特定进制的数字串;
    基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应;以及
    基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
  2. 根据权利要求1所述的方法,其特征在于,将所述IP地址转换成特定进制的数字串,包括:将所述IP地址转换成十进制的十二位数字串。
  3. 根据权利要求1所述的方法,其特征在于,所述数字串区间通过数字串区间两端的最大数字串和最小数字串来定义。
  4. 根据权利要求3所述的方法,其特征在于,基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,包括:
    基于所述特定进制的数字串,查找所述查询表以确定与所述特定进制的数字串距离最近的最大数字串;
    确定所述最大数字串所属的数字串区间;
    判断所述特定进制的数字串是否大于该数字串区间的最小数字串;并且,
    如果所述特定进制的数字串大于该数字串区间的最小数字串,则确定所述特定进制的数字串属于所述数字串区间。
  5. 根据权利要求4所述的方法,其特征在于,基于所述特定进制的数字串,查找所述查询表以确定与所述特定进制的数字串距离最近的最大数字串,包括:
    将所述特定进制的数字串与所述查询表中的各个数字串区间的最大数字串进行比较,以确定与所述特定进制的数字串距离最近的最大数字串。
  6. 根据权利要求1所述的方法,其特征在于,基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息,包括:
    基于所述数字串所属的数字串区间,获取与之对应的区域归属地信息;以及
    将所述区域归属地信息确定为所述IP地址的区域归属地信息。
  7. 根据权利要求1所述的方法,其特征在于,所述预先建立的查询表是通过以下步骤预先建立的:
    将数据库中的IP地址各个地转换成相应的所述特定进制的数字串,其中所述数据库中包含IP地址、IP地址的归属地信息及二者的对应关系;
    基于预定区域划分规则所定义的区域归属地信息并且基于IP地址的归属地信息,将IP地址所对应的特定进制的数字串映射到区域归属地信息;
    通过映射到每个区域归属地信息的数字串形成与该区域归属地信息相对应的一个或多个数字串区间,其中每个数字串区间利用数字串区间两端的最大数字串和最小数字串来定义;以及
    基于数字串区间与区域归属地信息的对应关系,建立所述查询表。
  8. 一种识别IP地址的区域归属地信息的装置,其特征在于,包括:
    获取模块,配置为获取用户的IP地址;
    转换模块,配置为将所述IP地址转换成特定进制的数字串;
    查询模块,配置为基于所述特定进制的数字串,查询预先建立的查询表以确定所述数字串所属的数字串区间,其中,所述查询表包含一个或多个数字串区间,并且每个数字串区间与一个特定区域的IP地址的区域归属地信息相对应;以及
    确定模块,配置为基于所述数字串所属的数字串区间,确定所述IP地址的区域归属地信息。
  9. 根据权利要求8所述的装置,其特征在于,所述转换模块被配置成将所述IP地址转换成十进制的十二位数字串。
  10. 根据权利要求8所述的装置,其特征在于,所述数字串区间通过数字串区间两端的最大数字串和最小数字串来定义。
  11. 根据权利要求10所述的装置,其特征在于,所述查询模块包括:
    查找子模块,配置为基于所述特定进制的数字串,查找所述查询表以确定与所述特定进制的数字串距离最近的最大数字串;
    第一确定子模块,配置为确定所述最大数字串所属的数字串区间;
    判断子模块,配置为判断所述特定进制的数字串是否大于该数字串区间的最小数字串;以及,
    第二确定子模块,配置为当所述特定进制的数字串大于该数字串区间的最小数字串时,确定所述特定进制的数字串属于所述数字串区间。
  12. 根据权利要求11所述的装置,其特征在于,所述查询模块包括:
    比较子模块,配置为将所述特定进制的数字串与所述查询表中的各个数字串区间的最大数字串进行比较以确定与所述特定进制的数字串距离最近的最大数字串。
  13. 根据权利要求8所述的装置,其特征在于,所述确定模块包括:
    获取子模块,配置为基于所述数字串所属的数字串区间,获取与之对应的区域归属地信息;以及
    第三确定子模块,配置为将所述区域归属地信息确定为所述IP地址的区域归属地信息。
  14. 根据权利要求8所述的装置,其特征在于,所述预先建立的查询表是通过转换模块中的以下子模块预先建立的:
    转换子模块,配置为将数据库中的IP地址各个地转换成相应的所述特定进制的数字串,其中所述数据库中包含IP地址、IP地址的归属地信息及二者的对应关系;
    映射子模块,配置为基于预定区域划分规则所定义的区域归属地信息并且基于IP地址的归属地信息,将IP地址所对应的特定进制的数字串映射到区域归属地信息;
    形成子模块,配置为通过映射到每个区域归属地信息的数字串形成与该区域归属地信息相对应的一个或多个数字串区间,其中每个数字串区间利用数字串区间两端的最大数字串和最小数字串来定义;以及
    建立子模块,配置为基于数字串区间与区域归属地信息的对应关系,建立所述查询表。
  15. 一种程序,包括可读代码,当所述可读代码在终端设备上运行时,导致所述终端设备执行根据权利要求1-7中的任一个所述的识别IP地址的区域归属地信息的方法。
  16. 一种可读介质,其中存储了如权利要求15所述的程序。
PCT/CN2014/091085 2013-11-15 2014-11-14 一种识别ip地址的区域归属地信息的方法和装置 WO2015070788A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310575020.7A CN103617205A (zh) 2013-11-15 2013-11-15 一种识别ip地址的区域归属地信息的方法和装置
CN201310575020.7 2013-11-15

Publications (1)

Publication Number Publication Date
WO2015070788A1 true WO2015070788A1 (zh) 2015-05-21

Family

ID=50167908

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091085 WO2015070788A1 (zh) 2013-11-15 2014-11-14 一种识别ip地址的区域归属地信息的方法和装置

Country Status (2)

Country Link
CN (1) CN103617205A (zh)
WO (1) WO2015070788A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134834A (zh) * 2019-05-15 2019-08-16 四川新网银行股份有限公司 一种使用动态avl森林高速缓存加速ip定位的方法
CN111431771A (zh) * 2020-04-07 2020-07-17 江苏省互联网行业管理服务中心 一种抗噪音干扰的城域网数据核验装置
CN112019644A (zh) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 一种确定ip地址的归属信息的方法、系统、介质和设备
CN112541133A (zh) * 2019-09-23 2021-03-23 北京国双科技有限公司 地理位置信息查询方法、装置、存储介质及设备
CN112671948A (zh) * 2020-12-28 2021-04-16 北京锐安科技有限公司 Ip地址所属区域的确定方法、装置、电子设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617205A (zh) * 2013-11-15 2014-03-05 北京奇虎科技有限公司 一种识别ip地址的区域归属地信息的方法和装置
CN104539750A (zh) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 一种ip定位方法和装置
CN107153651B (zh) * 2016-03-03 2021-04-02 阿里巴巴集团控股有限公司 一种多维交叉数据处理方法及装置
CN106096040B (zh) * 2016-06-29 2019-06-04 中国人民解放军国防科学技术大学 基于搜索引擎的机构网站归属地判别方法及其装置
CN109684303B (zh) * 2018-12-10 2020-10-27 世纪龙信息网络有限责任公司 通信码归属地查询方法、装置、计算机设备和存储介质
CN113268681A (zh) * 2021-07-05 2021-08-17 数字广东网络建设有限公司 一种用户归属地识别方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030039260A1 (en) * 2001-08-21 2003-02-27 Kenji Fujisawa Communication device, communication method and program
CN101146247B (zh) * 2006-09-13 2012-02-29 中国电信股份有限公司 为移动网络提供增值业务的方法
CN102469134A (zh) * 2010-11-17 2012-05-23 广州欢网科技有限责任公司 一种ip地址检索方法及装置
CN102646136A (zh) * 2012-04-06 2012-08-22 北京西塔网络科技股份有限公司 一种高效数据存储查询的方法及系统
CN103617205A (zh) * 2013-11-15 2014-03-05 北京奇虎科技有限公司 一种识别ip地址的区域归属地信息的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1276563A (zh) * 2000-06-29 2000-12-13 谢建平 将联网的计算机和智能终端的地址统一编制和分配的方法
US6865184B2 (en) * 2003-03-10 2005-03-08 Cisco Technology, Inc. Arrangement for traversing an IPv4 network by IPv6 mobile nodes
CN101556594A (zh) * 2008-04-11 2009-10-14 北京闻言科技有限公司 一种自动生成城市ip数据的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030039260A1 (en) * 2001-08-21 2003-02-27 Kenji Fujisawa Communication device, communication method and program
CN101146247B (zh) * 2006-09-13 2012-02-29 中国电信股份有限公司 为移动网络提供增值业务的方法
CN102469134A (zh) * 2010-11-17 2012-05-23 广州欢网科技有限责任公司 一种ip地址检索方法及装置
CN102646136A (zh) * 2012-04-06 2012-08-22 北京西塔网络科技股份有限公司 一种高效数据存储查询的方法及系统
CN103617205A (zh) * 2013-11-15 2014-03-05 北京奇虎科技有限公司 一种识别ip地址的区域归属地信息的方法和装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134834A (zh) * 2019-05-15 2019-08-16 四川新网银行股份有限公司 一种使用动态avl森林高速缓存加速ip定位的方法
CN110134834B (zh) * 2019-05-15 2023-06-09 四川新网银行股份有限公司 一种使用动态avl森林高速缓存加速ip定位的方法
CN112019644A (zh) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 一种确定ip地址的归属信息的方法、系统、介质和设备
CN112019644B (zh) * 2019-05-29 2022-08-02 贵州白山云科技股份有限公司 一种确定ip地址的归属信息的方法、系统、介质和设备
CN112541133A (zh) * 2019-09-23 2021-03-23 北京国双科技有限公司 地理位置信息查询方法、装置、存储介质及设备
CN111431771A (zh) * 2020-04-07 2020-07-17 江苏省互联网行业管理服务中心 一种抗噪音干扰的城域网数据核验装置
CN111431771B (zh) * 2020-04-07 2022-11-18 江苏省互联网行业管理服务中心 一种抗噪音干扰的城域网数据核验装置
CN112671948A (zh) * 2020-12-28 2021-04-16 北京锐安科技有限公司 Ip地址所属区域的确定方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN103617205A (zh) 2014-03-05

Similar Documents

Publication Publication Date Title
WO2015070788A1 (zh) 一种识别ip地址的区域归属地信息的方法和装置
US11526769B2 (en) Encoding knowledge graph entries with searchable geotemporal values for evaluating transitive geotemporal proximity of entity mentions
CN106407201B (zh) 一种数据处理方法、装置及计算机可读存储介质
US11151210B2 (en) Target location search method and apparatus
US20150161207A1 (en) Assisting query and querying
CN110019575A (zh) 对地理地址进行标准化的方法和装置
CN108038090B (zh) 一种文本地址的处理方法和装置
CN106874287B (zh) 一种兴趣点 poi 地址编码的处理方法及装置
CN108875006B (zh) 确定ip地址所属地区的方法及装置
CN104539750A (zh) 一种ip定位方法和装置
WO2016192214A1 (zh) 一种端服务器部署方法及装置
CN108304409A (zh) 一种基于进位的Sketch数据结构的数据频度估计方法
CN111447292A (zh) 一种IPv6地理位置定位方法、装置、设备及存储介质
CN114817651B (zh) 数据存储方法、数据查询方法、装置和设备
WO2016101736A1 (zh) 在电子地图上自定义poi名称以及查询poi的方法和装置
CN113992625B (zh) 域名源站探测方法、系统、计算机及可读存储介质
CN110020150B (zh) 信息推荐方法及装置
CN111400301B (zh) 一种数据查询方法、装置及设备
CN103888915A (zh) 一种气象信息更新方法及服务器
CN113312539B (zh) 一种检索服务的提供方法、装置、设备和介质
WO2016107352A1 (zh) 确定poi名称、确定poi信息有效性的系统和方法
WO2017088690A1 (zh) 一种域名检索方法及设备
WO2023169496A1 (zh) 一种数据处理方法、装置、电子设备和存储介质
CN115712667B (zh) 一种图数据融合分析方法、装置及存储介质
CN109933710A (zh) 一种数据查询方法、装置及存储介质、程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14861450

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14861450

Country of ref document: EP

Kind code of ref document: A1