Session association method and device, computer equipment, readable storage medium and program product

By analyzing and finding key information in the target protocol message, establishing the association relationship of terminal sessions, solving the problem of inaccurate session management under the five-tuple mode, and improving the accuracy of session management and signaling process of N1/N2 interfaces consistency.

CN119071943APending Publication Date: 2024-12-03DAWNING NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411276100.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the 5G switching scenario of the mobile core network, in the UE signaling process association technology of the N1/N2 interface, the five-tuple method as the unique session identifier causes inaccurate session management, and the inability to effectively distinguish signaling sessions of different users, resulting in accurate management, resulting in accurate management Low degree.

Method used

By obtaining the target protocol message in the target interface, analyzing the base station address, core network element address and target protocol identifier, based on this information, searching the target tunnel node in the node list, establishing and maintaining the association relationship of the terminal session, and using tunnel nodes to distinguish and Manage user sessions to improve the accuracy of session management.

Benefits of technology

It realizes accurate distinction and management of different user sessions, improves the accuracy of N1/N2 interface session management, ensures that the same origin and homogeneous signaling traffic are maintained, especially in the HandOver switching scenario.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071943A_ABST
    Figure CN119071943A_ABST
Patent Text Reader

Abstract

The invention relates to a session association method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a target protocol message in a target interface; analyzing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, the target protocol identifier comprising a target protocol identifier allocated by the terminal at a base station side and / or a target protocol identifier allocated by the terminal at a core network element side; and searching in the node list to obtain the target tunnel node and the association relationship. By adopting the method, the sessions can be managed based on the obtained tunnel information of the base station end and the core network element end, the user sessions are differentially managed based on the target protocol identifiers and the communication addresses corresponding to the user sessions, repetition is avoided, the user sessions are managed through the target tunnel node, and the user session management efficiency is improved. The accuracy of N1 / N2 interface session management can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and in particular to a session association method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] The N1 / N2 interface UE signaling process association technology in the 5G handover scenario based on the mobile core network is a relatively important technology in mobile communication technology. UE signaling process association includes how to establish a session, how to manage a session, and how to trace back when a session is switched.

[0003] The data packet session flow establishment method in the related art generally uses the five-tuple method as the unique identifier of the session to establish and manage the session flow, but the number of network elements in the mobile core network is limited, and the IP addresses and ports of the network elements are also fixed and limited. It is possible that the signaling traffic of different users on the N1 / N2 interface is managed through the same five-tuple data, resulting in the inability to manage the signaling sessions of different users, and the accuracy of session management is low. Summary of the invention

[0004] Based on this, it is necessary to provide a session association method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the accuracy of session management in order to address the above technical problems.

[0005] In a first aspect, the present application provides a session association method, comprising:

[0006] Get the target protocol message in the target interface;

[0007] Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0008] In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0009] In this embodiment, the session can be managed based on the tunnel information obtained from the base station and the core network element, and each user session can be differentiated and managed based on the target protocol identifier and communication address corresponding to each user session to avoid duplication. By managing the user session through the target tunnel node, the accuracy of N1 / N2 interface session management can be improved.

[0010] In one embodiment, the step of obtaining the target protocol message in the target interface includes:

[0011] Receiving a target message sent by the terminal through a target interface;

[0012] The target message is identified through a protocol port to obtain a target protocol message.

[0013] In this embodiment, the target protocol message is extracted to provide a stable and reliable data basis for the subsequent establishment of tunnel nodes and association relationships based on the target protocol message. The efficiency of establishing association relationships can also be improved. The message is identified through the protocol port to improve the efficiency of obtaining the target protocol message.

[0014] In one of the embodiments, the target protocol identifier includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier is a target protocol identifier assigned by the terminal on the base station side, and the second target protocol identifier is a target protocol identifier assigned by the terminal on the core network element side; the search in the node list based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node includes:

[0015] Perform hash processing based on the base station address, the core network element address, the first target protocol identifier and the address version to obtain a first hash value; perform a search in the node list based on the first hash value to obtain a first tunnel node on the base station side; and / or,

[0016] Hash processing is performed based on the base station address, the core network element address, the second target protocol identifier and the address version to obtain a second hash value, and in the node list, a search is performed based on the second hash value to obtain a second tunnel node on the core network element side.

[0017] In this embodiment, the characteristics of the ngap protocol can be obtained, and the control plane session connection between the base station and the core network element can be established through the tunnel information on the base station side and the tunnel information on the core network element side. Through the unique target protocol identifier of the tunnel node, a unique tunnel node can also be established when the addresses or identifiers of different devices are repeated, thereby improving the accuracy of terminal session association.

[0018] In one of the embodiments, the target tunnel node is a first tunnel node, and the first tunnel node is a tunnel node at a base station end or a tunnel node at a core network element end; and obtaining an association relationship between the target tunnel node and a terminal session corresponding to the target tunnel node includes:

[0019] If the terminal session does not exist on the first tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node and the terminal session;

[0020] If a terminal session exists on the first tunnel node, the association relationship between the first tunnel node and the terminal session is maintained, and the terminal session is output.

[0021] In this embodiment, by determining whether there is a terminal session on the tunnel node at the base station end, the tunnel node at the core network element end, and each tunnel node, an association relationship is established or maintained, so that different terminal sessions corresponding to different terminal devices can be distinguished.

[0022] In one of the embodiments, the target tunnel node is a first tunnel node and a second tunnel node; and obtaining an association relationship between the target tunnel node and a terminal session corresponding to the target tunnel node includes:

[0023] If no terminal session exists on either the first tunnel node or the second tunnel node, applying for a terminal session and establishing an association relationship between the first tunnel node, the second tunnel node and the terminal session;

[0024] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are consistent, maintaining the association relationship between the first tunnel node, the second tunnel node and the terminal sessions;

[0025] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are inconsistent, tunnel information carried by the terminal sessions is updated to obtain an association relationship.

