Disclosure of Invention
In view of at least one of the above technical problems, an object of the present invention is to provide a method, a network system, a computer apparatus, and a storage medium for positioning a terminal in a communication network.
In one aspect, an embodiment of the present invention includes a method for positioning a terminal in a communication network, including:
determining a network element in the communication network as an LMF management center; the LMF management center stores the registration information of a plurality of LMF network elements;
receiving a positioning request of a terminal by an AMF network element;
the AMF network element responds to the positioning request and generates an LMF network element allocation request according to the position information of the AMF network element;
the AMF network element sends the LMF network element allocation request to the LMF management center;
the LMF management center searches one or more first LMF network elements nearest to the AMF network element according to the LMF network element allocation request and the registration information of each LMF network element, and returns the address information of the first LMF network elements to the AMF network element;
the AMF network element sends the positioning request to the first LMF network element according to the returned address information;
the first LMF network element responds to the positioning request, and acquires and sends the position information of the terminal to the LMF management center;
and the LMF management center redistributes the LMF network elements for providing the positioning service to the terminal according to the position information of the terminal and the registration information of each LMF network element.
Further, the method for positioning a terminal in the communication network further includes:
the LMF management center receives a registration request of an LMF network element; the registration request comprises the position information, the load information and the heartbeat interval time of the LMF network element;
and the LMF management center verifies the registration request, and registers the LMF network element when the registration request meets the registration condition.
Further, the registering the LMF network element includes:
storing the position information, the load information and the heartbeat interval time of the LMF network element as the registration information of the LMF management center;
and when the LMF management center receives a heartbeat message sent by the LMF network element according to the corresponding heartbeat interval information, wherein the heartbeat message comprises the current load information of the LMF network element, maintaining the registration of the LMF network element.
Further, the step of the LMF management center reallocating, to the terminal, the LMF network element for providing the location service according to the location information of the terminal and the registration information of each LMF network element includes:
determining the distance between the terminal and each LMF network element according to the position information of the terminal and the position information of the LMF network elements;
determining one or more LMF network elements closest to the terminal;
screening one or more LMF network elements from one or more LMF network elements closest to the terminal according to a preset overload threshold; in the screened LMF network elements, the corresponding load information does not exceed the overload threshold;
when the screened LMF network elements comprise the first LMF network element, maintaining the positioning service of the first LMF network element to the terminal;
and when the screened LMF network elements include a second LMF network element but not the first LMF network element, triggering and switching the positioning service of the second LMF network element to the terminal.
Further, the triggering and switching the location service of the second LMF network element to the terminal includes:
the LMF management center triggers the first LMF network element to send the context of the terminal to the second LMF network element;
the LMF management center triggers the first LMF network element to send a notification message to the AMF network element;
and the AMF network element responds to the notification message, and when receiving a positioning request of the terminal, the AMF network element sends the positioning request of the terminal to the second LMF network element so as to trigger the positioning service of the second LMF network element to the terminal.
Further, the method for positioning a terminal in the communication network further includes:
the LMF management center determines that an LMF network element which provides positioning service for the terminal currently is the first LMF network element;
the LMF management center acquires a de-registration request sent by the first LMF network element;
the LMF management center responds to the registration removing request, and determines the distance between the first LMF network element and each other LMF network element according to the position information of the first LMF network element and the position information of each other LMF network element;
determining one or more LMF network elements closest to the first LMF network element;
screening out a second LMF network element from one or more LMF network elements closest to the first LMF network element according to a preset overload threshold; the load information corresponding to the second LMF network element does not exceed the overload threshold;
the LMF management center triggers the first LMF network element to send the context of the terminal to the second LMF network element;
the LMF management center triggers the first LMF network element to send a notification message to the AMF network element;
and the AMF network element responds to the notification message, and when receiving a positioning request of the terminal, the AMF network element sends the positioning request of the terminal to the second LMF network element so as to trigger the positioning service of the second LMF network element to the terminal.
Further, the method for positioning a terminal in the communication network further includes:
and when the terminal is switched and connected to a new AMF network element, the new AMF network element sends a switching notice to the LMF network element which provides the positioning service for the terminal currently.
On the other hand, the embodiment of the invention also comprises a communication network system, which comprises an AMF network element, a plurality of LMF network elements and a network element serving as an LMF management center, wherein the LMF network elements comprise a first LMF network element and a second LMF network element, and the LMF management center stores the registration information of the LMF network elements;
receiving a positioning request of a terminal by an AMF network element;
the AMF network element responds to the positioning request and generates an LMF network element allocation request according to the position information of the AMF network element;
the AMF network element sends the LMF network element allocation request to the LMF management center;
the LMF management center searches one or more first LMF network elements nearest to the AMF network element according to the LMF network element allocation request and the registration information of each LMF network element, and returns the address information of the first LMF network elements to the AMF network element;
the AMF network element sends the positioning request to the first LMF network element according to the returned address information;
the first LMF network element responds to the positioning request, and acquires and sends the position information of the terminal to the LMF management center;
and the LMF management center redistributes the LMF network elements for providing the positioning service to the terminal according to the position information of the terminal and the registration information of each LMF network element.
On the other hand, the embodiment of the present invention further includes a computer apparatus, including a memory and a processor, where the memory is used to store at least one program, and the processor is used to load the at least one program to control the AMF network element, the plurality of LMF network elements, and a network element serving as an LMF management center to execute the method for positioning the terminal in the communication network in the embodiment.
In another aspect, an embodiment of the present invention further includes a storage medium, in which a program executable by a processor is stored, and the program executable by the processor is configured to control an AMF network element, a plurality of LMF network elements, and a network element serving as an LMF management center to perform a method for positioning a terminal in a communication network in an embodiment.
The invention has the beneficial effects that: according to the method for positioning the terminal in the communication network, the registration of the LMF network elements is managed by the LMF management center, the first LMF network element is firstly distributed to the terminal according to the position information of the AMF network element connected with the terminal, the first LMF network element provides primary positioning for the terminal, the LMF management center redistributes the more proper LMF network elements for the terminal according to the position information of the terminal, the LMF management center can share the load generated by the AMF network element for distributing the LMF network elements to the terminal, the AMF network element only needs to bear necessary communication with the terminal, the phenomenon that the busy AMF network element bears too high load is avoided, the lightweight degree of the network function in the communication network can be improved, and the LMF network element capable of providing positioning service can be distributed to the terminal as long as the available LMF network elements exist in the network.
Detailed Description
In this embodiment, the communication network may refer to a 5G communication network or a more advanced network. The communication comprises an AMF network element, a plurality of LMF network elements and a network element serving as an LMF management center, wherein two specific LMF network elements in the plurality of LMF network elements are a first LMF network element and a second LMF network element. Wherein, AMF is the abbreviation of Access and Mobility Management Function, and LMF is the abbreviation of Location Management Function.
In this embodiment, the network element serving as the LMF management center may be a dedicated network element, or may be a network element having other functions and also serving as the LMF management center.
In this embodiment, referring to fig. 1, an LMF management center receives registration requests of LMF network elements, such as a first LMF network element and a second LMF network element, where the registration requests include location information, load information, and heartbeat interval time of each LMF network element, for example, a registration request sent by the first LMF network element to the LMF management center includes location information, load information, and heartbeat interval time of the first LMF network element expressed in longitude and latitude, and a registration request sent by the second LMF network element to the LMF management center includes location information, load information, and heartbeat interval time of the second LMF network element expressed in longitude and latitude. The load information of the LMF network element may be represented by a percentage between a current load and a maximum load of the LMF network element, for example, the load information of the second LMF network element may be represented by 95%, which indicates that the current load of the second LMF network element reaches 95% of the maximum load of the second LMF network element.
After receiving a registration request sent by an LMF network element, an LMF management center verifies whether the registration request meets a registration condition, wherein the registration condition may be whether location information is in a specific natural area or administrative area, whether load information is lower than a certain level, and the like. And when the registration request meets the registration condition, the LMF management center stores the position information, the load information and the heartbeat interval time of the LMF network element in the local LMF management center or other network elements, so that the registration of the LMF network element in the LMF management center is completed. For example, if the registration request sent by the first LMF network element to the LMF management center meets the registration condition, the LMF management center stores the location information, the load information, and the heartbeat interval time of the first LMF network element in the local LMF management center or in another network element, thereby completing the registration of the first LMF network element in the LMF management center.
In this embodiment, referring to fig. 1, after the registration is completed, the LMF management center also returns a registration response to the LMF network element that has completed the registration, so as to notify that the LMF network element has completed the registration.
In this embodiment, referring to fig. 1, each LMF network element further needs to periodically send a heartbeat message to an LMF management center according to heartbeat interval information provided during initial registration, where the heartbeat message includes current load information of the LMF network element, so as to report the current load of the LMF network element to the LMF network element. And the LMF management center maintains the registration of the LMF network element under the condition of receiving the heartbeat information of the LMF network element on time, otherwise, the LMF network element can be subjected to de-registration processing.
After the registration of each LMF network element is completed, referring to fig. 1, the AMF network element receives a positioning request of the terminal. The AMF network element responds to the positioning request of the terminal, an LMF network element allocation request is generated by packaging according to the position information expressed by the AMF network element in longitude and latitude, and the AMF network element sends the LMF network element allocation request to the LMF management center.
Referring to fig. 1, after receiving an LMF network element allocation request sent by an AMF network element, an LMF management center calculates a distance between the AMF network element and each LMF network element according to location information of the AMF network element included in the LMF network element allocation request and location information of each LMF network element in registration information stored in the LMF network element allocation request, then finds one or more first LMF network elements closest to the AMF network element, and returns address information of the first LMF network element to the AMF network element, where the address information may be information such as a physical address or a virtual interface of the first LMF network element.
Referring to fig. 1, the AMF network element sends a positioning request to the first LMF network element according to the returned address information, and the first LMF network element provides a positioning service to the terminal after receiving the positioning request sent by the AMF network element, so as to obtain accurate location information of the terminal. The first LMF network element reports the position information of the terminal to an LMF management center, and the LMF management center reallocates the LMF network elements for providing the positioning service to the terminal according to the position information of the terminal and the position information of each LMF network element.
When the LMF management center reallocates an LMF network element for providing a location service to a terminal, the following operations are specifically performed: and the LMF management center determines the distance between the terminal and each LMF network element according to the position information of the terminal and the position information of the LMF network elements. Both the location information of the terminal and the location information of the LMF network element may be expressed as longitude and latitude coordinates, and if the location information of the terminal and the location information of the LMF network element are expressed as an administrative area or a tracking area, the administrative area or the tracking area may be converted into longitude and latitude coordinates of an ambiguous location. When the LMF management center calculates the distance according to the position information of the terminal and the position information of the LMF network element, the difference between the two latitudes is set as a, the radian is (a/180) pi, the average radius of the earth is R, and therefore the north-south distance s1 between the two regions is as follows: s1 ═ a/180 π R, the difference between the two geodetic longitudes is b, and the two-geodetic distance s2 is: s2 ═ b/180 π R, then the distance s between two places is found according to Pythagorean theorem as: s (s1 s1+ s2 s2) to determine the distance between the terminal and the LMF network element. The LMF management center can carry out the operation of the distance between two points by combining the longitude and latitude positions registered by the LMF network elements to the LMF management center to obtain one or more LMF network elements nearest to the terminal or the AMF, then judging the load data in the heartbeat messages of the one or more LMF network elements, firstly eliminating the LMF network elements with the loads reaching the overload standard (if the overload standard is 95 percent, the LMF network elements with the loads more than 95 percent are eliminated), if the exclusion is the only LMF network element closest to the LMF network element, the LMF network element is excluded, the LMF network element which is next closest and does not reach the overload standard is selected, if several LMF network elements are nearest at the same time and the overload standard is not met, selecting the LMF network element with the least load as the most suitable LMF network element, and if the loads of the plurality of nearest LMF network elements are the same, simultaneously returning the plurality of LMF network elements to the AMF network element for selection, wherein the AMF network element can randomly select one LMF network element to provide the positioning service for the LMF network element.
Referring to fig. 1, if the LMF management center screens out the first LMF network element, it indicates that the first LMF network element that originally provides the location service for the terminal is the optimal LMF network element, and the first LMF network element maintains the location service for the terminal, and each network element may not perform any substantial operation.
Referring to fig. 1, if the LMF management center screens out the second LMF network element, it indicates that the second LMF network element is a better LMF network element than the first LMF network element, and triggers to switch the location service of the second LMF network element to the terminal. Specifically, referring to fig. 1, a first LMF network element sends a context of a terminal to a second LMF network element, the first LMF network element sends a notification message to an AMF network element, and after the AMF network element receives the notification message, if a positioning request of the terminal is received later, the AMF network element directly sends the positioning request of the terminal to the second LMF network element, and the second LMF network element provides a positioning service for the terminal.
In the embodiment, the registration of the LMF network element is managed by the LMF management center, the first LMF network element is allocated to the terminal according to the position information of the AMF network element connected to the terminal, the terminal is initially positioned by the first LMF network element, and the LMF management center reallocates the more appropriate LMF network element to the terminal according to the position information of the terminal, so that the LMF management center can share the load generated by the AMF network element for allocating the LMF network element to the terminal, the AMF network element only needs to bear necessary communication with the terminal, the situation that the busy AMF network element bears too high load is avoided, the lightweight degree of the network function in the communication network can be improved, and the LMF network element capable of providing the positioning service can be allocated to the terminal as long as the available LMF network element exists in the network.
In this embodiment, when the LMF network elements are reallocated to the terminal, the load information of each LMF network element is also considered, and load balancing of each LMF network element can be achieved.
In this embodiment, in the process of determining to maintain the location service provided by the first LMF network element to the terminal or switch to the location service provided by the second LMF network element to the terminal, only the LMF management center and the LMF network element need to perform operations, except that the notification message is finally sent to the AMF network element or the terminal, the resources of the AMF network element or the terminal do not need to be occupied, so that the overload of the AMF network element or the terminal is avoided.
In this embodiment, the LMF network element currently providing the location service to the terminal may further send a registration request to the LMF management center, so as to implement network logout of the LMF network element currently providing the location service to the terminal. The description will be given by taking the LMF network element currently providing the location service to the terminal as the first LMF network element as an example. Referring to fig. 1, a first LMF network element sends a registration request to an LMF management center, the LMF management center determines distances between the first LMF network element and other LMF network elements according to the position information of the first LMF network element and the position information of other LMF network elements, first selects one or more LMF network elements closest to the first LMF network element, and then selects a network element whose current load does not exceed an overload threshold from the LMF network elements, where it is assumed in this embodiment that the LMF network element finally selected is a second LMF network element. Under the trigger of the LMF management center, the first LMF network element sends the context of the terminal to the second LMF network element, the first LMF network element sends a notification message to the AMF network element, after the AMF network element receives the notification message, if the AMF network element receives the positioning request of the terminal later, the AMF network element directly sends the positioning request of the terminal to the second LMF network element, and the second LMF network element provides positioning service for the terminal.
In this embodiment, the LMF network element currently providing the location service to the terminal only needs to send out a registration request to the LMF management center, and the LMF management center performs the related operation, and in this process, the AMF network element or the terminal does not need to perform other active operations except for receiving the notification message, so that flexible network quitting of the LMF network element is realized, and negative effects such as no location service and the like on the terminal due to a fault or when the LMF network element needs to quit the network for maintenance are avoided.
In this embodiment, according to protocols such as 23502-g60, the terminal may switch the AMF network element to which it is connected. Because the switched AMF network element already obtains the context of the terminal from the AMF network element before switching, only the switched AMF network element, namely the new AMF network element, needs to send a switching notice to the LMF network element which currently provides the positioning service for the terminal, so that when the LMF network element which currently provides the positioning service for the terminal, the positioning information is sent to the terminal through the new AMF network element.
The AMF network element, the plurality of LMF network elements and the network element serving as the LMF management center in this embodiment may be configured into a communication network system, the plurality of LMF network elements include a first LMF network element and a second LMF network element, the LMF management center manages registration of the LMF network elements, and first allocates the first LMF network element to the terminal according to the location information of the AMF network element connected to the terminal, the first LMF network element provides a preliminary location for the terminal, the LMF management center reallocates a more appropriate LMF network element to the terminal according to the location information of the terminal, so that the LMF management center can share a load generated by the AMF network element for allocating the LMF network element to the terminal, the AMF network element only needs to bear necessary communication with the terminal, the situation that the AMF network element busy per se bears an excessively high load is avoided, the lightweight degree of the network function in the communication network can be improved, and as long as an available LMF network element exists in the network, it is ensured that the terminal can be assigned to an LMF network element that can provide location services.
In this embodiment, a computer device may be provided, either separate or integrated in another network element, comprising a memory for storing at least one program and a processor for loading the at least one program, which, when executed by the computer device, the AMF network element, the plurality of LMF network elements and one network element serving as an LMF management center in this embodiment may be controlled, by implementing the method for positioning the terminal in the embodiment, the LMF management center can share the load generated by the AMF network element for distributing the LMF network element to the terminal, the AMF network element only needs to bear necessary communication with the terminal, the situation that the busy AMF network element bears too high load is avoided, the light weight degree of the network function in the communication network can be improved, and as long as the available LMF network elements exist in the network, the terminal can be ensured to be allocated to the LMF network elements capable of providing the positioning service.
In this embodiment, a storage medium that is independent or integrated in another network element may be provided, where a program executable by a processor is stored, and when the program executable by the processor is executed by the processor, the AMF network element, the plurality of LMF network elements, and a network element serving as an LMF management center in this embodiment may be controlled to perform the method for locating a terminal in this embodiment, so that the LMF management center can share a load generated by the AMF network element for allocating the LMF network element to the terminal, and the AMF network element only needs to bear necessary communication with the terminal, thereby avoiding that an AMF network element busy in itself bears an excessively high load, improving a lightweight degree of a network function in a communication network, and ensuring that an LMF network element capable of providing a location service can be allocated to the terminal as long as an available LMF network element exists in the network.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature or indirectly fixed or connected to the other feature. Furthermore, the descriptions of upper, lower, left, right, etc. used in the present disclosure are only relative to the mutual positional relationship of the constituent parts of the present disclosure in the drawings. As used in this disclosure, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this embodiment, the term "and/or" includes any combination of one or more of the associated listed items.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "or the like") provided with this embodiment is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, operations of processes described in this embodiment can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described in this embodiment (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described in the present embodiment to convert the input data to generate output data that is stored to a non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.