Data processing method and device, equipment and storage medium

By periodically obtaining communication packets and establishing the correspondence between network element identification and interface IP, the problem of shunt errors caused by interface IP changes is solved, and the efficiency of data processing is improved.

CN119766907APending Publication Date: 2025-04-04NAT COMP NETWORK & INFORMATION SECURITY MANAGEMENT CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411810784.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In network services, dynamic changes in interface IP may lead to shunt errors, thereby reducing the efficiency of data processing.

Method used

By periodically obtaining communication messages, determining their corresponding target communication protocol, dividing messages from the same protocol into the same set, using the target recognition method to establish a correspondence relationship between network element identification and interface IP, and sending the relationship to the shunt device for accurate shunt.

Benefits of technology

In the case of changes in interface IP, dynamic update of the corresponding relationship is avoided and data processing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766907A_ABST
    Figure CN119766907A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device, equipment and a storage medium. The method comprises the following steps: periodically obtaining a communication message to be used; determining a target communication protocol corresponding to the communication message; dividing the communication messages corresponding to the same target communication protocol into the same communication message set to obtain a plurality of communication message sets; for each communication message set, determining a to-be-used target identification method, using the target identification method to identify the communication message set to obtain at least one target corresponding relationship, the target corresponding relationship being a corresponding relationship between the network element identifier and the interface IP set; and sending the target corresponding relationship to a shunting device, so that the shunting device shunts the received communication message based on the target corresponding relationship, and issues the shunted communication message to a message processing device. According to the method, the problem of shunting errors caused by the change of the interface IP can be avoided to a certain extent, and the data processing efficiency of the message processing equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, equipment and storage medium. Background Art

[0002] In order to ensure high availability and load balancing of network services, the diversion device can divert the received communication messages according to the interface IP of the MME network element, and then send the diverted communication messages to the message processing device so that the message processing device processes the received communication messages.

[0003] However, each network element often corresponds to multiple interface IPs. When these interface IPs may be frequently adjusted and dynamically changed, the diversion results may be incorrect, which may cause the incorrectly allocated communication packets to be unable to be processed, thereby reducing the efficiency of data processing. Summary of the invention

[0004] The present application provides a data processing method, apparatus, device and storage medium, which can avoid the problem of diversion errors caused by changes in interface IP to a certain extent, and improve the efficiency of data processing.

[0005] In a first aspect, the present application provides a data processing method, the method comprising:

[0006] Periodically obtain communication messages to be used;

[0007] Determining a target communication protocol corresponding to the communication message;

[0008] Classifying communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets;

[0009] For each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set;

[0010] The target correspondence is sent to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

[0011] Optionally, the determining a target communication protocol corresponding to the communication message includes:

[0012] Parsing the communication message to obtain a target port number in the communication message;

[0013] The target communication protocol corresponding to the communication message is determined according to the target port number and the correspondence between the preset port number and the communication protocol.

[0014] Optionally, when the target communication protocol corresponding to the communication message set is the S1AP protocol, the target identification method is:

[0015] For each communication message in the communication message set, detecting whether the communication message is a non-access layer NAS communication message;

[0016] In the case where the communication message is a NAS communication message, a target network element identifier is obtained in the communication message, and a corresponding target interface IP is determined according to the target network element identifier.

[0017] If the communication message is not a NAS communication message, delete the communication message to update the communication message set;

[0018] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0019] Optionally, when the target communication protocol corresponding to the communication message set is the Diameter protocol or the SGS application SGSAP protocol, the target identification method is:

[0020] For each communication message in the communication message set, in the communication message, obtain a target parameter value, determine a target network element identifier corresponding to the target parameter value according to the target parameter value and a correspondence between a preset parameter value and a network element identifier, and determine a corresponding target interface IP according to the target network element identifier;

[0021] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0022] Optionally, when the target communication protocol corresponding to the communication message set is the GTP-C protocol, the target identification method is:

[0023] For each communication message in the communication message set, obtain the target UE bearer information in the communication message, detect whether there is a reference communication message including the target UE bearer information in the communication message set corresponding to the S1AP protocol, and when there is a reference communication message including the target UE bearer information, determine the network element identifier corresponding to the reference communication message as the target network element identifier corresponding to the communication message, determine the corresponding target interface IP according to the target network element identifier, and when there is no reference communication message including the target UE bearer information, delete the communication message to update the communication message set;

[0024] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0025] Optionally, determining the corresponding target interface IP according to the target network element identifier includes:

[0026] Obtaining a message transmission direction of the communication message;

[0027] When the message transmission direction is the message outgoing direction, obtaining the source IP in the communication message, and determining the source IP as the target interface IP;

[0028] When the message transmission direction is the message incoming direction, the target IP in the communication message is obtained, and the destination IP is determined as the target interface IP.

[0029] Optionally, the method further includes:

[0030] For each communication message set, obtaining a stream control transmission protocol SCTP heartbeat message set corresponding to the communication message set;

