Data transmission method and device based on queues and communication system
A data transmission method and technology of a data transmission device, applied in the field of communication, can solve the problems of low transmission reliability and low bandwidth utilization, and achieve the effects of reducing data discarding, improving bandwidth utilization, and reducing transmission
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] The embodiment of the present invention provides a queue-based data transmission method, which is suitable for the first device to transmit data to the second device through the shared storage area. The shared storage area can be independent of the first device and the second device, or can belong to the first device. device or a second device, one or more queues, and a cache area of write pointers and read pointers corresponding to the queues are set in the shared storage area. The execution subject of this method is the first device, see figure 2 , the method includes:
[0070] Step 101: When the first queue is not full, write N data packets into the shared storage area, where N is a positive integer and N≥2.
[0071] In this embodiment, the N data packets are transmitted based on the first queue, and the first queue is one of one or more queues.
[0072] Step 102: Update the write pointer of the first queue in the shared storage area. The updated value of the wri...
Embodiment 2
[0078] The embodiment of the present invention provides a queue-based data transmission method, which is suitable for the second device to receive the data transmitted by the first device through the shared storage area. The shared storage area can be set independently of the first device and the second device, or can belong to For the first device or the second device, there are one or more queues in the shared storage area, and buffer areas for write pointers and read pointers corresponding to the queues one by one. The execution subject of this method is the second device, see image 3 , the method includes:
[0079] Step 201: Obtain the updated write pointer of the first queue from the shared storage area.
[0080] In this embodiment, the first queue is one of one or more queues, and the updated value of the write pointer is equal to the value before the updated write pointer plus N, where N is a positive integer and N≥2.
[0081] Step 202: According to the updated write ...
Embodiment 3
[0086]The embodiment of the present invention provides a queue-based data transmission method. In this embodiment, before updating the write pointer of the first queue in the shared storage area, the storage addresses and lengths of N data messages are constructed as a Descriptor message, and write the descriptor message into the first queue. see Figure 4 , the method includes:
[0087] Step 300: The first device judges whether the first queue is not full.
[0088] In this embodiment, the first queue is one queue or one of multiple queues.
[0089] Optionally, when the first queue is a circular queue, step 300 may include:
[0090] The first device obtains the read pointer of the first queue;
[0091] When the next unit of the unit pointed to by the write pointer of the first queue is the unit pointed to by the read pointer of the first queue, it is determined that the first queue is full;
[0092] When the unit next to the unit pointed to by the write pointer of the fir...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com