CN102014368B - Method, system and device for acquiring position information of user equipment - Google Patents

Method, system and device for acquiring position information of user equipment Download PDF

Info

Publication number
CN102014368B
CN102014368B CN200910092225.3A CN200910092225A CN102014368B CN 102014368 B CN102014368 B CN 102014368B CN 200910092225 A CN200910092225 A CN 200910092225A CN 102014368 B CN102014368 B CN 102014368B
Authority
CN
China
Prior art keywords
address
ggsn
positional information
access network
corresponding relation
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.)
Expired - Fee Related
Application number
CN200910092225.3A
Other languages
Chinese (zh)
Other versions
CN102014368A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN200910092225.3A priority Critical patent/CN102014368B/en
Publication of CN102014368A publication Critical patent/CN102014368A/en
Application granted granted Critical
Publication of CN102014368B publication Critical patent/CN102014368B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method, a system and a device for acquiring the position information of user equipment. The method comprises the following steps of: acquiring an internet protocol (IP) address distributed to the user equipment (UE) in a process that the UE accesses a network and a gateway GPRS support node (GGSN) IP address of an GGSN which allows the UE to access the network; acquiring the position information corresponding to the IP address of the UE according to the first correspondence between the locally stored GGSN IP address and the position information, and establishing the second correspondence between the IP address of the UE with access to the network and the acquired position information; and searching for the second correspondence according to a source IP address of data when the data is received when the UE accesses the network, and acquiring the position information of the UE which accesses the network. Through the embodiment of the invention, the position information of the UE can be acquired in a wireless application protocol (WAP) data service quickly, conveniently and accurately.

Description