[0026] In this embodiment, by determining whether there is a terminal session on the tunnel node at the base station end, the tunnel node at the core network element end, and each tunnel node, an association relationship is established or maintained, so that different terminal sessions corresponding to different terminal devices can be distinguished.

[0027] In one embodiment, the method further comprises:

[0028] After performing the session switching, establishing a first terminal session based on the received resource allocation data packet, and calculating first association data of the first terminal session;

[0029] Find the second association data matching the first association data, determine the second terminal session before the switch corresponding to the second association data, and obtain the session context data saved by the second terminal session.

[0030] In this embodiment, the ue-session is established using information such as tunnels at both ends of the base station and the AMF. Combined with the consistency context field in the switching preparation process and the switching resource allocation process, it can be ensured that when HandOver switching occurs in the user signaling in the N1 / N2 interface, that is, after the physical IP at both ends of the N1 / N2 interface has changed, the signaling traffic of the terminal has the same source and destination.

[0031] In a second aspect, the present application further provides a session association device, including:

[0032] A first acquisition module, used for acquiring a target protocol message in a target interface;

[0033] A first parsing module is used to parse the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0034] The first search module is used to search in the node list based on the base station address, core network element address, target protocol identifier and address version to obtain the target tunnel node and the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0036] Get the target protocol message in the target interface;

[0037] Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0038] In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0040] Get the target protocol message in the target interface;

[0041] Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0042] In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0043] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0044] Get the target protocol message in the target interface;

[0045] Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0046] In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0047] The above-mentioned session association method, device, computer equipment, computer-readable storage medium and computer program product, wherein the method includes: obtaining a target protocol message in a target interface; parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier assigned by the terminal on the base station side and / or a target protocol identifier assigned by the terminal on the core network element side; searching in a node list based on the base station address, the core network element address, the target protocol identifier and the address version to obtain a target tunnel node, and obtaining an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0048] By adopting this method, sessions can be managed based on the tunnel information obtained between the base station and the core network element, and each user session can be distinguished and managed based on the target protocol identifier and communication address corresponding to each user session to avoid duplication. By managing user sessions through the target tunnel node, the accuracy of session management for the N1 / N2 interface can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A flowchart of a session association method in one embodiment;

[0051] Figure 2 A schematic diagram of a process for obtaining a target protocol message in an embodiment;

[0052] Figure 3 A schematic diagram of a flow chart of steps for obtaining a tunnel node in an embodiment;

[0053] Figure 4 A schematic diagram of a flow chart of outputting a terminal session step in an embodiment;

[0054] Figure 5 A schematic diagram of a flow chart of a step of obtaining an association relationship in an embodiment;

[0055] Figure 6 A flowchart of a search step in an embodiment;

[0056] Figure 7 A flowchart of a session association method in another embodiment;

[0057] Figure 8 is a structural block diagram of a session association device in one embodiment;

[0058] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] In an exemplary embodiment, the session association method provided by the embodiment of the present application is as follows: Figure 1 As shown, a session association method is provided, which is described by taking an application device of the method as an example, including:

[0061] Step 102, obtaining the target protocol message in the target interface.

[0062] Among them, the target interface can be an interface in the core network, for example, it can be the N1 / N2 interface in the core network. The target interface can receive messages sent by the terminal device, which can include at least target protocol messages and can also include multiple other types of messages; the target protocol message can be a message of a preset type protocol, the preset type protocol can be the ngap protocol, and the corresponding target protocol message can be an ngap protocol message.

[0063] Specifically, the target interface can receive a message sent by an external device, and the device can perform message identification in the received message, filter based on the type of the identified message, and obtain the target protocol message. In one example, the device can identify the message received by the N1 / N2 interface in the core network and extract the ngap protocol message. In another example, the device can identify the various types of messages received by the N1 / N2 interface and obtain the ngap protocol message.

[0064] Step 104, parse the target protocol message to obtain the base station address, core network element address, target protocol identifier and address version.

[0065] Among them, the target protocol identifier includes the target protocol identifier assigned by the terminal on the base station side and / or the target protocol identifier assigned by the terminal on the core network element side. The base station address can be a base station communication address, for example, it can be the IP address of a 5GC base station (RAN); the core network element address can be the IP address of a 5G core network element; the address version can be a transport layer address version, the transport layer address can be a transport layer IP address, the address version can be a transport layer IP version, the transport layer IP version can be IPv4, or it can be IPv6, and the specific situation of the specific transport layer IP can be determined based on the received message; the base station can be a RAN base station, and the 5G core network element can be an AMF. In an example, the target protocol identifier can include one or more of a target protocol identifier assigned by the terminal device at the base station end and a target protocol identifier assigned by the terminal device at the AMF end. The target protocol can be an ngap protocol. In a corresponding specific example, the target protocol identifier assigned by the terminal device at the base station end can be the ngap protocol ID assigned by the UE at the base station end, and the target protocol identifier assigned by the terminal at the core network element side can be the ngap protocol ID assigned by the UE at the AMF end.

[0066] Specifically, the device parses the target protocol message to obtain the base station address, core network element address, target protocol identifier and address version in the target protocol message. Optionally, the result obtained by the device after parsing the target protocol message can be the IP address of the 5GC base station (RAN), the IP address of the AMF and the version of the transport layer IP. It can also obtain the ngap protocol ID assigned by the terminal device at the base station end and / or the ngap protocol ID assigned by the terminal device at the AMF end.

[0067] Step 106, searching in the node list based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node and the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0068] Among them, the node list can be a node hash table, which contains multiple nodes and hash values ​​corresponding to each node. Each node can be a tunnel node, for example, it can be a tunnel node at the base station end and a tunnel node at the core network element end. The node list can be a tunnel node hash table, etc.; the target tunnel node can be a tunnel node that matches the hash result of the base station address, the core network element address, the target protocol identifier and the address version; the association relationship between the target tunnel node and the session on the target tunnel node can be a pointing relationship between the target tunnel node and the terminal session, for example, the target tunnel node can point to the terminal session; the association relationship between the target tunnel node and the terminal session can be a one-to-one mapping relationship between the target tunnel node and the terminal session, and the mapping relationship is determined to be the target association relationship between the tunnel node and the session; the terminal session can be a signaling control plane session connection established between the user's tunnel node at the base station (RAN) end and the tunnel node at the AMF end on the N1 / N2 interface, and the control plane session connection is used to manage the N1 / N2 interface control plane signaling message between the user UE's tunnel node at the base station end and the core network element (AMF) tunnel node.