[0031] According to the coupling identifier corresponding to each SCTP heartbeat message, the SCTP heartbeat message set is divided to obtain multiple subsets;

[0032] Determine the reference interface IP corresponding to each SCTP heartbeat message in each subset, and obtain at least one reference interface IP set;

[0033] For each reference interface IP set, when there is a target interface IP set that partially overlaps with the reference interface IP set, the reference interface IP set and the target interface IP set are merged to obtain a new target interface IP set, so as to update the target correspondence based on the new target interface IP set.

[0034] In a second aspect, the present application provides a data processing device, the device comprising:

[0035] An acquisition unit, used for periodically acquiring communication messages to be used;

[0036] A determination unit, used to determine a target communication protocol corresponding to the communication message;

[0037] A division unit, used to divide the communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets;

[0038] An identification unit, configured to determine a target identification method to be used for each communication message set, identify the communication message set using the target identification method, and obtain at least one target corresponding relationship, wherein the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set;

[0039] The sending unit is used to send the target corresponding relationship to the diversion device, so that the diversion device diverts the received communication messages based on the target corresponding relationship and sends the diverted communication messages to the message processing device.

[0040] Optionally, the determining unit is used to:

[0041] Parsing the communication message to obtain a target port number in the communication message;

[0042] The target communication protocol corresponding to the communication message is determined according to the target port number and the correspondence between the preset port number and the communication protocol.

[0043] Optionally, when the target communication protocol corresponding to the communication message set is the S1AP protocol, the identification unit is used to:

[0044] For each communication message in the communication message set, detecting whether the communication message is a non-access layer NAS communication message;

[0045] In the case where the communication message is a NAS communication message, a target network element identifier is obtained in the communication message, and a corresponding target interface IP is determined according to the target network element identifier.

[0046] If the communication message is not a NAS communication message, delete the communication message to update the communication message set;

[0047] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0048] Optionally, when the target communication protocol corresponding to the communication message set is the Diameter protocol or the SGSAP protocol, the identification unit is used to:

[0049] For each communication message in the communication message set, in the communication message, obtain a target parameter value, determine a target network element identifier corresponding to the target parameter value according to the target parameter value and a correspondence between a preset parameter value and a network element identifier, and determine a corresponding target interface IP according to the target network element identifier;

[0050] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0051] Optionally, when the target communication protocol corresponding to the communication message set is the GTP-C protocol, the identification unit is used to:

[0052] For each communication message in the communication message set, obtain the target UE bearer information in the communication message, detect whether there is a reference communication message including the target UE bearer information in the communication message set corresponding to the S1AP protocol, and when there is a reference communication message including the target UE bearer information, determine the network element identifier corresponding to the reference communication message as the target network element identifier corresponding to the communication message, determine the corresponding target interface IP according to the target network element identifier, and when there is no reference communication message including the target UE bearer information, delete the communication message to update the communication message set;

[0053] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0054] Optionally, the identification unit is used to:

[0055] Obtaining a message transmission direction of the communication message;

[0056] When the message transmission direction is the message outgoing direction, obtaining the source IP in the communication message, and determining the source IP as the target interface IP;

[0057] When the message transmission direction is the message incoming direction, the target IP in the communication message is obtained, and the destination IP is determined as the target interface IP.

[0058] Optionally, the device further comprises a supplementing unit, wherein the supplementing unit is configured to:

[0059] For each communication message set, obtaining the SCTP heartbeat message set corresponding to the communication message set;

[0060] According to the coupling identifier corresponding to each SCTP heartbeat message, the SCTP heartbeat message set is divided to obtain multiple subsets;

[0061] Determine the reference interface IP corresponding to each SCTP heartbeat message in each subset, and obtain at least one reference interface IP set;

[0062] For each reference interface IP set, when there is a target interface IP set that partially overlaps with the reference interface IP set, the reference interface IP set and the target interface IP set are merged to obtain a new target interface IP set, so as to update the target correspondence based on the new target interface IP set.

[0063] In a third aspect, the present application provides a data processing device, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; at least one memory connected to the at least one bus, wherein the processor is configured to:

[0064] Periodically obtain communication messages to be used;

[0065] Determining a target communication protocol corresponding to the communication message;

[0066] Classifying communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets;

[0067] For each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set;

[0068] The target correspondence is sent to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

[0069] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned data processing method when executed by a processor.

[0070] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: In the embodiment of the present application, the existing communication messages are periodically collected, and the target communication protocols corresponding to these communication messages are determined. Afterwards, the communication messages corresponding to the same target communication protocol are divided into the same communication message set to obtain multiple communication message sets. For each communication message set, the target identification method is determined according to the target communication protocol corresponding to the communication message set, and the correspondence between the preset communication protocol and the identification method, and the communication message set is identified using the target identification method to obtain at least one target correspondence, wherein the target correspondence is the correspondence between the network element identifier and the interface IP set. Finally, the target correspondence is sent to the diversion device so that the diversion device diverts the received communication message based on the target correspondence, and sends the diverted communication message to the message processing device. In the embodiment of the present application, the correspondence between the new network element identifier and the interface IP set is formed by periodically analyzing the existing communication messages, so that the diversion device diverts based on the new correspondence, which avoids the problem of diversion errors caused by changes in the interface IP to a certain extent, and improves the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0072] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0073] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0074] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;

