CN111629036A - Infrared transmission file method supporting breakpoint continuous transmission - Google Patents

Infrared transmission file method supporting breakpoint continuous transmission Download PDF

Info

Publication number
CN111629036A
CN111629036A CN202010399882.9A CN202010399882A CN111629036A CN 111629036 A CN111629036 A CN 111629036A CN 202010399882 A CN202010399882 A CN 202010399882A CN 111629036 A CN111629036 A CN 111629036A
Authority
CN
China
Prior art keywords
file
transmission
data
receiving
sending end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010399882.9A
Other languages
Chinese (zh)
Inventor
蒋继建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Guowei Xin'an Technology Co ltd
Original Assignee
Guizhou Guowei Xin'an Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Guowei Xin'an Technology Co ltd filed Critical Guizhou Guowei Xin'an Technology Co ltd
Priority to CN202010399882.9A priority Critical patent/CN111629036A/en
Publication of CN111629036A publication Critical patent/CN111629036A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of file transmission, in particular to an infrared transmission file method supporting breakpoint continuous transmission. The method comprises the steps that a sending end sends a file transmission request and a file name, whether a user agrees or not is inquired, user feedback information is sent, a receiving end agrees to receive and then executes file transmission operation, and through file partitioning and database recombination, breakpoint continuous transmission can be achieved, the integrity of data can be guaranteed, the using efficiency of files is improved, meanwhile file management is strengthened, and the transmission efficiency is guaranteed.

Description

