CN103617205A - Method and device for identifying regional attribution information of IP (internet protocol) addresses - Google Patents

Method and device for identifying regional attribution information of IP (internet protocol) addresses Download PDF

Info

Publication number
CN103617205A
CN103617205A CN201310575020.7A CN201310575020A CN103617205A CN 103617205 A CN103617205 A CN 103617205A CN 201310575020 A CN201310575020 A CN 201310575020A CN 103617205 A CN103617205 A CN 103617205A
Authority
CN
China
Prior art keywords
numeric string
interval
string
address
home location
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.)
Pending
Application number
CN201310575020.7A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310575020.7A priority Critical patent/CN103617205A/en
Publication of CN103617205A publication Critical patent/CN103617205A/en
Priority to PCT/CN2014/091085 priority patent/WO2015070788A1/en
Pending legal-status Critical Current

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

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

The invention relates to a method and a device for identifying regional attribution information of IP (internet protocol) addresses. The method includes acquiring the IP addresses of users; converting the IP addresses into specific-scale numerical strings, and inquiring preliminarily created inquiry tables on the basis of the specific-scale numerical strings to determine numerical string intervals of the numerical strings; determining the regional attribution information of the IP addresses on the basis of the numerical string intervals of the numerical strings. Each inquiry table contains one or a plurality of numerical string intervals, and each numerical string interval corresponds to the regional attribution information of the IP addresses in a specific region. The massive IP addresses can be converted by the simple method, so that the regional attribution information corresponding to the IP addresses can be quickly and effectively determined. According to the technical scheme, the method has the advantages that the calculation and the computational complexity can be reduced, the IP address regional attribution information inquiry speed can be increased, and the IP address regional attribution information inquiry accuracy can be improved.

Description

