Traitement en cours

Veuillez attendre...

Paramétrages

Paramétrages

Aller à Demande

1. CN103442037 - Method for achieving multithreading breakpoint upload of oversized file based on FTP

Office
Chine
Numéro de la demande 201310347968.7
Date de la demande 09.08.2013
Numéro de publication 103442037
Date de publication 11.12.2013
Type de publication A
CIB
H04L 29/08
HÉLECTRICITÉ
04TECHNIQUE DE LA COMMUNICATION ÉLECTRIQUE
LTRANSMISSION D'INFORMATION NUMÉRIQUE, p.ex. COMMUNICATION TÉLÉGRAPHIQUE
29Dispositions, appareils, circuits ou systèmes non couverts par un seul des groupes H04L1/-H04L27/135
02Commande de la communication; Traitement de la communication
06caractérisés par un protocole
08Procédure de commande de la transmission, p.ex. procédure de commande du niveau de la liaison
Déposants South China University of Technology
Inventeurs Wu Yimin
Mandataires cai maolue
Titre
(EN) Method for achieving multithreading breakpoint upload of oversized file based on FTP
(ZH) 一种基于FTP协议实现超大文件多线程断点上传的方法
Abrégé
(EN)
The invention discloses a method for achieving multithreading breakpoint upload of an oversized file based on the FTP. The method comprises the following steps that an FTP client terminal establishes multithreading connection to achieve multithreading upload of the file; the file is divided into a plurality of blocks which are distributed to different threads for upload, and when a file block is uploaded, a new file is distributed to the thread; the operation of uploading a transmitted data part again is avoided by uploading the part not yet uploaded of each file block through multithreads in a concurrent mode; the FTP client terminal establishes a thread in addition, and the thread is specially used for recording temporary configuration file information in real time. The method for achieving multithreading breakpoint upload of the oversized file based on the FTP is applied to FTP upload service of the oversized file, and the time required by uploading the oversized file to the FTP server can be effectively shortened through a method of multithreading concurrent upload. The data part already transmitted is prevented from being uploaded again, so that transmission amount is reduced, and the time for uploading the oversized file to the FTP server is further saved.

(ZH)

本发明公开了一种基于FTP协议实现超大文件多线程断点上传的方法,包括下述步骤:S1、FTP客户端建立多线程连接,实现文件的多线程上传;S2、将文件划分成多个块,分配给不同的线程上传,当某个线程上传完一个文件块后,再分配新的文件块给该线程;S3、利用多线程并发上传每个文件块尚未上传的部分,避免了再次上传已传输的数据部分的操作;S4、FTP客户端另外建立一个线程,专门用于实时记录临时配置文件信息。本发明适用于超大文件的FTP上传服务,通过多线程并发上传的方法,能够有效缩短上传超大文件到FTP服务器所需的时间;通过断点上传的方法,避免再次上传已传输的数据部分,减少了传输量,进一步节省了上传超大文件到FTP服务器的时间。