Infrared transmission file method supporting breakpoint continuous transmission
Technical Field
The invention relates to the technical field of file transmission, in particular to an infrared transmission file method supporting breakpoint continuous transmission.
Background
With the rapid development of the internet, mass information data needs to be transmitted through a network, and enterprises often need to transmit large files with GB as a unit to a server, such as the practical application of multimedia file network sharing and the like. Improving the efficiency of high-capacity file transmission is more and more important for applications such as network sharing of multimedia files. However, because these file capacities are large, the conventional FTP transmission method is time-consuming, and unpredictable situations such as unexpected power failure or network connection interruption may occur during transmission, which results in frequent file retransmission operations and greatly affects the efficiency of data sharing. The following steps are repeated: when a computer of a certain supercomputer center (hereinafter referred to as a supercomputer center) is used for high-performance related calculation, a user of a client needs to transmit large-capacity calculation data through xxx, if the traditional FTP transmission is used, the efficiency is very low, the efficiency of high-performance calculation is seriously influenced, and the performance advantage of the supercomputer cannot be completely reflected. Therefore, the large file transmission technology has great significance for promoting the development of network application.
The large file transfer protocol (Raysync) is developed and optimized based on a UDP (user Datagram protocol) protocol, can support breakpoint continuous transmission, and can reduce the repeated transmission quantity of data as much as possible. In practical application, sometimes a user needs to transmit or download a large file for several hours, and when transmission interruption is caused by unpredictable unexpected situations such as network interruption or computer crash, restart and the like, the raylync server and the client software with the breakpoint resume function allow the user to continue transmitting from a transmission or download disconnection place, and at the moment, only a file part which is not transmitted before is required to be transmitted, so that data transmission amount is reduced, time is saved, and enterprise efficiency is improved. But the speed is slow, the safety is low, and the utilization efficiency of enterprises to large files is low.
Based on the improvement of the technology of infrared transmission, the perfection of an infrared communication protocol, the use of infrared rays for file transmission becomes feasible, and according to the characteristic of near-distance point-to-point connection of infrared rays, the data transmission of products such as a notebook, a mobile phone, a code scanner and the like commonly used at present can achieve the compatibility among various devices, and the use experience is good, for example, the wireless code scanner and the data transmission method thereof with the patent number of CN 201810347876.1. However, infrared transmission is similar to linear transmission, transmission failure is easily caused by direction change or other objects separating from the middle barrier, the transmission distance is short, infrared rays with certain wavelengths and power can hurt eyes, high-power infrared rays can cause discomfort of a human body, the use scene of the infrared rays is limited, file transmission is discontinuous due to environmental influence in infrared transmission, and high-efficiency transmission of large files is influenced due to power limitation. How to ensure the integrity of the file after transmission, how to use the error correction cost for reducing the loss or distortion of the file transmission data, and how to ensure that the data can be continuously transmitted after the data transmission is interrupted due to uncontrollable reasons in the transmission process; it is very necessary to provide a technical solution suitable for complex environments and capable of efficiently transmitting large files.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an infrared transmission file method supporting breakpoint continuous transmission, so as to ensure the breakpoint continuous transmission and improve the file transmission efficiency. The method comprises the following steps:
(1) a sending end sends a file transmission request and a file name;
(2) the receiving end receives the request and then prompts the request and the file name to the user, inquires whether the user agrees or not, and sends user feedback information to the sending end;
(3) after the sending end receives the reply, if the receiving end agrees to receive, the sending end reads the file feature code information and takes the file feature code as a file sending task mark, if the task mark exists and is unfinished, the last untransmitted data is continuously transmitted, otherwise, the feature code is sent to the receiving end, and after the receiving end receives the feature code, the feature code is taken as a file receiving task mark and sends a ready receiving preparation instruction;
(4) the method comprises the steps that a sending end divides a file into blocks according to a certain fixed size, extracts a characteristic value of each block, sends each block of data and the characteristic value to a receiving end, the receiving end receives the data blocks and the characteristic value and then checks whether the received data blocks are matched with a check code, if yes, a block data receiving completion instruction is replied, the data blocks are stored in a temporary address, and if not, a receiving failure instruction is sent to the sending end;
(5) after the sending end receives the data block, marking the data block as transmitted, displaying the transmitted percentage, and resending the data block if receiving a receiving failure instruction;
(6) after the sending end sends all the data blocks, a data transmission finishing instruction is sent, after the receiving end receives the data transmission finishing instruction, the temporarily stored database is recombined to generate an original file, the original file is stored to a designated position, the transmission task is marked as finished, a task finishing instruction is sent to the sending end, and after the sending end receives the task finishing instruction, the transmission task is marked as finished.
Further, in the step (4), in the file blocks, if connection interruption or data loss occurs in the transmission process, only the data blocks transmitted when the connection is interrupted or the data is lost need to be continuously transmitted, and the transmission does not need to be started again;
further, in the step (4), the extracting the feature value is to randomly intercept a file window through the inside of the file, each window obtains an exclusive data value according to the data characteristics of the window, and a set of a plurality of exclusive data values is extracted as the feature value.
Further, in step (6), the database reorganization is to create a new temporary table according to the storage parameters optimized by use, rename the original data according to the dependency relationship of the temporary table, create an index, and apply constraints.
Compared with the prior art, the invention has the technical effects that:
the invention can continuously transmit at the break point, can ensure the integrity of data, improve the use efficiency of files, and simultaneously strengthen the file management and ensure the transmission efficiency. And moreover, the sizes of the files are sequenced, the small files are transmitted preferentially, the files are transmitted at break points, and the probability of file data damage is reduced.
Detailed Description
The technical solution of the present invention is further defined below with reference to the specific embodiments, but the scope of the claims is not limited to the description.
Example 1
A method for supporting infrared transmission files of breakpoint continuous transmission comprises the following steps:
(1) selecting a file on the device A, and sending a file transmission request and a file name by a sending end;
(2) the receiving end of the B device receives the request and then prompts the request and the file name to the user, inquires whether the user agrees or not and sends user feedback information to the B device;
(3) after the device A receives the reply, if the device B agrees to receive, the device A reads the file feature code information and takes the file feature code as a file sending task mark, if the task mark exists and is unfinished, the last untransmitted data is continuously transmitted, otherwise, the feature code is sent to a receiving end, and the receiving end takes the feature code as a file receiving task mark after receiving the feature code and sends a ready receiving preparation instruction;
(4) the method comprises the steps that the device A blocks a file according to every 4Kb, extracts a characteristic value of each block, then sends each block of data and the characteristic value to the device B, the device B receives the data block and the characteristic value and then checks whether the received data block is matched with a check code or not, if the data block is matched with the check code, a data block receiving completion instruction is replied, the data block is stored in a temporary address, and if the data block is not matched with the check code, a receiving failure instruction is sent to the device A; in the file blocking, if connection interruption or data loss occurs in the transmission process, the transmission is continued only from the data block transmitted when the connection is interrupted or the data is lost, and the transmission is not started again; the characteristic value extraction is to randomly intercept file windows through the interior of a file, each window obtains an exclusive data value according to the data characteristics of the window, and the characteristic value is obtained by extracting a plurality of exclusive data values;
(5) after the device A receives the data block, marking the data block as transmitted, displaying the transmitted percentage, and resending the data block if receiving a receiving failure instruction;
(6) after the device A sends all the data blocks, a data transmission completion instruction is sent, after the device B receives the data transmission completion instruction, the temporarily stored database is recombined to generate an original file, the original file is stored to a designated position, a transmission task is marked to be completed, a task completion instruction is sent to the device A, and after the device A receives the task completion instruction, the transmission task is marked to be completed; and the database reorganization is to create a new temporary table according to the optimized storage parameters, rename the original data according to the dependency relationship of the temporary table, create an index and apply constraint. In the whole process, even if the device A is powered off for multiple times, the transmission files which are checked to be completed are completely consistent with the transmission files before the transmission is completed.