A kind of method and apparatus of identifying the region information of home location of IP address
Technical field
The present invention relates to Internet technical field, relate more specifically to the method and apparatus of the region information of home location of a kind of IP of identification address.
Background technology
In internet, applications, for IP home address, identification has many practical applications.For example, in weather forecast system, weather publisher forecasting weather in weather forecast system, for example can specify the weather forecast that only automatically pushes this region in certain specific region, for example for Beijing, automatically push Pekinese's weather forecast, when showing weather forecast to a user, system need to determine whether he is Beijing user by his IP address, if so, show Pekinese's weather forecast; If not, do not show.Again for example, in ad system, advertiser throws in advertisement in ad system, can only specify and throw in certain specific region, for example only in Beijing, throw in, when system need to determine that whether he is Beijing user, if so, throws in advertisement by his IP address during to user's display advertisement; If not, do not throw in.Because ad system need to be processed a large amount of user's requests at short notice, so IP home address recognition system needs very high efficiency.
In sum, in order further to improve the efficiency of IP ownership place inquiry, the present invention proposes to utilize a kind of method of innovation to realize the fast query for the zonal information of home location of IP address, thus the processing speed of Hoisting System.
Summary of the invention
In view of the above problems, the present invention has been proposed so that the method and apparatus of the region information of home location of a kind of IP of identification address to be provided, with process in, reduce operand and complexity, improve accuracy rate and time efficiency, expand range of application.
In order to solve the problems of the technologies described above, the object of the invention is to be achieved through the following technical solutions:
The method that the invention provides the region information of home location of a kind of IP of identification address, is characterized in that, comprising: the IP address that obtains user; Described IP address translation is become to the numeric string of specific system; Numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region; And the numeric string based under described numeric string is interval, determine the region information of home location of described IP address.
Wherein, described IP address translation is become to the numeric string of specific system, comprising: described IP address translation is become to metric ten binary digit strings.
Wherein, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
Wherein, numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, further comprise: the numeric string based on described specific system, search described question blank to determine the maximum number word string nearest with the numeric string of described specific system; Determine that the numeric string under described maximum number word string is interval; Judge whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval; And, if be greater than the minimum number word string in this numeric string interval, determine that described numeric string belongs to described numeric string interval.
Wherein, numeric string based on described specific system, search described question blank to determine the maximum number word string nearest with the numeric string of described specific system, further comprise: the maximum number word string in each numeric string interval in the numeric string of described specific system and described question blank is compared to determine the maximum number word string nearest with the numeric string of described specific system.
Wherein, the numeric string based under described numeric string is interval, determines the region information of home location of described IP address, further comprises: the numeric string based under described numeric string is interval, obtains corresponding with it region information of home location; And the region information of home location that described region information of home location is defined as to described IP address.
Wherein, the described question blank of setting up is in advance set up in advance by following steps: convert each ground, the IP address in database to the accordingly numeric string of described specific system, comprise the information of home location of IP address, IP address and the corresponding relation of the two in wherein said database; And based on presumptive area division rule defined region information of home location and IP address-based information of home location, the numeric string of the corresponding specific system in IP address is mapped to region information of home location; By being mapped to the numeric string of each region information of home location, form the one or more numeric strings interval corresponding with this region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define; Corresponding relation based on numeric string interval with region information of home location, sets up described question blank.
The present invention also provides the device of the region information of home location of a kind of IP of identification address, it is characterized in that, comprising: acquisition module, for obtaining user's IP address; Modular converter, for becoming described IP address translation the numeric string of specific system; Enquiry module, for the numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region; And determination module, for the numeric string interval based under described numeric string, determine the region information of home location of described IP address.
Wherein, described modular converter is configured to described IP address translation to become metric ten binary digit strings.
Wherein, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
Wherein, described enquiry module further comprises: search submodule, for the numeric string based on described specific system, search described question blank to determine the maximum number word string nearest with the numeric string of described specific system; First determines submodule, interval for determining the numeric string under described maximum number word string; Judgement submodule, for judging whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval; And second determine submodule, if for being greater than the minimum number word string in this numeric string interval, determine that described numeric string belongs to described numeric string interval.
Wherein, described enquiry module further comprises: comparison sub-module, and for the maximum number word string in each numeric string interval of the numeric string of described specific system and described question blank being compared determine the maximum number word string nearest with the numeric string of described specific system.
Wherein, described determination module further comprises: obtain submodule, and interval for the numeric string based under described numeric string, obtain corresponding with it region information of home location; And the 3rd determine submodule, for described region information of home location being defined as to the region information of home location of described IP address.
Wherein, the described question blank of setting up is in advance to set up in advance by the following submodule in modular converter: conversion submodule, for converting each ground, the IP address of database to the accordingly numeric string of described specific system, in wherein said database, comprise the information of home location of IP address, IP address and the corresponding relation of the two; Mapping submodule, for based on presumptive area division rule defined region information of home location and IP address-based information of home location, is mapped to region information of home location by the numeric string of the corresponding specific system in IP address; Form submodule, for forming the one or more numeric strings interval corresponding with this region information of home location by being mapped to the numeric string of each region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define; Set up submodule, for corresponding relation interval based on numeric string and region information of home location, set up described question blank.
Compared with prior art, according to technical scheme of the present invention, there is following beneficial effect: (1) technical scheme of the present invention can be utilized the key (numeric string) that simple mathematical operation is question blank by IP address translation, thereby improve recognition efficiency; (2) and this conversion process can when IP number of addresses is huge, also guarantee the uniqueness of key (numeric string) after conversion, there will not be different IP addresses to be identified as the situation of same character string; And (3) to certain specific region, when it has a plurality of IP address, can merge, thereby the quantity of the key (numeric string) in minimizing question blank improves inquiry velocity, reduces memory space.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 is the process flow diagram of method of identifying according to an embodiment of the invention the region information of home location of IP address;
Fig. 2 is the process flow diagram of setting up according to an embodiment of the invention the method for question blank;
Fig. 3 is for the schematic diagram of the corresponding relation of numeric string interval and region information of home location is described;
Fig. 4 is the structural drawing of device of identifying according to an embodiment of the invention the region information of home location of IP address.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Main thought of the present invention is, by described IP address translation being become to the numeric string of specific system; The numeric string of described specific system of take is basis, and the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string; And the numeric string based under described numeric string is interval, determine the region information of home location of described IP address.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and corresponding accompanying drawing, technical solution of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In an implementation, for example, can determine by the following method the detailed information of home location of IP address.First, collect the IP mapping dictionary of better address, object lesson is as follows: IP:123.0.0.1 economizes: Beijing: Beijing district: address, Chaoyang: No. 6, winebibber's bridge road institute's Electronic Science And Technology Building.Then each IP is thought to the combination of series of sign, for example: 123.0.0.1 can be understood as 1,2,3., 0., 0., the combination of 1 these nine symbols.Again, can utilize several different methods to set up queries dictionary, for example: utilize a specific algorithm (for example md5 algorithm, hash algorithm etc.) to be converted into the character string of certain length-specific " 123.0.0.1 " these nine symbols; Key using this character string as dictionary, corresponding detailed content (is economized: Beijing: Beijing district: address, Chaoyang: No. 6, winebibber's bridge road institute's Electronic Science And Technology Building) as the value of dictionary, set up a queries dictionary.Finally, when certain actual user's IP access, first system utilizes the algorithm of setting up dictionary key IP to be converted into the character string of certain length-specific, then by the inquiry in dictionary, obtains the actual address of this actual user IP, then returns to access side.
But there is following shortcoming in this implementation:
(1) prior art is converted into character string by existing certain methods by IP, but the method often transforming is not simple mathematical operation, in conversion process, can have certain efficiency losses.
(2) in practice, often certain particular address has a plurality of IP, so just need to carry out to each IP the foundation of dictionary key, increased the quantity of dictionary key, causing actual queries speed, slack-off (speed of any querying method is to be all directly proportional to the quantity of the key of dictionary, the quantity of the key of dictionary is more, and inquiry velocity is slower).
(3) by IP address spaces, be that character string need to guarantee uniqueness, the method for transformation using in prior art likely can not guarantee uniqueness when IP data are huge, thereby cause different IP to be converted to same character string, this will cause system identification mistake, cannot guarantee the correct identification of system.
Below with reference to the accompanying drawings, describe the improved technical scheme of the present invention in detail.
As shown in Figure 1, Fig. 1 is the process flow diagram of method of identifying according to an embodiment of the invention the region information of home location of IP address.
At step S110 place, obtain user's IP address.
Particularly, in service application, obtain user's IP address.For instance, for example a user opens a website and browses, and by server operation, obtains user's IP address.
At step S120 place, described IP address translation is become to the numeric string of specific system.
Particularly, get behind user's IP address, IP address need to be changed to obtain the numeric string of specific system.Alternatively, in one embodiment of the invention, IP address translation can be become to metric ten binary digit strings.
For example, the user's who gets IP address is IP:123.0.0.2, by the decimal system, IP is converted into the integer of 12, for example: 123.0.0.2 is converted to 123000000002.
Should be appreciated that, the invention is not restricted to this, but can also adopt other any suitable systems that each IP is transformed into a numeral.
Next, at step S130 place, numeric string based on this specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under this numeric string, wherein, it is interval that question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region.
Particularly, for example as shown in Figure 3, it is interval that question blank comprises a plurality of numeric strings:
[123000000004,123000000001]
[124000000003,124000000001]
[125000000006,125000000002]
[126000000010,126000000001] etc.
Wherein, for example, the interval IP address with Beijing of the first two numeric string region information of home location---Beijing is corresponding; The interval IP address with Shanghai City of third digit string region information of home location---Shanghai City is corresponding; The interval IP address with Guangzhou of fourth digit string region information of home location---Guangzhou is corresponding.
Alternatively, each numeric string interval can define by maximum number word string and the minimum number word string at the interval two ends of numeric string.For example third digit string interval is included in the numeric string between [125000000006,125000000002], and its maximum number word string 125000000006 and minimum number word string 125000000002 by the interval two ends of this numeric string defines.
After having understood the implication in numeric string interval, next specifically describe numeric string based on described specific system and inquire about the question blank set up in advance to determine the process in the numeric string interval under this numeric string.
First, numeric string that can be based on described specific system, searches described question blank to determine the maximum number word string nearest with the numeric string of described specific system.Particularly, the maximum number word string in each numeric string interval in the numeric string of described specific system and described question blank can be compared determine the maximum number word string nearest with the numeric string of described specific system.
Accept example, the numeric string that user's IP address converts to is 123000000002, searches question blank and determines that the maximum number word string nearest with this numeric string is 123000000004.
Then, the maximum number word string 123000000004 based on definite, determines that the numeric string interval under this maximum number word string is [123000000004,123000000001].
Should be appreciated that, the invention is not restricted to this, but can also adopt any other suitable method to determine the maximum number word string nearest with this numeric string.
Next, judge whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval.Alternatively, for example the corresponding numeric string 123000000002 in the IP address with user can be compared to determine with the minimum number word string 123000000001 in this numeric string interval whether it is less than the minimum number word string in this numeric string interval.
Should be appreciated that, the invention is not restricted to this, but can also adopt any other suitable method to determine whether this numeric string is greater than the minimum number word string in this numeric string interval.
If be greater than the minimum number word string in this numeric string interval, determine that this numeric string belongs to described numeric string interval.
Continue example above, can see, the numeric string 123000000002 corresponding with user's IP address is greater than the minimum number word string 123000000001 in this numeric string interval.Therefore determine that this numeric string 123000000002 belongs to numeric string interval [123000000004,123000000001].
Can be referring to the detailed description of Fig. 2 after a while about the process of establishing of question blank.
Next, at step S140 place, the numeric string based under this numeric string is interval, determines the region information of home location of this IP address.
Particularly, alternatively, the numeric string based under this numeric string is interval, obtains corresponding with it region information of home location, then, described region information of home location is defined as to the region information of home location of described IP address.
For example, by the corresponding relation between numeric string interval and region information of home location in question blank, can know that interval [123000000004,123000000001] the corresponding region information of home location of numeric string is Beijing.Then, by this region information of home location---Beijing is defined as the region information of home location of user's IP address 123.0.0.2.
The method of the region information of home location of identifying according to an embodiment of the invention IP address has so far been described.About the process of establishing of question blank wherein, below in conjunction with Fig. 2, be described in detail.
With reference to Fig. 2, wherein show the process flow diagram of the method for setting up according to an embodiment of the invention question blank.
As shown in Figure 2, at step S210 place, by the IP address in database each convert the numeric string of corresponding described specific system to, in wherein said database, comprise the information of home location of IP address, IP address and the corresponding relation of the two.
In order more clearly to describe the process set up question blank, the schematic diagram of the corresponding relation of and region information of home location interval below with reference to the numeric string of Fig. 3 is described.
As shown in Figure 3, for example by the IP address in database each convert the numeric string of corresponding described specific system to.For example, in one embodiment of the invention, convert thereof into metric ten binary digit strings.For example, an IP address 123.0.0.1 in database, the information of home location of this IP address is: economize: Beijing; Beijing district: Chaoyang; Address: No. 6, winebibber's bridge road institute's Electronic Science And Technology Building, and this IP address is corresponding with its information of home location.
According to method of the present invention, convert IP address 123.0.0.1 to metric ten binary digit strings 123000000001.In the same way, all convert IP addresses all in database to numeric string.
At step S220 place, based on presumptive area division rule defined region information of home location and IP address-based information of home location, the numeric string of the corresponding specific system in IP address is mapped to region information of home location.
Particularly, presumptive area division rule can Shi Yi city be for example the rank of region division rule, defined range information of home location.That is to say, Beijing is a region information of home location, Shanghai City is another region information of home location, other cities are also similarly divided, then based on this region information of home location and IP address-based information of home location, the numeric string of the corresponding specific system in IP address is mapped to region information of home location.
With reference to figure 3, accept example above, for example there is the corresponding following character string in IP address: 123000000004,123000000002,123000000001,124000000003,124000000001,125000000006,125000000005,125000000002,126000000010,126000000009,126000000008,126000000001.Equal corresponding Shanghai City of information of home location of the equal corresponding Beijing of the information of home location of 1-5 numeric string, a 6-8 numeric string wherein, the equal corresponding Guangzhou of information of home location of 9-12 numeric string.
Should be appreciated that, in actual applications, IP address, information of home location and region information of home location can comprise greater number.
Thereby the region information of home location based on each city-level, and the information of home location based on above-mentioned numeric string, is mapped to region information of home location by 1-5 numeric string---Beijing, 6-8 numeric string is mapped to region information of home location---Shanghai City is also mapped to region information of home location by 9-12 numeric string---Guangzhou.
Should be appreciated that, above-mentioned example is only that schematically the present invention is not limited to this, but can have any number of numeric strings and certain region information of home location to shine upon mutually.
Be also to be understood that region of the present invention information of home location is not limited to this, but can also adopt any other other region of level to define other other region information of home location of level as region division rule.For example, can using North China, south China, northeast, northwest, southwest, East China etc. region rank carries out the division of region information of home location as the rank of region division rule.
Next, at step S230 place, by being mapped to the numeric string of each region information of home location, form the one or more numeric strings interval corresponding with this region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define.
With reference to figure 3,1-5 the numeric string that is mapped to region, Beijing information of home location formed two numeric string intervals [123000000004,123000000001] and [124000000003,
124000000001] 6-8 the numeric string that, is mapped to region, Shanghai City information of home location formed a numeric string interval [125000000006,125000000002] 9-12 the numeric string that, is mapped to region, Guangzhou information of home location formed a numeric string interval [126000000010,126000000001].
Should be appreciated that, above-mentioned example is only that schematically the present invention is not limited to this, but each region information of home location may be corresponding with one or more numeric strings interval.
The number that be also to be understood that the numeric string interval that the numeric string corresponding with same region information of home location forms is not only between above-mentioned digital block, and the present invention is not limited to this.According to the present invention, it is in the light of actual conditions or according to the mode of optimizing to carry out suitably adjusting that the numeric string corresponding with same region information of home location forms how many numeric strings interval.
Finally, at step S240 place, the corresponding relation based on numeric string interval with region information of home location,
Set up described question blank.
Particularly, as shown in Figure 3, all numeric strings interval obtaining is mapped with region information of home location, the corresponding relation based on them, sets up question blank.
So far in conjunction with Fig. 2 and Fig. 3, described and set up in advance according to an embodiment of the invention the process of the method for question blank.Utilize question blank process of establishing of the present invention, can set up corresponding relation simply and and the relatively little question blank of size itself.Then, the question blank based on setting up in advance, utilize method of the present invention can carry out fast, effectively, the inquiry of the region information of home location of IP address accurately.
Similar with the method for the region information of home location of above-mentioned identification IP address, the present invention also provides the device of the region information of home location of corresponding a kind of IP of identification address.As shown in Figure 4, Fig. 4 is the structural drawing 400 of device of identifying according to an embodiment of the invention the region information of home location of IP address.
This device can comprise: acquisition module 410, modular converter 420, enquiry module 430 and determination module 440.
Wherein, acquisition module 410 can be for obtaining user's IP address.Modular converter 420 can be for becoming described IP address translation the numeric string of specific system.Enquiry module 430 can be for the numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region.Determination module 440 can be interval for the numeric string based under described numeric string, determines the region information of home location of described IP address.
According to embodiments of the invention, modular converter 420 is further configured to IP address translation to become metric ten binary digit strings.
According to embodiments of the invention, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
According to embodiments of the invention, enquiry module 430 may further include: comparison sub-module, and for the maximum number word string in each numeric string interval of the numeric string of described specific system and described question blank being compared determine the maximum number word string nearest with the numeric string of described specific system.
According to embodiments of the invention, enquiry module 430 may further include: search submodule, for the numeric string based on described specific system, search described question blank to determine the maximum number word string nearest with the numeric string of described specific system; First determines submodule, interval for determining the numeric string under described maximum number word string; Judgement submodule, for judging whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval; And second determine submodule, if for being greater than the minimum number word string in this numeric string interval, determine that described numeric string belongs to described numeric string interval.
According to embodiments of the invention, determination module 440 may further include: obtain submodule, and interval for the numeric string based under described numeric string, obtain corresponding with it region information of home location; And definite submodule, for described region information of home location being defined as to the region information of home location of described IP address.
According to embodiments of the invention, the described question blank of setting up is in advance to set up in advance by the following submodule in modular converter: conversion submodule, for converting each ground, the IP address of database to the accordingly numeric string of described specific system, in wherein said database, comprise the information of home location of IP address, IP address and the corresponding relation of the two; And mapping submodule, for based on presumptive area division rule defined region information of home location and IP address-based information of home location, the numeric string of the corresponding specific system in IP address is mapped to region information of home location; Form submodule, for forming the one or more numeric strings interval corresponding with this region information of home location by being mapped to the numeric string of each region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define; Set up submodule, for corresponding relation interval based on numeric string and region information of home location, set up described question blank.
The device of the region information of home location of identification described above IP address is corresponding with the processing of the method for the region information of home location of the identification IP address of describing before, therefore, about more detailed ins and outs, can be referring to the method for describing before.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the client in embodiment are adaptively changed and they are arranged in one or more clients different from this embodiment.Module in embodiment can be combined into a module, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or client.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the client that is loaded with sequence network address of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The device that the invention discloses the region information of home location of B8, a kind of IP of identification address, is characterized in that, comprising:
Acquisition module, for obtaining user's IP address;
Modular converter, for becoming described IP address translation the numeric string of specific system;
Enquiry module, for the numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region; And
Determination module, for the numeric string interval based under described numeric string, determines the region information of home location of described IP address.
B9, according to the device described in claim B8, it is characterized in that, described modular converter is configured to described IP address translation to become metric ten binary digit strings.
B10, according to the device described in claim B8, it is characterized in that, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
B11, according to the device described in claim B10, it is characterized in that, described enquiry module further comprises:
Search submodule, for the numeric string based on described specific system, search described question blank to determine the maximum number word string nearest with the numeric string of described specific system;
First determines submodule, interval for determining the numeric string under described maximum number word string;
Judgement submodule, for judging whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval; And,
Second determines submodule, if for being greater than the minimum number word string in this numeric string interval, determines that described numeric string belongs to described numeric string interval.
B12, according to the device described in claim B11, it is characterized in that, described enquiry module further comprises:
Comparison sub-module, for comparing the maximum number word string in each numeric string interval of the numeric string of described specific system and described question blank to determine the maximum number word string nearest with the numeric string of described specific system.
B13, according to the device described in claim B8, it is characterized in that, described determination module further comprises:
Obtain submodule, interval for the numeric string based under described numeric string, obtain corresponding with it region information of home location; And
The 3rd determines submodule, for described region information of home location being defined as to the region information of home location of described IP address.
B14, according to the device described in claim B8, it is characterized in that, the described question blank of setting up is in advance to set up in advance by the following submodule in modular converter:
Conversion submodule, for converting each ground, the IP address of database to the accordingly numeric string of described specific system, comprises the information of home location of IP address, IP address and the corresponding relation of the two in wherein said database;
Mapping submodule, for based on presumptive area division rule defined region information of home location and IP address-based information of home location, is mapped to region information of home location by the numeric string of the corresponding specific system in IP address;
Form submodule, for forming the one or more numeric strings interval corresponding with this region information of home location by being mapped to the numeric string of each region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define; And
Set up submodule, for corresponding relation interval based on numeric string and region information of home location, set up described question blank.

