Network Message Parsing via Configuration Files
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing network message parsing technologies face challenges in managing multiple protocols, requiring frequent software and hardware modifications for protocol switching, which hinders hitless upgrades and reliable operation.
Innovation Solution
A method that uses configuration files to identify and parse network messages by modifying only the section description information for changes in processing methods, allowing for hitless upgrades and improved flexibility.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If software and hardware are modified to support protocol switching, then the network server can process multiple protocols, but the complexity of the system increases and hitless upgrade cannot be implemented
Solution Approach 1:
The patent segments the protocol processing logic into separate configuration files, where each protocol has its own dedicated configuration section. This allows the system to support multiple protocols without mixing their processing logic, reducing overall system complexity while maintaining versatility.
Solution Approach 2:
The patent implements dynamic protocol switching by allowing the network server to load and unload protocol configuration files at runtime without requiring software or hardware modifications. This dynamic approach enables hitless upgrades while supporting multiple protocols.
2Adaptability or versatility
If software is modified to support new protocols, then the network server can handle protocol switching, but service interruption occurs during upgrades
Solution Approach 1:
The patent prepares protocol configuration files in advance with complete processing logic for each protocol. When a new protocol needs to be supported, the configuration file is ready beforehand and can be loaded without service interruption, enabling hitless upgrades.
Solution Approach 2:
The patent introduces a configuration file as an intermediary layer between the network server and protocol processing logic. This intermediary allows protocol updates to be made by replacing configuration files rather than modifying the server itself, maintaining service continuity during upgrades.
3Measurement precision
If implementation logic is reset for each protocol, then accurate parsing can be achieved, but the processing time increases
Solution Approach 1:
The patent pre-compiles protocol processing logic into configuration files during system initialization or before processing begins. This preliminary preparation allows the network server to quickly reference pre-defined parsing rules during actual message processing, maintaining both accuracy and speed.
Solution Approach 2:
The patent creates copied instances of protocol processing logic in the form of configuration files for each protocol. Instead of resetting implementation logic from scratch for each protocol, the system uses pre-prepared copies of the logic, reducing processing time while maintaining parsing accuracy.
Data Source
AI summary
A method for parsing a network message and a communication device, which includes: receiving a network message, where the network message includes one or more sections; identifying that an application protocol type of the network message is a first application protocol; acquiring, from a current section that is in the network message and that is described by a piece of section description information in a configuration file corresponding to the first application protocol, interesting data indicated by interesting data indication information in the section description information; and executing a decision method in the section description information by using all or a part of the acquired interesting data as a decision condition, thereby obtaining a corresponding decision result, when the current section is a last section of the network message, the decision result includes a processing method of a next message of the network message.


