FTP (file transfer protocol) file transfer method based on asynchronous read-write and FTP client

A file transmission and client-side technology, applied in the transmission system, electrical components, etc., can solve the problems of reducing the efficiency of framework scheduling, poor software usability, software platform integrity damage, etc., to achieve the effect of ensuring high performance and high efficiency

Active Publication Date: 2017-05-31
FENGHUO COMM SCI & TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when FTP is incorporated into a message-driven software framework, there is a problem: FTP is a file-intensive protocol for reading and writing. Due to the inefficient and time-consuming IO (input and output) operations of FTP files (because FTP files are large, generally is about 100M), so after incorporating FTP into the message-driven framework, transferring the entire large FTP file will reduce the efficiency of the overall scheduling of the framework, and even cause other program components to be difficult to work normally
[0003] For a long time, the contradiction between the inefficiency of file operations and the overall efficiency of the platform has been a difficult problem to solve
Based on this point and in order to avoid the above problems, most of the current software platforms give up the asynchronous implementation of FTP, and place the implementation of FTP outside the message-driven framework, which will inevitably cause damage to the integrity of the software platform and make it more complicated. The communication mechanism of the software will make the usability of the software worse and worse

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
  • FTP (file transfer protocol) file transfer method based on asynchronous read-write and FTP client
  • FTP (file transfer protocol) file transfer method based on asynchronous read-write and FTP client
  • FTP (file transfer protocol) file transfer method based on asynchronous read-write and FTP client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0023] see figure 1 As shown, the FTP file transfer method based on asynchronous reading and writing in the embodiment of the invention comprises the following steps:

[0024] S1: The user specifies the FTP file information that needs to be read and written on the FTP client. The FTP file information includes the file name and file storage path, and then transfers to S2.

[0025] S2: The FTP client obtains information such as the size of the FTP file locally according to the FTP file information; reads and writes the FTP file into several read-write data blocks according to the file size, and the size of each read-write data block is 4k to 2M. Go to S3.

[0026] S3: The FTP client sends an asynchronous file read and write request message to the message-driven framework. The asynchronous file read and write request message includes the FTP fi...

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 an FTP (file transfer protocol) file transfer method based on asynchronous read-write and an FTP client and relates to the field of FTP configuration. The method comprises the following steps: the FTP client acquires FTP file sizes locally according to FTP file information needing to be read or written; FTP files are split into a plurality of read-write data blocks according to the file sizes; the FTP client sends an asynchronous file read-write request message to a message drive framework, and the message drive framework acquires a read-write worker thread in a preset thread pool; data blocks needing to be read or written in the FTP files are read by means of the read-write worker thread according to the asynchronous file read-write request message. According to the method, basic functions of FTP cannot be affected while high efficiency of the message drive framework is guaranteed, FTP is brought into the message drive type software framework perfectly, and the method is quite suitable for being popularized.

Description

technical field [0001] The invention relates to the field of FTP configuration, in particular to an FTP file transmission method based on asynchronous reading and writing and an FTP client. Background technique [0002] In the current data communication transmission equipment, in order to improve the modularization and operation efficiency of the software, the core software generally adopts the message-driven software framework. In order to realize the basic network management function, FTP (File Transfer Protocol, file transfer protocol) is generally required as a most basic software feature. However, when FTP is incorporated into a message-driven software framework, there is a problem: FTP is a file-intensive protocol for reading and writing. Due to the inefficient and time-consuming IO (input and output) operations of FTP files (because FTP files are large, generally is about 100M), so after incorporating FTP into the message-driven framework, transferring the entire lar...

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
IPC IPC(8): H04L29/08
Inventor 李和松魏哲郑远
Owner FENGHUO COMM SCI & TECH 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