Claims (10)

1. a method of identifying the region information of home location of IP address, is characterized in that, comprising:
Obtain user's IP address;
Described IP address translation is become to the numeric string of specific system;
Numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region; And
Numeric string based under described numeric string is interval, determines the region information of home location of described IP address.
2. method according to claim 1, is characterized in that, described IP address translation is become to the numeric string of specific system, comprising: described IP address translation is become to metric ten binary digit strings.
3. method according to claim 1, is characterized in that, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
4. method according to claim 3, is characterized in that, the numeric string based on described specific system, and the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, further comprises:
Numeric string based on described specific system, searches described question blank to determine the maximum number word string nearest with the numeric string of described specific system;
Determine that the numeric string under described maximum number word string is interval;
Judge whether the numeric string of described specific system is greater than the minimum number word string in this numeric string interval; And,
If be greater than the minimum number word string in this numeric string interval, determine that described numeric string belongs to described numeric string interval.
5. method according to claim 4, is characterized in that, the numeric string based on described specific system is searched described question blank to determine the maximum number word string nearest with the numeric string of described specific system, further comprises:
The maximum number word string in each numeric string interval in the numeric string of described specific system and described question blank is compared to determine the maximum number word string nearest with the numeric string of described specific system.
6. method according to claim 1, is characterized in that, the numeric string based under described numeric string is interval, determines the region information of home location of described IP address, further comprises:
Numeric string based under described numeric string is interval, obtains corresponding with it region information of home location; And
Described region information of home location is defined as to the region information of home location of described IP address.
7. method according to claim 1, is characterized in that, the described question blank of setting up is in advance set up in advance by following steps:
By the IP address in database each convert the numeric string of corresponding described specific system to, in wherein said database, comprise the information of home location of IP address, IP address and the corresponding relation of the two;
Based on presumptive area division rule defined region information of home location and IP address-based information of home location, the numeric string of the corresponding specific system in IP address is mapped to region information of home location;
By being mapped to the numeric string of each region information of home location, form the one or more numeric strings interval corresponding with this region information of home location, wherein each numeric string interval utilizes maximum number word string and the minimum number word string at the interval two ends of numeric string to define; And
Corresponding relation based on numeric string interval with region information of home location, sets up described question blank.
8. a device of identifying the region information of home location of IP address, is characterized in that, comprising:
Acquisition module, for obtaining user's IP address;
Modular converter, for becoming described IP address translation the numeric string of specific system;
Enquiry module, for the numeric string based on described specific system, the question blank that inquiry is set up is in advance interval to determine the numeric string under described numeric string, wherein, it is interval that described question blank comprises one or more numeric strings, and each numeric string interval is corresponding with the region information of home location of the IP address of a specific region; And
Determination module, for the numeric string interval based under described numeric string, determines the region information of home location of described IP address.
9. device according to claim 8, is characterized in that, described modular converter is configured to described IP address translation to become metric ten binary digit strings.
10. device according to claim 8, is characterized in that, described numeric string interval defines by maximum number word string and the minimum number word string at the interval two ends of numeric string.
CN201310575020.7A 2013-11-15 2013-11-15 Method and device for identifying regional attribution information of IP (internet protocol) addresses Pending CN103617205A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310575020.7A CN103617205A (en) 2013-11-15 2013-11-15 Method and device for identifying regional attribution information of IP (internet protocol) addresses
PCT/CN2014/091085 WO2015070788A1 (en) 2013-11-15 2014-11-14 Method and device for identifying regional attribution information of ip address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310575020.7A CN103617205A (en) 2013-11-15 2013-11-15 Method and device for identifying regional attribution information of IP (internet protocol) addresses

