DMA Checksum Switching for Payload Length Changes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing communication protocols face inefficiencies in checksum calculation during DMA transfer, particularly when payload length changes, leading to increased processing load and reduced communication speed.
Innovation Solution
A DMA transfer apparatus with dual checksum calculation units allows selection between payload sum and Internet checksum calculations, enabling efficient checksum processing based on payload length changes, thereby maintaining communication speed.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If payload sum calculation is performed during DMA transfer, then communication speed is improved, but when payload length changes, the payload sum becomes invalid requiring recalculation which increases processing load
Solution Approach 1:
The patent implements a dynamic selection mechanism that switches between payload sum calculation mode and Internet checksum calculation mode based on whether payload length changes occur. The control unit determines the appropriate calculation method in real-time, allowing the system to adapt its processing approach to match the actual data transfer conditions, thereby maintaining high communication speed while avoiding unnecessary recalculation overhead
Solution Approach 2:
The patent changes the checksum calculation parameter based on payload length stability. When payload length is stable, the system uses payload sum calculation (faster method). When payload length changes, the system switches to Internet checksum calculation (more robust method). This parameter change allows the system to optimize between speed and accuracy based on actual operating conditions
2Reliability
If Internet checksum calculation is performed for all data transfers, then checksum accuracy is improved, but processing time increases reducing communication speed
Solution Approach 1:
The patent applies partial action by performing only payload sum calculation when payload length remains unchanged, rather than always performing the complete Internet checksum calculation. This partial approach maintains sufficient accuracy for stable payload scenarios while significantly reducing processing time. The full Internet checksum calculation is reserved only for cases where payload length changes require higher accuracy verification
Data Source
AI summary
A DMA (Direct Memory Access) transfer apparatus acquires information including a transfer source address and a transfer destination address based on a received transfer instruction, selects whether to perform first checksum calculation for data from an area of a memory corresponding to the transfer source address or perform second checksum calculation different from the first checksum calculation, and transfers data obtained via the checksum calculation selected in the selecting to an area of the memory corresponding to the transfer destination address.


