Packet Edit Processing via Protocol Template Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing packet edit processing methods are complex and inefficient, particularly due to high instruction complexity and increased processing time as packet lengths increase, as they require extensive data movement and processing.

Innovation Solution

A method that generates an input packet template based on to-be-edited protocol header fields and a preset protocol field mapping relationship, allowing edit processing on the template rather than the entire packet, reducing data volume and instruction complexity by converting protocol descriptors into protocol header fields.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If packet edit processing is implemented by processor executing programs that move and modify packet data directly, then the processing can be performed with simple device structure, but the instruction complexity becomes high and processing speed becomes slow

Engineering Contradiction:
Improvedevice structureVSAvoidpacket edit processing speed
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent creates a packet template that is a simplified copy or representation of the actual packet structure. Instead of processing the entire packet data, the system processes only the template which contains the essential structural information. This reduces the data volume significantly while maintaining the ability to perform edit operations, thereby improving processing speed without complicating the device structure.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent segments the packet processing into two distinct parts: the packet template (containing structural information) and the actual packet data. By separating these components, the system can process only the relevant template portion for edit operations, avoiding the need to move and process the entire packet data, thus reducing instruction complexity and improving processing efficiency.

Inventive Principle:
Principle #1Segmentation

2Manufacturing precision

If extensive data movement is performed during packet edit processing, then complete packet processing can be achieved, but the processing time increases especially as packet lengths increase

Engineering Contradiction:
Improvepacket processing completenessVSAvoidpacket edit processing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent extracts only the essential structural information from the complete packet data and stores it in a packet template. When edit processing is needed, the system works with this extracted template information rather than moving and processing the entire packet data. This extraction approach ensures that all necessary processing is completed while minimizing data movement and processing time.

Inventive Principle:
Principle #2Taking out (Extraction)

3Ease of operation

If a large amount of packet data is moved during editing operations, then all packet content can be processed, but the instruction complexity and resource utilization increase

Engineering Contradiction:
Improvepacket editing capabilityVSAvoidinstruction complexity
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent creates a lightweight packet template that copies only the essential structural information from the full packet. Edit operations are performed on this simplified template representation rather than the complete packet data. This approach maintains full packet editing capability while significantly reducing the number of instructions needed and lowering resource utilization requirements.

Inventive Principle:
Principle #26Copying

Data Source

PatentEP3799368B1Packet edit processing method and related device
Publication Date: 2024.11.27 HUAWEI TECH CO LTD
  • EP3799368B1 patent drawingFigure 1~2-a
  • EP3799368B1 patent drawingFigure 2-b~2-d
  • EP3799368B1 patent drawingFigure 2-e~2-g

AI summary

A packet edit processing method and a related device. The packet edit processing method includes: generating an input packet template based on N- to-be-edited protocol header fields of an input packet, and a preset protocol field mapping relationship, where the input packet template includes N protocol descriptors that are corresponding, in a one-to-one manner, to the N protocol header fields, arid the protocol field mapping relationship is a mapping relationship between a protocol field included in a protocol descriptor and a protocol field included in a protocol header field that has a correspondence with the protocol descriptor; performing edit processing on the input packet template to obtain an output packet template; and converting, based on the preset protocol field mapping relationship, M protocol descriptors included in the obtained output packet template into M protocol header fields of an output packet, and replacing the N protocol header fields in the input packet with the M protocol header fields to obtain the output packet. The foregoing solution helps reduce instruction complexity for packet edit processing and improve efficiency of packet edit processing.