Publications (1)

Publication Number Publication Date
CN103617205A true CN103617205A (en) 2014-03-05

Family

ID=50167908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310575020.7A Pending CN103617205A (en) 2013-11-15 2013-11-15 Method and device for identifying regional attribution information of IP (internet protocol) addresses

Country Status (2)

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539750A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 IP locating method and device
WO2015070788A1 (en) * 2013-11-15 2015-05-21 北京奇虎科技有限公司 Method and device for identifying regional attribution information of ip address
CN106096040A (en) * 2016-06-29 2016-11-09 中国人民解放军国防科学技术大学 Organization web ownership place method of discrimination based on search engine and device thereof
CN107153651A (en) * 2016-03-03 2017-09-12 阿里巴巴集团控股有限公司 A kind of multidimensional intersects data processing method and processing device
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium
CN112541133A (en) * 2019-09-23 2021-03-23 北京国双科技有限公司 Geographic position information query method, device, storage medium and equipment
CN113268681A (en) * 2021-07-05 2021-08-17 数字广东网络建设有限公司 User home location identification method and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134834B (en) * 2019-05-15 2023-06-09 四川新网银行股份有限公司 Method for accelerating IP positioning by using dynamic AVL forest cache
CN112019644B (en) * 2019-05-29 2022-08-02 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN111431771B (en) * 2020-04-07 2022-11-18 江苏省互联网行业管理服务中心 Anti-noise interference urban area network data verification device
CN112671948A (en) * 2020-12-28 2021-04-16 北京锐安科技有限公司 Method and device for determining IP address belonging area, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1276563A (en) * 2000-06-29 2000-12-13 谢建平 Unified encode and assigning method for addresses of networked computers and intelligent terminals
US20040179536A1 (en) * 2003-03-10 2004-09-16 Pascal Thubert Arrangement for traversing an IPv4 network by IPv6 mobile nodes
CN101556594A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for automatically generating city IP data
CN102469134A (en) * 2010-11-17 2012-05-23 广州欢网科技有限责任公司 IP (Internet Protocol) address search method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003060662A (en) * 2001-08-21 2003-02-28 Sony Corp Communication apparatus, communication method, program and recording medium
CN101146247B (en) * 2006-09-13 2012-02-29 中国电信股份有限公司 Method for providing mobile network with value-added service
CN102646136B (en) * 2012-04-06 2014-04-02 北京西塔网络科技股份有限公司 Method and system for efficiently storing and inquiring data
CN103617205A (en) * 2013-11-15 2014-03-05 北京奇虎科技有限公司 Method and device for identifying regional attribution information of IP (internet protocol) addresses

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1276563A (en) * 2000-06-29 2000-12-13 谢建平 Unified encode and assigning method for addresses of networked computers and intelligent terminals
US20040179536A1 (en) * 2003-03-10 2004-09-16 Pascal Thubert Arrangement for traversing an IPv4 network by IPv6 mobile nodes
CN101556594A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for automatically generating city IP data
CN102469134A (en) * 2010-11-17 2012-05-23 广州欢网科技有限责任公司 IP (Internet Protocol) address search method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070788A1 (en) * 2013-11-15 2015-05-21 北京奇虎科技有限公司 Method and device for identifying regional attribution information of ip address
CN104539750A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 IP locating method and device
CN107153651A (en) * 2016-03-03 2017-09-12 阿里巴巴集团控股有限公司 A kind of multidimensional intersects data processing method and processing device
CN106096040A (en) * 2016-06-29 2016-11-09 中国人民解放军国防科学技术大学 Organization web ownership place method of discrimination based on search engine and device thereof
CN106096040B (en) * 2016-06-29 2019-06-04 中国人民解放军国防科学技术大学 Organization web ownership place method of discrimination and its device based on search engine
CN109684303A (en) * 2018-12-10 2019-04-26 世纪龙信息网络有限责任公司 Communications codes attribution inquiry method, device, computer equipment and storage medium
CN109684303B (en) * 2018-12-10 2020-10-27 世纪龙信息网络有限责任公司 Communication code attribution inquiry method and device, computer equipment and storage medium
CN112541133A (en) * 2019-09-23 2021-03-23 北京国双科技有限公司 Geographic position information query method, device, storage medium and equipment
CN113268681A (en) * 2021-07-05 2021-08-17 数字广东网络建设有限公司 User home location identification method and device

