Data transmission method and apparatus
A technology of data transmission and number, applied in the field of communication, can solve the problems of increasing the probability of sliding window width adjustment, wasting network transmission resources, and confirming the loss of information packets, so as to improve user experience, save network resources, and increase sending speed Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] In order to optimize file transmission, improve file block retransmission efficiency, avoid waste of network transmission resources, and effectively avoid continuous and violent fluctuations in window width, an embodiment of the present invention provides a method for data transmission, the content of which is as follows: Regularly scan the file block information in the sliding window to obtain the time value of waiting confirmation information for each file block information at the current scanning time; obtain the timeout retransmission time value of the sliding window; when the time value of waiting confirmation information in the sliding window is greater than the timeout warning value file block information, adjust the width of the sliding window, remove the sent file block information from the sliding window, use the adjusted width sliding window to read the file block information corresponding to the file block to be sent and send it immediately; use the adjusted w...
Embodiment 2
[0068] When there is packet loss or network delay is unstable, it is prone to the situation that the unsuccessfully sent file blocks are scattered in the sliding window, causing the window to fail to slide backward smoothly. The embodiment of the present invention provides a method for data transmission , the content of the method is as follows: regularly scan the sliding window to obtain the number of unsuccessfully sent file blocks in the sliding window at the current scanning time; when the number of unsuccessfully sent file blocks is less than the preset value, remove the successfully sent files in the sliding window The file block information corresponding to the block is read, the file block information corresponding to the file block to be sent is read, and the file block corresponding to the read file block information is sent. see figure 2 , the method provided in the embodiment of the present invention specifically includes:
[0069] Step 201: Scan the sliding wind...
Embodiment 3
[0093]When transferring files on the network, the file block may be resent due to the loss of the file block sent by the sender, and due to network instability and other reasons, it may also be due to the loss of the confirmation packet fed back by the receiver, that is, the receiving The party has actually received a file block, but due to the loss of the feedback confirmation information, the sender mistakenly believes that the file block has failed to be sent, resulting in the resend of the file block. Therefore, in order to effectively avoid this situation, improve the file Sending efficiency, saving network transmission resources, the embodiment of the present invention provides a method of data transmission, after the sender sends the file block corresponding to the current file block information to the receiver, the method includes: after the receiver receives the file block, send the file block to the sender The returned acknowledgment information carries information an...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 