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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


