CN114845248A - User position acquisition method, front-end processor, equipment and system - Google Patents

User position acquisition method, front-end processor, equipment and system Download PDF

Info

Publication number
CN114845248A
CN114845248A CN202210266120.0A CN202210266120A CN114845248A CN 114845248 A CN114845248 A CN 114845248A CN 202210266120 A CN202210266120 A CN 202210266120A CN 114845248 A CN114845248 A CN 114845248A
Authority
CN
China
Prior art keywords
user
information
location
position information
track
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.)
Pending
Application number
CN202210266120.0A
Other languages
Chinese (zh)
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 United Network Communications Group Co Ltd
Original Assignee
China United Network 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210266120.0A priority Critical patent/CN114845248A/en
Publication of CN114845248A publication Critical patent/CN114845248A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a user position obtaining method, a front-end processor, equipment and a system. The method comprises the steps that a front-end processor receives a position query request sent by a position query server, wherein the position query request comprises an identifier of a first user; the front-end processor queries and obtains the position information of the first user according to the locally stored position information of each user; the position information of each user is obtained based on original data sent by a core network; and the front-end processor returns the position information of the first user to the position query server so as to enable the position query server to obtain the position of the first user. According to the scheme, the front-end processor is arranged, when the position information of the user is inquired, the front-end processor responds to the position inquiry request, the resource of the core network does not need to be consumed, and therefore the influence on the performance of the core network is avoided.

Description

