CN106850760B - Geographic position acquisition method and device - Google Patents

Geographic position acquisition method and device Download PDF

Info

Publication number
CN106850760B
CN106850760B CN201611270078.0A CN201611270078A CN106850760B CN 106850760 B CN106850760 B CN 106850760B CN 201611270078 A CN201611270078 A CN 201611270078A CN 106850760 B CN106850760 B CN 106850760B
Authority
CN
China
Prior art keywords
network access
message
terminal
server
access server
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
CN201611270078.0A
Other languages
Chinese (zh)
Other versions
CN106850760A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201611270078.0A priority Critical patent/CN106850760B/en
Publication of CN106850760A publication Critical patent/CN106850760A/en
Application granted granted Critical
Publication of CN106850760B publication Critical patent/CN106850760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • H04L67/1055Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers involving connection limits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Abstract

The embodiment of the invention provides a method for acquiring a geographical position, and relates to the field of communication. The method comprises the following steps: sending a first message for establishing connection with a network access server to the network access server; receiving a second message fed back by the network access server, and acquiring a target position code carried in the second message; obtaining configuration information corresponding to the target position code according to a corresponding relation between pre-stored configuration information and the position code, wherein the configuration information at least comprises an address of a service server; and accessing the service server according to the address of the service server. The method and the system solve the problem of poor convenience of a mode for manually selecting the service server for the set top box; the effect that the set top box automatically selects the service server and improves the convenience is achieved.

Description

