[go: up one dir, main page]

CN115278747B - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium

Info

Publication number
CN115278747B
CN115278747B CN202211031011.7A CN202211031011A CN115278747B CN 115278747 B CN115278747 B CN 115278747B CN 202211031011 A CN202211031011 A CN 202211031011A CN 115278747 B CN115278747 B CN 115278747B
Authority
CN
China
Prior art keywords
data packet
protocol type
message
processed
cell field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211031011.7A
Other languages
Chinese (zh)
Other versions
CN115278747A (en
Inventor
丁萌萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hengwei Intelligent Technology Co ltd
Original Assignee
Embedway Technologies Shanghai Corp
Shanghai Hengwei Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Embedway Technologies Shanghai Corp, Shanghai Hengwei Intelligent Technology Co ltd filed Critical Embedway Technologies Shanghai Corp
Priority to CN202211031011.7A priority Critical patent/CN115278747B/en
Publication of CN115278747A publication Critical patent/CN115278747A/en
Application granted granted Critical
Publication of CN115278747B publication Critical patent/CN115278747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例提供了一种数据处理方法、装置及存储介质,该方法包括:读取待处理报文,所述待处理报文包括一个或多个数据包;解析每个所述数据包,判断每个所述数据包的协议类型;根据每个所述数据包的协议类型,获取每个所述数据包中与所述协议类型对应的待递增信元字段;获取与所述待递增信元字段对应的递增数量;在所述数据包中增加所述递增数量对应的待递增信元字段,以生成处理后的报文。通过将复杂的核心网流程的解析过程程序化,就能自动完成多用户并发的测试流构造,解放了大量人力。通过逐包解析,能够修改递增流程中的所有重要信元字段,保证了流程的完整性和真实性。

The embodiment of the present application provides a data processing method, device and storage medium, the method comprising: reading a message to be processed, the message to be processed comprising one or more data packets; parsing each of the data packets to determine the protocol type of each of the data packets; obtaining, according to the protocol type of each of the data packets, a to-be-incremented cell field corresponding to the protocol type in each of the data packets; obtaining an incremental number corresponding to the to-be-incremented cell field; adding a to-be-incremented cell field corresponding to the incremental number in the data packet to generate a processed message. By programming the parsing process of complex core network processes, the construction of concurrent test flows for multiple users 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.

Description

Data processing method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and storage medium.
Background
When a product test is performed, the user flow of tens of millions of levels on the 4G core network needs to be simulated, but in the process of formulating a test scheme, the flow of the 4G core network is more and complex, and the user flow of tens of thousands of levels cannot be constructed manually. The existing test tool cannot process the modification and concurrency of more than hundreds of signaling flows, and the number of cell fields related to users in the signaling flows is large, and the existing test tool cannot modify all cell fields needing to be increased in an incremental manner.
Disclosure of Invention
In view of the above, the present application provides a data processing method, device and storage medium, which programs the analysis process of a complex core network flow to complete the multi-user concurrent test flow structure, and can modify all important cell fields in the incremental flow to ensure the integrity and authenticity of the flow, and the specific technical scheme is as follows:
in a first aspect, the present application provides a data processing method, the method comprising:
reading a message to be processed, wherein the message to be processed comprises one or more data packets;
Analyzing each data packet and judging the protocol type of each data packet;
acquiring a cell field to be increased corresponding to the protocol type in each data packet according to the protocol type of each data packet;
acquiring the increment quantity corresponding to the cell field to be incremented;
And adding the cell fields to be increased corresponding to the increasing number in the data packet so as to generate a processed message.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
And when the protocol type of the data packet is S1AP, acquiring eNB-IP, eNB-S1apID, MME-IP and MME-S1apID, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
And when the protocol type of the data packet is Diameter, acquiring HSS-IP, MME-IP and session-ID, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S11, acquiring MME-IP, SGW-IP, tunnel-MME teid/IP, tunnel-SGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S5S8, acquiring SGW-IP, PGW-IP, tunnel-SGW teid/IP, tunnel-PGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
And when the protocol type of the data packet is GTPv1-C, acquiring SGSN-IP, GGSN-IP, tunnel-SGSN teid/IP, tunnel-GGSN teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the obtaining, according to a protocol type of each data packet, a cell field to be incremented in each data packet, where the cell field corresponds to the protocol type, includes:
And when the protocol type of the data packet is GTPU, acquiring SGSN-IP, GGSN-IP, TEID and inner layer SIP/DIP, imsi, msisdn, imei, tac, cellid fields.
In one possible implementation manner, the generating the processed message includes:
traversing the message to be processed, and judging whether the cell field to be increased corresponding to the increasing number is added in each data packet;
If the number of the cell fields to be increased corresponding to the number of the increased cells is increased in each data packet, ending the analysis of each data packet, and obtaining 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 number of the increased cell fields to be increased corresponding to the number of the increased cells;
Generating the 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 increasing the increment number corresponding to the cell field to be incremented.
In a second aspect, the present application also provides a data processing apparatus, the apparatus comprising:
The reading module is used for reading a message to be processed, wherein the message to be processed comprises one or more data packets;
The analysis module is used for analyzing each data packet and judging the protocol type of each data packet;
The acquisition module is used for acquiring a cell field to be increased corresponding to the protocol type in each data packet according to the protocol type of each data packet;
the acquisition module is further used for acquiring the increment quantity corresponding to the cell field to be incremented;
And the generating module is used for adding the cell fields to be increased corresponding to the increasing number in the data packet so as to generate a processed message.
In a third aspect, the application also provides a computer readable storage medium having stored therein computer executable instructions which when run on a computer cause the computer to perform the method of any of claims 1-8.
The method comprises the steps of reading a message to be processed, wherein the message to be processed comprises one or more data packets, analyzing each data packet, judging the protocol type of each data packet, obtaining a cell field to be increased corresponding to the protocol type in each data packet according to the protocol type of each data packet, obtaining the increment number corresponding to the cell field to be increased, and increasing the cell field to be increased corresponding to the increment number in the data packet to generate the processed message. By programming the analysis process of the complex core network flow, the multi-user concurrent test flow structure can be automatically completed, and a large amount of manpower is liberated. All important cell fields in the incremental flow can be modified through packet-by-packet analysis, and the integrity and the authenticity of the flow are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a data processing method provided by the present application;
FIG. 2 is a flow chart of another embodiment of a data processing method provided by the present application;
Fig. 3 shows a schematic structural diagram of a data processing apparatus according to the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
First, some terms that may appear in the embodiments of the present application will be explained.
The pcap file is a commonly used data message storage format, and is fully called a packet capture.
The Mobility management entity (Mobility MANAGEMENT ENTITY, MME) is mainly responsible for Mobility management and control, including authentication, paging, location update and handover of users, etc.
The service gateway (SERVING GATEWAY, SGW) is mainly responsible for management of the context session of the mobile phone and routing and forwarding of the data packet, and is equivalent to a data transfer station.
The packet data network Gateway (PACKET DATA network Gateway, PGW) is mainly responsible for connecting to external networks, and also for session management and bearer control, IP address allocation, charging support, etc. of the mobile phone.
The home subscriber server (Home Subscriber Server, HSS) is a central database containing subscriber related information and subscription related information. The functions include mobility management, call and session establishment support, user authentication and access authorization.
A base station (eNodeB, eNB) is a bridge between a user UE and the core network.
International mobile subscriber identity (International Mobile Subscriber Identification Number, IMSI), which is a flag that distinguishes mobile subscribers, may be used to distinguish between valid information of mobile subscribers.
MSISDN, full Mobile Subscriber International ISDN/PSTN number, refers to the number that the calling subscriber needs to dial to call a mobile subscriber in the GSM PLMN.
An international mobile equipment identity (International Mobile Equipment Identity, IMEI) for identifying each individual handset in the GSM mobile network.
Tracking area code (TRACKING AREA code of cell servedby neighbor eNB, TAC), in LTE network, the present parameter defines the tracking area code to which a cell belongs, and one tracking area may cover one or more cells.
CELLID, number ID of cell phone signal coverage area.
The Diameter protocol, which is used as the next generation AAA protocol standard by the IETF's AAA working group, supports mobile IP, NAS request, and mobile agent authentication, authorization, and accounting tasks.
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、 The specific meaning of the above fields of the inner layer SIP/DIP, imsi, msisdn, imei, tac, cellid is described in detail in 3gpp ts23.401, 3gpp ts36.413, 3gpp ts36.414, 3GPPTS29.274, 3gpp ts29.272 and 3GPPTS29.060, which are not described in detail herein.
Referring to fig. 1, a flowchart of a method embodiment provided by the embodiment of the present application is shown, where the embodiment of the present application at least includes the following steps:
S110, reading the message to be processed.
In the embodiment of the application, the message to be processed is read, the message to be processed comprises 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 which needs concurrency.
S120, analyzing each data packet and judging the protocol type of each data packet.
S130, according to the protocol type of each data packet, acquiring a cell field to be increased corresponding to the protocol type in each data packet.
In the embodiment of the application, the number of the data packets in the message to be processed is obtained, and the data packets are analyzed one by one from the first data packet. When each data packet is analyzed, judging the protocol type of each data packet, and acquiring a cell field to be increased corresponding to the protocol type in each data packet according to the protocol type of each data packet.
As shown in fig. 2, according to the protocol type of each data packet, the cell field to be incremented corresponding to the protocol type in each data packet is obtained, which mainly includes:
s131, when the protocol type of the data packet is S1AP, the fields of eNB-IP, eNB-S1apID, MME-IP and MME-S1apID, imsi, msisdn, imei, tac, cellid are acquired.
S132, when the protocol type of the data packet is Diameter, acquiring HSS-IP, MME-IP and session-ID, imsi, msisdn, imei, tac, cellid fields.
S133, when the protocol type of the data packet is GTPv1-C, acquiring SGSN-IP, GGSN-IP, tunnel-SGSN teid/IP, tunnel-GGSN teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
S134, when the protocol type of the data packet is GTPU, the SGSN-IP, GGSN-IP, TEID and inner layer SIP/DIP, imsi, msisdn, imei, tac, cellid fields are acquired.
S135, when the protocol type of the data packet is GTPv2, judging the protocol type of the data packet.
S136, when the protocol type of the data packet is S11, acquiring MME-IP, SGW-IP, tunnel-MME teid/IP, tunnel-SGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
S137, when the protocol type of the data packet is S5S8, the SGW-IP, PGW-IP, tunnel-SGW teid/IP, tunnel-PGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields are acquired.
According to the protocol type of each data packet, the embodiment of the application acquires the cell field to be increased corresponding to the protocol type in each data packet, and can pertinently modify the cell field without being limited by the format of the cell field.
S140, the increment number corresponding to the cell field to be incremented is obtained.
In the embodiment of the application, the increment corresponding to the cell field to be incremented is obtained, namely the increment corresponding to the cell field needing to be incremented is obtained.
S150, adding the cell fields to be increased corresponding to the increasing number in the data packet to generate the processed message.
In the embodiment of the application, after the cell field to be increased corresponding to the protocol type and the increasing number corresponding to the cell field to be increased in each data packet are obtained, the cell field to be increased corresponding to the increasing number is increased in the data packet, so as to generate the processed message.
For example, if the increment number corresponding to the acquired field relevant to the user is 50w, the imsi, msisdn, imei fields relevant to the user are respectively incremented by 50w in the data packet, and if the increment number corresponding to the acquired field relevant to the eNB is 5w, the eNB-IP and eNB-s1apID, tac, cellid fields relevant to the eNB are respectively incremented by 5w in the data packet.
The method mainly comprises the following steps of:
S151, traversing the message to be processed, and judging whether the cell field to be increased corresponding to the increasing number is added in each data packet.
S152, if the cell field to be increased corresponding to the increasing number is added to each data packet, ending the analysis of each data packet, and obtaining 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 cell field to be increased corresponding to the increasing number.
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 increasing the increment number corresponding to the cell field to be incremented.
In the embodiment of the application, after increasing the cell field to be increased corresponding to the increasing number in the data packet, each data packet in the message to be processed needs to be traversed, whether the cell field to be increased corresponding to the increasing number is increased in each data packet is judged, if not, step S120 is returned, if yes, the head information of the message to be processed, the head information of each data packet and the data of each data packet after increasing the cell field to be increased corresponding to the increasing number are obtained, and the processed message is generated according to the head information of the message to be processed, the head information of each data packet and the data of each data packet after increasing the cell field to be increased corresponding to the increasing number. The generated processed message is a signaling_new.pcap file.
In the embodiment of the application, a message to be processed is read, the message to be processed comprises one or more data packets, each data packet is analyzed, the protocol type of each data packet is judged, the cell field to be increased corresponding to the protocol type in each data packet is obtained according to the protocol type of each data packet, the increment number corresponding to the cell field to be increased is obtained, and the cell field to be increased corresponding to the increment number is increased in the data packet to generate the processed message. By programming the analysis process of the complex core network flow, the multi-user concurrent test flow structure can be automatically completed, and a large amount of manpower is liberated. All important cell fields in the incremental flow can be modified through packet-by-packet analysis, and the integrity and the authenticity of the flow are ensured.
Next, a description will be given of a data processing apparatus provided by the present application, and a data processing apparatus described below and a data processing method described above can be referred to correspondingly to each other.
Referring to fig. 3, a schematic structural diagram of a data processing apparatus provided by the present application is shown, where the apparatus includes:
a reading module 301, configured to read a message to be processed, where the message to be processed includes one or more data packets;
The parsing module 302 is configured to parse each of the data packets and determine a protocol type of each of the data packets;
an obtaining module 303, configured to obtain a cell field to be incremented in each data packet according to a protocol type of each data packet;
The obtaining module 303 is further configured to obtain an increment number corresponding to the cell field to be incremented;
a generating module 304, configured to add the cell fields to be incremented corresponding to the increment number to the data packet, so as to generate a processed packet.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
And when the protocol type of the data packet is S1AP, acquiring eNB-IP, eNB-S1apID, MME-IP and MME-S1apID, imsi, msisdn, imei, tac, cellid fields.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
And when the protocol type of the data packet is Diameter, acquiring HSS-IP, MME-IP and session-ID, imsi, msisdn, imei, tac, cellid fields.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S11, acquiring MME-IP, SGW-IP, tunnel-MME teid/IP, tunnel-SGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S5S8, acquiring SGW-IP, PGW-IP, tunnel-SGW teid/IP, tunnel-PGW teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
And when the protocol type of the data packet is GTPv1-C, acquiring SGSN-IP, GGSN-IP, tunnel-SGSN teid/IP, tunnel-GGSN teid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
In this embodiment of the present application, the obtaining module 303 is specifically configured to, when obtaining the cell field to be incremented in each data packet according to the protocol type of each data packet:
And when the protocol type of the data packet is GTPU, acquiring SGSN-IP, GGSN-IP, TEID and inner layer SIP/DIP, imsi, msisdn, imei, tac, cellid fields.
In the embodiment of the present application, when the generating module 304 generates the processed message, the generating module is specifically configured to:
traversing the message to be processed, and judging whether the cell field to be increased corresponding to the increasing number is added in each data packet;
If the number of the cell fields to be increased corresponding to the number of the increased cells is increased in each data packet, ending the analysis of each data packet, and obtaining 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 number of the increased cell fields to be increased corresponding to the number of the increased cells;
Generating the 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 increasing the increment number corresponding to the cell field to be incremented.
Embodiments of the present application also provide a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a computer, perform the functions of any of the method embodiments described above.
In the embodiment of the application, a message to be processed is read, the message to be processed comprises one or more data packets, each data packet is analyzed, the protocol type of each data packet is judged, the cell field to be increased corresponding to the protocol type in each data packet is obtained according to the protocol type of each data packet, the increment number corresponding to the cell field to be increased is obtained, and the cell field to be increased corresponding to the increment number is increased in the data packet to generate the processed message. By programming the analysis process of the complex core network flow, the multi-user concurrent test flow structure can be automatically completed, and a large amount of manpower is liberated. All important cell fields in the incremental flow can be modified through packet-by-packet analysis, and the integrity and the authenticity of the flow are ensured.
It should be noted that, in each embodiment, identical and similar parts are referred to each other. For the device class embodiment, the system class embodiment, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points are referred to in the description of the method embodiments.
For the foregoing embodiments, for simplicity of explanation, the same is shown as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of data processing, the method comprising:
reading a message to be processed, wherein the message to be processed comprises one or more data packets;
Analyzing each data packet and judging the protocol type of each data packet;
the method comprises the steps of obtaining a to-be-increased cell field corresponding to a protocol type in each data packet according to the protocol type of each data packet, obtaining the increasing number corresponding to the to-be-increased cell field, adding the to-be-increased cell field corresponding to the increasing number in the data packet, and generating a processed message;
After the increment quantity corresponding to the cell field to be incremented is added in the data packet, each data packet in the message to be processed needs to be traversed, whether the increment quantity corresponding to the cell field to be incremented is added in each data packet is judged, if not, each data packet is returned to be analyzed, the protocol type of each data packet is judged, if yes, the head information of the message to be processed, the head information of each data packet and the data of each data packet after the increment quantity corresponding to the cell field to be incremented are obtained, and the processed message is generated according to the head information of the message to be processed, the head information of each data packet and the data of each data packet after the increment quantity corresponding to the cell field to be incremented.
2. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
And when the protocol type of the data packet is S1AP, acquiring eNB-IP, eNB-S1apID, MME-IP and MME-S1apID, imsi, msisdn, imei, tac, cellid fields.
3. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
And when the protocol type of the data packet is Diameter, acquiring HSS-IP, MME-IP and session-ID, imsi, msisdn, imei, tac, cellid fields.
4. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S11, acquiring MME-IP, SGW-IP, tunnel-mmeteid/IP, tunnel-sgwteid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
5. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
When the protocol type of the data packet is GTPv2, judging the protocol type of the data packet;
And when the protocol type of the data packet is S5S8, acquiring SGW-IP, PGW-IP, tunnel-sgwteid/IP, tunnel-pgwteid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
6. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
And when the protocol type of the data packet is GTPv1-C, acquiring SGSN-IP, GGSN-IP, tunnel-sgsnteid/IP, tunnel-ggsnteid/IP and user-IP, imsi, msisdn, imei, tac, cellid fields.
7. The method of claim 1, wherein the obtaining, according to the protocol type of each data packet, a cell field to be incremented in each data packet corresponding to the protocol type includes:
And when the protocol type of the data packet is GTPU, acquiring SGSN-IP, GGSN-IP, TEID and inner layer SIP/DIP, imsi, msisdn, imei, tac, cellid fields.
8. The method according to any one of claims 1-7, wherein the generating the processed message comprises:
traversing the message to be processed, and judging whether the cell field to be increased corresponding to the increasing number is added in each data packet;
If the number of the cell fields to be increased corresponding to the number of the increased cells is increased in each data packet, ending the analysis of each data packet, and obtaining 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 number of the increased cell fields to be increased corresponding to the number of the increased cells;
Generating the 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 increasing the increment number corresponding to the cell field to be incremented.
9. A data processing apparatus employing the method of any one of claims 1 to 8, the apparatus comprising:
The reading module is used for reading a message to be processed, wherein the message to be processed comprises one or more data packets;
The analysis module is used for analyzing each data packet and judging the protocol type of each data packet;
The acquisition module is used for acquiring a cell field to be increased corresponding to the protocol type in each data packet according to the protocol type of each data packet;
the acquisition module is further used for acquiring the increment quantity corresponding to the cell field to be incremented;
And the generating module is used for adding the cell fields to be increased corresponding to the increasing number in the data packet so as to generate a processed message.
10. A computer readable storage medium having stored therein computer executable instructions which when run on a computer cause the computer to perform the method of any of claims 1-8.
CN202211031011.7A 2022-08-26 2022-08-26 Data processing method, device and storage medium Active CN115278747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211031011.7A CN115278747B (en) 2022-08-26 2022-08-26 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211031011.7A CN115278747B (en) 2022-08-26 2022-08-26 Data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115278747A CN115278747A (en) 2022-11-01
CN115278747B true CN115278747B (en) 2025-08-26

Family

ID=83755603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211031011.7A Active CN115278747B (en) 2022-08-26 2022-08-26 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115278747B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801904A (en) * 2022-11-28 2023-03-14 北京锐安科技有限公司 A 5G message generation system and method based on python technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664316A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of method and apparatus for the interface message obtaining API
CN109246117A (en) * 2018-09-27 2019-01-18 郑州云海信息技术有限公司 A kind of analysis method, system and the relevant apparatus of pcap data message
KR20190116811A (en) * 2018-04-05 2019-10-15 국방과학연구소 Apparatus and method for generating simulated network traffic traces

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363055B2 (en) * 2002-05-09 2008-04-22 Casabyte, Inc. Method, apparatus and article to remotely associate wireless communications devices with subscriber identities and/or proxy wireless communications devices
CN100359869C (en) * 2003-08-05 2008-01-02 华为技术有限公司 A device and method for dynamic testing of VLAN users
US20050071208A1 (en) * 2003-09-29 2005-03-31 Danamichele Brennen Open architecture technology platform having front end administratively driven delivery management system
CN109408479B (en) * 2018-09-19 2023-05-30 平安科技(深圳)有限公司 Log data adding method, system, computer device and storage medium
CN111371649B (en) * 2020-03-03 2021-11-30 恒为科技(上海)股份有限公司 Deep packet detection method and device
CN111680061A (en) * 2020-06-11 2020-09-18 腾讯科技(深圳)有限公司 A data access method, apparatus, device and storage medium
CN113162818A (en) * 2021-02-01 2021-07-23 国家计算机网络与信息安全管理中心 Method and system for realizing distributed flow acquisition and analysis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664316A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of method and apparatus for the interface message obtaining API
KR20190116811A (en) * 2018-04-05 2019-10-15 국방과학연구소 Apparatus and method for generating simulated network traffic traces
CN109246117A (en) * 2018-09-27 2019-01-18 郑州云海信息技术有限公司 A kind of analysis method, system and the relevant apparatus of pcap data message

Also Published As

Publication number Publication date
CN115278747A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN113810224B (en) Information processing method and device
EP3937520B1 (en) Roaming data processing method, apparatus and system
US12425823B2 (en) Method and apparatus for event monitoring
CN105580444A (en) Communication system, base station, communication method and non-transitory computer-readable medium storing program
CN106332222A (en) A method and base station for network selection
CN118233865A (en) Method and apparatus for session management
WO2020001336A1 (en) Information processing method and device
CN102118686B (en) Position information processing method and access network equipment
CN107889175A (en) Method for switching network, apparatus and system, method for network access and device
CN110582053B (en) Pseudo base station positioning method and device
CN103797824B (en) The method of location updating, apparatus and system
CN115278747B (en) Data processing method, device and storage medium
WO2017059707A1 (en) Method and apparatus for identifying user position
US9537817B2 (en) Method and apparatus for obtaining destination IP address
CN110890967B (en) Charging processing method, network element and network system
RU2010117166A (en) METHOD, SYSTEM AND DEVICE FOR ESTABLISHING ASSOCIATIVE MANAGEMENT COMMUNICATIONS
JP6491597B2 (en) Method and device for roaming charging for CS fallback MTRF call
CN113613281A (en) Core network performance test method, device, system and storage medium
CN114268970A (en) Network capability opening method, equipment and storage medium
JP7325551B2 (en) SERVICE CONTINUITY IMPLEMENTATION METHOD, RELATED DEVICE, AND SYSTEM
US20240314178A1 (en) Method and system in 3gpp networks for reporting of vowifi calls over untrusted non-3gpp access
WO2017202342A1 (en) Method, device and system for reporting information
CN113228598B (en) Cellular telecommunication network
KR20130060967A (en) Data service method of multiple pdn based odb scheme for lte mobile users
CN103379592B (en) For remotely accessing the method and device of local network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221227

Address after: 201114 Room 603C, Building 8, No. 2388, Chenhang Road, Minhang District, Shanghai

Applicant after: Shanghai Hengwei Intelligent Technology Co.,Ltd.

Address before: 6 / F, building 8, 2388 Chenhang Road, Minhang District, Shanghai, 201114

Applicant before: EMBEDWAY TECHNOLOGIES (SHANGHAI) Corp.

GR01 Patent grant
GR01 Patent grant