Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
POSITIONING OF TERMINAL EQUIPMENT
Document Type and Number:
WIPO Patent Application WO/2002/054811
Kind Code:
A1
Abstract:
The invention relates to a method and system for obtaining the location information of a terminal device of a telecommunication network, in which method a context associated with the opening of a data-transmission connection is created and location-dependant service request is sent to the service provider by means of the terminal device. According to the invention, the IP address allocated to the context and the subscriber identifier of the user of the terminal device are found out; the IP address allocated to the context and the subscriber identifier of the user of the terminal device are saved to the database; an inquiry is sent from the service provider that contains the IP address allocated to the context; based on the inquiry, the subscriber identifier associated with the IP address is checked from the database; the piece of location information of the subscriber is found out based on the subscriber identifier utilizing the location server; and the piece of location information is sent from the location server to the service provider.

Inventors:
KARHU PEKKA (FI)
KEISALA ILKKA (FI)
LAMMINLUOTO MARKKU (FI)
Application Number:
PCT/FI2001/001105
Publication Date:
July 11, 2002
Filing Date:
December 17, 2001
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SONERA OYJ (FI)
KARHU PEKKA (FI)
KEISALA ILKKA (FI)
LAMMINLUOTO MARKKU (FI)
International Classes:
H04L12/56; H04L29/06; H04L29/08; H04L29/12; H04W4/029; H04W76/02; H04W4/02; H04W8/26; H04W64/00; H04W80/04; H04W92/02; (IPC1-7): H04Q7/38; H04Q7/22; H04L29/06
Domestic Patent References:
WO2000079761A12000-12-28
WO2000044148A12000-07-27
WO2000076171A12000-12-14
Foreign References:
US5901352A1999-05-04
Attorney, Agent or Firm:
PAPULA OY (P.O. Box 981 Fredrikinkatu 61 A Helsinki, FI)
Download PDF:
Claims:
CLAIMS
1. A method for obtaining the location infor mation of a terminal device of a packetswitched tele communication network, in which method a context associated with the opening of a data transmission connection is opened; a locationdependant service request is sent to the service provider using the terminal device; c h a r a c t e r i z e d in that the method comprises the steps of: a) finding out the IP address allocated to the context and the subscriber identifier of the user of the terminal device; b) saving the IP address allocated to the context and the subscriber identifier of the user of the ter minal device to the database; c) sending an inquiry from the service provider that contains the IP address allocated to the context; d) checking the subscriber identifier associated with the IP address from the database based on the in quiry; e) checking the location information of the sub scriber from the database based on the subscriber identifier using the location server; and f) sending the piece of location information from the location server to the service provider.
2. The method according to claim 1, c h a r a c t e r i z e d in that the subscriber identifier is IMSI.
3. The method according to claim 1, c h a r a c t e r i z e d in that the subscriber identifier is a MSISDN number.
4. The method according to claim 1, c h a r a c t e r i z e d in that the subscriber identifier as sociated with the context and the IP address are de leted from the database, when the context is released.
5. The method according to claim 1, c h a r a c t e r i z e d in that the piece of location infor mation is a CellID identifier.
6. A method for obtaining the location infor mation of a terminal device of a GPRS network, which method comprises the steps of: creating a PDP context associated with the opening of a datatransmission connection; sending a locationdependant service request to the service provider using the terminal device; c h a r a c t e r i z e d in that the method further comprises the steps of: a) finding out the IP address allocated to the PDP context and the subscriber identifier of the user of the terminal device. b) saving the IP address allocated to the PDP con text and the subscriber identifier of the user of the terminal device to the database; c) sending an inquiry to the service provider that contains the IP address allocated to the PDP context; d) finding out the subscriber identifier associ ated with the IP address from the database based on the inquiry; e) finding out the IMSI identifier from the home location register based on the subscriber identifier using the location server; f) finding out the SGSN node serving the GPRS ter minal device from the home location register using the location server; g) sending a BSSAP+ MS Information Request message from the location server to the SGSN node; h) sending the piece of location information of the GPRS terminal device from the SGSN node to the lo cation server in a BSSAP+ MS Information Response mes sage; and i) transmitting the received piece of location in formation from the location server to the service pro vider.
7. The method according to claim 6, c h a r a c t e r i z e d in that at step a) sending from the GGSN node, by means of the Radius protocol, a radius message to the Radius server program that contains the IP address allocated to the PDP context and the sub scriber identifier of the user of the terminal device.
8. The method according to claim 6, c h a r a c t e r i z e d in that at step a) monitoring the GTP tunnel in between the SGSN node and the GGSN node by means of the location server and picking up subscriber identifier/IP address pairs from there in the creation phase of the PDP context.
9. The method according to claim 6, c h a r a c t e r i z e d in that at step a) sending the sub scriber identifier/IP address pair from the SGSN node to the location server.
10. The method according to claim 6, c h a r a c t e r i z e d in that the subscriber iden tifier associated with the PDP context and the IP ad dress are deleted from the database, when the PDP con text is released.
11. The method according to claim 6, c h a r a c t e r i z e d in that the subscriber iden tifier is a MSISDN number.
12. The method according to claim 6, c h a r a c t e r i z e d in that the piece of location information is a CellID identifier.
13. A method for obtaining the location in formation of a terminal device of a GPRS network, which method comprises the steps of: creating a PDP context associated with the opening of a datatransmission connection; sending a locationdependant service request to the service provider by means of the terminal device; c h a r a c t e r i z e d in that the method further comprises the steps of: a) finding out the IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS terminal device; b) saving the IP address allocated to the PDP con text and the subscriber identifier of the user of the terminal device to the database; c) sending an inquiry from the service provider that contains the IP address allocated to the PDP con text; d) finding out the subscriber identifier associ ated with the IP address from the database based on the inquiry; e) sending from the location server to the home location register an ATI message consistent with the MAP protocol that contains the subscriber identifier of the user of the GPRS terminal device; f) sending a PSI inquiry consistent with the MAP protocol from the home location register to the visi tor location register; g) sending a BSSAP+ MS Information Request message from the visitor location register to the SGSN node; h) sending a BSSAP+ MS Information Response mes sage of the GPRS terminal device from the SGSN node to the visitor location register; i) sending from the visitor location register from the mobile switching center to the home location reg ister a PSI response message consistent with the MAP protocol that contains the piece of location informa tion; j) sending from the home location register to the location server an ATI response message consistent with the MAP protocol that contains the piece of loca tion information, and k) transmitting the piece of location information from the location server to the service provider.
14. The method according to claim 13, c h a r a c t e r i z e d in that at step a) sending from the GGSN node, by means of the Radius protocol, a Radius message to the Radius server program that con tains the IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS ter minal device.
15. The method according to claim 13, c h a r a c t e r i z e d in that at step a) monitoring the GTP tunnel in between the SGSN node and the GGSN node by means of the terminal device and picking up subscriber identifier/IP address pairs in the creation phase of the PDP context.
16. The method according to claim 13, c h a r a c t e r i z e d in that at step a) sending the subscriber identifier/IP address pair from the SGSN node to the location server.
17. The method according to claim 13, c h a r a c t e r i z e d in that the subscriber iden tifier associated with the PDP context and the IP ad dress are deleted from the database, when the PDP con text is released.
18. The method according to claim 13, c h a r a c t e r i z e d in that at step e) and j) substituting the ATI message with a SRI message con sistent with the MAP protocol.
19. The method according to claim 13, c h a r a c t e r i z e d in that the subscriber iden tifier is a MSISDN number.
20. The method according to claim 13, c h a r a c t e r i z e d in that the piece of location information is a CellID identifier.
21. A method for obtaining the location in formation of a terminal device of a GPRS network, which method comprises the steps of: creating a PDP context associated with the opening of a datatransmission connection; sending a locationdependant service request to the service provider by means of the terminal device; c h a r a c t e r i z e d in that the method further comprises the steps of: a) finding out the IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS terminal device; b) saving the IP address allocated to the PDP con text and the subscriber identifier of the user of the terminal device to the database; c) sending an inquiry from the service provider that contains the IP address allocated to the PDP con text; d) finding out the subscriber identifier associ ated with the IP address from the database based on the inquiry; e) finding out the IMSI identifier and the address of the serving mobile switching center from the home location register based on the subscriber identifier by means of the location server; f) sending a short message from the location server to the GPRS terminal device via a circuit switched connection; g) sending an ATI message consistent with the MAP protocol from the location server to the home location register, the ATI message containing the subscriber identifier of the user of the GPRS terminal device; h) sending a PSI inquiry consistent with the MAP protocol from the home location register to the visi tor location register; i) sending a PSI response message consistent with the MAP protocol from the visitor location register to the home location register, the PSI response message containing the piece of location information; j) sending an ATI response message consistent with the MAP protocol from the home location register to the location server, the ATI response message contain ing the piece of location information; and k) transmitting the piece of location information from the location server to the service provider.
22. The method according to claim 21, c h a r a c t e r i z e d in that at step a) sending from the GGSN node, by means of the Radius protocol, a radius message to the Radius server program that con tains the IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS ter minal device.
23. The method according to claim 21, c h a r a c t e r i z e d in that at step a) monitoring the GTP tunnel in between the SGSN node and the GGSN node by means of the location server and picking up subscriber identifier/IP address pairs from there in the creation phase of the PDP context.
24. The method according to claim 21, c h a r a c t e r i z e d in that at step a) sending the subscriber identifier/IP address pair from the SGSN node to the location server.
25. The method according to claim 21, c h a r a c t e r i z e d in that at step g) and j) substituting the ATI message with a SRI message con sistent with the MAP protocol.
26. The method according to claim 21, c h a r a c t e r i z e d in that if at step f) the MMS bit is activated in the short message, then prior to step k): sending a MAP Abort message from the location server to the mobile switching center.
27. The method according to claim 21, characterized in that the subscriber iden tifier associated with the PDP context and the IP ad dress are deleted from the database, when the PDP con text is released.
28. The method according to claim 21, c h a r a c t e r i z e d in that the subscriber iden tifier is a MSISDN number.
29. The method according to claim 21, c h a r a c t e r i z e d in that the piece of location information is a CellID identifier.
30. A location server for obtaining the lo cation information of a terminal device of a telecom munication network, characterized in that the location server comprises: message means (IP) for sending and receiving mes sages to the service provider/from the service pro vider (SP); and a signaling interface (SS7) for sending and re ceiving signaling messages.
31. The location server according to claim 30, c h a r a c t e r i z e d in that the location server comprises data acquisition means (DM) for find ing out the subscriber identifier/IP address pair as sociated with the user of the terminal device.
32. The location server according to claim 30, c h a r a c t e r i z e d in that the location server comprises a database for saving the subscriber identifier/IP address pair.
33. The location server according to claim 30, c h a r a c t e r i z e d in that the location server comprises message means (IP) for retrieving the subscriber identifier/IP address pair from the data base (DB).
34. The location server according to claim 30, characterized in that the data acquisi tion means (DM) are used to refer to the Radius server program.
35. The location server according to claim 30, characterized in that the data acquisi tion means (DM) are used to refer to a data compiler which is used to monitor the GTP tunnel (GTP) in be tween the SGSN node and the GGSN node.
36. The location server according to claim 30, characterized in that the signaling inter face (SS7) comprises means for sending and receiving signaling messages to the home location register/from the home location register (HLR) and to the SGSN node/from the SGSN node (SGSN).
37. The location server according to claim 30, characterized in that the signaling inter face (SS7) comprises means for sending and receiving signaling messages to the home location register/from the home location register (HLR).
38. The location server according to claim 30, c h a r a c t e r i z e d in that the signaling inter face (SS7) comprises means for sending and receiving signaling messages to the home location register/from the home location register (HLR) and to the mobile switching center/from the mobile switching center (MSC).
39. The location server according to claim 30, characterized in that the signaling in terface (SS7) comprises means for sending and receiv ing signaling messages to the home location regis ter/from the home location register (HLR) and to the visitor location register/from the visitor location register (VLR).
40. A system for obtaining the location in formation of a terminal device of a GPRS network, which system comprises: a SGSN node (SGSN); a GGSN node (GGSN), which is connected to the SGSN node (SGSN); a GTP tunnel (GTP), which is located in between the SGSN node (SGSN) and the GGSN node (GGSN); a service provider (SP), which communicates with the GGSN node (GGSN); a GPRS terminal device (MS), which communicates with the SGSN node (SGSN); a home location register (HLR); c h a r a c t e r i z e d in that the system further comprises: data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device; a database (DB) for saving the subscriber identi fier/IP address pairs obtained using the data acquisi tion means (DM); a location server (LOC) which comprises: message means (IP) for sending and receiving mes sages to the service provider/from the service pro vider (SP); and a signaling interface (SS7) for sending and re ceiving signaling messages to the home location regis ter/from the home location register (HLR) and to the SGSN node/from the SGSN node (SGSN).
41. The system according to claim 40, c h a r a c t e r i z e d in that the location server comprises a database (DB) for saving the subscriber identifier/IP address pairs.
42. The system according to claim 40, c h a r a c t e r i z e d in that the location server comprises message means (IP) for retrieving the sub scriber identifier/IP address pairs from the database (DB).
43. The system according to claim 40, c h a r a c t e r i z e d in that the location server comprises data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device.
44. The system according to claim 40, characterized in that the data acquisition means (DM) are used to refer to the Radius server pro gram.
45. The system according to claim 40, c h a r a c t e r i z e d in that the data acquisition means (DM) are used to refer to a data compiler which is used to monitor the GTP tunnel (GTP) in between the SGSN node (SGSN) and the GGSN node (GGSN).
46. The system according to claim 40, c h a r a c t e r i z e d in that the SGSN node (SGSN) comprises data transmission means (MM) for sending the subscriber identifier/IP address pair to the location server (LOC).
47. A system for obtaining the location in formation of a terminal device of a GPRS network, which system comprises: a SGSN node (SGSN); a GGSN node (GGSN), which is connected to the SGSN node (SGSN); a GTP tunnel (GTP), which is located in between the SGSN node (SGSN) and the GGSN node (GGSN); a service provider (SP), which communicates with the GGSN node (GGSN); a GPRS terminal device (MS), which communicates with the SGSN node (SGSN); a home location register (HLR) ; a visitor location register (VLR), which communi cates with the home location register (HLR) and with the SGSN node (SGSN); a mobile switching center (MSC) which communicates with the visitor location register (VLR); c h a r a c t e r i z e d in that the system further comprises: data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device; a database (DB) for saving the subscriber identi fier/IP address pairs obtained using the data acquisi tion means (DM); a location server (LOC) which comprises: message means (IP) for sending and receiving mes sages to the service provider/from the service pro vider (SP); and a signaling interface (SS7) for sending and re ceiving signaling messages to the home location regis ter/from the home location register (HLR).
48. The system according to claim 47, c h a r a c t e r i z e d in that the location server comprises a database (DB) for saving the subscriber identifier/IP address pairs.
49. The system according to claim 47, c h a r a c t e r i z e d in that the location server comprises message means (IP) for retrieving the sub scriber identifier/IP address pairs from the database (DB).
50. The system according to claim 47, c h a r a c t e r i z e d in that the location server comprises data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device.
51. The system according to claim 47, c h a r a c t e r i z e d in that the data acquisition means (DM) are used to refer to the Radius server pro gram.
52. The system according to claim 47, c h a r a c t e r i z e d in that the data acquisition means (DM) are used to refer to a data compiler which is used to monitor the GTP tunnel (GTP) in between the SGSN node (SGSN) and the GGSN node (GGSN).
53. The system according to claim 47, c h a r a c t e r i z e d in that the SGSN node (SGSN) comprises data transmission means (MM) for sending the subscriber identifier/IP address pair to the location server (LOC).
54. The system according to claim 47, c h a r a c t e r i z e d in that the location server comprises a signaling interface (SS7) for sending and receiving signaling messages to the visitor location register/from the visistor location register (VLR).
55. A system for obtaining the location in formation of a terminal device of a GPRS network, which system comprises: a SGSN node (SGSN); a GGSN node (GGSN), which is connected to the SGSN node (SGSN); a GTP tunnel (GTP), which is located in between the SGSN node (SGSN) and the GGSN node (GGSN); a service provider (SP), which communicates with the GGSN node (GGSN); a GPRS terminal device (MS), which communicates with the SGSN node (SGSN); a home location register (HLR); a visitor location register (VLR), which communi cates with the home location register (HLR) a mobile switching center (MSC) which communicates with the visitor location register (VLR); c h a r a c t e r i z e d in that the system further comprises: data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device; a database (DB) for saving the subscriber identi fier/IP address pairs obtained using the data acquisi tion means (DM); a location server (LOC) which comprises: message means (IP) for sending and receiving mes sages to the service provider/from the service pro vider (SP); and a signaling interface (SS7) for sending and re ceiving signaling messages to the home location regis ter/from the home location register (HLR) and to the mobile switching center/from the mobile switching cen ter (MSC).
56. The system according to claim 55, c h a r a c t e r i z e d in that the location server comprises a database (DB) for saving the subscriber identifier/IP address pairs.
57. The system according to claim 55, c h a r a c t e r i z e d in that the location server comprises message means (IP) for retrieving the sub scriber identifier/IP address pairs from the database (DB).
58. The system according to claim 55, c h a r a c t e r i z e d in that the location server comprises data acquisition means (DM) for finding out the subscriber identifier/IP address pair associated with the user of the GPRS terminal device.
59. The system according to claim 55, c h a r a c t e r i z e d in that the data acquisition means (DM) are used to refer to the Radius server pro gram.
60. The system according to claim 55, c h a r a c t e r i z e d in that the data acquisition means (DM) are used to refer to a data compiler which is used to monitor the GTP tunnel (GTP) in between the SGSN node (SGSN) and the GGSN node (GGSN).
61. The system according to claim 55, c h a r a c t e r i z e d in that the SGSN node (SGSN) comprises data transmission means (MM) for sending the subscriber identifier/IP address pair to the location server (LOC).
62. The system according to claim 55, c h a r a c t e r i z e d in that the location server comprises a signaling interface (SS7) for sending and receiving signaling messages to the visitor location register/from the visitor location register (VLR).
Description:
Positioning of terminal equipment FIELD OF THE INVENTION The present invention relates to telecommuni- cation technique. The present invention relates to a method and system for obtaining the location informa- tion of a terminal device of a packet-switched tele- communication network.

