User information collection method, device, equipment and computer-readable storage medium

By creating and synchronizing hash nodes according to interface types and message types in 5G communications, the problem of memory waste and information desynchronization when collecting user information in 5G communications is solved, and the information collection efficiency and fault tolerance rate are improved.

CN114302259BActive Publication Date: 2024-10-29HANGZHOU DPTECH INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111616166.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-10-29
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

In 5G communications, existing technical solutions waste memory space when collecting user information, increase the complexity of information association, and may cause information to be desynchronized when user information is updated, reducing the efficiency and fault tolerance of information collection.

Method used

By creating or searching the first hash node according to the interface type and message type of the target signaling message, and synchronizing its information to the second hash node, the target keyword and tunnel keyword are used to distinguish and associate the data of different interfaces. For signaling messages, the number of hash lists is reduced, and each interface information is collected independently to avoid signaling messages being out of order.

Benefits of technology

It saves memory space, improves the efficiency and fault tolerance of information collection, reduces the difficulty and frequency of synchronization between nodes, ensures that information between interfaces does not need to be synchronized, and improves the fault tolerance of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114302259B_ABST
    Figure CN114302259B_ABST
Patent Text Reader

Abstract

The present application provides a method for collecting user information, including: creating or searching a first hash node according to the interface type and message type of a target signaling message, synchronizing the information in the target signaling message to the first hash node; creating or searching a second hash node, synchronizing the information of the first hash node to the second hash node; wherein the target keyword used to create the first hash node is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by user, and the second hash node is a hash node created using a tunnel keyword. The present application can reduce memory usage, reduce the difficulty and frequency of synchronization between nodes, thereby improving the efficiency of information association, and the signaling message information between each interface is collected independently, which can deal with the disorder problem of the signaling message to a certain extent, and improve the fault tolerance of the device. The present application also provides a user information collection device, a device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a user information collection method, device, equipment and computer-readable storage medium. Background Art

[0002] In 5G communications, 5G data messages do not contain user information. Relevant user information can only be obtained in signaling messages. 5G signaling messages containing valid user information are mainly divided into signaling messages of interfaces such as N2, N4, and N11. In order to collect as much user information as possible, the signaling messages of the three interfaces need to be merged and associated, and then the merged information is backfilled into the user data message for use by the back-end analysis equipment.

[0003] In order to collect user information, the existing technical solution is to use the key information contained in each signaling message as the key value, save the information of the signaling message into multiple hash nodes, and then associate and merge different hash nodes with the same key value, such as Figure 1 The diagram shown is a schematic diagram of information merging based on multiple hash nodes.

[0004] However, the existing technical solution is to create multiple hash nodes with each key information in the signaling message as the key value, which not only wastes memory space but also increases the complexity of information association; in addition, when user information is updated, if some nodes are not yet associated, information asynchrony may occur, and the reception and processing of signaling messages must be strictly carried out according to the reception sequence, otherwise the nodes may not be associated and the node information cannot be updated synchronously, thereby reducing the efficiency and fault tolerance of information collection. Summary of the invention

[0005] In view of this, the present application provides a user information collection method, apparatus, device and computer-readable storage medium, which can save memory space and improve the efficiency and fault tolerance of information collection.

[0006] Specifically, the present application is implemented through the following technical solutions:

[0007] A method for collecting user information, comprising:

[0008] Creating or searching a first hash node according to an interface type and a message type of a target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by a user;

[0009] Synchronize the information in the target signaling message to the first hash node;

[0010] Create or search for a second hash node, and synchronize the information of the first hash node to the second hash node, where the second hash node is created using a tunnel keyword after the first hash node collects uplink and downlink tunnel information.

[0011] A user information collection device, comprising:

[0012] A first creation and search unit, configured to create or search for a first hash node according to an interface type and a message type of a target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by a user;

[0013] A message information synchronization unit, used to synchronize the information in the target signaling message to the first hash node;

[0014] The second creation and search unit is used to create or search for a second hash node and synchronize the information of the first hash node to the second hash node. The second hash node is a hash node created using a tunnel keyword after the first hash node collects the uplink and downlink tunnel information.