[0069] Specifically, the device can perform hash processing on the base station address, the core network element address, the target protocol identifier, and the address version through a hash algorithm, calculate a hash value, and query based on the hash value in a pre-configured node list to obtain a query result, and determine the node that matches the hash value based on the query result, determine that the node is the target tunnel node, and the device can obtain the association relationship between the target tunnel node and the terminal session. In one example, the device can query the target tunnel node in the node list, and obtain the association relationship between the target tunnel node and the terminal session based on the queried target tunnel node; in another example, the device may not query a matching node in the node list, so that the device can apply for memory to create the target tunnel node based on the calculated hash value, and add the created target tunnel node to the pre-configured node hash table, and obtain the association relationship between the target tunnel node and the terminal session based on the created target tunnel node.

[0070] In this embodiment, the target protocol message in the target interface is obtained; the target protocol message is parsed to obtain the base station address, the core network element address, the target protocol identifier and the address version, the target protocol identifier includes the target protocol identifier assigned by the terminal on the base station side and / or the target protocol identifier assigned by the terminal on the core network element side; in the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node is obtained. By adopting this method, the session can be managed based on the tunnel information obtained from the base station end and the core network element end, and each user session can be distinguished and managed based on the target protocol identifier and the communication address corresponding to each user session to avoid duplication. By managing the user session through the target tunnel node, the accuracy of the session management for the N1 / N2 interface can be improved.

[0071] In an exemplary embodiment, Figure 2 As shown, the specific implementation process of the step "obtaining the target protocol message in the target interface" may include:

[0072] Step 202: Receive a target message sent by the terminal through the target interface.

[0073] Specifically, the target interface may be an interface in the core network, such as an N1 / N2 interface in the core network. The target interface may receive messages sent by the terminal device, and the received target messages may include messages of various types of protocols.

[0074] Step 204: Identify the target message through the protocol port to obtain the target protocol message.

[0075] Among them, the protocol port is used to identify the message received by the target interface, specifically, it can identify the target protocol message, the protocol port can be port 38412; the target protocol message can be a message of a preset type protocol, the preset type protocol can be the ngap protocol, and the target protocol message can be an ngap protocol message.

[0076] Specifically, after the target interface receives the message sent by the terminal device, the network device can identify the message received by the target interface through the protocol port and extract the target protocol message. In one example, the N1 / N2 interface can receive the message sent by the terminal device, and identify the received message through the protocol port 38412, identify the ngap protocol message in the N1 / N2 interface, and obtain the target protocol message.

[0077] In this embodiment, the target protocol message is extracted to provide a stable and reliable data basis for the subsequent establishment of tunnel nodes and association relationships based on the target protocol message. The efficiency of establishing association relationships can also be improved. The message is identified through the protocol port to improve the efficiency of obtaining the target protocol message.

[0078] In an exemplary embodiment, the target protocol identifier includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier is a target protocol identifier assigned by the terminal on the base station side, and the second target protocol identifier is a target protocol identifier assigned by the terminal on the core network element side. Specifically, the first target protocol identifier is a target protocol identifier assigned by the terminal on the base station side, and the second target protocol identifier is a target protocol identifier assigned by the terminal on the core network element side. The first target protocol identifier can be an ngap protocol ID assigned by the terminal device on the base station side, and the second target protocol identifier can be an ngap protocol ID assigned by the terminal device on the AMF side. The first target protocol identifier corresponds one-to-one to the tunnel node on the base station side, and the second target protocol identifier corresponds one-to-one to the tunnel node on the core network element side.

[0079] In one example, the target protocol identifier parsed from the target protocol message may include a first target protocol identifier, that is, the ngap protocol ID assigned by the terminal device at the base station end; in another example, the target protocol identifier parsed from the target protocol message may include a second target protocol identifier, that is, the ngap protocol ID assigned by the terminal device at the AMF end; in another example, the target protocol identifier parsed from the target protocol message may include a first target protocol identifier and a second target protocol identifier, that is, the ngap protocol message contains the ngap protocol ID assigned by the terminal device at the base station end and the ngap protocol ID assigned by the terminal device at the AMF end.

[0080] Accordingly, if Figure 3As shown, the specific implementation process of the step of "searching in the node list based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node" may include:

[0081] Step 302: Perform hash processing based on the base station address, the core network element address, the first target protocol identifier, and the address version to obtain a first hash value. In the node list, perform a search based on the first hash value to obtain a first tunnel node on the base station side. And / or,

[0082] Among them, the base station address can be the base station communication address, for example, it can be the IP address of the 5G base station (RAN); the core network element address can be the communication address of the 5G core network element, for example, the 5G core network element can be AMF, and the core network element address can be the IP address of AMF; the first hash value can be the key value obtained by hashing the base station address, the core network element address, the target protocol identifier and the address version through a hash algorithm. The address version can be the version of the transport layer IP, and the version of the transport layer IP can be IPv4 or IPv6. The first target protocol identifier can be the ngap protocol ID assigned by the terminal device at the base station end. The first hash value can be an integer, which is a unique identifier. The node list is a node hash table.