BACKGROUND OF THE INVENTION Location-dependant notifications and services may be offered to a wireless terminal device, if only the location of the terminal device is known with a sufficient accuracy. In a mobile communication net- work, it is possible to try to determine the location of the terminal device e. g. by measuring the signals of the base stations.

At present, one specific problem is that the terminal device of a GPRS network (GPRS, Global Packet Radio Service) cannot be located with the accuracy of a cell. The basic factor for this problem is that on the IP interface of the GPRS network, no specific sub- scriber identifier is used. In the GSM system, visible is only the IP address (IP, Internet Protocol) of the entity that requested the service. The IP address is, in addition, often dynamic by nature, i. e. it is cre- ated for each connection specifically.

One solution to the problem is to integrate a GPS positioning system (GPS, Global Positioning Sys- tem) into the terminal device of a mobile communica- tion network. This kind of solution is, however, costly. In addition, terminal devices become compli- cated.

OBJECTIVE OF THE INVENTION

The objective of the invention is to elimi- nate the drawbacks referred to above or at least sig- nificantly to alleviate them. One specific objective of the invention is to disclose a new type of method and system which enable one to locate a terminal de- vice of a packet-switched telecommunication network such as a GPRS network with the accuracy of a cell.

BRIEF DESCRIPTION OF THE INVENTION The present invention relates to the obtain- ing of the location information of a GPRS terminal de- vice. In the invention, a subscriber identifier/IP ad- dress pairs are got from the GPRS network and they are saved to the database. These pairs are being utilized when locating a GPRS terminal device.