[0015] An electronic device, comprising: a processor and a memory;

[0016] The memory is used to store computer programs;

[0017] The processor is used to execute the above-mentioned user information collection method by calling the computer program.

[0018] A computer-readable storage medium stores a computer program, which implements the above-mentioned user information collection method when executed by a processor.

[0019] In the technical solution provided by the present application above, a first hash node is first created or searched according to the interface type and message type of the target signaling message, and the information in the target signaling message is synchronized to the first hash node, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by user, so that different interface messages of the same user can be synchronized to the first hash nodes corresponding to the different interfaces; then, a second hash node is created or searched, and the information of the first hash node is synchronized to the second hash node, wherein the second hash node is a hash node created using the tunnel keyword after the first hash node collects the uplink and downlink tunnel information, so that the message information on the first hash nodes corresponding to the different interfaces can be unified and gathered to the second hash node, and the second hash node collects the user information of the same user from different interfaces.

[0020] It can be seen that compared with the prior art, the present application can reduce the number of hash linked lists, which not only reduces memory usage, but also reduces the difficulty and frequency of synchronization between nodes, thereby improving the efficiency of information association; moreover, the collection of signaling message information between each interface is carried out independently, and the information between each interface does not need to be synchronized, which can deal with the disorder problem of signaling messages to a certain extent and improve the fault tolerance of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of information merging based on multiple hash nodes shown in the prior art;

[0022] Figure 2 A flowchart of a user information collection method shown in this application;

[0023] Figure 3 This is a schematic diagram of the N2 message processing flow shown in this application;

[0024] Figure 4 This is a schematic diagram of the N4 message processing flow shown in this application;

[0025] Figure 5 This is a schematic diagram of the N11 message processing flow shown in this application;

[0026] Figure 6 This is a schematic diagram of the message processing flow and information merging of each interface shown in this application;

[0027] Figure 7 A schematic diagram of the composition of a user information collection device shown in this application;

[0028] Figure 8 This is a schematic diagram of the structure of an electronic device shown in this application. DETAILED DESCRIPTION

[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0031] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0032] Before introducing the embodiments of the present application, the technical terms involved in the embodiments of the present application are first introduced.

[0033] UE: 4 / 5G terminal user;

[0034] SUPI: Subscription Permanent Identifier, user permanent identification;

[0035] PFCP: Packet Forwarding Control Protocol, the application protocol of the 5G N4 interface;

[0036] NGAP: Next Generation Application Protocol, the signaling plane protocol of the N2 interface of 5G;

[0037] UPF: User Plane Function, used to direct 5G user data flows to different data networks;

[0038] TEID: Tunnel Endpoint Identifier, which uniquely identifies a user and is used to transmit data for the user;

[0039] IP: Internet Protocol, Internet interconnection protocol;

[0040] SEID: Security environment identifier, security environment identifier;

[0041] SMCTXID: Session Manager Context Id, session management context identifier;

[0042] HTTP: Hyper Text Transfer Protocol.

[0043] See also Figure 2 , is a flow chart of a user information collection method provided in an embodiment of the present application, the method comprising the following steps:

[0044] S201: Create or search for a first hash node according to the interface type and message type of the target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message.

[0045] In this embodiment of the present application, any signaling message in the 5G network can be defined as a target signaling message.

[0046] It should be noted that since 5G data messages do not contain user information, relevant user information can only be obtained in signaling messages, and 5G signaling messages containing valid user information mainly include signaling messages of interfaces such as N2, N4, and N11. Therefore, the interface type of the target signaling message can be the N2 interface, or the N4 interface, or the N11 interface in 5G communication.

[0047] Each interface of the embodiment of the present application can collect information independently without the need to collect information according to the receiving timing. By adopting the user information collection method provided in the embodiment of the present application, the signaling messages of the N2 interface, N4 interface, and N11 interface of the same user can be collected, and the signaling messages of these three interface types are merged and associated to obtain the message information of the same user, and then more comprehensive user information of the same user can be collected.

