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
Example Embodiment
[0068] Example 1
[0069] An embodiment of the present invention provides a queue-based data transmission method, which is suitable for a first device to transmit data to a second device through a shared storage area. The shared storage area may be independent of the first device and the second device, or may belong to the first device. The device or the second device, the shared storage area is provided with one or more queues, and a buffer area with write pointers and read pointers corresponding to the queues one-to-one, and the execution body of the 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, 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 a...
Example Embodiment
[0077] Embodiment 2
[0078] An embodiment of the present invention provides a queue-based data transmission method, which is suitable for a second device to receive data transmitted by a first device through a shared storage area. The shared storage area may be set independently of the first device and the second device, or may belong to The first device or the second device has one or more queues in the shared storage area, and a buffer area of write pointers and read pointers that correspond to the queues one-to-one. The execution body of the method is the second device, see image 3 , the method includes:
[0079] Step 201: Acquire 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, the value after the update of the write pointer is equal to the value before the update of the write pointer plus N, where N is a positive integer and N≧2.
[0081] Step 202: According to the u...
Example Embodiment
[0085] Embodiment 3
[0086]An 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 packets are constructed as one Descriptor message, and write the descriptor message to the first queue. see Figure 4 , the method includes:
[0087] Step 300: The first device determines 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...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap