PDU session connection management method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for managing PDU session connection.
Background
A mobile network such as a 5G network supports connection to a local area data network (lan), where the lan is characterized in that coverage is provided only in a partial area, and a User Equipment (UE) can access to the lan corresponding to a specific area only when entering the specific area. According to the conclusion of the current protocol, the mobile network informs the user terminal of the available LADN information and the applicable range of the LADN.
The mobile network notifies the user terminal of the information of the LADN, wherein the information of the LADN comprises DNN (data network name) information of the LADN and service area information of the LADN. The service area information of the LADN is a list of a set of TAs (Tracking areas).
After the user terminal successfully registers to the mobile network, the AMF (access control and mobility management Function) provides available LADN information in the registration area to the user terminal in a registration completion message according to local information, subscription information of the user terminal, policy information provided by a PCF (policy control Function), and the like.
According to the LADN information, the user terminal initiates a PDU session establishment procedure when entering a specific area. A user terminal cannot initiate a PDU session request to a LADN when the user terminal is located outside the available area of this LADN. If the user terminal initiates this request message, the mobile network will reject it.
When the mobile network detects that the user terminal moves out of the available area of the LADN, the core network can initiate a release process of a PDU (Protocol Data Unit) session according to a network policy.
According to the description in the current protocol, the user terminal obtains the LADN information of the registration area in the registration process, and the registration process is completed by the AMF entity of the core network. The area information supported by the LADN is the same for each user terminal, so the LADN information can be considered as configured in the AMF. When the user terminal is successfully registered, the AMF sends the LADN information to the user terminal for storage. However, the Session establishment process is currently managed by the SMF, and there is no information about the LADN in the SMF (Session Management Function).
Therefore, the following technical problems exist in the prior art: the establishment process of the PDU session connection is managed by the SMF, but the SMF does not have the information of the LADN, and when the user terminal moves out of the service range of the LADN, the SMF cannot know the state that the user terminal is not in the service range of the LADN and release the PDU session connection, that is, the SMF cannot manage the PDU session connection according to the location information of the user terminal.
Disclosure of Invention
For better understanding of the embodiments of the present invention, some terms involved in the embodiments of the present invention will be described first:
LADN (local area data network) refers to a local network in a mobile network, such as a 5G network, covering a specific area, such as a mall, a train station waiting hall, or a location area where an enterprise is located;
the information of the LADN includes DNN (data network name) information of the LADN and service area information of the LADN; for example, for many LADNs, each with different DNN information and service area information; the service area information is a specific area covered by an LADN, and the specific area is, for example, the location area where the aforementioned shopping mall, train station waiting hall or an enterprise is located;
the service area information of the LADN is a group of TA (Tracking area) lists; the TA list may be saved in the AMF;
an AMF (access control and mobility management Function) refers to an entity that implements access control and mobility management functions in a mobile network;
the SMF (Session Management Function) refers to an entity that implements a Session Management Function in a mobile network.
In order to solve the above technical problems in the prior art, embodiments of the present invention provide a method and an apparatus for managing a PDU session connection, where when an AMF in a mobile network receives a request message sent by a user equipment for requesting establishment of a PDU session connection to a local area data network, the SMF in the mobile network obtains area location information of the local area data network from the AMF; the SMF stores the region location information so that the SMF can manage PDU session connection based on the location information of the user terminal.
In a first aspect, an embodiment of the present invention provides a method for managing a PDU session connection, where the method is applied to a mobile network, and includes:
when AMF in the mobile network receives a request message sent by a user terminal for requesting to establish PDU session connection to a local area data network, SMF in the mobile network obtains area position information of the local area data network from the AMF;
the SMF stores the region location information.
Optionally, after the SMF stores the area location information, the method further includes:
when the PDU session connection between the user terminal and the local area data network is established, if the current position of the user terminal is not in the area range corresponding to the area position information, the SMF releases the PDU session connection or deactivates the PDU session connection.
Optionally, before the SMF releases the PDU session connection or deactivates the PDU session connection when the PDU session connection between the ue and the local area data network is established and if the current location of the ue is not in the area range corresponding to the area location information, the method further includes:
when the AMF receives a notification message which is sent by the user terminal and represents the current position of the user terminal, the SMF obtains the notification message from the AMF;
and the SMF judges whether the current position of the user terminal is in the area range in the area position information according to the notification message and the area position message.
Optionally, the obtaining, by the SMF, the notification message from the AMF includes:
the AMF directly sends the notification message to the SMF, and the SMF obtains the notification message;
or, the AMF combines the notification message with other messages to form a combined message and sends the combined message to the SMF, and the SMF obtains the notification message from the combined message.
Optionally, the notification message includes:
a message related to the switching, which is sent to the AMF by a base station in the switching process of the cell where the user terminal is located; such as path switch, handover request, etc.
Or, a notification message sent to the AMF and generated in the ue after the ue subscribes to the notification service when the ue location changes.
Optionally, before the SMF in the mobile network obtains the area location information of the local area data network from the AMF, the method includes:
when AMF in the mobile network receives a request message sent by a user terminal and used for requesting to establish PDU session connection, the AMF judges whether the PDU session connection is used for requesting to connect between local area data networks or not according to DNN information carried in the request message;
if so, the AMF obtains the regional position information of the local regional data network corresponding to the DNN information according to the DNN information.
Optionally, the SMF stores the area location information, including:
the SMF stores the region location information in context information of the PDU session connection.
Optionally, after the SMF stores the zone location information in the context information of the PDU session connection, the method further includes:
and establishing PDU session connection between the user terminal and the local area data network.
Optionally, the configuring information for establishing the PDU session connection between the ue and the local area data network includes:
and establishing the user plane connection of the PDU conversation between the user terminal and the local area data network.
In a second aspect, an embodiment of the present invention provides a PDU session connection management apparatus, which is applied to a mobile network:
the apparatus includes an AMF in the mobile network and an SMF in the mobile network:
when the AMF receives a request message which is sent by a user terminal and used for requesting to establish PDU session connection to a local area data network, the SMF obtains the area position information of the local area data network from the AMF;
the SMF stores the region location information.
Optionally, after the SMF stores the area location information, when the PDU session connection between the user equipment and the local area data network is established, if the current location of the user equipment is not in the area range corresponding to the area location information, the SMF releases the PDU session connection or deactivates the PDU session connection.
Optionally, before the SMF releases the PDU session connection or deactivates the PDU session connection when the PDU session connection between the ue and the local area data network is established and if the current location of the ue is not in the area range corresponding to the area location information,
when the AMF receives a notification message which is sent by the user terminal and represents the current position of the user terminal, the SMF obtains the notification message from the AMF;
and the SMF judges whether the current position of the user terminal is in the area range in the area position information according to the notification message and the area position message.
Optionally, the obtaining, by the SMF, the notification message from the AMF includes:
the AMF directly sends the notification message to the SMF, and the SMF obtains the notification message;
or, the AMF combines the notification message with other messages to form a combined message and sends the combined message to the SMF, and the SMF obtains the notification message from the combined message.
Optionally, the notification message includes:
a message related to the switching, which is sent to the AMF by a base station in the switching process of the cell where the user terminal is located; such as path switch, handover request, etc.
Or, a notification message sent to the AMF and generated in the ue after the ue subscribes to the notification service when the ue location changes.
Optionally, before the SMF obtains the area location information of the local area data network from the AMF, the method includes:
when receiving a request message sent by a user terminal for requesting to establish a PDU session connection, the AMF judges whether the PDU session connection is used for requesting to connect to a local area data network according to DNN information carried in the request message;
if so, the AMF obtains the regional position information of the local regional data network corresponding to the DNN information according to the DNN information.
Optionally, the SMF stores the area location information, including:
the SMF stores the region location information in context information of the PDU session connection.
Optionally, after the SMF stores the zone location information in the context information of the PDU session connection, the method further includes:
and establishing PDU session connection between the user terminal and the local area data network.
Optionally, the establishing the PDU session connection between the ue and the local area data network includes:
and establishing the user plane connection of the PDU conversation between the user terminal and the local area data network.
In a third aspect, an embodiment of the present invention provides a computer apparatus, which includes a processor, and the processor is configured to implement the steps of the method according to the first embodiment when executing the computer program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored: which when executed by a processor implements the steps of the method as described in the first embodiment.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages: the SMF can manage the PDU session connection based on the position information of the user terminal, thereby reducing the resource waste when connecting to the LADN.
Drawings
FIG. 1 is a first flowchart of a method for managing a PDU session connection according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for managing a PDU session connection according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a method for managing a PDU session connection according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a management apparatus for PDU session connection according to an embodiment of the present invention.
Detailed Description
In order to solve the above technical problems in the prior art, the general idea of the general technical solution of the embodiment of the present invention is as follows: when an AMF in a mobile network receives a request message sent by a user terminal and used for requesting to establish a PDU session connection to a local area data network, an SMF in the mobile network obtains area position information of the local area data network from the AMF; the SMF stores the region location information so that the SMF can manage PDU session connection based on the location information of the user terminal.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
As shown in fig. 1, a method for managing a PDU session connection according to an embodiment of the present invention is applied to a mobile network, and includes:
s10, when AMF in the mobile network receives request message sent by user terminal for requesting to establish PDU session connection to local area data network, SMF in the mobile network obtains area location information of the local area data network from the AMF;
s20, the SMF saves the region position information.
For step S10, it may specifically include:
when AMF in the mobile network receives a request message sent by a user terminal and used for requesting to establish PDU session connection, the AMF judges whether the PDU session connection is used for requesting to connect between local area data networks or not according to DNN information carried in the request message;
if yes, the AMF obtains the regional position information of the local regional data network corresponding to the DNN information according to the DNN information;
the SMF in the mobile network obtains the area location information of the local area data network from the AMF.
In addition, the request message further includes a Non-Access Stratum (NAS) message related to the PDU session, which is parsed by the SMF, and the AMF may send the NAS message to the SMF together with the DNN information.
As for the step S20, it may specifically include:
the SMF stores the region location information in context information of the PDU session connection.
After performing the step S20, the method may further include:
establishing PDU session connection between the user terminal and the local area data network; for example, a user plane connection for a PDU session between the user terminal and the local area data network is established.
After step S20, when the PDU session connection between the ue and the local area data network is already established, if the current location of the ue is not in the area range corresponding to the area location information, the SMF releases the PDU session connection or deactivates the PDU session connection, where deactivating the PDU session connection includes deactivating the user plane connection of the PDU session. The specific method for judging whether the current position of the user terminal is in the area range corresponding to the area position information comprises the following steps:
when the AMF receives a notification message which is sent by the user terminal and represents the current position of the user terminal, the SMF obtains the notification message from the AMF;
and the SMF judges whether the current position of the user terminal is in the area range in the area position information according to the notification message and the area position message.
Wherein the obtaining, by the SMF, the notification message from the AMF includes:
the AMF directly sends the notification message to the SMF, and the SMF obtains the notification message;
or, the AMF combines the notification message with other messages to form a combined message and sends the combined message to the SMF, and the SMF obtains the notification message from the combined message;
the notification message may be:
a message related to the switching, which is sent to the AMF by a base station in the switching process of the cell where the user terminal is located; such as path switch, handover request, etc. The cell is a cell of a base station in a mobile network;
or, a notification message sent to the AMF and generated in the ue after the ue subscribes to the notification service when the ue location changes.
Among the management methods of the PDU session connection, a specific management method of the establishment of the PDU session connection can be seen in fig. 2.
As shown in fig. 2, the steps of the management method for setting up the PDU session connection are, for example:
s201, a user terminal sends a PDU session connection request message, and the user terminal sends a DNN information and an NAS message related to a PDU session to an AMF through a RAN (Radio Access Network);
s202, the AMF judges whether the PDU session connection is used for requesting the connection between local area data networks according to the DNN information; if yes, the AMF obtains the regional position information of the local regional data network corresponding to the DNN information according to the DNN information;
s203, the AMF sends the region location information and the NAS message to the SMF;
s204, the SMF obtains the signing information of the PDU session connection from UDM (Unified Data Management); the UDM refers to an entity for realizing a unified data management function in a mobile network;
s205, the SMF stores the region position information;
s206, the SMF executes the subsequent establishment process of the PDU session connection, and establishes the PDU session connection from the user terminal to the local area data network.
Wherein the step S205 may include the SMF saving the zone location information in context information of the PDU session connection;
the step S206 may include: and establishing the user plane connection of the PDU conversation between the user terminal and the local area data network.
Among the management methods of the PDU session connection, a specific management method of the release or deactivation of the PDU session connection can be seen in fig. 3.
As shown in fig. 3, the steps of the management method for setting up the PDU session connection are, for example:
s301, when PDU session connection between a user terminal and a local area data network is established and the SMF stores area position information of the local area data network, the AMF receives a notification message which is sent by the user terminal through RAN and represents the current position of the user terminal;
s302, the AMF directly sends the notification message to the SMF, and the SMF obtains the notification message; or, the AMF combines the notification message with other messages to form a combined message and sends the combined message to the SMF, and the SMF obtains the notification message from the combined message;
s303, the SMF judges whether the current position of the user terminal is in the area range in the area position information according to the notification message and the area position message; if not, executing step S304;
s304, the SMF releases the PDU session connection or deactivates the PDU session connection.
Wherein the notification message in step S301 includes: a message related to the switching, which is sent to the AMF by a base station in the switching process of the cell where the user terminal is located; messages such as path switching, handover requests, etc.;
or, a notification message sent to the AMF and generated in the ue after the ue subscribes to the notification service when the ue location changes.
The step S304 of deactivating the PDU session connection includes deactivating a user plane connection of the PDU session, that is, deactivating a connection with a UPF (user plane Function) in the PDU session connection. Wherein, UPF refers to the entity for realizing user plane function in mobile network
As shown in fig. 4, a second embodiment of the present invention provides a PDU session connection management apparatus, which is applied to a mobile network, and includes:
the apparatus includes an AMF in the mobile network and an SMF in the mobile network:
when the AMF receives a request message which is sent by a user terminal and used for requesting to establish PDU session connection to a local area data network, the SMF obtains the area position information of the local area data network from the AMF;
the SMF stores the region location information.
Specifically, when receiving a request message sent by a user terminal for requesting to establish a PDU session connection, the AMF determines whether the PDU session connection is for requesting a connection to a local area data network according to DNN information carried in the request message;
if yes, the AMF obtains the regional position information of the local regional data network corresponding to the DNN information according to the DNN information;
the SMF obtains regional location information of the local area data network from the AMF.
In addition, the request message further includes a NAS message related to the PDU session, which is parsed by the SMF, and the AMF may send the NAS message and the DNN information to the SMF together.
The saving, by the SMF, the area location information may specifically include:
the SMF stores the region location information in context information of the PDU session connection.
After the SMF stores the region position information, the SMF establishes PDU session connection between the user terminal and the local region data network; for example, a user plane connection for a PDU session between the user terminal and the local area data network is established.
When the PDU session connection between the user terminal and the local area data network is established, if the current position of the user terminal is not in the area range corresponding to the area position information, the SMF releases the PDU session connection or deactivates the PDU session connection, wherein the deactivation of the PDU session connection comprises the deactivation of the user plane connection of the PDU session. The specific method for judging whether the current position of the user terminal is in the area range corresponding to the area position information comprises the following steps:
when the AMF receives a notification message which is sent by the user terminal and represents the current position of the user terminal, the SMF obtains the notification message from the AMF;
and the SMF judges whether the current position of the user terminal is in the area range in the area position information according to the notification message and the area position message.
Wherein the obtaining, by the SMF, the notification message from the AMF includes:
the AMF directly sends the notification message to the SMF, and the SMF obtains the notification message;
or, the AMF combines the notification message with other messages to form a combined message and sends the combined message to the SMF, and the SMF obtains the notification message from the combined message;
the notification message may be:
a message related to the switching, which is sent to the AMF by a base station in the switching process of the cell where the user terminal is located; such as path switch, handover request, etc. The cell is a cell of a base station in a mobile network;
or, a notification message sent to the AMF and generated in the ue after the ue subscribes to the notification service when the ue location changes.
The management device for PDU session connection may specifically include: RAN, AMF, SMF, UDM and UPF entities, which are in the management apparatus for PDU session connection, refer to fig. 2 and fig. 3 in the first embodiment.
A third embodiment of the present invention provides a computer apparatus, which includes a processor, and the processor is configured to implement the steps of the method according to the first embodiment when executing the computer program stored in the memory.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program: which when executed by a processor implements the steps of the method as described in the first embodiment.
The technical scheme in the embodiment of the invention at least has the following technical effects or advantages: the SMF can manage the PDU session connection based on the position information of the user terminal, thereby reducing the resource waste when connecting to the LADN.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.