The invention relates to a method for obtain- ing the location information of a terminal device of a packet-switched telecommunication network, in which method, a context associated with the opening of a data-transmission connection is created, and a loca- tion-dependant service request is sent to the service provider by means of the terminal device. The context may be created by the terminal device or the telecom- munication network. When the context is created, the terminal device is allocated an IP address, which is ordinarily dynamic.

According to the invention, the IP address allocated to the context and the subscriber identifier of the user of the terminal device are found out, and the subscriber identifier/IP address pair is saved to the database. The service provider sends an inquiry which contains the IP address allocated to the con- text. The subscriber identifier corresponding to the IP address is retrieved from the database, the identi- fier being advantageously a MSISDN number (MSISDN, Mo- bile Subscriber ISDN) or IMSI (IMSI, International Mo- bile Subscriber Identity). A location server is used

to find out the location information of the subscriber based on the subscriber identifier. When the location information has been found out, it is sent to the service provider. The location information is advanta- geously used to mean CellID information.

When the context is released, the subscriber identifier associated with the context and the IP ad- dress are deleted from the database.

The invention also relates to a method for obtaining the location information of a terminal de- vice of a GPRS network. In the method, a PDP context (PDP, Packet Data Protocol) associated with the data- transmission connection is opened, and a location- dependant service request is sent to the service pro- vider by means of the terminal device. The PDP context may be created by the terminal device or the telecom- munication network.

