Data communication method, device, electronic device and storage medium
By using AMF in the 5G network to receive the N1N2 message transmission request of the SMF, carrying the N2 session information, determining the status of the UE and notifying the RAN to establish a data transmission tunnel, the conflict problem when the user equipment and the data network initiate service requests at the same time is solved, achieving Normal recovery and synchronization of data transmission tunnels.
Patent Information
- Application Number
- CN202210156414.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-02-21
AI Technical Summary
In the 5G network, when the user equipment and the data network initiate service requests at the same time, the service request process conflicts, and the process of restoring the data transmission tunnel is abnormal and cannot be effectively synchronized.
The access and mobility management function AMF receives the N1N2 message transmission request sent by the session management function SMF, carrying N2 session information, including the first N3 tunnel information on the UPF side. The AMF determines the status of the UE based on the tunnel identifier of the data transmission tunnel, and decides Whether to notify the radio access network RAN to establish a data transmission tunnel to avoid conflicts.
It effectively avoids service request process conflicts between user equipment and data networks, ensures normal recovery and synchronization of data transmission tunnels, and ensures normal communication between user equipment and data networks.
Smart Images

Figure CN114554620B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data communication method, device, electronic equipment and storage medium. Background Art
[0002] The fifth generation mobile communication technology (5G) is a new generation of broadband mobile communication technology and the network infrastructure for realizing the Internet of Everything.
[0003] In the existing 5G network communication process, a protocol data unit (PDU) session is established between the user equipment (UE) and the data network (DN). When the UE is in an idle state, the data transmission tunnel used to carry the PDU session is in a deactivated state. When the UE side needs to send uplink data to the DN through the PDU session, and at the same time, the DN side needs to send downlink data to the UE through the PDU session, the UE side and the DN side will simultaneously initiate a service request process to restore the data transmission tunnel between the UE and the DN through the service request process.
[0004] However, the 3GPP protocol does not specify how each network element in the 5G core network should synchronously process the two service request processes, resulting in a conflict between the two service request processes and an abnormality in the process of restoring the data transmission tunnel. Summary of the invention
[0005] The purpose of the present invention is to provide a data communication method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the conflict problem when the user equipment and the data network initiate service requests at the same time, and ensure normal communication between the user equipment and the data network.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a data communication method, the method comprising:
[0008] The access and mobility management function AMF receives the N1N2 message transmission request sent by the session management function SMF, where the N1N2 message transmission request is a transmission request generated by the SMF according to the data notification message sent by the user plane function UPF, and the N1N2 message transmission request carries N2 session information, where the N2 session information includes: the first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, and the data notification message includes: a tunnel identifier of a data transmission tunnel for sending the downlink data to the user equipment UE through the UPF by the data network;
[0009] The AMF determines, according to the tunnel identifier of the data transmission tunnel, a state of the UE corresponding to the tunnel identifier of the data transmission tunnel, where the state of the UE is used to indicate a stage at which the UE initiates a service request process or a registration update process;
[0010] The AMF determines whether to notify the radio access network RAN to establish a data transmission tunnel according to the status of the UE and the N2 session information.
[0011] Optionally, the AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including:
[0012] If the AMF determines that the status of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, the AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0013] The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0014] Optionally, the AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including:
[0015] If the AMF determines that the status of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has notified the RAN to establish a data transmission tunnel in the service request process or the registration update process, the AMF determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0016] If the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, the AMF waits to receive a data transmission tunnel establishment response sent by the RAN;
[0017] If the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0018] Optionally, the AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including:
[0019] If the AMF determines that the status of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in a connected state, the AMF sends a protocol data unit PDU session resource setting request message to the RAN, so that the RAN creates the data transmission tunnel according to the PDU session resource setting request message, and the PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
[0020] Optionally, the method further includes:
[0021] If the AMF determines that the status of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in an idle state, the AMF sends a paging message to the RAN, so that the RAN sends the paging message to the UE, and the UE initiates the service request process or the registration update process in response to the paging message. The paging message is used for the UE in the idle state to send a call request.
[0022] Optionally, if the UE only responds to the paging message, the method further includes:
[0023] After receiving the service request message sent by the UE, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0024] Optionally, if the UE sends uplink data in addition to responding to the paging message, the method further includes:
[0025] The AMF receives a service request message or a registration update message sent by the UE, where the service request message includes: a PDU session status and an uplink data status, and the registration update message includes: a PDU session status and an uplink data status;
[0026] The AMF sends an update session management context request message to the SMF according to the service request message or the registration update message, where the update session management context request message is used to synchronize the PDU session state and the uplink data state to the SMF;
[0027] The AMF receives a context response message sent by the SMF according to the update session management context request message, wherein the context response message carries a PDU session state synchronization result and the second N3 tunnel information on the UPF side;
[0028] The AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain merged N3 tunnel information;
[0029] The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0030] In a second aspect, an embodiment of the present application further provides a data communication device, the device comprising:
[0031] A receiving module, configured to receive an N1N2 message transmission request sent by an access and mobility management function AMF, wherein the N1N2 message transmission request is a transmission request generated by the SMF according to a data notification message sent by a user plane function UPF, and the N1N2 message transmission request carries N2 session information, wherein the N2 session information includes: first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, and the data notification message includes: a tunnel identifier of a data transmission tunnel for sending the downlink data from a network side device to a user equipment UE through the UPF;
[0032] A status determination module, used by the AMF to determine the status of the UE corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel, where the status of the UE is used to indicate the stage at which the UE initiates a service request process or a registration update process;
[0033] The notification module is used for the AMF to determine whether to notify the radio access network RAN to establish a data transmission tunnel according to the status of the UE and the N2 session information.
[0034] Optionally, the notification module includes:
[0035] a tunnel information merging unit, configured to merge the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information if the AMF determines that the state of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0036] The first request message sending unit is used for the AMF to send a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0037] Optionally, the notification module includes:
[0038] a tunnel information judgment unit, wherein if the AMF determines that the status of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has notified the RAN to establish a data transmission tunnel in the service request process or the registration update process, the AMF judges whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0039] a response receiving unit, configured to, if the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, then the AMF waits to receive a data transmission tunnel establishment response sent by the RAN;
[0040] A second request message sending unit is configured to send, by the AMF, a second N2 request message to the RAN if the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, so that the RAN creates a data transmission tunnel according to the second N2 request message, wherein the second N2 request message includes the first N3 tunnel information on the UPF side.
[0041] Optionally, the notification module is also used to send a protocol data unit PDU session resource setting request message to the RAN if the AMF determines that the status of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in a connected state, so that the RAN creates the data transmission tunnel according to the PDU session resource setting request message, and the PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
[0042] Optionally, the device further comprises:
[0043] A paging message sending module is used for, if the AMF determines that the state of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in an idle state, the AMF sends a paging message to the RAN, so that the RAN sends the paging message to the UE, and the UE initiates the service request process or the registration update process in response to the paging message. The paging message is used for the UE in the idle state to send a call request.
[0044] Optionally, if the UE only responds to the paging message, the second request message sending unit is also used for the AMF to send a second N2 request message to the RAN after receiving the service request message sent by the UE, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0045] Optionally, if the UE sends uplink data in addition to responding to the paging message, the device further includes:
[0046] A service request message receiving module, used for the AMF to receive a service request message or a registration update message sent by the UE, wherein the service request message includes: a PDU session status and an uplink data status, and the registration update message includes: a PDU session status and an uplink data status;
[0047] A session management context update request message sending module is used for the AMF to send a session management context update request message to the SMF according to the service request message or the registration update message, and the session management context update request message is used to synchronize the PDU session state and the uplink data state to the SMF;
[0048] A tunnel information merging module, used for the AMF to merge the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information;
[0049] A first request message sending module is used for the AMF to send a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0050] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the data communication method as described in any of the above embodiments.
[0051] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data communication method as described in any of the above embodiments are executed.
[0052] The beneficial effects of this application are:
[0053] The present application provides a data communication method, device, electronic device and storage medium, wherein an access and mobility management function AMF receives an N1N2 message transmission request sent by a session management function SMF, the N1N2 message transmission request is a transmission request generated by the SMF according to a data notification message sent by a user plane function UPF, the N1N2 message transmission request carries N2 session information, the N2 session information includes: the first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, the data notification message includes: the tunnel identifier of the data transmission tunnel in which the data network sends downlink data to the user equipment UE through the UPF; the AMF determines the status of the UE corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel, the status of the UE is used to indicate the stage in which the UE initiates a service request process or a registration update process; the AMF determines whether to notify the wireless access network RAN to establish a data transmission tunnel according to the status of the UE and the N2 session information. When the data network sends downlink data to the UE, this application determines whether to notify the RAN to establish a data transmission tunnel according to the stage of the service request process or registration update process initiated by the UE, so as to avoid conflicts when the AMF simultaneously processes the downlink data sent by the data network and the service request process or registration update process initiated by the UE, thereby ensuring normal communication between the UE and the data network. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0055] Figure 1 A schematic diagram of a network architecture provided in an embodiment of the present application;
[0056] Figure 2 An interactive diagram of a UE-initiated service request process provided in an embodiment of the present application;
[0057] Figure 3 A flowchart of a data communication method provided in an embodiment of the present application;
[0058] Figure 4 A flowchart of another data communication method provided in an embodiment of the present application;
[0059] Figure 5 An interactive schematic diagram of a data communication method provided in an embodiment of the present application;
[0060] Figure 6A flowchart of another data communication method provided in an embodiment of the present application;
[0061] Figure 7 An interactive schematic diagram of another data communication method provided in an embodiment of the present application;
[0062] Figure 8 A flowchart of another data communication method provided in an embodiment of the present application;
[0063] Fig. 9 An interactive schematic diagram of another data communication method provided in an embodiment of the present application;
[0064] Fig.10 A flowchart of another data communication method provided in an embodiment of the present application;
[0065] Fig.11 A schematic diagram of the structure of a data communication device provided in an embodiment of the present application;
[0066] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0068] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0069] In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0070] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0071] The technical solutions of the embodiments of the present application can be applied to various local communication systems, such as: global system for mobile communications (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) communication system or future new radio access technology (NR), etc.
[0072] For example, the system architecture of the communication system may include: user equipment, access network equipment and core network equipment. The communication system provided in the embodiment of the present application may be a 5G core network (5G core, 5GC) communication system, and the system architecture of the 5G core network communication system may include: user equipment, wireless access network, core network and data network.
[0073] Among them, user equipment (UE): can be called terminal equipment, terminal, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication equipment, user agent or user device. UE can also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing equipment connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network or a terminal device in a public land mobile communication network (PLMN) to be evolved in the future, etc., and can also be an end device, a logical entity, an intelligent device, such as a mobile phone, an intelligent terminal and other terminal devices, or a server, a gateway, a base station, a controller and other communication equipment, or an Internet of Things device, such as a sensor, an electric meter, a water meter and other Internet of Things (IoT) devices. The embodiments of the present application are not limited to this. UE is the entry point for mobile users to interact with the network. It can provide basic computing and storage capabilities, display service windows to users, and receive user operation data. UE will adopt the next-generation air interface technology to establish signal connection and data transmission with RAN, thereby transmitting control signals and service data to the mobile network.
[0074] Access network (AN) equipment: equipment deployed in the access network to provide wireless communication functions for user equipment. The access network can be an access network that uses different access technologies. There are currently two types of wireless access technologies: 3rd generation partnership project (3GPP) access technology (such as the wireless access technology used in 3G, 4G or 5G systems) and non-3GPP access technology. 3GPP access technology refers to access technology that complies with 3GPP standards and specifications. The access network that uses 3GPP access technology is called a radio access network (RAN), where the access network equipment in the 5G system is called the next generation Node Base station (gNB). Non-3GPP access technology refers to access technology that does not comply with 3GPP standards and specifications, for example, air interface technology represented by access points (APs) in WIFI.
[0075] The access network that implements the access network function based on wireless communication technology can be called a radio access network (RAN). RAN is deployed close to the UE, providing network access functions for authorized users in a specific area, and can use data transmission tunnels of different qualities to transmit service data according to the user level and service requirements. RAN can manage its own resources, provide access services to UE on demand, and forward control signals and service data between UE and the core network.
[0076] The access network equipment may include equipment in the access network that communicates with the wireless terminal over the air interface through one or more sectors. The access network system may be used to convert received air frames to and from Internet Protocol (IP) packets, acting as a router between the wireless terminal and the rest of the access network, which may include an IP network. The wireless access network system may also coordinate the management of attributes of the air interface. It should be understood that the access network equipment includes but is not limited to: evolved node B (eNB), radio network controller (RNC), node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved node B, or homenode B, HNB), base band unit (BBU), access point (AP) in wireless fidelity (WIFI) system, wireless relay node, wireless backhaul node, transmission point (TRP or transmission point, TP), etc., and can also be a gNB in 5G, such as NR, system, or a transmission point (TRP or TP), one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or, it can also be a network node constituting a gNB or a transmission point, such as a baseband unit (BBU)), or a distributed unit (DU), etc.
[0077] In some deployments, the gNB may include a centralized unit (CU) and a DU. The gNB may also include a radio unit (RU). The CU implements some functions of the gNB, and the DU implements some functions of the gNB, for example, the CU implements the functions of the radio resource control (RRC) and packet data convergence protocol (PDCP) layers, and the DU implements the functions of the radio link control (RLC), media access control (MAC) and physical (PHY) layers. Since the information of the RRC layer will eventually become the information of the PHY layer, or be converted from the information of the PHY layer, therefore, under this architecture, high-level signaling, such as RRC layer signaling, can also be considered to be sent by the DU, or by the DU+CU. It can be understood that the access network device can be a CU node, a DU node, or a device including a CU node and a DU node. In addition, the CU may be classified as an access network device in a radio access network (RAN), or the CU may be classified as an access network device in a core network (CN), and no limitation is made here.
[0078] The core network equipment can provide UE with functions such as access and mobility management, session management, policy management, and security authentication. When the UE is attached, it provides network access authentication for the UE; when the UE has a service request, it allocates network resources for the UE; when the UE moves, it updates network resources for the UE; when the UE is idle, it provides a fast recovery mechanism for the UE; when the UE is detached, it releases network resources for the UE; when the UE has service data, it provides data routing functions for the UE, such as forwarding uplink data to the DN; or receiving UE downlink data from the DN and forwarding it to the RAN, and then sending it to the UE.
[0079] Among them, access and mobility management function (AMF): mainly used for mobility management and access management, etc., can be used to implement other functions of mobility management entity (MME) except session management, such as lawful interception, or access authorization (or authentication), etc. In the embodiment of the present application, it can be used to implement the functions of access and mobility management network element.
[0080] Session management function (SMF): mainly used for session management, UE Internet Protocol (IP) address allocation and management, selection of endpoints for manageable user plane functions, policy control, or charging function interfaces, and downlink data notification, etc. In the embodiment of the present application, it can be used to implement the function of the session management network element.
[0081] User Plane Function (UPF): i.e., data plane gateway. It can be used for packet routing and forwarding, or quality of service (QoS) processing of user plane data. User data can be accessed to the data network (DN) through this network element. In the embodiment of the present application, it can be used to implement the function of the user plane gateway.
[0082] Policy control function (PCF): A unified policy framework used to guide network behavior and provide policy rule information to control plane functional network elements (such as AMF, SMF network elements, etc.).
[0083] Data Network (DN) is a data network that provides business services to users. Generally, the client is located in the UE and the server is located in the data network. The data network can be a private network, such as a local area network, or an external network that is not controlled by the operator, such as the Internet, or a proprietary network jointly deployed by operators, such as for configuring IMS (IP Multimedia Core Network Subsystem) services.
[0084] For examples, please refer to Figure 1 , which is a schematic diagram of a network architecture provided in an embodiment of the present application, please refer to Figure 1 , the network architecture includes: UE, RAN, AMF entity, SMF entity, UPF entity, PCF entity and DN, wherein the AMF entity, SMF entity, UPF entity and PCF entity can be understood as network elements used to implement different functions in the core network, for example, they can be combined into network slices as needed. These core network network elements can be independent devices or integrated into the same device to implement different functions, which is not limited in this application.
[0085] In this network architecture, the N1 interface is the reference point between the terminal and the AMF entity; the N2 interface is the reference point between the AN and the AMF entity, which is used for sending non-access stratum (NAS) messages, etc.; the N3 interface is the reference point between the (R)AN and the UPF entity, which is used for transmitting data, etc.; the N4 interface is the reference point between the SMF entity and the UPF entity, which is used to transmit information such as tunnel identification information of the N3 connection, data cache indication information, and downlink data notification messages; the N6 interface is the reference point between the UPF entity and the DN, which is used to transmit user plane data, etc.
[0086] It should be understood that the above-mentioned network architecture applied to the embodiments of the present application is merely an example of a network architecture described from the perspective of a traditional point-to-point architecture and a service-oriented architecture. The network architecture applicable to the embodiments of the present application is not limited to this. Any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiments of the present application.
[0087] In the following text, for the sake of convenience, the entity used to implement the AMF function will be denoted as AMF, and the entity used to implement the PCF entity will be denoted as PCF. It should be understood that the above naming is only used to distinguish different functions, and does not mean that these network elements are independent physical devices. The present application does not limit the specific form of the above network elements. For example, they can be integrated in the same physical device, or they can be different physical devices. In addition, the above naming is only for the convenience of distinguishing different functions, and should not constitute any limitation on the present application. The present application does not exclude the possibility of using other names in 5G networks and other future networks. For example, in a 6G network, some or all of the above network elements may use the terminology in 5G, or other names may be used. A unified explanation is given here, and no further details will be given below.
[0088] It should also be understood that Figure 1 The interface name between the network elements is only an example. The interface name in the specific implementation may be other names, and this application does not specifically limit this. In addition, the name of the message (or signaling) transmitted between the above network elements is only an example and does not constitute any limitation on the function of the message itself.
[0089] The data communication method provided in the embodiment of the present application involves a situation where the PDU session established by the UE is in a deactivated state. In the deactivated state, the data transmission tunnel between the RAN and the UPF is disconnected. In this case, the UE needs to trigger a service request process or a registration update process when sending uplink data, and the DN also needs to trigger a service request process when sending downlink data to rebuild the data transmission tunnel between the RAN and the UPF. It should be noted that the registration update process initiated by the UE can be a mobility registration update process or a periodic registration update process. The mobility registration update process is used to initiate a registration update process to a new core network where the UE is located when the UE moves; the periodic registration update process is used for the UE to periodically initiate a registration update process to the core network. This application takes the service request process as an example for detailed description. The update process of the mobility registration update process and the periodic registration update process is similar to the service request process, which is different in that the content carried in the message initiating the request is different, and the purpose of the request is different, which will not be repeated here.
[0090] The following is a detailed introduction to the process of triggering a service request when the UE sends uplink data.
[0091] For more information, see Figure 2 , is a schematic diagram of an interaction of a UE initiating a service request process provided in an embodiment of the present application, such as Figure 2 As shown, the process of UE initiating a service request process includes:
[0092] S101: The UE sends a service request message (Service Request) to the AMF, carrying the optional information element PDU session status (pdu session status) and uplink data status (uplink data status).
[0093] S102: After receiving the service request message, AMF sends an update session management context request message (UpdateSMContextRequest) to SMF to synchronize the PDU session status and the session status information carried by the uplink data status to SMF.
[0094] S103a: SMF sends a session update request message (Session Modification Request) to UPF to synchronize the PDU session status and the session status information carried by the uplink data status to UPF.
[0095] S103b: UPF replies a session modification response message (Session Modification Response) to SMF, carrying the PDU session state synchronization result and the N3 tunnel information on the UPF side.
[0096] S104: SMF replies to AMF with an update session management context response message (UpdateSMContextResponse), which carries the PDU session state synchronization result and the N3 tunnel information on the UPF side.
[0097] S105a: AMF sends an N2 request message (N2 Request) to RAN, which carries the N3 tunnel information on the UPF side and requests RAN to create a data transmission tunnel. The N2 request message also carries a service reception message (ServiceAccept), which carries the PDU session status and uplink data status, as well as an optional PDU session successful activation result (PDU session reactivation result) or the reason why the PDU session was not successfully activated (PDU sessionreactivation result error cause). Among them, PDU session reactivation result can indicate the successfully activated pdusession identifier among the pdu session identifiers indicated by uplink data status that have uplink data to be sent; PDU session reactivation result error cause can indicate the specific reason why it cannot be activated when there is a pdu session that cannot be activated among the pdu session identifiers indicated by uplink data status that have uplink data to be sent.
[0098] S105b: RAN replies with an N2 response message (N2 Response) to the AMF, where the N2 response message carries the N3 tunnel information on the RAN side.
[0099] S106: AMF sends a session management context update request message to SMF, carrying the N3 tunnel information on the RAN side.
[0100] S107a: SMF sends a session update request message to UPF, carrying the N3 tunnel information on the RAN side.
[0101] S107b: UPF replies with the SMF session update response message, carrying the tunnel creation result.
[0102] S108: SMF replies to AMF with an update session management context response message, which carries the tunnel creation result.
[0103] When the UE sends uplink data and the DN sends downlink data at the same time, the UE and DN will initiate a service request process at the same time to restore the data transmission tunnel between the UE and DN through the service request process. However, the 3GPP protocol does not specify how each network element in the 5G core network should synchronously process the two service request processes, resulting in a conflict between the two service request processes and an abnormality in the process of restoring the data transmission tunnel.
[0104] To solve the above technical problems, the embodiments of the present application provide the following data communication method to solve the conflict problem when the UD and DN initiate service requests at the same time, thereby ensuring normal communication between the user equipment and the data network.
[0105] Please refer to Figure 3 , is a flow chart of a data communication method provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:
[0106] S10: AMF receives the N1N2 message transmission request sent by SMF.
[0107] Among them, the N1N2 message transmission request is a transmission request generated by the SMF according to the data notification message sent by the UPF. The N1N2 message transmission request carries N2 session information. The N2 session information includes: the first N3 tunnel information on the UPF side. The data notification message is used to notify the SMF that the UPF has received downlink data. The data notification message includes: the tunnel identifier of the data transmission tunnel for DN to send downlink data to the user equipment UE through the UPF.
[0108] In this embodiment, after receiving the downlink data sent by DN, UPF matches the session identifier to which the downlink data belongs, determines that the session corresponding to the session identifier is in a deactivated state, and sends a data notification message (Datanotification) to SMF to notify SMF that there is downlink data to be sent; after receiving the data notification, SMF determines the data transmission tunnel matching the session based on the pre-saved session context information, and replies with a data notification response message (Datanotification Ack) to UPF; SMF sends an N1N2 message transmission request message (N1N2MessegeTransfer) to AMF based on the data transmission tunnel matching the session, and the N1N2 message transmission request carries N2 session information (N2 SMinformation), and the N2 session message includes the session identifier and the first N3 tunnel information on the UPF side, and the first N3 tunnel information on the UPF side can be the IP address of the UPF and / or the first N3 tunnel endpoint identifier on the UPF side, and AMF sends an N1N2 message transmission response message (N1N2MessegeTransfer Ack) to SMF.
[0109] S20: AMF determines the UE status corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel. The UE status is used to indicate the stage at which the UE initiates the service request process or the registration update process.
[0110] In this embodiment, the AMF determines the UE identifier for receiving the downlink data according to the session identifier carried in the downlink data or the tunnel identifier of the data transmission tunnel. The AMF stores the current status of multiple UEs, and determines the current status of the target UE according to the UE identifier, which is used to indicate the stage at which the AMF target UE initiates a service request process or a registration update process. The stage at which the UE initiates a service request process or a registration update process may include: the UE has initiated a service request process or a registration update process and the UE has not yet initiated a service request process or a registration update process.
[0111] S30: The AMF determines whether to notify the radio access network RAN to establish a data transmission tunnel according to the UE status and N2 session information.
[0112] Optionally, in this embodiment, if the AMF determines that the UE status is that the UE has initiated a service request process, then according to the second N3 tunnel information on the UPF side obtained after the UE has initiated the service request process, and the first N3 tunnel information on the UPF side in the N2 session message, it is determined that the RAN adopts the first method to establish a data transmission tunnel; if the AMF determines that the UE status is that the UE has not initiated a service request process, then according to the first N3 tunnel information on the UPF side in the N2 session message, it is determined that the RAN adopts the second method to establish a data transmission tunnel. After the data transmission tunnel is successfully established, the UPF can send the downlink data to the RAN through the data transmission tunnel, and the RAN forwards it to the corresponding UE.
[0113] The data communication method provided by the present application, the access and mobility management function AMF receives the N1N2 message transmission request sent by the session management function SMF, the N1N2 message transmission request is a transmission request generated by the SMF according to the data notification message sent by the user plane function UPF, the N1N2 message transmission request carries the N2 session information, the N2 session information includes: the first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received the downlink data, and the data notification message includes: the tunnel identifier of the data transmission tunnel for the data network to send downlink data to the user equipment UE through the UPF; the AMF determines the UE status corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel, and the UE status is used to indicate the stage of the UE initiating the service request process or the registration update process; the AMF determines whether to notify the radio access network RAN to establish the data transmission tunnel according to the UE status and the N2 session information. In the embodiment of the present application, when the data network sends downlink data to the UE, according to the stage of the service request process or the registration update process initiated by the UE, it determines whether to notify the RAN to establish the data transmission tunnel, so as to avoid conflicts when the AMF simultaneously processes the data network sending downlink data and the UE initiating the service request process or the registration update process, and ensures normal communication between the UE and the data network.
[0114] Please refer to Figure 4 , is a flow chart of another data communication method provided in an embodiment of the present application, such as Figure 4 As shown, the method includes S10, S20, S31-S32, wherein S10 and S20 are the same as above and are not described in detail here. Specifically, the data control method of the embodiment of the present application includes:
[0115] S10: AMF receives an N1N2 message transmission request sent by SMF. The N1N2 message transmission request is a transmission request generated by SMF according to a data notification message sent by UPF. The N1N2 message transmission request carries N2 session information. The N2 session information includes: the first N3 tunnel information on the UPF side. The data notification message is used to notify SMF that UPF has received downlink data. The data notification message includes: the tunnel identifier of the data transmission tunnel for the data network to send downlink data to the user equipment UE through UPF.
[0116] S20: AMF determines the UE status corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel. The UE status is used to indicate the stage at which the UE initiates the service request process or the registration update process.
[0117] S31: If the AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, the AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process.
[0118] In this embodiment, according to Figure 2 The process of UE initiating service request process shown in the figure is determined, and the status of UE is that UE has initiated service request process, and AMF has not notified RAN to establish data transmission tunnel in the service request process initiated by UE: AMF has received the update session management context response message sent by SMF, which carries the PDU session state synchronization result and the second N3 tunnel information on the UPF side, but AMF has not sent N2 request message to RAN, that is, the process of UE initiating service request process has been executed to S105, but S105a has not been executed. The process of mobility registration update process or periodic registration update process is similar to the service request process.
[0119] In this case, after receiving the N1N2 message transmission request sent by SMF, AMF merges the first tunnel information on the UPF side carried in the N1N2 message transmission request and the second N3 tunnel information on the UPF side carried in the update session management context response message to obtain the merged N3 tunnel information.
[0120] S32: The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0121] In this embodiment, the AMF sends a first N2 request message to the RAN, and the first N2 request message carries the N3 tunnel information of the merged UPF side. The RAN creates a data transmission tunnel according to the first N2 request message. For the specific process, please refer to Figure 2S105b-S108 shown. It should be noted that, if the first N3 tunnel information on the UPF side and the second N3 tunnel information on the UPF side are the same N3 tunnel information on the UPF side, the first N2 response message that the RAN replies to the AMF carries one N3 tunnel information on the RAN side corresponding to the same N3 tunnel information on the UPF side; if the first N3 tunnel information on the UPF side and the second N3 tunnel information on the UPF side are different N3 tunnel information on the UPF side, the first N2 response message that the RAN replies to the AMF carries two different N3 tunnel information on the RAN side corresponding to the different N3 tunnel information on the UPF side.
[0122] For examples, please refer to Figure 5 , is an interactive schematic diagram of a data communication method provided in an embodiment of the present application, such as Figure 5 As shown, the data communication method includes:
[0123] S201: UPF receives downlink data (Downlink Data) from the DN side.
[0124] S202a: UPF checks the session identifier carried in the downlink data, determines that the session corresponding to the session identifier is in a deactivated state, and sends a data notification message (Data notification) to SMF to notify SMF that there is downlink data to be sent.
[0125] S202b: After receiving the data notification, the SMF determines the data transmission tunnel that matches the session based on the pre-saved session context information, and replies with a data notification answer message (Data notification Ask) to the UPF.
[0126] S203a: SMF sends an N1N2 message transfer request message (N1N2MessegeTransfer) to AMF according to the data transmission tunnel matched by the session. The N1N2 message transfer request carries N2 session information (N2 SM information). The N2 session message includes the session identifier and the first N3 tunnel information on the UPF side.
[0127] S203b: AMF sends an N1N2 message transfer response message (N1N2MessegeTransfer Ask) to SMF.
[0128] S204: AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, and merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information.
[0129] S205a: The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message.
[0130] S205b: RAN replies to the AMF with a first N2 response message, where the first N2 response message carries the N3 tunnel information on the RAN side.
[0131] S206: AMF sends a session management context update request message to SMF, carrying the N3 tunnel information on the RAN side.
[0132] S207a: SMF sends a session update request message to UPF, carrying the N3 tunnel information on the RAN side.
[0133] S207b: UPF replies with the SMF session update response message, carrying the tunnel creation result.
[0134] S208: SMF replies to AMF with an update session management context response message, carrying the tunnel creation result.
[0135] The data communication method provided in the embodiment of the present application, when the UE has initiated a service request process or a registration update process but the AMF has not yet notified the RAN to establish a data transmission tunnel, merges the first N3 tunnel information and the second N3 tunnel information on the UPF side and sends the first N2 request message to the RAN, thereby avoiding conflicts when the AMF simultaneously processes the data network sending downlink data and the UE initiating a service request process, thereby ensuring normal communication between the UE and the DN.
[0136] Please refer to Figure 6 , is a flow chart of another data communication method provided in an embodiment of the present application, such as Figure 6 As shown, the method includes S10, S20, S33-S35, wherein S10 and S20 are the same as above and are not described again. Specifically, the data control method of the embodiment of the present application includes:
[0137] S10: AMF receives an N1N2 message transmission request sent by SMF. The N1N2 message transmission request is a transmission request generated by SMF according to a data notification message sent by UPF. The N1N2 message transmission request carries N2 session information. The N2 session information includes: the first N3 tunnel information on the UPF side. The data notification message is used to notify SMF that UPF has received downlink data. The data notification message includes: the tunnel identifier of the data transmission tunnel for the data network to send downlink data to the user equipment UE through UPF.
[0138] S20: AMF determines the UE status corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel. The UE status is used to indicate the stage at which the UE initiates the service request process or the registration update process.
[0139] S33: If the AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has notified the RAN to establish a data transmission tunnel during the service request process or the registration update process, the AMF determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process.
[0140] In this embodiment, according to Figure 2 The process of the UE initiating the service request process shown is determined, and the status of the UE is that the UE has initiated the service request process, and in the service request process initiated by the UE, the AMF has notified the RAN to establish a data transmission tunnel: the AMF has sent the fourth N2 request message to the RAN, that is, the process of the UE initiating the service request process has been executed to S105a, and the fourth N2 request message only includes: the second N3 tunnel information on the UPF side. The process of the mobility registration update process or the periodic registration update process is similar to the service request process.
[0141] In this case, the AMF determines whether the tunnels corresponding to the first N3 tunnel information and the second N3 tunnel information correspond to the same data transmission tunnel based on the tunnel identifier in the first N3 tunnel information and the tunnel identifier in the second N3 tunnel information on the UPF side. For example, if each PDU session has a data transmission tunnel, it can be determined whether the session identifier in the service request message or registration update process sent by the UE and the session identifier in the data notification message sent by the UPF are the same session identifier.
[0142] S34: If the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, the AMF waits to receive a data transmission tunnel establishment response sent by the RAN.
[0143] In this embodiment, if it is the same data transmission tunnel, the AMF only needs to wait to receive the fourth N2 response message of the RAN in response to the fourth N2 request message. The first N2 response message carries the N3 tunnel information on the RAN side corresponding to the second N3 tunnel information on the UPF side.
[0144] S35: If the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0145] In this embodiment, if they are different data transmission tunnels, SMF sends a second N2 request message to RAN, the second N2 request message includes the first N3 tunnel information on the UPF side, and waits for RAN to reply with a fourth N2 response message and a second N2 response message to the fourth N2 request message and the second N2 request message, respectively, to create two different data transmission tunnels. For the specific process, please refer to Figure 2 S105b-S108 shown.
[0146] For examples, please refer to Figure 7 , is an interactive schematic diagram of another data communication method provided in an embodiment of the present application, such as Figure 7 As shown, the data communication method includes:
[0147] S301: UPF receives downlink data from the DN side.
[0148] S302a: UPF checks the session identifier carried in the downlink data, determines that the session corresponding to the session identifier is in a deactivated state, and sends a data notification message to SMF to notify SMF that there is downlink data to be sent.
[0149] S302b: After receiving the data notification, the SMF determines the data transmission tunnel that matches the session based on the pre-saved session context information, and replies with a data notification response message to the UPF.
[0150] S303a: SMF sends an N1N2 message transmission request message to AMF according to the data transmission tunnel matched by the session. The N1N2 message transmission request carries the N2 session information. The N2 session message includes the session identifier and the first N3 tunnel information on the UPF side.
[0151] S303b: AMF sends an N1N2 message transmission response message to SMF.
[0152] S304: AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has sent a fourth N2 request message to the RAN in the service request process or the registration update process, and determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel.
[0153] S305: If the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, the AMF waits to receive the fourth N2 request message sent by the RAN.
[0154] S306a: If the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, the AMF sends a second N2 request message to the RAN.
[0155] S307: AMF receives the fourth N2 response message and the second N2 response message replied by RAN.
[0156] S308: AMF sends a session management context update request message to SMF, carrying the N3 tunnel information on the RAN side.
[0157] S309a: SMF sends a session update request message to UPF, carrying the N3 tunnel information on the RAN side.
[0158] S309b: UPF replies with the SMF session update response message, carrying the tunnel creation result.
[0159] S310: SMF replies to AMF with an update session management context response message, which carries the tunnel creation result.
[0160] The data communication method provided in the embodiment of the present application determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel when the UE has initiated a service request process or a registration update process and the AMF has notified the RAN to establish a data transmission tunnel. If they are the same data transmission tunnel, it is only necessary to wait until the RAN responds to the data transmission tunnel establishment request of the UE to avoid repeatedly sending establishment requests and wasting network resources; if they are different data transmission tunnels, data transmission tunnel establishment requests are sent to the RAN respectively and wait for responses to avoid conflicts and ensure normal communication between the UE and the DN.
[0161] Please refer to Figure 8 , is a flow chart of another data communication method provided in an embodiment of the present application, such as Figure 8 As shown, the method includes S10, S20, S36-S37, wherein S10 and S20 are the same as above and are not described in detail here. Specifically, the data control method of the embodiment of the present application includes:
[0162] S10: AMF receives an N1N2 message transmission request sent by SMF. The N1N2 message transmission request is a transmission request generated by SMF according to a data notification message sent by UPF. The N1N2 message transmission request carries N2 session information. The N2 session information includes: the first N3 tunnel information on the UPF side. The data notification message is used to notify SMF that UPF has received downlink data. The data notification message includes: the tunnel identifier of the data transmission tunnel for the data network to send downlink data to the user equipment UE through UPF.
[0163] S20: AMF determines the UE status corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel. The UE status is used to indicate the stage at which the UE initiates the service request process or the registration update process.
[0164] S36: If the AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in a connected state, the AMF sends a PDU session resource setting request message to the RAN, so that the RAN creates a data transmission tunnel according to the PDU session resource setting request message. The PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
[0165] In this embodiment, if the AMF determines that the UE has not initiated a service request process or a registration update process, there will be no conflict when the AMF processes the service request process initiated by the DN. The AMF determines that the UE is in a connected state (Connected) but the session of the UE is in a deactivated state, and then sends a PDU session resource setup request message (PDUSessionResourceSetupRequest) to the RAN, requesting the RAN to create a data transmission tunnel. The PDU session resource setup request message includes: the first N3 tunnel information on the UPF side.
[0166] After receiving the PDU session resource setup request message, the RAN replies to the AMF with a PDU session resource setup response message (PDUSessionResourceSetupResponse), which includes the first N3 tunnel information on the RAN side. Figure 2 S105a-S108 shown are not described in detail here.
[0167] S37: If the AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in an idle state, the AMF sends a paging message to the RAN, so that the RAN sends a paging message to the UE, and the UE initiates a service request process or a registration update process in response to the paging message. The paging message is used for the UE in the idle state to send a call request.
[0168] In this embodiment, if the AMF determines that the UE has not initiated a service request process or a registration update process, there will be no conflict when the AMF processes the service request process initiated by the DN. The AMF determines that the UE is in an idle state (IDLE), and the AMF sends a paging message (Paging) to the RAN. The paging message carries a paging identifier, and the paging identifier user marks the UE. The RAN sends the paging message to the UE, so that the UE responds to the paging message to initiate a service request process or a registration update process.
[0169] For examples, please refer to Fig. 9 , which is an interactive schematic diagram of another data communication method provided in an embodiment of the present application, such as Fig. 9 As shown, the data communication method includes:
[0170] S401: UPF receives downlink data from the DN side.
[0171] S402a: UPF checks the session identifier carried in the downlink data, determines that the session corresponding to the session identifier is in a deactivated state, and sends a data notification message to SMF to notify SMF that there is downlink data to be sent.
[0172] S402b: After receiving the data notification, the SMF determines the data transmission tunnel that matches the session based on the pre-saved session context information, and replies with a data notification response message to the UPF.
[0173] S403a: SMF sends an N1N2 message transmission request message to AMF according to the data transmission tunnel matched by the session. The N1N2 message transmission request carries the N2 session information. The N2 session message includes the session identifier and the first N3 tunnel information on the UPF side.
[0174] S403b: AMF sends an N1N2 message transmission response message to SMF.
[0175] S404a: AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in a connected state, and sends a PDU session resource setting request message to the RAN to request the creation of a data transmission tunnel. The PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
[0176] S404b: RAN replies with a PDU session resource setting response message to the AMF, where the PDU session resource setting response message includes: the first N3 tunnel information on the RAN side.
[0177] S405a: The AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in an idle state, then the AMF sends a paging message to the RAN.
[0178] S405b: RAN sends a paging message to the UE.
[0179] S406: The UE initiates a service request procedure or a registration update procedure in response to the paging message.
[0180] The data communication method provided in the embodiment of the present application, if the AMF determines that the state of the UE is that the UE has not initiated a service request process, and the UE is in a connected state, the AMF sends a PDU session resource setting request message to the RAN, so that the RAN creates a data transmission tunnel according to the PDU session resource setting request message, and the PDU session resource setting request message includes: the first N3 tunnel information on the UPF side, if the AMF determines that the state of the UE is that the UE has not initiated a service request process or a registration update process, and the UE is in an idle state, the AMF sends a paging message to the RAN, so that the RAN sends a paging message to the UE, and the UE responds to the paging message to initiate a service request process or a registration update process, and the paging message is used for the UE in the idle state to send a call request. The embodiment of the present application can determine the way to create a data transmission channel according to whether the UE is in a connected state or an idle state, so as to avoid the UE using the same method to create a data transmission channel in different states and waste network resources.
[0181] In an optional implementation manner, if the UE only responds to the paging message, the method further includes:
[0182] After receiving the service request message sent by the UE, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message. The second N2 request message includes the first N3 tunnel information on the UPF side.
[0183] In this embodiment, if the UE only needs to respond to the paging message to establish a data transmission tunnel, the UE sends a service request message to the AMF after receiving the paging message. The service request message does not carry the uplink data status. The AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message. The second N2 request message includes the first N3 tunnel information on the UPF side. This process can be referred to Figure 2 S105a-S108 shown are not described in detail here.
[0184] In another alternative embodiment, please refer to Fig.10 , is a flow chart of yet another data communication method provided in an embodiment of the present application, such as Fig.10 As shown, if the UE sends uplink data in addition to responding to the paging message, the method further includes:
[0185] S41: AMF receives a service request message or a registration update message sent by the UE. The service request message includes: PDU session status and uplink data status. The registration update message includes: PDU session status and uplink data status.
[0186] S42: AMF sends an update session management context request message to SMF according to the service request message or the registration update message. The update session management context request message is used to synchronize the PDU session status and uplink data status to SMF.
[0187] S43: AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain merged N3 tunnel information.
[0188] S44: The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0189] S41-S42 of the data communication method provided in this embodiment is the same as the process of the UE independently initiating a service request process. Figure 2 S101-S104, S43-S44 shown are the same as the process of UE initiating a service request and not notifying RAN to establish a data transmission channel. Figure 4 The S31-S32 shown are not described in detail here.
[0190] Based on the above embodiments, the present application also provides a data communication device. Fig.11 , is a structural diagram of a data communication device provided in an embodiment of the present application, such as Fig.11 As shown, the device comprises:
[0191] The receiving module 10 is used for the access and mobility management function AMF to receive the N1N2 message transmission request sent by the session management function SMF, where the N1N2 message transmission request is a transmission request generated by the SMF according to the data notification message sent by the user plane function UPF, and the N1N2 message transmission request carries N2 session information, and the N2 session information includes: the first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, and the data notification message includes: the tunnel identifier of the data transmission tunnel for the network side device to send downlink data to the user equipment UE through the UPF;
[0192] A state determination module 20 is used for the AMF to determine the state of the UE corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel. The state of the UE is used to indicate the stage at which the UE initiates a service request process or a registration update process;
[0193] The notification module 30 is used for the AMF to determine whether to notify the radio access network RAN to establish a data transmission tunnel according to the UE status and N2 session information.
[0194] Optionally, the notification module 30 includes:
[0195] A tunnel information merging unit, configured to merge the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information if the AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE. The second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0196] The first request message sending unit is used for the AMF to send a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0197] Optionally, the notification module 30 includes:
[0198] Tunnel information judgment unit, if the AMF determines that the UE status is that the UE has initiated a service request process or a registration update process, and the AMF has notified the RAN to establish a data transmission tunnel in the service request process or the registration update process, then the AMF determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process;
[0199] a response receiving unit, configured to wait for the AMF to receive a data transmission tunnel establishment response sent by the RAN if the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel;
[0200] The second request message sending unit is used to send a second N2 request message to the RAN if the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0201] Optionally, the notification module 30 is also used to send a protocol data unit PDU session resource setting request message to the RAN if the AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in a connected state, so that the RAN creates a data transmission tunnel according to the PDU session resource setting request message, and the PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
[0202] Optionally, the device further comprises:
[0203] The paging message sending module is used to send a paging message to the RAN if the AMF determines that the UE status is that the UE has not initiated a service request process or a registration update process, and the UE is in an idle state, so that the RAN sends a paging message to the UE, and the UE responds to the paging message to initiate a service request process or a registration update process. The paging message is used for the UE in the idle state to send a call request.
[0204] Optionally, if the UE only responds to the paging message, the second request message sending unit is also used for the AMF to send a second N2 request message to the RAN after receiving the service request message sent by the UE, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
[0205] Optionally, if the UE sends uplink data in addition to responding to the paging message, the device further includes:
[0206] The service request message receiving module is used for the AMF to receive the service request message or registration update message sent by the UE. The service request message includes: PDU session status and uplink data status, and the registration update message includes: PDU session status and uplink data status;
[0207] The update session management context request message sending module is used for AMF to send an update session management context request message to SMF according to a service request message or a registration update message. The update session management context request message is used to synchronize the PDU session status and the uplink data status to SMF;
[0208] A tunnel information merging module, used for AMF to merge the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information;
[0209] The first request message sending module is used for the AMF to send a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
[0210] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0211] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0212] Please refer to Fig.12 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be the aforementioned AMF entity. Fig.12 As shown, the electronic device 100 may include: a processor 101, a storage medium 102 and a bus, the storage medium 102 stores machine-readable instructions executable by the processor 101, when the electronic device 100 is running, the processor 101 and the storage medium 102 communicate through the bus, and the processor 101 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0213] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0214] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0216] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0217] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0218] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A data communication method, It is characterized in that The method comprises: The access and mobility management function AMF receives the N1N2 message transmission request sent by the session management function SMF, where the N1N2 message transmission request is a transmission request generated by the SMF according to the data notification message sent by the user plane function UPF, and the N1N2 message transmission request carries N2 session information, where the N2 session information includes: the first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, and the data notification message includes: a tunnel identifier of a data transmission tunnel for sending the downlink data to the user equipment UE through the UPF by the data network; The AMF determines, according to the tunnel identifier of the data transmission tunnel, a state of the UE corresponding to the tunnel identifier of the data transmission tunnel, where the state of the UE is used to indicate a stage at which the UE initiates a service request process or a registration update process; The AMF determines, according to the state of the UE and the N2 session information, whether to notify the radio access network RAN to establish a data transmission tunnel; The AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including: If the AMF determines that the status of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, the AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process; The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
2. The method according to claim 1, It is characterized in that The AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including: If the AMF determines that the status of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has notified the RAN to establish a data transmission tunnel in the service request process or the registration update process, the AMF determines whether the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process; If the first N3 tunnel information and the second N3 tunnel information on the UPF side correspond to the same data transmission tunnel, the AMF waits to receive a data transmission tunnel establishment response sent by the RAN; If the first N3 tunnel information and the second N3 tunnel information on the UPF side do not correspond to the same data transmission tunnel, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
3. The method according to claim 1, It is characterized in that The AMF determines, according to the state of the UE and the N2 session information, whether to notify a radio access network RAN to establish a data transmission tunnel, including: If the AMF determines that the status of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in a connected state, the AMF sends a protocol data unit PDU session resource setting request message to the RAN, so that the RAN creates the data transmission tunnel according to the PDU session resource setting request message, and the PDU session resource setting request message includes: the first N3 tunnel information on the UPF side.
4. The method according to claim 3, It is characterized in that The method further comprises: If the AMF determines that the status of the UE is that the UE has not initiated the service request process or the registration update process, and the UE is in an idle state, the AMF sends a paging message to the RAN, so that the RAN sends the paging message to the UE, and the UE initiates the service request process or the registration update process in response to the paging message. The paging message is used for the UE in the idle state to send a call request.
5. The method according to claim 4, It is characterized in that If the UE only responds to the paging message, the method further includes: After receiving the service request message sent by the UE, the AMF sends a second N2 request message to the RAN, so that the RAN creates a data transmission tunnel according to the second N2 request message, and the second N2 request message includes the first N3 tunnel information on the UPF side.
6. The method according to claim 4, It is characterized in that If the UE sends uplink data in addition to responding to the paging message, the method further includes: The AMF receives a service request message or a registration update message sent by the UE, where the service request message includes: a PDU session status and an uplink data status, and the registration update message includes: a PDU session status and an uplink data status; The AMF sends an update session management context request message to the SMF according to the service request message or the registration update message, where the update session management context request message is used to synchronize the PDU session state and the uplink data state to the SMF; The AMF receives a context response message sent by the SMF according to the update session management context request message, wherein the context response message carries a PDU session state synchronization result and the second N3 tunnel information on the UPF side; The AMF merges the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain merged N3 tunnel information; The AMF sends a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
7. A data communication device, It is characterized in that The device comprises: A receiving module, configured to receive an N1N2 message transmission request sent by an access and mobility management function AMF, wherein the N1N2 message transmission request is a transmission request generated by the SMF according to a data notification message sent by a user plane function UPF, and the N1N2 message transmission request carries N2 session information, wherein the N2 session information includes: first N3 tunnel information on the UPF side, the data notification message is used to notify the SMF that the UPF has received downlink data, and the data notification message includes: a tunnel identifier of a data transmission tunnel for sending the downlink data from a network side device to a user equipment UE through the UPF; A status determination module, used by the AMF to determine the status of the UE corresponding to the tunnel identifier of the data transmission tunnel according to the tunnel identifier of the data transmission tunnel, where the status of the UE is used to indicate the stage at which the UE initiates a service request process or a registration update process; A notification module, configured for the AMF to determine whether to notify a radio access network RAN to establish a data transmission tunnel according to the state of the UE and the N2 session information; The notification module comprises: a tunnel information merging unit, configured to merge the first N3 tunnel information and the second N3 tunnel information on the UPF side to obtain the merged N3 tunnel information if the AMF determines that the state of the UE is that the UE has initiated the service request process or the registration update process, and the AMF has not notified the RAN to establish a data transmission tunnel in the service request process or the registration update process initiated by the UE, wherein the second N3 tunnel information is carried by the reply session update response message sent by the UPF to the SMF after the UE initiates the service request process or the registration update process; The first request message sending unit is used for the AMF to send a first N2 request message to the RAN according to the merged N3 tunnel information, so that the RAN creates a data transmission tunnel according to the first N2 request message, wherein the first N2 request message includes: the merged N3 tunnel information.
8. An electronic device, It is characterized in that include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the data communication method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the data communication method according to any one of claims 1 to 6 are executed.