[0048] In an embodiment of the present application, after determining the interface type and message type of the target signaling message, first determine the target keyword corresponding to the target signaling message based on the interface type (that is, signaling messages of different users uniquely correspond to one target keyword under the interface type), and then choose to create the first hash node or choose to query the first hash node based on the message type, wherein the creation or search of the first hash node is performed based on the target keyword corresponding to the target signaling message.

[0049] The following is an introduction to the case where the interface types to which the target signaling message belongs are N2 interface, N4 interface, and N11 interface.

[0050] 1. Processing flow of target signaling message of N2 interface

[0051] The protocol type of the N2 interface message is NGAP, which mainly carries information such as tunnel ip and teid, pdusession id, ngap_id, IMSI, NCGI, TAC, Snssai, etc. Among them, the N2 messages of different UEs can be distinguished by using the three-layer ip and ngap_id, that is, ip+ngap_id can be used as the characteristic keyword key of the N2 message.

[0052] Based on this, in one implementation of the embodiment of the present application, "creating or searching for a first hash node according to the interface type and message type of the target signaling message" in S201 may include:

[0053] If the interface type of the target signaling message is an N2 interface and the message type of the target signaling message is a registration message, an NGAP node is created with the first information as the target keyword as the first hash node, wherein the first information includes a layer 3 ip and ngap_id;

[0054] If the interface type of the target signaling message is an N2 interface and the message type of the target signaling message is a session creation message, the first hash node is searched using the first information as the target keyword.

[0055] In this implementation, N2 messages are mainly divided into registration, session creation, session deletion, deregistration and UErelease messages. Figure 3As shown in the N2 message processing flow diagram, when the target signaling message is an N2 registration message, a hash node can be created with the three-layer ip and ngap_id of the N2 registration message as the target keyword key, the hash node is defined as an NGAP node, and the NGAP node is used as the first hash node in step S201; when the target signaling message is an N2 session creation message, the NGAP node can be found with the three-layer ip and ngap_id as the target keyword key. Among them, the ip in the target keyword key corresponds to the IP in the above technical terms; the ngap_id in the target keyword key is the ngap identifier, and ngap corresponds to the NGAP in the above technical terms.

[0056] 2. Processing flow of target signaling message on N4 interface

[0057] The protocol type of the N4 interface message is PFCP, and this type of message mainly carries information such as tunnel IP and TEID, SEID, IMSI, MSISDN, IMEI, etc. Among them, the N4 messages of different UEs can be distinguished by using the three-layer IP and SEID, that is, IP+SEID can be used as the characteristic keyword key of the N4 message.

[0058] Based on this, in one implementation of the embodiment of the present application, "creating or searching for a first hash node according to the interface type and message type of the target signaling message" in S201 may include:

[0059] If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session creation message, a SEID node is created with the second information as the target keyword as the first hash node, wherein the second information includes a layer 3 IP and a SEID;

[0060] If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session modification message, the first hash node is searched using the second information as the target keyword.

[0061] In this implementation, N4 messages are mainly divided into session creation, session modification, and session deletion messages. Figure 4As shown in the N4 message processing flow diagram, when the target signaling message is an N4 session creation message, a hash node can be created with the three-layer ip and seid of the N4 session creation message as the target keyword key, the hash node is defined as a SEID node, and the SEID node is used as the first hash node in step S201; when the target signaling message is an N4 session modification message, the SEID node can be found with the three-layer ip and seid as the target keyword key. Among them, the ip in the target keyword key corresponds to the IP in the above technical terminology part; the seid in the target keyword key corresponds to the SEID in the above technical terminology part.

[0062] 3. Processing flow of target signaling message of N11 interface

[0063] The protocol type of the N11 interface message is HTTP2. This type of message mainly carries information such as tunnel IP and teid, smctxid, IMSI, GUAMI, ratType, Snssai, etc. Among them, the N11 messages of different UEs can be distinguished by smctxid, that is, smctxid can be used as the characteristic keyword key of the N11 message.

[0064] Based on this, in one implementation of the embodiment of the present application, "creating or searching for a first hash node according to the interface type and message type of the target signaling message" in S201 may include:

[0065] If the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is a session context creation message, an SMCTXID node is created with the third information as the target keyword as the first hash node, wherein the third information includes smctxid;

