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

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

Active Publication Date: 2013-04-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of realizing the present invention, the inventor found that the above-mentioned prior art has at least the following shortcomings and deficiencies: on the one hand, as long as the waiting time of the file block exceeds the RTO, the sender thinks that the file block has failed to be sent, and the file block needs to be rewritten. However, if the waiting time of the file block exceeds the RTO, it may be due to the loss of the confirmation packet fed back by the receiver, that is, the receiver has actually received a file block, but due to the loss of the feedback confirmation information, the sender mistakenly believes that the file The block transmission failed, resulting in the resend of the file block, affecting the transmission progress and wasting network transmission resources;
[0006] On the other hand, when retransmitting file blocks, it is necessary to reduce the width of the sliding window first, clear the sliding window, and then send the file blocks that have not been successfully sent. Due to the need to clear the sliding window, the retransmission efficiency is low; Reduce the width of the sliding window, especially when the network is unstable, the probability of resending file blocks increases, so the probability of needing to adjust the width of the sliding window increases, resulting in continuous and violent fluctuations in the width of the window, which in turn causes unfavorable necessary timeout

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 apparatus
  • Data transmission method and apparatus
  • Data transmission method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

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

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 method and apparatus for transmitting data, belonging to the communication technical field, the method comprises: acquiring time values of information waiting for affirmation of each file block information in present scanning time sliding window; when the proportionality of file block for no receiving affirmation information is small or the file block information with time values of information waiting for affirmation larger than the over time value exist, removing the transmitted file block information from the window, loading the un-transmitted file block and immediately transmitting, if the file block information with time values of information waiting for affirmation larger than the over time value exist, also adjusting the width of the sliding window, retransmitting the file block corresponding to the file block information. According to centralizing the file blocks with possible overtime waiting for affirmation information in the window, the dependence on each file block in the window can be reduced, the condition of transmitting the file block of the whole window can be prevented when the new file blocks are not read and the small quantity overtimepackages are waited, the file transmitting efficiency is greatly improved, the file block transmitting speed is improved, and the occupied network resource can be saved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a data transmission method and device. Background technique [0002] With the development of network technology, the network instant messaging tool (IM, Instant Messager) has been accepted by most users today and has become an indispensable software tool for users, not only in the usual leisure and entertainment, but also in the user widely used in work. Therefore, users put forward higher requirements on the ease of use, stability, security and other aspects of IM software. Among them, file transfer, as a function supported by the network instant messaging tool, plays an important role in the basic IM service. How to transfer faster and more efficiently is a problem that requires long-term research. [0003] At present, the method of realizing file transfer is based on the UDP (User Datagram Protocol, User Datagram Protocol) sliding window mechanism: the sender divides t...

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): H04L1/18H04L1/16
Inventor 陈家君李沛昭邹代柱
Owner TENCENT TECH (SHENZHEN) CO LTD