[0083] Specifically, the device can perform hash calculation on the base station address, the core network element address, the first target protocol identifier and the address version through a preset hash algorithm to obtain a first hash value. The device can query in the node list based on the calculated first hash value to obtain the tunnel node corresponding to the first hash value, that is, the first tunnel node on the base station side. The node hash table contains multiple nodes and hash values ​​corresponding to each node; the specific process of obtaining the tunnel node can be that the device can query in the node hash table based on the first hash value, and if a hash value consistent with the first hash value is queried, the node corresponding to the hash value can be determined as the first tunnel node on the base station side; if the device does not query a hash value consistent with the first hash value, the device can apply for memory to create a tunnel node, and add the tunnel node and the hash value corresponding to the tunnel node to the node hash table, and determine the created tunnel node as the first tunnel node.

[0084] Step 304, perform hash processing based on the base station address, the core network element address, the second target protocol identifier and the address version to obtain a second hash value, and perform a search in the node list based on the second hash value to obtain the second tunnel node on the core network element side.

[0085] Among them, the core network element address can be the IP address of AMF; the second hash value can be the key value obtained by hashing the base station address, the core network element address, the second target protocol identifier and the address version through a hash algorithm. The second target protocol identifier can be the ngap protocol ID assigned by the terminal device on the AMF side. The second hash value can be an integer, which is a unique identifier.

[0086] Specifically, the device can perform hash calculation on the base station address, the core network element address, the second target protocol identifier and the address version through a preset hash algorithm to obtain a second hash value. The device can query in the node list based on the calculated second hash value to obtain the tunnel node corresponding to the second hash value, that is, the second tunnel node on the AMF side. The node hash table contains multiple nodes and hash values ​​corresponding to each node; the specific process of obtaining the tunnel node can be that the device can query in the node hash table based on the second hash value. If a hash value consistent with the second hash value is queried, the node corresponding to the hash value can be determined as the second tunnel node on the base station side; if the device does not query a hash value consistent with the second hash value, the device can apply for memory to create a tunnel node, and add the tunnel node and the hash value corresponding to the tunnel node to the node hash table, and determine the created tunnel node as the second tunnel node.

[0087] It should be noted that the first tunnel node on the base station side can be ue-ran-node, the ngap protocol ID assigned by the UE on the base station side, and the second tunnel node on the AMF side can be ue-amf-node, the ngap protocol ID assigned by the UE on the AMF side. The present disclosure does not limit the order of execution of step 302 and step 304. Step 302 and step 304 can be executed in sequence, or step 304 and step 302 can be executed in sequence, or only step 302 or only step 304 can be executed. The specific execution order and execution content can be determined based on the specific content included in the target protocol identifier.

[0088] In this embodiment, the characteristics of the ngap protocol can be obtained, and the control plane session connection between the base station and the core network element can be established through the tunnel information on the base station side and the tunnel information on the core network element side. Through the unique target protocol identifier of the tunnel node, a unique tunnel node can also be established when the addresses or identifiers of different devices are repeated, thereby improving the accuracy of terminal session association.

[0089] In an exemplary embodiment, the target tunnel node is a first tunnel node, and the first tunnel node is a tunnel node at the base station end or a tunnel node at the core network element end. Specifically, the target tunnel node may include only the first tunnel node. In one example, the first tunnel node may be a target tunnel node at the base station end, and the corresponding second tunnel node is a target tunnel node at the core network element end; in another example, the first tunnel node may be a target tunnel node at the core network element end, and the corresponding second tunnel node may be a target tunnel node at the base station end.

[0090] like Figure 4 As shown, the specific implementation process of the step of "obtaining the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node" may include:

[0091] Step 402: If the terminal session does not exist on the first tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node and the terminal session.

[0092] Specifically, if the device determines that only the first tunnel node exists, but there is no terminal session on the first tunnel node, the device can apply for a terminal session and point the terminal session to the first tunnel node, and the first tunnel node also points to the terminal session, so as to obtain the association relationship between the terminal session and the first tunnel node. In one example, if the tunnel node on the base station side is queried, and there is no ue-session (terminal session) on the tunnel node on the base station side, the device can apply for a ue-session and point the ue-session to the tunnel node on the base station side, and the tunnel node on the base station side also points to the ue-session, so as to obtain the association relationship between the tunnel node on the base station side and the ue-session. In another example, if the tunnel node on the AMF side is queried, and there is no ue-session (terminal session) on the tunnel node on the AMF side, the device can apply for a ue-session and point the ue-session to the tunnel node on the AMF side, and the tunnel node on the AMF side also points to the ue-session, so as to obtain the association relationship between the tunnel node on the AMF side and the ue-session.

[0093] In a specific example, if the device determines that there is only a ue-ran-node and no ue-session, the device can apply for a ue-session and point the ue-session to the tunnel node, that is, the ue-ran-node node points to the ue-session; if the device determines that there is only a ue-amf-node and no ue-session, the device can apply for a ue-session and point the ue-session to the tunnel node, and the ue-amf-node node points to the session.

[0094] Step 404: If a terminal session exists on the first tunnel node, the association relationship between the first tunnel node and the terminal session is maintained, and the terminal session is output.

[0095] Specifically, if the device determines that only the first tunnel node exists and a terminal session exists on the first tunnel node, the device may maintain an association relationship between the first tunnel node and the terminal session on the first tunnel node, and output the terminal session.

[0096] In a specific example, if the device determines that there is only a ue-ran-node and a ue-session exists for the ue-ran-node, the device can return to the ue-session and end the process; if the device determines that there is only a ue-amf-node and a ue-session exists for the ue-amf-node, the device can return to the ue-session and end the process.

[0097] In this embodiment, by determining whether there is a terminal session on the tunnel node at the base station end, the tunnel node at the core network element end, and each tunnel node, an association relationship is established or maintained, so that different terminal sessions corresponding to different terminal devices can be distinguished.

[0098] In an exemplary embodiment, the target tunnel node is a first tunnel node and a second tunnel node. Specifically, in one example, the first tunnel node may be a target tunnel node at a base station end, and the second tunnel node may be a target tunnel node at a core network element end; in another example, the first tunnel node may be a target tunnel node at a core network element end, and the second tunnel node may be a target tunnel node at a base station end.

