Method and device for data file transmission

A transmission method and data file technology, applied in the field of communication, can solve the problems of low network bandwidth utilization, long time, slow transmission of large data files, etc.

Active Publication Date: 2013-09-18
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] However, when using the above method to transmit a single large data file, on the one hand, because the single-thread transmission method is mainly used, the transmission speed of a single large data file is relatively slow
On the other hand, the integrity verification of a single large data file is usually performed after the download of the large data file is completed. Therefore, it takes a long time for a single large data file to be reliably transmitted, and the resource overhead is large, and thus Causes low utilization of network bandwidth

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
  • Method and device for data file transmission
  • Method and device for data file transmission
  • Method and device for data file transmission

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] Such as figure 1 As shown, the embodiment of the present invention provides a data file transmission method, which is executed by the sending end, and the details are as follows:

[0042] 101. The sending end divides a single large data file into blocks, and sequentially numbers each block of data;

[0043] 102. The sending end simultaneously sends respective block data corresponding to the at least two download threads to at least two download threads of the receiving end.

[0044] Accordingly, such as figure 2 As shown, the embodiment of the present invention also provides a data file transmission method, which is executed by the receiving end, which is specifically as follows:

[0045] 201. The receiving end creates at least two download threads, each of the download threads corresponds to a task queue, each of the task queues is mapped to the block data with different numbers in a single big data file, and all the task queues are mapped The block data of is combined into t...

Embodiment 2

[0070] Such as Figure 5 As shown, an embodiment of the present invention provides a sending end, including:

[0071] The block unit 11 is used to block a single large data file, and sequentially number each block data;

[0072] The sending unit 12 is configured to simultaneously send block data corresponding to each of the at least two download threads to at least two download threads of the receiving end.

[0073] Such as Image 6 As shown, the embodiment of the present invention also provides a receiving end, including:

[0074] The creating unit 21 is configured to create at least two download threads, each of the download threads corresponds to a task queue, and each of the task queues is mapped to the block data with different numbers in a single big data file, and all the task queues The block data mapped in the database is combined into the single big data file;

[0075] The concurrent download unit 22 is configured to start all the download threads for concurrent download, 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 embodiment of the invention provides a method and a device for data file transmission and relates to the technical field of communication. The method comprises the following steps: a receiving end creates at least two downloading threads and starts all the downloading threads to carry out concurrent downloading, and each of the downloading threads independently downloads block data in a corresponding task queue from the receiving end and writes the downloaded block data into a buffer queue; the receiving end simultaneously starts a parallel single thread, and the parallel single thread sequentially acquires block data which is numbered i in the buffer queue and carries out orderly-iterative data integrity verification on the block data which is numbered i to obtain a data integrity verification value after orderly combination of the block data which is numbered i and all the previous block data; and the receiving end writes the block data which is numbered i into a target file. According to the embodiment of the invention, the transmission speed for a single large data file is improved, the reliable transmission time for a single large data file is shortened, and the network bandwidth utilization rate is improved.

Description

Technical field [0001] The present invention relates to the field of communication technology, and in particular to a data file transmission method and device. Background technique [0002] At present, the implementation process of transferring big data files in the Internet environment is as follows: [0003] The sender performs as follows: [0004] Step 1) Divide the large file into several data packets; [0005] Step 2) Assign an identifier to the large file and each data packet; [0006] Step 3) Judge whether all the data packets have been sent, if they have not been sent, go to step 4); if they are sent, end the sending; [0007] Step 4) Send data to the receiver in units of data packets; [0008] Step 5) If the result returned by the receiver is correct, go to step 3), otherwise go to step 4). [0009] The receiver performs as follows: [0010] Step 1') After correctly receiving the data sent by the sender, return the correct reception to the sender, otherwise an error will be return...

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 Applications(China)
IPC IPC(8): H04L29/08
Inventor 史军李皓黄卓满宋士伟王冬生赵威邹永
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products