According to the invention, the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the GPRS terminal device are found out, and they are saved to the database. The service provider sends an inquiry which contains the IP address allocated to the PDP context. Based on this, it is possible to retrieve from the database the subscriber identifier of the user of the GPRS terminal device that is preferably a MSISDN number. Based on the subscriber identifier, the location server finds out the IMSI identifier from the home location regis- ter, and further the address of the SGSN node (SGSN, Serving GPRS Support Node) serving the GPRS terminal device.

The location server sends a BSSAP+ MS Infor- mation Request message (BSSAP, Base Station System Ap- plication Part) to the SGSN node. The SGSN node sends the location information of the GPRS terminal device to the location server in a BSSAP+ MS Information Re- sponse message. The location server transmits the lo-

cation information further to the service provider.

The location information is advantageously used to mean CellID information. When the PDP context is re- leased, the subscriber identifier associated with the PDP context and the IP address are deleted from the database.

The IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS terminal device may be found out in many different ways. The GGSN node may send e. g. by means of the Ra- dius protocol a radius message to the Radius server program, the radius message containing the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the GPRS terminal device. The location server may be used to monitor the GTP tunnel (GTP, Gateway Tunnel Protocol) between the SGSN node and the GGSN node and to pick up subscriber identi- fier/IP address pairs from there in the creation phase of the PDP context. The SGSN node may send subscriber identifier/IP address pairs to the location server.

The invention also relates to a method for obtaining the location information of a terminal de- vice of a GPRS network. In the method, a PDP context associated with the opening of a data-transmission connection is created, and a location-dependant serv- ice request is sent to the service provider by means of the terminal device. The PDP context may be created by the terminal device or the telecommunication net- work.

According to the invention, the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the terminal device are found out, and they are saved to the database. The service provider sends an inquiry which contains the IP ad- dress allocated to the PDP context. Based on this, from the database, the subscriber identifier of the user of the GPRS terminal device is retrieved that is

advantageously a MSISDN number. The location server sends an ATI message (ATI, Any Time Interrogation) consistent with the MAP protocol to the home location register, the ATI message containing the subscriber identifier of the user of the GPRS terminal device.

Instead of an ATI message, a SRI message (SRI, Send Routing Info) consistent with the MAP protocol may be used. The home location register converts the ATI in- quiry into a PSI inquiry (PSI, Provide Subscriber Info) consistent with the MAP protocol and sends the PSI inquiry to the visitor location register. The visitor location register directs the PSI inquiry to the SGSN node using the MS Information Request message of the BSSAP+ protocol. The SGSN node returns the lo- cation information of the GPRS terminal device to the visitor location register in a MS Information Response message. The visitor location register sends a PSI re- sponse message to the visitor location register that contains the location information. The visitor loca- tion register in turn sends an ATI response message to the location server that contains the location infor- mation. The location server transmits the location in- formation further to the service provider. The loca- tion information is advantageously used to mean CellID information. When the PDP context is released, the subscriber identifier associated with the PDP context and the IP address are deleted from the database.

The IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS terminal device may be found out in many different ways. The GGSN node may send e. g. by means of the Ra- dius protocol a radius message to the Radius server program, the radius message containing the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the GPRS terminal device. The location server may be used to monitor the GTP tunnel between the SGSN node and the GGSN node and to pick up

subscriber identifier/IP address pairs from there in the creation phase of the PDP context. The SGSN node may send subscriber identifier/IP address pairs to the location server.

The invention also relates to a method for obtaining the location information of a terminal de- vice of a GPRS network. In the method, a PDP context associated with the opening of a data-transmission connection is created, and a location-dependant serv- ice request is sent to the service provider by means of the terminal device. The PDP context may be created by the terminal device or the telecommunication net- work.

According to the invention, the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the terminal device are found out, and they are saved to the database. The service provider sends an inquiry which contains the IP ad- dress allocated to the PDP context. Based on this, from the database, the subscriber identifier of the user of the GPRS terminal device is retrieved that is advantageously a MSISDN number. The location server is used to find out the IMSI identifier and the address of the serving mobile switching center from the home location register based on the subscriber identifier.

The location server sends a short message to the GPRS terminal device using a circuit-switched connection.

After this, the location server sends an ATI message consistent with the MAP protocol to the home location register, the ATI message containing the sub- scriber identifier of the user of the GPRS terminal device. Instead of an ATI message, a SRI message con- sistent with the MAP protocol may be used. The home location register converts the ATI inquiry into a PSI inquiry consistent with the MAP protocol and sends it to the visitor location register. The visitor location register sends to the home location register a PSI re-

sponse message that contains the location information.

The home location register in turn sends to the loca- tion server an ATI response message that contains the location information. The location server sends a MAP Abort message to the mobile switching center, if a MMS bit (MMS, More Messages to Send) was activated in the short message sent to the GPRS terminal device from the location server utilizing the circuit-switched connection. The location server transmits the location information further to the service provider. The loca- tion information is advantageously used to mean CellID information. When the PDP context is released, the subscriber identifier associated with the PDP context and the IP address are deleted from the database.

The IP address allocated to the PDP context and the subscriber identifier of the user of the GPRS terminal device may be found out in many different ways. The GGSN node may send e. g. by means of the Ra- dius protocol a radius message to the Radius server program, the radius message containing the IP address allocated to the PDP context and the subscriber iden- tifier of the user of the GPRS terminal device. The location server may be used to monitor the GTP tunnel between the SGSN node and the GGSN node and to pick up subscriber identifier/IP address pairs from there in the creation phase of the PDP context. The SGSN node may send subscriber identifier/IP address pairs to the location server.

The invention relates to a location server for obtaining the location information of a terminal device of a packet-switched telecommunication network.

According to the invention, the location server com- prises message means for sending and receiving mes- sages to the service provider/from the service pro- vider, and a signaling interface for sending and re- ceiving signaling messages.

In one embodiment of the invention, the loca- tion server comprises a database for saving the sub- scriber identifier/IP address pairs.

In one embodiment of the invention, the loca- tion server comprises data acquisition means for find- ing out the subscriber identifier/IP address pair as- sociated with the user of the GPRS terminal device.

The data acquisition means are also used to transmit the subscriber identifier/IP address pair to the data- base. The data acquisition means are used to refer e. g. to the Radius server program.

In one embodiment of the invention, the loca- tion server comprises message means for retrieving the subscriber identifier/IP address pairs from the data- base.

In one embodiment of the invention, the data acquisition means are used to refer to a data collec- tor which is used to monitor the GTP tunnel between the SGSN node and the GGSN node.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the home location regis- ter/from the home location register and to the SGSN node/from the SGSN node.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the home location regis- ter/from the home location register.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the home location regis- ter/from the home location register and to the mobile switching center/from the mobile switching center.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the home location regis-

ter/from the home location register and to the visitor location register/from the visitor location register.

The invention also relates to a system for obtaining the location information of a terminal de- vice of a GPRS network. The system comprises SGSN node, a GGSN node, which is connected to the SGSN node, a GTP tunnel, which is located in between the SGSN node and the GGSN node, a service provider, which communicates with the GGSN node, a GPRS terminal de- vice, which communicates with the SGSN node, and a home location register.

According to the invention, the system com- prises data acquisition means for finding out the sub- scriber identifier/IP address pair associated with the user of the GPRS terminal device and for saving the subscriber identifier/IP address pairs obtained using the data acquisition means of the database. The system further comprises a location server which comprises message means for sending and receiving messages to the service provider/from the service provider, and a signaling interface for sending and receiving signal- ing messages to the home location register/from the home location register and to the SGSN node/from the SGSN node.

In one embodiment of the invention, the loca- tion server comprises a database for saving the sub- scriber identifier/IP address pairs.

In one embodiment of the invention, the loca- tion server comprises message means for retrieving the subscriber identifier/IP address pairs from the data- base.

In one embodiment of the invention, the loca- tion server comprises data acquisition means for find- ing out the subscriber identifier/IP address pair as- sociated with the user of the GPRS terminal device.

In one embodiment of the invention, the data acquisition means are used to refer to a Radius server

program which receives information from the Radius client program of the GGSN node.

In one embodiment of the invention, the data acquisition means are used to refer to a data collec- tor which is used to monitor the GTP tunnel in between the SGSN node and the GGSN node.

In one embodiment of the invention, the SGSN node comprises data transmission means for sending the subscriber identifier/IP address pair to the location server.

The invention relates to a system for obtain- ing the location information of a terminal device of a GPRS network. The system comprises a SGSN node, a GGSN node, which is connected to the SGSN node, a GTP tun- nel, which is located in between the SGSN node and the GGSN node, a service provider, which communicates with the GGSN node, a GPRS terminal device, which communi- cates with the SGSN node, a home location register, a visitor location register, which communicates with the home location register, and a mobile switching center which communicates with the visitor location register.

According to the invention, the system com- prises data acquisition means for finding out the sub- scriber identifier/IP address pair associated with the user of the GPRS terminal device, and a database for saving the subscriber identifier/IP address pairs ob- tained using the data acquisition means. The system further comprises a location server which comprises message means for sending and receiving messages to the service provider/from the service provider, and a signaling interface for sending and receiving signal- ing messages to the home location register/from the home location register.

In one embodiment of the invention, the loca- tion server comprises a database for saving the sub- scriber identifier/IP address pairs.

In one embodiment of the invention, the loca- tion server comprises message means for retrieving the subscriber identifier/IP address pairs from the data- base.

In one embodiment of the invention, the loca- tion server comprises data acquisition means for find- ing out the subscriber identifier/IP address pair as- sociated with the user of the GPRS terminal device.

In one embodiment of the invention, the data acquisition means are used to refer to a Radius server program which receives information from the Radius client program of the GGSN node.

In one embodiment of the invention, the data acquisition means are used to refer to a data collec- tor which is used to monitor the GTP tunnel in between the SGSN node and the GGSN node.

In one embodiment of the invention, the SGSN node comprises data transmission means for sending the subscriber identifier/IP address pair to the location server.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the visitor location register/from the visitor location register.

The invention also relates to a system for obtaining the location information of a terminal de- vice of a GPRS network. The system comprises a SGSN node, a GGSN node, which is connected to the SGSN node, a GTP tunnel, which is located in between the SGSN node and the GGSN node, a service provider, which communicates with the GGSN node, a GPRS terminal de- vice, which communicates with the SGSN node, a home location register, a visitor location register, which communicates with the home location register and the SGSN node, and a mobile switching center which commu- nicates with the visitor location register.

According to the invention, the system com- prises data acquisition means for finding out the sub- scriber identifier/IP address pair associated with the user of the GPRS terminal device, and a database for saving the subscriber identifier/IP address pairs ob- tained using the data acquisition means. The system further comprises a location server which comprises message means for sending and receiving messages to the service provider/from the service provider, and a signaling interface for sending and receiving signal- ing messages to the home location register/from the home location register and to the mobile switching center/from the mobile switching center.

In one embodiment of the invention, the loca- tion server comprises a database for saving the sub- scriber identifier/IP address pairs.

In one embodiment of the invention, the loca- tion server comprises message means for retrieving the subscriber identifier/IP address pairs from the data- base.

In one embodiment of the invention, the loca- tion server comprises data acquisition means for find- ing out the subscriber identifier/IP address pair as- sociated with the user of the GPRS terminal device.

In one embodiment of the invention, the data acquisition means are used to refer to a Radius server program which receives information from the Radius client program of the GGSN node.

In one embodiment of the invention, the data acquisition means are used to refer to a data collec- tor which is used to monitor the GTP tunnel in between the SGSN node and the GGSN node.

