CN107454166A - It is a kind of towards the document transmission method without file system data source - Google Patents
It is a kind of towards the document transmission method without file system data source Download PDFInfo
- Publication number
- CN107454166A CN107454166A CN201710662272.1A CN201710662272A CN107454166A CN 107454166 A CN107454166 A CN 107454166A CN 201710662272 A CN201710662272 A CN 201710662272A CN 107454166 A CN107454166 A CN 107454166A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- data source
- file
- block
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1809—Selective-repeat protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Comprise the following steps the invention particularly discloses a kind of towards the document transmission method without file system data source, this method:Request of data equipment and data source are established and connected, request of data equipment sends data uploading instructions to data source;Data source is sent to request of data equipment passes order back in data, regeneration transmission header is simultaneously sent;Request of data equipment sends transmission header to data source and returns order and file instruction to be transmitted, after data source receives file instruction to be transmitted, monofile description block is sent to request of data equipment, request of data equipment sends monofile description block time order after receiving monofile description block, data source receives data block to request of data equipment Batch sending data block, request of data equipment batch.The present invention is applied to the data source without file system, can realize reliable, the efficient transmission of file greatly, and the present invention also has outstanding advantages of good portability, implementation are simple, small on transmission performance influence.
Description
Technical field
The present invention relates to computer documents transmission field, and more specifically, the present invention is one kind towards without file system number
According to the document transmission method in source.
Background technology
At present, in order to the working condition and the course of work of detailed record system, for system ex-post analysis provide it is defeated
Enter data, in general Large-Scale Equipment system is provided with data recording equipment, and the equipment produces for Microprocessor System for Real Time Record bus
Data, the data source as ex-post analysis.
With the fast development of systematic function, the data volume in system is also sharply increasing, data recording equipment in order to
Reach the data bandwidth of requirement in performance, often realized by the way of bare machine, data recording equipment existing for bare machine form lacks
Few support to operating system or file system, many existing files are caused to apply in such data
On recording equipment, so as to add the later stage to the file acquisition difficulty in data source.In addition, for file transmission, reliably
Extremely important, the even seldom error of transmission of property, all most probably causes whole file transmission failure, it is thus evident that prior art
It is difficult to ensure that the reliability of file transmission.
Therefore, how on the premise of transmission reliability is ensured, realize to the data without file system and without operating system
Source carries out data acquisition, becomes those skilled in the art's technical problem urgently to be resolved hurrily and the emphasis studied all the time.
The content of the invention
For solve to obtain present in prior art the file difficulty in the data source without file system is big, file transmission can
By the problem such as property is low, employ suitable towards the document transmission method without file system data source, innovation the invention provides a kind of
When return make mechanism and the mode of data block integrity validation, not only realize to the data without file system and without operating system
File acquisition in source, and greatly improve the reliability of file transmission.
To realize above-mentioned technical purpose, the invention discloses a kind of towards the file transmission side without file system data source
Method, this document transmission method comprise the following steps,
Step 1, request of data equipment and data source are established and connected;
Step 2, the request of data equipment sends data uploading instructions to the data source;
Step 3, after the data source receives the data uploading instructions, data is sent to the request of data equipment and are uploaded
Hui Ling, then generation transmission header, newly-generated transmission header is sent to request of data equipment;
Step 4, the request of data equipment be subsequently received in the data pass back order and it is described transmission header after, to institute
State data source and send transmission header time order, then send file instruction to be transmitted to the data source again;
Step 5, after the data source receives the file instruction to be transmitted, monofile is sent to the request of data equipment
Description block;
Step 6, after the request of data equipment receives the monofile description block, send monofile to the data source and retouch
State block and return order;
Step 7, after the data source receives the monofile description block time order, to the request of data equipment Batch sending
Data block;
Step 8, the request of data equipment batch receives data block.
The mode of mechanism is made based on appropriate the returning of increase, the present invention realizes on the basis of meeting to obtain data source data
Reliably, efficient file transmission, so as to solve prior art it is low to the file transmission reliability in the data source without file system,
The problems such as file acquisition difficulty is big.
Further, in step 8, the request of data equipment judges that the current data block transmitted is according to document No.
It is no complete:If it is, start the transmission of next file, return to step 4;Block is selected if it is not, then being sent to the data source
Instruction is sent, the data source retransmits the data block of missing.
The present invention innovatively judges whether Successful transmissions file by the completeness of data block, ensures that each file can be accurate
Really obtained by request of data equipment, so as to effectively increase the reliability of file transmission of the present invention, solve prior art and exist
Poor reliability the problems such as.
Further, in step 8, if the number that the data block of missing is retransmitted exceedes first threshold, this transmission is lost
Lose, terminate this transmission.
The present invention, which innovatively employs to transmit to instruct back, makes mechanism, to ensure that instruction is successfully received, when sender sends
After transmission instruction, that is, enter and wait back writ state;After recipient receives instruction, i.e., send back order to sender;If sender
It is successfully received back order, then it represents that instruction transmission success;If sender does not receive back order, then it represents that instruction bust this, enters
Row retransmits, and repeatedly retransmits failure and then judges file bust this.This mode is effectively guaranteed between sender and recipient
The accuracy and reliability of information transfer, so as to realize the file in data source to request of data equipment accurately, stably, reliably
Transmission.
Further, in step 8, all complete to transmit if all of file, then terminate this transmission.
Further, in step 2, after the request of data equipment sends data uploading instructions, into etc. pending data upload
Return writ state.
Further, in step 3, after the data source sends newly-generated transmission header to request of data equipment, enter
Enter to wait transmission header to return writ state.
Further, in step 4, the request of data equipment receives pass order back in the data after, described in wait
Transmission head information state;After the data source receives transmission header time order, into wait file instruction state to be transmitted.
Further, in step 5, after the data source sends monofile description block to the request of data equipment, enter
Monofile description block is waited to return writ state.
Further, the key element included in the monofile description block is:Opening flag, end mark, time, file are big
Small, file address, next file address, a upper file address and check code, the key element included in the file data blocks
For:Block relative address and data storage area.
Further, carried out data transmission between the request of data equipment and data source based on udp protocol.
The data source of the present invention realizes Socket protocol stacks by hardware, supports the Ethernet based on udp protocol to transmit
Function, so that the present invention also has outstanding advantages of low latency, high-speed.
Beneficial effects of the present invention are:The present invention is applied to the data source without file system, can realize reliable, efficient
Big file transmission, it is excellent that also there is the present invention good portability, implementation simply, on transmission performance to influence the protrusion such as small
Point.
Brief description of the drawings
Fig. 1 is to be of the invention towards the file transfer process schematic diagram without file system data source.
Fig. 2 is the communications framework schematic diagram of the present invention.
Embodiment
The present invention is carried out towards the document transmission method without file system data source with reference to Figure of description detailed
Explanation and illustration.
As shown in Figure 1, 2, the invention discloses a kind of towards the document transmission method without file system data source, the present invention
" data source " being related to should be understood to " data recording equipment ", and when implementing of the invention, the present invention deposits to data recording equipment
Storage area domain carries out document formatting definition, and establishes easy file organization system, then makes mechanism, data by introducing to instruct back
Block integrity validation mechanism, so as to ensure that the reliability of the big file transmission based on UDP.This document transmission method specifically includes
Following steps.
Step 1, easy file organization system is established in data source, then request of data equipment and data source are established and connected
Connect;The communication framework of data recording equipment as shown in Figure 2 and other equipment, based on udp protocol, passes through Socket interface skills
The fixed COM1 of art binding is realized, specifically, data biography is carried out based on udp protocol between request of data equipment and data source
It is defeated.
Step 2, request of data equipment is communicated first with data source, and request of data equipment is sent in data to data source
Teletype command, and request of data equipment send data uploading instructions after, into etc. pending data upload back writ state.
Step 3, after data source receives data uploading instructions, data uploading instructions are parsed, to request of data equipment
Send and pass order back in data, then, data source is sent out according to above-mentioned analysis result generation transmission header to request of data equipment
Newly-generated transmission header is sent, is prepared for the transmission of ensuing file, data source sends newly-generated to request of data equipment
Transmission header after, into wait transmission header return writ state.
Step 4, request of data equipment be subsequently received in data pass back order and transmission header after, to data source send pass
Defeated header returns order, then sends file instruction to be transmitted to data source again;Specifically, in the present embodiment, request of data equipment
After passing order back on data are received, into wait transmission head information state, and send corresponding return after transmission header is received and make,
Then file instruction to be transmitted is retransmited.After data source receives transmission header time order, order is returned to transmission header and parsed,
Into wait file instruction state to be transmitted.
Step 5, after data source receives file instruction to be transmitted, file instruction to be transmitted is parsed, is sent out to request of data equipment
Send monofile description block;File-related information waiting for transmission is included in monofile description block, is set in data source to request of data
After preparation send monofile description block, writ state is returned into monofile description block is waited.
Step 6, after request of data equipment receives monofile description block, send monofile description block to data source and return order;Say
Bright request of data equipment accurately, intactly have received monofile description block.
In the present embodiment, the key element included in monofile description block is:Opening flag, end mark, time, file are big
Small, file address, next file address, a upper file address and check code, it is as shown in the table.
In addition, for convenience of description and all " monofile description blocks " being related to can be collectively referred to as " file by description, the present invention
Description block ".In the present embodiment, the key element included in file data blocks is:Block relative address and data storage area, " file data
Block " can be also sketched as " data block ", so as to be different from " description block ".The content that it is included is as shown in the table.
Step 7, after data source receives monofile description block time order, to request of data equipment Batch sending data block;This reality
Apply in example, to improve transmission speed, data transmission block need not carry out back order in transmission and confirm, after file is transmitted,
Confirm whether file transmission is complete according to reference number of a document;As incomplete, by selecting block instruction to carry out non-transmission success data block
Resend.
Step 8, request of data equipment batch receives data block.In this step, request of data equipment is according to document No.
Judge whether the current data block transmitted is complete:If it is, start the transmission of next file, return to step 4;If
It is no, then sent to data source and select block to send instruction, received after selecting block to send instruction, data source solves to selecting block to send instruction
Analysis, then data source retransmits the data block of missing according to analysis result, if the number that the data block of missing is retransmitted is more than first
Threshold value, then this bust this, terminate this transmission, in addition, if all files are all completed to transmit, then terminate this biography
It is defeated.For first threshold, can rationally be set as the case may be under the enlightenment of the present invention, such as first threshold=10
It is secondary.In addition, in above-mentioned each step, if necessary to stop transmission, then transmission can be cancelled by cancelling instructing.Need to illustrate
, the present invention realizes corresponding file transmitting function, transmission instruction key element definition by the transmission instruction system of complete set
Such as following table, following transmission instructions can have explanation effect to all instructions of the present invention.
And it is as shown in the table specifically to transmit instruction.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise specifically defined.In the description of this specification, reference term " the present embodiment ", " an implementation
The description of example ", " some embodiments ", " example ", " specific example " or " some examples " etc. means to combine the embodiment or example
Specific features, structure, material or the feature of description are contained at least one embodiment or example of the present invention.In this explanation
In book, identical embodiment or example are necessarily directed to the schematic representation of above-mentioned term.Moreover, the specific spy of description
Sign, structure, material or feature can combine in an appropriate manner in any one or more embodiments or example.In addition,
In the case of not conflicting, those skilled in the art can by the different embodiments or example described in this specification and
The feature of different embodiments or example is combined and combined.
Presently preferred embodiments of the present invention is these are only, is not intended to limit the invention, it is all in substantive content of the present invention
On any modification, equivalent substitution and the simple modifications made etc., should be included in the scope of the protection.
Claims (10)
- It is 1. a kind of towards the document transmission method without file system data source, it is characterised in that:This document transmission method is included such as Lower step,Step 1, request of data equipment and data source are established and connected;Step 2, the request of data equipment sends data uploading instructions to the data source;Step 3, after the data source receives the data uploading instructions, send to the request of data equipment and passed back in data Order, then generation transmission header, newly-generated transmission header is sent to request of data equipment;Step 4, the request of data equipment be subsequently received in the data pass back order and it is described transmission header after, to the number Transmission header is sent according to source and returns order, then sends file instruction to be transmitted to the data source again;Step 5, after the data source receives the file instruction to be transmitted, monofile description is sent to the request of data equipment Block;Step 6, after the request of data equipment receives the monofile description block, monofile description block is sent to the data source Hui Ling;Step 7, after the data source receives the monofile description block time order, to the request of data equipment Batch sending data Block;Step 8, the request of data equipment batch receives data block.
- It is 2. according to claim 1 towards the document transmission method without file system data source, it is characterised in that:Step 8 In, the request of data equipment judges whether the current data block transmitted is complete according to document No.:If it is, under starting The transmission of one file, return to step 4;Block is selected to send instruction if it is not, then being sent to the data source, the data source will lack The data block of mistake is retransmitted.
- It is 3. according to claim 2 towards the document transmission method without file system data source, it is characterised in that:Step 8 In, if the number that the data block of missing is retransmitted exceedes first threshold, this bust this, terminate this transmission.
- It is 4. according to claim 3 towards the document transmission method without file system data source, it is characterised in that:Step 8 In, all complete to transmit if all of file, then terminate this transmission.
- 5. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:In step 2, after the request of data equipment sends data uploading instructions, into etc. pending data upload back writ State.
- 6. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:In step 3, after the data source sends newly-generated transmission header to request of data equipment, into wait Transmit header and return writ state.
- 7. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:In step 4, the request of data equipment receives pass order back in the data after, into waiting the transmission head Information state;After the data source receives transmission header time order, into wait file instruction state to be transmitted.
- 8. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:It is single into waiting after the data source sends monofile description block to the request of data equipment in step 5 File description block returns writ state.
- 9. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:The key element included in the monofile description block is:Opening flag, end mark, time, file size, text Part address, next file address, a upper file address and check code, the key element included in the file data blocks are:Block Relative address and data storage area.
- 10. according to any claim in claim 1-4 towards the document transmission method without file system data source, It is characterized in that:Carried out data transmission between the request of data equipment and data source based on udp protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710662272.1A CN107454166A (en) | 2017-08-04 | 2017-08-04 | It is a kind of towards the document transmission method without file system data source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710662272.1A CN107454166A (en) | 2017-08-04 | 2017-08-04 | It is a kind of towards the document transmission method without file system data source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107454166A true CN107454166A (en) | 2017-12-08 |
Family
ID=60490905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710662272.1A Pending CN107454166A (en) | 2017-08-04 | 2017-08-04 | It is a kind of towards the document transmission method without file system data source |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107454166A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866959A (en) * | 2006-02-14 | 2006-11-22 | 华为技术有限公司 | Method and system for realizing trivial file transfer protocol (TFTP) file transmission |
CN102664886A (en) * | 2012-04-18 | 2012-09-12 | 广州数控设备有限公司 | Robot protocol implementation method based on Ethernet |
CN103838694A (en) * | 2014-02-28 | 2014-06-04 | 西安邮电大学 | FPGA high-speed USB interface data reading method |
CN105243071A (en) * | 2014-07-12 | 2016-01-13 | 航天恒星科技有限公司 | Retrievable file access method suitable for no-file system |
US20160232177A1 (en) * | 2015-02-06 | 2016-08-11 | Ashish Govind Khurange | Methods and systems of a dedupe file-system garbage collection |
-
2017
- 2017-08-04 CN CN201710662272.1A patent/CN107454166A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866959A (en) * | 2006-02-14 | 2006-11-22 | 华为技术有限公司 | Method and system for realizing trivial file transfer protocol (TFTP) file transmission |
CN102664886A (en) * | 2012-04-18 | 2012-09-12 | 广州数控设备有限公司 | Robot protocol implementation method based on Ethernet |
CN103838694A (en) * | 2014-02-28 | 2014-06-04 | 西安邮电大学 | FPGA high-speed USB interface data reading method |
CN105243071A (en) * | 2014-07-12 | 2016-01-13 | 航天恒星科技有限公司 | Retrievable file access method suitable for no-file system |
US20160232177A1 (en) * | 2015-02-06 | 2016-08-11 | Ashish Govind Khurange | Methods and systems of a dedupe file-system garbage collection |
Non-Patent Citations (2)
Title |
---|
胡柯: "基于TCP/ IP和Socket的网络文件传送", 《河南科技大学学报(自然科学版)》 * |
葛斌: "VB点对点文件传输", 《电脑编程技巧与维护》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11561984B2 (en) | Systems and methods for generating customized filtered-and-partitioned market-data feeds | |
CN105162868B (en) | A kind of reliable data transmission method between teacher side and student side | |
US8286231B2 (en) | System and method for information sharing between non-secure devices | |
CN104539690B (en) | A kind of Server remote method of data synchronization detected based on feedback mechanism and MD5 codes | |
CN111711609A (en) | Protocol design method in serial port communication | |
CN105450785B (en) | File transmission method and device | |
CN105611511B (en) | A method of realizing Big Dipper short message reliable transmission | |
CN105580334B (en) | A kind of data transmission method, terminal and server | |
CN110990312B (en) | Chip-level data communication method for detection while drilling | |
CN101848067A (en) | Data transmission method and system for self-adaptive bandwidth | |
TWI584620B (en) | File transfer mothed | |
CN104954348A (en) | Reliable message pushing method based on XMPP | |
CN103716139B (en) | A kind of information pushing treating method and apparatus | |
CN104065465A (en) | Message retransmitting method, request end, response end and system | |
CN110597706A (en) | Method and device for testing application program interface data abnormity | |
CN105007308A (en) | File transmission method for use in database isolation device environment | |
CN113992654A (en) | High-speed file transmission method, system, equipment and medium | |
WO2018040879A1 (en) | Password keyboard usb communication anomaly recovery method and system | |
US20240146806A1 (en) | Intermediate apparatus, communication method, and program | |
CN100546281C (en) | A kind of method and device that transmits data | |
CN113301162B (en) | Transmission method capable of rapidly downloading large number of small files in high-delay scene | |
CN107454166A (en) | It is a kind of towards the document transmission method without file system data source | |
CN103648085A (en) | Mobile terminal message transmitting method for overcoming network jitter | |
CN102195943B (en) | Safety information interaction method and system | |
CN105721400A (en) | Data integrity transmission method, POS machine, and data encryption server |
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: 20171208 |
|
RJ01 | Rejection of invention patent application after publication |