CN104333609B - IP address localization method and device - Google Patents
IP address localization method and device Download PDFInfo
- Publication number
- CN104333609B CN104333609B CN201410545688.1A CN201410545688A CN104333609B CN 104333609 B CN104333609 B CN 104333609B CN 201410545688 A CN201410545688 A CN 201410545688A CN 104333609 B CN104333609 B CN 104333609B
- Authority
- CN
- China
- Prior art keywords
- sections
- geographical location
- current
- address
- location information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/69—Types of network addresses using geographic information, e.g. room number
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/604—Address structures or formats
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/668—Internet protocol [IP] address subnets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present invention provides a kind of IP address localization method and device.This method includes:The corresponding user behavior data of IP address in be positioned current IP sections is obtained, the geographical location information of corresponding IP address is determined according to user behavior data;According to obtained geographical location information, judge whether current IP sections meet positioning to the condition in same geographical location;If so, current IP sections of Geographic mapping result is then obtained according to the geographical location information of obtained IP address;Otherwise, at least two IP sections is divided into by current IP sections, and is returned respectively for each IP sections after division and perform the judgement operation.Current IP sections when meeting the condition, can directly position;When condition is not satisfied, by being segmented at least once to current IP sections, each IP sections after division are positioned respectively, so that multiple IP sections of respective Geographic mappings after being divided are as a result, improve current IP sections of positioning accuracy to be positioned.
Description
Technical field
The present embodiments relate to information technology field, more particularly to a kind of IP address localization method and device.
Background technology
Each node in internet, such as host or router, are physically present, and are specifically stored in a physics
Location, each node have unique IP address mutually to distinguish and connect each other, pass through the IP address positioning node of node
The technology of geographical location information come into being.
Existing IP address location technology, is substantially positioned as unit using C IP likes (IPC) section, that is, thinks a C
The geographical location information of IP address in IP like section is identical, wherein, 256 IP that X.X.X.0-X.X.X.255 is included
The collection of address is combined into a C IP like section.
The defects of above-mentioned IP address location technology, is:In practice due to reasons such as operator's planning, cause in C IP like sections
IP address geographical location information and differ, therefore, positioning accuracy is low.
The content of the invention
The embodiment of the present invention provides a kind of IP address localization method and device, to improve the positioning accuracy of IP address.
In a first aspect, an embodiment of the present invention provides a kind of IP address localization method, including:
The corresponding user behavior data of IP address in be positioned current IP sections is obtained, according to the user behavior data
Determine the geographical location information of corresponding IP address;
According to obtained geographical location information, judge whether current IP sections meet positioning to the condition in same geographical location;
If so, current IP sections of Geographic mapping result is then obtained according to the geographical location information of obtained IP address;
Otherwise, at least two IP sections is divided into by current IP sections, and returns and perform respectively for each IP sections after division
It is described to judge operation.
Second aspect, the embodiment of the present invention additionally provide a kind of IP address positioner, including:
Geographical location information determining module, for obtaining the corresponding user behavior of IP address in be positioned current IP sections
Data, the geographical location information of corresponding IP address is determined according to the user behavior data;
Same geographical location condition judgment module, for according to obtained geographical location information, judge current IP sections whether
Meet positioning to the condition in same geographical location;
Positioning result determining module, for judging that current IP sections meets to determine in the same geographical location condition judgment module
During the condition in position to same geographical location, current IP sections of geographical location is obtained according to the geographical location information of obtained IP address
Positioning result;
Split fix module, for judging that current IP sections is unsatisfactory for positioning in the same geographical location condition judgment module
To same geographical location condition when, be divided at least two IP section by current IP section, and divide for each IP sections after dividing
The judgement operation Fan Hui not performed.
The localization method and device of IP address provided in an embodiment of the present invention, by obtaining institute in be positioned current IP sections
Comprising the corresponding user behavior data of IP address, can be according to the IP address pair for each IP address in present segment
The user behavior data answered, determines the geographical location information of the IP address;And meet positioning to same geography at current IP sections
During the condition of position, using the same geographical location in the condition as geographical location result IP sections current;IP sections current
When being unsatisfactory for the condition, then by being segmented to current IP sections, and whether execution is returned to respectively for each IP sections after division
Meet operation of the positioning to the condition in same geographical location, so that each IP sections of Geographic mapping knot after being divided
Fruit, is for be positioned current IP sections, can according to the different corresponding geographical location information of IP address in IP sections current
Multiple IP sections of respective Geographic mappings after being divided are as a result, improve current IP sections of positioning accuracy to be positioned.
Brief description of the drawings
In order to illustrate more clearly of the present invention, one will be done to attached drawing needed in the present invention below and be simply situated between
Continue, it should be apparent that, drawings in the following description are some embodiments of the present invention, are come for those of ordinary skill in the art
Say, without having to pay creative labor, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow chart for IP address localization method that the embodiment of the present invention one provides;
Fig. 2 a are a kind of flow chart of IP address localization method provided by Embodiment 2 of the present invention;
Fig. 2 b are to press the current IP sections each IP address included in IP address localization method provided by Embodiment 2 of the present invention
It is ranked up according to IP sizes;Current IP sections after sequence are divided at least two IP sections, and for each IP sections after division
The method flow diagram for performing and judging operation is returned respectively;
Fig. 3 is a kind of structure diagram for IP address positioner that the embodiment of the present invention three provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to the embodiment of the present invention
In technical solution be described in further detail, it is clear that described embodiment is part of the embodiment of the present invention, rather than entirely
The embodiment in portion.It is understood that specific embodiment described herein is only used for explaining the present invention, rather than to the present invention's
Limit, based on the embodiments of the present invention, those of ordinary skill in the art are obtained without creative efforts
Every other embodiment, belong to the scope of protection of the invention.It also should be noted that for the ease of description, attached drawing
In illustrate only part related to the present invention rather than full content.
Embodiment one
A kind of referring to Fig. 1, flow chart of the IP address localization method provided for the embodiment of the present invention one.The present invention is implemented
The method that example provides can be performed by configuring the IP address positioner realized with hardware and/software, realization device typical case
Be arranged in be capable of providing in the server of IP address positioning service.
This method includes:
110th, the corresponding user behavior data of IP address in be positioned current IP sections is obtained, according to the user behavior
Data determine the geographical location information of corresponding IP address;
This operation is specifically to determine each IP address or the corresponding geography of part IP address in be positioned current IP sections
Positional information.Specifically, each IP address or the corresponding user of part IP address in be positioned current IP sections are obtained first
Behavioral data, is then corresponding with the IP address of user behavior data for each, according to the corresponding user behavior of the IP address
Data, determine the geographical location information of the IP address.
It is further preferred that the IP address that can be obtained from user journal data in be positioned current IP sections is corresponding
User behavior data.
Wherein, the user behavior data refers to user with carrying out the behaviour related with position in the associated equipment of IP address
As when the data that are formed.The operation related with position can be specifically to carry out GPS (Global on said device
Positioning System, global positioning system) positioning action, map access operation, location finding operation or progress
Weather lookup etc. operates.
Correspondingly, the user behavior data includes:Gps data, map access data, location finding data and weather
Inquire about at least one in data.
The user behavior data can also be user with independently being set in related application in the associated equipment of IP address
The setting data related with position put.For example, user is with logging in microblogging or Renren Network application in the associated equipment of IP address
In, when delivering state, the visible position data of user setting, or user log in timely chat application on said device
When, the location data in pre-set personal information.
In this operation, gps data is preferably obtained, map accesses data, location finding data and weather lookup number
At least one conduct user behavior data in.
Due to many users in order to protect privacy of user, cause user with the associated equipment of IP address in related application
In independently set the setting data related with position it is with a low credibility, therefore, the setting data related with position are made
For user behavior data, although the corresponding geographical location information of IP address can be identified, confidence level is relatively low;Gps data,
Figure, which accesses data, location finding data and weather lookup data, usually can really reflect user demand, therefore, by GPS
Data, map access at least one conduct user behavior number in data, location finding data and weather lookup data
According to the confidence level of the corresponding geographical location information of IP address identified is higher.
120th, according to obtained geographical location information, judge whether current IP sections meet positioning to the bar in same geographical location
Part;If so, operation 130 is then performed, if it is not, then performing operation 140;
This operation is specifically according to the corresponding geographical location information of IP address in be positioned current IP sections, judges current IP
Whether section meets positioning to the condition in same geographical location.
130th, current IP sections of Geographic mapping result is obtained according to the geographical location information of obtained IP address;
Meet that positioning, will be current to the condition in same geographical location if this operation is specifically to be positioned current IP sections
The geographical location information of any IP address is as current IP sections of Geographic mapping result to be positioned in IP sections.
140th, at least two IP sections is divided into by current IP sections, and is returned respectively for each IP sections after division and perform institute
State judgement operation.
If this operation, which is specifically to be positioned current IP sections, is unsatisfactory for positioning to the condition in same geographical location, namely treats
At least corresponding geographical location information of part IP address geographical location corresponding with other IP address in current IP sections of positioning
Information is different, then is divided into two or more IP section by described current IP section to be positioned, and be directed to each after dividing
IP sections return to operation 120 respectively, so that when each IP sections after division meets to position to the condition in same geographical location, obtain
To the IP sections of Geographic mapping result.
If it is understood that to be positioned current IP sections be unsatisfactory for positioning to same geographical location condition, it is necessary to
To be positioned current IP sections are segmented at least once, influencing to be segmented the factor of number includes:To be positioned current IP sections
Each IP section of length after initial length, specific segmented mode, such as institute's segments and division, and each after dividing
Whether IP sections meet positioning to the condition in same geographical location.
The technical solution of the present embodiment, by obtaining the corresponding user of IP address included in be positioned current IP sections
Behavioral data, can be according to the corresponding user behavior data of the IP address for each IP address in present segment, and determining should
The geographical location information of IP address;And when meeting to position to the condition in same geographical location for current IP sections, by the condition
In same geographical location as geographical location result IP sections current;When being unsatisfactory for the condition for current IP sections, then pass through
Current IP sections is segmented, and returns to perform respectively for each IP sections after division and whether meets positioning to same geographical location
The operation of condition, so that each IP sections of Geographic mapping after being divided is as a result, be for current IP to be positioned
Section, according to the different corresponding geographical location information of IP address in IP section current, multiple IP sections after being divided are respective
Geographic mapping as a result, improving current IP sections of positioning accuracy to be positioned.
It should be noted that the technical solution of the present embodiment has good versatility, it is applicable not only to a C IP like
Duan Jinhang position, apply also for positioning the part subset of a C IP like section, it is of course also possible to multiple C IP likes sections into
Row positioning.
Exemplarily, by taking described current IP sections to be positioned is a C IP like sections as an example, if current IP section meet to position
To same geographical location condition, will be IP sections current in any IP address geographical location information as to be positioned current IP sections
Geographic mapping result;If being unsatisfactory for the condition, according to length of window 128, two are divided into by current IP sections
IP sections, be respectively the first IP section and the 2nd IP section, and return to the execution judgement respectively for each IP section the after division and operate;
If the first IP sections meet positioning to the condition in same geographical location, by the geographical location letter of the first any IP address in IP section
Breath is as current IP sections of Geographic mapping result to be positioned;If the 2nd IP sections be unsatisfactory for positioning to same geographical location
Condition, then the length of window is halved, as new length of window, by the described 2nd IP sections be divided into two IP sections, and
Returned respectively for each IP sections after division and perform the judgement operation, so as to obtain the fine positioning knot of the C IP like sections
Fruit.
IP address localization method provided in an embodiment of the present invention, can be applied to several scenes.For example, can be according to undetermined
Current IP sections of the positioning result to become more meticulous of position, establishes the geographic position data storehouse of IP address, improves geographic position data storehouse
Precision, so as to, based on the geographic position data storehouse, improve the accurate of search result into during row position relevant search in user
Property;Or when user is positioned by map application, based on the geographic position data storehouse, improve positioning accuracy;Again or
Based on the geographic position data storehouse, accurate targeted ads dispensing is carried out to specific IP address, lifts the advertising income of company.
Embodiment two
Fig. 2 a are referred to, are a kind of flow chart of IP address localization method provided by Embodiment 2 of the present invention.This method bag
Include:
210th, the corresponding user behavior data of IP address in be positioned current IP sections is obtained, according to the user behavior
Data determine the geographical location information of corresponding IP address;
In this operation, gps data is preferably obtained, map accesses data, location finding data and weather lookup number
At least one conduct user behavior data in.
220th, the corresponding geographical location information of IP address in current IP sections obtained is polymerize according to the phase same sex;
This operation be specifically in determining current IP sections to be positioned the corresponding geographical location information of each IP address it
Afterwards, multiple IP address with identical geographical location information are polymerize.
221st, it is whether full according to the quantity of corresponding IP address of geographical location information condense together and that quantity is most
Foot imposes a condition, and judges whether current IP sections meet positioning to the condition in same geographical location;If meet positioning to same geography
The condition of position, then perform operation 230, if being unsatisfactory for positioning to the condition in same geographical location, performs operation 240;
Operation 220 and this operation are provided according to obtained geographical location information, judge whether current IP sections meet to position
To the preferred solution of the condition in same geographical location.Specifically, by the corresponding geography of IP address in current IP sections obtained
After positional information is polymerize according to the phase same sex, if geographical location information condense together and most quantity corresponds to
IP address quantity meet impose a condition, then judge it is current IP section meet position to same geographical location condition;It is if poly-
The quantity of the corresponding IP address of geographical location information be combined and most quantity is unsatisfactory for imposing a condition, then judges to work as
First IP sections is unsatisfactory for positioning to the condition in same geographical location.
Wherein, the setting condition can be the number threshold value of setting, or setting with it is to be positioned current
IP sections of related percentages.
For example, when the current IP sections of C IP like sections for 192.103.186.0~192.103.186.255 to be positioned
When, if the quantity of the corresponding IP address of geographical location information condense together and most quantity is 204, the number of setting
It is 200 to measure threshold value, then meets the setting condition;Alternatively, the percentage related with current IP sections to be positioned set as
80%, in other words, since the length of the current IP to be positioned is 256, then only condensing together and quantity is most
When the quantity of the corresponding IP address of geographical location information is more than 205, just meet the setting condition.
230th, by geographical location information condense together and most quantity, it is determined as geographical location IP sections current
Positioning result;
240th, the current IP sections each IP address included is ranked up according to IP sizes;By current IP sections of divisions after sequence
For at least two IP sections, and returned respectively for each IP sections after division and perform the judgement operation.
This operation is specifically before by current IP sections segmentation, and each IP address that current IP sections is included is carried out according to IP sizes
Sequence so that adjacent IP address be divided in it is IP sections same in, to improve the accuracy of IP sections of positioning results.
The technical solution of the present embodiment, by obtaining the corresponding user of IP address included in be positioned current IP sections
Behavioral data, can be according to the corresponding user behavior data of the IP address for each IP address in present segment, and determining should
The geographical location information of IP address;And the phase same sex based on geographical location information carries out the polymerization of corresponding IP address, according to
The quantity and setting condition of the corresponding IP address of geographical location information condense together and most quantity, can interpolate that and work as
First IP sections whether meet positioning to same geographical location condition, due to be not required for it is IP section current in each IP address correspondence
Geographical location information all same, therefore reduce segmentation number, and improve location efficiency;And it is fixed to meet at current IP sections
During the condition in position to same geographical location, by geographical location information condense together and most quantity, it is determined as current IP
The Geographic mapping of section is as a result, improve the confidence level of positioning;When being unsatisfactory for the condition for current IP sections, then by current IP
Each IP address that section includes is ranked up and is segmented according to IP sizes, and is returned respectively for each IP sections after division and perform institute
Judgement operation is stated, so that each IP sections of Geographic mapping after being divided draws adjacent IP address as a result, by sequence
Divide in IP sections same, improve the accuracy of IP sections of positioning results.Technical solution through this embodiment, for be positioned
Current IP section, according to the corresponding geographical location information of IP address in IP sections current, multiple IP sections after being divided are respective
Geographic mapping as a result, improving current IP sections of positioning accuracy to be positioned.
Fig. 2 b are referred to, on the basis of the present embodiment, there is provided each IP address for including current IP sections is big according to IP
It is small to be ranked up;Current IP sections after sequence are divided at least two IP sections, and are returned respectively for each IP sections after division
The preferred solution of operation is judged described in receipt row, which includes:
241st, the current IP sections each IP address included is ranked up according to IP sizes;
242nd, current IP sections after sequence are divided at least two IP sections;
243rd, judge whether each IP sections of quantity for including IP address after division are less than given threshold;If being not less than,
Then return and perform operation 221, if being less than, perform operation 244;
As described in embodiment one, if to be positioned current IP sections are unsatisfactory for positioning to the condition in same geographical location,
Need to be segmented to be positioned current IP sections at least once, influencing to be segmented the factor of number includes:Current IP to be positioned
Length IP sections each after the initial length of section, specific segmented mode, such as institute's segments and division, and it is every after division
Whether one IP sections meet positioning to the condition in same geographical location.
This operation is specifically to judge whether each IP sections of quantity for including IP address after division are less than given threshold,
I.e. according to each IP sections of the length and the magnitude relationship of given threshold after division, different operations is performed.
It should be noted that if given threshold is higher, be conducive to improve current IP sections of positioning accuracy to be positioned, but
It is time-consuming longer;If given threshold is relatively low, be conducive to improve to current IP sections of location efficiency to be positioned, but positioning accurate
Spend relatively low, therefore, select suitable given threshold, be conducive to take into account positioning accuracy and location efficiency.
244th, using the highest geographical location information of the confidence level in the IP sections as Geographic mapping knot IP sections current
Fruit.
If this operation, which is specifically each IP sections of quantity for including IP address after dividing, is less than given threshold, should
The highest geographical location information of confidence level in IP sections is as Geographic mapping result IP sections current.
As a kind of preferred embodiment of this operation, can be stated according to corresponding to the IP sections of IP address included
User behavior data, determines the confidence level of the geographical location information of corresponding IP address;
It regard the highest geographical location information of the confidence level in the IP sections as the IP sections of Geographic mapping result.
In the present embodiment, can be determined corresponding according to the quantity of the corresponding user behavior data of IP address
The confidence level of the geographical location information of IP address, in other words, has more user behavior datas to support the corresponding geography of IP address
Positional information, then the confidence level of the geographical location information is higher.
For example, IP address 192.103.186.3 corresponds to three user behavior datas, if there is two user behavior datas to support
The IP address corresponds to geographical location A, then the confidence level of geographical location A is 90, if three user behavior datas are with supporting the IP
Location corresponds to geographical location A, then the confidence level of geographical location A is 100.
Present embodiment, if each IP sections of quantity for including IP address after division are less than given threshold, for
It is IP sections each, no longer divided and judge whether positioning to same geographical location, but by the confidence level highest in the IP sections
Geographical location information as the IP sections of Geographic mapping as a result, not only increasing location efficiency, and improve length
The confidence level of positioning result less than the segmentation IP of given threshold.
Embodiment three
A kind of referring to Fig. 3, structure diagram of the IP address positioner provided for the embodiment of the present invention three.The device
Including:Geographical location information determining module 310, same geographical location condition judgment module 320, positioning result determining module 330
With split fix module 340.
Wherein, the IP address that geographical location information determining module 310 is used to obtain in be positioned current IP sections is corresponding
User behavior data, the geographical location information of corresponding IP address is determined according to the user behavior data;Same geographical location
Condition judgment module 320 is used for according to obtained geographical location information, judges whether current IP sections meet positioning to same geography
The condition of position;Positioning result determining module 330 is used to judge in the same geographical location condition judgment module IP sections current
When meeting to position to the condition in same geographical location, current IP sections of ground is obtained according to the geographical location information of obtained IP address
Manage position positioning result;Split fix module 340 is used to judge in the same geographical location condition judgment module IP sections current
Be unsatisfactory for positioning to same geographical location condition when, be divided at least two IP section by current IP section, and after being directed to and dividing
Each IP sections return to the execution judgement operation respectively.
The technical solution of the present embodiment, by obtaining the corresponding user of IP address included in be positioned current IP sections
Behavioral data, can be according to the corresponding user behavior data of the IP address for each IP address in present segment, and determining should
The geographical location information of IP address;And when meeting to position to the condition in same geographical location for current IP sections, by the condition
In same geographical location as geographical location result IP sections current;When being unsatisfactory for the condition for current IP sections, then pass through
Current IP sections is segmented, and returns to perform respectively for each IP sections after division and whether meets positioning to same geographical location
The operation of condition, so that each IP sections of Geographic mapping after being divided is as a result, be for current IP to be positioned
Section, according to the different corresponding geographical location information of IP address in IP section current, multiple IP sections after being divided are respective
Geographic mapping as a result, improving current IP sections of positioning accuracy to be positioned.
In such scheme, geographical location information determining module 310 preferably includes:User behavior data acquiring unit and ground
Manage positional information determination unit.
Wherein, user behavior data acquiring unit is used to obtain from user journal data in be positioned current IP sections
The corresponding user behavior data of IP address;Geographical location information determination unit is used to determine to correspond to according to the user behavior data
IP address geographical location information;
Wherein, the user behavior data can include:Gps data, map access data, location finding data and day
It is at least one in gas inquiry data.
In such scheme, which can also include:Address sort module 321, it is each for current IP sections to be included
IP address is ranked up according to IP sizes;
The split fix module 340 is specifically used for, and judges current IP in the same geographical location condition judgment module
When section is unsatisfactory for positioning to the condition in same geographical location, current IP sections after sequence are divided at least two IP sections, and pin
Each IP sections after division are returned respectively and perform the judgement operation.
In such scheme, same geographical location condition judgment module 320 is specifically used for:
The corresponding geographical location information of IP address in current IP sections obtained is polymerize according to the phase same sex;
If the quantity of the corresponding IP address of geographical location information condense together and most quantity meets setting bar
Part, then judge that current IP sections meets positioning to the condition in same geographical location;
Positioning result determining module 330 is specifically used for, and judges current IP in the same geographical location condition judgment module
When section meets to position to the condition in same geographical location, geographical location information condense together and most quantity determines
For Geographic mapping result IP sections current.
In such scheme, split fix module 340 preferably includes:Segmenting unit, quantity judging unit and the first positioning
Unit.
Wherein, segmenting unit is used to judge that current IP sections is unsatisfactory for positioning in the same geographical location condition judgment module
To same geographical location condition when, be divided at least two IP sections by current IP sections;Quantity judging unit is used to judge to divide
Whether each IP sections of quantity for including IP address afterwards are less than given threshold;First positioning unit is used for
The quantity of included IP address returns not less than the IP sections after the division of given threshold and performs the judgement operation.
It is further preferred that split fix module 340 can also include:Second positioning unit, for after judging to divide
The each IP sections of quantity for including IP address whether be less than given threshold after, be included IP address for judging result
Quantity is less than the IP sections after the division of given threshold, using the highest geographical location information of the confidence level in the IP sections as current IP
The Geographic mapping result of section.
In such scheme, described current IP sections to be positioned include at least one C IP likes section.
IP address positioner provided in an embodiment of the present invention can perform the IP address that any embodiment of the present invention is provided
Localization method, possesses the corresponding function module of execution method and beneficial effect.
Finally it should be noted that:Various embodiments above is merely to illustrate technical scheme, rather than it is limited
System;Preferred embodiment in embodiment, is not limited, and to those skilled in the art, the present invention can be with
There are various modifications and changes.All any modification, equivalent replacement, improvement and so within spirit and principles of the present invention,
It should be included within protection scope of the present invention.
Claims (12)
- A kind of 1. IP address localization method, it is characterised in that including:The corresponding user behavior data of IP address in be positioned current IP sections is obtained, is determined according to the user behavior data The geographical location information of corresponding IP address;According to obtained geographical location information, judge whether current IP sections meet positioning to the condition in same geographical location;If so, current IP sections of Geographic mapping result is then obtained according to the geographical location information of obtained IP address;Otherwise, at least two IP sections is divided into by current IP sections, and judges each IP sections of numbers for including IP address after division Whether amount is less than given threshold;It is not less than the IP sections after the division of given threshold for the quantity of included IP address for judging result, returns described in performing Judge operation.
- 2. according to the method described in claim 1, it is characterized in that, the IP address obtained in be positioned current IP sections is corresponding User behavior data, including:The corresponding user behavior data of IP address in be positioned current IP sections is obtained from user journal data;Wherein, the user behavior data includes:Global position system GPS data, map access data, location finding data with It is and at least one in weather lookup data.
- 3. according to the method described in claim 1, it is characterized in that, before being divided at least two IP sections by current IP sections, Further include:The current IP sections each IP address included is ranked up according to IP sizes.
- 4. according to the method described in claim 1, it is characterized in that, according to obtained geographical location information, judge IP sections current Whether satisfaction is positioned to the condition in same geographical location, including:The corresponding geographical location information of IP address in current IP sections obtained is polymerize according to the phase same sex;If the quantity of the corresponding IP address of geographical location information condense together and most quantity meets to impose a condition, Then judge that current IP sections meets positioning to the condition in same geographical location;According to the geographical location information of obtained IP address obtain current IP sections Geographic mapping as a result, including:By geographical location information condense together and most quantity, it is determined as Geographic mapping result IP sections current.
- 5. according to the method described in claim 1, it is characterized in that, each IP sections after judging to divide include IP address Whether quantity is less than after given threshold, further includes:For judging result for included IP address quantity be less than given threshold division after IP sections, by the IP sections can The highest geographical location information of reliability is as Geographic mapping result IP sections current.
- 6. according to any method in claim 1-5, it is characterised in that described current IP section to be positioned including at least One C IP like section.
- A kind of 7. IP address positioner, it is characterised in that including:Geographical location information determining module, for obtaining the corresponding user behavior number of IP address in be positioned current IP sections According to determining the geographical location information of corresponding IP address according to the user behavior data;Same geographical location condition judgment module, for according to obtained geographical location information, judging whether current IP sections meet Position to the condition in same geographical location;Positioning result determining module, for judging that current IP sections meets positioning extremely in the same geographical location condition judgment module During the condition in same geographical location, current IP sections of Geographic mapping is obtained according to the geographical location information of obtained IP address As a result;Split fix module, for judging that current IP sections is unsatisfactory for positioning to same in the same geographical location condition judgment module During the condition in one geographical location, at least two IP sections is divided into by current IP sections, and return respectively for each IP sections after division Operation is judged described in receipt row;Wherein, split fix module includes:Segmenting unit, for judging that current IP sections is unsatisfactory for positioning to same in the same geographical location condition judgment module When managing the condition of position, at least two IP sections is divided into by current IP sections;Quantity judging unit, for judging whether each IP sections of quantity for including IP address after division are less than given threshold;First positioning unit, after being not less than the division of given threshold for judging result for the quantity of included IP address IP sections, return and perform the judgement operation.
- 8. device according to claim 7, it is characterised in that geographical location information determining module includes:User behavior data acquiring unit, for obtaining the IP address pair in be positioned current IP sections from user journal data The user behavior data answered;Geographical location information determination unit, the geographical location for determining corresponding IP address according to the user behavior data are believed Breath;Wherein, the user behavior data includes:Global position system GPS data, map access data, location finding data with It is and at least one in weather lookup data.
- 9. device according to claim 7, it is characterised in that the device further includes:Address sort module, for the current IP sections each IP address included to be ranked up according to IP sizes;The split fix module is specifically used for, and judges that current IP sections is unsatisfactory in the same geographical location condition judgment module When positioning to the condition in same geographical location, current IP section the after sequence are divided at least two IP section, and after being directed to and dividing Each IP sections respectively return perform it is described judge operation.
- 10. device according to claim 7, it is characterised in that same geographical location condition judgment module is specifically used for:The corresponding geographical location information of IP address in current IP sections obtained is polymerize according to the phase same sex;If the quantity of the corresponding IP address of geographical location information condense together and most quantity meets to impose a condition, Then judge that current IP sections meets positioning to the condition in same geographical location;Positioning result determining module is specifically used for, and judges that current IP sections meets to determine in the same geographical location condition judgment module During the condition in position to same geographical location, by geographical location information condense together and most quantity, it is determined as current IP The Geographic mapping result of section.
- 11. device according to claim 7, it is characterised in that split fix module further includes:Whether the second positioning unit, be less than given threshold for each IP sections of quantity for including IP address after division is judged Afterwards, it is less than the IP sections after the division of given threshold for judging result for the quantity of included IP address, by the IP sections The highest geographical location information of confidence level is as Geographic mapping result IP sections current.
- 12. according to any device in claim 7-11, it is characterised in that described current IP section to be positioned including extremely A few C IP like section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410545688.1A CN104333609B (en) | 2014-10-15 | 2014-10-15 | IP address localization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410545688.1A CN104333609B (en) | 2014-10-15 | 2014-10-15 | IP address localization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104333609A CN104333609A (en) | 2015-02-04 |
CN104333609B true CN104333609B (en) | 2018-04-13 |
Family
ID=52408257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410545688.1A Active CN104333609B (en) | 2014-10-15 | 2014-10-15 | IP address localization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104333609B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341498A (en) * | 2015-07-06 | 2017-01-18 | 阿里巴巴集团控股有限公司 | Network address based locating method and device and IP segment data storage method and device |
CN106936887B (en) | 2015-12-31 | 2020-10-20 | 珠海金山办公软件有限公司 | Geographic position positioning method and device |
CN105721549A (en) * | 2016-01-20 | 2016-06-29 | 深圳创维数字技术有限公司 | Router advertisement pushing method and router advertisement pushing device |
CN106998371B (en) * | 2016-01-25 | 2020-11-06 | 创新先进技术有限公司 | Credible IP information judging method, IP information base updating method and device |
CN105897944B (en) * | 2016-03-25 | 2020-08-04 | 胡津瑞 | Trace-based deduction and filling method of IP address geographic position library |
CN105933294B (en) * | 2016-04-12 | 2019-08-16 | 晶赞广告(上海)有限公司 | Network user's localization method, device and terminal |
CN106357835B (en) * | 2016-09-05 | 2020-03-06 | 百度在线网络技术(北京)有限公司 | Method and equipment for determining region of target IP address |
CN106603709B (en) * | 2016-12-30 | 2020-05-29 | 公安部第三研究所 | Space positioning system based on network realization and positioning method thereof |
CN106998372A (en) * | 2017-04-25 | 2017-08-01 | 物载天下网络科技(苏州)有限公司 | A kind of IP address localization method |
CN108712519B (en) * | 2018-05-31 | 2022-07-08 | 康键信息技术(深圳)有限公司 | Method and device for positioning IP address and storage medium |
CN109274725B (en) * | 2018-08-31 | 2020-05-26 | 阿里巴巴集团控股有限公司 | Internet transaction positioning method and device and server |
CN109543118B (en) * | 2018-11-12 | 2020-06-12 | 中国人民解放军战略支援部队信息工程大学 | Web landmark reliability assessment method and device based on multi-layer decision |
CN110855812B (en) * | 2019-11-28 | 2022-05-27 | 中国银行股份有限公司 | Positioning method, device and equipment based on IP address |
CN112738297B (en) * | 2021-04-01 | 2022-06-10 | 北京达佳互联信息技术有限公司 | IP address positioning data acquisition method, device, server and storage medium |
CN115190110B (en) * | 2022-07-18 | 2024-01-09 | 北京抖音信息服务有限公司 | Geographic position determining method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355595A (en) * | 2008-09-17 | 2009-01-28 | 北京搜狗科技发展有限公司 | Method and apparatus for locating physical location of IP address |
CN101572629A (en) * | 2009-05-31 | 2009-11-04 | 腾讯科技(深圳)有限公司 | Method and device for processing IP data |
CN103220376A (en) * | 2013-03-30 | 2013-07-24 | 清华大学 | Method for positioning IP (Internet Protocol) by position data of mobile terminal |
CN103259877A (en) * | 2013-04-15 | 2013-08-21 | 北京百度网讯科技有限公司 | IP address geographic position determination method and system |
CN103973837A (en) * | 2014-05-27 | 2014-08-06 | 北京瑞汛世纪科技有限公司 | Method and device for determining physical location information |
-
2014
- 2014-10-15 CN CN201410545688.1A patent/CN104333609B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355595A (en) * | 2008-09-17 | 2009-01-28 | 北京搜狗科技发展有限公司 | Method and apparatus for locating physical location of IP address |
CN101572629A (en) * | 2009-05-31 | 2009-11-04 | 腾讯科技(深圳)有限公司 | Method and device for processing IP data |
CN103220376A (en) * | 2013-03-30 | 2013-07-24 | 清华大学 | Method for positioning IP (Internet Protocol) by position data of mobile terminal |
CN103259877A (en) * | 2013-04-15 | 2013-08-21 | 北京百度网讯科技有限公司 | IP address geographic position determination method and system |
CN103973837A (en) * | 2014-05-27 | 2014-08-06 | 北京瑞汛世纪科技有限公司 | Method and device for determining physical location information |
Also Published As
Publication number | Publication date |
---|---|
CN104333609A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104333609B (en) | IP address localization method and device | |
JP5888655B2 (en) | System and method for providing content to subscribers | |
CN103259877B (en) | The geographic position determination method and system of IP address | |
CN102246463B (en) | Geolocation mapping of network devices | |
US8234166B2 (en) | Automated user segment selection for delivery of online advertisements | |
US8542637B2 (en) | Clustering crowd-sourced data for determining beacon positions | |
US9894488B2 (en) | Open type POI service system using SNS method and method thereof | |
CN103347297B (en) | Indoor positioning method, indoor positioning server and indoor positioning system | |
WO2005088498A1 (en) | System and method for determining a profile of a user of a communication network | |
US20120185458A1 (en) | Clustering crowd-sourced data to identify event beacons | |
CN107820297A (en) | A kind of information acquisition method and device | |
CN108712519A (en) | Localization method, device and the storage medium of IP address | |
CN104574116B (en) | Online service method and apparatus based on electronic map | |
CN108882174A (en) | Mobile terminal locating method, device, electronic equipment and storage medium | |
CN108307318A (en) | A kind of user information acquiring method and device, electronic equipment | |
US11811861B2 (en) | Dynamically updating load balancing criteria | |
CN108462965A (en) | Share planing method in a kind of steel tower demand site | |
US9531885B2 (en) | Apparatus, system, and method for visualizing telecommunications resources | |
CN105989145A (en) | Bus line automatic updating method, device and system | |
US9280558B1 (en) | Revising a map area based on user feedback data | |
CN113837541A (en) | OTN sinking government enterprise private network access method, system, equipment and computer readable medium | |
CN106570006A (en) | Multimedia file recommendation system and releasing information storage method | |
CN106656943B (en) | A kind of matching process and device of network user's attribute | |
US11947410B2 (en) | Broadband error remediation engine in a data analytics system | |
CN110198517B (en) | Port scanning method and system based on self-learning path selection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |