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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com