[0066] If the interface type of the target signaling message is the N11 interface and the message type of the target signaling message is a session context modification message, the first hash node is searched using the third information as the target keyword.

[0067] In this implementation, N11 messages are mainly divided into session management context creation, N1N2 transfer, session management context modification, session management context release and other messages. Figure 5As shown in the schematic diagram of the N11 message processing flow, when the target signaling message is an N11 session context creation message, a hash node can be created with smctxid in the N11 session creation message as the target keyword key, the hash node is defined as the SMCTXID node, and the SMCTXID node is used as the first hash node in step S201; when the target signaling message is an N11 session context modification message, the SMCTXID node can be found with smctxid as the target keyword key. Among them, smctxid corresponds to SMCTXID in the above technical terminology part.

[0068] Further, the embodiment of the present application may also include: if the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is an N1N2 transfer message, creating or searching for a SUPI node of a target user to which the target signaling message belongs, and synchronizing the message in the target signaling message to the SUPI node; creating the smctxid in the message based on the session context of the target user, searching for the SMCTXID node of the target user, and synchronizing the information in the SUPI node to the SMCTXID node of the target user.

[0069] Specifically, the mobile session context creation message carries information such as IMSI and smctxtid, the N1N2 transfer message carries information such as IMSI and uplink tunnel, and the mobile session context modification message carries information such as smctxid and downlink tunnel.

[0070] Based on this, see Figure 5 When the target signaling message is an N11 N1N2 transfer message and the target signaling message belongs to the target user, since the N1N2 transfer message does not carry smctxid information, the SMCTXID node of the target user cannot be found; at this time, if the SUPI node has not been created for the target user, the SUPI node of the target user is created, and the N1N2 transfer message is temporarily stored in the SUPI node; if the SUPI node has been created for the target user, the N1N2 transfer message is directly temporarily stored in the SUPI node; in addition, since the N11 N1N2 transfer message of the target user and the N11 session context creation message carry the same IMSI information at the same time, when the N11 session context creation message of the target user is obtained, the smctxid and other information in the N11 session context creation message can be synchronized to the SUPI node, so that the SMCTXID node of the target user can be found with smctxid as the key, and the information in the SUPI node can be synchronized to the SMCTXID node.

[0071] S202: Synchronize the information in the target signaling message to the first hash node.

[0072] In this implementation, after the first hash node is created or found through step S201, the information in the target signaling message can be synchronized to the first hash node.

[0073] Specifically, when the first hash node is Figure 3 When the NGAP node shown in FIG. 1 is used, for each N2 message of the same user (when the N2 message is used as the target signaling message), the user's exclusive NGAP node will be created or found through the user's exclusive target keyword (ip+ngap_id), so that the information in each N2 message will be synchronized to the user's NGAP node. In this way, the NGAP node collects the message information of the same user, that is, collects the user information of the same user under the N2 interface.

[0074] When the first hash node is Figure 4 When the SEID node is shown, for each N4 message of the same user (when the N4 message is used as the target signaling message), the exclusive SEID node of the user will be created or found through the exclusive target keyword (ip+seid) of the user, so that the information in each N4 message will be synchronized to the SEID node of the user. In this way, the SEID node collects the message information of the same user, that is, collects the user information of the same user under the N4 interface.

[0075] When the first hash node is Figure 5 When the SMCTXID node shown in FIG. 1 is used, for each N11 message of the same user (when the N11 message is used as the target signaling message), the user's exclusive SMCTXID node will be created or found through the user's exclusive target keyword (smctxid), so that the information in each N11 message will be synchronized to the user's SMCTXID node. In this way, the SMCTXID node collects the message information of the same user, that is, collects the user information of the same user under the N11 interface.

[0076] It can be understood that, through the above method, the same user will uniquely correspond to one NGAP node, one SEID node, and one SMCTXID node.

[0077] S203: Create or search for a second hash node, and synchronize the information of the first hash node to the second hash node, wherein the second hash node is a hash node created using a tunnel keyword after the first hash node collects the uplink and downlink tunnel information.

