Streaming Data Packet Structure for Integrity
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data transmission technologies fail to accurately determine the starting and ending positions of data, leading to data structure disorder during transmission.
Innovation Solution
A data transmission method that generates data packets with a header identification code, sub-packet quantity information, data packet byte sum quantity information, check bits, at least one sub-packet, and an end-of-packet identification code, allowing receiving terminals to parse and extract sub-packets accurately, establishing internal links to maintain data structure integrity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If data packets are transmitted in streaming mode with basic packet information, then transmission efficiency is improved, but data structure integrity deteriorates
Solution Approach 1:
The data packet is segmented into distinct functional components: header identification code for packet recognition, sub-packet quantity information for structure organization, data packet byte sum quantity information for size verification, check bit for integrity validation, at least one sub-packet for data content, and end-of-packet identification code for boundary marking. This segmentation allows each component to serve its specific function while maintaining overall data structure integrity during streaming transmission.
Solution Approach 2:
The header identification code and end-of-packet identification code act as intermediary markers that define packet boundaries and structure. These intermediary elements enable the receiving terminal to accurately parse and extract sub-packets from the streaming data without compromising data structure integrity, while still maintaining high transmission efficiency.
2Stability of the object's composition
If data packets include detailed structure information, then data structure integrity is improved, but packet size increases
Solution Approach 1:
Different parts of the data packet have different functions and densities of information. The header contains concentrated structure information (identification code, sub-packet quantity, byte sum), while the body contains actual data content. This local quality differentiation ensures that structure information is efficiently packed where needed without unnecessarily increasing overall packet size.
Solution Approach 2:
The packet structure uses compact parameter representations: sub-packet quantity information and data packet byte sum quantity information are stored in efficient formats that minimize size while providing complete structural definition. The check bit uses minimal space (single bit) to provide comprehensive integrity verification.
Data Source
AI summary
Disclosed is a data transmission method including the following operations: generating, by a transmitting terminal, a data packet according to a preset generation rule, and transmitting the data packet to a receiving terminal in a streaming transmission way, wherein the data packet at least comprises a header identification code, sub-packet quantity information, data packet byte sum quantity information, a check bit, at least one sub-packet and an end-of-packet identification code; parsing, by the receiving terminal, the received data packet according to a preset parsing rule to extract the at least one sub-packet in the data packet; creating, by the receiving terminal, a data packet object, and establishing an internal link to each extracted sub-packet. The present disclosure also discloses a data transmission device and a computer readable storage medium. With the present disclosure, a starting position and an ending position of data can be determined and confusion of a data structure can be avoided.