Geographic position acquisition method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for acquiring a geographic location.
Background
With the rapid development of information technology and the Internet, the market of Internet Protocol Television (IPTV) industry is expanding in China, and the set-top box plays an extremely important role as a terminal device of the IPTV.
Since service servers for providing corresponding services for set-top boxes in different cities may be different, the service server of the set-top box needs to be manually selected according to the geographical location of the set-top box after the user starts the set-top box.
However, usually, the user does not know the corresponding relationship between the geographical location of the set-top box and the service server, so that an installer is often required to select the service server of the set-top box at home, and the manual service server selection method is not convenient.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method and an apparatus for acquiring a geographic location. The technical scheme is as follows:
in a first aspect, a geographic location obtaining method is provided, where the method includes: sending a first message for establishing connection with a network access server to the network access server; receiving a second message fed back by the network access server, and acquiring a target position code carried in the second message; obtaining configuration information corresponding to the target position code according to a corresponding relation between pre-stored configuration information and the position code, wherein the configuration information at least comprises an address of a service server; and accessing the service server according to the address of the service server.
According to the geographic position acquisition method provided by the embodiment of the invention, the target position code corresponding to the geographic position of the terminal is acquired from the network access server through the terminal, the configuration information corresponding to the target position code is obtained according to the corresponding relation between the pre-stored configuration information and the position code, and the service server is accessed according to the address of the service server carried in the configuration information; the effect that the set top box automatically selects the service server and improves the convenience is achieved.
With reference to the first aspect, in a first possible implementation of the first aspect, before the receiving the second packet fed back by the network access server, the method further includes: broadcasting a third message to a plurality of network access servers, wherein the third message carries a function identifier for inquiring a preset function, and the third message is used for triggering the network access servers to send a feedback message to the terminal when detecting that a function list of the network access servers comprises the function identifier; and when a feedback message sent by at least one network access server in the plurality of network access servers is received, determining a target network access server in the at least one network access server.
In a second aspect, a geographic position acquisition method is provided, the method including: when a first message sent by a terminal is received, establishing connection with the terminal; acquiring a local preset geographic position, and adding a target position code corresponding to the geographic position into a second message; and feeding back the second message to the terminal.
According to the geographic position obtaining method provided by the embodiment of the invention, the target position code corresponding to the geographic position of the terminal is sent to the terminal through the network access server, the terminal obtains the configuration information corresponding to the target position code according to the corresponding relation between the prestored configuration information and the position code, and the terminal accesses the service server according to the address of the service server carried in the configuration information, so that the terminal can automatically access the service server corresponding to the target position code according to the target position code, and the problem of poor convenience in the mode of manually selecting the service server for the set top box is solved; the effect that the set top box automatically selects the service server and improves the convenience is achieved.
With reference to the second aspect and the first possible implementation of the second aspect, in a second possible implementation of the second aspect, before the acquiring a local preset geographic location after the connection is established with the terminal, the method further includes: receiving a second message broadcast by the terminal, and acquiring a function identifier carrying a query predetermined function in the second message; and when detecting that the local function list comprises the function identifier, sending a feedback message to the terminal, wherein the feedback message is used for triggering the terminal to determine a target network access server in at least one network access server.
With reference to the second aspect, the first and second possible implementations of the second aspect, in a third possible implementation of the second aspect, the second packet is a PPPOE packet, and adding the target location code corresponding to the geographic location to the second packet includes: and adding the target position code corresponding to the geographic position into the Tag for carrying the position code.
With reference to the second aspect and the third possible implementation of the first to the second aspect of the second aspect, in a fourth possible implementation of the second aspect, the adding the target location code corresponding to the geographic location to the second packet is performed by: and adding the target position code corresponding to the geographic position into a preset field for carrying the position code.
In a third aspect, a server is provided, where the server includes a processor, a memory connected to the processor, and a network interface, and the processor is configured to implement the geographic location obtaining method of the first aspect.
In a fourth aspect, a geographic position obtaining apparatus is provided, where the geographic position obtaining apparatus includes at least one unit, and the at least one unit is respectively configured to implement the corresponding steps involved in the geographic position obtaining method of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a geographic position acquisition system according to an exemplary embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present invention;
FIG. 3 is a block diagram of a backend server provided by an exemplary embodiment of the present invention;
FIG. 4A is a flowchart of a geographic location acquisition method provided by an exemplary embodiment of the present invention;
fig. 4B is a diagram of a PPPOE frame format according to an exemplary embodiment of the present invention;
fig. 4C is a diagram illustrating a DHCP message format according to an exemplary embodiment of the present invention;
FIG. 5 is a flowchart of a geographic location acquisition method provided by an exemplary embodiment of the present invention;
fig. 6 is a block diagram of a geographic position acquisition device according to an embodiment of the present invention;
fig. 7 is a block diagram of a geographic position acquisition device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
"module" as referred to herein refers to a program or instructions stored in memory that is capable of performing certain functions; reference herein to "a unit" is to a logically partitioned functional structure, and the "unit" may be implemented by pure hardware or a combination of hardware and software.
Referring to fig. 1, a schematic structural diagram of a geographic location obtaining system according to an exemplary embodiment of the present invention is shown. The geographical position acquisition system includes: a terminal 120, a network access server 140 and a service server 160.
The terminal 120 may be connected to the network access server 140 and the service server 160 through a Wireless network or a wired network, or may be connected through a router, where the Wireless network may be a mobile data network or a Wireless Fidelity (Wi-Fi), or a Wireless network such as bluetooth.
The terminal 120 may be a Set Top Box (STB) or other similar devices, and the present embodiment is not limited in particular.
The network Access Server 140 may be a Broadband Remote Access Server (BRAS), and the embodiment is not limited in particular.
The network access server 140 may be a server, a server cluster composed of several servers, or a cloud computing service center. Similarly, the service server 160 can be a server, a server cluster composed of several servers, or a cloud computing service center.
Referring to fig. 2, a schematic structural diagram of a terminal according to an exemplary embodiment of the present invention is shown. The terminal 120 includes: a processor 21, a network interface 22, a cache 23, a memory 24, and a bus 35.
The processor 21 includes one or more processing cores, and the processor 21 executes various functional applications and data processing by executing software programs and modules.
The network interface 22 is used for the load generator to communicate with the database system.
The memory 24 and the cache 23 are connected to the processor 21 via a bus 35, respectively.
Memory 24 may be used to store software programs and modules.
The memory 24 may store an application module 26 required for at least one function, and the application module 26 may be a receiving module 261, an executing module 262, a transmitting module 263, and the like.
The receiving module 261 is configured to receive, through the network interface 22, a second message fed back by the network access server, and acquire a target location code carried in the second message.
The execution module 262 is configured to obtain configuration information corresponding to the target location code according to a pre-stored correspondence between the configuration information and the location code, where the configuration information at least includes an address of the service server; accessing a service server according to the address of the service server; and when receiving a feedback message sent by at least one network access server in the plurality of network access servers, determining a target network access server in the at least one network access server.
The sending module 263 is configured to send a first message for establishing a connection with the network access server to the network access server through the network interface 22; and broadcasting a third message to the plurality of network access servers, wherein the third message carries a function identifier for inquiring a preset function, and the third message is used for triggering the network access servers to send a feedback message to the terminal when detecting that the function list of the network access servers comprises the function identifier.
The memory 24 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Referring to fig. 3, a schematic structural diagram of a background server according to an exemplary embodiment of the present invention is shown. The network access server 140 includes: a processor 31, a network interface 32, a cache 33, a memory 34, and a bus 35.
The processor 31 includes one or more processing cores, and the processor 31 executes various functional applications and data processing by executing software programs and modules.
The network interface 32 is used for the load generator to communicate with the database system.
The memory 34 and the cache 33 are connected to the processor 31 via a bus 35, respectively.
The memory 34 may be used to store software programs and modules.
The memory 34 may store an application module 36 required for at least one function, and the application module 36 may be a receiving module 361, an executing module 362, a transmitting module 363, and the like.
The receiving module 361 is configured to receive a third packet broadcast by the terminal through the network interface 32, and obtain a function identifier carrying the query reservation function in the third packet.
The execution module 362 is configured to establish a connection with the terminal when receiving a first message sent by the terminal;
after establishing connection with the terminal, acquiring a local preset geographic position, and adding a target position code corresponding to the geographic position into a second message; adding a target location code corresponding to the geographic location into a Tag for carrying the location code; and adding a target location code corresponding to the geographic location to a predetermined field for carrying the location code.
The sending module 363 is configured to feed back the second message to the terminal through the network interface 32; and when detecting that the local function list comprises the function identifier, sending a feedback message to the terminal, wherein the feedback message is used for triggering the terminal to determine a target network access server in at least one network access server.
The memory 34 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Those skilled in the art will appreciate that the configuration of the network access server shown in fig. 1 does not constitute a limitation of the network access server and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
Referring to fig. 4A, a flowchart of a geographic location obtaining method according to an exemplary embodiment of the present invention is shown. In this embodiment, the method is exemplified by being applied to a geographic location acquiring system as shown in fig. 1, in which the terminal in this embodiment is a Set Top Box (Set Top Box, abbreviated as STB) and other similar devices, the network Access Server is a Broadband Remote Access Server (BRAS), and the method includes the following steps:
step 401, the terminal sends a first message for establishing a connection with the network access server to the network access server.
Correspondingly, when the first message sent by the terminal is received, the network access server establishes connection with the terminal.
Different areas use different network protocols, some areas use point-to-point Protocol over Ethernet (PPPOE), and some areas use Dynamic Host Configuration Protocol (DHCP).
PPPOE: please refer to fig. 4B, which illustrates a diagram of a PPPOE frame format according to an exemplary embodiment of the present invention. Payload (English: Payload Data) in the PPPOE message comprises a plurality of marks (English: TAG), and the terminal unicast-sends the first message to the network access server.
DHCP: referring to fig. 4C, a diagram illustrating a DHCP message format according to an exemplary embodiment of the present invention is shown. The option field in the DHCP message may be used to store control information and parameters defined by the extension, and the terminal sends the first message to the network access server.
Step 402, the network access server obtains a local preset geographic position, and adds a target location code corresponding to the geographic position into the second message.
In this embodiment, the preset geographic location is a geographic location of the network access server that is manually preset.
Different cities are all provided with network access servers corresponding to the cities, and the network access servers accessed by the terminals are the network access servers in the same city, so that the geographic position of the terminal is the geographic position of the network access server.
PPPOE: each Tag in the PPPOE message is of a Type-size-data (english: Type-Length-Value, TLV for short) structure, where the Length of the Type is 16 bits, and the Length is 16 bits, which represents the Length of the Value. In this embodiment, a Tag including a geographical location is defined in a PPPOE message in an extended manner, a network access server determines, according to a preset geographical location and according to a correspondence between a pre-stored geographical location and a location code, a target location code corresponding to the geographical location where the terminal is located, adds the target location code to a Tag for carrying the location code in a second message (PPPOE active Discovery session message (PADS)), and sends the Tag to the terminal, where the Tag has a structure shown in table one:
Type Length Value
0x0903 4 1301
watch 1
Optionally, the geographic location is represented by a city code, which is a standard city code defined by the national statistical institute of china, such as: the Tag with the Type-Length-Value of "0 x 0903-4-1301" means that the Type 0x0903 message carries the Tag 1301.
DHCP: each option field in the DHCP message is a Code-Length-Value (CLV) structure. In this embodiment, a predetermined field (Options field) including a geographic location is defined in a DHCP message in an extended manner, a network access server adds a target location code corresponding to the geographic location where a terminal is located to the predetermined field for carrying the location code in a second message (DHCP-ACK message) according to a preset geographic location and a correspondence between a pre-stored geographic location and the location code, and a structure of the Options field is shown in table two:
Code Length Value
217 4 1301
watch two
Optionally, the geographic location is represented by a city code, which is a standard city code defined by the national statistical institute of china, such as: the Options field with Code-Length-Value of "217-4-1301" means that Code 217 carries Code 1301 in the message.
Step 403, the network access server feeds back the second message to the terminal.
Correspondingly, the terminal receives a second message fed back by the network access server.
In step 404, the terminal obtains the target location code carried in the second message.
PPPOE: and after receiving a second message fed back by the network access server, the terminal analyzes the Tag in the second message and acquires the target position code from the Tag.
DHCP: and after receiving a second message fed back by the network access server, the terminal analyzes the Options field and acquires the target position code from the Options field.
Step 405, the terminal obtains the configuration information corresponding to the target location code according to the corresponding relationship between the pre-stored configuration information and the location code, wherein the configuration information at least comprises the address of the service server.
The service server in this embodiment includes a manufacturer server and a province service server.
For example, when the target location code acquired by the terminal is 1301, according to the corresponding relationship between the pre-stored configuration information and the location code, the geographic location corresponding to 1301 is the Shijiazhuang city and the configuration information corresponding to 1301 are obtained.
And 406, the terminal accesses the service server according to the address of the service server.
When the terminal accesses the manufacturer server, related resources such as videos and the like can be obtained from the manufacturer server, and when the terminal accesses the province service server, services such as weather, news and the like related to the target geographic position are requested from the province service server.
In summary, in the geographic location obtaining method provided in the embodiment of the present invention, the target location code corresponding to the geographic location where the terminal is located is obtained from the network access server through the terminal, the configuration information corresponding to the target location code is obtained according to the correspondence between the pre-stored configuration information and the location code, and the service server is accessed according to the address of the service server carried in the configuration information, so that the terminal can automatically access the service server corresponding to the target location code according to the target location code, thereby solving the problem of poor convenience in the manual selection of the service server for the set top box; the effect that the set top box automatically selects the service server and improves the convenience is achieved.
Referring to fig. 5, a flowchart of a geographic location obtaining method according to an exemplary embodiment of the present invention is shown. The method comprises the following steps:
step 501, the terminal broadcasts a third message to a plurality of network access servers.
Correspondingly, the network access server receives the third message broadcasted by the terminal.
In this embodiment, the third packet carries a function identifier for querying a predetermined function, and when the terminal needs to obtain a certain service from the network access server, the network access server needs to send the function identifier for querying the predetermined function corresponding to the service to be obtained.
PPPOE: and the terminal broadcasts and sends a third message (PPPoE Active Discovery Initiation message (PADI) for short) to the plurality of network access servers.
DHCP: and the terminal accesses to a plurality of network access servers to broadcast and send a third message (DHCP-DISCOVER message).
Step 502, the network access server obtains a function identifier carrying the query predetermined function in the third packet.
Step 503, when detecting that the local function list includes the function identifier, the network access server sends a feedback message to the terminal.
The function list of the local network access server stores the function identification of the function which can be provided by the network access server.
PPPOE: the network access server obtains a function identifier carrying a query predetermined function in the third message, matches the function identifier with a function identifier in a local function list, and if the function list includes the function identifier of the predetermined function, the network access server unicasts a reply feedback message (a PPPoE active Discovery Offer message (hereinafter, referred to as PADO)) to the terminal, where the feedback message must include a Tag whose Type is the identifier of the network access server, a Tag whose Type is the query predetermined function, and any number of tags whose types are other types, and the Tag whose Type is the identifier of the network access server and the Tag whose Type is the query predetermined function are used to indicate to the terminal that the network access server can provide a service corresponding to the predetermined function.
DHCP: the network access server obtains a function identifier carrying a query preset function in the third message, matches the function identifier with a function identifier in a local function list, if the function list comprises the function identifier of the preset function, the network access server allocates an available IP address for the terminal, adds the IP address and other configuration information into a DHCP-OFFER message, and replies the DHCP-OFFER message to the terminal in a unicast manner, wherein the DHCP-OFFER message is used for indicating to the terminal that the network access server can provide a service corresponding to the preset function and the available IP address provided for the terminal.
In step 504, when receiving a feedback message sent by at least one network access server of the plurality of network access servers, the terminal determines a target network access server among the at least one network access server.
Optionally, the terminal randomly determines the target network access server in the at least one network access server.
Optionally, the terminal determines, according to a predetermined rule, a target network access server in at least one network access server, where the target network access server is a server that is connected to the terminal most recently, a server that has the smallest transmission delay with the terminal, and the like, and the predetermined rule of the target network access server is not limited in this embodiment.
DHCP: when the terminal determines the target network access server, the terminal sends a DHCP-REQUEST message to the network access server sending the feedback message in a broadcasting mode, wherein the DHCP-REQUEST message comprises the IP address of the target network access server determined by the terminal, and the DHCP-REQUEST message is used for informing the network access server sending the feedback message, and the target network access server determined by the terminal.
Step 505, the terminal sends a first message for establishing connection with the network access server to the network access server.
Correspondingly, when the first message sent by the terminal is received, the network access server establishes connection with the terminal.
Step 506, the network access server obtains a local preset geographic position, and adds a target location code corresponding to the geographic position to the second message.
Step 507, the network access server feeds back the second message to the terminal.
Correspondingly, the terminal receives a second message fed back by the network access server.
Step 508, the terminal obtains the target location code carried in the second message.
In step 509, the terminal obtains the configuration information corresponding to the target location code according to the pre-stored correspondence between the configuration information and the location code.
In this embodiment, the configuration information at least includes an address of the service server.
And step 510, the terminal accesses the service server according to the address of the service server.
It should be noted that steps 507 to 512 in this embodiment are similar to steps 401 to 406, and thus steps 505 to 510 and the detailed description thereof are omitted in this embodiment.
In summary, in the geographic location obtaining method provided in the embodiment of the present invention, the target location code corresponding to the geographic location where the terminal is located is sent to the terminal through the network access server, the terminal obtains the configuration information corresponding to the target location code according to the correspondence between the pre-stored configuration information and the location code, and accesses the service server according to the address of the service server carried in the configuration information, and because the terminal can automatically access the service server corresponding to the target location code according to the target location code, the problem of poor convenience in the manual selection of the service server for the set-top box is solved; the effect that the set top box automatically selects the service server and improves the convenience is achieved.
Referring to fig. 6, a block diagram of a geographic position obtaining apparatus according to an embodiment of the present invention is shown. The geographic position acquisition means may be implemented as all or a portion of the terminal 120 in software, hardware, or a combination of both. The geographical position acquisition means may include: an execution unit 601 and a sending unit 602.
An executing unit 601, configured to implement the function of at least one of step 404, step 405, and step 406.
A sending unit 602, configured to implement the function of step 401.
Reference may be made in connection with the above-described method embodiments.
In another alternative embodiment, the executing unit 602 is configured to implement the functions of at least one of step 504, step 508, and step 510.
In another optional embodiment, the sending unit 603 is configured to implement the function of at least one of the steps 501 and 505.
It should be noted that the execution unit 601 can be implemented by a processor of the terminal 120 executing an execution module in a memory; the transmitting unit 602 may be implemented by a processor of the terminal 120 executing a transmitting module in a memory.
Referring to fig. 7, a block diagram of a geographic position obtaining apparatus according to an embodiment of the present invention is shown. The geographic location acquisition device may be implemented as all or part of the network access server 140 by software, hardware, or a combination of both. The geographical position acquisition means may include: an execution unit 701 and a transmission unit 702.
An executing unit 701, configured to implement the function of step 402.
A sending unit 702, configured to implement the function of step 403.
Reference may be made in connection with the above-described method embodiments.
In another alternative embodiment, the execution unit 701 is configured to implement the function of at least one of the steps 502 and 506.
In another alternative embodiment, the sending unit 702 is configured to implement the function of at least one of the steps 503 and 507.
It should be noted that the execution unit 701 may be implemented by a processor of the network access server 140 executing an execution module in a memory; the sending unit 702 may be implemented by a processor of the network access server 140 executing a sending module in a memory.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A geo-location acquisition method, the method comprising:
sending a first message for establishing connection with a network access server to the network access server;
receiving a second message fed back by the network access server, and acquiring a target location code carried in the second message, wherein the network access server is used for acquiring a local preset geographic location, adding the target location code corresponding to the geographic location into the second message and feeding back the second message to the terminal, and the preset geographic location is the geographic location of the network access server;
obtaining configuration information corresponding to the target position code according to a corresponding relation between prestored configuration information and position codes, wherein the configuration information at least comprises an address of a service server, and the service server comprises a manufacturer server and a provincial service server;
and accessing the service server according to the address of the service server.
2. The method of claim 1, wherein before receiving the second message fed back by the network access server, the method further comprises:
broadcasting a third message to a plurality of network access servers, wherein the third message carries a function identifier for inquiring a preset function, and the third message is used for triggering the network access servers to send a feedback message to the terminal when detecting that a function list of the network access servers comprises the function identifier;
and when a feedback message sent by at least one network access server in the plurality of network access servers is received, determining a target network access server in the at least one network access server.
3. A geo-location acquisition method, the method comprising:
when a first message sent by a terminal is received, establishing connection with the terminal;
acquiring a local preset geographical position, and adding a target position code corresponding to the geographical position into a second message, wherein the preset geographical position is the geographical position of a network access server;
and feeding back the second message to the terminal, wherein the terminal is used for obtaining the configuration information corresponding to the target position code carried in the second message according to the corresponding relation between the pre-stored configuration information and the position code, and accessing the service server according to the address of the service server included in the configuration information, and the service server includes a manufacturer server and a province service server.
4. The method according to claim 3, wherein before acquiring the local preset geographical location after the connection with the terminal is established, the method further comprises:
receiving a third message broadcasted by the terminal, and acquiring a function identifier carrying a query predetermined function in the third message;
and when detecting that the local function list comprises the function identifier, sending a feedback message to the terminal, wherein the feedback message is used for triggering the terminal to determine a target network access server in at least one network access server.
5. The method of claim 3, wherein the second packet is a PPPOE packet, and wherein adding the destination location code corresponding to the geographic location to the second packet comprises:
and adding the target position code corresponding to the geographic position into the Tag for carrying the position code.
6. The method of claim 3, wherein the second message is a DHCP message, and wherein adding the destination location code corresponding to the geographic location to the second message comprises:
and adding the target position code corresponding to the geographic position into a preset field for carrying the position code.
7. A terminal, characterized in that the terminal comprises: a processor, a memory, and a transceiver, the memory to store one or more instructions configured to be executed by the processor;
the transceiver is used for sending a first message for establishing connection with a network access server to the network access server;
the transceiver is further configured to receive a second message fed back by the network access server, and acquire a target location code carried in the second message, where the network access server is configured to acquire a locally preset geographic location, add the target location code corresponding to the geographic location to the second message, and feed back the second message to the terminal, where the preset geographic location is the geographic location of the network access server;
the processor is used for obtaining configuration information corresponding to the target position code according to a corresponding relation between prestored configuration information and position codes, wherein the configuration information at least comprises an address of a service server, and the service server comprises a manufacturer server and a province service server;
the processor is further configured to access the service server according to the address of the service server.
8. The terminal of claim 7, wherein the transceiver is further configured to:
broadcasting a third message to a plurality of network access servers, wherein the third message carries a function identifier for inquiring a preset function, and the third message is used for triggering the network access servers to send a feedback message to the terminal when detecting that a function list of the network access servers comprises the function identifier;
and when a feedback message sent by at least one network access server in the plurality of network access servers is received, determining a target network access server in the at least one network access server.
9. A network access server, the network access server comprising: a processor, a memory, and a transceiver, the memory to store one or more instructions configured to be executed by the processor;
the processor is used for establishing connection with the terminal when receiving a first message sent by the terminal;
the processor is used for acquiring a local preset geographic position after establishing connection with the terminal, and adding a target position code corresponding to the geographic position into the second message, wherein the preset geographic position is the geographic position of the network access server;
the transceiver is further configured to feed back the second packet to the terminal, and the terminal is configured to obtain configuration information corresponding to a target location code carried in the second packet according to a correspondence between pre-stored configuration information and a location code, and access the service server according to an address of the service server included in the configuration information, where the service server includes a manufacturer server and a province service server.
10. The network access server of claim 9, wherein the transceiver is further configured to:
receiving a third message broadcasted by the terminal, and acquiring a function identifier carrying a query predetermined function in the third message;
and when detecting that the local function list comprises the function identifier, sending a feedback message to the terminal, wherein the feedback message is used for triggering the terminal to determine a target network access server in at least one network access server.
11. The network access server of claim 9, wherein the second packet is a PPPOE packet, and wherein the processor is further configured to:
and adding the target position code corresponding to the geographic position into the Tag for carrying the position code.
12. The network access server of claim 9, wherein the second message is a DHCP message, and wherein the processor is further configured to:
and adding the target position code corresponding to the geographic position into a preset field for carrying the position code.
CN201611270078.0A 2016-12-30 2016-12-30 Geographic position acquisition method and device Active CN106850760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270078.0A CN106850760B (en) 2016-12-30 2016-12-30 Geographic position acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270078.0A CN106850760B (en) 2016-12-30 2016-12-30 Geographic position acquisition method and device