Claims (4)

1. A method for supporting infrared transmission files of breakpoint continuous transmission is characterized by comprising the following steps:
(1) a sending end sends a file transmission request and a file name;
(2) the receiving end receives the request and then prompts the request and the file name to the user, inquires whether the user agrees or not, and sends user feedback information to the sending end;
(3) after the sending end receives the reply, if the receiving end agrees to receive, the sending end reads the file feature code information and takes the file feature code as a file sending task mark, if the task mark exists and is unfinished, the last untransmitted data is continuously transmitted, otherwise, the feature code is sent to the receiving end, and after the receiving end receives the feature code, the feature code is taken as a file receiving task mark and sends a ready receiving preparation instruction;
(4) the method comprises the steps that a sending end divides a file into blocks according to a certain fixed size, extracts a characteristic value of each block, sends each block of data and the characteristic value to a receiving end, the receiving end receives the data blocks and the characteristic value and then checks whether the received data blocks are matched with a check code, if yes, a block data receiving completion instruction is replied, the data blocks are stored in a temporary address, and if not, a receiving failure instruction is sent to the sending end;
(5) after the sending end receives the data block, marking the data block as transmitted, displaying the transmitted percentage, and resending the data block if receiving a receiving failure instruction;
(6) after the sending end sends all the data blocks, a data transmission finishing instruction is sent, after the receiving end receives the data transmission finishing instruction, the temporarily stored database is recombined to generate an original file, the original file is stored to a designated position, the transmission task is marked as finished, a task finishing instruction is sent to the sending end, and after the sending end receives the task finishing instruction, the transmission task is marked as finished.
2. The method for supporting infrared transmission files with continuous transmission at break points as claimed in claim 1, wherein in step (4), if connection interruption or data loss occurs during transmission, the file blocks are transmitted continuously only from the data blocks transmitted when connection interruption or data loss occurs, without starting transmission again.
3. The method according to claim 1, wherein in step (4), the extracting the characteristic values is performed by randomly intercepting windows of the file from the inside of the file, each window obtaining the specific data value according to the data characteristics thereof, and extracting a set of the specific data values as the characteristic values.
4. The method for supporting IR transmission files with breakpoint resuming in claim 1, wherein in step (6), the database reorganization is to create a new temporary table according to the optimized storage parameters, rename the original data according to the dependency relationship of the temporary table and create an index for applying the constraint.
CN202010399882.9A 2020-05-13 2020-05-13 Infrared transmission file method supporting breakpoint continuous transmission Pending CN111629036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010399882.9A CN111629036A (en) 2020-05-13 2020-05-13 Infrared transmission file method supporting breakpoint continuous transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010399882.9A CN111629036A (en) 2020-05-13 2020-05-13 Infrared transmission file method supporting breakpoint continuous transmission

Publications (1)

Publication Number Publication Date
CN111629036A true CN111629036A (en) 2020-09-04

Family

ID=72271942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010399882.9A Pending CN111629036A (en) 2020-05-13 2020-05-13 Infrared transmission file method supporting breakpoint continuous transmission

Country Status (1)

