Unlock instant, AI-driven research and patent intelligence for your innovation.

A kind of data transmission method and device based on udp

A data transmission method and data packet technology, applied in the field of UDP-based data transmission method and device, to achieve the effects of preventing congestion and improving efficiency

Active Publication Date: 2019-05-24
ZHEJIANG DAHUA TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a UDP-based data transmission method and device to solve the problem of improving data transmission efficiency in the high packet loss rate scenario in the prior art

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
  • A kind of data transmission method and device based on udp
  • A kind of data transmission method and device based on udp
  • A kind of data transmission method and device based on udp

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0090] image 3 The flow chart of the UDP-based data transmission method provided in Embodiment 1 of the present invention specifically includes the following processing flow:

[0091] Step 301, the sending end stores the original data to be sent in the application layer protocol stack.

[0092] In this step, the original data to be sent may be the data input by the user at the sender side in the upper layer application, and the application layer protocol stack may be defined as PTCPSTACK protocol stack.

[0093] Step 302, the sending end performs encapsulation processing on the original data to be sent to obtain a data packet to be sent.

[0094] In this step, after encapsulating the original data to be sent, the sender assigns a packet sequence number to the data packet to be sent, and each data packet corresponds to a packet sequence number.

[0095] Step 303, the sending end stores the data packets to be sent in the sending queue of the application layer.

[0096] Step ...

Embodiment 2

[0133] Based on the same inventive concept, according to the UDP-based data transmission method provided by the above-mentioned embodiments of the present invention, correspondingly, Embodiment 2 of the present invention also provides a UDP-based data transmission device, and its structural diagram is as follows Figure 4 shown, including:

[0134] The first storage unit 401 is configured to store the obtained data packets to be sent in the sending queue of the application layer;

[0135] The determining unit 402 is configured to, when receiving a receiving response carrying packet loss information sent by the receiving end, calculate the maximum buffer size of locally sendable data packets, the buffer amount of the peer notification buffer, and the number of data packets that have been sent but have not received an acknowledgment response. The minimum value of the two is determined as the number of data packets to be sent this time, and the buffer amount announced by the oppo...

Embodiment 3

[0152] Based on the same inventive concept, according to the UDP-based data transmission method provided by the above-mentioned embodiments of the present invention, correspondingly, Embodiment 3 of the present invention also provides a UDP-based data transmission device, and its structural diagram is as follows Figure 5 shown, including:

[0153] The parsing unit 501 is configured to parse and process the data packet received this time to obtain at least one packet sequence number of the data packet received this time;

[0154]The determining unit 502 is configured to determine whether the data packets received this time are out of order according to the sequence relationship between the packet sequence number of the data packet received this time and the packet sequence number of the data packet received last time;

[0155] The first sending unit 503 is configured to determine that the received data packets are out of sequence when the packet sequence numbers of the receive...

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 UDP-based data transmission method and device, including: storing the obtained data packets to be sent in the sending queue of the application layer; when receiving the receiving response carrying packet loss information sent by the receiving end, sending The minimum value among the maximum buffer size of data packets that can be sent locally, the buffer amount advertised by the peer end, and the number of data packets that have been sent but have not received an acknowledgment response is determined as the number of data packets to be sent this time, and the buffer amount advertised by the peer end is the receiving end The current number of data packets that can be received; the data packets to be sent of the obtained data packets to be sent this time are sent to the user datagram protocol UDP protocol stack of the receiving end. With the solution provided by the present invention, when UDP is used for data transmission, according to the received packet loss information, the number of data packets to be sent this time is controlled to prevent network transmission data congestion, thereby improving the efficiency of data transmission.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a UDP-based data transmission method and device. Background technique [0002] In network communication, because User Datagram Protocol (UDP, User Datagram Protocol) has the characteristics of low resource consumption and fast processing speed when processing data packets, it is widely used in audio, video and ordinary data transmission. [0003] The main function of UDP is to compress network data traffic into data packets, but UDP does not provide data packet grouping, assembly and cannot sort data packets. When the message is sent, due to the lack of a receiving confirmation mechanism, the sender cannot know Whether the data packet is received safely and completely. Due to the volatility of the network, data packets are easily discarded at network nodes, resulting in unreliable data transmission. For real-time data packet transmission applications, such as: video trans...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/813H04L29/06H04L47/20
Inventor 汤正华付艳龙丁林超张兴明
Owner ZHEJIANG DAHUA TECH CO LTD