[0075] Figure 2 A flowchart of an identification method corresponding to the S1AP protocol provided in an embodiment of the present application;

[0076] Figure 3 A flowchart of a protocol corresponding identification method provided in an embodiment of the present application;

[0077] Figure 4A schematic diagram of a flow chart of a method for identifying a GTP-C protocol provided in an embodiment of the present application;

[0078] Figure 5 A flowchart of another method for determining an interface IP provided in an embodiment of the present application;

[0079] Figure 6 A flow chart of a communication protocol determination method provided in an embodiment of the present application;

[0080] Figure 7 A flowchart of an IP set supplement method provided in an embodiment of the present application;

[0081] Figure 8 A schematic diagram of a data processing device provided in an embodiment of the present application;

[0082] Fig. 9 A schematic diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0084] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0085] In the embodiment of the present application, since the present application establishes a correspondence between the network element identifier and the interface IP set based on the communication message at regular intervals, when the interface IP corresponding to the network element changes, it will be monitored in time and a new correspondence will be established, which to a certain extent avoids the problem of diversion errors caused by changes in the interface IP and improves the efficiency of data processing.

[0086] In summary, the embodiment of the present application provides a data processing method, which to a certain extent avoids the problem of diversion errors caused by changes in interface IP and improves the efficiency of data processing. Figure 1 As shown, the specific steps include:

[0087] Step 101: periodically obtain communication messages to be used.

[0088] Among them, a communication message is an information unit transmitted between the sender and the receiver during the communication process. A communication message usually has a certain format and structure, including a header and a body. The header contains control information related to the message, such as the source address, destination address, and the port number used; the body contains the actual data content.

[0089] In this step, the data processing device may periodically obtain communication messages from the diversion device. For example, the diversion device stores a large number of communication messages. When the data processing device needs to obtain communication messages, these communication messages may be copied in the diversion device.

[0090] The data processing device is a device that processes communication messages, and may be a server, an intelligent device, etc. The traffic distribution device is a device used in a communication network, which may receive and process communication messages sent by other devices, and may also send communication messages to other devices.

[0091] Step 102, determining the target communication protocol corresponding to the communication message.

[0092] Among them, the communication protocol refers to the rules and agreements followed by both parties in the communication process in order to achieve effective and reliable data transmission.

[0093] In this step, the data processing device can analyze the format, field content, specific identification and other relevant data of the communication message to obtain the target protocol characteristics corresponding to the communication message, and determine the target communication protocol corresponding to the target protocol characteristics according to the target protocol characteristics and the corresponding relationship between the protocol characteristics and the communication message, and thus obtain the target communication protocol corresponding to the communication message. Of course, since the communication protocol is associated with the port number, the target port number can be obtained in the communication message, and the target communication protocol corresponding to the target port number can be determined according to the target port number and the corresponding relationship between the port number and the communication protocol, and thus obtain the target communication protocol corresponding to the communication message. For example, when the target port number in the communication message is UDP port (User Datagram Protocol Port) number 2123, the communication protocol corresponding to the communication message is GTP-C protocol (GTP-Control Plane Protocol); when the target port number in the communication message is SCTP port (Stream Control Transmission Protocol Port) number 29118, the communication protocol corresponding to the communication message is SGSAP protocol (SGS application protocol); when the target port number in the communication message is SCTP port number 36412, the communication protocol corresponding to the communication message is S1AP protocol (S1 application protocol); when the target port number in the communication message is SCTP port 3868, the communication protocol corresponding to the communication message is Diameter protocol (Mobile Authentication and Billing Protocol, Diameter Protocol).

[0094] In addition, this step may also use other methods to determine the target communication protocol corresponding to the communication message, and this step is not limited to this.

[0095] Step 103, classifying the communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets.

[0096] Wherein, each communication message in the communication message set corresponds to the same communication protocol.

[0097] In practice, since the interface corresponds to the communication protocol, that is, the interface only receives the communication message of the corresponding communication protocol, each communication message in the communication message set substantially corresponds to the same type of interface. For example, the MME (Mobility Management Entity) network element includes the S1-MME interface, the S6a interface, the SGs interface, and the S11 interface. Among them, the S1-MME interface corresponds to the S1AP protocol and is used to receive the communication message of the S1AP protocol, the S6a interface corresponds to the Diameter protocol and is used to receive the communication message of the Diameter protocol, the SGs interface corresponds to the SGSAP protocol and is used to receive the communication message of the SGSAP protocol, and the S11 interface corresponds to the GTP-C protocol and is used to receive the communication message of the GTP-C protocol.