In one embodiment of the invention, the SGSN node comprises data transmission means for sending the subscriber identifier/IP address pair to the location server.

In one embodiment of the invention, the sig- naling interface comprises means for sending and re- ceiving signaling messages to the visitor location register/from the visitor location register.

Thanks to the present invention, a GPRS ter- minal device equipped with the short message facility of a circuit-switched mobile communication network, as well as a terminal device equipped merely with the GPRS facility may be located with the accuracy of a cell.

BRIEF DESCRIPTION OF THE DRAWINGS In the following section, the invention will be described in detail with the aid of the examples of its embodiments, in which Fig. 1 represents one advantageous system in accordance with the invention, Fig. 2 represents one advantageous system in accordance with the invention, Fig. 3 represents one advantageous system in accordance with the invention, Fig. 4 represents one advantageous system in accordance with the invention, Fig. 5 represents one advantageous system in accordance with the invention, Fig. 6 is one advantageous signaling flow chart illustrating the function of the method in ac- cordance with the invention, Fig. 7 is one advantageous signaling flow chart illustrating the function of the method in ac- cordance with the invention, and Fig. 8 is one advantageous flow chart illus- trating the function of the method in accordance with the invention.

DETAILED DESCRIPTION OF THE INVENTION

The system as shown in Fig. 1 comprises a GPRS terminal device MS, which communicates with the SGSN node SGSN. The SGSN node is connected to the GGSN node via the GTP tunnel. The SGSN, GGSN and GTP are the basic concepts of the GPRS system, further infor- mation on which is available e. g. in the standard ETSI EN 301 344 V6.6.0 (2000-02) of ETSI (ETSI, European Telecommunication Standardization Organization). From the GGSN node there is a connection to the service provider SP via the Internet NET. The system as shown in Fig. 1 comprises, in addition, a mobile switching center MSC (MSC, Mobile Switching Center) and a visi- tor location register VLR (VLR, Visitor Location Reg- ister), from which there is a connection to the home location register HLR (HLR, Home Location Register).

From the home location register HLR there is a connec- tion to the location server LOC.

According to the invention, the system com- prises also a location server LOC from which there is a connection to the service provider SP, home location register HLR and to the GGSN node. The location server LOC comprises data acquisition means DM for finding out the subscriber identifier/IP address pair associ- ated with the user of the GPRS terminal device, a da- tabase DB for saving the subscriber identifier/IP ad- dress pair obtained using the data acquisition means DM, message means IP for sending and receiving mes- sages to the service provider/from the service pro- vider SP, and a signaling interface SS7 for sending and receiving messages to the home location regis- ter/from the home location register HLR and to the mo- bile switching center/from the mobile switching center MSC.

The data acquisition means DM are advanta- geously used to refer to a Radius server program. In the GGSN node there is implemented a Radius protocol.

More information on the Radius protocol is available

e. g. in the publications RFC 2058 and RFC 2059 (RFC, Request For Comments). When a PDP context is opened from the terminal device MS, the Radius client program of the GGSN node sends a Radius message to the Radius server program DM of the location server LOC. The PDP context may be created by the terminal device or the telecommunication network. The message contains the dynamic IP address allocated to the PDP context and the subscriber identifier associated with the user of the terminal device, advantageously a MSISDN number.

From the Radius server program DM, the dynamic IP ad- dress and the MSISDN number are copied to the database DB. When the PDP context is released, the connection between the subscriber identifier and the IP address is deleted. The Radius client program in the GGSN node sends a released message which contains the subscriber identifier and the dynamic IP address. As a conse- quence of this, the subscriber identifier/IP address pair is deleted from the database DB.

In one embodiment of Fig. 1, the Radius server program DB and/or the database DB are separate components of the location server LOC.

Fig. 2 represents one system in accordance with the invention that differs only little from the system as shown by Fig. 1. In the system as shown by Fig. 2, no Radius protocol is needed. Instead, in the GTP tunnel in between the SGSN node and the GGSN node, a monitoring unit DM is installed that monitors the traffic between the two aforementioned nodes. The monitoring unit DM retrieves the subscriber identi- fier/IP address pairs created in the creation phase of the PDP context. When this kind of pair is found, it is saved to the database DB. When the PDP context is released, the connection between the subscriber iden- tifier and the IP address is deleted. This piece of information is monitored from the GTP tunnel, and as a

consequence of this, the subscriber identifier/IP ad- dress pair is deleted from the database DB.

In one embodiment of Fig. 2, the monitoring unit DB and/or the database DB are separate components of the location server LOC.

Fig. 3 represents one system in accordance with the invention that differs only little from the system as shown by Fig. 1. In the system as shown by Fig. 3, a monitoring unit resembling the one shown in Fig. 2 is constructed in the SGSN node. The SGSN node sends a notification of all the subscriber identi- fier/IP address pairs to the location server LOC. When the PDP context is released, the SGSN node sends a no- tification thereof to the location server LOC. The functioning described above may be implemented e. g. by means of the Radius protocol in such a way that the SGSN node comprises a Radius client program MM and the location server LOC a Radius server program DM.

In one embodiment of Fig. 3, the Radius server program DB and/or the database DB are separate components of the location server LOC.

The system as shown in Fig. 4 comprises a GPRS terminal device MS which communicates with the SGSN node SGSN. The SGSN node is connected to the GGSN node by means of the GTP tunnel. There is a connection from the GGSN node to the service provider SP via the Internet NET. The system as shown in Fig. 4 comprises, in addition, a home location register HLR. In the sys- tem as shown in Fig. 4 it has been presented that the obtaining of the subscriber identifier/IP address pair information associated with the PDP context has been implemented by means of the Radius protocol and the GGSN node, just like in Fig. 1. The subscriber identi- fier/IP address pair information may alternatively be obtained in a manner as shown by Fig. 2 (monitoring unit) or as shown by Fig. 3 (SGSN). The location server LOC as shown in Fig. 4 differs from the loca-

tion server shown in Fig. 1 in that the signaling in- terface SS7 may be used to send and receive messages to the home location register/from the home location register HLR and to the SGSN node/from the SGSN node.

In one embodiment of Fig. 4, the Radius server program DB and/or the database DB are separate components of the location server LOC.

The system as shown in Fig. 5 comprises a GPRS terminal device MS which communicates with the SGSN node SGSN. The SGSN node is connected to the GGSN node by means of the GTP tunnel. There is a connection from the GGSN node to the service provider SP via the Internet NET. The system as shown in Fig. 5 comprises, in addition, a mobile switching center MSC and a visi- tor location register VLR, from which there is a con- nection to the home location register HLR and to SGSN node. There is a connection from the home location register HLR to the location server LOC. In the system as shown in Fig. 5 it has been presented that the ob- taining of the subscriber identifier/IP address pair information associated with the PDP context has been implemented by means of the Radius protocol and the GGSN node, just like in Fig. 1. The subscriber identi- fier/IP address pair information may alternatively be obtained in a manner as shown by Fig. 2 (monitoring unit) or as shown by Fig. 3 (SGSN). The signaling in- terface SS7 may be used to send and receive messages to the home location register/from the home location register HLR.