The acquisition methods of position information of user's terminal, system and equipment
Technical field
The present invention relates to networking technology area, relate in particular to a kind of acquisition methods, system and equipment of position information of user's terminal.
Background technology
It is that the most basic that 2G/3G mobile communications network is provided is also the data service being most widely used that WAP (Wireless Application Protocol, WAP (wireless application protocol)) business is browsed etc. as surfing Internet with cell phone, music download, mobile phone.User can pass through all kinds of mobile terminals, all kinds of WAP/WEB websites that provided by operator or SP with wireless mode free access and the affluent resources on the Internet.Flourish along with mobile Internet and data service, whether operation system can provide more becomes more meticulous, personalized service and more accurately information will become the bright spot that attracts user.
In prior art, the schematic diagram of WAP service groups planar network architecture as shown in Figure 1.Wherein, wap data business is completed jointly by a plurality of network element cooperations in PS (Packet Switch, exchanges data) territory, comprises mobile terminal, wireless-transmission network, PS domain core net, WAP gateway, application server, fire compartment wall etc.For mobile terminal, send based on WAP/HTTP (Hyper Text Transmission Protocol, HTML (Hypertext Markup Language)) data service access request, by GGSN (Gateway GPRS Supporting Node, Gateway GPRS Support Node), service request data bag is sent to WAP gateway.WAP gateway is as the proxy access node of wap data business, with DNS (Domain Name System, domain name system) server carries out alternately, resolve destination address URL (the Uniform Resource Locator of user's access, URL(uniform resource locator)), proxy user access service server subsequently.In addition WAP gateway has also been born the functions such as authenticating user identification, user profile insertion simultaneously.
In this service groups planar network architecture, SGSN (Serving GPRS Supporting Node, Serving GPRS Support Node) and GGSN are the core network elements in the PS territory of 2G/3G network, below do concise and to the point description.
SGSN, is responsible for the packet between transmitting mobile terminal and external network in service area.Its major function also comprises: authentication and encryption, and session management, mobile management, Logical Link Management, output is used relevant metering data to wireless network.SGSN is connected with GGSN by gn interface;
GGSN, mainly play gateway effect, GPRS (General Packet Radio Service, GPRS) packet data package is carried out to protocol conversion and route distribution, packet data package is sent to the TCP/IP of far-end or network X.25 by Gi interface.
In current WAP business, the urgent hope of service provider can be convenient, obtain rapidly the user's of its resource of access or usage data business current geographic position information, and fill in and perception without the manual input of user.Geographical location information can make service provider or WEB website according to geographic proximity, can experience for user brings better Operational Visit on the one hand, and the business that strengthens user is used stickiness; Can excavate better user's business demand on the other hand, open new business pattern ,Wei operator more wide business revenue space is provided.Such as providing more targeted, more effective information according to user's current geographic position information in the application such as mobile search, moving advertising, interactive information service.
For wap data business, service server or WEB website cannot be by directly calling GPS (the Global Position System of terminal, global positioning system) LBS that ability or operator provide (Location Based Services, positioning service) stationkeeping ability obtains visiting user's positional information, present stage does not have suitable technological means to obtain the current geographical location information of user, the general information of home location that only can support the acquisition of the MSISDN (Mobile Station International ISDN Number Mobile Subscriber International ISDN number) by user terminal user.
The principle that below MSISDN by user is obtained to its information of home location is done brief description.
MSISDN refers to that calling subscriber calls out PLMN (Public Land Mobile-communicationNetwork, public land mobile communication network) number that other mobile subscriber in is required group, meet ETSIE.164 coded system, the structural representation of MSISDN as shown in Figure 2, is comprised of following part:
CC:Country Code, national code, if China is 86.
NDC:National Destination Code, domestic Number for access, for example the common NDC using of the 2G of China Mobile and TD-SCDMA user is: 13S (S=9,8,7,6,5), 1340~1348; 150,151,152,159,158;
HLR identifier: H0H1H2H3, the HLR of expression user attaching, because HLR is in each department distributed deployment, so its code number also can be used to identify mobile service local network; Take China Mobile's GSM network as example, and wherein the method for salary distribution of H1 and H2 is as shown in table 1.
SN:Subscriber Number, mobile subscriber ABCD, is distributed voluntarily by each HLR;
The table 1.GSM network H1H2 method of salary distribution
H 2H 1 0 1 2 3 4 5 6 7 8 9
0 Liaoning The Inner Mongol Guizhou
1 Beijing Beijing Beijing Beijing Jiangsu Jiangsu Shanghai Shanghai Shanghai Shanghai
2 Tianjin Tianjin Guangdong Guangdong Guangdong Guangdong Guangdong Guangdong Guangdong Guangdong
3 Guangdong Hebei Hebei Hebei Shanxi Shanxi Heilungkiang Henan Henan Henan
4 Liaoning Liaoning Liaoning Jilin Jilin Heilungkiang Heilungkiang The Inner Mongol Heilungkiang Liaoning
5 Fujian Jiangsu Jiangsu Shandong Shandong Anhui Anhui Zhejiang Zhejiang Fujian
6 Fujian Jiangsu Jiangsu Shandong Shandong Zhejiang Zhejiang Zhejiang Zhejiang Fujian
7 Jiangxi Hubei Hubei Hunan Hunan Hainan Hainan Guangxi Guangxi Jiangxi
8 Sichuan Sichuan Sichuan Chongqing Hunan Guizhou Hubei Yunnan Yunnan Tibet
9 Sichuan Shaanxi Shaanxi Gansu Gansu Ningxia Anhui Qinghai Liaoning Xinjiang
In user's WAP Operational Visit flow process, WAP gateway support is carried at user's MSISDN in request message, to be sent to service server, therefore service server can obtain by analytic message user's MSISDN, inquire about subsequently the HLR section of the MSISDN that is stored in service server this locality and the corresponding relation of information of home location, thereby obtain user's information of home location.
Problems of the prior art are: only can obtain according to user's MSISDN user's information of home location, for a large amount of user's roaming conditions that exist in reality, cannot effectively provide the relevant information in roaming geographical position.In addition, when number section ownership place data that third party's business platform or WAP/WEB website obtain exist inaccurate situation, may cause the erroneous judgement of user ascription area information.Finally , operator introduces after new section, and operation system can not be known in time and upgrade local data base, causes operation system that new section user's information of home location cannot be provided.
Summary of the invention
Embodiments of the invention provide a kind of acquisition methods, system and equipment of position information of user's terminal, for positional information quick, convenient in wap data business, that obtain accurately user terminal.
Embodiments of the invention provide a kind of acquisition methods of position information of user's terminal, comprising:
Obtain and will in user terminal UE access network process, distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network;
According to the GGSN IP address of this locality storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address and described in the second corresponding relation of the positional information obtained;
While receiving the data that send in UE accesses network process, according to the source IP address of described data, search described the second corresponding relation, obtain the positional information of the UE of described accesses network.
Wherein, described in, obtain and will in UE access network process, distribute to the IP address of UE and by before the GGSN IP address of the GGSN of described UE access network, also comprise:
The first corresponding relation of the GGSN IP address that foundation comprises each GGSN in network and corresponding positional information, described positional information comprises one or more in city title, city area code, HLR code number, self-defined positional information.
Wherein, described in obtain after the positional information of UE of accesses network, also comprise:
In the HTTP Header of the HTTP message sending to business platform, insert extra address information field for carrying the positional information of the UE of described accesses network, described business platform is resolved described address information field, obtains the positional information of described UE.
Wherein, also comprise:
When the described GGSN IP address by the GGSN of UE access network changes, obtain the GGSN IP address after renewal, according to the GGSN IP address after described renewal, positional information corresponding with the IP address of described UE in described the second corresponding relation is upgraded; And/or
While knowing that from the described GGSN by UE access network UE rolls off the production line, will in described the second corresponding relation, about the content of described UE, delete.
Wherein, described obtaining will be distributed to the IP address of UE and the GGSN IP address of the GGSN of described UE access network be comprised in user terminal UE access network process: receive the accounting request that the GGSN of described UE access network is sent and start message, obtain and distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network from described charging request message;
The described GGSN IP address obtaining after renewal comprises: receive the accounting request updating message that the new GGSN of UE access network is sent, obtain the GGSNIP address after renewal from described accounting request updating message;
Describedly from the GGSN of UE access network being known to UE rolls off the production line, comprise: receive the accounting request that the GGSN of UE access network is sent and stop message, know that described UE rolls off the production line.
Embodiments of the invention also provide a kind of system of obtaining of position information of user's terminal, comprising:
GGSN, for by user terminal UE access network process, obtains equipment to positional information and sends IP address and the GGSN IP address of distributing to described UE;
Positional information is obtained equipment, for the content obtaining sending according to described GGSN, distributes to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network; According to the GGSN IP address of this locality storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address and described in the second corresponding relation of the positional information obtained; In receiving UE accesses network process, send data time, according to the source IP address of described data, search described the second corresponding relation, obtain the positional information of the UE of described accesses network.
Wherein, also comprise business platform,
Described positional information is obtained equipment, also, for obtaining after the positional information of UE of described accesses network, in the HTTP Header of the HTTP message sending to described business platform, insert extra address information field for carrying the positional information of the UE of described accesses network;
Described business platform, obtains for receiving described positional information the HTTP message that equipment sends, and resolves the address information field in the HTTP Header of described HTTP message, obtains the positional information of described UE.
Embodiments of the invention also provide a kind of positional information to obtain equipment, comprising:
Acquiring unit, distributes to the IP address of UE by user terminal UE access network process and by the GGSN IP address of the GGSN of described UE access network for obtaining;
The first correspondence relation storage, for storing the first corresponding relation of each GGSN IP address and positional information;
The second corresponding relation acquiring unit, be used for according to the GGSN IP address of described the first correspondence relation storage storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address with described in the second corresponding relation of the positional information obtained;
Location information acquiring unit, when receiving the data that UE accesses network process sends, searches the second corresponding relation in described the second corresponding relation acquiring unit according to the source IP address of described data, obtains the positional information of the UE of described accesses network.
Wherein, the content of storing in described the first correspondence relation storage comprises: the first corresponding relation of the GGSN IP address of each GGSN and corresponding positional information in network, described positional information comprises one or more in city title, city area code, HUR code number, self-defined positional information.
Wherein, also comprise:
Position information sending unit, HTTP Header for the HTTP message sending to business platform inserts extra address information field for carrying the positional information of the UE of described accesses network, make described business platform resolve described address information field, obtain the positional information of described UE.
Wherein, also comprise:
The second corresponding relation updating block, for when the GGSN IP address of the GGSN of UE access network is changed, obtain the GGSN IP address after renewal, in the second corresponding relation that described the second corresponding relation acquiring unit is obtained, the positional information corresponding with the IP address of described UE upgraded; And/or while knowing that from the described GGSN by UE access network UE rolls off the production line, in the second corresponding relation that described the second corresponding relation acquiring unit is obtained, about the content of described UE, delete.
Wherein, described acquiring unit specifically for: receive the accounting request that the GGSN of described UE access network is sent and start message, from described charging request message, obtain and distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network;
Described the second corresponding relation updating block specifically for: receive the accounting request updating message that the new GGSN of UE access network is sent, from described accounting request updating message, obtain the GGSNIP address after renewal; And/or receive the accounting request that the GGSN of UE access network is sent and stop message, know that described UE rolls off the production line.
Wherein, to obtain equipment be WAP (wireless application protocol) WAP gateway to described positional information.
Compared with prior art, embodiments of the invention have the following advantages:
The IP address of the GGSN using according to UE access network, and default corresponding relation, obtain the positional information of UE, thereby realized quick in wap data business, convenient, to obtain accurately user terminal positional information.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of WAP service groups planar network architecture in prior art;
Fig. 2 is the schematic diagram of Mobile Subscriber International ISDN Number structure in prior art;
Fig. 3 is the acquisition methods flow chart of position information of user's terminal in the embodiment of the present invention;
Fig. 4 is the topological structure schematic diagram of the wap data business networking that relates in the embodiment of the present invention;
Fig. 5 is the schematic diagram of the HTTP message format example used in the embodiment of the present invention;
Fig. 6 is the flow chart of the UE request access network that relates in the embodiment of the present invention;
Fig. 7 is the flow chart of the UE accesses network that relates in the embodiment of the present invention;
Fig. 8 is the structural representation that the positional information that relates in the embodiment of the present invention is obtained equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of acquisition methods of position information of user's terminal, as shown in Figure 3, comprising:
Step s301, obtain and will in user terminal UE access network process, distribute to the IP address of UE and by the GGSN IP address of the GGSN of UE access network.
Step s302, the GGSN IP address of storing according to this locality and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of UE, and set up the IP address of UE and second corresponding relation of the positional information of obtaining of access network.
Step s303, while receiving the data that send in UE accesses network process, according to the source IP address of data, search the second corresponding relation, obtain the positional information of the UE of accesses network.
Afterwards, according to the positional information of the UE of the accesses network getting, can in the data packet head sending to business platform, insert the positional information of UE, and by Packet Generation to business platform; Or by independent message, the positional information of UE is sent to business platform, make business platform can obtain the positional information of UE.
In a specific embodiment of the present invention, take implement flow process described in above-mentioned Fig. 3 the network equipment as WAP gateway is example, the embodiment of position information of user's terminal acquisition methods of the present invention is described.
As shown in Figure 4, in the acquisition methods for the position information of user's terminal that relates in the embodiment of the present invention, the topological structure schematic diagram of wap data business networking.Wherein, core network element SGSN and GGSN adopt distributed great Qu deployment way processed in network-wide basis, only for the UE in certain regional area, providing data service access service, there is incidence relation with specific position in each SGSN disposing in network and GGSN.Routing mode during UE access WAP/HTTP business is: the GGSN that accesses this region by the SGSN of local (ownership place/roaming place) nearby, GGSN accesses corresponding WAP gateway according to WAP business domains attaching relation, then according to the object URL/IP address in visit data bag, accesses the service server of external data network by WAP gateway.Therefore,, if can know the positional information of GGSN, can identify by the positional information of GGSN the relevant information of geographical position of user terminal.
For the mobile PS territory network of 2G and 3G, the IP address assignment situation of core network element SGSN and GGSN is as follows:
SGSN:Gn interface assignment public ip address space;
GGSN:Gn interface assignment public ip address space;
Gi interface and external data network interconnection, distribute public ip address;
Each WAP gateway can be corresponding with a GGSN or a plurality of GGSN.
In prior art, when user terminal is asked access network by GGSN, need to activate the stage through PDPContext, in this stage, GGSN sends information as shown in table 2 below by RADIUS (Remote Authentication DialIn User Service, remote customer dialing authentication system) message Accounting Request (accounting request) to WAP gateway:
Table 2.RADIUS message field
Attribute definition Describe
User-Name User name
User-Password User cipher under pap authentication mode
CHAP-Password User cipher under chap authentication mode
NAS-IP-Address The IP address of NAS equipment
NAS-Identifier NAS sign
Called-Station-Id APN
Calling-Station-Id Calling number
CHAP-Challenge CHAP challenging value
In the equipment of the core network in PS territory, by parameter configuration, can set the NAS in Accounting Request message (Network Access System network access system) IP address field " NAS-IP-Address " is transferred to WAP gateway as effective field.In WAP gateway, receive in the prior art after Accounting Request message, conventionally can ignore the NAS-IP-Address information in message, do not carry out any processing.Therefore in wap data business of the present invention networking, NAS is GGSN, can think that what in the NAS-IP-Address of RADIUS message field, carry is the IP address of GGSN.
In the WAP gateway providing in the embodiment of the present invention, according to the construction situation of operator's data core net and deployment planning, and each GGSN disposing in network and the incidence relation of geographical location information, store corresponding geographical location information data storehouse.In this geographical location information data storehouse, comprise the corresponding relation between all GGSNIP address and positional information, for example, use form as shown in table 3:
Table 3 geographical location information data storehouse
Data item 1 GGSN IP1 Aera Codel
Data item 2 GGSN IP2 Aera Code2
Data item 3 GGSN IP3 Aera Code3
Data item n
Wherein Area Code is the location dependent information of access ground GGSN, can be according to business demand and application scenarios flexible configuration.The form of Area Code includes but not limited to:
(1) city area code, such as 010,020,0371 etc.;
(2) city title/write a Chinese character in simplified form such as beijing, shanghai, zhengzhou etc.;
(3) HLR code number, such as 11,18 etc.;
(4) self-defined positional information, concrete, by self-defining encoding scheme, represents positional information, for example, with 0x00, represent Beijing, and 0x35 represents Zhengzhou etc.;
(5) other
In the method that the embodiment of the present invention provides, at PDP Context, activate the stage, when WAP gateway receives the Accounting Request message of GGSN transmission, according to the information such as GGSN IP that comprise in message, it is parameter, inquire about pre-stored geographical location information data storehouse, obtain corresponding geo-location parameter Area Code.And by the user terminal information in message, as the information such as the IP address of user terminal, MSISDN together, for current UE relevant information creates UE information database list item, wherein WAP gateway can the Calling-Station-Id field from Accounting Request message obtains the MSISDN of user terminal.It should be noted that, in the acquisition methods of the position information of user's terminal that the embodiment of the present invention provides, need to be according to the IP address of IP address acquisition user terminal of GGSN and the corresponding relation of Area Code, MSISDN for user terminal, there is no direct relation with the location information acquisition method of embodiment in the present invention, when considering the application of possible other of existing network scheme, can in corresponding relation, preserve the MSISDN of user terminal simultaneously.This corresponding relation can be kept in User Information Database, and an example of this database structure can be as shown in table 4 below:
Table 4 User Information Database
UE Info(IP,MSISDN…) GGSN IP Aera Code
UE Info 1 GGSN IP 1 Aera Code 1
UE Info 2 GGSN IP 2 Aera Code 2
After PDP Context has activated, in the User Information Database of WAP gateway, set up the one-to-one relationship between " UE information (IP, MSISDN ... the)-GGSN IP-Area Code " of this UE.Now obtained the UE current location information representing with Area Code form.
At UE, obtain the accesses network stage behind IP address, when WAP gateway receives the WAP/HTTP access request data bag that UE sends through GGSN, read the source IP address of the data packet head receiving, this source IP address is the IP address of UE.And take the UE information database that this IP address sets up in advance as input parameter inquiry, obtain at PDP Context and set up and the current geographic position information of this UE of new stage storage more.
In order to notify the current geographic position information of this UE to data service platform or third party's website, the new field x-area-code in definition HTTP Header, for carrying user's current geographic position information.WAP gateway, after receiving user's access request data bag, will insert this field x-area-code, to carry user's geographical location information in HTTP Header.
As shown in Figure 5, wherein the part of runic sign is newly-increased location information field x-area-code to a concrete example in the HTTP request msg packet header after WAP gateway is processed.
Data service platform or third party's website receive the HTTP service request data bag that WAP gateway sends, and can obtain user's current location information by the x-area-code in parsing HTTP Header.Follow-up can service for user provides to have more targetedly according to positional information.
For above-mentioned flow process, below by flow chart, describe in detail:
As shown in Figure 6, for UE request access network, the UE request relating in the embodiment of the present invention disconnects the flow process that network connects.Comprise:
Step s601, UE send Attach_Request (adhering to request) to SGSN.
Step s602, SGSN send Send authorization Info (transmission authentication information) message to HLR.
Step s603, HLR send SAI Ack (sending authentication information response) to SGSN.
Step s604, SGSN send Authentication and Ciphering Request (authentication and encryption request) to UE.
Step s605, UE send Authentication and Ciphering Response (authentication and encrypted response) to SGSN
Step s606, SGSN and HLR carry out Update_location (position renewal).
Step s607, SGSN send Attach_Accept (adhering to acceptance) to UE.
Step s608, UE send Active_PDP_context_request (PDP context activation request) message to SGSN, carry PDP type in message, APN, QoS, the options such as PDP configuration.
The APN that step s609, SGSN provide when sending PDP context activation request according to UE, obtains the GGSN IP address that WAP business is provided, and sends Create_PDP_context_request (creating PDP Context request) message to GGSN.
Step s610, GGSN receive after PDPContext request to create message, and the Radius authentication module in WAP gateway sends Access Request (access authentication request) message.
Step s611, WAP gateway carry out Authorization (access authentication) according to the data in Access Request to user.
Step s612, WAP gateway send Access Accepted (access authentication acceptance) message to GGSN.
Step s613, GGSN receive after the Access Accepted message of WAP gateway, to WAP gateway, send Accounting_request START (charging starts request) message, in this charging request message, comprise user's the information such as IP address, Mobile Subscriber International ISDN Number, bearer types, GGSN IP.
Step s614, WAP gateway carry out Info Saving (information preservation), user's above-mentioned information is saved to local data base, its form is as user profile list item mentioned above, the data such as MSISDN, private IP address, GGSN IP address and Area Code that wherein comprise user, and generate the interim conversation of this online for UE.Its concrete form can be as shown in table 4.
Step s615, WAP gateway send Accounting_accept START (charging starts to reply) message to GGSN.
Step s616, GGSN send Create_PDP_context_response (creating PDP Context response) message to SGSN, and when PDP Context activates, user terminal obtains private IP address.
Step s617, SGSN receive the establishment PDP Context response message of GGSN, in this PDPContext, insert the information such as GGSN address, dynamic PDP addresses, then to UE, return to Active_PDP_context_accpet (activating PDP Context accepts) message, UE obtains private IP address.
When user offline, WAP gateway need to be deleted this user's who stores in local data base user profile, and this flow process comprises:
Step s618, UE send Deactive_PDP_context_request (PDP context deactivation request) message to SGSN, contain the event ID that needs the PDP of deexcitation Context in this message.
The PDP Context that step s619, SGSN have set up according to UE, sends Delete_PDP_context_request (deleting PDP Context request) message to GGSN.
Step s620, GGSN send Accouting_requestSTOP (charging stops request) message to the Radius authentication module in WAP gateway.
Step s621, WAP gateway carry out Info Delete (information deletion) operation, delete the information table corresponding with user in local data base.
Step s622, WAP gateway send Accouting_accepted STOP (charging stops replying) message to GGSN, represent Accouting_request STOP Message Processing successfully to respond.
Step s623, GGSN delete PDP Context, and return to Delete_PDP_context_response (deleting PDP Context response) message to SGSN.If MS is being used dynamic PDP addresses, GGSN discharges this dynamic PDP addresses, and this address of mark is used can be activated by follow-up other MS time.
Step s624, SGSN send Deactive_PDP_context_accept (PDP context deactivation acceptance) message to UE, inform deexcitation of UE PDP success.
In addition, when the GGSN using when UE access WAP gateway changes, need to carry out the switching of GGSN, after switching completes, by the new GGSN after switching, to WAP gateway, send message (for example accounting request updating message), WAP gateway, according to the message receiving, upgrades information table corresponding with this UE in local data base.The flow process that this WAP gateway upgrades the user profile of storing in local data base may occur repeatedly in the process rolling off the production line of once reaching the standard grade of UE.
As shown in Figure 7, the flow process for the UE accesses network that relates in the embodiment of the present invention, comprising:
Step s701, UE send the request of WAP/HTTP Operational Visit through network elements such as SGSN/GGSN to WAP gateway, as GET HTTP: //wap.website.com, request access network address HTTP: //wap.website.com.
Application layer URL in the request message that step s702, WAP gateway extraction UE send, sends DNS_Query (DNS inquiry) message to dns server, to URL address resolution request.
Step s703, DNS send DNS_Query_Response (DNS inquiry response) message to WAP gateway, return to the IP address of the business platform of terminal access.
Step s704, WAP gateway are input parameter inquiry local data base according to the source IP address of UE packet, obtain corresponding UE positional information: Area Code inserts information and the UE location information field x-area-code such as IP address (IP_adr), MSISDN of (Info Inserting) UE in the HTTP of service request data bag Header.
Step s705, WAP gateway will ask " GET HTTP: //wap.website.com " to be forwarded to the server of WAP/HTTP, wherein carry information and the UE location information field x-area-code such as IP address (IP_adr), MSISDN of UE.
X-area-code field in step s706, WAP/HTTP server parses data packet head (Packet Analyzing), can obtain UE information and location dependent information.
Step s707, service server are by the http response message HTTP relevant to UE: //wap.website.com/index is sent to user terminal by WAP gateway.
In the said method that the embodiment of the present invention provides, the IP address of the GGSN that WAP gateway is used according to UE access network, and default corresponding relation, obtain the positional information of UE, and be sent to corresponding service server, thereby realized quick in wap data business, convenient, to obtain accurately user terminal positional information.Whether its GGSN that can use according to UE access distinguishes UE in roaming state, and provide the true geographical location information of the UE of current business request for operation system or WAP/WEB website, but not the information of home location of user MSISDN section has more specific aim and actual application value; And UE positional information is provided by operator, there is authenticity, accuracy and validity., operator introduces after new section or network planning upgrading in addition, only corresponding relation default on WAP gateway need be carried out to adaptability revision, and operation system side just can support the positional information of new UE to identify without implementing any change.It should be noted that, the above embodiment of the present invention only be take WAP gateway as example, the embodiment of position information of user's terminal acquisition methods in the present invention has been described, but be understandable that, said method also can be applied to have in network other network equipments of the function that above-mentioned WAP gateway has, the embodiment of its embodiment when being applied to WAP gateway is similar, at this, is not repeated in this description.
Embodiments of the invention also provide a kind of system of obtaining of position information of user's terminal, comprising:
GGSN, for by user terminal UE access network process, obtains equipment transmission to positional information and comprises IP address and the GGSN IP address of distributing to this UE;
Positional information is obtained equipment, for the content obtaining sending according to GGSN, distributes to the IP address of UE and by the GGSN IP address of the GGSN of UE access network; According to the GGSN IP address of this locality storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of UE, and set up the IP address of UE and second corresponding relation of the positional information of obtaining of access network; In receiving UE accesses network process, send data time, according to the source IP address of data (being the IP address of UE), search the second corresponding relation, obtain the positional information of this UE of accesses network.
Wherein, also comprise business platform,
Positional information is obtained equipment also for obtaining after the positional information of UE of accesses network, in the HTTP Header of the HTTP message sending to business platform, inserts extra address information field for carrying the positional information of the UE of accesses network;
Business platform, obtains for receiving position information the HTTP message that equipment sends, the information field that Adds Address in the HTTP Header of parsing HTTP message, the positional information of acquisition UE.
The structure of the WAP gateway in embodiments of the invention as shown in Figure 8, comprising:
Acquiring unit 10, distributes to the IP address of UE by user terminal UE access network process and by the GGSN IP address of the GGSN of described UE access network for obtaining.Concrete, wherein, message sink unit 10 receives the accounting request that the GGSN of UE access network is sent and starts message, obtains to distribute to the IP address of UE and by the GGSN IP address of the GGSN of UE access network from this charging request message.
The first correspondence relation storage 20, for storing the first corresponding relation of each GGSN IP address and positional information; This positional information comprises one or more in city title, city area code, HUR code number, self-defined positional information.
The second corresponding relation acquiring unit 30, be used for according to the GGSN IP address of the first correspondence relation storage 20 storages and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of UE, and set up the IP address of UE and second corresponding relation of the positional information of obtaining of access network;
Location information acquiring unit 40, when receiving the data that UE accesses network process sends, searches the second corresponding relation in the second corresponding relation acquiring unit 30 according to the source IP address of data, obtains the positional information of the UE of accesses network.
In addition, can also comprise:
Position information sending unit 50, HTTPHeader for the HTTP message sending to business platform inserts extra address information field for carrying the positional information of the UE of accesses network, make business platform parse addresses information field, obtain the positional information of UE.
The second corresponding relation updating block 60, while being used for the GGSN IP address of the GGSN of UE access network to change, obtain the GGSN IP address after renewal, positional information corresponding with the IP address of UE in the second corresponding relation that the second corresponding relation acquiring unit 30 is obtained is upgraded; Concrete, the second corresponding relation updating block 60 receives the accounting request updating message that the new GGSN of UE access network is sent, and obtains the GGSN IP address after renewal from accounting request updating message;
The second corresponding relation updating block 60, can also when the GGSN of UE access network is known to UE rolls off the production line, delete about the content of UE in the second corresponding relation that the second corresponding relation acquiring unit 30 is obtained; Concrete, the second corresponding relation updating block 60 can receive the accounting request that the GGSN of UE access network is sent and stop message, knows that UE rolls off the production line.
It can be WAP gateway that the positional information of describing in the embodiment of the present invention is obtained equipment, also can obtain for having above-mentioned positional information in network other network equipments of the function that equipment has.
In said system and equipment that the embodiment of the present invention provides, the IP address of the GGSN using according to UE access network, and default corresponding relation, obtain the positional information of UE, thereby realized quick in wap data business, convenient, to obtain accurately user terminal positional information.Whether its GGSN that can use according to UE access distinguishes UE in roaming state, and provide the true geographical location information of the UE of current business request for operation system or WAP/WEB website, but not the information of home location of user MSISDN section has more specific aim and actual application value; And UE positional information is provided by operator, there is authenticity, accuracy and validity., operator introduces after new section or network planning upgrading in addition, only corresponding relation default on WAP gateway need be carried out to adaptability revision, and operation system side just can support the positional information of new UE to identify without implementing any change.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, and the mode that also can add necessary general hardware platform by software realizes.Understanding based on such, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the unit in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the unit in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.A unit can be merged in the unit of above-described embodiment, also can further split into a plurality of subelements.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.

Claims (13)

1. an acquisition methods for position information of user's terminal, is characterized in that, comprising:
Obtain and will in user terminal UE access network process, distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network;
According to the GGSN IP address of this locality storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address and described in the second corresponding relation of the positional information obtained;
While receiving the data that send in UE accesses network process, according to the source IP address of described data, search described the second corresponding relation, obtain the positional information of the UE of described accesses network.
2. the method for claim 1, is characterized in that, described in obtain and will in UE access network process, distribute to the IP address of UE and by before the GGSN IP address of the GGSN of described UE access network, also comprise:
The first corresponding relation of the GGSN IP address that foundation comprises each GGSN in network and corresponding positional information, described positional information comprises one or more in city title, city area code, HLR code number, self-defined positional information.
3. the method for claim 1, is characterized in that, described in obtain after the positional information of UE of accesses network, also comprise:
In the HTTP Header of the HTTP message sending to business platform, insert extra address information field for carrying the positional information of the UE of described accesses network, described business platform is resolved described address information field, obtains the positional information of described UE.
4. if claims 1 to 3 is to the method as described in any one, it is characterized in that, also comprise:
When the described GGSN IP address by the GGSN of UE access network changes, obtain the GGSN IP address after renewal, according to the GGSN IP address after described renewal, positional information corresponding with the IP address of described UE in described the second corresponding relation is upgraded; And/or
While knowing that from the described GGSN by UE access network UE rolls off the production line, will in described the second corresponding relation, about the content of described UE, delete.
5. method as claimed in claim 4, is characterized in that,
Described obtaining will be distributed to the IP address of UE and the GGSN IP address of the GGSN of described UE access network be comprised in user terminal UE access network process: receive the accounting request that the GGSN of described UE access network is sent and start message, start to obtain message distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network from described accounting request;
The described GGSN IP address obtaining after renewal comprises: receive the accounting request updating message that the new GGSN of UE access network is sent, obtain the GGSNIP address after renewal from described accounting request updating message;
Describedly from the GGSN of UE access network being known to UE rolls off the production line, comprise: receive the accounting request that the GGSN of UE access network is sent and stop message, know that described UE rolls off the production line.
6. the system of obtaining of position information of user's terminal, is characterized in that, comprising:
GGSN, for by user terminal UE access network process, obtains equipment to positional information and sends IP address and the GGSN IP address of distributing to described UE;
Positional information is obtained equipment, for the content obtaining sending according to described GGSN, distributes to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network; According to the GGSN IP address of this locality storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address and described in the second corresponding relation of the positional information obtained; In receiving UE accesses network process, send data time, according to the source IP address of described data, search described the second corresponding relation, obtain the positional information of the UE of described accesses network.
7. system as claimed in claim 6, is characterized in that, also comprises business platform,
Described positional information is obtained equipment, also, for obtaining after the positional information of UE of described accesses network, in the HTTP Header of the HTTP message sending to described business platform, insert extra address information field for carrying the positional information of the UE of described accesses network;
Described business platform, obtains for receiving described positional information the HTTP message that equipment sends, and resolves the address information field in the HTTP Header of described HTTP message, obtains the positional information of described UE.
8. positional information is obtained an equipment, it is characterized in that, comprising:
Acquiring unit, distributes to the IP address of UE by user terminal UE access network process and by the GGSN IP address of the GGSN of described UE access network for obtaining;
The first correspondence relation storage, for storing the first corresponding relation of each GGSN IP address and positional information;
The second corresponding relation acquiring unit, be used for according to the GGSN IP address of described the first correspondence relation storage storage and the first corresponding relation of positional information, obtain the positional information corresponding with the IP address of described UE, and set up described access network UE IP address with described in the second corresponding relation of the positional information obtained;
Location information acquiring unit, when receiving the data that UE accesses network process sends, searches the second corresponding relation in described the second corresponding relation acquiring unit according to the source IP address of described data, obtains the positional information of the UE of described accesses network.
9. equipment as claimed in claim 8, it is characterized in that, the content of storing in described the first correspondence relation storage comprises: the first corresponding relation of the GGSN IP address of each GGSN and corresponding positional information in network, described positional information comprises one or more in city title, city area code, HLR code number, self-defined positional information.
10. equipment as claimed in claim 8, is characterized in that, also comprises:
Position information sending unit, HTTP Header for the HTTP message sending to business platform inserts extra address information field for carrying the positional information of the UE of described accesses network, make described business platform resolve described address information field, obtain the positional information of described UE.
11. if claim 8 to 10 is to the equipment as described in any one, it is characterized in that, also comprises:
The second corresponding relation updating block, for when the GGSN IP address of the GGSN of UE access network is changed, obtain the GGSN IP address after renewal, in the second corresponding relation that described the second corresponding relation acquiring unit is obtained, the positional information corresponding with the IP address of described UE upgraded; And/or while knowing that from the described GGSN by UE access network UE rolls off the production line, in the second corresponding relation that described the second corresponding relation acquiring unit is obtained, about the content of described UE, delete.
12. equipment as claimed in claim 11, is characterized in that,
Described acquiring unit specifically for: receive the accounting request that the GGSN of described UE access network is sent and start message, from described accounting request, start to obtain message and distribute to the IP address of UE and by the GGSN IP address of the GGSN of described UE access network;
Described the second corresponding relation updating block specifically for: receive the accounting request updating message that the new GGSN of UE access network is sent, from described accounting request updating message, obtain the GGSNIP address after renewal; And/or receive the accounting request that the GGSN of UE access network is sent and stop message, know that described UE rolls off the production line.
13. equipment as claimed in claim 8, is characterized in that, it is WAP (wireless application protocol) WAP gateway that described positional information is obtained equipment.
CN200910092225.3A 2009-09-07 2009-09-07 Method, system and device for acquiring position information of user equipment Expired - Fee Related CN102014368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910092225.3A CN102014368B (en) 2009-09-07 2009-09-07 Method, system and device for acquiring position information of user equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910092225.3A CN102014368B (en) 2009-09-07 2009-09-07 Method, system and device for acquiring position information of user equipment

Publications (2)

Publication Number Publication Date
CN102014368A CN102014368A (en) 2011-04-13
CN102014368B true CN102014368B (en) 2014-01-29

Family

ID=43844340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910092225.3A Expired - Fee Related CN102014368B (en) 2009-09-07 2009-09-07 Method, system and device for acquiring position information of user equipment

Country Status (1)

Country Link
CN (1) CN102014368B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139772A (en) * 2011-11-23 2013-06-05 中国移动通信集团上海有限公司 Method for processing terminal accessed to local area network and method and device for used data statistic
CN103188142A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Method of achieving geographical location information presentation in instant message system
CN103368899B (en) * 2012-03-26 2016-12-14 中国移动通信集团公司 A kind of method, system and access gateway determining non-IP fixed terminal position
CN104038522B (en) * 2013-03-06 2019-06-28 深圳先进技术研究院 A kind of virtual-real blending space positioning system Internet-based
CN104144417B (en) * 2013-05-10 2018-01-23 中国电信股份有限公司 Mobile Internet access Subscriber Number inverse-checking method, device and system
CN103701950B (en) * 2013-12-26 2017-09-08 中国联合网络通信集团有限公司 The distribution method and device of a kind of IP address
CN104767840B (en) * 2015-04-08 2018-06-12 北方信息控制集团有限公司 A kind of IP address distribution method and data center server based on area code
CN105430692B (en) * 2015-10-27 2018-09-11 合肥浩瀚深度信息技术有限公司 A method of the signaling process of 4G and 3G network is associated
CN107395451B (en) * 2017-06-19 2020-07-21 中国移动通信集团江苏有限公司 Processing method, device and equipment for internet traffic abnormity and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486027A (en) * 2002-09-28 2004-03-31 ��Ϊ�������޹�˾ Method for implementing user localization in wireless LAN
CN1496026A (en) * 2002-09-05 2004-05-12 深圳市中兴通讯股份有限公司上海第二 Position information transmission method
CN101159915A (en) * 2007-11-16 2008-04-09 中兴通讯股份有限公司 Position service servicing system and method for providing position information thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1496026A (en) * 2002-09-05 2004-05-12 深圳市中兴通讯股份有限公司上海第二 Position information transmission method
CN1486027A (en) * 2002-09-28 2004-03-31 ��Ϊ�������޹�˾ Method for implementing user localization in wireless LAN
CN101159915A (en) * 2007-11-16 2008-04-09 中兴通讯股份有限公司 Position service servicing system and method for providing position information thereof

Also Published As

Publication number Publication date
CN102014368A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN102014368B (en) Method, system and device for acquiring position information of user equipment
CN109451451B (en) Terminal roaming method, device and storage medium
CN101420762B (en) Access gateway selection method, system and gateway selection execution node
CN102130773B (en) Group communication method and device
CN101374249B (en) Method for obtaining terminal real time accurate geographic position based on the mobile terminal IP address
CN100461973C (en) Dynamic group implementation method and device
CN103220372A (en) Data service access method and system
AU9740398A (en) Method and arrangement for finding information
EP2479702A1 (en) Base station, web application server, system and method
CN101106778B (en) GPRS implementation method and system based on one-in-multiple number SIM card
CN102547658B (en) Method and device for transmitting data
CN101741902B (en) System and method for Internet terminal to quickly access to Internet server
CN102045717B (en) System, method and relevant equipment for acquiring user identifier in data service
WO2003005738A2 (en) Sms routing
EP1889452B1 (en) Provision of a service to several separately managed networks
CN104994492A (en) Method for saving standard format page and server
CN101198102B (en) Method, device and system for terminal access network
CN102098348A (en) Selection method of packet data network gateway and mobility management network element
CN100461958C (en) Mobile communication access system and method
CN105208598A (en) Network access method and apparatus
KR100650351B1 (en) Contents update system for potable device and method thereof
CN101159924A (en) Method and device for providing user information
CN101064937B (en) Method and system for accessing home zone of roaming users
EP2976902B1 (en) A node for use by a network, a system for interconnecting multiple networks and methods of operating the node and system
CN100375423C (en) Method and device for realizing Internet protocol grouped broadcasting service in mobile communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140129

Termination date: 20210907

CF01 Termination of patent right due to non-payment of annual fee