[0098] It should be noted that, since there is a one-to-one correspondence between interfaces and communication protocols, this step can also obtain the interface corresponding to each communication message, and classify the communication messages corresponding to the same interface into the same communication message set to obtain multiple communication message sets.

[0099] Step 104: for each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship.

[0100] The target corresponding relationship is the corresponding relationship between the network element identifier and the interface IP set, that is, one network element identifier corresponds to one interface IP set.

[0101] In this step, since different identification methods are used for communication messages corresponding to different protocols, the target identification method corresponding to the target communication protocol, i.e., the target identification method to be used, can be determined based on the target communication protocol corresponding to the communication message set and the corresponding relationship between the communication protocol and the identification method. Of course, since the interface corresponding to each communication message in the communication message set is the same, the target identification method corresponding to the target interface, i.e., the target identification method to be used, can also be determined based on the target interface corresponding to the communication message set and the corresponding relationship between the interface and the identification method.

[0102] After determining the target identification method corresponding to the communication message set, the communication message set is identified using the target identification method to obtain a corresponding relationship between at least one network element identifier and an interface IP set.

[0103] In this step, since it may be determined that the same network element identifier corresponds to multiple interface IP sets, for subsequent convenience, the interface IP sets corresponding to the same network element identifier can also be aggregated to obtain the total interface IP set corresponding to each network element identifier.

[0104] Step 105: Send the target correspondence to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

[0105] In practice, the traffic distribution device and the message processing device often form a cluster, where the traffic distribution device is the control node in the cluster, which is used to receive communication messages sent by other external devices and send these communication messages to the processing nodes in the cluster. The message processing device is the processing node in the cluster, which is used to process the received communication messages.

[0106] In this step, the data processing device can send the target correspondence to the diversion device. When the diversion device receives the target correspondence, it uses the target correspondence to update the existing correspondence. After that, when the diversion device receives the communication message, it can use the target correspondence to divert the received communication message, obtain the diversion results, and send these diversion results to the corresponding processing device for processing.

[0107] In an embodiment of the present application, existing communication messages are periodically collected, and the target communication protocols corresponding to these communication messages are determined. Afterwards, the communication messages corresponding to the same target communication protocol are divided into the same communication message set to obtain multiple communication message sets. For each communication message set, the target identification method is determined according to the target communication protocol corresponding to the communication message set, and the correspondence between the preset communication protocol and the identification method, and the communication message set is identified using the target identification method to obtain at least one target correspondence, wherein the target correspondence is the correspondence between the network element identifier and the interface IP set. Finally, the target correspondence is sent to the diversion device so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device. In an embodiment of the present application, the correspondence between the new network element identifier and the interface IP set is formed by periodically analyzing the existing communication messages, so that the diversion device diverts based on the new correspondence, which avoids the problem of diversion errors caused by changes in the interface IP to a certain extent, and improves the efficiency of data processing.

[0108] In an embodiment of the present application, when the target communication protocol corresponding to the communication message set is the S1AP protocol, a target identification method to be used is determined according to the S1AP protocol, and the communication message set is identified using the target identification method. Therefore, an embodiment of the present application provides an identification method corresponding to the S1AP protocol, which is as follows Figure 2 As shown, the specific steps are:

[0109] Step 201: for each communication message in the communication message set, detect whether the communication message is a NAS communication message.

[0110] Among them, NAS (Non-Access Stratum) communication messages mainly include control information related to transmission and mobility management, session management, user authentication, etc. They interact between the core network and user equipment to achieve various management and control functions for mobile terminals.

[0111] In this step, since only NAS communication messages contain network element identifiers, and the communication set is not entirely NAS communication messages, each communication message in the communication set needs to be detected to determine whether the communication message to be detected is a NAS communication message.

[0112] Since NAS communication messages usually involve information related to mobility management, session management, registration, etc., it is possible to determine whether the communication message is a NAS communication message by detecting the content of the communication message. For example, the content in the communication message is obtained, and the content is analyzed to determine whether it is a preset content. When the content is the preset content, it is determined that the communication message is a NAS communication message, and when the content is not the preset content, it is determined that the communication message is not a NAS communication message. The preset content is content related to mobility management, session management, user identity authentication, etc. Or by analyzing whether the format of the communication message is a preset format, when the format of the communication message is the preset format, it is determined that the communication message is a NAS communication message, and when the format of the communication message is not the preset format, it is determined that the communication message is not a NAS communication message. The preset format is the format of the NAS communication message. This step can also use other methods to detect whether the communication message is a NAS communication message, which is not limited here.

[0113] Step 202: When the communication message is a NAS communication message, a target network element identifier is obtained from the communication message, and a corresponding target interface IP is determined according to the target network element identifier.

[0114] In this step, when the communication message is a NAS communication message, it means that the communication message contains the target network element identifier, and the field corresponding to the target network element identifier in the communication message is obtained. In this field, the target network element identifier is obtained, and then the corresponding target interface IP is determined based on the target network element identifier.