[0099] like Figure 5 As shown, the specific implementation process of the step of "obtaining the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node" may include:

[0100] Step 502: If no terminal session exists on the first tunnel node and the second tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node, the second tunnel node and the terminal session.

[0101] Specifically, if the device determines that there is a first target protocol identifier and a second target protocol identifier, that is, the device determines that there is a first tunnel node and a second tunnel node, and determines that there is no terminal session on the first tunnel node and there is no terminal session on the second tunnel node, then the device can apply for a ue-session and point the ue-session to the tunnel node on the base station end and the tunnel node on the core network element end. The tunnel node on the base station end also points to the ue-session, and the tunnel node on the core network element end also points to the terminal session, thereby obtaining the association relationship between the tunnel node on the base station end, the tunnel node on the core network element and the ue-session.

[0102] In an example, if the device determines that there are ue-ran-node and ue-amf-node but no ue-session, the device can apply for a ue-session and point the ue-session to the ue-ran-node and ue-amf-node, and the ue-ran-node and ue-amf-node also point to the ue-session.

[0103] Step 504: If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are consistent, then the association relationship between the first tunnel node, the second tunnel node and the terminal sessions is maintained.

[0104] The existence of consistent terminal sessions indicates that the session pointed to by the first tunnel node and the session pointed to by the second tunnel node are the same terminal session.

[0105] Specifically, if the device determines that there is a first target protocol identifier and a second target protocol identifier, that is, the terminal can determine that there is a first tunnel node and a second tunnel node, and there is a terminal session on the first tunnel node and a terminal session on the second tunnel node, and the terminal session on the first tunnel node and the terminal session on the second tunnel node are the same terminal session, then the device can maintain the association relationship between the first tunnel node, the second tunnel node and the terminal session, and output the terminal session.

[0106] In an example, if the device determines that there is a ue-ran-node and a ue-amf-node, a ue-session exists on the ue-ran-node, a ue-session exists on the ue-amf-node, and the existing ue-sessions are consistent, it returns the ue-session and ends the process.

[0107] Step 506: If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are inconsistent, an update is performed based on the tunnel information carried by the terminal sessions to obtain an association relationship.

[0108] The inconsistency of the existing terminal sessions indicates that the session pointed to by the first tunnel node and the session pointed to by the second tunnel node are not the same terminal session.

[0109] Specifically, if the device determines that there are a first target protocol identifier and a second target protocol identifier, that is, the terminal can determine that there are a first tunnel node and a second tunnel node, and there is a terminal session on the first tunnel node and a terminal session on the second tunnel node, and the terminal session on the first tunnel node and the terminal session on the second tunnel node are not the same terminal session, then the device can determine the tunnel information on the terminal session, which represents the tunnel node to which the session currently points, and update it based on the tunnel node to which the terminal session currently points represented by the tunnel information, to obtain the pointing relationship between the updated session and the tunnel node, that is, to obtain the association relationship between the tunnel node and the terminal session.

[0110] In one example, the terminal can determine that there are a first tunnel node and a second tunnel node, and there is a first terminal session on the first tunnel node, there is a second terminal session on the second tunnel node, and the first terminal session and the second terminal session are not the same terminal session. Then, the device can obtain the tunnel node of the first terminal session and the tunnel information of the second terminal session respectively, determine the third tunnel node currently pointed to by the first terminal session based on the tunnel information of the first terminal session, and update the association relationship between the first tunnel node and the first terminal session to the association relationship between the third tunnel node and the first terminal session; determine the fourth tunnel node currently pointed to by the second terminal session based on the tunnel information of the second terminal session, and update the association relationship between the second tunnel node and the second terminal session to the association relationship between the fourth tunnel node and the second terminal session. The third tunnel node and the fourth tunnel node can be the same tunnel node or different tunnel nodes, which is not limited by the present disclosure and can be determined based on the actual application scenario.

[0111] In this embodiment, by determining whether there is a terminal session on the tunnel node at the base station end, the tunnel node at the core network element end, and each tunnel node, an association relationship is established or maintained, so that different terminal sessions corresponding to different terminal devices can be distinguished.

[0112] In an exemplary embodiment, Figure 6 As shown, the session association method also includes:

[0113] Step 602: after performing session switching, establishing a first terminal session based on the received resource allocation data packet, and calculating first association data of the first terminal session.

[0114] Among them, the session handover can be a HandOver handover in the N1 / N2 interface; the received resource allocation data packet can be a data packet in the handover resource allocation process, for example, it can be a handover request data packet in the handover resource allocation process (Handover Request packet in the Handover Resource Allocation process); the first associated data of the first terminal session can be the MD5 value of the target field in the handover request data packet; the target field can be, for example, the SourceToTarget-Transparent Container field, that is, the source to target transparent container field. Whenever a cellular user passes from one base station to another, the network automatically switches to another respective base station and maintains coverage responsibility. This behavior is called handover.

[0115] Specifically, after performing the session switching, the device can parse the data packet in the switching resource allocation process received by the N1 / N2 interface, and establish the terminal session after the switching, that is, the first terminal session, based on the parsed data and the session association method described in the above embodiment. In this way, the device can obtain the target field in the switching request data packet in the switching resource allocation process, process the target field, obtain the MD5 corresponding to the target field, and determine the MD5 value as the first association data of the first terminal session.

[0116] Step 604: searching for second association data matching the first association data, determining a second terminal session before switching corresponding to the second association data, and obtaining session context data saved by the second terminal session.

[0117] The second association data matching the first association data may be second association data consistent with the first association data. The second terminal session may be a session before the switch.

[0118] Specifically, the device can query based on the first association data of the first terminal session to obtain second association data consistent with the first association data, and determine the second terminal session corresponding to the second association data as the session before the switching of the first terminal session, and obtain the context information saved on the second terminal session, and synchronize the saved context information to the first terminal session.