In one embodiment of Fig. 5, the Radius server program DB and/or the database DB are separate components of the location server LOC.

Fig. 6 is a signaling flow chart illustrating the function of the method of the invention in the system as shown in Fig. 1. Differing from the system as shown by Fig. 1, the Radius server DM and the data- base DB have in the example of Fig. 6 been separated

as separate components apart from the location server LOC. They can, however, be also a part of the location server LOC.

The GPRS terminal device MS opens a PDP con- text to the SGSN node and from it further to the GGSN node, arrows 1-3. The Radius client program of the GGSN node sends a Radius message (Accounting Start) to the Radius server program DM, arrow 4. The message contains at least a subscriber identifier (MSISDN) and a dynamic IP address. From the Radius server program DM, the subscriber identifier and the dynamic IP ad- dress are copied to the database DB, arrow 5. When the service provider receives a location-dependant service request, arrow 6, it makes, based on the dynamic IP address of the sender that is contained in the service request, a subscriber identifier inquiry to the data- base DB, arrow 7. The location-dependant service re- quest is used to mean e. g. a request received from the GPRS terminal device MS in which one wishes to know the restaurants in the neighbourhood. The database DB returns to the service provider SP the subscriber identifier associated with the IP address that is ad- vantageously a MSISDN number, arrow 8. The service provider SP sends to the message means IP of the loca- tion server LOC a location information request which contains the subscriber identifier (MSISDN), arrow 9.

The message means IP transmit the subscriber identi- fier further to the signaling interface SS7, arrow 10.

The signaling interface SS7 sends to the home location register HLR a Send Routing Info for Short Message inquiry which contains the subscriber identi- fier MSISDN, arrow 11. As shown by arrow 12, the home location register HLR responds with a Send Routing Info for Short Message Response message. This message contains the IMSI identifier corresponding to the MSISDN number. In addition, it contains the address of the mobile switching center MSC serving the circuit-

switched mobile station part of the GPRS terminal de- vice MS, e. g. the GSM part (GSM, Global System for Mo- bile communications). The signaling interface SS7 sends a short message to the GPRS terminal device MS by means of a circuit-switched connection via the mo- bile switching center MSC and the base station con- troller BSC using a Forward Short Message, arrow 13.

The FSM message contains a MMS parameter (More Mes- sages To Send). If the MMS parameter has been acti- vated in the message, the GPRS terminal device MS keeps waiting for new short messages for a while, and because of this, the visitor location register VLR stores the cell information as long as the radio con- nection is open. If the MMS parameter is not acti- vated, the visitor location register VLR contains the cell information (CellID) only for a while, and after this, there is only the LAI information remaining (LAI, Location Area Identity). The GPRS terminal de- vice MS sends a FMS Ack message to the signaling in- terface SS7, arrow 14. The FSM message has been de- scribed in more detail e. g. in the standard of ETSI ETSI TS 100 974 V7.5.1 (2000-09).

The signaling interface SS7 sends an ATI in- quiry consistent with the MAP protocol to the home lo- cation register HLR, arrow 15. An operation alterna- tive to the ATI inquiry is a Send Routing Info (SRI).

The home location register HLR converts this inquiry into a PSI operation and sends a new inquiry to the visitor location register VLR, arrow 16. The visitor location register VLR returns the location information (CellID) to the home location register HLR in a PSI Ack message, arrow 17. As shown by arrow 18, the home location register HLR sends to the signaling interface SS7 an ATI Response message which contains the piece of location information. The signaling interface SS7 sends, in addition, a MAP Abort message to the mobile switching center MSC, arrow 19. The meaning of this

message is that the circuit-switched radio connection earlier established to the terminal device GPRS is re- leased. The MAP Abort message is sent, however, only when the MMS bit was activated in the FSM message as shown by arrow 13. In other words, if the visitor lo- cation register VLR supports the storing of the latest cell information, then an ordinary short message is sent that does not contain the activated MMS bit. If the visitor location register VLR does not support this feature, then a short message is sent that con- tains the activated MMS bit. In that case, one has to use a MAP Abort message, as shown above.

The peace of location information is trans- mitted to the service provider as shown by arrows 20 and 21. When the PDP context previously established is released, the Radius client program of the GGSN node transmits a released message (Accounting Stop) to the Radius server program DM, arrow 22. The released mes- sage contains the subscriber identifier and the dy- namic IP address. As a consequence of this, the sub- scriber identifier/IP address pair is deleted from the database, arrow 23.

In the signal flow chart as shown by Fig. 6 it has been presented that the obtaining of the piece of information on the subscriber identifier/IP address pair associated with the PDP context has been imple- mented by means of the Radius protocol and the GGSN node. Alternatively, the subscriber identifier/IP ad- dress pair may be obtained e. g. in a manner as shown by Fig. 2 (monitoring unit) or as shown by Fig. 3 (SGSN).

Fig. 7 is a signaling flow chart illustrating the function of the method of the invention in the system as shown in Fig. 4. Differing from the system as shown by Fig. 4, the Radius server DM and the data- base DB have in the example of Fig. 7 been separated as separate components apart from the location server

LOC. They can, however, be also a part of the location server LOC.

The GPRS terminal device MS opens a PDP con- text to the SGSN node and from it further to the GGSN node, arrows 24-26. The Radius client program of the GGSN node sends a Radius message (Accounting Start) to the Radius server program DM, arrow 27. The message contains at least a subscriber identifier (MSISDN) and a dynamic IP address. From the Radius server program DM, the subscriber identifier and the dynamic IP ad- dress are copied to the database DB, arrow 28. When the service provider SP receives a location-dependant service request, it makes, based on the dynamic IP ad- dress of the sender that is contained in the service request, a location information inquiry to the loca- tion server LOC, arrows 29 and 30. The location- dependant service request is used to mean e. g. a re- quest received from the GPRS terminal device MS in which one wishes to know the restaurants in the neigh- bourhood. The message means IP of the location server LOC are used check from the database DB with what sub- scriber identifier the received dynamic IP address is associated, arrows 31 and 32. The subscriber identi- fier is transmitted further to the signaling interface SS7.