[0078] In an embodiment of the present application, after the message information of the target signaling message is synchronized to the first hash node, if the second hash node has not been created at this time, the second hash node can be created using the tunnel keyword, and the information of the first hash node can be synchronized to the second hash node; if the second hash node has been created, the tunnel keyword can be used to find the second hash node, and the information of the first hash node can be synchronized to the second hash node.

[0079] Specifically, when the NGAP node, SEID node, and SMCTXID node corresponding to a user are respectively used as the first hash node, the first hash node will collect the message information of the corresponding interface of the user. When the first hash node collects the uplink and downlink tunnel information from these message information, it generates a tunnel keyword TUNNEL key. The tunnel keyword can then be used to create a hash node. Here, the hash node is defined as a TUNNEL node and used as the second hash node.

[0080] The tunnel keyword may include tunnel ip and teid, and teid corresponds to TEID in the above technical terminology. The following describes the creation and search of TUNNEL nodes when the first hash nodes are NGAP nodes, SEID nodes, and SMCTXID nodes.

[0081] like Figure 3 As shown, the first hash node is the NGAP node. When the N2 session creation message is synchronized to the NGAP node, the tunnel ip and teid and other information will be saved in the NGAP node. Based on this, when the NGAP node collects the uplink tunnel information and the downlink tunnel information, the tunnel keyword ip+teid is generated. Therefore, the tunnel keyword can be used to create or search for a hash node, which is the TUNNEL node (the second hash node), thereby synchronizing the information of the NGAP node to the TUNNEL node.

[0082] like Figure 4 As shown, the first hash node is the SEID node. The N4 session creation message carries the uplink tunnel information, i.e., the information of the UPF side tunnel, and the N4 session modification message carries the downlink tunnel information, i.e., the information of the RAN side tunnel. Therefore, when the SEID node collects the uplink tunnel information and the downlink tunnel information, it generates the tunnel keyword ip+teid. Therefore, the tunnel keyword can be used to create or search for a hash node, which is the TUNNEL node (the second hash node), thereby synchronizing the information of the SEID node to the TUNNEL node.

[0083] like Figure 5As shown, the first hash node is the SMCTXID node. Since the N11 N1N2 transfer message carries information such as the uplink tunnel, and the N11 mobile session context modification message carries information such as the downlink tunnel, when the SMCTXID node collects the uplink tunnel information and the downlink tunnel information, it generates the tunnel keyword ip+teid. Therefore, the tunnel keyword can be used to create or search for a hash node, which is the TUNNEL node (the second hash node), thereby synchronizing the information of the SMCTXID node to the TUNNEL node.

[0084] The above Figure 3-Figure 5 Merge to get Figure 6 The interface message processing flow and information merging diagram are shown in FIG. Figure 6 As shown, the messages of each interface will arrive in a certain sequence, but the method of merging and associating the information of each interface according to the sequence of the message requires a high degree of timeliness in message processing and has a low fault tolerance rate. To avoid this defect, the embodiment of the present application classifies the messages of each interface for processing, and the messages of each interface can independently generate a TUNNEL node. When the message processing of all interfaces is completed, the information in the TUNNEL node is the union of the information of each interface.

[0085] It can be understood that since the message information in the NGAP node, SEID node, and SMCTXID node corresponding to the same user will all be synchronized to the same TUNNEL node, the TUNNEL node can collect the message information of the same user from the N2 interface, N4 interface, and N11 interface, and the TUNNEL node collects more comprehensive user information of the same user.

[0086] In the user information collection method provided in the above embodiment of the present application, a first hash node is first created or searched according to the interface type and message type of the target signaling message, and the information in the target signaling message is synchronized to the first hash node, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by user, so that different interface messages of the same user can be synchronized to the first hash nodes corresponding to the different interfaces; then, a second hash node is created or searched, and the information of the first hash node is synchronized to the second hash node, wherein the second hash node is a hash node created using the tunnel keyword after the first hash node collects the uplink and downlink tunnel information, so that the message information on the first hash nodes corresponding to the different interfaces can be uniformly aggregated to the second hash node, and the second hash node collects the user information of the same user from different interfaces.

