Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 bandwidth in the prior art, the embodiment of the present invention provides a queue-based data transmission method, device and communication system

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

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

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products