The signaling interface SS7 sends to the home location register HLR a Send IMSI inquiry which con- tains the subscriber identifier MSISDN, arrow 34. As shown by arrow 35, the home location register HLR sends an IMSI identifier to the signaling interface SS7. Next, the signaling interface SS7 sends to the home location register HLR a Send routing Info for GPRS service inquiry which contains the IMSI identi- fier previously retrieved, arrow 36. As shown by arrow 37, the signaling interface SS7 receives as a response the address of the SGSN node in whose area the GPRS terminal device MS is located. After this, the signal-

ing interface SS7 sends, as shown by arrow 38, a MS information request message consistent with the BSSAP+ protocol to the SGSN node. The SGSN node returns the MS CellID information of the GPRS terminal device to the signaling interface SS7 in the MS Information Re- sponse message of the BSSAP+ protocol, arrow 39. The BBSSAP+ protocol has been described in more detail e. g. in the standard of ETSI STSI TS 101 346 V6.5.0 (1999-11).

The piece of location information is trans- mitted to the service provider SP, as shown by arrows 40 and 41. When the PDP context previously established is released, the Radius client program of the GGSN node transmits a released message (Accounting Stop) to the Radius server program DM, arrow 42a. The released message contains the subscriber identifier and the dy- namic IP address. As a consequence of this, the sub- scriber identifier/IP address pair is deleted from the database DB, arrow 42b.

In the signal flow chart as shown by Fig. 7 it has been presented that the obtaining of the piece of information on the subscriber identifier/IP address pair associated with the PDP context has been imple- mented by means of the Radius protocol and the GGSN node. Alternatively, the subscriber identifier/IP ad- dress pair may be obtained e. g. in a manner as shown by Fig. 2 (monitoring unit) or as shown by Fig. 3 (SGSN).

Fig. 8 is a signaling flow chart illustrating the function of the method of the invention in the system as shown in Fig. 5. The database DB and the Radius server DM are in this example internal features of the location server LOC.

The GPRS terminal device MS opens a PDP con- text to the SGSN node and from it further to the GGSN node, arrows 43-45. The Radius client program of the GGSN node sends a Radius message (Accounting Start) to

the Radius server program DM, arrow 46. The message contains at least a subscriber identifier (MSISDN) and a dynamic IP address. From the Radius server program DM, the subscriber identifier and the dynamic IP ad- dress are copied to the database DB, arrow 47. When the service provider SP receives a location-dependant service request, it makes, based on the dynamic IP ad- dress of the sender that is contained in the service request, a location information inquiry to message means IP of the location server LOC, arrows 48 and 49.

The location-dependant service request is used to mean e. g. a request received from the GPRS terminal device MS in which one wishes to know the restaurants in the neighbourhood. The message means IP of the location server LOC are used check from the database DB with what subscriber identifier the received dynamic IP ad- dress is associated, arrows 50 and 51. The subscriber identifier is transmitted further to the signaling in- terface SS7, arrow 52.

The signaling interface SS7 sends to the home location register HLR an ATI inquiry consistent with the MAP protocol, arrow 53. An alternative operation to the ATI inquiry is a Send routing Info (SRI). The home location register HLR converts this inquiry into a PSI operation and sends a new inquiry to the visitor location register VLR, arrow 54. The visitor location register VLR forwards this inquiry to the SGSN node using the Gs interface of the GPRS system, the BSSAP+ Protocol and the MS Information Request message, arrow 55. As a consequence of the inquiry, the SGSN node re- turns the CellID information to the visitor location register VLR in a MS Information Response Message, ar- row 56. The visitor location register VLR returns the CellID information to the home location register HLR in a PSI Ack message, arrow 57. As shown by arrow 58, the home location register HLR sends to the signaling

interface SS7 an ATI Response message which contains the piece of location information.

The piece of location information is trans- mitted to the service provider SP, as shown by arrows 59 and 60. When the PDP context previously established is released, the Radius client program of the GGSN node transmits a released message (Accounting Stop) to the Radius server program DM of the location server LOC, arrow 61. The released message contains the sub- scriber identifier and the dynamic IP address. As a consequence of this, the subscriber identifier/IP ad- dress pair is deleted from the database DB, arrow 62.

In the signal flow chart as shown by Fig. 8 it has been presented that the obtaining of the piece of information on the subscriber identifier/IP address pair associated with the PDP context has been imple- mented by means of the Radius protocol and the GGSN node. Alternatively, the subscriber identifier/IP ad- dress pair may be obtained e. g. in a manner as shown by Fig. 2 (monitoring unit) or as shown by Fig. 3 (SGSN).

Thanks to the invention it is possible to lo- cate a GPRS terminal device with the accuracy of a cell area. The systems/methods as shown in Figs. 1,2, 3 and 6 require that the GPRS terminal device is equipped with the short message feature of a circuit- switched mobile communication network, e. g. a GSM net- work. Figs. 4,5,7 and 8 present a system/method which functions also in such a case when the GPRS ter- minal device is equipped solely with the GPRS feature.

Although it has been presented in the examples of Figs. 1 and 3-8 that the data acquisition means DM refer to a Radius server program and that the sub- scriber identifier/IP address pair is received from the GGSN node or the SGSN node by means of the Radius client program, the data acquisition means DM may re-

fer to any other means by means of which the sub- scriber identifier/IP address pair may be found out.

In Fig. 6 it has been presented that the service provider SP asks for the subscriber identifier (MSISDN) from the database DB by means of the IP ad- dress. In Fig. 7 it has been presented that the same inquiry is made by the location server LOC. In Figs. 6 and 7, the database DB and the Radius server DM are separate components of the location server LOC. In the example of Fig. 8, the database DB and the Radius server DM are internal features of the location server LOC. These are, however, implementations of the method and system of the invention by way of example only.

In the examples as shown by Figs. 1-3,5,6 and 8, the home location register HLR makes a PSI in- quiry to the visitor location register after the ATI inquiry. The location server LOC may make a PSI in- quiry directly to the visitor location register VLR when necessary in such a way that it is not necessary to send an ATI inquiry at all. This requires, however, that the signaling interface SS7 of the location server LOC checks from the home location register the IMSI identifier corresponding to the MSISDN number and the address of the visitor location register VLR. This information the signaling interface SS7 gets from the home location register e. g. by means of a Send Routing Info message or by means of a Send Routing Info for Short Message. The Send Routing Info inquiry is used to find out the address of the mobile switching center MSC from which one can derive the address of the visi- tor location register VLR. The Send Routing Info for Short Message inquiry is used to find out the address of the visitor location register VLR. The visitor lo- cation register VLR returns the piece of location in- formation (CELLID) of the GPRS terminal device MS to the signaling interface SS7 in a PSI Response message.

The invention is not restricted merely to the examples of its embodiments referred to above, instead many variations are possible within the scope of the inventive idea defined by the claims.