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

Inactive Publication Date: 2014-09-17
HUAWEI TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of low bandwidth utilization and low transmission reliability in the case of limited transmission bandwi

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data transmission method and device based on queues and communication system
  • Data transmission method and device based on queues and communication system
  • Data transmission method and device based on queues and communication system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data transmission method and device based on queues and a communication system and belongs to the technical field of communication. The data transmission method based on the queues comprises the steps that when the first queue has vacant positions, N data messages are written into a shared memory, and the N data messages are transmitted based on the first queue, wherein N is a positive integer and is larger than or equal to two, and the first queue is one queue or is one of multiple queues; a write pointer of the first queue in the storage memory is updated, wherein the value of the updated writer pointer is equal to the sum of the value of the original write pointer and N. According to the data transmission method and device based on the queues and the communication system, the N data messages are written into the shared memory, the write pointer of the first queue in the shared memory is updated, N is a positive integer and is larger than or equal to two, the value of the updated writer pointer is equal to the sum of the value of the original write pointer and N, the write pointer does not need to be sent when the data are sent, in this way, the sending frequency of the write pointer is reduced, the utilization rate of bandwidth is increased, the occurrence frequency of data loss caused when the transmission bandwidth is limited is reduced, and transmission stability is improved.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a queue-based data transmission method, device and communication system. Background technique [0002] Queue-based data transfer is a common method for asynchronous transfers between two devices. [0003] Taking data transmission from a first device to a second device as an example, the existing queue-based data transmission method includes: the first device constructs the data to be transmitted into a data message, and writes the data message into the first device and the second device. In the shared storage area of ​​the second device; the first device constructs the PD (Packet Descriptor, message descriptor) of the data message, constructs the PD of the data message as a descriptor message, and writes the descriptor message into the shared storage In the queue of the zone, the PD of the data message includes message information such as the storage address and le...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/12H04L29/08H04L12/58G06F17/30
Inventor 刘全喜谢彬
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products