CN106789923A - The normalized system and method for DTO protocol datas - Google Patents
The normalized system and method for DTO protocol datas Download PDFInfo
- Publication number
- CN106789923A CN106789923A CN201611062844.4A CN201611062844A CN106789923A CN 106789923 A CN106789923 A CN 106789923A CN 201611062844 A CN201611062844 A CN 201611062844A CN 106789923 A CN106789923 A CN 106789923A
- Authority
- CN
- China
- Prior art keywords
- data
- dto
- type
- protocol datas
- element object
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a kind of normalized system and method for DTO protocol datas, for DTO protocol datas to be resolved into element object structure, normalized system includes type identification module and data resolution module;The type identification module be used for judge that packet is to ask also to be in response to, and according to judge the corresponding process of analysis of call by result;The data resolution module is used to parse solid data type in DTO protocol datas into element object structure, in parsing the corresponding attribute of the DTO protocol datas type and adding the element object structure.DTO protocol datas analytic method of the invention, protocol data unified form can be normalized into, it is thus possible to meet various protocols data processing needs, the convenience that lifting is used, complexity, the repeatability of conventional method are solved simultaneously, reduce development cost.
Description
Technical field
The present invention relates to communication technique field, it particularly relates to a kind of normalized system of DTO protocol datas and side
Method.
Background technology
As Internet technology, software engineering flourish, modern operation system agreement is constituted also increasingly to be enriched,
In TCP/IP network protocol stacks, the agreement positioned at application layer is more and more., it is necessary to various application layers in some audit products
Protocol data is analyzed and extracts, however, different agreements is constituted varying, this increases the difficulty of analysis significantly.
Typically, for different procotols, universal processing method is a kind of corresponding aiming at each protocol development
Analysis program, for parsing this protocol data.So, with the increase of the protocol type for needing to support, list is required for every time
Solely the data after exploitation, and parsing can not be multiplexed.Substantial amounts of development and maintenance work are not only increased, is not easy to save
Cost.
In sum, how problem described above is just can effectively solve the problem that, is a problem urgently to be resolved hurrily.
The content of the invention
It is an object of the invention to propose a kind of normalized system and method for DTO protocol datas, various associations are disclosure satisfy that
Discuss the process demand of data, the convenience that lifting is used.
To realize above-mentioned technical purpose, the technical proposal of the invention is realized in this way:
A kind of normalized system of DTO protocol datas, it is described for DTO protocol datas to be resolved into element object structure
Normalized system includes type identification module and data resolution module;
The type identification module is for judging that packet is to ask also to be in response to and corresponding according to the call by result for judging
Process of analysis;
The solid data type that the data resolution module is used to parse in DTO protocol datas is solved into element object structure
In separating out the corresponding attribute of the DTO protocol datas type and adding the element object structure.
Further, the data resolution module includes object oriented processing module, data type judge module and data
Extraction module;
The object oriented processing module is used to obtain DTO object orienteds;
The data type judge module is used to judge the data type of current markers;
The data extraction module is used for the data type drawn according to data type judge module, extracts the type
Then these data are set up element object structure by data and length respectively, and numerical value is assigned to the node text of the element object
Or attribute list, and these element objects are assigned to as the child node of upper strata element object the child list of father node.
Further, the element object structure includes node text, attribute list, child list, the data of node
Type and parent information.
A kind of normalized method of DTO protocol datas, for DTO protocol datas to be resolved into element object structure, including
Following steps:
1) judge that packet is request data package or response data packet, according to the corresponding resolution flow of structure choice for judging
Journey;
2) the solid data type in DTO protocol datas is parsed into element object structure, parses the DTO agreements number
According to the corresponding attribute of type and add the element object structure.
Further, step 2) comprise the following steps:
2.1) when packet is request data package, DTO object orienteds are obtained first, then followed the steps below, work as number
When being in response to packet according to bag, directly follow the steps below;
2.2) data type of current markers is judged;
2.3) according to step 2.2) data type judged extracts the type data and length, then to these data point
Element object structure is not set up, numerical value is assigned to the node text or attribute list of the element, and these element objects are made
The child list of father node is assigned to for the child node of upper strata element object.
Further, the element object structure includes node text, attribute list, child list, the data of node
Type and parent information.
Beneficial effects of the present invention:, can be normalized into for protocol data by DTO protocol datas analytic method of the invention
Unified form, it is thus possible to meet various protocols data processing needs, the convenience that lifting is used, while solving general side
The complexity of method, repeatability, reduce development cost.
Brief description of the drawings
Fig. 1 is the normalized system block diagram of DTO protocol datas described according to embodiments of the present invention;
Fig. 2 is the normalized method flow diagram of DTO protocol datas described according to embodiments of the present invention.
Specific embodiment
With reference to the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description.
As shown in figure 1, the present invention provides a kind of normalized system and method for DTO protocol datas, for solving association at present
The complexity of parsing is discussed, different agreement data requirement is melted into a kind of unified structure, the agreement number after will standardizing by the present invention
It is stored in element object according to according to tree, facilitates the lookup and extraction of data.So, other functions module is needed to use
During the protocol data, data directly can be read from E objects, without parsing original agreement packet again.
Element object is customized common data structure of the invention, for storing normalized protocol data.The data
Inside configuration includes three basic elements:Node text, attribute list, child list.Meanwhile, the data class of the subsidiary node
Type, parent information etc..
DTO full name Data Transfer Object, i.e. data transfer object, are commonly used in far call.It is first when using
Required each item data first is included with the object, then far call is carried out as single parameter, finally locally divided
Solve each item data.Relative to traditional Remote call method, DTO reduces the number of times of far call, improves the speed of data acquisition
Degree, reduces network bandwidth requirement.
How DTO protocol datas are resolved to element object structure by the detailed description of the invention, specific as follows:
As shown in figure 1, a kind of normalized system of DTO protocol datas described in embodiments in accordance with the present invention, for inciting somebody to action
DTO protocol datas resolve to element object structure, and normalized system includes type identification module and data resolution module;
The type identification module is for judging that packet is to ask also to be in response to and corresponding according to the call by result for judging
Process of analysis;
Specifically, being request data if the data header in packet is c..m;If the data header of packet
It is that r.. is then response data (wherein .. is two invisible characters of byte).Then by type (request/response), adjust respectively
Use request/response process of analysis.
It is request data if the data header in packet is c..m;If the data header of packet is r..
It is response data (wherein .. is two invisible characters of byte).Then by type (request/response), respectively call request/
Response process of analysis.
The solid data type that the data resolution module is used to parse in DTO protocol datas is solved into element object structure
In separating out the corresponding attribute of the DTO protocol datas type and adding the element object structure.
Further, the data resolution module includes object oriented processing module, data type judge module and data
Extraction module.
The object oriented processing module is used to obtain DTO object orienteds.Only request data just has DTO object names
Claim, acquisition modes are exactly to obtain the first character string behind request mark c..m, are added to the node text of currentElement object
In this;
The data type judge module is used to judge the data type of current markers.Such as S identification strings, its data structure
It is S+2 byte characters string length+string content into form;I identifies integer, and its data form of the composition is I+4 byte datas;T
Mark Boolean true;F mark Booleans false;Vt identify array, its data form of the composition be Vt+4 bytes membership+
Member's description etc..
The data extraction module is used for the data type drawn according to data type judge module, extracts the type
Then these data are set up element object structure by data and length respectively, and numerical value is assigned to the node text of the element object
Or attribute list (single number is assigned to node text, and compound type is assigned to attribute list), and using these element objects as
The child node of upper strata element object is assigned to the child list of father node.
Constantly repeat the above-mentioned type to judge and data extraction, until data are parsed, thus construct multiple E objects
Tree, so far, be formed general E object structure data.
As shown in Fig. 2 the invention also discloses a kind of normalized method of DTO protocol datas, for by DTO protocol datas
Element object structure is resolved to, is comprised the following steps:
1) judge that packet is request data package or response data packet, according to the corresponding resolution flow of structure choice for judging
Journey;
Specifically, being request data if the data header in packet is c..m;If the data header of packet
It is that r.. is then response data (wherein .. is two invisible characters of byte).Then by type (request/response), adjust respectively
Use request/response process of analysis.
2) the solid data type in DTO protocol datas is parsed into element object structure, parses the DTO agreements number
According to the corresponding attribute of type and add the element object structure.
Further, step 2) comprise the following steps:
2.1) when packet is request data package, DTO object orienteds are obtained first, then followed the steps below, work as number
When being in response to packet according to bag, directly follow the steps below.Only request data just has DTO object orienteds, and acquisition modes are just
It is to obtain the first character string behind request mark c..m, is added in the node text of currentElement object;
2.2) data type of current markers is judged;Such as S identification strings, its data form of the composition is S+2 byte characters
String length+string content;I identifies integer, and its data form of the composition is I+4 byte datas;T mark Booleans true;F is identified
Boolean false;Vt identifies array, and its data form of the composition is Vt+4 bytes membership+member's description etc..
2.3) according to step 2.2) data type judged extracts the type data and length, then to these data point
Do not set up element object structure, by numerical value be assigned to the element node text or attribute list (single number be assigned to node text
This, compound type is assigned to attribute list), and it is assigned to father node using these element objects as the child node of upper strata element object
Child list.
Constantly repeat the above-mentioned type to judge and data extraction, until data are parsed, thus construct multiple E objects
Tree, so far, be formed general E object structure data.
In sum, it is of the invention compared to general protocol analysis mode, DTO protocol datas parsing side of the invention
Method, can be normalized into unified form, it is thus possible to meet various protocols data processing needs by protocol data, and lifting makes
Convenience, while solving the complexity of conventional method, repeatability, reduces development cost.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.
Claims (6)
1. a kind of normalized system of DTO protocol datas, for DTO protocol datas to be resolved into element object structure, its feature
It is that normalized system includes type identification module and data resolution module;
The type identification module is used to judge that packet is to ask also to be in response to, and is solved accordingly according to the call by result for judging
Analysis flow;
The solid data type that the data resolution module is used to parse in DTO protocol datas is parsed into element object structure
The corresponding attribute of the DTO protocol datas type simultaneously adds the element object structure.
2. the normalized system of DTO protocol datas according to claim 1, it is characterised in that the data resolution module
Including object oriented processing module, data type judge module and data extraction module;
The object oriented processing module is used to obtain DTO object orienteds;
The data type judge module is used to judge the data type of current markers;
The data extraction module is used for the data type drawn according to data type judge module, extracts the data of the type
And length, these data are then set up into element object structure respectively, by numerical value be assigned to the element object node text or
Attribute list, and these element objects are assigned to as the child node of upper strata element object the child list of father node.
3. the normalized system of DTO protocol datas according to claim 1, it is characterised in that the element object structure
Including node text, attribute list, child list, the data type of node and parent information.
4. a kind of normalized method of DTO protocol datas, for DTO protocol datas to be resolved into element object structure, its feature
It is to comprise the following steps:
1) judge that packet is request data package or response data packet, according to the corresponding process of analysis of structure choice for judging;
2) the solid data type in DTO protocol datas is parsed into element object structure, parses the DTO protocol datas class
The corresponding attribute of type simultaneously adds the element object structure.
5. the normalized method of DTO protocol datas according to claim 4, it is characterised in that step 2) including following step
Suddenly:
2.1) when packet is request data package, DTO object orienteds are obtained first, then followed the steps below, work as packet
When being in response to packet, directly follow the steps below;
2.2) data type of current markers is judged;
2.3) according to step 2.2) data type judged extracts the type data and length, then these data built respectively
Vertical element object structure, numerical value is assigned to the node text or attribute list of the element, and using these element objects as upper
The child node of layer element object is assigned to the child list of father node.
6. the normalized method of DTO protocol datas according to claim 1, it is characterised in that the element object structure
Including node text, attribute list, child list, the data type of node and parent information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611062844.4A CN106789923A (en) | 2016-11-28 | 2016-11-28 | The normalized system and method for DTO protocol datas |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611062844.4A CN106789923A (en) | 2016-11-28 | 2016-11-28 | The normalized system and method for DTO protocol datas |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106789923A true CN106789923A (en) | 2017-05-31 |
Family
ID=58901752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611062844.4A Pending CN106789923A (en) | 2016-11-28 | 2016-11-28 | The normalized system and method for DTO protocol datas |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106789923A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113505326A (en) * | 2021-07-08 | 2021-10-15 | 傲普(上海)新能源有限公司 | Dynamic coding data transmission control method based on http protocol family |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394267A (en) * | 2008-10-08 | 2009-03-25 | 北京启明星辰信息技术股份有限公司 | Security information management system and method based on general normalized labeling language |
CN102143148A (en) * | 2010-11-29 | 2011-08-03 | 华为技术有限公司 | Parameter acquiring and general protocol analyzing method and device |
US20140278575A1 (en) * | 2013-03-15 | 2014-09-18 | State Farm Mutual Automobile Insurance Company | Systems And Methods Of Processing Insurance Data Using A Web-Scale Data Fabric |
CN105279614A (en) * | 2015-11-11 | 2016-01-27 | 上海熙菱信息技术有限公司 | Business auditing system based on process and method thereof |
CN105306478A (en) * | 2015-11-11 | 2016-02-03 | 上海熙菱信息技术有限公司 | System and method for normalization of HTTP (Hyper Text Transport Protocol) protocol data |
-
2016
- 2016-11-28 CN CN201611062844.4A patent/CN106789923A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394267A (en) * | 2008-10-08 | 2009-03-25 | 北京启明星辰信息技术股份有限公司 | Security information management system and method based on general normalized labeling language |
CN102143148A (en) * | 2010-11-29 | 2011-08-03 | 华为技术有限公司 | Parameter acquiring and general protocol analyzing method and device |
US20140278575A1 (en) * | 2013-03-15 | 2014-09-18 | State Farm Mutual Automobile Insurance Company | Systems And Methods Of Processing Insurance Data Using A Web-Scale Data Fabric |
CN105279614A (en) * | 2015-11-11 | 2016-01-27 | 上海熙菱信息技术有限公司 | Business auditing system based on process and method thereof |
CN105306478A (en) * | 2015-11-11 | 2016-02-03 | 上海熙菱信息技术有限公司 | System and method for normalization of HTTP (Hyper Text Transport Protocol) protocol data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113505326A (en) * | 2021-07-08 | 2021-10-15 | 傲普(上海)新能源有限公司 | Dynamic coding data transmission control method based on http protocol family |
CN113505326B (en) * | 2021-07-08 | 2023-04-25 | 傲普(上海)新能源有限公司 | Dynamic coding data transmission control method based on http protocol family |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104320304B (en) | A kind of core network user flow application recognition methods of the multimode fusion easily extended | |
US7570661B2 (en) | Script-based parser | |
CN102098331B (en) | Method and system for reducing WEB type application contents | |
US7283988B1 (en) | Code generator for a distributed processing system | |
CN110381054A (en) | Message parsing method, device, equipment and computer readable storage medium | |
US20020111820A1 (en) | Transaction-based enterprise application integration ( EAI ) and development system | |
US20070038698A1 (en) | Method and apparatus for generating unique id packets in a distributed processing system | |
CN103428261A (en) | Method to process HTTP header with hardware assistance | |
CN104012063A (en) | Controller for flexible and extensible flow processing in software-defined networks | |
US20060126658A1 (en) | System and method for transmission of information between locations on a computer network with the use of unique packets | |
US8532331B2 (en) | Method for monitoring a picture or multimedia video pictures in a communication system | |
US11880401B2 (en) | Template generation using directed acyclic word graphs | |
EP3379771B1 (en) | Message processing method, device and system | |
CN106789242A (en) | A kind of identification application intellectual analysis engine based on mobile phone client software behavioral characteristics storehouse | |
CN108989301A (en) | A kind of network flow data index method, equipment and storage medium indexed more | |
CN1703890A (en) | Method for protocol recognition and analysis in data networks | |
EP3211853B1 (en) | Real-time validation of json data applying tree graph properties | |
US20090234960A1 (en) | Protocol processing apparatus and processing method | |
CN101282362B (en) | Method and apparatus for detecting depth packet | |
CN103076894B (en) | A kind of for build the method and apparatus of input entry according to object id information | |
CN103188267A (en) | Protocol analyzing method based on DFA (Deterministic Finite Automaton) | |
CN106789923A (en) | The normalized system and method for DTO protocol datas | |
CN106657145A (en) | Method for automatically finding database based on communication protocol and SQL grammar | |
CN108183890B (en) | Method and system for analyzing data communication protocol | |
CN104079450A (en) | Method and device for generating characteristic pattern set |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170531 |