Reliable data transmission method and device thereof
A transmission method and data technology, applied in the field of network communication, can solve the problem that the UDP protocol cannot transmit data reliably, and achieve the effects of less system overhead, improved data transmission efficiency, and high data transmission efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] refer to figure 1 , which shows the flow of the first embodiment of the reliable data transmission method of the present invention, which specifically includes the following steps:
[0032] Step S101: the data sending end splits the file to be sent into data packets with serial numbers;
[0033] After the data receiver receives all the data packets, it can reassemble the data file according to the sequence number of each data packet.
[0034] Step S102: Encapsulate the above-mentioned data packet with the serial number into a data packet to be sent according to the preset buffer data packet format, and add it to the sending buffer;
[0035] In the preset buffer data packet format, at least the sequence number (Sq_no) and the data to be transmitted (data) should be included. If the length of the data to be transmitted is not fixed, the data length (len) should also be included; in addition, for convenience Judging and recording the retransmission situation of the data ...
Embodiment 2
[0047] In this preferred embodiment, the communication parties are the data sending end and the data receiving end. While sending data, they can also receive data from the other party. Both communication parties use a common protocol header. The format of the protocol header is shown in Table 1. :
[0048] Table 1, the format of the protocol header
[0049] Begin_tag
cmd
Sq_no
Ack_seq
datalen
data
[0050] Among them, Begin_tag is the packet identifier, and only the packet with this identifier is considered as the packet to be processed; Cmd is the command word of the upper layer protocol; Sq_no is the sequence number of this packet; Ack_seq is the sequence number of the reply data packet at the peer end when replying to this packet; datalen is the length of data to be transmitted in this packet; data is the data to be transmitted in this packet.
[0051] Each data terminal is equipped with a sending buffer and a receiving buffer. For 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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com