CN104754732B - Localization method, server and terminal - Google Patents

Localization method, server and terminal Download PDF

Info

Publication number
CN104754732B
CN104754732B CN201310750636.3A CN201310750636A CN104754732B CN 104754732 B CN104754732 B CN 104754732B CN 201310750636 A CN201310750636 A CN 201310750636A CN 104754732 B CN104754732 B CN 104754732B
Authority
CN
China
Prior art keywords
router
couple
terminal
server
egress
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
Application number
CN201310750636.3A
Other languages
Chinese (zh)
Other versions
CN104754732A (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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology 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 Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201310750636.3A priority Critical patent/CN104754732B/en
Publication of CN104754732A publication Critical patent/CN104754732A/en
Application granted granted Critical
Publication of CN104754732B publication Critical patent/CN104754732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of localization method, server and terminals, belong to the communications field.The described method includes: establishing the corresponding relationship of egress router with the couple in router being connect;Reception has the location information that the terminal of stationkeeping ability reports;Transmission path according to the positional information determines that the terminal accesses internet by the egress router;It searches the corresponding relationship and obtains couple in router corresponding with the egress router;The terminal that the couple in router obtained to lookup is connected sends the location information.The server includes: to establish module, receiving module, determining module, searching module and sending module.The terminal includes: sending module and receiving module.The present invention realizes the terminal for not having positioning function and obtains itself location information, enhances the function of location-based service.

Description

Localization method, server and terminal
Technical field
The present invention relates to the communications field, in particular to a kind of localization method, server and terminal.
Background technique
In Internet era, more and more mobile phones have positioning function.Mobile phone positioning refers to by specifically positioning skill Art is come the location information such as latitude and longitude coordinates etc. that obtain mobile phone, so as to be marked on the electronic map by the position of positioning object Technology or service.And mobile phone user is in such as IM(Instant Messenger, instant messaging) etc. search for good friend in various applications The demand of position is also more and more prominent.
But there are many terminals not have stationkeeping ability at present, such as PC(Personal Computer, personal computer), Laptop etc., these terminals can not obtain the location information of oneself, therefore also just cannot achieve and position to itself.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of localization method, server and terminal, to realize not having positioning The terminal of function obtains the location information of itself.The technical solution is as follows:
In a first aspect, providing a kind of localization method, comprising:
Establish the corresponding relationship of egress router with the couple in router being connect;
Reception has the location information that the terminal of stationkeeping ability reports;
Transmission path according to the positional information determines that the terminal accesses internet by the egress router;
It searches the corresponding relationship and obtains couple in router corresponding with the egress router;
The terminal that the couple in router obtained to lookup is connected sends the location information.
Wherein, the corresponding relationship for establishing egress router with the couple in router being connect, comprising:
The logging request message that first terminal is sent by the egress router is received, is taken in the logging request message The MAC address for the couple in router that band is connect with the first terminal;
According to the Internet protocol IP address of egress router described in the logging request Receive message;
Establish the corresponding relationship of the IP address of the egress router and the MAC Address of the couple in router;
The lookup corresponding relationship obtains couple in router corresponding with the egress router, comprising:
According to the IP address of the egress router, searches the corresponding relationship and obtain the MAC of corresponding couple in router Address.
Wherein, the method also includes:
When the couple in router being connect with the egress router increases or decreases, according to the current and outlet The couple in router that router is connected updates the corresponding relationship.
Second aspect provides a kind of localization method, comprising:
Logging request message is sent to server by the couple in router and egress router that are connected, the login is asked The information that the couple in router is carried in message is sought, so that the server establishes the egress router and the access road By the corresponding relationship of device;
The location information that the server is sent by the egress router is received, the location information is to have positioning The terminal of ability is reported to the server by the egress router.
Wherein, the couple in router and egress router by being connected sends logging request message to server, The information of the couple in router is carried in the logging request message so that the server establish the egress router with The corresponding relationship of the couple in router, comprising:
Obtain the MAC address of the couple in router of connection;
Logging request message, the logging request report are sent to server by the couple in router and egress router The MAC Address of the couple in router is carried in text, so that the server establishes the Internet protocol IP of the egress router The corresponding relationship of the MAC Address of address and the couple in router.
The third aspect provides a kind of server, comprising:
Module is established, for establishing the corresponding relationship of egress router with the couple in router being connect;
Receiving module, for receiving the location information for having the terminal of stationkeeping ability and reporting;
Determining module determines that the terminal passes through the egress router for transmission path according to the positional information Access internet;
Searching module obtains couple in router corresponding with the egress router for searching the corresponding relationship;
Sending module, the terminal that the couple in router for obtaining to lookup is connected send the location information.
Wherein, the receiving module is also used to:
The logging request message that first terminal is sent by the egress router is received, is taken in the logging request message The MAC address for the couple in router that band is connect with the first terminal;
It is described to establish module, for the Exit Road according to the logging request Receive message that the receiving module receives By the Internet protocol IP address of device, pair of the IP address of the egress router and the MAC Address of the couple in router is established It should be related to;
The searching module includes:
Searching unit searches the corresponding relationship and obtains corresponding connect for the IP address according to the egress router Enter the MAC Address of router.
Wherein, the server further include:
Update module, for when the couple in router being connect with the egress router increases or decreases, according to The couple in router currently being connect with the egress router updates the corresponding relationship.
Fourth aspect provides a kind of terminal, comprising:
Sending module, for sending logging request report to server by connected couple in router and egress router Text carries the information of the couple in router in the logging request message so that the server establish the Exit Road by The corresponding relationship of device and the couple in router;
Receiving module, the location information sent for receiving the server by the egress router, the position Information is that the terminal for having stationkeeping ability is reported to the server by the egress router.
Wherein, the receiving module further include:
Acquiring unit, the MAC address of the couple in router for obtaining connection;
The sending module is used for: sending logging request report to server by the couple in router and egress router Text carries the MAC Address of the couple in router in the logging request message, so that the server establishes the Exit Road By the corresponding relationship of the MAC Address of the Internet protocol IP address and couple in router of device.
Technical solution provided in an embodiment of the present invention have the benefit that by establish egress router with connect Couple in router corresponding relationship, reception have the location information that the terminal of stationkeeping ability reports, according to the positional information Transmission path determine the terminal by the egress router access internet, search the corresponding relationship obtain with it is described The corresponding couple in router of egress router, the terminal that the couple in router obtained to lookup is connected send the position Information realizes the terminal for not having positioning function and obtains itself location information, for what is connected under same egress router All terminals can share the location information that the terminal with positioning function is reported by the egress router, enhance position The function of service.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the localization method flow chart that the embodiment of the present invention 1 provides;
Fig. 3 is the localization method flow chart that the embodiment of the present invention 2 provides;
Fig. 4 is the localization method flow chart that the embodiment of the present invention 3 provides;
Fig. 5 is a kind of structure chart of server that the embodiment of the present invention 4 provides;
Fig. 6 is the server another kind structure chart that the embodiment of the present invention 4 provides;
Fig. 7 is the terminal structure figure that the embodiment of the present invention 5 provides;
Fig. 8 is the positioning system structure figure that the embodiment of the present invention 6 provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The present embodiments relate to localization method, server and terminals, for not having the terminal of positioning function to itself It is positioned, can be applied in positioning system.The positioning system may include egress router, couple in router and end End.The equipment that terminal refers to user side, including but not limited to: computer, laptop, mobile phone, tablet computer etc..Outlet The equipment that router refers to terminal access internet, the IP(Internet Protocol of the egress router, Internet protocol) Location is the IP address that can be identified in internet.Couple in router refers to that the equipment directly connecting with terminal, terminal can pass through Level-one or what couple in router are connect with egress router.The IP address of couple in router is usually to identify inside local area network IP address.It can connect multiple couple in routers under one outlet router, can connect multiple ends under a couple in router End.It is a network architecture schematic diagram of above-mentioned positioning system for example, with reference to Fig. 1.Wherein, which includes: Exit Road By device GW0, couple in router GW1, GW2 and GW3, connect multiple terminals under each couple in router, wherein mobile terminal M with GW1 is wirelessly connected, terminal P and GW2 wired connection.Above system further relates to server, which refers to application server, when Terminal user is at the terminal using a certain in application, provide service by the application server for user.
The localization method, server and terminal are specifically described below in conjunction with the network architecture shown in FIG. 1.
Embodiment 1
Referring to fig. 2, a kind of method of positioning is present embodiments provided, comprising:
201: establishing the corresponding relationship of egress router with the couple in router being connect;
202: reception has the location information that the terminal of stationkeeping ability reports;
203: determining that the terminal accesses internet by the egress router according to the transmission path of the location information;
204: searching the corresponding relationship and obtain couple in router corresponding with the egress router;
205: the terminal that the couple in router obtained to lookup is connected sends the location information.
In the present embodiment, the above-mentioned corresponding relationship for establishing egress router with the couple in router being connect may include:
Receive the logging request message that sends by the egress router of first terminal, carried in the logging request message and The MAC address of the couple in router of first terminal connection;According to the logging request Receive message outlet The Internet protocol IP address of router;Establish the corresponding of the IP address of the egress router and the MAC Address of the couple in router Relationship.
Further, the above-mentioned lookup corresponding relationship obtains couple in router corresponding with the egress router, can wrap It includes:
According to the IP address of the egress router, searches the corresponding relationship and obtain the MAC Address of corresponding couple in router.
In the present embodiment, the above method can also include:
When the couple in router being connect with the egress router increases or decreases, according to currently with the Exit Road by The couple in router that device is connected updates the corresponding relationship.
The above method provided in this embodiment, by the corresponding pass for establishing egress router with the couple in router connected System, reception have the location information that the terminal of stationkeeping ability reports, and transmission path according to the positional information determines the end Internet is accessed by the egress router in end, searches the corresponding relationship and obtains access corresponding with the egress router Router, the terminal that the couple in router obtained to lookup is connected send the location information, realize not to have and determine The terminal of bit function obtains the location information of itself, can share tool for all terminals connected under same egress router The location information for having the terminal of positioning function to report by the egress router enhances the function of location-based service.
Embodiment 2
Referring to Fig. 3, a kind of localization method is present embodiments provided, comprising:
301: logging request message, the login are sent to server by the couple in router and egress router that are connected The information of the couple in router is carried in request message, so that the server establishes the egress router and the couple in router Corresponding relationship;
302: receiving the location information that the server is sent by the egress router, which is to have positioning energy The terminal of power is reported to the server by the egress router.
In the present embodiment, logging request is sent to server above by the couple in router and egress router connected Message carries the information of the couple in router in the logging request message so that the server establish the egress router with should The corresponding relationship of couple in router may include:
Obtain the MAC address of the couple in router of connection;By the couple in router and Exit Road by Device sends logging request message to server, the MAC Address of the couple in router is carried in the logging request message, so that the clothes Business device establishes the corresponding relationship of the Internet protocol IP address of the egress router and the MAC Address of the couple in router.
Further, the MAC address of the couple in router of above-mentioned acquisition connection may include:
Send the arp request message of the IP address of the couple in router comprising connection;Receive access routing The response message that device returns, obtains the MAC Address of the couple in router from the response message.
In the present embodiment, the location information that the above-mentioned reception server is sent by the egress router may include:
The request for obtaining own location information is sent to the server, is received the server and is sent by the egress router Location information;Alternatively,
It receives the server and actively passes through the location information that the egress router pushes after receiving the location information.
The above method provided in this embodiment is sent by the couple in router and egress router that are connected to server Logging request message carries the information of the couple in router in the logging request message, so that the server establishes the Exit Road By the corresponding relationship of device and the couple in router, the location information that the server is sent by the egress router is received, the position Confidence breath is reported to the server by the egress router for the terminal for having stationkeeping ability, realizes not and has positioning function The terminal of energy obtains the location information of itself, and all terminals connected under same egress router can be shared to have and determined The location information that the terminal of bit function is reported by the egress router enhances the function of location-based service.
Embodiment 3
Referring to fig. 4, a kind of localization method is present embodiments provided, comprising:
401: terminal sends logging request message to server by connected couple in router and egress router, should The information of the couple in router is carried in logging request message;
Here the terminal for sending logging request message can be the terminal for having positioning function, or be also possible to not have The terminal of positioning function.When the terminal using it is a certain in application, can execute registration operation, pass through send logging request message and clothes Business device establishes connection.
Specifically, this step may include:
Terminal obtains the MAC Address of the couple in router of connection;
Logging request message is sent to server by the couple in router and egress router, in the logging request message The MAC Address of the couple in router is carried, so that the Internet protocol IP address that the server establishes the egress router connects with this Enter the corresponding relationship of the MAC Address of router.
Wherein, terminal obtains the address of the couple in router of connection, may include:
Terminal sends the ARP(Address Resolution of the IP address of the couple in router comprising connection Protocol, address resolution protocol) request message, the response message of couple in router return is received, from the response message Obtain the MAC Address of the couple in router.
402: server receives the logging request message, establishes egress router pass corresponding with the couple in router System;
This step can specifically include:
Server receives the logging request message, and the couple in router connecting with the terminal is carried in the logging request message MAC Address;
According to the Internet protocol IP address of the logging request Receive message egress router;
Establish the corresponding relationship of the IP address of the egress router and the MAC Address of the couple in router.
By taking Fig. 1 as an example, server establish corresponding relationship may include: egress router IP address with corresponding 3 The MAC Address of couple in router.As GW0 IP address be IP0, the MAC Address of GW1, GW2 and GW3 be respectively MAC1, MAC2 and MAC3.The corresponding relationship that then server is established includes: IP0, MAC1, MAC2 and MAC3, and the IP0 respectively with MAC1, MAC2 and MAC3 is corresponding.Here corresponding relationship is one-to-many corresponding relationship.
In practical applications, it will usually there are multiple terminals to send logging request messages to server, therefore, server can be with Corresponding relationship is established according to the multiple logging request messages received, and updates corresponding relationship at any time.
403: server is to receive to have the location information that the terminal of stationkeeping ability reports;
Specifically, which can be longitude and latitude information, not limit herein.The terminal of reporting position information can With by GPS(Global Positioning System, global positioning system) etc. functions realize itself positioning.
404: server determines that the terminal passes through egress router access interconnection according to the transmission path of the location information Net;
405: server searches established corresponding relationship and obtains couple in router corresponding with the egress router;
This step can specifically include:
Server searches established corresponding relationship and obtains corresponding access routing according to the IP address of the egress router The MAC Address of device.
406: the terminal that the couple in router that server is obtained to lookup is connected sends the location information;
407: the terminal being connect with the couple in router receives the location information.
In the present embodiment, server can directly push the location information, and position letter can also be sent in terminal request Breath, specific as follows:
The terminal to server for not having positioning function sends the request for obtaining own location information, and it is logical to receive the server Cross the location information of egress router transmission;Alternatively,
The terminal reception server for not having positioning function actively passes through the egress router after receiving location information to be pushed away The location information sent.
In the present embodiment, further, the above method can also include:
When the couple in router being connect with the egress router increases or decreases, server with this according to currently going out The couple in router that mouth router is connected updates the corresponding relationship.
Specifically, if there is couple in router is removed, then server can will be removed involved in the corresponding relationship access The relevant information of router is all deleted.If there is new couple in router accesses, then server can add in the corresponding relationship Add the relevant information of the couple in router of the new access, does not do excessive explanation herein.
For example, the network architecture as shown in connection with fig. 1, the corresponding relationship that server is established include: IP0, MAC1, MAC2 and MAC3, and the IP0 is corresponding with MAC1, MAC2 and MAC3 respectively.After GW2 is moved to Shanghai from Beijing, no longer it is connect with GW0, Then server can delete the address MAC2 in corresponding relationship, therefore, corresponding relationship become after updating IP0 and corresponding MAC1 and MAC3。
The above method provided in this embodiment, terminal pass through connected couple in router and egress router to server Logging request message is sent, the information of the couple in router is carried in the logging request message, server establishes outlet after receiving The corresponding relationship of router and the couple in router being connect, reception have the location information that the terminal of stationkeeping ability reports, root It determines that the terminal accesses internet by the egress router according to the transmission path of the location information, searches the corresponding pass System obtains couple in router corresponding with the egress router, the terminal that the couple in router obtained to lookup is connected The location information is sent, the terminal for not having positioning function is realized and obtains itself location information, for same Exit Road The terminal with positioning function can be shared by all terminals connected under device to believe by the position that the egress router reports Breath, enhances the function of location-based service.
Embodiment 4
Referring to Fig. 5, a kind of server is present embodiments provided, comprising:
Module 501 is established, for establishing the corresponding relationship of egress router with the couple in router being connect;
Receiving module 502, for receiving the location information for having the terminal of stationkeeping ability and reporting;
Determining module 503 determines that the terminal is connect by the egress router for the transmission path according to the location information Enter internet;
Searching module 504 obtains couple in router corresponding with the egress router for searching the corresponding relationship;
Sending module 505, the terminal that the couple in router for obtaining to lookup is connected send the location information.
In the present embodiment, receiving module 502 is also used to:
Receive the logging request message that sends by the egress router of first terminal, carried in the logging request message and The MAC address of the couple in router of first terminal connection;
Module 501 is established, the logging request Receive message egress router for being received according to receiving module 502 Internet protocol IP address establishes the corresponding relationship of the IP address of the egress router and the MAC Address of the couple in router.
In the present embodiment, further, searching module 504 may include:
Searching unit searches the corresponding relationship and obtains corresponding access road for the IP address according to the egress router By the MAC Address of device.
Referring to Fig. 6, above-mentioned server can also include:
Update module 506, for when the couple in router being connect with the egress router increases or decreases, according to The couple in router currently being connect with the egress router updates the corresponding relationship.
Above-mentioned server provided in this embodiment can execute the method that any of the above-described embodiment of the method provides, and process is detailed in Description in embodiment of the method, does not repeat herein.
Above-mentioned server provided in this embodiment, it is corresponding with the couple in router that is connected by establishing egress router Relationship, reception have the location information that the terminal of stationkeeping ability reports, described in transmission path determination according to the positional information Terminal accesses internet by the egress router, searches the corresponding relationship and obtains connect corresponding with the egress router Enter router, the terminal that the couple in router obtained to lookup is connected sends the location information, realizes and does not have The terminal of positioning function obtains the location information of itself, and all terminals connected under same egress router can be shared The location information that terminal with positioning function is reported by the egress router enhances the function of location-based service.
Embodiment 5
Referring to Fig. 7, a kind of terminal is present embodiments provided, comprising:
Sending module 701 is asked for sending to log in server by connected couple in router and egress router Seek message, the information of the couple in router carried in the logging request message so that the server establish the egress router with The corresponding relationship of the couple in router;
Receiving module 702, the location information sent for receiving the server by the egress router, the location information The server is reported to have the terminal of stationkeeping ability by the egress router.
In the present embodiment, receiving module 702 can also include:
Acquiring unit, the MAC address of the couple in router for obtaining connection;
The sending module is used for: logging request message is sent to server by the couple in router and egress router, The MAC Address of the couple in router is carried in the logging request message, so that the server establishes the internet of the egress router The corresponding relationship of the MAC Address of Protocol IP address and the couple in router.
Further, sending module 701 is also used to:
Send the arp request message of the IP address of the couple in router comprising connection;
The acquiring unit is used for, and is received the response message of couple in router return, is obtained this from the response message and connect Enter the MAC Address of router.
In the present embodiment, sending module be can be also used for: the request for obtaining own location information is sent to the server;Phase Ying Di, receiving module 702 can be used for: receive the location information that the server is sent by the egress router.
In the present embodiment, receiving module 702 can be used for:
It receives the server and actively passes through the location information that the egress router pushes after receiving the location information.
Above-mentioned terminal provided in this embodiment can execute the method that any of the above-described embodiment of the method provides, the process side of being detailed in Description in method embodiment, does not repeat herein.
Above-mentioned terminal provided in this embodiment is sent by the couple in router and egress router that are connected to server Logging request message carries the information of the couple in router in the logging request message, so that the server establishes the Exit Road By the corresponding relationship of device and the couple in router, the location information that the server is sent by the egress router is received, the position Confidence breath is reported to the server by the egress router for the terminal for having stationkeeping ability, realizes not and has positioning function The terminal of energy obtains the location information of itself, and all terminals connected under same egress router can be shared to have and determined The location information that the terminal of bit function is reported by the egress router enhances the function of location-based service.
Embodiment 6
Referring to Fig. 8, a kind of positioning system is present embodiments provided, comprising: server 801 and terminal 802.
Wherein, which can be the server that above-described embodiment 4 provides, function having the same, the terminal 802 can be the terminal that above-described embodiment 5 provides, and specific identical function does not repeat herein.
Above system provided in this embodiment can execute the method that any of the above-described embodiment of the method provides, the process side of being detailed in Description in method embodiment, does not repeat herein.
Above system provided in this embodiment, terminal pass through connected couple in router and egress router to server Logging request message is sent, the information of the couple in router is carried in the logging request message, server establishes outlet after receiving The corresponding relationship of router and the couple in router being connect, reception have the location information that the terminal of stationkeeping ability reports, root It determines that the terminal accesses internet by the egress router according to the transmission path of the location information, searches the corresponding pass System obtains couple in router corresponding with the egress router, the terminal that the couple in router obtained to lookup is connected The location information is sent, the terminal for not having positioning function is realized and obtains itself location information, for same Exit Road The terminal with positioning function can be shared by all terminals connected under device to believe by the position that the egress router reports Breath, enhances the function of location-based service.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of localization method, which is characterized in that the described method includes:
Establish the corresponding relationship of egress router with the couple in router being connect;
Reception has the location information that the terminal of stationkeeping ability reports;
Transmission path according to the positional information determines that the terminal accesses internet by the egress router;
It searches the corresponding relationship and obtains couple in router corresponding with the egress router;
The terminal that the couple in router obtained to lookup is connected sends the location information;
The method also includes:
When the couple in router being connect with the egress router increases or decreases, according to it is current with the Exit Road by The couple in router that device is connected updates the corresponding relationship.
2. the method according to claim 1, wherein the egress router of establishing is routed with the access being connect The corresponding relationship of device, comprising:
Receive the logging request message that sends by the egress router of first terminal, carried in the logging request message and The MAC address of the couple in router of the first terminal connection;
According to the Internet protocol IP address of egress router described in the logging request Receive message;
Establish the corresponding relationship of the IP address of the egress router and the MAC Address of the couple in router;
The lookup corresponding relationship obtains couple in router corresponding with the egress router, comprising:
According to the IP address of the egress router, searches the corresponding relationship and obtain the MAC Address of corresponding couple in router.
3. a kind of localization method, which is characterized in that the described method includes:
Logging request message, the logging request report are sent to server by the couple in router and egress router that are connected The information of the couple in router is carried in text, so that the server establishes the egress router and the couple in router Corresponding relationship, and when the couple in router that the egress router is connected increases or decreases, according to it is current with it is described The couple in router that egress router is connected updates the corresponding relationship;
The location information that the server is sent by the egress router is received, the location information is to have stationkeeping ability Terminal the server is reported to by the egress router.
4. according to the method described in claim 3, it is characterized in that, the couple in router and Exit Road by being connected by Device sends logging request message to server, the information of the couple in router is carried in the logging request message, so that institute State the corresponding relationship that server establishes the egress router Yu the couple in router, comprising:
Obtain the MAC address of the couple in router of connection;
Logging request message is sent to server by the couple in router and egress router, in the logging request message The MAC Address of the couple in router is carried, so that the server establishes the Internet protocol IP address of the egress router With the corresponding relationship of the MAC Address of the couple in router.
5. a kind of server, which is characterized in that the server includes:
Module is established, for establishing the corresponding relationship of egress router with the couple in router being connect;
Receiving module, for receiving the location information for having the terminal of stationkeeping ability and reporting;
Determining module determines that the terminal is accessed by the egress router for transmission path according to the positional information Internet;
Searching module obtains couple in router corresponding with the egress router for searching the corresponding relationship;
Sending module, the terminal that the couple in router for obtaining to lookup is connected send the location information;
The server further include:
Update module, for when the couple in router being connect with the egress router increases or decreases, according to current The couple in router being connect with the egress router updates the corresponding relationship.
6. server according to claim 5, which is characterized in that the receiving module is also used to:
Receive the logging request message that sends by the egress router of first terminal, carried in the logging request message and The MAC address of the couple in router of the first terminal connection;
It is described to establish module, for the egress router according to the logging request Receive message that the receiving module receives Internet protocol IP address, establish the egress router IP address it is corresponding with the MAC Address of the couple in router close System;
The searching module includes:
Searching unit searches the corresponding relationship and obtains corresponding access road for the IP address according to the egress router By the MAC Address of device.
7. a kind of terminal, which is characterized in that the terminal includes:
Sending module, for sending logging request message to server by connected couple in router and egress router, The information of the couple in router is carried in the logging request message so that the server establish the egress router with The corresponding relationship of the couple in router, and when the couple in router that the egress router is connected increases or decreases, The corresponding relationship is updated according to the current couple in router being connect with the egress router;
Receiving module, the location information sent for receiving the server by the egress router, the location information The server is reported to have the terminal of stationkeeping ability by the egress router.
8. terminal according to claim 7, which is characterized in that the receiving module further include:
Acquiring unit, the MAC address of the couple in router for obtaining connection;
The sending module is used for: logging request message is sent to server by the couple in router and egress router, The MAC Address of the couple in router is carried in the logging request message so that the server establish the Exit Road by The corresponding relationship of the MAC Address of the Internet protocol IP address and couple in router of device.
CN201310750636.3A 2013-12-31 2013-12-31 Localization method, server and terminal Active CN104754732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310750636.3A CN104754732B (en) 2013-12-31 2013-12-31 Localization method, server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310750636.3A CN104754732B (en) 2013-12-31 2013-12-31 Localization method, server and terminal

Publications (2)

Publication Number Publication Date
CN104754732A CN104754732A (en) 2015-07-01
CN104754732B true CN104754732B (en) 2018-12-07

Family

ID=53593667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310750636.3A Active CN104754732B (en) 2013-12-31 2013-12-31 Localization method, server and terminal

Country Status (1)

Country Link
CN (1) CN104754732B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557414A (en) * 2008-04-10 2009-10-14 中国移动通信集团公司 Positioning method, equipment and system based on WLAN
CN102958152A (en) * 2011-08-24 2013-03-06 中国电信股份有限公司 WLAN (wireless local area network) positioning method and positioning server for positioning third part

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7929535B2 (en) * 2006-07-07 2011-04-19 Qualcomm Incorporated Geolocation-based addressing method for IPv6 addresses
CN103297915A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and system for collecting position information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557414A (en) * 2008-04-10 2009-10-14 中国移动通信集团公司 Positioning method, equipment and system based on WLAN
CN102958152A (en) * 2011-08-24 2013-03-06 中国电信股份有限公司 WLAN (wireless local area network) positioning method and positioning server for positioning third part

Also Published As

Publication number Publication date
CN104754732A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN107852430B (en) Apparatus for forming gateway in local area network and computer-readable storage medium
EP1911250B1 (en) Technique for translating location information
CN109889618B (en) Method and system for processing DNS request
JP6302050B2 (en) System and method for improved discovery
KR101787867B1 (en) Route forwarding method, apparatus and system
JP6116758B2 (en) Method, apparatus and system for transferring packets in an information centric network (ICN)
CN106789526B (en) method and device for connecting multiple system networks
KR20170039262A (en) Server for device location registration in an internet of things(iot)
CN107147580B (en) Tunnel establishment method and communication system
US20130223447A1 (en) Network system
CN104468866A (en) Fast roaming method for multi-gateway terminal in wireless local area network
KR102486733B1 (en) Local area network communication method, device and system
US10021512B2 (en) Switching to advertising locator after connection establishment
KR20120059077A (en) System and method for peer-to-peer connection in multiple network environment
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
CN106507414B (en) Message forwarding method and device
CN102984223A (en) Message sending method and network equipment and system
CN101741902A (en) System and method for Internet terminal to quickly access to Internet server
CN103916489B (en) The many IP of a kind of single domain name domain name analytic method and system
CN104125310B (en) Message method based on semi-permanent address
CN101355530B (en) System and method for publishing information based on wireless router
WO2011041969A1 (en) Method and system for realizing the capability of supporting initiative push of data message
CN112104680B (en) Method, device and equipment for determining edge application and storage medium
ES2549902T3 (en) Method, system and device to implement a short message service between companies
CN105429880B (en) The network equipment and its method for carrying out routing forwarding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.