Supercharge Your Innovation With Domain-Expert AI Agents!

A method for parsing network communication data packets based on java language

A java language and network communication technology, applied in the direction of electrical digital data processing, creating/generating source code, instruments, etc., can solve the problems of high maintenance and expansion costs, and achieve the effects of improving readability, reducing costs, and simplifying complexity

Active Publication Date: 2019-06-25
GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The advantage of this analysis method is to clarify the specific analysis method or function of each proposed protocol. If the program analysis module makes an error, it will be easy to locate or correct the error. It is not related to other protocols, but relatively for multi-part protocols need to write The analysis method or function of N protocols is also quite high for later maintenance and expansion costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for parsing network communication data packets based on java language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0035] Such as figure 1 As shown, the network communication data packet analysis method of the present embodiment includes the following steps:

[0036] Step 1. Define the basic data type enumeration DataType, extended enumeration, etc. DataType中字段包含dt_UINT8、dt_INT8、dt_UINT16、dt_INT16、dt_UINT32、dt_INT32、dt_UINT64、dt_INT64、dt_FLOAT、dt_DOUBLE、dt_ASCII、dt_BOOLEAN、dt_UINT8_ARRAY、dt_INT8_ARRAY、dt_UINT16_ARRAY、dt_INT16_ARRAY、dt_UINT32_ARRAY、dt_INT32_ARRAY、dt_UINT64_ARRAY、dt_INT64_ARRAY、dt_FLOAT_ARRAY、dt_DOUBLE_ARRAY、dt_NONE;

[0037] Step 2. Create the annotation class DataColumn, Target specifies the range of objects modified by the annotation @Target(ElementType.FIELD), and Retention specifies the length of time the annotation is retained @Retention(RetentionPolicy.RUNTIME). Define the basic field attributes of annotations, field attributes include data type dataType data type enumeration default value is dt_NONE, length data length default value is 0 (general string ASCII needs ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a network communication data packet analysis method. The method comprises the following steps: S1, editing custom annotations; S2, editing the corresponding logic processing according to the content defined by the custom annotations, and packaging the corresponding logic processing as a 'data conversion class'; S3, editing the data entity class of the protocol according to the protocol structure of the protocol; and S4, calling the 'data conversion class', loading the data entity to be analyzed, reflecting the corresponding information in the data entity class, and calling the corresponding logic processing according to the information to output the analysis result. The network communication data packet analysis method based on Java language employs the custom annotations and the reflection mechanism of the Java, the annotations can be infinitely extended to realize corresponding functions according to the extended annotations so as to greatly improve the expansibility, the binding force and the flexibility and simplify the complexity.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a method for analyzing network communication data packets based on the Java language. Background technique [0002] The widespread use of computer systems and networks has brought the world into the information age. However, just because almost everything in modern society is "computerized", such as the management of economic activities (production, circulation, exchange, consumption, etc.) ", that is to say, they are all running based on "software (program)", but from another perspective, if software needs to communicate with each other, it must interact through a huge "network". The language in the "network" is just like we usually do in life. An agreement is drawn up in advance, what kind of word combination represents what kind of meaning, and the language in the "network" is no exception. Here we want to mention It is a method of analyzing network language (network dat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06G06F8/30
CPCG06F8/315H04L69/06H04L69/08
Inventor 李家威
Owner GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More