User position acquisition method, front-end processor, equipment and system
Technical Field
The present application relates to communications technologies, and in particular, to a user location obtaining method, a front-end processor, a device, and a system.
Background
With the gradual development of the mobile internet, the significance of acquiring the user position in different fields is more and more important. For example, in the field of wind control, when a user logs in the system at an irregular position, a higher-level verification means can be set to ensure safety. As another example, user location can also be used for user profile analysis, etc.
Current user location acquisition schemes include base station location methods. When a user needs to be positioned, the position query server initiates a request to the core network to obtain the number of the base station where the user is located, which is returned by the core network response, and then the position query server queries the locally stored base station work-parameter table to obtain the longitude and latitude information corresponding to the number of the base station where the user is located in the base station work-parameter table, so as to obtain the position of the user.
However, the above-mentioned user location acquisition scheme needs to consume resources of the core network, resulting in a reduction in performance of the core network.
Disclosure of Invention
The application provides a user position acquisition method, a front-end processor, equipment and a system, which are used for solving the technical problems of high resource consumption and low performance of a core network.
In one aspect, the present application provides a user location obtaining method, which is applied to a front-end processor, and the method includes:
receiving a position query request sent by a position query server, wherein the position query request comprises an identifier of a first user;
according to the locally stored position information of each user, inquiring to obtain the position information of the first user; the position information of each user is obtained based on original data sent by a core network;
and returning the position information of the first user to the position query server so that the position query server obtains the position of the first user.
In one embodiment, the method further comprises:
receiving original data sent by the core network, and analyzing the original data to obtain position information of a second user;
and updating the locally stored position information of the second user according to the position information of the second user obtained by analysis.
In one embodiment, the location information includes a base station number and a timestamp; the updating the locally stored location information of the second user according to the location information of the second user obtained by analysis includes:
detecting whether the analyzed position information of the second user is consistent with a base station number in the locally stored position information of the second user;
if the position information of the second user is consistent with the position information of the second user, updating and recording a time stamp in the position information of the second user which is locally stored; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
In one embodiment, the method further comprises:
and establishing track information of the user aiming at each locally stored user, wherein the track information comprises position information of the user before position change every time and position information after position change.
In one embodiment, the method further comprises:
receiving a track query request sent by a position query server, wherein the track query request comprises an identifier of a third user;
inquiring the track information of each user stored locally to obtain the track information of the third user;
and sending the track information of the third user to the position query server.
In one embodiment, the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions; sending track information of the third user to the location query server, including:
and sending the track information of the third user in the corresponding region to the position query server, so that the position query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
In another aspect, the present application provides a front-end processor, comprising:
the system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving a position query request sent by a position query server, and the position query request comprises an identifier of a first user;
the processing module is used for inquiring and acquiring the position information of the first user according to the locally stored position information of each user; the position information of each user is obtained based on original data sent by a core network;
and the sending module is used for returning the position information of the first user to the position query server so as to enable the position query server to obtain the position of the first user.
In an embodiment, the processing module is further configured to receive original data sent by the core network, and analyze the original data to obtain location information of a second user;
the processing module is further configured to update the locally stored location information of the second user according to the location information of the second user obtained through analysis.
In one embodiment, the location information includes a base station number and a timestamp; the processing module comprises:
the analysis unit is used for detecting whether the position information of the second user obtained by analysis is consistent with a base station number in the position information of the second user stored locally;
the updating unit is used for updating and recording the time stamp in the locally stored position information of the second user if the position information of the second user is consistent with the position information of the second user; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
In an embodiment, the processing module is further specifically configured to establish, for each locally stored user, trajectory information of the user, where the trajectory information includes location information of the user before location change each time and location information after location change.
In an embodiment, the receiving module is further configured to receive a track query request sent by a location query server, where the track query request includes an identifier of a third user;
the processing module is further configured to query locally stored trajectory information of each user to obtain trajectory information of the third user;
the sending module is further configured to send the track information of the third user to the location query server.
In one embodiment, the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions;
the sending module is specifically configured to send the track information of the third user in the corresponding region to the location query server, so that the location query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
In yet another aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to implement the method as previously described.
In another aspect, the present application provides a user location obtaining system, including: the front-end processor, the core network and the position query server are arranged; wherein, the first and the second end of the pipe are connected with each other,
the location query server is used for initiating a location query request to the front-end processor, wherein the location query request comprises an identifier of a first user;
and the position query server is further used for receiving and obtaining the position of the first user according to the position information of the first user returned by the front-end processor.
In the user position acquisition method, the front-end processor, the device and the system, the front-end processor is arranged between the core network and the position query server and is responsible for collecting and maintaining the user position information based on data sent by the core network. When the user position needs to be acquired, the position query server initiates a query request to the front-end processor, and the front-end processor responds to the request and returns corresponding user position information to the position query server, so that the acquisition of the user position information is realized. According to the scheme, the front-end processor is arranged, when the user position information is inquired, the front-end processor responds to the position inquiry request, the resource of the core network is not consumed, and therefore the influence on the performance of the core network is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is an architectural diagram of an exemplary user location acquisition scheme;
fig. 2 is a schematic flowchart of a user location obtaining method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a process of processing raw data by a front-end processor;
FIG. 4 is an interaction diagram of an exemplary user location query method;
fig. 5 is a schematic flowchart of a user location obtaining method according to a second embodiment of the present application;
FIG. 6 is a schematic diagram of a user trajectory location query process;
fig. 7 is a schematic structural diagram of a front-end processor according to a third embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
FIG. 1 is an architectural diagram of an exemplary user location acquisition scheme. As shown, it includes: the system comprises a user, a core network, a front-end processor and a position query server.
Specifically, when the user location needs to be obtained, the user query server may send a location query request to the front-end processor. Correspondingly, the front-end processor can respond to the request to inquire the locally stored position information of each user and return the position information to the position inquiry server.
As an example, the initial location query request may be initiated by an application server, and the application server may initiate the location query request to the location query server when determining that the user location needs to be obtained currently according to the operation requirement of the application software. The location query server sends a location query request to the front-end processor according to the request of the application server, so as to execute the user location acquisition method in the embodiment.
In one example, the raw data is used to parse to obtain the base station where the user is located. The front-end processor can extract information including but not limited to a user identifier (such as a user number) and a base station number where the user is located by analyzing the original data, and establish location information of each user based on the information, for example, the location information can be maintained in a user real-time location table manner.
The technical means of the present application and the technical means of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise explicitly specified and defined, each term should be understood broadly in the art. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
Fig. 2 is a schematic flowchart of a user location obtaining method according to an embodiment of the present application, and as shown in fig. 2, the method includes:
step 101, receiving a location query request sent by a location query server, wherein the location query request comprises an identifier of a first user;
step 102, according to the locally stored position information of each user, inquiring to obtain the position information of the first user; the position information of each user is obtained based on original data sent by a core network;
step 103, returning the location information of the first user to the location query server, so that the location query server obtains the location of the first user.
In practical application, the core network is mainly responsible for managing data and sorting the data, and the location query server is responsible for sending a location query request and receiving a location query return result, where the first user is a user corresponding to the identifier in the query request. The main execution body of the embodiment is a front-end processor, and is responsible for establishing and maintaining user position information. In practical applications, optionally, the deployment of the front-end processor may be performed according to regions, so as to implement quick response of the location query through a distributed architecture. In one example, the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions. For example, the front-end computers may be deployed in different provinces, and the front-end computer corresponding to each region is responsible for acquiring and maintaining the location information of the user generating the communication data in the local region. Communication data here includes, but is not limited to, user requests and access to the base station.
For example, if a certain user lives in place a for a long time, the front-end processor in place a maintains the current location information of the user based on the original data sent by the core network. When the user's location needs to be queried, the location query server may send a location query request to the front-end processor at location a. If the user arrives at the location B due to temporary going out, the front-end processor of the location B will correspondingly maintain the current location information of the user based on the original data sent by the core network, and the location query server may send a location query request to the front-end processor of the location B.
In practical applications, some scenarios of location query may be based on the operation needs of an Application (APP), for example, when an Application such as a map Application and a take-away Application runs, current location information of a user is generally required to be acquired. As an example, the location query server may initiate a location query service to the front-end processor based on a request of the application server. In one example, the location query request is generated by the location query server based on a request of the application server. Specifically, when the user position needs to be obtained, the application server sends a request to the position query server, and correspondingly, the position query server sends the position query request to the front-end processor.
In practical application, the front-end processor is responsible for establishing and maintaining the position information of each user so as to facilitate subsequent inquiry. There are various means for establishing the location information of each user, and in one example, the method further comprises:
receiving original data sent by the core network, and analyzing the original data to obtain position information of a second user;
and updating the locally stored position information of the second user according to the position information of the second user obtained by analysis.
The second user is a user corresponding to information obtained by analyzing original data sent by the core network. In practical applications, the front-end processor stores location information of each user, for example, the location information includes a user number (a mobile phone number of the user), a base station number, a timestamp, and the like, for example, a base station number for 3G communication includes fields lac and cellid, and base station numbers for 4G communication and 5G communication include a field eci, and provincial codes are filled according to the configuration.
As an example, the location information of each user may be recorded in the form of a user real-time location table, as shown in table 1, where table 1 is an example of a data structure of the user real-time location table, and the user real-time location table is stored locally in the front-end processor. Based on the subscriber location table, the subscriber number may be indexed, including timestamp and subscriber base station number fields.
TABLE 1
Figure BDA0003552611680000061
Figure BDA0003552611680000071
Fig. 3 is a schematic diagram of a processing process of the front-end processor on the original data, and as shown in fig. 3, the front-end processor monitors a fixed port of the core network, receives the original data forwarded by the core network, performs real-time processing and analysis, and extracts the required user location information according to a protocol. As an example, the location information may include: user number, time stamp, base station number of the user. And updating the locally stored user position information according to the extracted latest base station number. Specifically, according to the analyzed user number, the user real-time location table is queried to obtain the currently stored corresponding base station number. If the latest base station number is consistent with the inquired base station number, updating is not needed, and if the latest base station number is not consistent with the inquired base station number, the latest data is updated to the user real-time position table.
In one example, the location information includes a base station number and a timestamp; the updating the locally stored location information of the second user according to the location information of the second user obtained by analysis includes:
detecting whether the analyzed position information of the second user is consistent with a base station number in the locally stored position information of the second user;
if the position information of the second user is consistent with the position information of the second user, updating and recording a time stamp in the position information of the second user stored locally; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
Specifically, the extracted user position data is compared with data in a user real-time position table, and if the base station numbers of the extracted user position data and the base station numbers of the user real-time position table are consistent, only the timestamp is updated in the user real-time position table; and if the base station numbers of the base station and the user are not consistent, updating the time stamp and the new base station number in the user real-time position table. The real-time updating of the user data guarantees the accuracy of the real-time position information of the user, and the latest position information of the user can be conveniently inquired.
Combining a scene example: the location query request is mostly initiated by an application server, when the application server is to obtain the current location information of a user, the application server sends the location query request to the location query server, and the location query server finally returns the real-time location information of the user to the application server. The position inquiry server stores the latitude and longitude information of each base station, and can obtain the real-time latitude and longitude information of the user according to the mobile phone number of the user, the timestamp and the base station number.
As shown in fig. 4, fig. 4 is an interaction schematic diagram of an exemplary user location query method, where an application server first initiates a user real-time location request to a location query server, and then the location query server initiates a query request to a front-end processor to query a real-time base station number of a user. The user position information stored in the front-end processor is obtained based on the original data sent by the core network. The front-end processor returns the number of the base station where the inquired user is located to the position inquiry server, and the position inquiry server inquires corresponding longitude and latitude information in the base station work parameter table according to the number of the base station where the user is located, which is returned by the front-end processor, and returns the longitude and latitude information of the user to the application server. The base station work parameter table comprises longitude and latitude information corresponding to the base station numbers.
In the user location obtaining method provided in this embodiment, a front-end processor is disposed between a core network and a location query server, and the front-end processor is responsible for collecting and maintaining user location information based on data sent by the core network. When the user position needs to be acquired, the position query server initiates a query request to the front-end processor, and the front-end processor responds to the request and returns corresponding user position information to the position query server, so that the acquisition of the user position information is realized. According to the scheme, the front-end processor is arranged, when the user position information is inquired, the front-end processor responds to the position inquiry request, the resource of the core network does not need to be consumed, and therefore the influence on the performance of the core network is avoided.
Example two
Fig. 5 is a schematic flowchart of a user location obtaining method provided in the second embodiment of the present application, and correspondingly, as shown in fig. 5, on the basis of the first embodiment, the method further includes:
step 501, establishing track information of each locally stored user, wherein the track information comprises position information of the user before position change and position information of the user after position change.
In one example, the front-end machines may be deployed uniformly. When the track information of the user needs to be acquired, the position query server can send the user position track query to the front-end processor. The position track query request is generated by the position query server based on the request of the application server. Specifically, when the user position track needs to be obtained, the application server initiates a request to the position query server, and correspondingly, the position query server sends the position track query request to the front-end processor.
In another example, assuming that the number of the front-end computers is multiple, a plurality of front-end computers are deployed according to provinces, and the front-end computer corresponding to each province is responsible for acquiring and maintaining the position information of the user in the province. Correspondingly, when the track information of a certain user needs to be acquired, the position query server sends a track query request to each front-end processor, and then the track information is summarized into a complete user track according to the user track information returned by each front-end processor.
For example, when a user arrives from province a to province B in a short time, the front-end processor of province a records and maintains the location information of the user in province a, and the front-end processor of province B records and maintains the location information of the user in province B. When the location query server queries the user track of the user in the near time, the location query server sends a location query request to all the front-end computers, and then receives information records of the user from the front-end computers in provinces A and B. The data returned by the front-end processor of province A is the position information of the user at each time point of province A, the data returned by the front-end processor of province B is the position information of the user at each time point of province B, and the position query server can arrange the user information returned by the front-end processor into a complete piece of user position information, namely the track record of the user.
As an example, on the basis of the second embodiment, the method further includes: receiving a track query request sent by a position query server, wherein the track query request comprises an identifier of a third user; inquiring the track information of each user stored locally to obtain the track information of the third user; and sending the track information of the third user to the position query server.
And the third user refers to the user corresponding to the identifier in the track query request. It should be noted that the terms "first user", "second user" and "third user" are used herein only for distinguishing and are not specifically referred to as specific users. For example, the users may be the same user or different users.
In practical application, a user track table is established in the front-end processor, and position information before the position of a user is changed and position information after the position is changed are recorded. For example, after new data of the same number arrives, the new data is compared with old data, if the base station number in the data changes, the position of the user changes, a record is inserted into the user track table, and the record comprises the user number, a new data timestamp, the old base station number and the new base station number, as shown in table 2, table 2 is a data structure of the user track table.
TABLE 2
Figure BDA0003552611680000091
Combining a scene example: as shown in fig. 6, fig. 6 is a schematic diagram of a user trajectory location query process. The user track position inquiry can be initiated by an application server, the application server firstly initiates a user track inquiry request to a position inquiry server, then the position inquiry server initiates an inquiry request to all front-end computers to inquire the track data of the user, and the third user is the user needing to inquire the track data. The front-end processor then returns the track data of a plurality of node users inquired in the province to the position inquiry server, wherein the track data comprises the serial number of the last node base station, the serial number of the next node base station and the corresponding time stamp. The position inquiry server stores the work table of each base station and mainly records the longitude and latitude information of each base station, and the position inquiry server inquires the corresponding longitude and latitude information in the work table of the base station according to the user track base station number returned by the front-end processor, summarizes the complete longitude and latitude track record, namely the track record of the user according to the information and returns the track record of the user to the application server.
In one example, the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions; sending track information of the third user to the location query server, including: and sending the track information of the third user in the corresponding region to the position query server, so that the position query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
Specifically, the number of the front-end computers is multiple, the front-end computers are deployed in different provinces, and the position track of the user in the province is recorded in a user track position table stored in each front-end computer. The application server firstly initiates a user track position query request to the position query server, the position query server initiates a query request to a user track position table stored in each front-end processor, queries track data of the user, summarizes total position tracks of the user according to time and then returns the total position tracks to the application server. The front-end processor can record the position information of the user in each province according to the province deployment, and the position query server can conveniently obtain the complete position track of the user.
In the user location obtaining method provided in this embodiment, the front-end processor establishes track information of each user based on location information of each user at different time, so that the location query server queries and obtains the track information. And the track information of the user is established to realize the track information query of the user.
EXAMPLE III
Fig. 7 is a schematic structural diagram of a front-end processor according to a third embodiment of the present application, where the front-end processor includes:
a receiving module 71, configured to receive a location query request sent by a location query server, where the location query request includes an identifier of a first user;
the processing module 72 is configured to query and obtain location information of the first user according to locally stored location information of each user; the position information of each user is obtained based on original data sent by a core network;
a sending module 73, configured to return the location information of the first user to the location query server, so that the location query server obtains the location of the first user.
In practical application, the core network is mainly responsible for managing data and sorting the data, and the position query server is responsible for sending a position query request and receiving a position query return result. The main execution body of the embodiment is a front-end processor, and is responsible for establishing and maintaining user position information. In practical applications, optionally, the deployment of the front-end processor may be performed according to regions, so as to implement quick response of the location query through a distributed architecture. In one example, the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions. For example, the front-end computers may be deployed in different provinces, and the front-end computer corresponding to each region is responsible for acquiring and maintaining the location information of the user generating the communication data in the local region. Communication data here includes, but is not limited to, user requests and access to the base station.
For example, if a certain user lives in place a for a long time, the front-end processor in place a maintains the current location information of the user based on the original data sent by the core network. When the user's location needs to be queried, the location query server may send a location query request to the front-end processor at location a. If the user arrives at the location B due to temporary going out, the front-end processor of the location B will correspondingly maintain the current location information of the user based on the original data sent by the core network, and the location query server may send a location query request to the front-end processor of the location B.
In practical applications, some scenarios of location query may be based on the operation needs of an Application (APP), for example, when an Application such as a map Application and a take-away Application runs, current location information of a user is generally required to be acquired. As an example, the location query server may initiate a location query service to the front-end processor based on a request of the application server. In one example, the location query request is generated by the location query server based on a request of the application server. Specifically, when the user position needs to be acquired, the application server initiates a request to the position query server, and correspondingly, the position query server sends the position query request to the front-end processor.
In practical application, the front-end processor is responsible for establishing and maintaining the position information of each user so as to facilitate subsequent inquiry. There are various means of establishing the location information of each user, which, in one example,
the processing module 72 is further configured to receive original data sent by the core network, and analyze the original data to obtain location information of a second user;
the processing module 72 is further configured to update the locally stored location information of the second user according to the location information of the second user obtained through analysis.
In practical applications, the front-end processor stores location information of each user, such as a user number (a mobile phone number of the user), a base station number and a timestamp, for example, the base station number of 3G communication includes fields lac and cellid, and the base station numbers of 4G communication and 5G communication include fields eci, and completes provincial codes according to configuration.
As an example, the location information of each user may be recorded in a user real-time location table, which is stored locally in the front-end processor, and based on the user location table, the user number may be used as an index, and the user real-time location table includes a timestamp and a user base station number field.
In combination with the scenario example, the front-end processor monitors a fixed port of the core network, the receiving module 71 receives the original data forwarded by the core network, the processing module 72 performs real-time processing and analysis, and extracts the required user location information according to a protocol. As an example, the location information may include: user number, time stamp, base station number of the user. The locally stored user location information may be updated based on the extracted latest location information. The position information comprises a base station number and a time stamp; the processing module comprises:
the analysis unit is used for detecting whether the position information of the second user obtained by analysis is consistent with a base station number in the position information of the second user stored locally;
the updating unit is used for updating and recording the time stamp in the locally stored position information of the second user if the position information of the second user is consistent with the position information of the second user; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
Specifically, the analysis unit compares the extracted user position data with data in a user real-time position table, and if the base station numbers of the extracted user position data and the data in the user real-time position table are consistent, the updating unit only updates the timestamp in the user real-time position table; if the base station numbers of the base station and the base station are not consistent, the updating unit updates the time stamp and the new base station number in the user real-time position table. The real-time updating of the user data guarantees the accuracy of the real-time position information of the user, and the latest position information of the user can be conveniently inquired.
Combining a scene example: the location query request is mostly initiated by an application server, when the application server is to obtain the current location information of a user, the application server sends the location query request to the location query server, and the location query server finally returns the real-time location information of the user to the application server. The position inquiry server stores the latitude and longitude information of each base station, and can obtain the real-time latitude and longitude information of the user according to the mobile phone number of the user, the timestamp and the base station number.
The application server firstly initiates a user real-time position request to the position query server, and then the position query server initiates a query request to the front-end processor to query the real-time base station number of the user. The user position information stored in the front-end processor is obtained based on the original data sent by the core network. The return module 73 of the front-end processor then returns the number of the base station where the inquired user is located to the position inquiry server, and the position inquiry server inquires the corresponding latitude and longitude information in the base station work-parameter table according to the number of the base station where the user is located, which is returned by the front-end processor, and returns the latitude and longitude information of the user to the application server. The base station work parameter table comprises longitude and latitude information corresponding to the base station numbers.
In this embodiment, a front-end processor is disposed between the core network and the location query server, and the front-end processor is responsible for collecting and maintaining user location information based on data sent by the core network. When the user position needs to be acquired, the position query server initiates a query request to the front-end processor, and the front-end processor responds to the request and returns corresponding user position information to the position query server, so that the acquisition of the user position information is realized. According to the scheme, the front-end processor is arranged, when the user position information is inquired, the front-end processor responds to the position inquiry request, the resource of the core network does not need to be consumed, and therefore the influence on the performance of the core network is avoided.
In another example, the processing module 72 is further specifically configured to establish, for each locally stored user, trajectory information of the user, where the trajectory information includes location information of the user before each location change and location information after the location change.
The front-end processor can be deployed uniformly, and when the track information of the user needs to be acquired, the position query server can send the track query of the user position to the front-end processor. The position track query request is generated by the position query server based on the request of the application server. Specifically, when the user position track needs to be acquired, the application server initiates a request to the position query server, and correspondingly, the position query server sends the position track query request to the front-end processor.
In another example, assuming that the number of the front-end computers is multiple, a plurality of front-end computers are deployed according to provinces, and the front-end computer corresponding to each province is responsible for acquiring and maintaining the position information of the user in the province. Correspondingly, when the track information of a certain user needs to be acquired, the position query server sends a track query request to each front-end processor, and then the track information is summarized into a complete user track according to the user track information returned by each front-end processor.
As an example, the receiving module 71 is further configured to receive a track query request sent by a location query server, where the track query request includes an identifier of a third user;
the processing module 72 is further configured to query locally stored trajectory information of each user, so as to obtain trajectory information of the third user;
the sending module 73 is further configured to send the track information of the third user to the location query server.
In practical application, a user track table is established in the front-end processor, and position information before the position of a user is changed and position information after the position is changed are recorded. For example, after new data of the same number arrives, the new data is compared with old data, if the base station number in the data changes, the position of the user changes, a record is inserted into the user track table, and the record comprises the user number, a new data timestamp, the old base station number of the user and the new base station number of the user.
In combination with the scenario example, the user trajectory position query may be initiated by the application server, and the application server first initiates a user trajectory query request to the position query server, and then initiates query requests to all the front-end computers by the position query server to query the trajectory data of the user. The front-end processor sending module 73 then returns the track data of the plurality of node users queried in the province to the location query server, including the number of the last node base station, the number of the next node base station, and the corresponding timestamp. The position inquiry server stores the work attendance tables of all base stations and mainly records the longitude and latitude information of all base stations, and the position inquiry server inquires corresponding longitude and latitude information in the work attendance tables of the base stations according to the user track base station numbers returned by the front-end processor, assembles complete longitude and latitude track records, namely the track records of the user according to the information and returns the track records of the user to the application server.
Optionally, the number of the front-end processors is multiple, and the multiple front-end processors are distributed according to regions; the sending module is specifically configured to send the track information of the third user in the corresponding region to the location query server, so that the location query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
Specifically, the number of the front-end computers is multiple, the front-end computers are deployed in different provinces, and the position track of the user in the province is recorded in a user track position table stored in each front-end computer. The application server firstly initiates a user track position query request to the position query server, the position query server initiates a query request to a user track position table stored in each front-end processor, queries track data of the user, summarizes total position tracks of the user according to time and then returns the total position tracks to the application server. The front-end processor can record the position information of the user in each province according to the province deployment, and the position query server can conveniently obtain the complete position track of the user. In this example, the front-end processor may obtain a complete location track of the user by recording the user track record of this province and summarizing the total location track of the user by the location query server.
In the front-end processor provided in this embodiment, the processing module obtains the location information of the user by analyzing the original data sent by the core network, and the updating unit updates the user information to the real-time location table. The receiving module receives the user real-time position request and the track position query request sent by the position query server, and the sending module of the front-end processor then returns the queried user real-time base station number and the user track data to the position query server. The position inquiry server inquires corresponding longitude and latitude information in the base station work-participating table according to the user real-time base station number returned by the front-end processor, and returns the longitude and latitude information of the user and the longitude and latitude information of the user track to the application server so as to obtain the real-time position information and the user track information of the user. The scheme is based on that when the position of a user is inquired, a front-end processor can be requested, a core network is not required to be requested, the resource of the core network is not required to be additionally consumed, and the safety of the core network is guaranteed.
Example four
Fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in the drawing, the electronic device includes:
a processor (processor)291, the electronic device further including a memory (memory) 292; a Communication Interface 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other through the bus 294. Communication interface 293 may be used for the transmission of information. Processor 291 may call logic instructions in memory 294 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 292 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer-readable storage medium for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 292, so as to implement the method in the above method embodiments.
The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 292 may include a high speed random access memory and may also include a non-volatile memory.
The present application provides a non-transitory computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement the method according to the foregoing embodiments.
The present application provides a computer program product, including a computer program, which when executed by a processor implements the method according to the foregoing embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
EXAMPLE five
The fifth embodiment of the present application provides a user location obtaining system, where the system includes a front-end processor, a core network, and a location query server as in the foregoing example; wherein the content of the first and second substances,
the location query server is used for initiating a location query request to the front-end processor, wherein the location query request comprises an identifier of a first user;
and the position query server is further used for receiving and obtaining the position of the first user according to the position information of the first user returned by the front-end processor.
In practical application, the front-end processor obtains the user location information by analyzing the original data sent by the core network, and updates the user information to the real-time location table. And simultaneously receiving a user real-time position request and a track position query request sent by a position query server, and then returning the queried user real-time base station number and user track data to the position query server. The position inquiry server inquires corresponding longitude and latitude information in the base station work-participating table according to the user real-time base station number returned by the front-end processor, and returns the longitude and latitude information of the user and the longitude and latitude information of the user track to the application server so as to obtain the real-time position information and the user track information of the user. The user position query directly requests the front-end processor, the core network resources are not consumed additionally, the safety of the core network is guaranteed, and meanwhile, the user data is updated in real time to guarantee the accuracy of the real-time position information of the user.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (14)

