Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A realization method of a self-defined protocol based on a protocol analysis framework

A technology for customizing protocols and protocol analysis, applied in transmission systems, electrical components, etc., can solve problems such as no automatic and fast processing methods

Active Publication Date: 2019-06-04
HANGZHOU GUYI NETWORK TECH CO LTD
View PDF8 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, there is no automatic and fast method for the configuration and protocol analysis of custom protocols that have a fixed message format but are not included in the scope of common protocols.

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 realization method of a self-defined protocol based on a protocol analysis framework
  • A realization method of a self-defined protocol based on a protocol analysis framework
  • A realization method of a self-defined protocol based on a protocol analysis framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] figure 1 A flow chart of a method for customizing protocol configuration in the present invention is shown.

[0056] Such as figure 1 As shown, a method for customizing protocol configuration includes the following steps:

[0057] Step S1, loading a configuration file, the configuration file is used to specify the port number associated with the protocol, the network card to be monitored and other parameters.

[0058] The main information and features contained in the configuration file are as follows:

[0059] 1) Protocol name, each protocol name is a protocol, multiple protocols can be configured.

[0060] 2) Transport layer protocol type (TCP / UDP)

[0061] 3) Field name, the field name is a description of some byte sets in the message, and each protocol can contain multiple fields.

[0062] 4) The description field for the field name includes the following:

[0063] a) Data type (integer, unsigned integer, floating point, character)

[0064] b) start byte

[...

Embodiment 2

[0099] image 3 A flow chart showing a preferred embodiment of a custom protocol configuration method based on the protocol analysis framework of the present invention;

[0100] Step of judging the protocol: judging the type of the custom protocol according to the port number of the received original network message;

[0101] Common protocol parsing steps for custom protocols: input the original network packet into the common protocol parsing function for custom protocols, and output it as a string in json format;

[0102] Determine the output step: Determine whether to output the field according to one or more specified fields in the custom protocol type.

[0103] Figure 4 It shows a block diagram of a custom protocol configuration system based on the protocol analysis framework of the present invention, including:

[0104] Judgment protocol module: judge the custom protocol type according to the port number of the received original network message;

[0105] Common proto...

Embodiment 3

[0108] Figure 5 A general flow chart of a configuration method of a custom protocol based on a protocol analysis framework and a corresponding analysis method according to the present invention is shown.

[0109] Step of judging the protocol: judging the type of the custom protocol according to the port number of the received original network message;

[0110] Common protocol parsing steps for custom protocols: input the original network packet into the common protocol parsing function for custom protocols, and output it as a string in json format;

[0111] Determine the output step: Determine whether to output the field according to one or more specified fields in the custom protocol type.

[0112] The field name here refers to the "key" in the json format.

[0113] The field here refers to the "key-value pair" in the json format.

[0114] Image 6 shows the basis Figure 5 A more detailed flow chart of a method for parsing a custom protocol based on the protocol parsin...

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 invention provides a method and a system for realizing a user-defined protocol based on a protocol analysis framework. The configuration method comprises the following steps: S1, loading a configuration file; S2, loading a common protocol; Step S3, establishing an association relationship among the protocol name, the port number and an analysis function, and storing the association relationship into a global hash table, the analysis function being a protocol analysis function on a transmission layer; S4, acquiring a protocol data message needing to be analyzed; S5, decomposing the protocoldata message needing to be analyzed, and extracting one or more port numbers from the protocol data message; S6, searching in a global hash table according to the extracted one or more port numbers,and if an analytic function associated with the one or more port numbers is found, executing the step S5; And S7, analyzing the protocol data message needing to be analyzed by utilizing the found analysis function to obtain an analysis result.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and device for configuring and analyzing a custom protocol. The invention is suitable for configuration and analysis of self-defined protocols which have a fixed message format but are not included in the scope of general protocols. Background technique [0002] The description of the background technology in the present invention belongs to the related technology of the present invention, and is only used to illustrate and facilitate the understanding of the content of the present invention. prior art as of the filing date. [0003] As we all know, the current is an information age, the value of information lies in its ability to be transmitted and exchanged, whether it is daily affairs or the computer itself, if there is no data interaction, this will make the Internet worthless. The transmission of information is bound to be accompanied by the agreement on the tran...

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 Applications(China)
IPC IPC(8): H04L29/06
Inventor 赵春云贺本彪苗维杰
Owner HANGZHOU GUYI NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products