Also Published As

Publication number Publication date
WO2015070788A1 (en) 2015-05-21

Similar Documents

Publication Publication Date Title
CN103617205A (en) Method and device for identifying regional attribution information of IP (internet protocol) addresses
US5561790A (en) Shortest path determination processes for use in modeling systems and communications networks
US8949251B2 (en) System for and method of identifying closely matching textual identifiers, such as domain names
US11681927B2 (en) Analyzing geotemporal proximity of entities through a knowledge graph
CN101313300B (en) Local search
CN108712519B (en) Method and device for positioning IP address and storage medium
CN108628811B (en) Address text matching method and device
CN101350013A (en) Method and system for searching geographical information
CN102483748A (en) Query parsing for map search
CN103221951A (en) Predictive query suggestion caching
CN102843445A (en) Browser and domain name resolution method thereof
CN106021336A (en) A method for automatic administrative district division for mass address information
CN109101607B (en) Method, apparatus and storage medium for searching blockchain data
CN103150362A (en) Video search method and system
CN103685603A (en) Domain name system analyzing method and device
CN105608159A (en) Data caching method and device
CN112328910A (en) Method and system covering AOI and POI standard address matching engine
CN102129437A (en) Domain name matching method and browser
CN113722600B (en) Data query method, device, equipment and product applied to big data
CN108763524B (en) Electronic device, chatting data processing method, and computer-readable storage medium
CN103218396B (en) The management and running visual analysis method of static Web page is generated according to visitation frequency feature
CN103177038A (en) Query expression in vertical search engine
CN110120918B (en) Identification analysis method and device
CN115712667B (en) Graph data fusion analysis method, device and storage medium
CN102222067A (en) Searching method for accurately querying information according to IP (Internet Protocol) address of keyword

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140305