[0119] The second terminal session may be before the Handover switching. The device may parse the HandoverPreparation process data packet in the N1 / N2 interface and establish a terminal session before the switching, i.e., the second terminal session, according to the session association method described in the above embodiment. The device may also parse the target field, i.e., the SourceToTarget-TransparentContainer field, from the switching requirement data packet in the switching preparation process (HandoverRequired packet of the HandoverPreparation process), perform processing based on the content of the target field, obtain the MD5 value of the target field, and determine that the MD5 is the second associated data of the second terminal session.

[0120] In this embodiment, the ue-session is established using information such as tunnels at both ends of the base station and the AMF. Combined with the consistency context field in the switching preparation process and the switching resource allocation process, it can be ensured that when HandOver switching occurs in the user signaling in the N1 / N2 interface, that is, after the physical IP at both ends of the N1 / N2 interface has changed, the signaling traffic of the terminal has the same source and destination.

[0121] In the following, in conjunction with a specific embodiment, a specific implementation process of the above session association method may include:

[0122] In the field of mobile data communications, it is necessary to implement the establishment and management of ue-sessions under the N1 / N2 interface, as well as the correct association backtracking after the ue-session HandOver switching occurs.

[0123] The packet session flow establishment technology in the related technology is to establish and manage the session flow based on the quintuple as the unique identifier of the session. Since there are fewer network elements in the mobile core network, the number is limited, and the device IP and protocol port are fixed (for example: the N1 / N2 interface uses the ngap protocol, and the source and destination ports can be fixed to 38412), the signaling traffic of different users on the N1 / N2 interface may use the same quintuple, and it is impossible to distinguish the signaling sessions of different UE users through the traditional flow establishment mode, resulting in the inability to correctly manage the control plane signaling traffic of different users. In addition, there are many HandOver switching scenarios in the 5G core network caused by the user's location movement and the change of network element equipment in the core network, and after the switch occurs, the subsequent signaling session will not carry the important information when the user attached before, so it is necessary to ensure that the sessions before and after the switch have the same source and destination to avoid the inability to confirm the ownership of the new signaling process after the switch.

[0124] The session association method provided in this embodiment can obtain the session flow of the mobile user on the N1 / N2 interface by identifying and parsing the data message of the core network control plane N1 / N2 interface, and use the entity method at both ends of the tunnel to establish the flow key, so as to realize the same source and destination of the N1 / N2 interface signaling session flow after HandOver switching, thereby ensuring the consistency of the signaling process of the UE on the N1 / N2 interface and continuous management analysis.

[0125] The session association method provided in this embodiment can establish and manage a session and ensure the correctness of the session association when only the ue_ngap_id of one end exists in a signaling flow packet on the N1 / N2 interface. The session association method provided in this embodiment can associate with the ue-session before the handover when the signaling session undergoes HandOver switching and the endpoint identifiers and IPs of both ends change, thereby ensuring the continuity and consistency of the signaling of subsequent users on the N1 / N2 interface.

[0126] like Figure 7 As shown, it can be a specific implementation process of a session association method, or it can be a specific implementation process of N1 / N2 interface ue-session establishment management:

[0127] Step 1, message reception, ngap protocol judgment is performed through port 38412, specifically, ngap protocol messages are identified through protocol port 38412.

[0128] Step 2: Parse the ngap message on the N1 / N2 interface.

[0129] Step 3. Get ran-ip, amf-ip, ran-ue-ngap-id, amf-ue-ngap-id, and ip_version.

[0130] Step 4, determine whether both ran-ue-ngap-id and amf-ue-ngap-id exist.

[0131] a. If only ran-ue-ngap-id exists, use ran-ip, amf-ip, ran-ue-ngap-id, and ip_version as keys to search the tunnel node hash table and obtain the tunnel node ue-ran-node on the base station side.

[0132] b. If only amf-ue-ngap-id exists, use ran-ip, amf-ip, amf-ue-ngap-id, and ip_version as keys to search the tunnel node hash table and obtain the tunnel node ue-amf-node on the amf side.

[0133] c. If both ran-ue-ngap-id and amf-ue-ngap-id exist, execute steps 4.a and 4.b respectively to obtain the tunnel node ue-ran-node on the base station side and the tunnel node ue-amf-node on the amf side.

[0134] Step 5, search the node hash table; specifically, if it does not exist, apply for memory to create the corresponding tunnel node and store it in the hash table; if it exists, obtain the tunnel node, and based on the obtained tunnel node, update the association relationship between the tunnel node and the ue-session.

[0135] Step 6, determine whether there is a ue-session on each node; if there is a ue-session, determine the session tunnel information; update the tunnel nodes pointed to by both ends of the session; if there is no ue-session, apply for memory to establish a ue-session, update the tunnel nodes pointed to by both ends of the session, each tunnel node points to the ue-session, obtain the ue-session, and end the process.

[0136] Specifically, the process of updating the tunnel node and ue-session pointing relationship may include:

[0137] a. If there is only ue-ran-node and no ue-session exists on ue-ran-node, then apply for ue-session and point the ue-session to the tunnel node, and the ue-ran-node points to the ue-session.

[0138] b. If only ue-session exists on ue-ran-node and ue-ran-node, return to ue-session and end the process.

[0139] c. If there is only ue-amf-node and ue-amf-node has no ue-session, then apply for ue-session and point it to the tunnel node, and the ue-amf-node points to the ue-amf-node.

[0140] d. If only ue-amf-node and ue-amf-node have ue-session, return to ue-session and end the process;

[0141] e. If there are ue-ran-node and ue-amf-node, or ue-ran-node and ue-amf-node do not have ue-session, then apply for ue-session and point to ue-ran-node and ue-amf-node. ue-ran-node and ue-amf-node also point to ue-session.

[0142] f. If there is a ue-ran-node and a ue-amf-node, and there is a ue-session and they are consistent (the tunnel nodes at both ends point to the same ue-session), then return to the ue-session and end the process;

