Data processing method, device and storage medium
By analyzing the core network process through programmatic analysis, automatically constructing concurrent test flows and modifying cell fields, the problem of being unable to simulate tens of millions of users in the 4G core network in the existing technology is solved, and efficient testing process automation and authenticity is achieved.
Patent Information
- Application Number
- CN202211031011.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-08-26
AI Technical Summary
The prior art cannot effectively construct and simulate tens of millions of user traffic on the 4G core network, and existing testing tools cannot handle complex signaling processes and cell fields modifications.
Through programmatic analysis of the core network process, the multi-user concurrent test flow structure is automatically completed, and important cell fields are parsed and modified by packet to generate processed packets.
It realizes the integrity and authenticity of complex processes, automates the multi-user concurrent testing, liberating a large amount of manpower.
Smart Images

Figure CN115278747B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method, device, and storage medium. Background Art
[0002] Product testing requires simulating tens of millions of user traffic on the 4G core network. However, during test plan development, the 4G core network processes are numerous and complex, making it impossible to manually simulate tens of millions of user traffic. Existing testing tools are also unable to handle the modification and concurrency of more than a few hundred signaling processes. Furthermore, the signaling processes contain numerous user-related cell fields, making it impossible to incrementally modify all of these fields. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a data processing method, device, and storage medium to program the parsing process of complex core network processes, complete the construction of multi-user concurrent test flows, and be able to modify all important cell fields in the incremental process to ensure the integrity and authenticity of the process. The specific technical solution is as follows:
[0004] In a first aspect, the present application provides a data processing method, the method comprising:
[0005] Reading a message to be processed, wherein the message to be processed includes one or more data packets;
[0006] Parsing each of the data packets to determine the protocol type of each of the data packets;
[0007] According to the protocol type of each data packet, obtaining the to-be-incremented cell field corresponding to the protocol type in each data packet;
[0008] Obtaining the incremented quantity corresponding to the cell field to be incremented;
[0009] The field of the cell to be incremented corresponding to the incremented number is added to the data packet to generate a processed message.
[0010] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0011] When the protocol type of the data packet is S1AP, obtain the eNB-IP, eNB-s1apID, MME-IP, MME-s1apID, imsi, msisdn, imei, tac, and cellid fields.
[0012] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0013] When the protocol type of the data packet is Diameter, obtain the HSS-IP, MME-IP, session-ID, imsi, msisdn, imei, tac, and cellid fields.
[0014] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0015] When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet;
[0016] When the protocol type of the data packet is S11, obtain the MME-IP, SGW-IP, tunnel-mme teid / ip, tunnel-sgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0017] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0018] When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet;
[0019] When the protocol type of the data packet is S5S8, obtain the SGW-IP, PGW-IP, tunnel-sgw teid / ip, tunnel-pgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0020] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0021] When the protocol type of the data packet is GTPv1-C, obtain the SGSN-IP, GGSN-IP, tunnel-sgsnteid / ip, tunnel-ggsn teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0022] In a possible implementation, obtaining, according to the protocol type of each data packet, a to-be-incremented information element field corresponding to the protocol type in each data packet includes:
[0023] When the protocol type of the data packet is GTPU, the SGSN-IP, GGSN-IP, TEID, inner SIP / DIP, imsi, msisdn, imei, tac, and cellid fields are obtained.
[0024] In a possible implementation, generating the processed message includes:
[0025] Traversing the packets to be processed, and determining whether a field of cells to be incremented corresponding to the incremented number is added in each packet;
[0026] If the field of the information element to be incremented corresponding to the incremented number is added in each of the data packets, the parsing of each of the data packets is terminated, and the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the field of the information element to be incremented corresponding to the incremented number is obtained;
[0027] The processed message is generated according to the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the to-be-incremented cell field corresponding to the incremented number is increased.
[0028] In a second aspect, the present application further provides a data processing device, comprising:
[0029] A reading module, configured to read a message to be processed, wherein the message to be processed includes one or more data packets;
[0030] A parsing module, configured to parse each of the data packets and determine the protocol type of each of the data packets;
[0031] An acquisition module, configured to acquire, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet;
[0032] The acquisition module is further used to obtain the incremented quantity corresponding to the cell field to be incremented;
[0033] The generating module is used to add the to-be-incremented cell fields corresponding to the incremented quantity in the data packet to generate a processed message.
[0034] In a third aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the method according to any one of claims 1 to 8.
[0035] The method provided in the embodiment of the present application includes: reading a message to be processed, the message to be processed includes one or more data packets; parsing each data packet to determine the protocol type of each data packet; obtaining the to-be-incremented cell field corresponding to the protocol type in each data packet according to the protocol type of each data packet; obtaining the incremented number corresponding to the to-be-incremented cell field; adding the to-be-incremented cell field corresponding to the incremented number in the data packet to generate a processed message. By programming the parsing process of complex core network processes, the construction of multi-user concurrent test flows can be automatically completed, freeing up a lot of manpower. By parsing packet by packet, all important cell fields in the incremental process can be modified, ensuring the integrity and authenticity of the process. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 A flow chart showing an embodiment of a data processing method provided by the present application is shown;
[0038] Figure 2 A flowchart showing another embodiment of a data processing method provided by the present application is shown;
[0039] Figure 3 A structural diagram of a data processing device provided by the present application is shown. DETAILED DESCRIPTION
[0040] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0041] First, some terms that may appear in the embodiments of this application are explained.
[0042] pcap, the full name of which is packet capture, is a commonly used data packet storage format.
[0043] The Mobility Management Entity (MME) is responsible for mobility management and control, including user authentication, paging, location update, and handover.
[0044] The Serving Gateway (SGW) is mainly responsible for the management of mobile phone context sessions and the routing and forwarding of data packets, which is equivalent to a data transfer station.
[0045] The Packet Data Network Gateway (PGW) is mainly responsible for connecting to the external network. It also undertakes functions such as mobile phone session management and bearer control, as well as IP address allocation and billing support.
[0046] The Home Subscriber Server (HSS) is a central database that contains user-related and subscription-related information. Its functions include mobility management, call and session establishment support, user authentication, and access authorization.
[0047] The base station (eNodeB, eNB) is the bridge between the user UE and the core network.
[0048] The International Mobile Subscriber Identification Number (IMSI) is a symbol that distinguishes mobile users and can be used to distinguish valid information of mobile users.
[0049] MSISDN, short for Mobile Subscriber International ISDN / PSTN number, refers to the number a calling user needs to dial to call a mobile user in the GSM PLMN.
[0050] International Mobile Equipment Identity (IMEI) is used to identify each individual mobile phone in the GSM mobile network.
[0051] Tracking area code (TAC) of cell served by neighbor eNB: In LTE networks, this parameter defines the tracking area code to which a cell belongs. A tracking area can cover one or more cells.
[0052] CELLID, the ID number of the mobile phone signal coverage area.
[0053] The Diameter protocol is considered by the IETF's AAA working group as the next-generation AAA protocol standard. The Diameter protocol supports authentication, authorization, and accounting for mobile IP, NAS requests, and mobile agents.
[0054] eNB-IP, eNB-s1apID, MME-IP, MME-s1apID, HSS-IP, MME-IP, session-ID, MME-IP, SGW-IP, tunnel-mme teid / ip, tunnel-sgw teid / ip, user-ip, PGW-IP, tunnel-pgw teid / ip, SGSN-IP, GGSN-IP, tunnel-sgsn teid / ip, tunnel-ggsn teid / ip, SGSN-IP, GGSN-IP, TEID, inner SIP / DIP, imsi, msisdn, imei, tac, cellid. For the specific meaning of the above fields, please refer to "3GPPTS23.401", "3GPP TS36.413", "3GPP TS36.414》、《3GPPTS29.274》、《3GPP TS29.272", "3GPPTS29.060", which will not be repeated here.
[0055] See Figure 1 , shows a flow chart of a method embodiment provided by an embodiment of the present application, which at least includes the following steps:
[0056] S110, reading the message to be processed.
[0057] In the embodiment of the present application, a message to be processed is read, the message to be processed includes one or more data packets, and only one message to be processed is read at a time. The message to be processed is an original pcap message that needs to be concurrently read.
[0058] S120, parsing each data packet and determining the protocol type of each data packet.
[0059] S130 , according to the protocol type of each data packet, obtaining the to-be-incremented cell field corresponding to the protocol type in each data packet.
[0060] In an embodiment of the present application, the number of packets in a message to be processed is obtained, and the packets are parsed one by one starting from the first packet. When parsing each packet, the protocol type of each packet is determined, and based on the protocol type of each packet, the to-be-incremented cell field corresponding to the protocol type is obtained in each packet.
[0061] Among them, such as Figure 2As shown, according to the protocol type of each data packet, obtaining the to-be-incremented cell field corresponding to the protocol type in each data packet mainly includes:
[0062] S131. When the protocol type of the data packet is S1AP, obtain the eNB-IP, eNB-s1apID, MME-IP, MME-s1apID, imsi, msisdn, imei, tac, and cellid fields.
[0063] S132: When the protocol type of the data packet is Diameter, obtain the HSS-IP, MME-IP, session-ID, imsi, msisdn, imei, tac, and cellid fields.
[0064] S133: When the protocol type of the data packet is GTPv1-C, obtain the SGSN-IP, GGSN-IP, tunnel-sgsnteid / ip, tunnel-ggsnteid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0065] S134: When the protocol type of the data packet is GTPU, obtain the SGSN-IP, GGSN-IP, TEID, inner SIP / DIP, imsi, msisdn, imei, tac, and cellid fields.
[0066] S135: When the protocol type of the data packet is GTPv2, determine the protocol type of the data packet.
[0067] S136: When the protocol type of the data packet is S11, obtain the MME-IP, SGW-IP, tunnel-mme teid / ip, tunnel-sgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0068] S137: When the protocol type of the data packet is S5S8, obtain the SGW-IP, PGW-IP, tunnel-sgw teid / ip, tunnel-pgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0069] The embodiment of the present application obtains the to-be-incremented cell field corresponding to the protocol type in each data packet according to the protocol type of each data packet, and can modify the cell field in a targeted manner without being restricted by the cell field format.
[0070] S140: Obtain the increment quantity corresponding to the cell field to be incremented.
[0071] In an embodiment of the present application, the increment quantity corresponding to the cell field to be incremented is obtained, that is, the increment quantity corresponding to the cell field that needs to be incremented is obtained.
[0072] S150: Add a corresponding number of to-be-incremented cell fields in the data packet to generate a processed message.
[0073] In an embodiment of the present application, after obtaining the to-be-incremented cell field corresponding to the protocol type and the incremented number corresponding to the to-be-incremented cell field in each data packet, the to-be-incremented cell field corresponding to the incremented number is added to the data packet to generate a processed message.
[0074] For example, if the incremental quantity corresponding to the user-related fields obtained is 50w, then the imsi, msisdn, and imei fields related to the user will be increased by 50w respectively in the data packet; if the incremental quantity corresponding to the eNB-related fields obtained is 5w, then the eNB-IP, eNB-s1apID, tac, and cellid fields related to the eNB will be increased by 5w respectively in the data packet.
[0075] The generated processed message mainly includes:
[0076] S151, traverse the messages to be processed, and determine whether the to-be-incremented cell field corresponding to the incremented number is added in each data packet.
[0077] S152, if the field of the to-be-incremented cell corresponding to the incremented number is added in each data packet, the parsing of each data packet is ended, and the header information of the message to be processed, the header information of each data packet and the data of each data packet after the field of the to-be-incremented cell corresponding to the incremented number is obtained.
[0078] S153 , generating a processed message according to the header information of the message to be processed, the header information of each data packet, and the data of each data packet after the to-be-incremented cell field is increased by the incremented number.
[0079] In an embodiment of the present application, after adding the to-be-incremented cell field corresponding to the incremented number in the data packet, it is necessary to traverse each data packet in the to-be-processed message to determine whether the to-be-incremented cell field corresponding to the incremented number is added in each data packet. If not, return to step S120; if so, obtain the header information of the to-be-processed message, the header information of each data packet, and the data of each data packet after adding the to-be-incremented cell field corresponding to the incremented number, and generate a processed message based on the header information of the to-be-processed message, the header information of each data packet, and the data of each data packet after adding the to-be-incremented cell field corresponding to the incremented number. The generated processed message is the signalling_new.pcap file.
[0080] In an embodiment of the present application, a message to be processed is read, and the message to be processed includes one or more data packets; each data packet is parsed to determine the protocol type of each data packet; based on the protocol type of each data packet, the to-be-incremented cell field corresponding to the protocol type in each data packet is obtained; the incremented number corresponding to the to-be-incremented cell field is obtained; and the to-be-incremented cell field corresponding to the incremented number is added to the data packet to generate a processed message. By programming the parsing process of complex core network processes, the construction of multi-user concurrent test flows can be automatically completed, freeing up a lot of manpower. By parsing packet by packet, all important cell fields in the incremental process can be modified, ensuring the integrity and authenticity of the process.
[0081] Next, a data processing device provided by the present application is introduced. The data processing device introduced below and the data processing method introduced above can refer to each other.
[0082] See Figure 3 , which shows a schematic structural diagram of a data processing device provided by the present application, the device comprising:
[0083] A reading module 301 is configured to read a message to be processed, wherein the message to be processed includes one or more data packets;
[0084] The parsing module 302 is used to parse each of the data packets and determine the protocol type of each of the data packets;
[0085] An acquisition module 303 is configured to acquire a to-be-incremented cell field in each of the data packets according to a protocol type of the data packets;
[0086] The acquisition module 303 is further configured to acquire the incremented quantity corresponding to the cell field to be incremented;
[0087] The generating module 304 is configured to add a field of cells to be incremented corresponding to the incremented number in the data packet to generate a processed message.
[0088] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0089] When the protocol type of the data packet is S1AP, obtain the eNB-IP, eNB-s1apID, MME-IP, MME-s1apID, imsi, msisdn, imei, tac, and cellid fields.
[0090] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0091] When the protocol type of the data packet is Diameter, obtain the HSS-IP, MME-IP, session-ID, imsi, msisdn, imei, tac, and cellid fields.
[0092] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0093] When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet;
[0094] When the protocol type of the data packet is S11, obtain the MME-IP, SGW-IP, tunnel-mme teid / ip, tunnel-sgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0095] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0096] When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet;
[0097] When the protocol type of the data packet is S5S8, obtain the SGW-IP, PGW-IP, tunnel-sgw teid / ip, tunnel-pgw teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0098] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0099] When the protocol type of the data packet is GTPv1-C, obtain the SGSN-IP, GGSN-IP, tunnel-sgsnteid / ip, tunnel-ggsn teid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
[0100] In the embodiment of the present application, when the acquisition module 303 acquires the to-be-incremented cell field in each data packet according to the protocol type of each data packet, it is specifically configured to:
[0101] When the protocol type of the data packet is GTPU, the SGSN-IP, GGSN-IP, TEID, inner SIP / DIP, imsi, msisdn, imei, tac, and cellid fields are obtained.
[0102] In the embodiment of the present application, when generating the processed message, the generating module 304 is specifically configured to:
[0103] Traversing the packets to be processed, and determining whether a field of cells to be incremented corresponding to the incremented number is added in each packet;
[0104] If the field of the information element to be incremented corresponding to the incremented number is added to each of the data packets, the parsing of each of the data packets is terminated, and the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the field of the information element to be incremented corresponding to the incremented number is obtained;
[0105] The processed message is generated according to the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the to-be-incremented cell field corresponding to the incremented number is increased.
[0106] An embodiment of the present application further provides a computer-readable storage medium having computer-executable instructions stored thereon, which, when executed by a computer, can implement the functions of any of the above-mentioned method embodiments.
[0107] In an embodiment of the present application, a message to be processed is read, and the message to be processed includes one or more data packets; each data packet is parsed to determine the protocol type of each data packet; based on the protocol type of each data packet, the to-be-incremented cell field corresponding to the protocol type in each data packet is obtained; the incremented number corresponding to the to-be-incremented cell field is obtained; and the to-be-incremented cell field corresponding to the incremented number is added to the data packet to generate a processed message. By programming the parsing process of complex core network processes, the construction of multi-user concurrent test flows can be automatically completed, freeing up a lot of manpower. By parsing packet by packet, all important cell fields in the incremental process can be modified, ensuring the integrity and authenticity of the process.
[0108] It should be noted that the same or similar parts between the various embodiments can be referred to each other. As for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0109] For the sake of simplicity, the aforementioned embodiments are described as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0110] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0111] The above description of the disclosed embodiments will enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one 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 application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
[0112] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: Reading a message to be processed, where the message to be processed includes one or more data packets; Parsing each of the data packets to determine the protocol type of each of the data packets; According to the protocol type of each data packet, obtaining a to-be-incremented cell field corresponding to the protocol type in each data packet; obtaining an incremented number corresponding to the to-be-incremented cell field; and adding the to-be-incremented cell field corresponding to the incremented number to the data packet to generate a processed message; After adding the to-be-incremented information element fields corresponding to the incremental number in the data packet, it is necessary to traverse each data packet in the message to be processed to determine whether the to-be-incremented information element fields corresponding to the incremental number are added in each data packet. If not, return to the parsing of each data packet to determine the protocol type of each data packet; if so, obtain the header information of the message to be processed, the header information of each data packet and the data of each data packet after adding the to-be-incremented information element fields corresponding to the incremental number, and generate a processed message based on the header information of the message to be processed, the header information of each data packet and the data of each data packet after adding the to-be-incremented information element fields corresponding to the incremental number.
2. The method according to claim 1, characterized in that The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is S1AP, obtain the eNB-IP, eNB-s1apID, MME-IP, MME-s1apID, imsi, msisdn, imei, tac, and cellid fields.
3. The method according to claim 1, characterized in that The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is Diameter, obtain the HSS-IP, MME-IP, session-ID, imsi, msisdn, imei, tac, and cellid fields.
4. The method according to claim 1, wherein The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet; When the protocol type of the data packet is S11, obtain the MME-IP, SGW-IP, tunnel-mmeteid / ip, tunnel-sgwteid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
5. The method according to claim 1, wherein The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is GTPv2, determining the protocol type of the data packet; When the protocol type of the data packet is S5S8, obtain the SGW-IP, PGW-IP, tunnel-sgwteid / ip, tunnel-pgwteid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
6. The method according to claim 1, characterized in that The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is GTPv1-C, obtain the SGSN-IP, GGSN-IP, tunnel-sgsnteid / ip, tunnel-ggsnteid / ip, user-ip, imsi, msisdn, imei, tac, and cellid fields.
7. The method according to claim 1, characterized in that The acquiring, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet includes: When the protocol type of the data packet is GTPU, the SGSN-IP, GGSN-IP, TEID, inner SIP / DIP, imsi, msisdn, imei, tac, and cellid fields are obtained.
8. The method according to any one of claims 1 to 7, characterized in that The generated processed message includes: Traversing the packets to be processed, and determining whether a field of a cell to be incremented corresponding to the incremented number is added in each packet; If the field of the information element to be incremented corresponding to the incremented number is added in each of the data packets, the parsing of each of the data packets is terminated, and the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the field of the information element to be incremented corresponding to the incremented number is obtained; The processed message is generated according to the header information of the message to be processed, the header information of each of the data packets, and the data of each of the data packets after the to-be-incremented cell field corresponding to the incremented number is increased.
9. A data processing device using the method according to any one of claims 1 to 8, characterized in that: The device comprises: A reading module, configured to read a message to be processed, wherein the message to be processed includes one or more data packets; A parsing module, configured to parse each of the data packets and determine the protocol type of each of the data packets; An acquisition module, configured to acquire, according to the protocol type of each data packet, a to-be-incremented cell field corresponding to the protocol type in each data packet; The acquisition module is further used to obtain the incremented quantity corresponding to the cell field to be incremented; The generating module is used to add the to-be-incremented cell fields corresponding to the incremented quantity in the data packet to generate a processed message.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for obtaining interface information of APIs
CN108664316A
Method, system and related device for analyzing pcap data message
CN109246117A
KR20190116811A