Country Link
CN (1) CN111629036A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022252802A1 (en) * 2021-05-31 2022-12-08 华为技术有限公司 File transmission method and apparatus, and electronic device and storage medium
CN117278171A (en) * 2023-11-22 2023-12-22 山东港口科技集团烟台有限公司 Internet of things data breakpoint continuous transmission method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150540A (en) * 2007-11-07 2008-03-26 北京亿企通信息技术有限公司 A method for continuous file transfer at interruption point in instant communication tool
US20100011435A1 (en) * 2008-07-08 2010-01-14 Asp Works Pte Ltd Method and System for Providing Guaranteed File Transfer in Corporate Environment Behind Firewall
CN102752283A (en) * 2012-05-30 2012-10-24 福建省三奥信息科技股份有限公司 Method and system for transmitting files with large data sizes
EP3119062A1 (en) * 2015-07-17 2017-01-18 Bio-Rad Laboratories, Inc. Network transfer of large files in unstable network environments
CN109743135A (en) * 2018-12-29 2019-05-10 中国大唐集团新能源科学技术研究院有限公司 A kind of method of breakpoint transmission file transmission
CN110933159A (en) * 2019-11-27 2020-03-27 中电装备山东电子有限公司 File transmission method and system supporting breakpoint continuous transmission

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150540A (en) * 2007-11-07 2008-03-26 北京亿企通信息技术有限公司 A method for continuous file transfer at interruption point in instant communication tool
US20100011435A1 (en) * 2008-07-08 2010-01-14 Asp Works Pte Ltd Method and System for Providing Guaranteed File Transfer in Corporate Environment Behind Firewall
CN102752283A (en) * 2012-05-30 2012-10-24 福建省三奥信息科技股份有限公司 Method and system for transmitting files with large data sizes
EP3119062A1 (en) * 2015-07-17 2017-01-18 Bio-Rad Laboratories, Inc. Network transfer of large files in unstable network environments
CN109743135A (en) * 2018-12-29 2019-05-10 中国大唐集团新能源科学技术研究院有限公司 A kind of method of breakpoint transmission file transmission
CN110933159A (en) * 2019-11-27 2020-03-27 中电装备山东电子有限公司 File transmission method and system supporting breakpoint continuous transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022252802A1 (en) * 2021-05-31 2022-12-08 华为技术有限公司 File transmission method and apparatus, and electronic device and storage medium
CN117278171A (en) * 2023-11-22 2023-12-22 山东港口科技集团烟台有限公司 Internet of things data breakpoint continuous transmission method

Similar Documents

Publication Publication Date Title
CN109309730B (en) Credible file transmission method and system
US8930476B2 (en) Instant messaging (IM) file folder transmission method and system
CN1681248A (en) Method and system for transmitting data for data synchronization between server and client
CN106453474B (en) Network transmission of large files in unstable network environments
CN111629036A (en) Infrared transmission file method supporting breakpoint continuous transmission
CN106034084B (en) Data transmission method and device
CN111885133B (en) Block chain-based data processing method and device and computer storage medium
CN110502364B (en) Cross-cloud backup recovery method for big data sandbox cluster under OpenStack platform
CN106170968B (en) A kind of data compression storage method, device and distributed file system
CN102546612A (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN103297424A (en) Multiplexed data stream protocol
WO2014121630A1 (en) Method and device for transferring file
WO2023045313A1 (en) Session establishment method and apparatus, and client device and computer storage medium
CN103744699A (en) Method and device for software upgrading of intelligent electric equipment
CN102981857A (en) Method for loading parallel compressed mass data of database cluster
US10419212B2 (en) Methods, systems, apparatuses, and devices for securing network communications using multiple security protocols
CN101931633B (en) Incremental synchronization method applied to intelligent mobile phone terminal
CN114007209A (en) BLE-based data transmission method and device and BLE master equipment
CN103746768A (en) Data packet identification method and equipment thereof
CN107743102B (en) efficient tcp session recombination method
KR101082850B1 (en) Active Sync-based Mobile Device for data Synchronizing and Method at the same
CN105471718A (en) Realization method of full duplex message queue
CN104969533A (en) Data packet processing method and device
WO2012159291A1 (en) Method for identifying type of terminal and wireless access network device
CN114389853A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904

RJ01 Rejection of invention patent application after publication