[0143] g. If there are ue-ran-node and ue-amf-node, and there are ue-sessions that are inconsistent: determine the tunnel node information on the ue-session and update it (the old node pointed to by the session needs to be deleted), determine the session information on the tunnel node and update the pointing relationship, and obtain the association relationship between the updated tunnel node and the ue-session.

[0144] Step 7, return to the ue-session termination process in step 6.

[0145] The following embodiment may describe the specific implementation process of HandOver switching N1 / N2 interface session association: parsing of the Handover Preparation process data packet in the N1 / N2 interface, establishing the "ue-session-1" before the switching, that is, the second terminal session, according to the "N1 / N2 interface ue-session management method"; parsing the target field from the handover requirement (Handover Required) data packet of the handover preparation (Handover Preparation) process, the target field may be the SourceToTarget-Transparent Container field, and calculating the MD5 value of the target field; parsing of the Handover Resource Allocation process data packet in the N1 / N2 interface, establishing the "ue-session-2" after the switching, that is, the first terminal session, according to the "N1 / N2 interface ue-session management method"; and parsing the handover request from the handover resource allocation (HandoverResourceAllocation) process. The "SourceToTarget-TransparentContainer" field content is parsed from the "Request" packet and the MD5 value of the content is calculated; the "ue-session-2" after the switch is searched through the MD5 value to obtain the "ue-session-1" before the switch, and obtain the context information saved on the session, thereby ensuring that the user's session on the N1 / N2 interface has the same source and destination before and after the N2 switch occurs.

[0146] The session association method provided in this embodiment can be combined with the usage specifications of the ngap protocol on the 5G core network N1 / N2 interface, deeply explore the characteristics of the N1 / N2 interface based on the ngap protocol, obtain the tunnel information of the entities at both ends of the base station and AMF, establish a ue-session management mechanism, and realize fine-grained distinction between different terminal sessions.

[0147] The session association method provided in this embodiment can establish a base station tunnel node through ran-ue-ngap-id, ran IP address, amf IP address, and IP type, and establish an AMF tunnel node through amf-ue-ngap-id, amf IP address, ran IP address, and IP type, which is more accurate and avoids ue-session association errors caused by conflicts between different device IPs or ue-ngap-ids, thereby ensuring the accuracy of session association.

[0148] The session association method provided in this embodiment can also establish a ue-session through information such as tunnels at both ends of the base station and the AMF, and combine the consistency context "SourceToTarget-TransparentContainer" in the Handover Preparation and Handover Resource Allocation processes to solve the problem of the user's signaling traffic having the same source and destination after the physical IP at both ends of the N1 / N2 interface changes when HandOver switching occurs in the user signaling in the N1 / N2 interface; it can be implemented by using an x86 architecture server, which makes it easy for many x86 general-purpose server devices to support this function. On the basis of ensuring device performance and association rate, it adds a general usage scenario for the association management device, which can be more accurate, concise, efficient and universal.

[0149] The session association method provided in this embodiment uses the method of constructing session nodes by entities at both ends of the session respectively to manage the N1 / N2 interface session more accurately; when HandOver switching occurs to the UE (user) on the N1 / N2 interface, the consistency context "SourceToTarget-TransparentContainer" is searched to realize the same source and same destination technology of the "ue-session" before and after the switching, and the method of establishing a separate session by the tunnel entity can meet the data packet scenario where amf_ue_ngap_id and ran_ue_ngap_id exist at the same time or separately, so that the control plane signaling traffic of the UE (user) on the N1 / N2 interface is managed to the session; when the entities at both ends of the ue-session on the N1 / N2 interface change, the continuity consistency of the user's session on the N1 / N2 interface can be achieved; the above technical solution is implemented using an x86 architecture server, which better meets the versatility and ease of use of the technical solution.

[0150] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0151] Based on the same inventive concept, the embodiment of the present application also provides a session association device for implementing the above-mentioned session association method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more session association device embodiments provided below can refer to the limitations of the session association method above, and will not be repeated here.

[0152] In an exemplary embodiment, Figure 8 As shown, a session association device 800 is provided, including:

[0153] A first acquisition module 802, used to acquire a target protocol message in a target interface;

[0154] The first parsing module 804 is used to parse the target protocol message to obtain the base station address, the core network element address, the target protocol identifier and the address version, where the target protocol identifier includes the target protocol identifier allocated by the terminal on the base station side and / or the target protocol identifier allocated by the terminal on the core network element side;

[0155] The first search module 806 is used to search in the node list based on the base station address, core network element address, target protocol identifier and address version to obtain the target tunnel node and the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0156] In one embodiment, the first acquisition module is specifically used for:

[0157] Receiving a target message sent by the terminal through a target interface;

[0158] The target message is identified through a protocol port to obtain a target protocol message.

[0159] In one embodiment, the target protocol identifier includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier is a target protocol identifier allocated by the terminal on the base station side, and the second target protocol identifier is a target protocol identifier allocated by the terminal on the core network element side; the first search module is specifically used to:

[0160] Perform hash processing based on the base station address, the core network element address, the first target protocol identifier and the address version to obtain a first hash value; perform a search in the node list based on the first hash value to obtain a first tunnel node on the base station side; and / or,

[0161] Hash processing is performed based on the base station address, the core network element address, the second target protocol identifier and the address version to obtain a second hash value, and in the node list, a search is performed based on the second hash value to obtain a second tunnel node on the core network element side.

[0162] In one embodiment, the target tunnel node is a first tunnel node, and the first tunnel node is a tunnel node at a base station end or a tunnel node at a core network element end; and the first search module is specifically used to:

[0163] If the terminal session does not exist on the first tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node and the terminal session;

[0164] If a terminal session exists on the first tunnel node, the association relationship between the first tunnel node and the terminal session is maintained, and the terminal session is output.

[0165] In one embodiment, the target tunnel node is a first tunnel node and a second tunnel node; and the first search module is specifically configured to:

[0166] If no terminal session exists on either the first tunnel node or the second tunnel node, applying for a terminal session and establishing an association relationship between the first tunnel node, the second tunnel node and the terminal session;

