CN105763646B - A kind of method of locating terminal and device, server - Google Patents
A kind of method of locating terminal and device, server Download PDFInfo
- Publication number
- CN105763646B CN105763646B CN201610258728.3A CN201610258728A CN105763646B CN 105763646 B CN105763646 B CN 105763646B CN 201610258728 A CN201610258728 A CN 201610258728A CN 105763646 B CN105763646 B CN 105763646B
- Authority
- CN
- China
- Prior art keywords
- asn
- information
- address
- monitoring device
- target
- 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
- 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
-
- 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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
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 method of locating terminal and device, server, and wherein method includes the following steps: to receive the Location Request that communication terminal is sent, and the Location Request includes the target ip address of the communication terminal;Target Autonomous System ASN corresponding with the target ip address is searched in list according to the first information, and the first information list includes multiple ASN and at least one IP address corresponding with each ASN;According to the second information list, target geographic position information corresponding with the target ASN is searched, second information list includes multiple ASN and geographical location information corresponding with each ASN;The target geographic position information found is determined as to the location information of the communication terminal, and sends the location information to the communication terminal.Using the present invention, it is able to solve the problem of can not being accurately positioned in the case where the IP address of communication terminal changes.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of method of locating terminal and device, server.
Background technique
With the continuous development of computer networking technology, internet has become the important feature of information age, people's
Work and life increasingly be unable to do without internet.The user group expanded rapidly in face of quantity carries out regional differentiation to user
Also become reasonably necessary, for example Web service provider is if it is known that the current position of user, it can be according to the geographical location of user
It adds the stronger recommendation information of specific aim (Domestic News, weather forecast, sight spot of playing etc.).
In Internet application, user only obtains the address Internet protocol (Internet Protocol, IP) could be with
Network is connected.In the prior art, when server receive communication terminal transmission carrying IP address service request after, pass through by
After IP address and the IP database comparison for being stored with IP address and geographical location information, the actual address of communication terminal is obtained.
However the IP address of communication terminal is not fixed and invariable, for example, same IP address, operator can distribute in different time
Different communication terminals uses, when different communication terminals is located at diverse geographic location, if changed to IP address logical
When letter terminal is positioned, just has the inaccurate situation of IP positioning and occur.
Summary of the invention
The embodiment of the present invention provides a kind of method of locating terminal and device, server, is able to solve the IP in communication terminal
The problem of address can not be accurately positioned in the case where changing.
First aspect of the embodiment of the present invention provides a kind of method of locating terminal, comprising:
The Location Request that communication terminal is sent is received, the Location Request includes the target ip address of the communication terminal;
List according to the first information, searches Target Autonomous System ASN corresponding with the target ip address, and described first
Information list includes multiple ASN and at least one IP address corresponding with each ASN;
According to the second information list, target geographic position information corresponding with the target ASN, second information are searched
List includes multiple ASN and geographical location information corresponding with each ASN;
The target geographic position information found is determined as to the location information of the communication terminal, and is led to described
Believe that terminal sends the location information.
Optionally, the method also includes:
The attribute information of multiple autonomous systems is stored to the second information list, the attribute information of each autonomous system includes
The ASN of each autonomous system and the corresponding geographical location information of each autonomous system.
Optionally, before the Location Request for receiving communication terminal transmission, further includes:
Receive the identification information of at least one monitoring device feedback, wherein the identification information of each monitoring device includes institute
State the IP address of monitoring device and the corresponding ASN of autonomous system where the monitoring device;
By the identification information storage of at least one described monitoring device feedback to first information list.
Optionally, the identification information for receiving at least one monitoring device feedback, comprising:
The identification information that at least one monitoring device is fed back by operational order is received, the operational order includes internet
Packet survey meter Ping instruction or routing tracking Traceroute instruction.
Optionally, each monitoring device identification information is by the monitoring device periodic feedback.
Second aspect of the embodiment of the present invention provides a kind of terminal positioning device, comprising:
Receiving unit, for receiving the Location Request of communication terminal transmission, the Location Request includes the communication terminal
Target ip address;
Searching unit is used for list according to the first information, searches Target Autonomous System corresponding with the target ip address
Number ASN, the first information list includes multiple ASN and at least one IP address corresponding with each ASN;
The searching unit is also used to search target geographic position corresponding with the target ASN according to the second information list
Confidence breath, second information list includes multiple ASN and geographical location information corresponding with each ASN;
Determination unit, the positioning for the target geographic position information found to be determined as to the communication terminal are believed
Breath;
Transmission unit, for sending the location information to the communication terminal.
Optionally, described device further includes the first storage unit:
First storage unit, for storing the attribute information of multiple autonomous systems to the second information list, each autonomy
The attribute information of system includes the ASN and the corresponding geographical location information of each autonomous system of each autonomous system.
Optionally, described device further includes the second storage unit:
The receiving unit is also used to receive the identification information of at least one monitoring device feedback, wherein each monitoring is set
Standby identification information includes the IP address of the monitoring device and the corresponding ASN of autonomous system where the monitoring device;
Second storage unit, identification information storage to the first information for feeding back at least one described monitoring device arrange
Table.
Optionally, the receiving unit is specifically used for receiving the mark that at least one monitoring device is fed back by operational order
Information, the operational order include the Internet packets survey meter Ping instruction or routing tracking Traceroute instruction.
Optionally, each monitoring device identification information is by the monitoring device periodic feedback.
The third aspect of the embodiment of the present invention provides a kind of server, and the server includes processor and memory,
It is characterized in that, the memory is for storing executable program code;The processor is stored by reading in the memory
Executable program code run program corresponding with executable program code, to execute following steps:
The Location Request that communication terminal is sent is received, the Location Request includes the target ip address of the communication terminal;
List according to the first information, searches Target Autonomous System ASN corresponding with the target ip address, and described first
Information list includes multiple ASN and at least one IP address corresponding with each ASN;
According to the second information list, target geographic position information corresponding with the target ASN, second information are searched
List includes multiple ASN and geographical location information corresponding with each ASN;
The target geographic position information found is determined as to the location information of the communication terminal, and is led to described
Believe that terminal sends the location information.
In embodiments of the present invention, in the feelings for the Location Request for receiving the carrying target ip address sent by communication terminal
Under condition, by searching for target ASN corresponding with target ip address, target geographic position corresponding with target ASN is further determined that
The target geographic position information found is determined as the location information of communication terminal by information, can pass through ASN realization pair in this way
The positioning of communication terminal, further, since an autonomous system may include multiple communication terminals, and an autonomous system is unique
Corresponding to an ASN, therefore ASN can be for used in multiple communication terminals, i.e. the corresponding geographical location information of an ASN can be with
It is positioned for multiple communication terminals, and a communication terminal uniquely corresponds to and an IP address, i.e. an IP in the prior art
The corresponding geographical location information in address is only a communication terminal and is positioned, therefore geographical location is believed in the embodiment of the present invention
The update efficiency of breath is much larger than update efficiency in the prior art, and then in the case where the IP address of communication terminal changes
It is also ensured that the accurate positionin of communication terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method of locating terminal provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another method of locating terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of terminal positioning device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another terminal positioning device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor
Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that this
Term "and/or" used herein refers to and includes one or more associated any or all possible group for listing project
It closes.In addition, description and claims of this specification and term " first ", " second ", " third " and " in above-mentioned attached drawing
Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be
System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list
Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
The present embodiments relate to communication terminal and monitoring device can be and any have setting for storage and communication function
It is standby, such as: tablet computer, mobile phone, electronic reader, personal computer (Personal Computer, PC), laptop,
The equipment such as mobile unit, Web TV, wearable device, the terminal positioning device can be have communication and store function and
For the equipment of terminal positioning, it is also possible to be embedded in the terminal positioning module for the equipment for having storage and communication function.
Below in conjunction with attached drawing 1- attached drawing 2, describe in detail to method of locating terminal provided in an embodiment of the present invention.
Referring to Figure 1, for the embodiment of the invention provides a kind of flow diagrams of method of locating terminal.As shown in Figure 1,
The embodiment of the present invention the method may include following steps S101- step S104.
S101, receives the Location Request that communication terminal is sent, and the Location Request includes the Target IP of the communication terminal
Address.
Specifically, terminal positioning device receives the Location Request that communication terminal is sent, the Location Request includes described logical
Believe the target ip address of terminal.Optionally, the Location Request that the communication terminal is sent is the feelings in communication terminal connection network
It is sent under condition, and the corresponding IP address of portable communication terminal.
In feasible scheme, user of communication terminal can input network address by the communication terminal or use application program
During send Location Request, and carry the current IP address of the communication terminal, for example, the IP address of the communication terminal
It can be distributed by operator, it is not limited in the embodiment of the present invention.
Target Autonomous System ASN corresponding with the target ip address, institute are searched in S102, according to the first information list
Stating first information list includes multiple ASN and at least one IP address corresponding with each ASN.
Specifically, the terminal positioning device list according to the first information, searches mesh corresponding with the target ip address
Autonomous system ASN is marked, the first information list includes multiple ASN and at least one IP address corresponding with each ASN.Its
In, autonomous system (autonomous system, AS) is one is had the right to autonomously decide on which kind of routing should be used in the present system
The small unit of agreement is individually manageable network unit (such as a university, an enterprise or a company
Individual), i.e., an autonomous system can manage multiple communication terminals.One autonomous system corresponds to a unique autonomous system number
(ASN).Further, since an autonomous system may include multiple communication terminals, and an autonomous system is uniquely corresponding to one
A ASN, therefore an ASN can be for used in multiple communication terminals.Therefore, an ASN can be corresponded in the first information list
One or more IP address.
Optionally, at least one corresponding IP address of each ASN that the first information list is stored can pass through monitoring
Equipment is updated.In optional scheme, the terminal positioning device receives the identification information of at least one monitoring device feedback,
Wherein, the identification information of each monitoring device includes the IP address of the monitoring device and the autonomous system where the monitoring device
Unite corresponding ASN;By the identification information storage of at least one described monitoring device feedback to first information list.Optionally, institute
Stating each monitoring device identification information is occurred in this way in the IP address of monitoring device by the monitoring device periodic feedback
In the case where variation, the first information list that the terminal positioning device is stored is updated by periodic feedback.
Optionally, when searching in the first information list less than target ASN corresponding with the target ip address, then
The terminal positioning device does not position the communication terminal.
S103 searches target geographic position information corresponding with the target ASN according to the second information list, and described the
Two information lists include multiple ASN and geographical location information corresponding with each ASN.
Specifically, after finding target ASN corresponding with the target ip address, the terminal positioning device according to
Second information list searches target geographic position information corresponding with the target ASN, and second information list includes multiple
ASN and geographical location information corresponding with each ASN.In feasible scheme, second information list can be by receiving user
Input stored, if the corresponding ASN of autonomous system changes, can to the information of the second information list carry out more
Newly.
Optionally, the geographical location information is for indicating the location information that the autonomous system is currently located, further,
One monitoring device can be set in an autonomous system, each ASN corresponding IP in the terminal positioning device described in this way
Location can be obtained timely updates by the identification information that monitoring device is fed back.
Optionally, an autonomous system if it exists then certainly exists corresponding ASN and corresponding geographical location letter
Breath.Therefore.The quantity of whole ASN included in second information list is no less than included in the first information list
Whole ASN quantity.
The target geographic position information found, is determined as the location information of the communication terminal by S104, and to
The communication terminal sends the location information.
Specifically, the target geographic position information found is determined as the communication terminal by the terminal positioning device
Location information, and the location information is sent to the communication terminal, it will pass through positioning of the ASN realization to communication terminal in this way.
In embodiments of the present invention, in the feelings for the Location Request for receiving the carrying target ip address sent by communication terminal
Under condition, by searching for target ASN corresponding with target ip address, target geographic position corresponding with target ASN is further determined that
The target geographic position information found is determined as the location information of communication terminal by information, can pass through ASN realization pair in this way
The positioning of communication terminal, further, since an autonomous system may include multiple communication terminals, and an autonomous system is unique
Corresponding to an ASN, therefore ASN can be for used in multiple communication terminals, i.e. the corresponding geographical location information of an ASN can be with
It is positioned for multiple communication terminals, and a communication terminal uniquely corresponds to and an IP address, i.e. an IP in the prior art
The corresponding geographical location information in address is only a communication terminal and is positioned, therefore geographical location is believed in the embodiment of the present invention
The update efficiency of breath is much larger than update efficiency in the prior art, and then in the case where the IP address of communication terminal changes
It is also ensured that the accurate positionin of communication terminal.
Fig. 2 is referred to, for the embodiment of the invention provides the flow diagrams of another method of locating terminal.Such as Fig. 2 institute
Show, the embodiment of the present invention the method may include following steps S201- step S207.
S201 stores the attribute information of multiple autonomous systems to the second information list, and the attribute of each autonomous system is believed
Breath includes the ASN and the corresponding geographical location information of each autonomous system of each autonomous system.
Specifically, terminal positioning device stores the attribute information of multiple autonomous systems to the second information list, it is each from
The attribute information for controlling system includes the ASN and the corresponding geographical location letter of each autonomous system of each autonomous system
Breath.Wherein, autonomous system be one have the right to autonomously decide in the present system should use which kind of Routing Protocol small unit, be
One individual manageable network unit (such as a university, an enterprise or a corporate entity), i.e. an autonomy
System can manage multiple communication terminals.One autonomous system corresponds to a unique autonomous system number (ASN).Further, by
It may include multiple communication terminals in an autonomous system, and an autonomous system is uniquely corresponding to an ASN, therefore one
ASN can be for used in multiple communication terminals.
In feasible scheme, second information list can be stored by receiving the input of user, if autonomous system
When corresponding ASN changes, the information of the second information list can be updated.Optionally, the geographical location information
The location information being currently located for indicating the autonomous system.
S202 receives the identification information of at least one monitoring device feedback, wherein the identification information packet of each monitoring device
Include the IP address of the monitoring device and the corresponding ASN of autonomous system where the monitoring device.
Specifically, the terminal positioning device receives the identification information of at least one monitoring device feedback, wherein Mei Gejian
The identification information of measurement equipment includes that the IP address of the monitoring device and autonomous system where the monitoring device are corresponding
ASN.Optionally, the monitoring device can periodic feedback identification information, further, it is possible to be arranged one in an autonomous system
A monitoring device, the corresponding IP address of each ASN can pass through what monitoring device was fed back in the terminal positioning device described in this way
Identification information obtains timely updates.
In feasible scheme, the terminal positioning device receives the monitoring device to be believed by the mark that operational order is fed back
Breath, the operational order may include but be not limited to the Internet packets survey meter Ping instruction or routing tracking Traceroute refer to
It enables.For example, setting monitoring device executes Ping instruction to terminal positioning device according to 1 day 2 times periods or Traceroute refers to
It enables.
S203, by the identification information storage of at least one described monitoring device feedback to first information list.
Specifically, the terminal positioning device identification information storage of feeding back at least one described monitoring device is to first
Information list.Optionally, since each monitoring device identification information can be by the monitoring device periodic feedback, in this way
In the case where the IP address of monitoring device changes, can be timely updated the terminal positioning device by periodic feedback
The first information list stored.
Optionally, an autonomous system if it exists then certainly exists corresponding ASN and corresponding geographical location letter
Breath.Therefore.The quantity of whole ASN included in second information list is no less than included in the first information list
Whole ASN quantity.
S204, receives the Location Request that communication terminal is sent, and the Location Request includes the Target IP of the communication terminal
Address.
Specifically, terminal positioning device receives the Location Request that communication terminal is sent, the Location Request includes described logical
Believe the target ip address of terminal.Optionally, the Location Request that the communication terminal is sent is the feelings in communication terminal connection network
It is sent under condition, and the corresponding IP address of portable communication terminal.
In feasible scheme, user of communication terminal can input network address by the communication terminal or use application program
During send Location Request, and carry the current IP address of the communication terminal, for example, the IP address of the communication terminal
It can be distributed by operator, it is not limited in the embodiment of the present invention.
Target Autonomous System ASN corresponding with the target ip address, institute are searched in S205, according to the first information list
Stating first information list includes multiple ASN and at least one IP address corresponding with each ASN.
Specifically, the terminal positioning device list according to the first information, searches mesh corresponding with the target ip address
Autonomous system ASN is marked, the first information list includes multiple ASN and at least one IP address corresponding with each ASN.
Optionally, when searching in the first information list less than target ASN corresponding with the target ip address, then
The terminal positioning device does not position the communication terminal.
S206 searches target geographic position information corresponding with the target ASN according to the second information list, and described the
Two information lists include multiple ASN and geographical location information corresponding with each ASN.
Specifically, after finding target ASN corresponding with the target ip address, the terminal positioning device according to
Second information list searches target geographic position information corresponding with the target ASN, and second information list includes multiple
ASN and geographical location information corresponding with each ASN.
The target geographic position information found, is determined as the location information of the communication terminal by S207, and to
The communication terminal sends the location information.
Specifically, the target geographic position information found is determined as the communication terminal by the terminal positioning device
Location information, and the location information is sent to the communication terminal, it will pass through positioning of the ASN realization to communication terminal in this way.
In embodiments of the present invention, in the feelings for the Location Request for receiving the carrying target ip address sent by communication terminal
Under condition, by searching for target ASN corresponding with target ip address, target geographic position corresponding with target ASN is further determined that
The target geographic position information found is determined as the location information of communication terminal by information, can pass through ASN realization pair in this way
The positioning of communication terminal, further, since an autonomous system may include multiple communication terminals, and an autonomous system is unique
Corresponding to an ASN, therefore ASN can be for used in multiple communication terminals, i.e. the corresponding geographical location information of an ASN can be with
It is positioned for multiple communication terminals, and a communication terminal uniquely corresponds to and an IP address, i.e. an IP in the prior art
The corresponding geographical location information in address is only a communication terminal and is positioned, therefore geographical location is believed in the embodiment of the present invention
The update efficiency of breath is much larger than update efficiency in the prior art, and then in the case where the IP address of communication terminal changes
It is also ensured that the accurate positionin of communication terminal.
Fig. 3 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of terminal positioning device.As shown in figure 3,
The terminal positioning device 1 of the embodiment of the present invention may include: receiving unit 11, searching unit 12, determination unit 13 and hair
Send unit 14.
Receiving unit 11, for receiving the Location Request of communication terminal transmission, the Location Request includes that the communication is whole
The target ip address at end.
Specifically, the receiving unit 11 receives the Location Request that communication terminal is sent, the Location Request includes described
The target ip address of communication terminal.Optionally, the Location Request that the communication terminal is sent is to connect network in communication terminal
In the case of send, and portable communication terminal corresponding IP address.
In feasible scheme, user of communication terminal can input network address by the communication terminal or use application program
During send Location Request, and carry the current IP address of the communication terminal, for example, the IP address of the communication terminal
It can be distributed by operator, it is not limited in the embodiment of the present invention.
Searching unit 12 is used for list according to the first information, searches Target Autonomous corresponding with target ip address system
System ASN, the first information list include multiple ASN and at least one IP address corresponding with each ASN.
Specifically, the list according to the first information of searching unit 12, searches target corresponding with the target ip address
Autonomous system ASN, the first information list include multiple ASN and at least one IP address corresponding with each ASN.Its
In, it is one that autonomous system, which is one and has the right to autonomously decide on the small unit that should use which kind of Routing Protocol in the present system,
Individual manageable network unit (such as a university, an enterprise or a corporate entity), i.e. an autonomous system
Multiple communication terminals can be managed.One autonomous system corresponds to a unique autonomous system number (ASN).Further, due to one
A autonomous system may include multiple communication terminals, and an autonomous system is uniquely corresponding to an ASN, therefore an ASN can
For used in multiple communication terminals.Therefore, an ASN can correspond to one or more IP address in the first information list.
Optionally, at least one corresponding IP address of each ASN that the first information list is stored can pass through monitoring
Equipment is updated.In optional scheme, the terminal positioning device 1 receives the mark letter of at least one monitoring device feedback
Breath, wherein the identification information of each monitoring device include the IP address of the monitoring device and where the monitoring device from
Control the corresponding ASN of system;By the identification information storage of at least one described monitoring device feedback to first information list.It is optional
, each monitoring device identification information is by the monitoring device periodic feedback, in this way in the IP of monitoring device
In the case that location changes, the first information list that the terminal positioning device 1 is stored is updated by periodic feedback.
Optionally, when searching in the first information list less than target ASN corresponding with the target ip address, then
The terminal positioning device 1 does not position the communication terminal.
The searching unit 12 is also used to search target geographic corresponding with the target ASN according to the second information list
Location information, second information list include multiple ASN and geographical location information corresponding with each ASN.
Specifically, the searching unit 12 is according to after finding target ASN corresponding with the target ip address
Two information lists search target geographic position information corresponding with the target ASN, and second information list includes multiple
ASN and geographical location information corresponding with each ASN.In feasible scheme, second information list can be by receiving user
Input stored, if the corresponding ASN of autonomous system changes, can to the information of the second information list carry out more
Newly.
Optionally, the geographical location information is for indicating the location information that the autonomous system is currently located, further,
One monitoring device can be set in an autonomous system, each ASN corresponding IP in the terminal positioning device 1 described in this way
Location can be obtained timely updates by the identification information that monitoring device is fed back.
Optionally, an autonomous system if it exists then certainly exists corresponding ASN and corresponding geographical location letter
Breath.Therefore.The quantity of whole ASN included in second information list is no less than included in the first information list
Whole ASN quantity.
Determination unit 13, for the target geographic position information found to be determined as to the positioning of the communication terminal
Information.
Specifically, the determination unit 13 is used to the target geographic position information found being determined as the communication terminal
Location information.
Transmission unit 14, for sending the location information to the communication terminal.
Specifically, the transmission unit 14 sends the location information to the communication terminal, ASN realization will pass through in this way
Positioning to communication terminal.
In embodiments of the present invention, in the feelings for the Location Request for receiving the carrying target ip address sent by communication terminal
Under condition, by searching for target ASN corresponding with target ip address, target geographic position corresponding with target ASN is further determined that
The target geographic position information found is determined as the location information of communication terminal by information, can pass through ASN realization pair in this way
The positioning of communication terminal, further, since an autonomous system may include multiple communication terminals, and an autonomous system is unique
Corresponding to an ASN, therefore ASN can be for used in multiple communication terminals, i.e. the corresponding geographical location information of an ASN can be with
It is positioned for multiple communication terminals, and a communication terminal uniquely corresponds to and an IP address, i.e. an IP in the prior art
The corresponding geographical location information in address is only a communication terminal and is positioned, therefore geographical location is believed in the embodiment of the present invention
The update efficiency of breath is much larger than update efficiency in the prior art, and then in the case where the IP address of communication terminal changes
It is also ensured that the accurate positionin of communication terminal.
Fig. 4 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another terminal positioning device.Such as Fig. 4 institute
Show, wherein terminal positioning device shown in Fig. 4 is that terminal positioning device as shown in Figure 3 optimizes.With Fig. 3 institute
The terminal positioning device shown compares, and terminal positioning device 1 shown in Fig. 4 removes the institute including terminal positioning device 1 shown in Fig. 3
Have except unit, can also include the first storage unit 15 and the second storage unit 16.
First storage unit 15, for storing the attribute information of multiple autonomous systems to the second information list, it is each from
The attribute information for controlling system includes the ASN and the corresponding geographical location letter of each autonomous system of each autonomous system
Breath.
Receiving unit 11 is also used to receive the identification information of at least one monitoring device feedback, wherein each monitoring device
Identification information include the IP address of the monitoring device and the corresponding ASN of autonomous system where the monitoring device.
During specific implementation, the receiving unit 11 passes through operational order specifically for receiving at least one monitoring device
The identification information of feedback, the operational order include that the Internet packets survey meter Ping instruction or routing tracking Traceroute refer to
It enables.Optionally, each monitoring device identification information is by the monitoring device periodic feedback.
Second storage unit 16, identification information storage for feeding back at least one described monitoring device to the first information
List.
Receiving unit 11, for receiving the Location Request of communication terminal transmission, the Location Request includes that the communication is whole
The target ip address at end.
Searching unit 12 is used for list according to the first information, searches Target Autonomous corresponding with target ip address system
System ASN, the first information list include multiple ASN and at least one IP address corresponding with each ASN.
The searching unit 12 is also used to search target geographic corresponding with the target ASN according to the second information list
Location information, second information list include multiple ASN and geographical location information corresponding with each ASN.
Determination unit 13, for the target geographic position information found to be determined as to the positioning of the communication terminal
Information.
Transmission unit 14, for sending the location information to the communication terminal.
It should be noted that the function of each functional unit can in the behavior device 1 of terminal described in the embodiment of the present invention
According to the method specific implementation in embodiment of the method shown in above-mentioned Fig. 2, details are not described herein again.
Fig. 5 is referred to, is a kind of structural schematic diagram of server provided in an embodiment of the present invention.As shown in figure 5, the clothes
Business device 1000 includes at least one processor 1001, such as CPU, at least one communication bus 1002, input equipment 1003, output
Equipment 1004 and memory 1005.Wherein, the communication bus 1002 is for realizing the connection communication between these components.Input
Equipment 1003 may include display screen, keyboard, camera etc..Output equipment 1004 optionally may include display screen etc..Storage
Device 1005 can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), such as
At least one magnetic disk storage.Memory 1005 optionally can also be that at least one is located remotely from depositing for aforementioned processor 1001
Storage device.As may include application program in a kind of memory 1005 of computer storage medium.
In server 1000 shown in Fig. 5, processor 1001 can be used for calling the application stored in memory 1005
Program, and specifically execute following steps:
The Location Request that communication terminal is sent is received, the Location Request includes the target ip address of the communication terminal;
List according to the first information, searches Target Autonomous System ASN corresponding with the target ip address, and described first
Information list includes multiple ASN and at least one IP address corresponding with each ASN;
According to the second information list, target geographic position information corresponding with the target ASN, second information are searched
List includes multiple ASN and geographical location information corresponding with each ASN;
The target geographic position information found is determined as to the location information of the communication terminal, and is led to described
Believe that terminal sends the location information.
In one embodiment, the processor 1001 is before executing the Location Request for receiving communication terminal transmission, also
Execute following steps:
The attribute information of multiple autonomous systems is stored to the second information list, the attribute information of each autonomous system includes
The ASN of each autonomous system and the corresponding geographical location information of each autonomous system.
In one embodiment, the processor 1001 also executes following steps:
Receive the identification information of at least one monitoring device feedback, wherein the identification information of each monitoring device includes institute
State the IP address of monitoring device and the corresponding ASN of autonomous system where the monitoring device;
By the identification information storage of at least one described monitoring device feedback to first information list.
In one embodiment, the processor 1001 is executing the mark letter for receiving at least one monitoring device feedback
Breath, specifically executes following steps:
The identification information that at least one monitoring device is fed back by operational order is received, the operational order includes internet
Packet survey meter Ping instruction or routing tracking Traceroute instruction.
In one embodiment, each monitoring device identification information is by the monitoring device periodic feedback.
It should be noted that step performed by processor 1001 can root in mobile terminal described in the embodiment of the present invention
According to the method specific implementation in embodiment of the method shown in above-mentioned Fig. 2, details are not described herein again.
Module described in the embodiment of the present invention or unit can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, specific integrated circuit) Lai Shixian.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.It is above disclosed to be only
Present pre-ferred embodiments, of course, the scope of rights of the present invention cannot be limited by this, therefore according to the claims in the present invention
Made equivalent variations, is still within the scope of the present invention.
Claims (9)
1. a kind of method of locating terminal characterized by comprising
Receive the identification information of at least one monitoring device feedback, wherein the identification information of each monitoring device includes institute
State the IP address of monitoring device and the corresponding ASN of autonomous system where the monitoring device;
By the identification information storage of at least one described monitoring device feedback to first information list;
Receive the Location Request that communication terminal is sent, target ip address of the Location Request comprising the communication terminal, and institute
Stating Location Request is to send in the case where communication terminal connects network, and carry the corresponding IP address of the communication terminal;
Target Autonomous System ASN corresponding with the target ip address, the first information are searched in list according to the first information
List includes multiple ASN and at least one IP address corresponding with each ASN, wherein what the first information list was stored
At least one corresponding IP address of each ASN can be periodically updated by monitoring device;
According to the second information list, target geographic position information corresponding with the target ASN, second information list are searched
Including multiple ASN and geographical location information corresponding with each ASN, and can be stored by receiving the input of user;
The target geographic position information found is determined as to the location information of the communication terminal, and eventually to the communication
End sends the location information.
2. the method according to claim 1, wherein the method also includes:
The attribute information of multiple autonomous systems is stored to the second information list, the attribute information of each autonomous system includes each
The ASN of the autonomous system and the corresponding geographical location information of each autonomous system.
3. the method according to claim 1, wherein the mark letter for receiving at least one monitoring device feedback
Breath, comprising:
The identification information that at least one monitoring device is fed back by operational order is received, the operational order includes internet detective
Rope device Ping instruction or routing tracking Traceroute instruction.
4. according to the method described in claim 3, it is characterized in that, each monitoring device identification information is by the monitoring
Device periodically feedback.
5. a kind of terminal positioning device characterized by comprising
Receiving unit, for receiving the identification information of at least one monitoring device feedback, wherein the mark of each monitoring device is believed
The IP address and the corresponding ASN of autonomous system where the monitoring device that breath includes the monitoring device;
Second storage unit, identification information storage for feeding back at least one described monitoring device to first information list
The receiving unit, is also used to receive the Location Request of communication terminal transmission, and the Location Request includes that the communication is whole
The target ip address at end, and the Location Request is to send in the case where communication terminal connects network, and carry described logical
Believe the corresponding IP address of terminal;
Searching unit is used for list according to the first information, searches Target Autonomous System number corresponding with the target ip address
ASN, the first information list include multiple ASN and at least one IP address corresponding with each ASN, wherein described first
At least one corresponding IP address of each ASN that information list is stored can be periodically updated by monitoring device;
The searching unit is also used to search target geographic position letter corresponding with the target ASN according to the second information list
Breath, second information list includes multiple ASN and geographical location information corresponding with each ASN, and can pass through reception user
Input stored;
Determination unit, for the target geographic position information found to be determined as to the location information of the communication terminal;
Transmission unit, for sending the location information to the communication terminal.
6. device according to claim 5, which is characterized in that described device further includes the first storage unit:
First storage unit, for storing the attribute information of multiple autonomous systems to the second information list, each autonomy
The attribute information of system includes the ASN and the corresponding geographical location information of each autonomous system of each autonomous system.
7. device according to claim 5, which is characterized in that the receiving unit is specifically used for receiving at least one monitoring
The identification information that equipment is fed back by operational order, the operational order include the Internet packets survey meter Ping instruction or route with
Track Traceroute instruction.
8. device according to claim 5, which is characterized in that each monitoring device identification information is by the monitoring
Device periodically feedback.
9. a kind of server, the server includes processor and memory, which is characterized in that the memory can for storing
Execute program code;The processor runs and can be performed by reading the executable program code stored in the memory
The corresponding program of program code, to execute following steps:
Receive the identification information of at least one monitoring device feedback, wherein the identification information of each monitoring device includes institute
State the IP address of monitoring device and the corresponding ASN of autonomous system where the monitoring device;
By the identification information storage of at least one described monitoring device feedback to first information list;
Receive the Location Request that communication terminal is sent, target ip address of the Location Request comprising the communication terminal, and institute
Stating Location Request is to send in the case where communication terminal connects network, and carry the corresponding IP address of the communication terminal;
Target Autonomous System ASN corresponding with the target ip address, the first information are searched in list according to the first information
List includes multiple ASN and at least one IP address corresponding with each ASN, wherein what the first information list was stored
At least one corresponding IP address of each ASN can be periodically updated by monitoring device;
According to the second information list, target geographic position information corresponding with the target ASN, second information list are searched
Including multiple ASN and geographical location information corresponding with each ASN, and can be stored by receiving the input of user;
The target geographic position information found is determined as to the location information of the communication terminal, and eventually to the communication
End sends the location information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610258728.3A CN105763646B (en) | 2016-04-23 | 2016-04-23 | A kind of method of locating terminal and device, server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610258728.3A CN105763646B (en) | 2016-04-23 | 2016-04-23 | A kind of method of locating terminal and device, server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763646A CN105763646A (en) | 2016-07-13 |
CN105763646B true CN105763646B (en) | 2019-05-28 |
Family
ID=56325709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610258728.3A Active CN105763646B (en) | 2016-04-23 | 2016-04-23 | A kind of method of locating terminal and device, server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763646B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014638B (en) * | 2021-02-22 | 2022-11-22 | 北京抖音信息服务有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101437271A (en) * | 2008-12-24 | 2009-05-20 | 华为技术有限公司 | Method, apparatus and system for determining roaming location of mobile communication equipment |
CN103686698A (en) * | 2013-11-13 | 2014-03-26 | 百度在线网络技术(北京)有限公司 | Location information processing method and device |
CN104080038A (en) * | 2013-03-26 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Positioning method and positioning equipment |
-
2016
- 2016-04-23 CN CN201610258728.3A patent/CN105763646B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101437271A (en) * | 2008-12-24 | 2009-05-20 | 华为技术有限公司 | Method, apparatus and system for determining roaming location of mobile communication equipment |
CN104080038A (en) * | 2013-03-26 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Positioning method and positioning equipment |
CN103686698A (en) * | 2013-11-13 | 2014-03-26 | 百度在线网络技术(北京)有限公司 | Location information processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105763646A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101998629B (en) | Method, device and system for searching for virtual resources | |
US9609473B2 (en) | Service processing method and apparatus based on location information | |
US8830913B1 (en) | Location-based software updates | |
CN102595249B (en) | Method and device as well as system for positioning geographic position of television | |
CN103517405B (en) | A kind of method and system of network positions, mobile terminal and network side equipment | |
CN105491529B (en) | The memory mapping treatment method and big data platform of mobile terminal locations data | |
US20220132358A1 (en) | Network function selection for increased quality of service in communication networks | |
US10972427B1 (en) | Methods, systems, and devices for identifying an IP address from a mixed data pool using artificial intelligence | |
CN103313192A (en) | Multiple-screen sharing method and system | |
US11558791B1 (en) | Methods, systems, and devices for detecting a neighboring base station to perform a handover for an unmanned aerial vehicle in a mobile network | |
CN108494867B (en) | Method, device and system for service gray processing and routing server | |
CN111131493A (en) | Data acquisition method and device and user portrait generation method and device | |
CN105763646B (en) | A kind of method of locating terminal and device, server | |
CN109076005A (en) | A kind of VPN circuit switching method, device and electronic equipment | |
CN105429798A (en) | Network configuration system for the internet of things | |
EP3399696A1 (en) | System and method for automating the discovery process | |
US11935097B2 (en) | Apparatuses and methods for identifying infrastructure through machine learning | |
CN110347413A (en) | Software configuration information update method and device | |
US20200045266A1 (en) | Method and apparatus for managing data subsidies in a communication system | |
CN109816450A (en) | A kind of content promotion method and device | |
CN108683533B (en) | Configuration updating method, configuration updating response method, server and system | |
CN107193828B (en) | Novel webpage crawling method and device | |
CN109495591A (en) | Access method of servicing, apparatus and system | |
CN102857477A (en) | Geographic information management method and system | |
CN103259804A (en) | Method and system for obtaining and comparing network service quality information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20181129 Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |