CN112104634A - Data message processing method, system, equipment and readable storage medium - Google Patents

Data message processing method, system, equipment and readable storage medium Download PDF

Info

Publication number
CN112104634A
CN112104634A CN202010936206.0A CN202010936206A CN112104634A CN 112104634 A CN112104634 A CN 112104634A CN 202010936206 A CN202010936206 A CN 202010936206A CN 112104634 A CN112104634 A CN 112104634A
Authority
CN
China
Prior art keywords
field
message format
message
information
modifiable
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.)
Granted
Application number
CN202010936206.0A
Other languages
Chinese (zh)
Other versions
CN112104634B (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.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
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 State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI filed Critical State Grid Corp of China SGCC
Priority to CN202010936206.0A priority Critical patent/CN112104634B/en
Publication of CN112104634A publication Critical patent/CN112104634A/en
Application granted granted Critical
Publication of CN112104634B publication Critical patent/CN112104634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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/03Protocol definition or specification 

Landscapes

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

Abstract

The invention belongs to the field of information communication, and discloses a data message processing method, a system, equipment and a readable storage medium, which comprises the steps of obtaining field information of all modifiable fields in a preset initial message format to obtain a modifiable field group; acquiring and modifying the modifiable field group according to the modification information to obtain a required field group; modifying the initial message format according to the demand field group to obtain a message format; and generating the data message based on the message format. By analyzing the construction elements of the data message, the modifiable field set is defined, so that the required data message format can be flexibly constructed, and the required data message is generated. The problem that when an undetermined message format is faced, a user can only be helped to generate flow through a group of hexadecimal data editing, and therefore the complex data message information is difficult to display, modify and configure is effectively solved.

Description

Data message processing method, system, equipment and readable storage medium
Technical Field
The invention belongs to the field of information communication, and relates to a data message processing method, a system, equipment and a readable storage medium.
Background
The network is to connect each isolated workstation or host computer together with the physical link, form the data link, the data is transmitted on the data link through encoding into the data message, decode and express thus achieve the purpose of resource sharing and communication finally, because the data message is the unit of network transmission. The message format is defined and expressed by a network protocol, if a user develops a set of new protocol by himself or the system does not define the message format of the protocol, the system can support the user to generate the message format of the protocol according to a guide, and then the user can instruct the system to generate a data message based on the message format defined by himself, so that the user can conveniently manufacture the data message of the new protocol.
In power network, industrial network and safety network tests, a message format which is not available in a tester is often encountered, and the test can be carried out only by adding a self-defined message template or importing a message. For example, currently, most of the message formats provided by the tester for the user to edit are preset standard protocol message formats, and the standard protocol message formats are only part of common protocols, and a large part of the common protocols are not included, and some of the protocol message formats are special protocol message formats or protocol message formats used in the user-defined interior, which is still impossible to meet the requirements.
Therefore, an instrument manufacturer can provide a custom message template, a group of hexadecimal data is provided, and the group of hexadecimal data needs to be edited to help a user to generate flow, but the editing form is not easy to understand the format of the data message and construct the required data message, has no information prompt, is easy to make mistakes, and causes difficulty in displaying, modifying and configuring complex data message information.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned disadvantages of the prior art that it is difficult to display, modify and configure complex data message information when a message format is not defined, and provides a data message processing method, system, device and readable storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
in a first aspect of the present invention, a method for processing a data packet includes the following steps:
acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group;
acquiring and modifying the modifiable field group according to the modification information to obtain a required field group;
the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message;
modifying the initial message format according to the demand field group to obtain a message format;
and generating the data message based on the message format.
The data message processing method of the invention is further improved in that:
the initial message format is described by an XML file.
Further comprising: presetting a plurality of custom message formats, and generating the data message based on the custom message format when one custom message format is consistent with the message format requirement of the data message to be generated.
The specific method for modifying the modifiable field group according to the modification information to obtain the required field group comprises the following steps:
obtaining field information of a field to be modified according to modification information, wherein the field information comprises a field type and a field sequence; and adding, deleting and/or changing the modifiable field in the modifiable field group according to the field information of the field to be modified to obtain the requirement field group.
Further comprising: displaying a modifiable field group according to first display information of each field preset in the initial message format; generating second display information for displaying the field to be modified, displaying the field to be modified according to the second display information, and adding the second display information to the message format; and storing the obtained message format.
Further comprising: and analyzing the received data message based on the message format.
In a second aspect of the present invention, a data packet processing system includes:
the modifiable field group generating module is used for acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group;
the editing module is used for acquiring and modifying the modifiable field group according to the modification information to obtain a required field group;
the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message;
the format generation module is used for modifying the initial message format according to the demand field group to obtain the message format;
and the data message generating module is used for generating the data message based on the message format.
The data message processing system of the invention is further improved in that:
further comprising: and the data message analysis module is used for analyzing the received data message based on the message format.
In a third aspect of the present invention, a terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data packet processing method when executing the computer program.
In a fourth aspect of the present invention, a computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the data packet processing method.
Compared with the prior art, the invention has the following beneficial effects:
the data message processing method obtains the modifiable field group by obtaining the field information of all modifiable fields in the preset initial message format, then obtains the modified information based on the message format of the required data message, obtains the required field group by modifying the modifiable field group through the modified information, and then modifies the initial message format according to the required field group to obtain the message format. In the whole process, the modified fields and the modified conditions can be clearly determined by converting the message format into the fields, the understanding of the structure of the message format is facilitated, any required message format is constructed by flexibly combining the fields, the generation of the message formats in various forms is met, and the data message meeting the requirements is generated based on the message format so as to facilitate subsequent work. The method effectively overcomes the defects that in the current power network, industrial network and safety network tests, a message format which is not available in tester software is often encountered, and in the tests, only a user-defined message template is added or a message is led in to test, so that a series of complex processes such as program compiling, software debugging, installation and compiling are required.
Furthermore, the initial message format is described by adopting an XML file, the description language is simple in form and good in compatibility, and the field modification is convenient to understand.
Furthermore, a plurality of user-defined message formats are preset, and when one user-defined message format is consistent with the message format requirement of the data message to be generated, the data message is generated based on the user-defined message format, so that the usability and the efficiency of the method are improved.
Furthermore, the modifiable field group and the field to be modified are displayed through the first display information and the second display information, namely, the display of the modification process is realized, the modification state can be known in time conveniently, and a visual interface is convenient to operate; meanwhile, the obtained message format is stored, so that the next direct use is facilitated, and the usability and the efficiency of the method are further improved.
Furthermore, the method also comprises the step of analyzing the received data message based on the message format, and analyzing the data message in any message format into a meaningful format, so that the subsequent analysis is facilitated.
Drawings
FIG. 1 is a block diagram of a flow chart of a data message processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a conventional hexadecimal data structure packet;
FIG. 3 is a diagram illustrating a basic field type definition according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a complex field type definition in accordance with an embodiment of the present invention;
FIG. 5 is a control type definition diagram in accordance with an embodiment of the present invention;
FIG. 6 is a diagram illustrating a detailed data structure of an ipv4 header in accordance with an embodiment of the present invention;
FIG. 7 is a diagram illustrating a user editing information in accordance with an embodiment of the present invention;
fig. 8 is a schematic diagram of a data packet processing method according to still another embodiment of the present invention;
FIG. 9 is a diagram illustrating an XML text description of a partial message format in accordance with an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating visualization of a part of a message format according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a data packet processing method according to still another embodiment of the present invention;
FIG. 12 is a block diagram of a data message processing system in accordance with an embodiment of the present invention;
fig. 13 is a block diagram of a data message processing system in accordance with a further embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention is described in further detail below with reference to the accompanying drawings:
referring to fig. 1, an embodiment of the present invention provides a data packet processing method, which specifically relates to generation of a data packet, and is particularly suitable for a case where a packet format of a data packet to be generated is an abnormal or non-standard packet format. By the data message processing method, a user can generate any required message format according to the message format given by a standard organization or a private message format, and then the data message is generated based on the generated message format guidance, so that the inconvenience of input and display caused by the fact that the client directly inputs hexadecimal data is solved, as shown in fig. 2. Specifically, the data message processing method includes the following steps:
s1: and acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group.
Specifically, an initial message format is preset in advance before data message processing, and each field in the initial message format is configured by self-definition, and generally some necessary and commonly used fields are configured. By analyzing the construction elements of the Ethernet message, the editable field combination is defined, namely the field group can be modified, so that a user can flexibly construct a required message mode format and the method is applied to various service scenes such as data message construction, data statistics, data analysis and the like.
When data message processing is carried out, the first step is to acquire field information of all modifiable fields in the initial message format, and combine the field information into a modifiable field group to serve as the basis for subsequent message format modification.
Preferably, the initial message format is described by using an XML file, the data message structure is described by using an XML Language (XML full name Extensible Markup Language, which is a computer program Markup Language for marking an electronic file to make the electronic file have a structure), the data message structure can be created by analyzing XML data information, and the data information in the data message structure can be displayed by creating the XML file according to the schema file of the XML if the message format of any format is required, so that the XML file can be displayed, used and edited.
S2: acquiring and modifying the modifiable field group according to the modification information to obtain a required field group; the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message. Specifically, the field information of the field to be modified is obtained according to the modification information, the field information includes the field type and the field sequence, and the modifiable field is added, deleted and/or changed in the modifiable field group according to the field information of the field to be modified, so as to obtain the required field group.
Specifically, it is first necessary to know the data packet format that needs to be satisfied by the data packet, which is a process of determining field information in the packet format, and determining which field types and the sequence of the fields are included.
Then, obtaining modification information by comparing field information of each field in the message format with field information in a modifiable field group, wherein the modification information is simply the difference between the field information of each field in the message format and the field information in the modifiable field group, for example, if there is a field in the message format, which has no field in the modifiable field group, a field to be modified to be added is obtained, or if there is a field in the modifiable field group, which has no field in the message format, a field to be modified to be deleted is obtained; the modified information is an indication information including all fields to be modified and types thereof, the modified information can be obtained by analyzing according to prior knowledge by an operator, and the field information of each field in the message format and the field information in the modified field group can be output to a computer and analyzed by the computer.
After the modification information is obtained, the fields, such as the main field, the control field and the user field, can be modified according to the message format given by the standard organization or the private message format through the modification information, that is, the modifiable fields are modified to obtain the required field group, so that the combination of the message format fields is completed, and then the configuration file in the xml text format is generated, thereby facilitating the analysis of the message.
The description of the message format in the XML file is taken as an example to illustrate how to modify the fields specifically. In order to modify the fields in the initial message format described by the XML file, when the modifiable fields are added, deleted and/or changed in the modifiable field set, the modifications are considered to be compatible with the XML file, and it is necessary to ensure that the added contents are the contents conforming to the XML rules, and therefore, it is necessary to define various field types in the XML language in advance for subsequent use. The field type of the electronic device mainly comprises a basic field type, a complex field type, a control field type and an auxiliary field type.
Several specific definitions are presented below, but they are only presented in order and not limited thereto.
Referring to fig. 3, a basic field type is defined to express a minimum data unit describing a protocol packet, such as bit, Byte, String.
Referring to FIG. 4, complex field types are defined and assembled from simple type data. The data types can be freely assembled and nested, different types of containers are provided for basic types actually, and various types of containers are provided for basic field type assembly to achieve the purposes of expression and specific protocol information. Such as: sequence: the instructions contain data that are assembled in order. Set: the description contains a data type that is a collection that starts out as an empty collection. Choice: the description contains data that is a candidate set. Choice is generally used in cooperation with Set, an element is selected from the Choice and placed in Set, and Choice can be used independently. The structure types of the protocol message are sequence, and if the protocol message contains some optional fields, the types of the protocol message are Choice and Set.
Referring to FIG. 5, control type, adds some logical processing to the base type. Such as Checksum, Auto Length, Element Count, etc. Checksum: the identification field is used for filling in the check sum information; auto Length: the identification field is used for filling automatic calculation length information, and the TLV characteristic is supported by the identification field; PaddingByte: automatically compensating an alignment field in a message; IndexForNextHeader: marking the type of the next layer protocol; FixValue: describing that the current field is a fixed content; ElementCount: this field automatically counts the number of elements in a certain Set. The above fields all need to describe information such as calculation algorithm, calculation length, calculation start and end positions, etc.
Description information of other auxiliary fields, such as environment, Condition, location description, direction description information, etc.
Referring to fig. 6, a detailed data structure of ipv4 header is described, each message format having similar XML description files 1 or more.
Referring to fig. 7, preferably, the message format also describes the user editing information, which fields the user has modified, what the modified fields are, which fields have configured hopping, and what the hopping information is.
S3: and modifying the initial message format according to the required field group to obtain the message format.
Specifically, after the requirement field set is obtained, the requirement field set is converted into the description language requirement of the message format, and then the initial message format is modified to obtain the final message format. In this embodiment, the requirement field set is converted into XML description clauses, and then all the XML description clauses in the initial message format are added, deleted and/or modified according to the XML description clauses, thereby completing the modification of the initial message format.
S4: and generating the data message based on the message format.
Specifically, the message format of the required data message is obtained through the above operations, and then the required data message can be generated by adding specific message data based on the message format, so that the generation of the data message with the undefined message format is realized. Specifically, when the user starts the flow, the program issues the description information edited by the user to the case, which is an XML file to which the message data has been added, and the case instructs the FPGA to send the data message out from the port according to the description information.
The data message processing method can help the user to generate the data message with the self-defined message format or the non-standard message format, and the user does not need to care about the complex information of the XML file structure, the format and the like.
Referring to fig. 8, in a further embodiment of the present invention, a data packet processing method is provided, which includes all the contents of the data packet processing method in the previous embodiment, and further includes at least the following steps: presetting a plurality of custom message formats, and generating the data message based on the custom message format when one custom message format is consistent with the message format requirement of the data message to be generated. The step can be carried out at the very beginning of the whole data message processing method, as the first step, when the message generation is started, firstly, the detection is carried out to see whether the preset message format exists, if the preset message format exists, the subsequent steps are not needed, the message format is directly called, and the message data is added based on the message format to generate the data message.
In another embodiment of the present invention, a data packet processing method is provided, which includes all the contents of the data packet processing method in the first embodiment, and further includes at least the following steps: displaying a modifiable field group according to first display information of each field preset in the initial message format; generating second display information for displaying the field to be modified, displaying the field to be modified according to the second display information, and adding the second display information to the message format; and storing the obtained message format.
Referring to fig. 9 and 10, the field group and the field modifying process are visualized through the first display information and the second display information, so that the specific situation of modification can be clearly known, timely judgment is facilitated, and adaptive changes are made based on the judgment result, thereby sufficiently ensuring the controllability of the modifying process. And the obtained message format is stored, so that the stored message format can be directly called when the next data message with the same message format is required, and the generation process does not need to be repeated again.
Referring to fig. 11, in a further embodiment of the present invention, a data packet processing method is provided, which includes all the contents of the data packet processing method in the first embodiment, and further includes at least the following steps: s5: and analyzing the received data message based on the message format.
Specifically, the message format of the data message is determined, then the corresponding message format is generated according to the required message format, and then the imported data message can be analyzed into the corresponding meaning through the message format. In this embodiment, by reading the XML file, the corresponding relationship between the data packet imported by the tool and the packet format described by the existing XML file is found, and the specific work flow is as follows: the XML text is loaded into a memory to generate a tree, leaf nodes of the tree represent a data node, namely a field, including data node types (character strings, Mac addresses, Ipv4 addresses and the like), data length (bit length), data display names, data display types (Enumeration, Bool, Hex, Integer), default values and the like, and data messages are traversed and analyzed into meaningful formats through the nodes of the tree.
Referring to fig. 12, in yet another embodiment of the present invention, a data packet processing system is provided, which can be used to perform the operations of the data packet processing method described above, and specifically, the data packet processing system includes a modifiable field group generating module, an editing module, a format generating module, and a data packet generating module.
The modifiable field group generating module is used for acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group; the editing module is used for acquiring and modifying the modifiable field group according to the modification information to obtain a required field group; the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message; the format generation module is used for modifying the initial message format according to the requirement field group to obtain the message format; the data message generating module is used for generating a data message based on the message format.
Referring to fig. 13, in another preferred embodiment, the data packet processing system further includes a data packet parsing module, and the data packet parsing module is configured to parse the received data packet based on a packet format. Specifically, after the message format of the data message is determined, the message format generated by the other modules is correspondingly selected, and the imported data message can be analyzed into the corresponding meaning.
Preferably, the data message processing system further comprises a message format storage module, configured to store the generated message format for reuse. The system also comprises an output module which converts the generated message format into a standard description information file for outputting. The system can also comprise a message import module which imports the existing message format and realizes the expansion or the update of the preset message format.
In yet another embodiment of the present invention, a terminal device is provided that includes a processor and a memory, the memory storing a computer program comprising program instructions, the processor executing the program instructions stored by the computer storage medium. The Processor may be a Central Processing Unit (CPU), or may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable gate array (FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., which is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and is specifically adapted to load and execute one or more instructions to implement a corresponding method flow or a corresponding function; the processor according to the embodiment of the present invention may be used for the operation of the data packet processing method, and includes: acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group; acquiring and modifying the modifiable field group according to the modification information to obtain a required field group; the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message; modifying the initial message format according to the demand field group to obtain a message format; and generating the data message based on the message format.
In still another embodiment, the present invention also provides a computer-readable storage medium (Memory) which is a Memory device in a terminal device and stores programs and data. It is understood that the computer readable storage medium herein may include a built-in storage medium in the terminal device, and may also include an extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. It should be noted that the computer-readable storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor can load and execute one or more instructions stored in the computer readable storage medium to realize the corresponding steps of the data message processing method in the embodiment; one or more instructions in the computer-readable storage medium are loaded by the processor and perform the steps of: acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group; acquiring and modifying the modifiable field group according to the modification information to obtain a required field group; the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message; modifying the initial message format according to the demand field group to obtain a message format; and generating the data message based on the message format.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (10)

1. A method for processing data messages, comprising the steps of:
acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group;
acquiring and modifying the modifiable field group according to the modification information to obtain a required field group;
the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message;
modifying the initial message format according to the demand field group to obtain a message format;
and generating the data message based on the message format.
2. The method of claim 1, wherein the initial message format is described using an XML file.
3. The method of claim 1, further comprising:
presetting a plurality of custom message formats, and generating the data message based on the custom message format when one custom message format is consistent with the message format requirement of the data message to be generated.
4. The method according to claim 1, wherein the method for modifying the modifiable field set according to the modification information to obtain the required field set specifically comprises:
obtaining field information of a field to be modified according to modification information, wherein the field information comprises a field type and a field sequence; and adding, deleting and/or changing the modifiable field in the modifiable field group according to the field information of the field to be modified to obtain the requirement field group.
5. The method of claim 4, further comprising:
displaying a modifiable field group according to first display information of each field preset in the initial message format;
generating second display information for displaying the field to be modified, displaying the field to be modified according to the second display information, and adding the second display information to the message format;
and storing the obtained message format.
6. The method of claim 1, further comprising:
and analyzing the received data message based on the message format.
7. A data message processing system, comprising:
the modifiable field group generating module is used for acquiring field information of all modifiable fields in a preset initial message format to obtain a modifiable field group;
the editing module is used for acquiring and modifying the modifiable field group according to the modification information to obtain a required field group;
the modification information is obtained by comparing the field information of each field in the message format with the field information in the modifiable field group, and the field information of each field in the message format is obtained according to the message format requirement of the data message;
the format generation module is used for modifying the initial message format according to the demand field group to obtain the message format;
and the data message generating module is used for generating the data message based on the message format.
8. The data message processing system of claim 7, further comprising:
and the data message analysis module is used for analyzing the received data message based on the message format.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data message processing method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the data message processing method according to any one of claims 1 to 6.
CN202010936206.0A 2020-09-08 2020-09-08 Data message processing method, system, equipment and readable storage medium Active CN112104634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010936206.0A CN112104634B (en) 2020-09-08 2020-09-08 Data message processing method, system, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010936206.0A CN112104634B (en) 2020-09-08 2020-09-08 Data message processing method, system, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112104634A true CN112104634A (en) 2020-12-18
CN112104634B CN112104634B (en) 2023-06-02

Family

ID=73751052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010936206.0A Active CN112104634B (en) 2020-09-08 2020-09-08 Data message processing method, system, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112104634B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037727A (en) * 2021-02-26 2021-06-25 北京北信源信息安全技术有限公司 Message information processing method and device, electronic equipment and storage medium
CN113095055A (en) * 2021-04-20 2021-07-09 山石网科通信技术股份有限公司 Table modification method and device, nonvolatile storage medium and processor
CN114338272A (en) * 2021-12-30 2022-04-12 上海集度汽车有限公司 Communication control method, device, vehicle and readable storage medium
CN114500666A (en) * 2021-12-29 2022-05-13 海南同享数字科技有限公司 XML-based custom message general method and device and electronic equipment
CN114513552A (en) * 2022-01-06 2022-05-17 中信百信银行股份有限公司 Data processing method, device, equipment and storage medium
CN114925386A (en) * 2022-07-15 2022-08-19 飞腾信息技术有限公司 Data processing method, computer device, data processing system and storage medium
CN115052054A (en) * 2022-08-15 2022-09-13 江西联创精密机电有限公司 Communication message configuration method, device, readable storage medium and equipment
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8547974B1 (en) * 2010-05-05 2013-10-01 Mu Dynamics Generating communication protocol test cases based on network traffic
CN105391595A (en) * 2015-08-12 2016-03-09 天津可信网安科技有限公司 Vulnerability discovery user-defined method based on industrial control protocol
CN106209830A (en) * 2016-07-08 2016-12-07 中国人民解放军国防科学技术大学 A kind of message building method represented based on XML procotol
CN106330601A (en) * 2016-08-19 2017-01-11 北京匡恩网络科技有限责任公司 Test case generating method and device
CN109446099A (en) * 2018-11-09 2019-03-08 贵州医渡云技术有限公司 Automatic test cases generation method, device, medium and electronic equipment
CN109450730A (en) * 2018-11-09 2019-03-08 中电科仪器仪表有限公司 A kind of dynamic application layer protocol test method based on standard data interchange format
CN109768970A (en) * 2018-12-24 2019-05-17 通号通信信息集团有限公司 It is a kind of based on configurable puppy parc generation method
CN110020412A (en) * 2019-04-02 2019-07-16 中汇信息技术(上海)有限公司 A kind of method, apparatus and electronic equipment generating IMIX standard message
CN110232012A (en) * 2018-03-06 2019-09-13 国家计算机网络与信息安全管理中心 A kind of fuzz testing language protocol test script and testing engine based on xml
CN110691012A (en) * 2019-10-25 2020-01-14 新华三信息安全技术有限公司 Message processing method and tester
CN110752966A (en) * 2019-10-08 2020-02-04 南京南瑞继保电气有限公司 Network protocol security test method and device, electronic equipment and storage medium
CN111104106A (en) * 2019-12-31 2020-05-05 中电长城(长沙)信息技术有限公司 Visual development method, system and medium for integrating business process and communication message
CN111428462A (en) * 2020-03-04 2020-07-17 厦门科灿信息技术有限公司 Communication protocol template construction method and terminal equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8547974B1 (en) * 2010-05-05 2013-10-01 Mu Dynamics Generating communication protocol test cases based on network traffic
CN105391595A (en) * 2015-08-12 2016-03-09 天津可信网安科技有限公司 Vulnerability discovery user-defined method based on industrial control protocol
CN106209830A (en) * 2016-07-08 2016-12-07 中国人民解放军国防科学技术大学 A kind of message building method represented based on XML procotol
CN106330601A (en) * 2016-08-19 2017-01-11 北京匡恩网络科技有限责任公司 Test case generating method and device
CN110232012A (en) * 2018-03-06 2019-09-13 国家计算机网络与信息安全管理中心 A kind of fuzz testing language protocol test script and testing engine based on xml
CN109446099A (en) * 2018-11-09 2019-03-08 贵州医渡云技术有限公司 Automatic test cases generation method, device, medium and electronic equipment
CN109450730A (en) * 2018-11-09 2019-03-08 中电科仪器仪表有限公司 A kind of dynamic application layer protocol test method based on standard data interchange format
CN109768970A (en) * 2018-12-24 2019-05-17 通号通信信息集团有限公司 It is a kind of based on configurable puppy parc generation method
CN110020412A (en) * 2019-04-02 2019-07-16 中汇信息技术(上海)有限公司 A kind of method, apparatus and electronic equipment generating IMIX standard message
CN110752966A (en) * 2019-10-08 2020-02-04 南京南瑞继保电气有限公司 Network protocol security test method and device, electronic equipment and storage medium
CN110691012A (en) * 2019-10-25 2020-01-14 新华三信息安全技术有限公司 Message processing method and tester
CN111104106A (en) * 2019-12-31 2020-05-05 中电长城(长沙)信息技术有限公司 Visual development method, system and medium for integrating business process and communication message
CN111428462A (en) * 2020-03-04 2020-07-17 厦门科灿信息技术有限公司 Communication protocol template construction method and terminal equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037727A (en) * 2021-02-26 2021-06-25 北京北信源信息安全技术有限公司 Message information processing method and device, electronic equipment and storage medium
CN113095055A (en) * 2021-04-20 2021-07-09 山石网科通信技术股份有限公司 Table modification method and device, nonvolatile storage medium and processor
CN114500666A (en) * 2021-12-29 2022-05-13 海南同享数字科技有限公司 XML-based custom message general method and device and electronic equipment
CN114338272A (en) * 2021-12-30 2022-04-12 上海集度汽车有限公司 Communication control method, device, vehicle and readable storage medium
CN114513552A (en) * 2022-01-06 2022-05-17 中信百信银行股份有限公司 Data processing method, device, equipment and storage medium
CN114513552B (en) * 2022-01-06 2024-04-02 中信百信银行股份有限公司 Data processing method, device, equipment and storage medium
CN114925386A (en) * 2022-07-15 2022-08-19 飞腾信息技术有限公司 Data processing method, computer device, data processing system and storage medium
CN115052054A (en) * 2022-08-15 2022-09-13 江西联创精密机电有限公司 Communication message configuration method, device, readable storage medium and equipment
CN115052054B (en) * 2022-08-15 2022-10-25 江西联创精密机电有限公司 Communication message configuration method, device, readable storage medium and equipment
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending

Also Published As

Publication number Publication date
CN112104634B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN112104634B (en) Data message processing method, system, equipment and readable storage medium
US20230074815A1 (en) Packet edit processing method and related device
CN111741019A (en) Communication protocol analysis method and system based on field description
CN106209830B (en) message construction method based on XML network protocol expression
US7908594B2 (en) External programmatic interface for IOS CLI compliant routers
CN100512163C (en) Device and method for forming topological map and detecting topological structure
CN109460219B (en) Method for quickly serializing interface control file
CN106598581B (en) ASTERIX message analysis code generation method based on XML
US7698694B2 (en) Methods and systems for transforming an AND/OR command tree into a command data model
CN111191422B (en) File format conversion method, device and computer readable storage medium
CN115794106A (en) Method and system for analyzing configuration of binary protocol data of rail transit
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN110737660A (en) data processing method, device and computer readable storage medium
CN112055018B (en) Message analysis method and device
CN110445752B (en) Implementation method for supporting various CAN devices and flexibly analyzing various CAN messages
US20070030812A1 (en) Protocol designer
KR20090056622A (en) Method and apparatus for analyzing binary data file and medium for storing for program for carrying out the method
CN114518881A (en) Page generation method, system and storage medium
CN112306622B (en) Construction method and device of VNF template
CN113050935A (en) Method and device for generating mixed object, computing equipment and computer readable storage medium
WO2014167733A1 (en) Peripheral device of control system, and program for specifying location of fault in communication protocol
CN117472387B (en) Method and device for dynamically analyzing data and cloud platform
CN115002236B (en) Edge soft gateway for visual configuration of data protocol
CN114239492A (en) Method and device for converting DER into ASN.1
CN111309337B (en) Method, system, equipment and medium for configuring character information of CPLD (complex programmable logic device)

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
GR01 Patent grant
GR01 Patent grant