[0167] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are consistent, maintaining the association relationship between the first tunnel node, the second tunnel node and the terminal sessions;

[0168] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are inconsistent, tunnel information carried by the terminal sessions is updated to obtain an association relationship.

[0169] In one embodiment, the device further comprises:

[0170] An establishing module, configured to establish a first terminal session based on the received resource allocation data packet after performing the session switching, and calculate first association data of the first terminal session;

[0171] The second search module is used to search for second association data matching the first association data, determine the second terminal session before switching corresponding to the second association data, and obtain the session context data saved by the second terminal session.

[0172] Each module in the above session association device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0173] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store session data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a session association method is implemented.

[0174] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0175] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0176] Get the target protocol message in the target interface;

[0177] Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side;

[0178] In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

[0179] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0180] Receiving a target message sent by the terminal through a target interface;

[0181] The target message is identified through a protocol port to obtain a target protocol message.

[0182] In one embodiment, the target protocol identifier includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier is a target protocol identifier assigned by the terminal on the base station side, and the second target protocol identifier is a target protocol identifier assigned by the terminal on the core network element side; when the processor executes the computer program, the following steps are also implemented:

[0183] Perform hash processing based on the base station address, the core network element address, the first target protocol identifier and the address version to obtain a first hash value; perform a search in the node list based on the first hash value to obtain a first tunnel node on the base station side; and / or,

[0184] Hash processing is performed based on the base station address, the core network element address, the second target protocol identifier and the address version to obtain a second hash value, and in the node list, a search is performed based on the second hash value to obtain a second tunnel node on the core network element side.

[0185] In one of the embodiments, the target tunnel node is a first tunnel node, and the first tunnel node is a tunnel node at a base station end or a tunnel node at a core network element end; when the processor executes the computer program, the following steps are further implemented:

[0186] If the terminal session does not exist on the first tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node and the terminal session;

[0187] If a terminal session exists on the first tunnel node, the association relationship between the first tunnel node and the terminal session is maintained, and the terminal session is output.

[0188] In one embodiment, the target tunnel node is a first tunnel node and a second tunnel node; when the processor executes the computer program, the following steps are also implemented:

[0189] If no terminal session exists on either the first tunnel node or the second tunnel node, applying for a terminal session and establishing an association relationship between the first tunnel node, the second tunnel node and the terminal session;

[0190] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are consistent, maintaining the association relationship between the first tunnel node, the second tunnel node and the terminal sessions;

[0191] If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are inconsistent, tunnel information carried by the terminal sessions is updated to obtain an association relationship.

[0192] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0193] After performing the session switching, establishing a first terminal session based on the received resource allocation data packet, and calculating first association data of the first terminal session;

[0194] Find the second association data matching the first association data, determine the second terminal session before the switch corresponding to the second association data, and obtain the session context data saved by the second terminal session.

[0195] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above embodiments are implemented.

[0196] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the above embodiments when executed by a processor.

[0197] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0198] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0199] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0200] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A session association method, characterized in that: The method comprises: Get the target protocol message in the target interface; Parsing the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side; In the node list, a search is performed based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node, and to obtain an association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

2. The method according to claim 1, characterized in that: The step of obtaining the target protocol message in the target interface includes: Receiving a target message sent by the terminal through a target interface; The target message is identified through a protocol port to obtain a target protocol message.

3. The method according to claim 1, characterized in that The target protocol identifier includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier is a target protocol identifier allocated by the terminal at the base station side, and the second target protocol identifier is a target protocol identifier allocated by the terminal at the core network element side; The searching in the node list based on the base station address, the core network element address, the target protocol identifier and the address version to obtain the target tunnel node includes: Perform hash processing based on the base station address, the core network element address, the first target protocol identifier and the address version to obtain a first hash value; perform a search in the node list based on the first hash value to obtain a first tunnel node on the base station side; and / or, Hash processing is performed based on the base station address, the core network element address, the second target protocol identifier and the address version to obtain a second hash value, and in the node list, a search is performed based on the second hash value to obtain a second tunnel node on the core network element side.

4. The method according to claim 1, characterized in that: The target tunnel node is a first tunnel node, and the first tunnel node is a tunnel node at a base station end or a tunnel node at a core network element end; The obtaining of the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node includes: If the terminal session does not exist on the first tunnel node, apply for a terminal session and establish an association relationship between the first tunnel node and the terminal session; If a terminal session exists on the first tunnel node, the association relationship between the first tunnel node and the terminal session is maintained, and the terminal session is output.

5. The method according to claim 1, characterized in that The target tunnel node is a first tunnel node and a second tunnel node; The obtaining of the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node includes: If no terminal session exists on either the first tunnel node or the second tunnel node, applying for a terminal session and establishing an association relationship between the first tunnel node, the second tunnel node and the terminal session; If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are consistent, maintaining the association relationship between the first tunnel node, the second tunnel node and the terminal sessions; If terminal sessions exist on both the first tunnel node and the second tunnel node, and the existing terminal sessions are inconsistent, tunnel information carried by the terminal sessions is updated to obtain an association relationship.

6. The method according to claim 1, characterized in that The method further comprises: After performing the session switching, establishing a first terminal session based on the received resource allocation data packet, and calculating first association data of the first terminal session; Find the second association data matching the first association data, determine the second terminal session before the switch corresponding to the second association data, and obtain the session context data saved by the second terminal session.

7. A session association device, characterized in that: The device comprises: A first acquisition module, used to acquire a target protocol message in a target interface; A first parsing module is used to parse the target protocol message to obtain a base station address, a core network element address, a target protocol identifier and an address version, wherein the target protocol identifier includes a target protocol identifier allocated by the terminal on the base station side and / or a target protocol identifier allocated by the terminal on the core network element side; The first search module is used to search in the node list based on the base station address, core network element address, target protocol identifier and address version to obtain the target tunnel node and the association relationship between the target tunnel node and the terminal session corresponding to the target tunnel node.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.