Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File transmission method and system

A file transmission and file technology, applied in the field of data transmission, can solve the problems of low transmission efficiency and occupy the transmission network for a long time, and achieve the effect of high file transmission efficiency and fast file transmission speed.

Active Publication Date: 2012-11-21
山东中创软件商用中间件股份有限公司
View PDF3 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a file transfer method and system to solve the problem that the existing file transfer technology has low transfer efficiency and needs to occupy the transfer network for a long time when the file transfer needs to be restarted. The scheme is as follows:

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
  • File transmission method and system
  • File transmission method and system
  • File transmission method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Embodiment 1 of the present invention provides a file transfer method, figure 1 As a schematic flow chart of the method, the method provided in Embodiment 1 of the present invention may include:

[0037] S11: Divide the file to be transferred into multiple sub-files.

[0038] In this embodiment, dividing the file to be transferred into a plurality of sub-files may specifically be: dividing the file to be transferred into a plurality of sub-files on average, that is, the size of each sub-file is the same, and the size of the sub-files is set by the user, and at the same time , assign a unique identifier to each sub-file, and the identifier of each sub-file can be the serial number of the sub-file. This embodiment does not limit the size of each divided sub-file to be the same or different, as long as the file to be transferred is divided into multiple sub-files, it is within the protection scope of the present invention.

[0039] S12: Start multiple threads to transmit...

Embodiment 2

[0051] Embodiment 2 of the present invention provides a file transmission method, figure 2 It is a schematic flow chart of the method. In addition to steps S11-S13 in Embodiment 1, the file transfer method provided in Embodiment 2 of the present invention may also include:

[0052] S14: Determine whether the file to be transferred is successfully transferred, if not, execute step S15; if yes, execute step S16.

[0053] S15: According to the information of the successfully transmitted subfiles in the record file, start the transmission of the unsuccessfully transmitted subfiles, and then go to step S14.

[0054] S16: Merging multiple sub-files to restore the file to be transferred.

[0055] In this embodiment, each subfile is identified by two attributes of offset and blocksize, wherein offset identifies the starting position of the subfile in the file to be transferred, and blocksize identifies the size of the subfile. After all the subfiles are successfully transferred, th...

Embodiment 3

[0060] Embodiment 3 of the present invention provides a file transmission system, image 3 As a schematic structural diagram of the system, the file transmission system provided by Embodiment 3 of the present invention may include: a division module 11 , a transmission module 12 and a recording module 13 .

[0061] Wherein, division module 11 is used for dividing the file to be transferred into a plurality of sub-files; transmission module 12 is used to start multiple threads to transmit a plurality of sub-files; recording module 13 is used to record the information of successfully transmitted sub-files to the record in the file.

[0062] In the file transmission system provided by the third embodiment of the present invention, the file to be transmitted is divided into multiple sub-files, and multiple threads are started to transmit the multiple sub-files. Since multiple threads are used to transmit the files to be transmitted at the same time, the file transmission speed is...

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 provides a file transmission method and system. A file to be transmitted is divided into a plurality of sub-files; and then, a plurality of threads are started to transmit a plurality of the sub-files and information of the successfully-transmitted sub-files are recorded into a recording file. The file to be transmitted is simultaneously transmitted by adopting a plurality of the threads, so that a file transmission speed is faster. If a network has a fault to cause that the file to be transmitted cannot be normally transmitted, the un-transmitted sub-files are confirmed and transmitted only according to the information of the sub-files recorded by the recording file when the network recovers to be normal. According to the file transmission method and the system, files do not need to be repeatedly transmitted and breakpoint continuous transmission is realized. Therefore, the file transmission efficiency is high; and when file transmission needs to be restarted, a transmission network is not occupied for a long time.

Description

technical field [0001] The present invention relates to the technical field of data transmission, in particular to a file transmission method and system. Background technique [0002] At present, the data integration bus is responsible for the unified integration of the business master data of each business system, and provides a unified shared data view to the outside world. The application of the data integration bus reduces the coupling degree of each system and reduces the complexity of each system. [0003] However, the biggest challenge of data integration bus is its application in distributed environment. In a distributed environment, due to the complex network environment and many nodes in the network, when transferring large files, there is a problem of slow file transfer speed, and if the network fails during the transfer of large files, Then, large files need to be retransmitted when the network returns to normal. Therefore, the transmission efficiency of the ex...

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/06H04L29/08
Inventor 李守鹏姚建萍闫鹏车帅徐屏见
Owner 山东中创软件商用中间件股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products