[0115] Step 203: If the communication message is not a NAS communication message, the communication message is deleted to update the communication message set.

[0116] In this step, when the communication message is not a NAS communication message, it means that the communication message does not contain the target network element identifier, and the communication message can be deleted to update the communication message set.

[0117] Step 204: classify the target interface IPs corresponding to the same network element identifier in the communication message set into the same interface IP set, establish a correspondence between the network element identifier and the interface IP set, and obtain at least one target correspondence.

[0118] In this step, the data processing device can divide the target interface IPs corresponding to the same network element identifier in the communication message set into the same interface IP set, establish a correspondence between the network element identifier and the interface IP set, and obtain at least one target correspondence, that is, obtain a target correspondence.

[0119] In an embodiment of the present application, when the target communication protocol corresponding to the communication message set is the Diameter protocol or the SGSAP protocol, the target identification method to be used is determined according to the protocol, and the communication message set is identified using the target identification method. Therefore, an embodiment of the present application provides an identification method corresponding to a protocol, which is as follows: Figure 3 As shown, the specific steps include:

[0120] Step 301, for each communication message in the communication message set, obtain the target parameter value in the communication message, determine the target network element identifier corresponding to the target parameter value according to the correspondence between the target parameter value and the preset parameter value and the network element identifier, and determine the corresponding target interface IP according to the target network element identifier.

[0121] In this step, when the communication message uses the Diameter protocol or the SGSAP protocol, the communication message includes a target parameter value, and according to the target parameter value and the correspondence between the preset parameter value and the network element identifier, the corresponding target network element identifier can be determined. For example, when the communication message uses the Diameter protocol, the communication message includes an Origin-Host parameter value, and therefore, the field corresponding to the Origin-Host parameter value in the communication message can be obtained, and the Origin-Host parameter value can be obtained in the field, and then the corresponding target network element identifier can be determined according to the Origin-Host parameter value and the correspondence between the preset parameter value and the network element identifier. When the communication message uses the SGSAP protocol, the communication message includes an MME-Name parameter value, and therefore, according to the field corresponding to the MME-Name parameter value in the communication message, the MME-Name parameter value can be obtained in the field, and then the corresponding target network element identifier can be determined according to the MME-Name parameter value and the correspondence between the preset parameter value and the network element identifier.

[0122] After determining the target gateway identifier, the data processing device may determine the target interface IP corresponding to the network element identifier according to the network element identifier.

[0123] Step 302: classify the target interface IPs corresponding to the same network element identifier in the communication message set into the same interface IP set, establish a correspondence between the network element identifier and the interface IP set, and obtain at least one target correspondence.

[0124] This step is similar to step 202 and will not be described in detail here.

[0125] In the embodiment of the present application, when the target communication protocol corresponding to the communication message set is the GTP-C protocol, since the communication message in the communication message set does not include the network element identifier, it is necessary to indirectly obtain the target network element identifier corresponding to the communication message, and then determine the corresponding target interface IP according to the target network element identifier. Therefore, the embodiment of the present application provides a method for identifying the GTP-C protocol, the method is as follows Figure 4 As shown, the specific steps include:

[0126] Step 401: For each communication message in the communication message set, obtain the target UE bearer information in the communication message.

[0127] The UE (User Equipment) bearer information is used to convey the relevant configuration and status information about the bearer between the UE and the network, mainly including the bearer identifier, bearer type, QoS parameters, transmission network layer address and other information.

[0128] In this step, for each communication message in the communication message set, the communication message is analyzed, the UE bearer information in the communication message is obtained, and it is determined as the target UE bearer information.

[0129] Step 402: Detect whether there is a reference communication message including target UE bearer information in the communication message set corresponding to the S1AP protocol.

[0130] In this step, in the communication message set corresponding to the S1AP protocol, the UE bearer information of each communication message in the set is obtained, and it is detected whether there is UE bearer information that is the same as the target UE bearer information. When it exists, the corresponding communication message is determined to be a reference communication message including the target UE bearer information. When it does not exist, it is determined that there is no reference communication message including the target UE bearer information.

[0131] Step 403: When there is a reference communication message including target UE bearer information, the network element identifier corresponding to the reference communication message is determined as the target network element identifier corresponding to the communication message, and the corresponding target interface IP is determined according to the target network element identifier.

[0132] In this step, due to Figure 2The shown embodiment has determined the network element identifier corresponding to each communication message in the communication message set corresponding to the S1AP protocol. Therefore, when there is a reference communication message including target UE bearer information, the network element identifier corresponding to the reference communication message is determined as the target network element identifier corresponding to the communication message. Thereafter, the corresponding target interface IP can be determined based on the target network element identifier.

[0133] Step 404: When there is no reference communication message including the target UE bearer information, the communication message is deleted to update the communication message set.

