Segmented Message Header Parsing With Configurable Stage Skipping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data packet parsing methods in multi-layer networks are inflexible, require multiple parsing modules for different data types, and reduce parsing speed due to processing entire data messages at each layer, making them unsuitable for complex communication systems.
Innovation Solution
A staged parsing method that skips unnecessary parsing stages based on parsing configuration information, using a single parsing module to parse headers in multiple stages, and utilizing offset addresses to proceed to the appropriate stage, allowing for flexible parsing of various data types.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple parsing modules are introduced to handle different data packet types, then the system can process various data types, but the device complexity increases and parsing speed decreases
Solution Approach 1:
The patent implements a universal parsing module that can handle multiple data packet types through configuration files rather than requiring separate dedicated modules for each protocol type. The single module adapts to different packet formats by loading appropriate parsing rules from configuration files, thereby reducing system complexity while maintaining versatility across various data types
Solution Approach 2:
The system changes operational parameters dynamically by loading different configuration files that define parsing rules for various protocol types. Instead of structurally changing the system architecture with multiple modules, it modifies parsing parameters and rules through configuration files, allowing one module to serve multiple functions
2Loss of information
If entire data messages are processed at each layer, then complete data information is available for parsing, but the parsing speed is reduced due to longer data length
Solution Approach 1:
The patent extracts only the necessary header information from data packets at each parsing layer rather than processing entire data messages. By selectively extracting relevant fields and skipping unnecessary data, the system maintains complete information for required parsing operations while significantly reducing the amount of data processed, thereby improving parsing speed
Solution Approach 2:
The parsing process is segmented into multiple stages, where each stage processes only specific portions of the data message relevant to that layer. This staged approach divides the large data message into smaller manageable segments, allowing faster processing at each stage while preserving necessary information
3Device complexity
If a single parsing module is used for multiple stages, then device complexity is reduced, but the ability to handle different header types at different stages becomes limited
Solution Approach 1:
The single parsing module achieves versatility by dynamically changing its operational parameters through configuration files. Each configuration file contains specific parsing rules for different protocol header types, allowing the module to adapt its behavior to handle various header formats without requiring structural modifications or multiple dedicated modules
Data Source
AI summary
The present disclosure relates to a message segmented parsing method, apparatus, and device, and a storage medium. In the present disclosure, an n-stage parsing result is obtained by, according to parsing configuration information, performing n-stage parsing on a header comprised in a message; when a next-level header type to be parsed that is comprised in the n-stage parsing result is not the header type of n+1-stage parsing, the n+1-stage parsing of the header is skipped and n+2-stage parsing is entered; when the next-level header type to be parsed is the header type of n+1-stage parsing, the header undergoes n+1-stage parsing according to the offset address of the next stage comprised in the n-stage parsing result; and when N-stage parsing is completed or previous N-1 layer protocol parsing determines to skip N-stage parsing, the current segmented parsing of the header is stopped.


