CN112055018A - Message analysis method and device - Google Patents

Message analysis method and device Download PDF

Info

Publication number
CN112055018A
CN112055018A CN202010916903.XA CN202010916903A CN112055018A CN 112055018 A CN112055018 A CN 112055018A CN 202010916903 A CN202010916903 A CN 202010916903A CN 112055018 A CN112055018 A CN 112055018A
Authority
CN
China
Prior art keywords
message
data
style data
style
specifications
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
CN202010916903.XA
Other languages
Chinese (zh)
Other versions
CN112055018B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010916903.XA priority Critical patent/CN112055018B/en
Publication of CN112055018A publication Critical patent/CN112055018A/en
Application granted granted Critical
Publication of CN112055018B publication Critical patent/CN112055018B/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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a message analysis method and a device, wherein the method comprises the following steps: acquiring message specifications of received messages; selecting message style data corresponding to the message specification from preset message style data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message; determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message; and analyzing the received message by using the message style data and the message content data which correspond to the message specification to obtain message analysis data. The invention can realize the general analysis of the messages with different message specifications, compared with the prior art, solves the defect that the prior art can only analyze the messages with single message specification, and simultaneously meets the requirement of analyzing the messages with different message specifications.

Description

Message analysis method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for analyzing a packet.
Background
The message is usually a whole segment of spliced character string, and in the process of message analysis, a large amount of time is often spent on reading the system interface specification corresponding to the message, and the accuracy is difficult to guarantee by manually intercepting and analyzing the whole segment of message characters according to the message specification.
Because the current analysis of the message is usually performed by manual interception and comparison, the current message analysis tool can only process the message of a single system. However, because the message specifications of the messages of the current message systems are different, when the field analysis is performed on the messages of the systems, a plurality of analysis tools are often required to be independently developed for different systems, and the requirement for analyzing the messages with different message specifications from the systems cannot be met.
Disclosure of Invention
The embodiment of the invention provides a message analysis method, which is used for automatically analyzing messages from different systems and comprises the following steps:
selecting message style data corresponding to the message specification from preset message style data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message;
determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message;
and analyzing the received message by using the selected message style data and the associated message content data to obtain message analysis data.
The embodiment of the present invention further provides a message analysis device, which is used for automatically analyzing messages from different systems, and the device includes:
the message style data selecting module is used for selecting message style data corresponding to message specifications from preset message style data according to the message specifications of the received message; the message style data is used for describing field characteristics and node relations of the message;
the message content data determining module is used for determining message content data related to the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message;
and the message analysis module is used for analyzing the received message by using the selected message style data and the associated message content data to obtain message analysis data.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the message analysis method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the message analysis method.
In the embodiment of the invention, message style data corresponding to the message specification is selected from preset message style data according to the message specification of a received message; the message style data is used for describing field characteristics and node relations of the message; determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message; the method has the advantages that the received message is analyzed according to the selected message style data and the associated message content data to obtain the message analysis data, so that the message style data corresponding to the message specification can be determined according to the message specification of the received message, the message content data can be further determined, the general analysis of the messages with different message specifications can be realized, compared with the prior art, the defect that the prior art can only analyze the message with a single message specification is overcome, and meanwhile, the requirement for analyzing the messages with different message specifications is met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a message analysis method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an example of a message analysis method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of a message analysis method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message analysis apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an example of a message analysis apparatus according to an embodiment of the present invention.
Detailed Description
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.
As shown in fig. 1, a schematic flow chart of a message analysis method in an embodiment of the present invention includes the following steps:
step 101: selecting message style data corresponding to the message specification from preset message style data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message;
step 102: determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message;
step 103: and analyzing the received message by using the selected message style data and the associated message content data to obtain message analysis data.
In the embodiment of the invention, message style data corresponding to the message specification is selected from preset message style data according to the message specification of a received message; the message style data is used for describing field characteristics and node relations of the message; determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message; the method has the advantages that the received message is analyzed according to the selected message style data and the associated message content data to obtain the message analysis data, so that the message style data corresponding to the message specification can be determined according to the message specification of the received message, the message content data can be further determined, the general analysis of the messages with different message specifications can be realized, compared with the prior art, the defect that the prior art can only analyze the message with a single message specification is overcome, and meanwhile, the requirement for analyzing the messages with different message specifications is met.
In specific implementation, the message analysis method provided in the embodiment of the present invention may further include: firstly, the message specification of a received message is obtained. After the message specification of the received message is obtained, selecting message pattern data corresponding to the message specification from preset message pattern data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message.
In the embodiment, according to the message specification of the received message, the message pattern data corresponding to the message specification is selected from the preset message pattern data, so that the adaptation of the acquired message can be realized, the message pattern data corresponding to the message specification can be found out, and the adaptation of the messages with different message specifications can be realized, wherein different message systems correspond to different message specifications, thereby solving the defect that the prior art can only analyze the message with a single message specification, and simultaneously meeting the requirement of analyzing the messages with different message specifications.
In specific implementation, the message analysis method provided in the embodiment of the present invention may further include: presetting a plurality of message style data corresponding to the message specifications of different messages according to the message specifications of the different messages; the message style data comprises field length, field data type and a field containing node hierarchical relation.
In the embodiment, a plurality of message style data corresponding to the message specifications of different messages are preset according to the message specifications of different messages, so that adaptation of the messages with different message specifications can be realized, the defect that the prior art can only analyze the messages with a single message specification is overcome, and the requirement of analyzing the messages with different message specifications is met.
In specific implementation, according to the message specifications of different messages, a plurality of message style data are preset, and for example, the preset may include: setting a first layer node parameter of message style data according to message specifications of different messages; the first layer node parameters are used for describing first layer nodes, and the first layer nodes are used for describing the overall structure of the message; setting a second layer node parameter of message style data according to message specifications of different messages; the second-layer node parameters are used for describing second-layer nodes, and the second-layer nodes are child nodes of the first-layer nodes; setting a third layer node parameter of message style data according to message specifications of different messages; the third-layer node parameters are used for describing a third-layer node, and the third-layer node is a child node of the second-layer node. Wherein the first layer node parameters include: the message type description, message header parameter, message type, bitmap parameter and message body parameter or any combination.
In an embodiment, the message specification may correspond to an interface specification of a system that needs to be analyzed, for example, according to the message specification of the message. The preset message style data can be used for displaying the analysis result of the message, displaying the message content characteristics, realizing the adaptation of the messages of different systems, solving the defect that the prior art can only analyze the message with a single message specification, and simultaneously meeting the requirement of analyzing the messages with different message specifications.
For example, a plurality of message style data may be preset by using a hierarchical configuration method, which data is configured according to the granularity of the hierarchy and the specific configuration of each layer, and which data is flexibly configured according to the situation of the message to be actually analyzed and the expected display result. According to the packet specification of the packet, at the first layer of the packet style data, setting an overall node parameter, for example, may include: describing the parameters of the whole node, such as the node division of the whole message structure: a) the style description is used as the unique identifier of the message style data; b) the message header is used for describing the number and/or name and the like of the message header; c) the message type is used for describing the function and/or the initiator of the message and the like; d) the bitmap is used for describing the existence and the content of the bitmap in the message; e) and the message body is used for describing the name of each field of the message body, whether the child node is included or not and the like.
In the embodiment, according to the message specification of the message, setting a child node parameter on a second layer of message style data; the child node parameters may include one or any combination of a plurality of field specific descriptions of a header of the packet, a plurality of field specific descriptions of a type of the packet, and a plurality of field specific descriptions of a body of the packet.
For example, according to the message specification of the message, at the second layer of the message style data, the method may include: further description is made for the case where the first layer contains child nodes, for example: the method comprises the following steps of specifically describing a plurality of fields of a message header, specifically describing a plurality of fields of a message type, specifically describing a plurality of fields of a message body and the like.
In the embodiment, according to the message specification of the message, a child node description parameter is set at the third layer of the message style data; the child node description parameters are used to further describe the child node.
For example, according to the packet specification of the packet, setting a child node description parameter at the third layer of the packet style data may include: child node descriptions for the fields of the second layer, for example: if the field 60 in the packet body node contains 4 child nodes, the style of each child node can be configured separately, and the child node can still configure its child node.
As an example, as shown in fig. 2, fig. 2 is a schematic diagram of an example of a message analysis method according to an embodiment of the present invention. In fig. 2, according to the message specification of the message, first, a unique identifier of the message style, that is, a message style description parameter, is defined, and corresponds to a style (message style) node in fig. 2, and is used to describe the name (name), id (number), and the like of the style; further, setting an overall node parameter at the first layer of the message style data may include: a) the header parameters, corresponding to the head (packet) node in fig. 2, are used to describe the header number, name, etc.; b) the message type parameter corresponds to a type (message type) node in fig. 2, and is used for describing a function, an initiator and the like of the message; c) BitMap parameters, corresponding to BitMap (BitMap) nodes in fig. 2, for describing the existence and content of bitmaps in the message; d) the message body parameters correspond to body nodes in fig. 2, and are used to describe the names of fields in the message body, whether child nodes are included, and the like. According to the message specification of the message, setting the child node parameters in the second layer of the message style data, which may include: further describing that the first layer contains child nodes, for example, there are 3 child nodes (each field of the header) in the header node of the first layer, and the second layer node configures parameters of each field of the header: a domain number (id), a name (name), a length (maxlen), whether or not a third-tier child node (son) is included, and the like. According to the packet specification of the packet, setting a child node description parameter at the third layer of the packet style data, for example, may include: child node descriptions for the fields of the second layer. For example: the message body child node 60 includes 4 child nodes, and the pattern of each child node (son) can be configured respectively, and the child nodes can still configure the child nodes thereof, and so on.
The meaning of the code in fig. 2 is as follows: style represents a message style unique identifier, wherein parameters comprise: the name (name) of the message style and the unique number (id) of the message style; the first layer of message style data includes: a message header parameter (head), a message type parameter (type), a BitMap parameter (BitMap) and a message body parameter (body); the second layer of the message style data is further description of the nodes of the first layer, as shown in the figure, a message header parameter (head) contains 3 child nodes (nodes), and each child node (node) comprises a configuration parameter field number (id), a name (name), a length (maxlen) and whether a child node (son) is contained; the third layer of the message style data is a further description of the second layer node, as shown in the figure, the message body (body) contains 3 sub-node fields (nodes) of the second layer, where the sub-node field with the number of 60 contains a third layer sub-node (son), including a configuration parameter sub-field number (id), a sub-field name (name), whether the sub-field is variable length (varlen), a length of the sub-field length (lenen), a maximum length of the sub-field (maxlen), and whether the sub-field contains a fourth layer sub-node (son).
In specific implementation, the message analysis method provided in the embodiment of the present invention may further include: and storing a plurality of preset message style data.
In the embodiment, the configured message style data is stored in the database, so that when the message specification of the received message is similar to the message specifications corresponding to the preset plurality of message style data, the similar message style data can be quickly applied and locally adjusted, or when the specification or the interface is upgraded, the similar message style data can be quickly modified.
In specific implementation, the message analysis method provided in the embodiment of the present invention may further include: and when the message specification of the message is upgraded, modifying the corresponding preset message style data according to the upgraded message specification.
In the embodiment, compared with the prior art, when the specification of a certain system is upgraded in stages or the interface is modified, the specification needs to be researched again or the analysis tool needs to be developed again, the development time is long, and the development cost is high. The message analysis method provided by the embodiment of the invention can read the well-defined message style data from the database table, and when the message type of a certain system is added, the similar message style data stored in the database can be called for applying and modifying; or when a certain system specification is updated, the defined message style data can be quickly acquired, and local adjustment is performed according to requirements. The problems that in the prior art, when the message specification of the system is upgraded and/or the data interface of the system is upgraded, the development time of a message analysis program is prolonged, and the development cost is increased are solved.
In specific implementation, the message analysis method provided in the embodiment of the present invention may further include: before determining the message content data associated with the message style data from the preset message content data, presetting a plurality of message content data associated with different message style data according to different message style data.
In an embodiment, a plurality of message content data are preset according to a message specification of a message, where the message content data may include: field number, field name, and field content.
In specific implementation, after the message content data associated with the message style data is determined from the preset message content data according to the selected message style data, the received message is analyzed according to the message style data and the message content data which correspond to the message specification, and message analysis data is obtained.
In an embodiment, the message may be divided into two types of data structures, namely, message style data and message content data, and the two types of data structures are stored, where the message style includes but is not limited to: field length, field data type, field containing child node hierarchical relationship. The embodiment of the invention meets the functions of customizing message style data and storing various message style data so as to analyze messages meeting different system interface specifications according to the customized style; message data includes, but is not limited to: field number, field name, field content. There is an association relation between the message data and the message pattern, each message pattern is dynamically configured in the message analysis device according to the message specification of each system, and after the corresponding system message is input, the dynamically configured message pattern is selected, and the device can automatically analyze the message. In an embodiment, the message analysis method provided in the embodiment of the present invention may be further configured to: and outputting and displaying the message analysis data, and displaying the analysis result through the message data. The embodiment of the invention realizes the analysis of different messages from a plurality of systems, overcomes the defect that the prior art can only analyze the message with a single message specification, and simultaneously meets the requirement of analyzing the messages with different message specifications from a plurality of systems.
As a specific example, as shown in fig. 3, fig. 3 is a schematic diagram of an example. Fig. 3 is a schematic diagram of an example of a message analysis method according to an embodiment of the present invention, where after a message is input, the configured message style data in the database is selected, and a data analysis result is obtained as shown in fig. 3. The data analysis results of the message can be displayed in a layered mode, for example, the number (name) node corresponding to the 3 fields of the message head is the head length, the head identification and the version number, the length of the whole message, and the value of the value (numerical value) field corresponding to the analysis results; the names (names) and values (values) of the 2, 3, 60 (including the 4 sub-fields of the 60 fields) body of the message may also be embodied in the result.
The meaning of the code in fig. 3 is as follows: the data represents a unique identifier of a message analysis result, wherein the parameters comprise: the name (name) of the message data and the unique identifier (styleid) of the associated message style data. The first layer of message analysis result data comprises: header data (head), type data (type), BitMap data (BitMap), and body data (body). The second layer of the message analysis result data is a further description of the nodes of the first layer, as shown in the figure, the header data (head) of the message contains 3 child nodes (nodes), each of which includes the data analysis result: domain number (id), name (name), domain value (value); the third layer of the message style data is a further description of the second layer node, as shown in the figure, the message body (body) contains 3 child nodes (nodes) of the second layer, where the child node with the number of 60 contains a third layer child node (son), and includes the data analysis result: sub-field number (id), sub-field name (name), sub-field value (value).
In the embodiment of the invention, message style data corresponding to the message specification is selected from preset message style data according to the message specification of a received message; the message style data is used for describing field characteristics and node relations of the message; determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message; the method has the advantages that the received message is analyzed according to the selected message style data and the associated message content data to obtain the message analysis data, so that the message style data corresponding to the message specification can be determined according to the message specification of the received message, the message content data can be further determined, the general analysis of the messages with different message specifications can be realized, compared with the prior art, the defect that the prior art can only analyze the message with a single message specification is overcome, and meanwhile, the requirement for analyzing the messages with different message specifications is met.
As described above, the embodiments of the present invention belong to an improvement on an external object of a computer, and achieve a way of dynamically configuring a message pattern to analyze message data composed by each system according to different specifications, so as to improve the message analysis accuracy, improve the development efficiency, shorten the development time, and reduce the development cost.
Based on the same inventive concept, the embodiment of the present invention further provides a message analysis apparatus, as described in the following embodiments. Because the principle of the message analysis apparatus for solving the problem is similar to that of the message analysis method, the implementation of the message analysis apparatus can refer to the implementation of the message analysis method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a schematic structural diagram of a message analysis apparatus in an embodiment of the present invention, as shown in fig. 4, including:
the message pattern data selecting module 01 is used for selecting message pattern data corresponding to message specifications from preset message pattern data according to the message specifications of the received messages; the message style data is used for describing field characteristics and node relations of the message;
the message content data determining module 02 is configured to determine, according to the selected message style data, message content data associated with the message style data from preset message content data; the message content data is used for displaying the content characteristics of the message;
the message analysis module 03 is configured to analyze the received message according to the selected message style data and the associated message content data to obtain message analysis data.
In an embodiment, the packet analysis apparatus provided in the embodiment of the present invention may further include: a message style data presetting module, configured to: presetting a plurality of message style data corresponding to the message specifications of different messages according to the message specifications of the different messages; the message style data comprises field length, field data type and a field containing node hierarchical relation.
In an embodiment, the message style data presetting module may be specifically configured to: setting a first layer node parameter of message style data according to message specifications of different messages; the first layer node parameters are used for describing first layer nodes, and the first layer nodes are used for describing the overall structure of the message; setting a second layer node parameter of message style data according to message specifications of different messages; the second-layer node parameters are used for describing second-layer nodes, and the second-layer nodes are child nodes of the first-layer nodes; setting a third layer node parameter of message style data according to message specifications of different messages; the third-layer node parameters are used for describing a third-layer node, and the third-layer node is a child node of the second-layer node.
In one embodiment, the first tier node parameters may include: the message type description, message header parameter, message type, bitmap parameter and message body parameter or any combination.
In an embodiment, the packet analysis apparatus provided in the embodiment of the present invention may further include: and the message style data modification module is used for modifying the corresponding preset message style data according to the upgraded message specification when the message specification of the message is upgraded.
In an embodiment, the packet analysis apparatus provided in the embodiment of the present invention may further include:
and presetting a plurality of message content data associated with different message style data according to the different message style data.
In an embodiment, the packet analysis apparatus provided in the embodiment of the present invention may further include: and the message style data modification module is used for modifying the corresponding preset message style data according to the upgraded message specification when the message specification of the message is upgraded.
In an embodiment, the packet analysis apparatus provided in the embodiment of the present invention may further include: and the message style data storage module is used for storing a plurality of preset message style data.
In one embodiment, the message analysis module may be further configured to output and display the message analysis data.
As a specific example, taking the analysis of the union pay 8583 message as an example, the message analysis flow steps can be as follows:
1) firstly, a message specification acquisition module can be arranged to acquire the message specification of the received Unionpay 8583 message; and then selecting a message style data selecting module, selecting message style data corresponding to the message specification of the Unionpay 8583 message from preset message style data according to the message specification of the received message, for example, searching whether a message style configuration meeting the expected message style configuration exists according to an interface document, and if so, directly jumping to the step 5. If the step 2 is not carried out, message style data of the message specification corresponding to the Unionpay 8583 message is newly built or updated;
2) before selecting the message style data of the corresponding message from the preset message style data, the method may further include: according to message specifications of different systems, message style data corresponding to the unionpay 8583 message is preset, for example, a message style (field length, field data type, hierarchical relationship between fields and child nodes, etc.) is configured or modified, as shown in fig. 5, where fig. 5 is a schematic diagram of an example of a message analysis method provided in an embodiment of the present invention.
The meaning of the code in fig. 5 is as follows: style represents a message style unique identifier, wherein parameters comprise: the name (name) of the message style and the unique number (id) of the message style; the first layer of message style data includes: a message header parameter (head), a message type parameter (type), a BitMap parameter (BitMap) and a message body parameter (body); the second layer of the message style data is further description of the nodes of the first layer, as shown in the figure, a message header parameter (head) contains 3 child nodes (nodes), and each child node (node) comprises a configuration parameter field number (id), a name (name), a length (maxlen) and whether a child node (son) is contained; the third layer of the message style data is a further description of the second layer node, as shown in the figure, the message body (body) contains 3 child nodes (nodes) of the second layer, where the child node field with the number of 60 contains a third layer child node (son), including a configuration parameter child field number (id), a sub field name (name), whether the sub field is variable length (varlen), a length of the sub field length (lenen), a maximum length of the sub field (maxlen), and whether the sub field contains a fourth layer child node (son).
3) Sending the defined message style data to a message style data storage module;
4) after receiving the newly added message style, the message style data storage module stores the configuration data in a database table;
5) a message content data determining module, configured to determine, according to the selected message style data, message content data associated with the message style data from preset message content data, for example, to define a result of message analysis, the message data (field number, field name, and field content);
6) establishing association between the message style data and the message content data, namely selecting the message style data and the message content data corresponding to the target message;
7) inputting a section of message, acquiring the message specification of the received message by a message specification acquisition module, and analyzing the input message by a message analysis module;
8) the message analysis module analyzes the received message according to the message style data and the message content data which correspond to the message specification to obtain message analysis data.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the message analysis method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the message analysis method.
In the embodiment of the invention, the message specification of a received message is obtained; selecting message style data corresponding to the message specification from preset message style data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message; determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message; the received message is analyzed according to the message style data and the message content data corresponding to the message specification to obtain the message analysis data, so that the message style data and the message content data corresponding to the message can be determined according to the received message, the analysis of different messages from a plurality of systems is realized, compared with the prior art, the defect that the prior art can only analyze the message of a single system is overcome, and meanwhile, the requirement for analyzing the messages of different message specifications from the plurality of systems is met.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A message analysis method is characterized by comprising the following steps:
selecting message style data corresponding to the message specification from preset message style data according to the message specification of the received message; the message style data is used for describing field characteristics and node relations of the message;
determining message content data associated with the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message;
and analyzing the received message by using the selected message style data and the associated message content data to obtain message analysis data.
2. The method of claim 1, further comprising:
presetting a plurality of message style data corresponding to the message specifications of different messages according to the message specifications of the different messages; the message style data comprises field length, field data type and a field containing node hierarchical relation.
3. The method of claim 2, wherein presetting a plurality of message pattern data according to message specifications of different messages comprises:
setting a first layer node parameter of message style data according to message specifications of different messages; the first layer node parameters are used for describing first layer nodes, and the first layer nodes are used for describing the overall structure of the message;
setting a second layer node parameter of message style data according to message specifications of different messages; the second-layer node parameters are used for describing second-layer nodes, and the second-layer nodes are child nodes of the first-layer nodes;
setting a third layer node parameter of message style data according to message specifications of different messages; the third-layer node parameters are used for describing a third-layer node, and the third-layer node is a child node of the second-layer node.
4. The method of claim 3, wherein the first tier node parameters comprise: the message type description, message header parameter, message type, bitmap parameter and message body parameter or any combination.
5. The method of claim 2, further comprising:
and when the message specification of the message is upgraded, modifying the corresponding preset message style data according to the upgraded message specification.
6. The method of claim 1, further comprising, prior to determining message content data associated with message style data from predetermined message content data:
and presetting a plurality of message content data associated with different message style data according to the different message style data.
7. A message analysis apparatus, comprising:
the message style data selecting module is used for selecting message style data corresponding to message specifications from preset message style data according to the message specifications of the received message; the message style data is used for describing field characteristics and node relations of the message;
the message content data determining module is used for determining message content data related to the message style data from preset message content data according to the selected message style data; the message content data is used for displaying the content characteristics of the message;
and the message analysis module is used for analyzing the received message by using the selected message style data and the associated message content data to obtain message analysis data.
8. The apparatus of claim 7, further comprising: a message style data presetting module, configured to: presetting a plurality of message style data corresponding to the message specifications of different messages according to the message specifications of the different messages; the message style data comprises field length, field data type and a field containing node hierarchical relation.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 6.
CN202010916903.XA 2020-09-03 2020-09-03 Message analysis method and device Active CN112055018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010916903.XA CN112055018B (en) 2020-09-03 2020-09-03 Message analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010916903.XA CN112055018B (en) 2020-09-03 2020-09-03 Message analysis method and device

Publications (2)

Publication Number Publication Date
CN112055018A true CN112055018A (en) 2020-12-08
CN112055018B CN112055018B (en) 2023-05-23

Family

ID=73606968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010916903.XA Active CN112055018B (en) 2020-09-03 2020-09-03 Message analysis method and device

Country Status (1)

Country Link
CN (1) CN112055018B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452712A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Analytic method based on Unionpay ISO 8583 message
CN114422592A (en) * 2022-01-21 2022-04-29 深圳壹账通智能科技有限公司 Message conversion method and device, computer equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7184538B1 (en) * 2000-06-30 2007-02-27 Verizon Services Corp. Method of and apparatus for mediating common channel signaling message between networks using control message templates
CN106534045A (en) * 2015-09-10 2017-03-22 银联国际有限公司 Configurable financial message conversion device and conversion method thereof
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message
CN109460220A (en) * 2018-10-19 2019-03-12 泰康保险集团股份有限公司 The predefined code generating method of message, device, electronic equipment and storage medium
CN110287247A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Date storage method, device, equipment and storage medium based on Unionpay's system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7184538B1 (en) * 2000-06-30 2007-02-27 Verizon Services Corp. Method of and apparatus for mediating common channel signaling message between networks using control message templates
CN106534045A (en) * 2015-09-10 2017-03-22 银联国际有限公司 Configurable financial message conversion device and conversion method thereof
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message
CN109460220A (en) * 2018-10-19 2019-03-12 泰康保险集团股份有限公司 The predefined code generating method of message, device, electronic equipment and storage medium
CN110287247A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Date storage method, device, equipment and storage medium based on Unionpay's system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
付蔚等: "智能家居异构网络中自动化设备的资源共享协议设计", 《电视技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452712A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Analytic method based on Unionpay ISO 8583 message
CN114422592A (en) * 2022-01-21 2022-04-29 深圳壹账通智能科技有限公司 Message conversion method and device, computer equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112055018B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN107273286B (en) Scene automatic test platform and method for task application
CN106354645B (en) Test method and test platform based on background system service or interface
CN112650766A (en) Database data operation method, system and server
CN111104106A (en) Visual development method, system and medium for integrating business process and communication message
CN110147225A (en) A kind of code generating method, device and computer equipment, storage medium
CN106293664A (en) Code generating method and device
CN107220096A (en) A kind of json data analysis methods and device
CN109144511B (en) Method and system for automatically generating numerical simulation graphical user interface
CN112055018A (en) Message analysis method and device
CN113535225B (en) Environment configuration file processing method, device, equipment and medium of application software
CN106354641A (en) Testing method and device for process engine
CN112181477A (en) Complex event processing method and device and terminal equipment
CN111651365B (en) Automatic interface testing method and device
US6219802B1 (en) System for generating test data
CN109542985A (en) A kind of general streaming Data Analysis Model and its construction method
CN115509942A (en) Test data generation method, device, equipment and storage medium
CN114564194A (en) Form self-defining development method and system based on VUE framework
CN115686621B (en) Rule engine rule script generation method and device
CN116360891A (en) Operator customization method and system for visual artificial intelligence modeling
CN110956025A (en) Method based on process template multiplexing
CN114416531A (en) Test data generation method, device, equipment and medium
CN112540970B (en) Metadata blood margin analysis method and system based on version management
CN114398226A (en) Network asset report generation method and device
CN113001538B (en) Command analysis method and system
CN113672509A (en) Automatic testing method, device, testing platform and storage medium

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