[0134] In this step, when there is no reference communication message including the target UE bearer information, it means that the target network element identifier corresponding to the communication message cannot be determined. Such a communication message is meaningless and can be deleted to update the communication message set.

[0135] Step 405, classify the target interface IPs corresponding to the same network element identifier in the communication message set into the same interface IP set, establish a correspondence between the network element identifier and the interface IP set, and obtain at least one target correspondence.

[0136] This step is similar to step 202 and will not be described in detail here.

[0137] In the embodiment of the present application, the message transmission direction of the communication message is obtained. When the message transmission direction is the message outgoing direction, the source IP in the communication message is determined as the target interface IP. When the message transmission direction is the message incoming direction, the destination IP in the communication message is determined as the target interface IP. Therefore, the embodiment of the present application provides an interface IP determination method, such as Figure 5 As shown, the specific steps include:

[0138] Step 501, obtaining the message transmission direction of the communication message.

[0139] In this step, the message transmission direction is relative to the network element corresponding to the target network element identifier. Specifically, when the transmission direction of the communication message is the message outgoing direction, the communication message is transmitted from the network element corresponding to the target network element identifier, that is, the network element is the output end of the communication message. When the transmission direction of the communication message is the message incoming direction, the communication message is input into the network element corresponding to the target network element identifier, that is, the network element is the input end of the communication message.

[0140] Step 502: When the message transmission direction is the message outgoing direction, the source IP in the communication message is obtained, and the source IP is determined as the target interface IP.

[0141] In this step, when the message transmission direction is the message outgoing direction, it means that the network element corresponding to the target network element identifier is the output end of the communication message. The source IP in the communication message can be obtained and the source IP is determined as the target interface IP.

[0142] Step 503: When the message transmission direction is the message incoming direction, the target IP in the communication message is obtained, and the destination IP is determined as the target interface IP.

[0143] In this step, when the message transmission direction is the message incoming direction, it means that the network element corresponding to the target network element identifier is the input end of the communication message. The target IP in the communication message can be obtained and the target IP is determined as the target interface IP.

[0144] In the embodiment of the present application, the communication message can also be parsed to obtain the target port number in the communication message, and then the target communication protocol corresponding to the communication message is determined according to the target port number. Therefore, the embodiment of the present application provides a communication protocol determination method, which method is as follows: Figure 6 As shown, the specific steps include:

[0145] Step 601, parse the communication message to obtain the target port number in the communication message.

[0146] In this step, since the port number is usually set in the relevant field of the communication message header, the port number can be obtained by identifying the relevant field. Of course, the port number in the communication message can also be extracted with the help of some network analysis tools or protocol analysis tools. Of course, the present application can also use other methods to obtain the port number, which is not limited here.

[0147] Step 602, determining the target communication protocol corresponding to the communication message according to the target port number and the preset correspondence between the port number and the communication protocol.

[0148] In this step, the correspondence between the port number and the communication protocol is stored in the data processing device, so that the target communication protocol corresponding to the communication message can be determined according to the target port number and the correspondence.

[0149] In the embodiment of the present application, in order to make the final corresponding relationship more accurate, the SCTP heartbeat message set corresponding to each communication message set can also be obtained, and each SCTP heartbeat message set is analyzed to obtain a reference interface IP set, and then the interface IP set is supplemented according to the reference interface IP set. Therefore, the embodiment of the present application provides an IP set supplement method, which is as follows: Figure 7 As shown, the specific steps include:

[0150] Step 701: For each communication message set, obtain the SCTP heartbeat message set corresponding to the communication message set.

[0151] Among them, the SCTP heartbeat message is a message used to detect the link status.

[0152] In this step, since the interface corresponding to each communication message set is the same, obtaining the SCTP heartbeat message set corresponding to each communication message set is essentially obtaining the SCTP heartbeat message set corresponding to the same interface. Therefore, this step can obtain the SCTP heartbeat message set corresponding to the same interface, and then, according to the corresponding relationship between the interface and the communication message set, determine the communication message set corresponding to the SCTP heartbeat message set, and obtain the SCTP heartbeat message set corresponding to the communication message set.

[0153] Step 702: Divide the SCTP heartbeat message set according to the coupling identifier corresponding to each SCTP heartbeat message to obtain multiple subsets.

[0154] Among them, each SCTP heartbeat message has its unique coupling identifier, and the SCTP heartbeat message will be associated with the corresponding coupling identifier when it is sent and received, so that the system can accurately identify and process heartbeat messages of different couplings. In actual communication systems, there are often multiple different couplings. For example, a server may establish links with multiple clients at the same time, or a network device may have links with multiple other devices. The coupling identifier is used to indicate its corresponding coupling.

[0155] In this step, the SCTP heartbeat messages corresponding to the same coupling identifier in the SCTP heartbeat message set may be divided into the same set to obtain multiple subsets.

[0156] Step 703: Determine the reference interface IP corresponding to each SCTP heartbeat message in each subset to obtain a reference interface IP set.

