Automatic parsing method and apparatus of application protocol message
A technology of application protocol and protocol message, applied in the direction of electrical components, transmission systems, etc., can solve the problems of lack of maintainability and scalability, heavy workload, and low efficiency in application protocol analysis, and achieve maintainability and The effect of scalability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 The flow chart of the automatic parsing method of the application protocol message provided by Embodiment 1 of the present invention, this embodiment is applicable to the situation where the content of the application protocol message needs to be parsed, and the method can be automatically parsed by the application protocol message device, which may be implemented in software and / or hardware. Such as figure 1 Said, the method specifically includes the following steps:
[0028] S110. Add a template file according to the protocol features of the application protocol message, wherein the template file is a logical message analysis template edited by using a preset script language.
[0029] In this embodiment, the application protocol message refers to a network communication message generated by an Internet application based on the TCP / IP protocol system, such as HTTP (Hypertext Transfer Protocol, HyperText Transfer Protocol), FTP (File Transfer Protocol, File ...
Embodiment 2
[0047] This embodiment provides a preferred implementation of step S130 on the basis of the above-mentioned embodiments. The template parsing class in Embodiment 1 includes: a template matching unit, a template verification unit, a field content extraction unit and a data output unit. figure 2 It is a flow chart of the automatic parsing method of the application protocol message provided in Embodiment 2 of the present invention, as figure 2 As shown, the method includes:
[0048] S210. Add a template file according to the protocol features of the application protocol message, wherein the template file is a logical message parsing template edited by using a preset script language.
[0049] S220. Perform compilation processing on each template file, and generate each template analysis class corresponding to each template file.
[0050] In this embodiment, each template parsing class records the specific parsing method of the corresponding application protocol message and the ...
Embodiment 3
[0066] This embodiment provides a preferred implementation manner of step S260 on the basis of the foregoing embodiments. image 3 It is a flow chart of the automatic parsing method of the application protocol message provided by Embodiment 3 of the present invention, as image 3 As shown, the method includes:
[0067] S310. Add a template file according to the protocol features of the application protocol message, wherein the template file is a logical message analysis template edited by using a preset script language.
[0068] S320. Perform compilation processing on each template file, and generate each template analysis class corresponding to each template file.
[0069] S330. Analyze the header of the target application protocol message to obtain the triplet of HOST, URL and METHOD.
[0070] S340. Perform template matching on the parsed triplet of HOST, URL and METHOD with the matching information in each template matching unit.
[0071] S350. If there is a first templa...
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