Session association method and device, computer equipment, readable storage medium and program product
By parsing protocol messages to establish tunnel nodes and association relationships based on base station and network element addresses, the method addresses the inefficiencies in LTE S1MME interface session management, ensuring accurate and efficient session handling.
Patent Information
- Application Number
- CN202411274075.9
- 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
The existing LTE S1MME interface faces challenges in efficiently managing user signaling sessions due to the limitations of network elements, fixed IP addresses, and ports, leading to conflicts in session identifiers and low management efficiency.
A method that parses target protocol messages to obtain base station and network element addresses, along with protocol identifiers, to establish tunnel nodes and association relationships, ensuring unique identifiers and avoiding redundant resource consumption.
This approach enhances session management efficiency by ensuring consistency and continuity, reducing resource waste, and improving accuracy in managing signaling sessions.
Smart Images

Figure CN119071942A_ABST
Abstract
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] With the development of mobile data communication technology, a technology for user signaling session management based on the LTE (Long Term Evolution) S1MME (S1 Mobility Management Entity) interface has emerged. The LTE S1MME interface receives control signaling sessions of multiple terminal users. Therefore, it is necessary to distinguish the signaling of different terminal users in the LTE S1MME interface to manage user signaling.
[0003] In traditional technology, session management is generally performed by using a five-tuple as a unique identifier for the session, for example, for session establishment, etc. However, the number of network elements in the LTE core network is limited, and the IP addresses and ports of the network elements are also fixed and restricted; therefore, the five-tuple method cannot generate a unique identifier for each session, and to distinguish each session, there will be conflicts in session identifiers, resulting in low session management efficiency. 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 session management efficiency in response to 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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side;
[0008] Based on the base station address, the network element address, the target protocol identifier and the address version, a target tunnel node is obtained, and a target association relationship between the target tunnel node and the session corresponding to the target protocol message is established.
[0009] In this embodiment, the target protocol message can be parsed to obtain the target protocol identifier, and a tunnel node can be created based on the target protocol identifier, and an association relationship between the tunnel node and the session can be established. The tunnel node established based on the target protocol identifier can ensure that the tunnel entities at both ends of the interface will not be established repeatedly, avoiding additional consumption of communication resources, and can also ensure the consistency and continuity of signaling session management, ensure the accuracy of session management, and improve the efficiency of session management.
[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, and the efficiency of establishing association relationships can also be improved.
[0014] In one of the embodiments, the target protocol identification information includes a first target protocol identification and / or a second target protocol identification, the first target protocol identification is a target protocol identification assigned by the terminal on the base station side, and the second target protocol identification is a target protocol identification assigned by the terminal on the network element side; the obtaining of the target tunnel node based on the base station address, the network element address, the target protocol identification and the address version includes:
[0015] Perform hash processing based on the base station address, the network element address, the first target protocol identifier and the address version to obtain a first hash value, and establish a first tunnel node on the base station side based on the first hash value; and / or,
[0016] Hash processing is performed based on the base station address, the network element address, the second target protocol identifier and the address version to obtain a second hash value, and a second tunnel node on the network element side is established based on the second hash value.
[0017] In this embodiment, combined with the usage specifications of the s1ap protocol on the S1MME interface of the LTE core network, the characteristics of the s1ap protocol on the S1MME interface are deeply explored. By obtaining the tunnel information at both ends of the base station and the MME, the logical connection between the tunnel node on the base station side and the tunnel node on the MME side is used to represent the logical session, which can efficiently and accurately manage the consistency and continuity of the signaling session process. Management analysis.
[0018] In one of the embodiments, the target protocol identification information includes a first target protocol identification, and the step of establishing a target association relationship between the target tunnel node and the session corresponding to the target protocol message includes:
[0019] Perform hash processing based on the base station address, the network element address, the first target protocol identifier, and the address version to obtain a first hash value;
[0020] Establishing a first tunnel node on the target side based on the first hash value, and constructing an initial association relationship between the first tunnel node and the session corresponding to the target protocol message, re-executing the step of obtaining the target protocol message in the target interface, and obtaining a second tunnel node;
[0021] The second tunnel node is added to the initial association relationship to obtain a target association relationship.
[0022] This embodiment is applicable to the scenario where the s1mme traffic includes a tunnel node identifier at one end or tunnel node identifiers at both ends, supports control plane traffic management of UE users in most LTE s1mme interfaces, and further improves the scope of application of session management.
[0023] In one embodiment, the method further comprises:
[0024] If the base station or the network element meets the preset update condition, obtaining an updated tunnel node based on the updated base station or the updated network element;
[0025] Based on the updated tunnel node, the target association relationship is updated to obtain an updated target association relationship.
[0026] In this embodiment, through the logical association between the nodes at both ends of the tunnel and the session, when a switch change occurs to the tunnel entity at one end, the updated node can be quickly updated and replaced, avoiding re-application for the session and saving communication resources.
[0027] In one embodiment, the method further comprises:
[0028] If both the base station and the network element meet the preset update condition, obtaining the first association context data, the updated first tunnel node and the updated second tunnel node in the update signaling message, and searching for the second association context data matching the first association context data;
[0029] Based on the updated first tunnel node and the updated second tunnel node, the tunnel node of the session corresponding to the second association context data is updated to obtain an updated target association relationship.
[0030] In this embodiment, through the logical association between the nodes at both ends of the tunnel and the session, when the tunnel entities at both ends are switched, the updated nodes can be quickly updated and replaced, avoiding re-application for the session and saving communication resources.
[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 parsing module, configured to parse the target protocol message to obtain a base station address, a network element address, a target protocol identifier, and an address version, wherein the target protocol identifier information 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 network element side;
[0034] The first association module is used to obtain a target tunnel node based on the base station address, the network element address, the target protocol identifier and the address version, and to establish a target association relationship between the target tunnel node and the session corresponding to the target protocol message.
[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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side;
[0038] Based on the base station address, the network element address, the target protocol identifier and the address version, a target tunnel node is obtained, and a target association relationship between the target tunnel node and the session corresponding to the target protocol message is established.
[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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side;
[0042] Based on the base station address, the network element address, the target protocol identifier and the address version, a target tunnel node is obtained, and a target association relationship between the target tunnel node and the session corresponding to the target protocol message is established.
[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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side;
[0046] Based on the base station address, the network element address, the target protocol identifier and the address version, a target tunnel node is obtained, and a target association relationship between the target tunnel node and the session corresponding to the target protocol message is established.
[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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side; based on the base station address, the network element address, the target protocol identifier and the address version, obtaining a target tunnel node, and constructing a target association relationship between the target tunnel node and the session corresponding to the target protocol message.
[0048] By adopting this method, the target protocol message can be parsed to obtain the target protocol identifier, and a tunnel node can be created based on the target protocol identifier, and an association relationship between the tunnel node and the session can be established. The tunnel node established based on the target protocol identifier can ensure that the tunnel entities at both ends of the interface are not established repeatedly, avoiding additional consumption of communication resources, and can also ensure the consistency and continuity of signaling session management, ensure the accuracy of session management, and improve the efficiency of session management. 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] FIG1 is a schematic diagram of a flow chart of a session association method in one embodiment;
[0051] FIG2 is a schematic flow chart of steps for obtaining a target protocol message in one embodiment;
[0052] FIG3 is a schematic flow chart of steps for obtaining a tunnel node in one embodiment;
[0053] FIG4 is a schematic diagram of a flow chart of a step of obtaining a target association relationship in one embodiment;
[0054] FIG5 is a schematic diagram of a flow chart of an updating step in one embodiment;
[0055] FIG6 is a schematic diagram of a flow chart of an updating step in one embodiment;
[0056] FIG7 is a flow chart of a session association method in another embodiment;
[0057] FIG8 is a structural block diagram of a session association device in one embodiment;
[0058] FIG. 9 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, as shown in FIG1 , a session association method is provided, which is described by applying the method to a network device, and includes the following steps 102 to 106. Among them:
[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 an S1MME interface in the core network. The target interface can receive a message sent by the terminal device, which can at least include a target protocol message. The target protocol message can be a message of a preset type protocol, which can be an s1ap protocol, and the target protocol message can be an s1ap protocol message.
[0063] Specifically, the target interface can receive the message sent by the terminal device, and the network can filter and identify the received message to obtain the target protocol message. In one example, the network device can obtain the s1ap protocol message in the S1MME interface in the core network.
[0064] Step 104, parse the target protocol message to obtain the base station address, network element address, target protocol identifier and address version.
[0065] Among them, the target protocol identification information includes the target protocol identification assigned by the terminal on the base station side and / or the target protocol identification assigned by the terminal on the network element side; the base station address may be a base station communication address, for example, it may be an IP address of an LTE base station (eNB); the network element address may be a communication address of an LTE MME network element, for example, it may be an IP address of an LTE MME network element; the target protocol identification may include one or more of a target protocol identification assigned by a terminal device (user equipment, UE) on the base station side and a target protocol identification assigned by the terminal device on the network element side, that is, it may include one or more of an s1ap protocol ID assigned by the terminal device on the base station side and an s1ap protocol ID assigned by the terminal device on the MME side; the address version may be a transport layer address version, the transport layer address may be a transport layer IP address, the address version may be a transport layer IP version, the transport layer IP version may be IPv4 or IPv6, and the specific situation of the specific transport layer IP may be determined based on the received message.
[0066] Specifically, the network device parses the target protocol message to obtain the base station address, network element address, target protocol identifier and address version carried by the target protocol message. In one example, the network device parses the target protocol message to obtain the IP address of the LTE base station (eNB), the IP address of the LTE MME network element and the version of the transport layer IP carried by the target protocol message, and can also obtain the s1ap protocol ID assigned by the terminal device at the base station end and / or the s1ap protocol ID assigned by the terminal device at the MME end.
[0067] Step 106, based on the base station address, the network element address, the target protocol identifier and the address version, obtain the target tunnel node, and establish a target association relationship between the target tunnel node and the session corresponding to the target protocol message.
[0068] Among them, the session corresponding to the target protocol message can be a session of the terminal device, and the session can be a control plane session connection established between the tunnel node at the base station end and the tunnel node at the network element end by the terminal device on the S1MME interface, and the control plane session connection is used to manage the control plane signaling messages of the S1MME interface between the tunnel node at the base station end and the tunnel node at the network element end, that is, the session can be a signaling control plane session connection established by the UE on the S1MME interface between the "tunnel node at the base station (eNB) end" and the "tunnel node at the MME end", which is used to manage the S1MME interface control plane signaling messages of the UE between the above two tunnel nodes. The target tunnel node may include a tunnel node determined based on the target protocol identifier allocated by the terminal on the base station side, and / or a tunnel node determined based on the target protocol identifier allocated by the terminal on the network element side, that is, it may include a base station tunnel node, and / or an MME tunnel node.
[0069] Specifically, the network device can calculate the key value based on the determined base station address, network element address, target protocol identifier and address version, and establish the target tunnel node based on the obtained key value. The network device can establish a one-to-one mapping relationship between the target tunnel node and the session corresponding to the target protocol message, and determine the mapping relationship as the target association relationship between the tunnel node and the session.
[0070] In the above session association method, the target protocol message in the target interface is obtained; the target protocol message is parsed to obtain the base station address, network element address, target protocol identifier and address version, and the target protocol identifier information 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 network element side; based on the base station address, network element address, target protocol identifier and address version, the target tunnel node is obtained, and the target association relationship between the target tunnel node and the session corresponding to the target protocol message is established. By adopting this method, the target protocol message can be parsed to obtain the target protocol identifier, and a tunnel node can be created based on the target protocol identifier, and an association relationship between the tunnel node and the session can be established. The tunnel node established based on the target protocol identifier can ensure that the tunnel entities at both ends of the interface will not be established repeatedly, avoiding additional consumption of communication resources, and can also ensure the consistency and continuity of signaling session management, ensure the accuracy of session management and improve the efficiency of session management.
[0071] In an exemplary embodiment, as shown in FIG2 , 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, for example, an S1MME 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 to identify the target protocol message, and the protocol port can be port 36412; the target protocol message can be a message of a preset type protocol, the preset type protocol can be the s1ap protocol, and the target protocol message can be the s1ap 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 an example, the S1MME interface can receive the message sent by the terminal device, and identify the received message through the protocol port 36412, identify the s1ap message in the S1MME 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, and the efficiency of establishing association relationships can also be improved.
[0078] In an exemplary embodiment, the target protocol identifier information includes a first target protocol identifier and / or a second target protocol identifier, the first target protocol identifier being a target protocol identifier assigned by the terminal at the base station side, and the second target protocol identifier being a target protocol identifier assigned by the terminal at the network element side. The first target protocol identifier may be an s1ap protocol ID assigned by the terminal device at the base station side, and the second target protocol identifier may be an s1ap protocol ID assigned by the terminal device at the MME side. In one example, the target protocol identifier parsed from the target protocol message may include the first target protocol identifier, in another example, the target protocol identifier parsed from the target protocol message may include the second target protocol identifier; in another example, the target protocol identifier parsed from the target protocol message may include the first target protocol identifier and the second target protocol identifier.
[0079] Accordingly, as shown in FIG3 , the specific implementation process of the step “obtaining the target tunnel node based on the base station address, the network element address, the target protocol identifier, and the address version” may include:
[0080] Step 302: Perform hash processing based on the base station address, the network element address, the first target protocol identifier and the address version to obtain a first hash value, and establish a first tunnel node on the base station side based on the first hash value. And / or,
[0081] Among them, the base station address can be a base station communication address, for example, it can be the IP address of an LTE base station (eNB); the network element address can be the communication address of an LTE MME network element, for example, it can be the IP address of an LTE MME network element; the first hash value can be a key value obtained by hashing through a hash algorithm. The address version can be a transport layer IP version, and the transport layer IP version can be IPv4 or IPv6. The first target protocol identifier can be an s1ap 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.
[0082] Specifically, the network device can perform hash calculation on the base station address, the network element address, the first target protocol identifier and the address version through a preset hash algorithm to obtain a first hash value; the network device can use the first hash value as a key value to establish a first tunnel node at the base station end. The specific process of establishing the tunnel node can be that the network device can store the session context data of the session corresponding to the target protocol message in the memory of the hash table based on the calculated first hash value, that is, determine the storage location of the session context data in the memory of the hash table based on the first hash value, and store the session context data in the storage location in the memory of the hash table.
[0083] Step 304: Perform hash processing based on the base station address, the network element address, the second target protocol identifier and the address version to obtain a second hash value, and establish a second tunnel node on the network element side based on the second hash value.
[0084] The second hash value may be a key value obtained by hashing through a hash algorithm, and the second target protocol identifier may be an s1ap protocol ID allocated by the terminal device at the MME end.
[0085] Specifically, the network device can perform hash calculation on the base station address, the network element address, the second target protocol identifier and the address version through a preset hash algorithm to obtain a second hash value; the network device can use the second hash value as a key value to establish a second tunnel node on the MME end. The specific process of establishing the tunnel node can be that the network device can store the session context data of the session corresponding to the target protocol message in the memory of the hash table based on the calculated second hash value, that is, determine the storage location of the session context data in the memory of the hash table based on the second hash value, and store the session context data in the storage location of the hash table in the memory.
[0086] The first tunnel node on the base station side may be a ue-eNB-node, and the second tunnel node on the MME side may be a ue-MME-node.
[0087] It should be noted that the present disclosure does not limit the order of execution of step 302 and step 304. Step 302 and step 304 may be executed in sequence, step 304 and step 302 may be executed in sequence, or only step 302 or step 304 may be executed. The specific execution order and execution content may be determined based on the specific contents included in the target protocol identifier.
[0088] In this embodiment, combined with the usage specifications of the s1ap protocol on the S1MME interface of the LTE core network, the characteristics of the s1ap protocol on the S1MME interface are deeply explored. By obtaining the tunnel information at both ends of the base station and the MME, the logical connection between the tunnel node on the base station side and the tunnel node on the MME side is used to represent the logical session, which can efficiently and accurately manage the consistency and continuity of the signaling session process. Management analysis.
[0089] In an exemplary embodiment, the target protocol identification information includes a first target protocol identification. In one example, the first target protocol identification may be a target protocol identification assigned by the terminal on the base station side, and the corresponding second target protocol identification is a target protocol identification assigned by the terminal on the network element side; in another example, the first target protocol identification may be a target protocol identification assigned to the terminal on the network element side, and the corresponding second target protocol identification may be a target protocol identification assigned by the terminal on the base station side.
[0090] Accordingly, as shown in FIG. 4 , the specific implementation process of the step “constructing a target association relationship between a target tunnel node and a session corresponding to a target protocol message” may include:
[0091] Step 402: Perform hash processing based on the base station address, the network element address, the first target protocol identifier and the address version to obtain a first hash value.
[0092] Among them, the base station address can be a base station communication address, for example, it can be the IP address of an LTE base station (eNB); the network element address can be the communication address of an LTE MME network element, for example, it can be the IP address of an LTE MME network element; the first hash value can be a key value obtained by hashing through a hash algorithm. The address version can be a transport layer IP version, and the transport layer IP version can be IPv4 or IPv6. The first target protocol identifier can be the s1ap protocol ID assigned by the terminal device at the base station end. The DIYI first hash value can be an integer, which is a unique identifier.
[0093] Specifically, the network device may perform hash calculation on the base station address, the network element address, the first target protocol identifier, and the address version through a preset hash algorithm to obtain a first hash value.
[0094] Step 404, establish a first tunnel node on the target side based on the first hash value, and construct an initial association relationship between the first tunnel node and the session corresponding to the target protocol message, re-execute the step of obtaining the target protocol message in the target interface, and obtain the second tunnel node.
[0095] Among them, if the first target protocol identifier is the target protocol identifier allocated to the terminal on the base station side, the corresponding first tunnel node on the target side can be the first tunnel node on the base station side; if the first target protocol identifier is the target protocol identifier allocated to the terminal on the network element side, the corresponding first tunnel node on the target side can be the first tunnel node on the MME side.
[0096] Specifically, the network device can use the first hash value as a key value to establish a first tunnel node on the target side. The specific process of establishing the tunnel node can be that the network device can store the session context data of the session corresponding to the target protocol message in the memory of the hash table based on the calculated first hash value, that is, determine the storage location of the session context data in the memory of the hash table based on the first hash value, and store the session context data in the storage location in the memory of the hash table.
[0097] Based on this, constructing the initial association relationship between the first tunnel node and the session corresponding to the target protocol message can be to construct a one-to-one mapping relationship between the first tunnel node and the session corresponding to the target protocol message, and determine the mapping relationship as the initial association relationship between the first tunnel node and the session. Based on this, the network device can re-execute the step of obtaining the target protocol message in the target interface, parse based on the obtained target protocol message, and obtain the second target protocol identifier of the other side except the target side; perform hash processing based on the base station address, the network element address, the second target protocol identifier and the address version to obtain the second hash value. The second tunnel node is obtained based on the second hash value.
[0098] Step 406: Add the second tunnel node to the initial association relationship to obtain a target association relationship.
[0099] Specifically, the initial association relationship can be an initial mapping relationship that represents a one-to-one correspondence between the first tunnel node and the session corresponding to the target protocol message. The network device can add the obtained second tunnel node to the initial mapping relationship to obtain the target mapping relationship between the first tunnel node, the second tunnel node and the session corresponding to the target protocol message, and determine the target mapping relationship as a target association relationship.
[0100] This embodiment is applicable to the scenario where the s1mme traffic includes a tunnel node identifier at one end or tunnel node identifiers at both ends, supports control plane traffic management of UE users in most LTE s1mme interfaces, and further improves the scope of application of session management.
[0101] In an exemplary embodiment, as shown in FIG5 , the session association method further includes:
[0102] Step 502: If the base station or the network element meets the preset update condition, an updated tunnel node is obtained based on the updated base station or the updated network element.
[0103] The preset update condition may be a change in a base station, or a change in an MME network element on the network element side, and so on.
[0104] Specifically, when the network device determines that the entities at both ends have changed, for example, it may be determined that the base station meets the preset update conditions, the network device can obtain the updated base station, determine the updated base station address based on the updated base station and the s1ap protocol ID assigned by the updated terminal device at the base station end, calculate the updated hash value, and determine the tunnel node on the updated base station side based on the updated hash value.
[0105] In one example, the network element may satisfy the preset update condition, so that the network device may obtain the updated network element, determine the updated network element address and the s1ap protocol ID assigned by the updated terminal device on the network element side based on the updated network element, calculate the updated hash value, and determine the tunnel node on the updated network element side based on the updated hash value.
[0106] Step 504: Update the target association relationship based on the updated tunnel node to obtain an updated target association relationship.
[0107] Specifically, the network device may replace the tunnel node in the target association relationship based on the updated tunnel node to obtain an updated target association relationship. In one example, the updated tunnel node may be an updated tunnel node on the base station side, and the network device may replace the tunnel node on the base station side in the target association relationship with the updated tunnel node on the base station side to obtain an association relationship between the tunnel node on the MME side, the updated tunnel node on the base station side, and the session, that is, to obtain an updated target association relationship.
[0108] In this embodiment, through the logical association between the nodes at both ends of the tunnel and the session, when a switch change occurs to the tunnel entity at one end, the updated node can be quickly updated and replaced, avoiding re-application for the session and saving communication resources.
[0109] In an exemplary embodiment, as shown in FIG6 , the session association method further includes:
[0110] Step 602: If both the base station and the network element meet the preset update conditions, obtain the first associated context data, the updated first tunnel node and the updated second tunnel node in the update signaling message, and search for the second associated context data matching the first associated context data.
[0111] The fact that both the base station and the network element satisfy the preset update condition indicates that the base station is updated and the network element (MME) is also updated; the update signaling message may be a received control plane signaling session message, the first association context data may be the association context carried in the control plane signaling session message, and in one example the association context data may be the MD5 value of the Transparent Container. The second association context data matching the first association context data may be second association context data consistent with the first association context data.
[0112] Specifically, when the network device determines that the base station and the network element are updated, the network device can obtain the first associated context data in the signaling message, and can also obtain the updated first tunnel node and the updated second tunnel node. Based on the obtained first associated context data, the network device can filter the multiple associated context data corresponding to the multiple sessions to extract the second associated context data that is consistent with the first associated context data. Among them, the associated context data of the same session are the same, that is, the MD5 value of the TransparentContainer carried in the control plane signaling message of the same session is consistent, so the filtering can be based on the consistency of the associated context data.
[0113] Step 604: based on the updated first tunnel node and the updated second tunnel node, update the tunnel node of the session corresponding to the second association context data to obtain an updated target association relationship.
[0114] Specifically, the network device determines the corresponding session and the target association relationship corresponding to the session based on finding the corresponding second association context data. Based on this, the network device can update the tunnel nodes in the target association relationship based on the updated first tunnel node and the updated second tunnel node, that is, replace the first tunnel node in the target association relationship with the updated first tunnel node, and replace the second tunnel node in the target association relationship with the updated second tunnel node, to obtain an updated target association relationship between the session, the updated first tunnel node, and the updated second tunnel node.
[0115] In this embodiment, through the logical association between the nodes at both ends of the tunnel and the session, when the tunnel entities at both ends are switched, the updated nodes can be quickly updated and replaced, avoiding re-application for the session and saving communication resources.
[0116] In the following, in conjunction with a specific embodiment, as shown in FIG7 , a detailed description of the specific implementation process of the above session association method may include:
[0117] Step 1, identification and parsing of the s1ap protocol message of the S1MME interface; specifically, the S1MME interface receives the message and identifies the s1ap protocol message of the S1MME interface through the protocol port 36412.
[0118] Step 2: Use eNB-ip, MME-ip, eNB-ue-s1ap-id, and ip_version as keys to establish an eNB node. Specifically, parse the s1ap message to obtain eNB-ip, MME-ip, eNB-ue-s1ap-id, MME-ue-s1ap-id, and ip_version; if eNB-ue-s1ap-id exists, use "eNB-ip, MME-ip, eNB-ue-s1ap-id, and ip_version" as keys to establish a tunnel node "ue-eNB-node" on the base station side.
[0119] Step 3, use MME-ip, MME-ue-s1ap-id, eNB-ip, and ip_version as keys to establish an MME node. Specifically, if only MME-ue-s1ap-id exists, use "eNB-ip, MME-ip, MME-ue-s1ap-id, ip_version" as keys to establish the tunnel node "ue-MME-node" on the MME side.
[0120] Step 4: Use the logical connection between the eNB node and the MME node to represent the logical session.
[0121] Step 5: In the scenario where there is only one tunnel node at one end, first use the node to establish a pointing relationship with the logical session and wait for subsequent traffic to be supplemented.
[0122] Step 6: A one-to-one correspondence is established between the tunnel nodes at both ends and the logical sessions.
[0123] Step 7: When the tunnel node is switched and one end is updated, the correspondence between the node and the logical session is modified.
[0124] Step 8: When the tunnel node is switched and both ends are updated, the session is searched according to the key context in the message and the correspondence between the node and the logical session is modified.
[0125] In one example, the message is received, and the s1ap protocol message of the S1MME interface is identified through the protocol port 36412; the s1ap message is parsed to obtain eNB-ip, MME-ip, eNB-ue-s1ap-id, MME-ue-s1ap-id, ip_version; if eNB-ue-s1ap-id exists, "eNB-ip, MME-ip, eNB-ue-s1ap-id, ip_version" is used as the key to establish the tunnel node on the base station side. "ue-eNB-node"; if only MME-ue-s1ap-id exists, use "eNB-ip, MME-ip, MME-ue-s1ap-id, ip_version" as the key to establish the tunnel node "ue-MME-node" on the MME side; if both eNB-ue-s1ap-id and MME-ue-s1ap-id exist, the tunnel node "ue-eNB-node" on the base station side and the tunnel node "ue-MME-node" on the MME side are obtained;
[0126] Get the tunnel nodes at both ends or only one end, establish a one-to-one correspondence between "tunnel node" and "user session", the tunnel node points to the session memory, and the session memory points to the tunnel node; if there is only one end of the tunnel node, first use the node to establish a pointing relationship with the logical session, that is, establish an initial association relationship, and based on the target protocol message received in the subsequent process, get the tunnel node at the other end, and update the initial association relationship based on the obtained tunnel node at the other end to get the target association relationship.
[0127] When one of the two entities changes, the one-to-one correspondence between "tunnel node" and "user session" is updated; when both entities change, it is necessary to perform session search in combination with the association context carried in the signaling message to update the correspondence between "tunnel node" and "user session". The association context is switched in S1 and can be the MD5 value of "TransparentContainer".
[0128] A session association method provided in an embodiment of the present application can identify and parse the S1MME interface data message of the core network control plane, use the ip of the tunnel entity at both ends of the interface, the opposite end ip, ue-s1ap-id, and ip_version as keys to establish a tunnel node, and use the logical connection between the two tunnel nodes to represent the logical session. This ensures that changes in the tunnel node at one end of the S1MME interface will not cause changes in the logical session, and also ensures that the tunnel entities at both ends of the interface will not repeatedly establish flows, causing waste of resources, and can efficiently and accurately manage the consistency and continuity of the signaling session process. Management analysis.
[0129] A session association method provided in an embodiment of the present application can be combined with the usage specification of the s1ap protocol on the S1MME interface of the LTE core network, deeply explore the characteristics of the s1ap protocol on the S1MME interface, obtain the tunnel information at both ends of the base station and the MME, and use the logical connection between the two tunnel nodes to represent the logical session, which can efficiently and accurately manage the consistency and continuity management analysis of the signaling session process. By logically associating the nodes at both ends of the tunnel with the session, when a switch change occurs to the tunnel entity at one end, the node at one end can be quickly updated and replaced through the session context, avoiding re-applying for the session and saving communication resources. It can adapt to the control plane traffic management of UE users in most LTE s1mme interfaces by meeting the scenario where only one end of the tunnel ue_s1ap_id exists in the S1MME traffic, or both ends of the ue_s1ap_id exist;
[0130] A session association method provided in an embodiment of the present application can be implemented through an x86 architecture server, which expands the scope of application and is easier to integrate into other x86 general-purpose server devices. It can enable x86 general-purpose server devices to support this function. On the basis of ensuring device performance and association rate, it increases the general use scenarios of the association management device, thereby improving versatility and ease of use.
[0131] It should be understood that, although the steps in the flowcharts involved in the above 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 is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may 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 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.
[0132] 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.
[0133] In an exemplary embodiment, as shown in FIG8 , a session association device 800 is provided, including:
[0134] A first acquisition module 802, used to acquire a target protocol message in a target interface;
[0135] A parsing module 804 is used to parse the target protocol message to obtain a base station address, a network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side;
[0136] The first association module 806 is used to obtain a target tunnel node based on the base station address, the network element address, the target protocol identifier and the address version, and to establish a target association relationship between the target tunnel node and the session corresponding to the target protocol message.
[0137] In one embodiment, the first acquisition module is specifically used for:
[0138] Receiving a target message sent by the terminal through a target interface;
[0139] The target message is identified through a protocol port to obtain a target protocol message.
[0140] In one embodiment, the target protocol identification information includes a first target protocol identification and / or a second target protocol identification, the first target protocol identification is a target protocol identification assigned by the terminal on the base station side, and the second target protocol identification is a target protocol identification assigned by the terminal on the network element side; the first association module is specifically used to:
[0141] Perform hash processing based on the base station address, the network element address, the first target protocol identifier and the address version to obtain a first hash value, and establish a first tunnel node on the base station side based on the first hash value; and / or,
[0142] Hash processing is performed based on the base station address, the network element address, the second target protocol identifier and the address version to obtain a second hash value, and a second tunnel node on the network element side is established based on the second hash value.
[0143] In one embodiment, the target protocol identification information includes a first target protocol identification, and the first association module is specifically configured to:
[0144] Perform hash processing based on the base station address, the network element address, the first target protocol identifier, and the address version to obtain a first hash value;
[0145] Establishing a first tunnel node on the target side based on the first hash value, and constructing an initial association relationship between the first tunnel node and the session corresponding to the target protocol message, re-executing the step of obtaining the target protocol message in the target interface, and obtaining a second tunnel node;
[0146] The second tunnel node is added to the initial association relationship to obtain a target association relationship.
[0147] In one embodiment, the device further comprises:
[0148] A first updating module, configured to obtain an updated tunnel node based on an updated base station or an updated network element if the base station or the network element meets a preset update condition;
[0149] The second updating module is used to update the target association relationship based on the updated tunnel node to obtain an updated target association relationship.
[0150] In one embodiment, the device further comprises:
[0151] A second acquisition module is used to acquire the first association context data, the updated first tunnel node and the updated second tunnel node in the update signaling message if both the base station and the network element meet the preset update condition, and search for the second association context data matching the first association context data;
[0152] The third updating module is used to update the tunnel node of the session corresponding to the second association context data based on the updated first tunnel node and the updated second tunnel node to obtain an updated target association relationship.
[0153] 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.
[0154] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. 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 via a system bus, and the communication interface is connected to the system bus via 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.
[0155] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0156] 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 the processor implements the steps described in the above embodiment when executing the computer program.
[0157] 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 described in the above embodiment are implemented.
[0158] In one embodiment, a computer program product is provided, including a computer program, which implements the steps described in the above embodiment when executed by a processor.
[0159] 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.
[0160] 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.
[0161] 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.
[0162] 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 network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side; Based on the base station address, the network element address, the target protocol identifier and the address version, a target tunnel node is obtained, and a target association relationship between the target tunnel node and the session corresponding to the target protocol message is established.
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 information 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 network element side; The obtaining of the target tunnel node based on the base station address, the network element address, the target protocol identifier and the address version includes: Perform hash processing based on the base station address, the network element address, the first target protocol identifier, and the address version to obtain a first hash value, and establish a first tunnel node on the base station side based on the first hash value; and / or, Hash processing is performed based on the base station address, the network element address, the second target protocol identifier and the address version to obtain a second hash value, and a second tunnel node on the network element side is established based on the second hash value.
4. The method according to claim 1, characterized in that: The target protocol identification information includes a first target protocol identification, and the step of building a target association relationship between the target tunnel node and the session corresponding to the target protocol message includes: Perform hash processing based on the base station address, the network element address, the first target protocol identifier, and the address version to obtain a first hash value; Establishing a first tunnel node on the target side based on the first hash value, and constructing an initial association relationship between the first tunnel node and the session corresponding to the target protocol message, re-executing the step of obtaining the target protocol message in the target interface, and obtaining a second tunnel node; The second tunnel node is added to the initial association relationship to obtain a target association relationship.
5. The method according to claim 1, characterized in that The method further comprises: If the base station or the network element meets the preset update condition, obtaining an updated tunnel node based on the updated base station or the updated network element; Based on the updated tunnel node, the target association relationship is updated to obtain an updated target association relationship.
6. The method according to claim 1, characterized in that The method further comprises: If both the base station and the network element meet the preset update condition, obtaining the first association context data, the updated first tunnel node and the updated second tunnel node in the update signaling message, and searching for the second association context data matching the first association context data; Based on the updated first tunnel node and the updated second tunnel node, the tunnel node of the session corresponding to the second association context data is updated to obtain an updated target association relationship.
7. A session association device, characterized in that: The device comprises: A first acquisition module, used for acquiring a target protocol message in a target interface; A parsing module, used to parse the target protocol message to obtain a base station address, a network element address, a target protocol identifier and an address version, wherein the target protocol identifier information 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 network element side; The first association module is used to obtain a target tunnel node based on the base station address, the network element address, the target protocol identifier and the address version, and to establish a target association relationship between the target tunnel node and the session corresponding to the target protocol message.
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.
Citation Information
Cited By
User traffic screening method and device, electronic equipment and storage medium
CN119562307A
Service redirection method and device, network equipment and computer readable storage medium
CN119697083A
Business redirection method and apparatus, network device, and computer-readable storage medium
CN119697083B
