L2TP Message Hardware Acceleration Using Dual Matching Rules
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current solutions fail to achieve hardware acceleration for Layer 2 Tunneling Protocol (L2TP) messages due to their distinct composition, leading to lower processing performance compared to plain messages.
Innovation Solution
Implement a method and apparatus that utilize two sets of matching rules to identify L2TP messages, allowing for separate acceleration processing strategies based on message type, thereby enhancing hardware acceleration capabilities without affecting plain message processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If L2TP messages are directly passed to the protocol stack for processing, then the processing can be performed using standard protocol stack, but hardware acceleration cannot be achieved resulting in lower processing performance
Solution Approach 1:
The patent segments the message processing into two distinct paths: one for plain messages and one for L2TP encapsulated messages. By dividing the processing logic based on message type identification, the system can apply hardware acceleration specifically to L2TP messages while maintaining standard processing for plain messages, thus improving overall productivity without unnecessarily increasing device complexity for all message types.
Solution Approach 2:
The patent applies local quality by implementing different processing strategies for different message types. L2TP messages receive specialized hardware acceleration processing with inner layer information matching, while plain messages use standard protocol stack processing. This localized optimization improves processing performance for L2TP messages without adding complexity to the entire message processing system.
2Productivity
If hardware acceleration is implemented for L2TP messages with inner layer information, then processing performance improves, but the system complexity increases due to multiple matching rules
Solution Approach 1:
The patent implements dynamic processing by making the matching rule selection dependent on the message type. The system dynamically switches between first matching rules (for plain messages) and second matching rules (for L2TP messages with inner layer information). This dynamic approach enables hardware acceleration for L2TP messages while keeping the system adaptable, preventing permanent complexity increase as the system only applies complex matching rules when needed.
Solution Approach 2:
The patent changes the matching parameters based on message type. For L2TP messages, the system uses second matching rules that include inner layer information (source IP, destination IP, source port, destination port, protocol type), while for plain messages it uses simpler first matching rules. This parameter change approach enables targeted hardware acceleration without permanently increasing system complexity.
Data Source
AI summary
Disclosed are a method, an apparatus and a device for performing hardware acceleration on an L2TP message and a storage medium. The method includes: determining whether the current message requiring hardware acceleration is an L2TP type message according to a first matching rule, the first matching rule is a protocol stack configuration information only used to identify the header type of the current message; selecting a corresponding acceleration processing strategy according to the determination result, when the determination result is an plain message of a non-L2TP type, performing acceleration processing on the plain message according to a preset protocol stack standard, and when the determination result is an L2TP message, performing acceleration processing on the L2TP message according to a second matching rule, the second matching rule is protocol stack configuration information for matching inner layer information of the L2TP message.