[0087] It can be seen that compared with the prior art, the embodiments of the present application can reduce the number of hash linked lists, which not only reduces memory usage, but also reduces the difficulty and frequency of synchronization between nodes, thereby improving the efficiency of information association; moreover, the collection of signaling message information between each interface is carried out independently, and the information between each interface does not need to be synchronized, which can deal with the disorder problem of signaling messages to a certain extent and improve the fault tolerance of the equipment.

[0088] See also Figure 7 , is a schematic diagram of the composition of a user information collection device provided in an embodiment of the present application, the device comprising:

[0089] A first creation and search unit 710, configured to create or search for a first hash node according to an interface type and a message type of a target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by a user;

[0090] A message information synchronization unit 720, configured to synchronize the information in the target signaling message to the first hash node;

[0091] The second creation and search unit 730 is used to create or search for a second hash node and synchronize the information of the first hash node to the second hash node. The second hash node is a hash node created using a tunnel keyword after the first hash node collects the uplink and downlink tunnel information.

[0092] In one implementation of an embodiment of the present application, the interface type of the target signaling message is the N2 interface, or the N4 interface, or the N11 interface in 5G communication.

[0093] In an implementation of the embodiment of the present application, the first creation and search unit 710 is specifically configured to:

[0094] If the interface type of the target signaling message is an N2 interface and the message type of the target signaling message is a registration message, an NGAP node is created as a first hash node using the first information as the target keyword, wherein the first information includes a layer 3 ip and a next generation application protocol identifier ngap_id;

[0095] If the interface type of the target signaling message is an N2 interface, and the message type of the target signaling message is a session creation message, the first hash node is searched using the first information as the target keyword.

[0096] In an implementation of the embodiment of the present application, the first creation and search unit 710 is specifically configured to:

[0097] If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session creation message, a SEID node is created as a first hash node using the second information as the target keyword, wherein the second information includes a layer 3 IP and a security environment identifier SEID;

[0098] If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session modification message, the first hash node is searched using the second information as the target keyword.

[0099] In an implementation of the embodiment of the present application, the first creation and search unit 710 is specifically configured to:

[0100] If the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is a session context creation message, an SMCTXID node is created as a first hash node using the third information as the target keyword, wherein the third information includes a session management context identifier smctxid;

[0101] If the interface type of the target signaling message is the N11 interface, and the message type of the target signaling message is a session context modification message, the first hash node is searched using the third information as the target keyword.

[0102] In an implementation of the embodiment of the present application, the first creating and searching unit 710 is further configured to:

[0103] If the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is an N1N2transfer message, create or search for a user permanent identification SUPI node of the target user to which the target signaling message belongs, and synchronize the message in the target signaling message to the SUPI node;

[0104] Based on the smctxid in the session context creation message of the target user, the SMCTXID node of the target user is searched, and the information in the SUPI node is synchronized to the SMCTXID node of the target user.

[0105] In an implementation manner of the embodiment of the present application, the tunnel keyword includes a tunnel ip and a tunnel endpoint identifier teid.

[0106] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0107] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0108] The present application also provides an electronic device. The structural diagram of the electronic device is as follows: Figure 8 As shown, the electronic device 8000 includes at least one processor 8001, a memory 8002 and a bus 8003, and the at least one processor 8001 is electrically connected to the memory 8002; the memory 8002 is configured to store at least one computer-executable instruction, and the processor 8001 is configured to execute the at least one computer-executable instruction, thereby performing the steps of any user information collection method provided in any embodiment or any optional implementation manner in the present application.

[0109] Furthermore, the processor 8001 may be a Field-Programmable Gate Array (FPGA) or other devices with logic processing capabilities, such as a Microcontroller Unit (MCU) or a Central Process Unit (CPU).

[0110] By applying the embodiments of the present application, the number of hash linked lists can be reduced, which not only reduces memory usage, but also reduces the difficulty and frequency of synchronization between nodes, thereby improving the efficiency of information association; moreover, the collection of signaling message information between each interface is carried out independently, and the information between each interface does not need to be synchronized, which can to a certain extent deal with the disorder problem of signaling messages and improve the fault tolerance of the device.