[0157] In this step, the method for determining the reference interface IP corresponding to each SCTP heartbeat message is the same as Figure 5 The method is similar to that of , which will not be described here one by one. For each subset, determine the reference interface IP corresponding to each SCTP heartbeat message in the subset, and then aggregate the reference interface IPs corresponding to the same subset to obtain a reference interface IP set.

[0158] Step 704, for each reference interface IP set, when there is a target interface IP set that partially overlaps with the reference interface IP set, the reference interface IP set and the target interface IP set are merged to obtain a new target interface IP set, so as to update the target correspondence based on the new target interface IP set.

[0159] In this step, for each reference interface IP set, it is detected whether the reference interface IP set and the interface IP set have partial overlap. When there is a target interface IP set that partially overlaps with the reference interface IP set, it means that the network element identifiers corresponding to the reference interface IP set and the target interface IP set are the same, and the reference interface IP set and the target interface IP set need to be merged to obtain a new target interface IP set. Afterwards, the target corresponding relationship is established using the new target interface IP set.

[0160] Of course, in order to reduce the amount of calculation, you can also obtain the communication message set corresponding to the reference interface IP set, and determine the interface IP set corresponding to the communication message set. Among these interface IP sets, check whether there is a target interface IP set that partially overlaps with the reference interface IP set. If so, merge the target interface IP set and the reference interface IP set to obtain a new interface IP set.

[0161] like Figure 8 As shown, an embodiment of the present application provides a data processing device, which corresponds to the method embodiment and specifically includes:

[0162] An acquisition unit 801 is used to periodically acquire communication messages to be used;

[0163] A determination unit 802, configured to determine a target communication protocol corresponding to the communication message;

[0164] A division unit 803, configured to divide communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets;

[0165] The identification unit 804 is used to determine a target identification method to be used for each communication message set, and use the target identification method to identify the communication message set to obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set;

[0166] The sending unit 805 is used to send the target correspondence relationship to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence relationship and sends the diverted communication messages to the message processing device.

[0167] Optionally, the determining unit 802 is configured to:

[0168] Parsing the communication message to obtain a target port number in the communication message;

[0169] The target communication protocol corresponding to the communication message is determined according to the target port number and the correspondence between the preset port number and the communication protocol.

[0170] Optionally, when the target communication protocol corresponding to the communication message set is the S1AP protocol, the identification unit 804 is configured to:

[0171] For each communication message in the communication message set, detecting whether the communication message is a non-access layer NAS communication message;

[0172] In the case where the communication message is a NAS communication message, a target network element identifier is obtained in the communication message, and a corresponding target interface IP is determined according to the target network element identifier.

[0173] If the communication message is not a NAS communication message, delete the communication message to update the communication message set;

[0174] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0175] Optionally, when the target communication protocol corresponding to the communication message set is the Diameter protocol or the GSAP protocol, the identification unit 804 is configured to:

[0176] For each communication message in the communication message set, in the communication message, obtain a target parameter value, determine a target network element identifier corresponding to the target parameter value according to the target parameter value and a correspondence between a preset parameter value and a network element identifier, and determine a corresponding target interface IP according to the target network element identifier;

[0177] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0178] Optionally, when the target communication protocol corresponding to the communication message set is the GTP-C protocol, the identification unit 804 is configured to:

[0179] For each communication message in the communication message set, obtain the target UE bearer information in the communication message, detect whether there is a reference communication message including the target UE bearer information in the communication message set corresponding to the S1AP protocol, and when there is a reference communication message including the target UE bearer information, determine the network element identifier corresponding to the reference communication message as the target network element identifier corresponding to the communication message, determine the corresponding target interface IP according to the target network element identifier, and when there is no reference communication message including the target UE bearer information, delete the communication message to update the communication message set;

[0180] The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

[0181] Optionally, the identification unit 804 is configured to:

[0182] Obtaining a message transmission direction of the communication message;

[0183] When the message transmission direction is the message outgoing direction, obtaining the source IP in the communication message, and determining the source IP as the target interface IP;

[0184] When the message transmission direction is the message incoming direction, the target IP in the communication message is obtained, and the destination IP is determined as the target interface IP.

[0185] Optionally, the device further includes a supplementing unit 806, and the supplementing unit 806 is configured to:

[0186] For each communication message set, obtaining the SCTP heartbeat message set corresponding to the communication message set;

[0187] According to the coupling identifier corresponding to each SCTP heartbeat message, the SCTP heartbeat message set is divided to obtain multiple subsets;

[0188] Determine the reference interface IP corresponding to each SCTP heartbeat message in each subset, and obtain at least one reference interface IP set;

[0189] For each reference interface IP set, when there is a target interface IP set that partially overlaps with the reference interface IP set, the reference interface IP set and the target interface IP set are merged to obtain a new target interface IP set, so as to update the target correspondence based on the new target interface IP set.

[0190] like Fig. 9 As shown, an embodiment of the present application provides a data processing device, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.

