CN105763646A - Terminal positioning method and device, and server - Google Patents

Terminal positioning method and device, and server Download PDF

Info

Publication number
CN105763646A
CN105763646A CN201610258728.3A CN201610258728A CN105763646A CN 105763646 A CN105763646 A CN 105763646A CN 201610258728 A CN201610258728 A CN 201610258728A CN 105763646 A CN105763646 A CN 105763646A
Authority
CN
China
Prior art keywords
asn
information
communication terminal
target
address
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.)
Granted
Application number
CN201610258728.3A
Other languages
Chinese (zh)
Other versions
CN105763646B (en
Inventor
雷贤聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610258728.3A priority Critical patent/CN105763646B/en
Publication of CN105763646A publication Critical patent/CN105763646A/en
Application granted granted Critical
Publication of CN105763646B publication Critical patent/CN105763646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling 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/63Routing 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 invention provides a terminal positioning method, a device and a server, wherein the method comprises the following steps: receiving a positioning request sent by a communication terminal, wherein the positioning request comprises a target IP address of the communication terminal; searching a target Autonomous System Number (ASN) corresponding to the target IP address according to a first information list, wherein the first information list comprises a plurality of ASNs and at least one IP address corresponding to each ASN; searching target geographical location information corresponding to the target ASN according to a second information list, wherein the second information list comprises a plurality of ASNs and geographical location information corresponding to each ASN; and determining the searched target geographical position information as the positioning information of the communication terminal, and sending the positioning information to the communication terminal. The invention can solve the problem that the positioning can not be accurately carried out under the condition that the IP address of the communication terminal is changed.

Description

A kind of method of locating terminal and device, server
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method of locating terminal and device, server.
Background technology
Along with the development of computer networking technology, the Internet has become as the key character of information age, and the work of people and life increasingly be unable to do without the Internet.In the face of the customer group that quantity expands rapidly, user is carried out regional differentiation and also becomes reasonably necessary, such as Web service provider, if it is known that the current position of user, just can add, according to the geographical position of user, the recommendation information (Domestic News, weather forecast, sight spot etc. of playing) that specific aim is higher.
In internet, applications, user only obtains Internet protocol (InternetProtocol, IP) address and could be connected with network.In prior art, after server receives the service request carrying IP address that communication terminal sends, after IP address and storage have the IP data base of IP address and geographical location information contrast, it is thus achieved that the actual address of communication terminal.But the IP address of communication terminal is not changeless, such as, same IP address, operator can distribute to different communication terminals at different time and use, when different communication terminals is positioned at diverse geographic location, if the communication terminal that IP address is changed positions, the situation just having IP location inaccurate occurs.
Summary of the invention
The embodiment of the present invention provides a kind of method of locating terminal and device, server, it is possible to the problem solving cannot be accurately positioned when the IP address of communication terminal changes.
Embodiment of the present invention first aspect provides a kind of method of locating terminal, including:
Receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
According to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
According to the second information list, searching the target geographic position information corresponding with described target ASN, described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
The described target geographic position information found is defined as the location information of described communication terminal, and sends described location information to described communication terminal.
Optionally, described method also includes:
Being stored by the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
Optionally, before the Location Request that described reception communication terminal sends, also include:
Receiving the identification information of at least one monitoring equipment feedback, wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;
By the identification information storage of at least one monitoring equipment feedback described to first information list.
Optionally, the identification information of at least one monitoring equipment feedback of described reception, including:
Receiving at least one monitoring equipment and be operated by the identification information of instruction feedback, described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.
Optionally, described each monitoring equipment identification information is fed back by described monitoring device periodically.
Embodiment of the present invention second aspect provides a kind of terminal positioning device, including:
Receiving unit, for receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
Search unit, for according to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
Described lookup unit, is additionally operable to, according to the second information list, search the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
Determine unit, for the described target geographic position information found being defined as the location information of described communication terminal;
Transmitting element, for sending described location information to described communication terminal.
Optionally, described device also includes the first memory element:
First memory element, for storing the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
Optionally, described device also includes the second memory element:
Described reception unit, is additionally operable to receive the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;
Second memory element, for by the identification information storage of at least one monitoring equipment feedback described to first information list.
Optionally, described reception unit is operated by the identification information of instruction feedback specifically for receiving at least one monitoring equipment, and described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.
Optionally, described each monitoring equipment identification information is fed back by described monitoring device periodically.
The embodiment of the present invention third aspect provides a kind of server, and described server includes processor and memorizer, it is characterised in that described memorizer is used for storing executable program code;Described processor runs the program corresponding with executable program code by reading the executable program code of storage in described memorizer, to perform following steps:
Receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
According to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
According to the second information list, searching the target geographic position information corresponding with described target ASN, described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
The described target geographic position information found is defined as the location information of described communication terminal, and sends described location information to described communication terminal.
nullIn embodiments of the present invention,When receiving the Location Request carrying target ip address sent by communication terminal,By searching the target ASN corresponding with target ip address,Further determine that the target geographic position information corresponding with target ASN,The target geographic position information found is defined as the location information of communication terminal,So can pass through ASN and realize the location to communication terminal,Further,Owing to an autonomous system can include multiple communication terminal,And an autonomous system is uniquely corresponding to an ASN,Therefore an ASN can used by multiple communication terminals,Namely a geographical location information corresponding for ASN can position for multiple communication terminals,And communication terminal uniquely correspondence and an IP address in prior art,Namely the geographical location information that IP address is corresponding is only a communication terminal and positions,Therefore in the embodiment of the present invention renewal efficiency of geographical location information much larger than renewal efficiency of the prior art,And then when the IP address of communication terminal changes it is also ensured that being accurately positioned of communication terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method of locating terminal that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of method of locating terminal that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of terminal positioning device that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of terminal positioning device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of server that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not paying creative work premise, broadly fall into the scope of protection of the invention.
It should be noted that the term used in embodiments of the present invention is only merely for the purpose describing specific embodiment, and it is not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to include most form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and comprises any or all of one or more project of listing being associated and be likely to combination.It addition, term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second ", " the 3rd " and " the 4th " etc. are for distinguishing different object, rather than it is used for describing particular order.Additionally, term " including " and " having " and their any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, system, product or equipment are not limited to step or the unit listed, but also include step or the unit do not listed alternatively, or also include other step intrinsic for these processes, method, product or equipment or unit alternatively.
The communication terminal that the present embodiments relate to and monitoring equipment can be any equipment possessing storage and communication function, such as: panel computer, mobile phone, electronic reader, personal computer (PersonalComputer, PC), the equipment such as notebook computer, mobile unit, Web TV, wearable device, described terminal positioning device can be possess communication and storage function and the equipment for terminal positioning, it is also possible to is embedded in the terminal positioning module possessing the equipment of storage and communication function.
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the method for locating terminal that the embodiment of the present invention is provided describes in detail.
Refer to Fig. 1, for embodiments providing the schematic flow sheet of a kind of method of locating terminal.As it is shown in figure 1, the described method of the embodiment of the present invention may comprise steps of S101-step S104.
S101, receives the Location Request that communication terminal sends, and described Location Request comprises the target ip address of described communication terminal.
Concrete, terminal positioning device receives the Location Request that communication terminal sends, and described Location Request comprises the target ip address of described communication terminal.Optionally, the Location Request that described communication terminal sends is to send when communication terminal connects network, and the IP address that portable communication terminal is corresponding.
In feasible scheme, user of communication terminal can send Location Request in the process being inputted network address or use application program by described communication terminal, and carry the IP address that this communication terminal is current, for example, the IP address of this communication terminal can be distributed by operator, and this is not limited by the embodiment of the present invention.
S102, according to first information list, searches the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.
Concrete, described terminal positioning device, according to first information list, searches the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.Wherein, autonomous system (autonomoussystem, which kind of AS) it is one to have the right to autonomously decide on the small unit that should adopt Routing Protocol in the present system, it it is an independent manageable NE (such as university, one enterprise or a corporate entity), namely an autonomous system can manage multiple communication terminal.One autonomous system is corresponding to a unique autonomous system number (ASN).Further, owing to an autonomous system can include multiple communication terminal, and an autonomous system is uniquely corresponding to an ASN, and therefore an ASN can used by multiple communication terminals.Therefore, in described first information list, an ASN can one or more IP address corresponding.
Optionally, stored each at least one corresponding for the ASN IP address of described first information list can be updated by monitoring equipment.In optional scheme, described terminal positioning device receives the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;By the identification information storage of at least one monitoring equipment feedback described to first information list.Optionally, described each monitoring equipment identification information is fed back by described monitoring device periodically, so when the IP address of the equipment of monitoring changes, by periodic feedback to update the stored first information list of described terminal positioning device.
Optionally, when searching in described first information list less than corresponding with described target ip address target ASN, then described communication terminal is not positioned by described terminal positioning device.
S103, according to the second information list, searches the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.
Concrete, after finding the target ASN corresponding with described target ip address, described terminal positioning device, according to the second information list, searches the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.In feasible scheme, described second information list can store by receiving the input of user, if ASN corresponding to autonomous system changes, it is possible to the information of the second information list is updated.
Optionally, described geographical location information is for representing the positional information that described autonomous system is currently located, further, can arranging a monitoring equipment in an autonomous system, the identification information that IP address corresponding for each ASN in so described terminal positioning device is fed back such as through monitoring equipment obtains timely updates.
Optionally, if there is an autonomous system, then certainly exist corresponding ASN and corresponding geographical location information.Therefore.The quantity of the whole ASN comprised in the described second information list quantity no less than the whole ASN comprised in described first information list.
S104, is defined as the described target geographic position information found the location information of described communication terminal, and sends described location information to described communication terminal.
Concrete, the target geographic position information found is defined as the location information of described communication terminal by described terminal positioning device, and sends described location information to described communication terminal, so will pass through ASN and realizes the location to communication terminal.
nullIn embodiments of the present invention,When receiving the Location Request carrying target ip address sent by communication terminal,By searching the target ASN corresponding with target ip address,Further determine that the target geographic position information corresponding with target ASN,The target geographic position information found is defined as the location information of communication terminal,So can pass through ASN and realize the location to communication terminal,Further,Owing to an autonomous system can include multiple communication terminal,And an autonomous system is uniquely corresponding to an ASN,Therefore an ASN can used by multiple communication terminals,Namely a geographical location information corresponding for ASN can position for multiple communication terminals,And communication terminal uniquely correspondence and an IP address in prior art,Namely the geographical location information that IP address is corresponding is only a communication terminal and positions,Therefore in the embodiment of the present invention renewal efficiency of geographical location information much larger than renewal efficiency of the prior art,And then when the IP address of communication terminal changes it is also ensured that being accurately positioned of communication terminal.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of method of locating terminal.As in figure 2 it is shown, the described method of the embodiment of the present invention may comprise steps of S201-step S207.
S201, stores the attribute information of multiple autonomous systems to the second information list, and the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
Concrete, the attribute information of multiple autonomous systems is stored to the second information list by terminal positioning device, and the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.Wherein, autonomous system is one and has the right to autonomously decide on the small unit that should adopt which kind of Routing Protocol in the present system, it it is an independent manageable NE (such as university, one enterprise or a corporate entity), namely an autonomous system can manage multiple communication terminal.One autonomous system is corresponding to a unique autonomous system number (ASN).Further, owing to an autonomous system can include multiple communication terminal, and an autonomous system is uniquely corresponding to an ASN, and therefore an ASN can used by multiple communication terminals.
In feasible scheme, described second information list can store by receiving the input of user, if ASN corresponding to autonomous system changes, it is possible to the information of the second information list is updated.Optionally, described geographical location information is for representing the positional information that described autonomous system is currently located.
S202, receives the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place.
Concrete, described terminal positioning device receives the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place.Optionally, described monitoring equipment can periodic feedback identification information, further, it is possible to arrange a monitoring equipment in an autonomous system, the identification information that IP address corresponding for each ASN in so described terminal positioning device is fed back such as through monitoring equipment obtains timely updates.
In feasible scheme, described terminal positioning device receives described monitoring equipment and is operated by the identification information of instruction feedback, and described operational order can follow the tracks of Traceroute instruction including but not limited to the Internet packets survey meter Ping instruction or route.Such as, monitoring equipment is set and performs Ping instruction or Traceroute instruction according to the cycle of 1 day 2 times to terminal positioning device.
S203, by the identification information storage of at least one monitoring equipment feedback described to first information list.
Concrete, described terminal positioning device is by the identification information storage of at least one monitoring equipment feedback described to first information list.Optionally, owing to described each monitoring equipment identification information can be fed back by described monitoring device periodically, so when the IP address of the equipment of monitoring changes, can be upgraded in time the stored first information list of described terminal positioning device by periodic feedback.
Optionally, if there is an autonomous system, then certainly exist corresponding ASN and corresponding geographical location information.Therefore.The quantity of the whole ASN comprised in the described second information list quantity no less than the whole ASN comprised in described first information list.
S204, receives the Location Request that communication terminal sends, and described Location Request comprises the target ip address of described communication terminal.
Concrete, terminal positioning device receives the Location Request that communication terminal sends, and described Location Request comprises the target ip address of described communication terminal.Optionally, the Location Request that described communication terminal sends is to send when communication terminal connects network, and the IP address that portable communication terminal is corresponding.
In feasible scheme, user of communication terminal can send Location Request in the process being inputted network address or use application program by described communication terminal, and carry the IP address that this communication terminal is current, for example, the IP address of this communication terminal can be distributed by operator, and this is not limited by the embodiment of the present invention.
S205, according to first information list, searches the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.
Concrete, described terminal positioning device, according to first information list, searches the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.
Optionally, when searching in described first information list less than corresponding with described target ip address target ASN, then described communication terminal is not positioned by described terminal positioning device.
S206, according to the second information list, searches the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.
Concrete, after finding the target ASN corresponding with described target ip address, described terminal positioning device, according to the second information list, searches the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.
S207, is defined as the described target geographic position information found the location information of described communication terminal, and sends described location information to described communication terminal.
Concrete, the target geographic position information found is defined as the location information of described communication terminal by described terminal positioning device, and sends described location information to described communication terminal, so will pass through ASN and realizes the location to communication terminal.
nullIn embodiments of the present invention,When receiving the Location Request carrying target ip address sent by communication terminal,By searching the target ASN corresponding with target ip address,Further determine that the target geographic position information corresponding with target ASN,The target geographic position information found is defined as the location information of communication terminal,So can pass through ASN and realize the location to communication terminal,Further,Owing to an autonomous system can include multiple communication terminal,And an autonomous system is uniquely corresponding to an ASN,Therefore an ASN can used by multiple communication terminals,Namely a geographical location information corresponding for ASN can position for multiple communication terminals,And communication terminal uniquely correspondence and an IP address in prior art,Namely the geographical location information that IP address is corresponding is only a communication terminal and positions,Therefore in the embodiment of the present invention renewal efficiency of geographical location information much larger than renewal efficiency of the prior art,And then when the IP address of communication terminal changes it is also ensured that being accurately positioned of communication terminal.
Refer to Fig. 3, for embodiments providing the structural representation of a kind of terminal positioning device.As it is shown on figure 3, the described terminal positioning device 1 of the embodiment of the present invention may include that reception unit 11, searches unit 12, determines unit 13 and transmitting element 14.
Receiving unit 11, for receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal.
Concrete, described reception unit 11 receives the Location Request that communication terminal sends, and described Location Request comprises the target ip address of described communication terminal.Optionally, the Location Request that described communication terminal sends is to send when communication terminal connects network, and the IP address that portable communication terminal is corresponding.
In feasible scheme, user of communication terminal can send Location Request in the process being inputted network address or use application program by described communication terminal, and carry the IP address that this communication terminal is current, for example, the IP address of this communication terminal can be distributed by operator, and this is not limited by the embodiment of the present invention.
Search unit 12, for according to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.
Concrete, described lookup unit 12, according to first information list, searches the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.Wherein, autonomous system is one and has the right to autonomously decide on the small unit that should adopt which kind of Routing Protocol in the present system, it it is an independent manageable NE (such as university, one enterprise or a corporate entity), namely an autonomous system can manage multiple communication terminal.One autonomous system is corresponding to a unique autonomous system number (ASN).Further, owing to an autonomous system can include multiple communication terminal, and an autonomous system is uniquely corresponding to an ASN, and therefore an ASN can used by multiple communication terminals.Therefore, in described first information list, an ASN can one or more IP address corresponding.
Optionally, stored each at least one corresponding for the ASN IP address of described first information list can be updated by monitoring equipment.In optional scheme, described terminal positioning device 1 receives the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;By the identification information storage of at least one monitoring equipment feedback described to first information list.Optionally, described each monitoring equipment identification information is fed back by described monitoring device periodically, so when the IP address of the equipment of monitoring changes, by periodic feedback to update the stored first information list of described terminal positioning device 1.
Optionally, when searching in described first information list less than corresponding with described target ip address target ASN, then described communication terminal is not positioned by described terminal positioning device 1.
Described lookup unit 12, is additionally operable to, according to the second information list, search the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.
Concrete, after finding the target ASN corresponding with described target ip address, described lookup unit 12, according to the second information list, searches the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.In feasible scheme, described second information list can store by receiving the input of user, if ASN corresponding to autonomous system changes, it is possible to the information of the second information list is updated.
Optionally, described geographical location information is for representing the positional information that described autonomous system is currently located, further, can arranging a monitoring equipment in an autonomous system, the identification information that IP address corresponding for each ASN in so described terminal positioning device 1 is fed back such as through monitoring equipment obtains timely updates.
Optionally, if there is an autonomous system, then certainly exist corresponding ASN and corresponding geographical location information.Therefore.The quantity of the whole ASN comprised in the described second information list quantity no less than the whole ASN comprised in described first information list.
Determine unit 13, for the described target geographic position information found being defined as the location information of described communication terminal.
Concrete, described determine that unit 13 for being defined as the location information of described communication terminal by the target geographic position found information.
Transmitting element 14, for sending described location information to described communication terminal.
Concrete, described transmitting element 14 sends described location information to described communication terminal, so will pass through ASN and realizes the location to communication terminal.
nullIn embodiments of the present invention,When receiving the Location Request carrying target ip address sent by communication terminal,By searching the target ASN corresponding with target ip address,Further determine that the target geographic position information corresponding with target ASN,The target geographic position information found is defined as the location information of communication terminal,So can pass through ASN and realize the location to communication terminal,Further,Owing to an autonomous system can include multiple communication terminal,And an autonomous system is uniquely corresponding to an ASN,Therefore an ASN can used by multiple communication terminals,Namely a geographical location information corresponding for ASN can position for multiple communication terminals,And communication terminal uniquely correspondence and an IP address in prior art,Namely the geographical location information that IP address is corresponding is only a communication terminal and positions,Therefore in the embodiment of the present invention renewal efficiency of geographical location information much larger than renewal efficiency of the prior art,And then when the IP address of communication terminal changes it is also ensured that being accurately positioned of communication terminal.
Refer to Fig. 4, for embodiments providing the structural representation of another kind of terminal positioning device.As shown in Figure 4, wherein, the terminal positioning device shown in Fig. 4 is that terminal positioning device as shown in Figure 3 is optimized and obtains.Compared with the terminal positioning device shown in Fig. 3, the terminal positioning device 1 shown in Fig. 4 is except all unit including the terminal positioning device 1 shown in Fig. 3, it is also possible to include the first memory element 15 and the second memory element 16.
First memory element 15, for storing the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
Receiving unit 11, be additionally operable to receive the identification information of at least one monitoring equipment feedback, wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place.
Implementing in process, described reception unit 11 is operated by the identification information of instruction feedback specifically for receiving at least one monitoring equipment, and described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.Optionally, described each monitoring equipment identification information is fed back by described monitoring device periodically.
Second memory element 16, for by the identification information storage of at least one monitoring equipment feedback described to first information list.
Receiving unit 11, for receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal.
Search unit 12, for according to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address.
Described lookup unit 12, is additionally operable to, according to the second information list, search the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN.
Determine unit 13, for the described target geographic position information found being defined as the location information of described communication terminal.
Transmitting element 14, for sending described location information to described communication terminal.
It should be noted that the function of each functional unit can implement according to the method in embodiment of the method shown in above-mentioned Fig. 2 in the behavior device 1 of terminal described by the embodiment of the present invention, repeat no more herein.
Refer to Fig. 5, for the structural representation of a kind of server that the embodiment of the present invention provides.As it is shown in figure 5, described server 1000 includes at least one processor 1001, for instance CPU, at least one communication bus 1002, input equipment 1003, outut device 1004 and memorizer 1005.Wherein, described communication bus 1002 is for realizing the connection communication between these assemblies.It is first-class that input equipment 1003 can include display screen, keyboard, shooting.Outut device 1004 optionally can include display screen etc..Memorizer 1005 can be high-speed RAM memorizer, it is also possible to be non-labile memorizer (non-volatilememory), for instance at least one disk memory.Memorizer 1005 optionally can also is that at least one is located remotely from the storage device of aforementioned processor 1001.As the memorizer 1005 of a kind of computer-readable storage medium can include application program.
In the server 1000 shown in Fig. 5, processor 1001 may be used for calling the application program of storage in memorizer 1005, and specifically performs following steps:
Receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
According to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
According to the second information list, searching the target geographic position information corresponding with described target ASN, described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
The described target geographic position information found is defined as the location information of described communication terminal, and sends described location information to described communication terminal.
In one embodiment, described processor 1001, before performing to receive the Location Request that communication terminal sends, also performs following steps:
Being stored by the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
In one embodiment, described processor 1001 also performs following steps:
Receiving the identification information of at least one monitoring equipment feedback, wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;
By the identification information storage of at least one monitoring equipment feedback described to first information list.
In one embodiment, described processor 1001 is performing to receive the identification information of at least one monitoring equipment feedback, specifically performs following steps:
Receiving at least one monitoring equipment and be operated by the identification information of instruction feedback, described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.
In one embodiment, each monitoring equipment identification information is fed back by described monitoring device periodically.
It should be noted that the step performed by processor 1001 can implement according to the method in embodiment of the method shown in above-mentioned Fig. 2 in mobile terminal described by the embodiment of the present invention, repeat no more herein.
Module described in the embodiment of the present invention or unit, universal integrated circuit can be passed through, for instance CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Module or unit in embodiment of the present invention terminal can merge according to actual needs, divide and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
Above disclosed it is only present pre-ferred embodiments, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention contains.Above disclosed it is only present pre-ferred embodiments, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention contains.

Claims (10)

1. a method of locating terminal, it is characterised in that including:
Receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
According to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
According to the second information list, searching the target geographic position information corresponding with described target ASN, described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
The described target geographic position information found is defined as the location information of described communication terminal, and sends described location information to described communication terminal.
2. method according to claim 1, it is characterised in that before the Location Request that described reception communication terminal sends, also include:
Being stored by the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
3. method according to claim 1, it is characterised in that described method also includes:
Receiving the identification information of at least one monitoring equipment feedback, wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;
By the identification information storage of at least one monitoring equipment feedback described to first information list.
4. method according to claim 3, it is characterised in that the identification information of at least one monitoring equipment feedback of described reception, including:
Receiving at least one monitoring equipment and be operated by the identification information of instruction feedback, described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.
5. the method according to claim 3 or 4, it is characterised in that described each monitoring equipment identification information is fed back by described monitoring device periodically.
6. a terminal positioning device, it is characterised in that including:
Receiving unit, for receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
Search unit, for according to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
Described lookup unit, is additionally operable to, according to the second information list, search the target geographic position information corresponding with described target ASN, and described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
Determine unit, for the described target geographic position information found being defined as the location information of described communication terminal;
Transmitting element, for sending described location information to described communication terminal.
7. device according to claim 6, it is characterised in that described device also includes the first memory element:
Described first memory element, for storing the attribute information of multiple autonomous systems to the second information list, the attribute information of each autonomous system includes the geographical location information corresponding with described each autonomous system for ASN of described each autonomous system.
8. device according to claim 6, it is characterised in that described device also includes the second memory element:
Described reception unit, is additionally operable to receive the identification information of at least one monitoring equipment feedback, and wherein, the identification information of each monitoring equipment includes the ASN that the IP address of described monitoring equipment is corresponding with the autonomous system at described monitoring equipment place;
Described second memory element, for by the identification information storage of at least one monitoring equipment feedback described to first information list.
9. device according to claim 8, it is characterized in that, described reception unit is operated by the identification information of instruction feedback specifically for receiving at least one monitoring equipment, and described operational order includes the Internet packets survey meter Ping instruction or route follows the tracks of Traceroute instruction.
10. a server, described server includes processor and memorizer, it is characterised in that described memorizer is used for storing executable program code;Described processor runs the program corresponding with executable program code by reading the executable program code of storage in described memorizer, to perform following steps:
Receiving the Location Request that communication terminal sends, described Location Request comprises the target ip address of described communication terminal;
According to first information list, search the Target Autonomous System ASN corresponding with described target ip address, described first information list include multiple ASN and with each at least one corresponding for ASN IP address;
According to the second information list, searching the target geographic position information corresponding with described target ASN, described second information list includes multiple ASN and the geographical location information corresponding with each ASN;
The described target geographic position information found is defined as the location information of described communication terminal, and sends described location information to described communication terminal.
CN201610258728.3A 2016-04-23 2016-04-23 A kind of method of locating terminal and device, server Active CN105763646B (en)

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 true CN105763646A (en) 2016-07-13
CN105763646B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014638A (en) * 2021-02-22 2021-06-22 北京字节跳动网络技术有限公司 Interaction method, interaction device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014638A (en) * 2021-02-22 2021-06-22 北京字节跳动网络技术有限公司 Interaction method, interaction device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105763646B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN102595249B (en) Method and device as well as system for positioning geographic position of television
CN101911689B (en) Targeted television advertisements based on online behavior
KR102504075B1 (en) Matching and attributes of user device events
US20110078775A1 (en) Method and apparatus for providing credibility information over an ad-hoc network
CN103313192A (en) Multiple-screen sharing method and system
CN104866505A (en) Application recommendation method and device
CN103905471A (en) Social network information push method, server and social network
CN104462285A (en) Privacy protection method for mobile service inquiry system
CN105574170A (en) Web page link opening method and terminal
CN103986773A (en) Data request response method and device
CN105450772A (en) Traffic-free downloading method and device
NO20015880D0 (en) Device for navigation equipment
CN104270647A (en) Media content recommendation method and device
CN104615787A (en) Method and device for updating interface display
CN112165538A (en) Network access method, device and equipment of dual-stack terminal and readable storage medium
CN105653152A (en) Picture processing method and device and electronic equipment
CN104284000A (en) Map address book generating system and method
CN102984020A (en) Cloud-computation-based net surfing monitoring method and monitoring system and monitoring server
CN104901995B (en) A kind of methods, devices and systems pushing exhibition information
CN102006185A (en) Internet of things terminal charging query method and internet of things terminal charging query system
CN109558220B (en) Management method and equipment for fault vehicle
CN105763646A (en) Terminal positioning method and device, and server
JP6684291B2 (en) Data processing method and device
CN105159692A (en) Application identifying method, application identifying device and server
CN105763709A (en) Address list update method, user terminal and server

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