Publications (2)

Publication Number Publication Date
CN106850760A CN106850760A (en) 2017-06-13
CN106850760B true CN106850760B (en) 2020-10-27

Family

ID=59118273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270078.0A Active CN106850760B (en) 2016-12-30 2016-12-30 Geographic position acquisition method and device

Country Status (1)

Country Link
CN (1) CN106850760B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112946553B (en) * 2021-01-29 2023-04-28 南方电网科学研究院有限责任公司 Online checking method and device for same name end of distribution network
CN114285796B (en) * 2021-11-30 2023-05-19 中国人民解放军战略支援部队信息工程大学 Route addressing method and system based on geospatial identification
CN114153315A (en) * 2021-12-02 2022-03-08 浙江科顿科技有限公司 Augmented reality distributed server intelligent glasses system and control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1623311A (en) * 2001-11-19 2005-06-01 艾利森电话股份有限公司 Method and apparatus for identifying a node for data communications using its geographical location
CN101677285A (en) * 2008-09-17 2010-03-24 中兴通讯股份有限公司 Wireless device dynamic access method and system
WO2015127852A1 (en) * 2014-02-28 2015-09-03 华为技术有限公司 Method and apparatus for establishing wireless local area network tunnel and access network system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111014B (en) * 2007-08-15 2011-02-16 华为技术有限公司 Method, equipment and system for client access to third-party server
EP2271008A1 (en) * 2009-06-30 2011-01-05 Nxp B.V. Automatic configuration in a broadcast application apparatus
CN105530684B (en) * 2014-09-28 2020-09-11 腾讯科技(深圳)有限公司 Network access method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1623311A (en) * 2001-11-19 2005-06-01 艾利森电话股份有限公司 Method and apparatus for identifying a node for data communications using its geographical location
CN101677285A (en) * 2008-09-17 2010-03-24 中兴通讯股份有限公司 Wireless device dynamic access method and system
WO2015127852A1 (en) * 2014-02-28 2015-09-03 华为技术有限公司 Method and apparatus for establishing wireless local area network tunnel and access network system