[0191] Memory 903, used for storing computer programs;

[0192] In one embodiment of the present application, the processor 901 is used to implement the data processing method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 903, including:

[0193] Periodically obtain communication messages to be used;

[0194] Determining a target communication protocol corresponding to the communication message;

[0195] Classifying communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets;

[0196] For each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set;

[0197] The target correspondence is sent to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

[0198] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps performed by the data processing method provided in any of the aforementioned method embodiments are implemented.

[0199] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0200] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0201] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0202] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data processing method, characterized in that: The method comprises: Periodically obtain communication messages to be used; Determining a target communication protocol corresponding to the communication message; Classifying communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets; For each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set; The target correspondence is sent to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

2. The method according to claim 1, characterized in that: The determining of the target communication protocol corresponding to the communication message includes: Parsing the communication message to obtain a target port number in the communication message; The target communication protocol corresponding to the communication message is determined according to the target port number and the correspondence between the preset port number and the communication protocol.

3. The method according to claim 1, characterized in that: When the target communication protocol corresponding to the communication message set is the S1 application S1AP protocol, the target identification method is: For each communication message in the communication message set, detecting whether the communication message is a non-access layer NAS communication message; In the case where the communication message is a NAS communication message, a target network element identifier is obtained in the communication message, and a corresponding target interface IP is determined according to the target network element identifier; If the communication message is not a NAS communication message, delete the communication message to update the communication message set; The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

4. The method according to claim 1, characterized in that: When the target communication protocol corresponding to the communication message set is the Diameter protocol or the SGS application SGSAP protocol, the target identification method is: For each communication message in the communication message set, in the communication message, obtain a target parameter value, determine a target network element identifier corresponding to the target parameter value according to the target parameter value and a correspondence between a preset parameter value and a network element identifier, and determine a corresponding target interface IP according to the target network element identifier; The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

5. The method according to claim 3, characterized in that: When the target communication protocol corresponding to the communication message set is the GTP control plane GTP-C protocol, the target identification method is: For each communication message in the communication message set, obtain the target UE bearer information in the communication message, detect whether there is a reference communication message including the target UE bearer information in the communication message set corresponding to the S1AP protocol, and when there is a reference communication message including the target UE bearer information, determine the network element identifier corresponding to the reference communication message as the target network element identifier corresponding to the communication message, determine the corresponding target interface IP according to the target network element identifier, and when there is no reference communication message including the target UE bearer information, delete the communication message to update the communication message set; The target interface IPs corresponding to the same network element identifier in the communication message set are divided into the same interface IP set, a corresponding relationship between the network element identifier and the interface IP set is established, and at least one target corresponding relationship is obtained.

6. The method according to claim 4 or 5, characterized in that: The determining, according to the target network element identifier, a corresponding target interface IP, includes: Obtaining a message transmission direction of the communication message; When the message transmission direction is the message outgoing direction, obtaining the source IP in the communication message, and determining the source IP as the target interface IP; When the message transmission direction is the message incoming direction, the target IP in the communication message is obtained, and the destination IP is determined as the target interface IP.

7. The method according to claim 1, characterized in that: The method further comprises: For each communication message set, obtaining a stream control transmission protocol SCTP heartbeat message set corresponding to the communication message set; According to the coupling identifier corresponding to each SCTP heartbeat message, the SCTP heartbeat message set is divided to obtain multiple subsets; Determine the reference interface IP corresponding to each SCTP heartbeat message in each subset, and obtain at least one reference interface IP set; For each reference interface IP set, when there is a target interface IP set that partially overlaps with the reference interface IP set, the reference interface IP set and the target interface IP set are merged to obtain a new target interface IP set, so as to update the target correspondence based on the new target interface IP set.

8. A data processing device, characterized in that: The device comprises: An acquisition unit, used for periodically acquiring communication messages to be used; A determination unit, used to determine a target communication protocol corresponding to the communication message; A division unit, used to divide the communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets; An identification unit, configured to determine a target identification method to be used for each communication message set, identify the communication message set using the target identification method, and obtain at least one target corresponding relationship, wherein the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set; The sending unit is used to send the target corresponding relationship to the diversion device, so that the diversion device diverts the received communication messages based on the target corresponding relationship and sends the diverted communication messages to the message processing device.

9. A data processing device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; at least one memory connected to the at least one bus, wherein the processor is configured to: Periodically obtain communication messages to be used; Determining a target communication protocol corresponding to the communication message; Classifying communication messages corresponding to the same target communication protocol into the same communication message set to obtain multiple communication message sets; For each communication message set, determine a target identification method to be used, use the target identification method to identify the communication message set, and obtain at least one target corresponding relationship, where the target corresponding relationship is a corresponding relationship between a network element identifier and an interface IP set; The target correspondence is sent to the diversion device, so that the diversion device diverts the received communication messages based on the target correspondence, and sends the diverted communication messages to the message processing device.

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