1. A user position acquisition method is applied to a front-end processor and comprises the following steps:
receiving a position query request sent by a position query server, wherein the position query request comprises an identifier of a first user;
according to the locally stored position information of each user, inquiring to obtain the position information of the first user; the position information of each user is obtained based on original data sent by a core network;
and returning the position information of the first user to the position query server so that the position query server obtains the position of the first user.
2. The method of claim 1, further comprising:
receiving original data sent by the core network, and analyzing the original data to obtain position information of a second user;
and updating the locally stored position information of the second user according to the position information of the second user obtained by analysis.
3. The method of claim 2, wherein the location information comprises a base station number and a timestamp; the updating the locally stored location information of the second user according to the location information of the second user obtained by analysis includes:
detecting whether the analyzed position information of the second user is consistent with a base station number in the locally stored position information of the second user;
if the position information of the second user is consistent with the position information of the second user, updating and recording a time stamp in the position information of the second user stored locally; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
4. The method according to any one of claims 1-3, further comprising:
and aiming at each locally stored user, establishing track information of the user, wherein the track information comprises position information of the user before position change every time and position information after position change.
5. The method of claim 4, further comprising:
receiving a track query request sent by a position query server, wherein the track query request comprises an identifier of a third user;
inquiring the track information of each user stored locally to obtain the track information of the third user;
and sending the track information of the third user to the position query server.
6. The method according to claim 5, wherein the number of the front-end computers is multiple, and the multiple front-end computers are distributed according to regions; sending track information of the third user to the location query server, including:
and sending the track information of the third user in the corresponding region to the position query server so that the position query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
7. A front-end processor, comprising:
the system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving a position query request sent by a position query server, and the position query request comprises an identifier of a first user;
the processing module is used for inquiring and acquiring the position information of the first user according to the locally stored position information of each user; the position information of each user is obtained based on original data sent by a core network;
and the sending module is used for returning the position information of the first user to the position query server so as to enable the position query server to obtain the position of the first user.
8. The front-end processor of claim 7,
the processing module is further configured to receive original data sent by the core network, and analyze the original data to obtain location information of a second user;
the processing module is further configured to update the locally stored location information of the second user according to the location information of the second user obtained through analysis.
9. The front-end processor of claim 8, wherein the location information comprises a base station number and a timestamp; the processing module comprises:
the analysis unit is used for detecting whether the position information of the second user obtained by analysis is consistent with a base station number in the position information of the second user stored locally;
the updating unit is used for updating and recording the time stamp in the locally stored position information of the second user if the position information of the second user is consistent with the position information of the second user; and if the position information of the second user is inconsistent with the position information of the second user, updating and recording the time stamp and the base station number in the position information of the second user which is locally stored.
10. Front-end processor according to any of claims 7 to 9,
the processing module is specifically configured to establish trajectory information of each locally stored user, where the trajectory information includes location information of the user before location change and location information after location change.
11. The front-end processor of claim 10,
the receiving module is further configured to receive a track query request sent by a location query server, where the track query request includes an identifier of a third user;
the processing module is further configured to query locally stored trajectory information of each user to obtain trajectory information of the third user;
the sending module is further configured to send the track information of the third user to the location query server.
12. The front-end processor of claim 11, wherein the number of the front-end processors is plural, and the plural front-end processors are distributed geographically;
the sending module is specifically configured to send the track information of the third user in the corresponding region to the location query server, so that the location query server obtains the total track information of the third user according to the track information of the third user in each region returned by each front-end processor.
13. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-6.
14. A subscriber location acquisition system comprising a front-end processor as claimed in any one of claims 7 to 12, a core network and a location query server; wherein the content of the first and second substances,
the location query server is used for initiating a location query request to the front-end processor, wherein the location query request comprises an identifier of a first user;
and the position query server is further used for receiving and obtaining the position of the first user according to the position information of the first user returned by the front-end processor.
CN202210266120.0A 2022-03-17 2022-03-17 User position acquisition method, front-end processor, equipment and system Pending CN114845248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210266120.0A CN114845248A (en) 2022-03-17 2022-03-17 User position acquisition method, front-end processor, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210266120.0A CN114845248A (en) 2022-03-17 2022-03-17 User position acquisition method, front-end processor, equipment and system