[0111] An embodiment of the present application also provides another computer-readable storage medium storing a computer program, which is used to implement the steps of any user information collection method provided in any embodiment or any optional implementation manner in the present application when executed by a processor.

[0112] The computer-readable storage medium provided in the embodiments of the present application includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the readable storage medium includes any medium that can store or transmit information in a readable form by a device (e.g., a computer).

[0113] By applying the embodiments of the present application, the number of hash linked lists can be reduced, which not only reduces memory usage, but also reduces the difficulty and frequency of synchronization between nodes, thereby improving the efficiency of information association; moreover, the collection of signaling message information between each interface is carried out independently, and the information between each interface does not need to be synchronized, which can to a certain extent deal with the disorder problem of signaling messages and improve the fault tolerance of the device.

[0114] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for collecting user information, characterized in that: include: Creating or searching a first hash node according to an interface type and a message type of a target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by a user; Synchronize the information in the target signaling message to the first hash node, and the same user corresponds to only one first hash node under the same interface type; Create or search for a second hash node, and synchronize the information of the first hash node corresponding to the same user to the second hash node, where the second hash node is created using a tunnel keyword after the first hash node collects uplink and downlink tunnel information.

2. The method according to claim 1, characterized in that The interface type of the target signaling message is the N2 interface, or the N4 interface, or the N11 interface in 5G communication.

3. The method according to claim 2, characterized in that The step of creating or searching for a first hash node according to an interface type and a message type of a target signaling message includes: If the interface type of the target signaling message is an N2 interface and the message type of the target signaling message is a registration message, an NGAP node is created as a first hash node using the first information as the target keyword, wherein the first information includes a layer 3 ip and a next generation application protocol identifier ngap_id; If the interface type of the target signaling message is an N2 interface, and the message type of the target signaling message is a session creation message, the first hash node is searched using the first information as the target keyword.

4. The method according to claim 2, characterized in that: The step of creating or searching for a first hash node according to an interface type and a message type of a target signaling message includes: If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session creation message, a SEID node is created as a first hash node using the second information as the target keyword, wherein the second information includes a layer 3 IP and a security environment identifier SEID; If the interface type of the target signaling message is an N4 interface and the message type of the target signaling message is a session modification message, the first hash node is searched using the second information as the target keyword.

5. The method according to claim 2, characterized in that: The step of creating or searching for a first hash node according to an interface type and a message type of a target signaling message includes: If the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is a session context creation message, an SMCTXID node is created as a first hash node using the third information as the target keyword, wherein the third information includes a session management context identifier smctxid; If the interface type of the target signaling message is the N11 interface, and the message type of the target signaling message is a session context modification message, the first hash node is searched using the third information as the target keyword.

6. The method according to claim 5, characterized in that The method further comprises: If the interface type of the target signaling message is an N11 interface and the message type of the target signaling message is an N1N2 transfer message, create or search for a user permanent identification SUPI node of the target user to which the target signaling message belongs, and synchronize the message in the target signaling message to the SUPI node; Based on the smctxid in the session context creation message of the target user, the SMCTXID node of the target user is searched, and the information in the SUPI node is synchronized to the SMCTXID node of the target user.

7. The method according to any one of claims 1 to 6, characterized in that: The tunnel keyword includes the tunnel ip and the tunnel endpoint identifier teid.

8. A user information collection device, characterized in that: include: A first creation and search unit, configured to create or search for a first hash node according to an interface type and a message type of a target signaling message, wherein the first hash node is a hash node created using a target keyword, and the target keyword is used to distinguish the target signaling message from other messages under the interface type of the target signaling message by a user; A message information synchronization unit, used to synchronize the information in the target signaling message to the first hash node, and the same user only corresponds to one first hash node under the same interface type; The second creation and search unit is used to create or search for a second hash node, and synchronize the information of the first hash node corresponding to the same user to the second hash node. The second hash node is a hash node created using a tunnel keyword after the first hash node collects the uplink and downlink tunnel information.

9. An electronic device, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the user information collection method according to any one of claims 1 to 7 by calling the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the user information collection method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Fault area positioning method, device and equipment and computer readable storage medium

    CN112491595A