Also Published As

Publication number Publication date
CN106850760A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
US10827421B2 (en) Network slice selection method, user equipment, and network device
KR102157185B1 (en) Apparatus and method for providing a service connection through access layer in wireless communication system
CN108401037B (en) Binding method, device and system of user terminal and equipment
US7469125B2 (en) Enhanced method of transferring data from a data originating device to a mobile terminal
US20030126239A1 (en) Mobile communication terminal, network access system and method thereof using the same
CN110311967B (en) Method, device, equipment and system for pushing data and receiving data
CN102761499B (en) Gateway and method for preventing same from being attacked
CN106850760B (en) Geographic position acquisition method and device
US10904743B2 (en) Methods for automatic bootstrapping of a device
JP6014761B2 (en) Method and device for discovering service information
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
US20200153789A1 (en) Configuration of an m2m device
CN109561340B (en) Multimedia service processing method, device, multimedia service group and storage medium
CN111432044A (en) Multi-link equipment MAC address management method and device and multi-link equipment
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
US20190379739A1 (en) Data transmission between an application server and at least one internet-of-things communication device using a mobile communication network
CN111970389A (en) Screen projection method, device, equipment and storage medium based on mDNS protocol
CN112449752A (en) IPv6 address configuration method and routing equipment
US11855894B2 (en) Control system, server, terminal device, control device, communication control method, and recording medium
CN109672613B (en) Self-adaptive access method and device and electronic equipment
US8055756B2 (en) Service search system for wireless ad hoc network, and service searching method thereof
WO2020177020A1 (en) Internet of things device discovery method, apparatus, and terminal device
CN108989173B (en) Message transmission method and device
KR101842971B1 (en) Network system including server and communication relay device and method of communication relay and ip allocation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20200201

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210000 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Huawei Technologies Co.,Ltd.

GR01 Patent grant
GR01 Patent grant