Publications (1)

Publication Number Publication Date
CN114845248A true CN114845248A (en) 2022-08-02

Family

ID=82561665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210266120.0A Pending CN114845248A (en) 2022-03-17 2022-03-17 User position acquisition method, front-end processor, equipment and system

Country Status (1)

Country Link
CN (1) CN114845248A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100075610A1 (en) * 2008-09-19 2010-03-25 International Business Machines Corporation System and method for reducing latency of location based information retrieved from a location service
CN103037506A (en) * 2011-10-10 2013-04-10 中国移动通信集团公司 Locating methods, locating system and relevant equipment
CN103987022A (en) * 2014-06-04 2014-08-13 中科创达软件股份有限公司 Position information checking method and system based on mobile terminal and mobile terminal
CN108712440A (en) * 2018-05-31 2018-10-26 中国联合网络通信集团有限公司 User information management method, device, server and storage medium
WO2019165876A1 (en) * 2018-02-27 2019-09-06 华为技术有限公司 Method and device for establishing network connection
CN110348143A (en) * 2019-07-15 2019-10-18 广州图普网络科技有限公司 A kind of track merging method, device and storage medium
CN112464112A (en) * 2020-11-23 2021-03-09 深圳市泰衡诺科技有限公司 Positioning method, positioning device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100075610A1 (en) * 2008-09-19 2010-03-25 International Business Machines Corporation System and method for reducing latency of location based information retrieved from a location service
CN103037506A (en) * 2011-10-10 2013-04-10 中国移动通信集团公司 Locating methods, locating system and relevant equipment
CN103987022A (en) * 2014-06-04 2014-08-13 中科创达软件股份有限公司 Position information checking method and system based on mobile terminal and mobile terminal
WO2019165876A1 (en) * 2018-02-27 2019-09-06 华为技术有限公司 Method and device for establishing network connection
CN108712440A (en) * 2018-05-31 2018-10-26 中国联合网络通信集团有限公司 User information management method, device, server and storage medium
CN110348143A (en) * 2019-07-15 2019-10-18 广州图普网络科技有限公司 A kind of track merging method, device and storage medium
CN112464112A (en) * 2020-11-23 2021-03-09 深圳市泰衡诺科技有限公司 Positioning method, positioning device and storage medium

Similar Documents

Publication Publication Date Title
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
CN103686591A (en) Method and system for acquiring position information
CN110049503B (en) Method and equipment for acquiring data
CN109729183A (en) Request processing method, device, equipment and storage medium
CN111767297B (en) Big data processing method, device, equipment and medium
CN104683124A (en) Terminal type identification method and device
CN112580730A (en) Terminal type identification method and device
CN112052227A (en) Data change log processing method and device and electronic equipment
CN106326280B (en) Data processing method, device and system
CN103079194B (en) Service adaptation method, apparatus and system
CN107249050B (en) Method and device for managing resources in cloud platform
CN110708209B (en) Virtual machine flow acquisition method and device, electronic equipment and storage medium
CN103067495B (en) A kind of method of pushed information and device
CN114610449B (en) Multi-cluster resource operation method and system based on unified request entry
CN109815351B (en) Information query method and related product
CN109039427B (en) Ship monitoring management device
CN114845248A (en) User position acquisition method, front-end processor, equipment and system
CN114222284B (en) Terminal equipment identification method, device and readable storage medium
CN101741889B (en) Method, system and service for centralized management of network services
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service
CN104735692A (en) Method, device and system for determining network use data
CN211630177U (en) Equipment data acquisition system
CN104753972A (en) Network resource collection processing method and server
CN111225389B (en) Mobile data flow processing method and device
CN113067913A (en) Positioning method, device, server, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination