CN101800757A - No-feedback one-way data transmission method based on single fiber structure - Google Patents

No-feedback one-way data transmission method based on single fiber structure Download PDF

Info

Publication number
CN101800757A
CN101800757A CN201019114008A CN201019114008A CN101800757A CN 101800757 A CN101800757 A CN 101800757A CN 201019114008 A CN201019114008 A CN 201019114008A CN 201019114008 A CN201019114008 A CN 201019114008A CN 101800757 A CN101800757 A CN 101800757A
Authority
CN
China
Prior art keywords
data
packet
group
piece
transmission
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.)
Granted
Application number
CN201019114008A
Other languages
Chinese (zh)
Other versions
CN101800757B (en
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.)
GUOBAO JINTAI INFORMATION SECURITY TECH Co Ltd BEIJING
INSTITUTE OF NATIONAL SECURITY SCIENCE AND TECHNOLOGY
Original Assignee
GUOBAO JINTAI INFORMATION SECURITY TECH Co Ltd BEIJING
INSTITUTE OF NATIONAL SECURITY SCIENCE AND TECHNOLOGY
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 GUOBAO JINTAI INFORMATION SECURITY TECH Co Ltd BEIJING, INSTITUTE OF NATIONAL SECURITY SCIENCE AND TECHNOLOGY filed Critical GUOBAO JINTAI INFORMATION SECURITY TECH Co Ltd BEIJING
Priority to CN201019114008XA priority Critical patent/CN101800757B/en
Publication of CN101800757A publication Critical patent/CN101800757A/en
Application granted granted Critical
Publication of CN101800757B publication Critical patent/CN101800757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a no-feedback one-way data transmission method based on a single fiber structure; equipment comprises two one-way fiber data transmission cards which belong to a transmitting end and a receiving end respectively, and the two one-way fiber data transmission cards are connected by a single fiber through a fiber receiver, data communication between the transmitting end and the receiving end adopts a proprietary protocol to carry out data encapsulation, and the reliability of the one-way data transmission is ensued by correcting and deleting codes; as the connection between the transmitting end and the receiving end does not adopt an Ethernet protocol, a data packet is not treated by a TCP/IP protocol stack, so as to eliminate the possibility that a malicious user or a hacker uses the data packet sniffing tool to detect the proprietary protocol format and greatly enhance the transmission safety.

Description

A kind of no-feedback one-way data transmission method based on single fiber structure
Invention field
The present invention relates to a kind of no-feedback one-way data transmission method, especially a kind of one-way transmission method based on data between single fiber structure realization distinct device or the device interior disparate modules belongs to field of information security technology.
Background technology
Sometimes require data can only realize directional transmissions in information security field, for example data can only be sent in the High Security Level network by the Low Security Level network, do not allow data by High Security Level network destined Low Security Level network, thereby avoid the generation of the situation of divulging a secret.Because in the unidirectional transmission system that does not have feedback, data sending terminal can't confirm whether data are damaged in the transmission course,, in the one-way data transmission, often adopt following dual mode in order to guarantee data integrity:
1. in the data of transmission, add some check information, carry out data check, find not to be by data transmission channel, but to carry out data re-transmission under the situation of corrupted data by particular feedback channel notification transmitting terminal at receiving terminal.
Xiao Yuanjun, Fang Yong etc. " computer application " 2006 26 6 phases of volume deliver " the one-way data transmission system design based on the USB2.0 interface " has proposed in the literary composition to utilize the USB control chip to realize the transmission of data between the different security domains.Under the USB of transmitting terminal control chip control, reading of data also writes outside connection of FIFO of appointment, the USB control chip of receiving terminal from this FIFO is outside connect reading of data.The USB control chip of transmitting terminal and the USB control chip of receiving terminal link to each other by system bus, the transmission control commands corresponding, and control command comprises data and writes, reads sequential and corresponding retransmission mechanism, and data were transmitted by outside connection of FIFO.Li Bo, Liu Jiayong etc. are published in " information and electronic engineering " 2008 61 phases of volume " based on unidirectional transmission system design and the realization of EZ-USB FX2 " literary composition and have set forth similar viewpoint.
Say that from the strict sense still there is bigger potential safety hazard in this structure applications in the system of strict one-way transmission.Because in case hacker or malicious user are broken through the system safety protection, there is the possibility of utilizing the reverse transmission data of instruction path in the existence of instruction path.
Patent " has and instructs the physical isolation method that does not have feedback optical fiber one-way transmission " (application number: proposed a kind of under the Ethernet environment 200610145834.7), realize the isolation of data transmission channel and instruction path at transmitting terminal by optical splitter, data channel is unidirectional, and instruction path is two-way, and whether receiving terminal needs data re-transmission by the instruction path feedback.The transfer of data of whole system is based on being the Ethernet architecture of medium with optical fiber, and data packets for transmission is UDP message bag or Ethernet data bag.This method has guaranteed that instruction path can not be used to transmitting user data, but there is no sufficient foundation explanation, can judge whether the data that receiving terminal receives are damaged in transmission course according to the data that obtain in the transmitting terminal light mouth optical splitter.
2. in transmission system, use correcting and eleting codes that data are anticipated, need only the error probability that the error rate of appearance can be handled less than error correcting code in transmitting, can guarantee the reliable one-way transmission of data.Using more correcting and eleting codes algorithm in the transmission system is forward error correction (FEC, Forward Error Correction).Forward error correction (FEC) is a kind of wrong technology of controlling in one-way system, and transmitting terminal sends the data that carry error correction information, and receiving terminal can utilize it to check and the correction of data mistake.Adopt forward error correction, receiver can be corrected in the mistake that takes place in the communication channel transmission and not need information is transmitted again.
FEC uses more extensive in wireless data transmission, for example at the (ETSI of the european telecommunication committee, EuropeanTelecommunications Standards Institute) in the DVB-H of Zhi Dinging (Digital VideoBroadcasting-Handheld) standard, just used FEC to guarantee the correctness of transfer of data in a large number.Because IP wraps in and might damage in the transport process or lost/abandon, if under the lower situation of the lost/damaged rate of voice packets, the tonequality of IP phone can not be subjected to obvious damage, and some voip gateway also adopts the FEC technology to avoid the re-transmission of packet, thereby guarantees tonequality.
Data re-transmission is avoided in normal use FEC error correction in the long-distance optical fiber transfer of data, and beam is encouraged in " the forward error correction coding technology in the long distance High-speed optical fiber communication " literary composition that is published in " optical communication technique " 2004 the 28th volume o. 11ths and summarized some FEC coding techniquess that use in Optical Fiber Transmission at present.
(application number: the one-way transmission method of mentioning 200610140541.X) based on the RJ45 mouth is exactly in fact by revising the network interface card definition between interconnected computer main frame or the equipment, to realize the method for one-way communication between two equipment to patent " a kind of physical isolation method of no-feedback one-way transmission ".One-way data transmission between the equipment depends on ethernet medium and the Ethernet related protocol is realized, for redundant correcting information has been used in the correct transmission that guarantees data, the redundant correcting information here is exactly in fact a kind of FEC coding.
Summary of the invention
The described a kind of no-feedback one-way data transmission method based on single fiber structure of the technical program is used to realize the one-way transmission between different main frames or the equipment.For security consideration, data communication adopts proprietary protocol to carry out data encapsulation between the equipment, when receiving terminal receives when not meeting this proprietary protocol specification data, will abandon these data and alarm.Because Ethernet protocol is not adopted in interconnection between equipment or the main frame, packet is handled without the ICP/IP protocol stack, has stopped malicious user or hacker and has used the ingress-only packet sniffing instrument to survey the possibility of proprietary protocol form, has strengthened transmission security greatly.And the reliability of one-way data transmission guarantees by correcting and eleting codes.
The described a kind of no-feedback one-way data transmission method of the technical program based on single fiber structure, device therefor comprises two one-way optical fiber data transmission cards that belong to transmitting terminal and receiving terminal respectively, and two one-way optical fiber data transmission cards are connected by simple optical fiber by fiber optical transceiver, and this method comprises the steps:
Transmitting terminal sends the workflow of data:
1) transmitting terminal adds the proprietary protocol head of packet to data to be sent, described proprietary protocol head of packet includes but not limited to destination, the version information that data length, Data Source, the data of data to be sent need send, and proprietary protocol head of packet length is Packet_Header_Size;
2) transmitting terminal is to having added the data to be sent end position zero padding of proprietary protocol head of packet, make that data length to be sent after the zero padding is the minimum multiple of M and greater than the data length to be sent before the zero padding, use (M, N) the to be sent data of correcting and eleting codes algorithm after to zero padding are encoded, and the coding back obtains the N piece of data; Wherein M and N are the parameter of correcting and eleting codes algorithm;
3) every piece of data is added corresponding transmission package header packet information, again the N piece of data of having added the transmission package header packet information is packaged, and be one group with this N piece of data in the packet that obtains behind the group bag every piece of data wherein organized interior numbering; If data length to be sent is greater than every piece of data length Buf_Size M times (this length is the treatable data length of each maximum of data to be sent), then to exceeding the part repeating step 1 of length)-3); And the packet that obtains behind the group bag is carried out group #;
The corresponding transmission package header packet information of described every piece of data includes but not limited to following information:
● the data length of this piece of data;
● this piece of data is numbered in the group of affiliated packet;
● check information: the correctness that is used for the receiving terminal check data;
● the group # of the packet at this piece of data place;
The length Buf_Size of every piece of data satisfies following relation, can make full use of the transmittability of transmission card like this;
Buf_Size=Transfer_Max_Size-Packet_Header_Size-Trans_Size-Trans_Header is wherein:
Transfer_Max_Size: the maximum data length that the one-way optical fiber data transmission card can transmit at every turn;
Packet_Header_Size: the length of proprietary protocol head of packet in the step 1), should be less than Buf_Size;
Trans_Size: step 2) length of the every piece of data in correcting and eleting codes coding back in;
Trans_Header: the length of transmission package header packet information;
4) the every piece of data in the packet that step 3) is obtained is by the one-way optical fiber data transmission card process simple optical fiber transmission of transmitting terminal; Because transfer of data is an one-way transmission in this programme, can't accomplish flow control, therefore require the inbound pacing of the transmission speed of transmitting terminal smaller or equal to receiving terminal.
Receiving terminal receives the workflow of data:
1) after receiving terminal receives data, resolve the transmission package header packet information, if the form that can't discern abandons this piece of data, and alarm; Otherwise carry out step 2)
2) utilize the correctness of this piece of data of transmission package header packet information verification, promptly, if it is inconsistent with the check information that carries from the transmission package header packet information that this piece of data parses to calculate the check information of this piece of data acquisition, illustrate that this piece of data is impaired in transmission, then abandon this piece of data; Otherwise carry out step 3)
3) according to transmission package header packet information analysis result, judge the group # of the current data that receive in packet with on the group # of a data that receive whether identical:
If group # is inequality, think then that the affiliated packet of a last piece of data has sent to finish, store the current new data that receives, and mark has been finished the reception of one group of packet; Judging whether numbering is N in the group of a last piece of data, if not N then thinks the tail packet loss of last one group of packet, is effective with tail packet loss mark position, and current group # is updated to the group # of a last piece of data, goes to step 6); Whether numbering is 1 in the group of data that N then judges storage if be numbered in the group: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, and numbers in the group of record error data, and replace the data of losing with zero padding, go to step 5);
If group # is identical, then go to step 4):
4) judge in the group of this piece of data in affiliated packet numbering with in the group of a data that receive numbering whether continuous:
If numbering continuously in the group, that is, and when the k that receives i packet (during the piece of data of 1<k<N), is i if go up the group # of the packet at the data place that portion receives, is numbered (k-1) in the group, represent that then the data of receiving are continuous data; Then go to step 5);
If a numbering and a last piece of data is discontinuous in the group, then think in transmission course, occur loss of data or factor according to impaired and this piece of data by step 1) or 2) abandon, write down numbering in the group of the data that this part make mistakes, and replace the data of losing, go to step 6) then with zero padding;
As seen, if when being numbered 1≤l<N in the group of error data, the position of that piece of data of makeing mistakes can be determined according to numbering in the group of the follow-up data in same group that receives; When the follow-up many piece of data in same group were all lost, the interior numbering of group that then writes down error data depended on the packet that receives next group;
5) the transmission package header packet information of this piece of data that will receive is removed, and preserves real data;
6) receiving terminal judges whether to finish the Data Receiving of the packet under this group #, if, then call the correcting and eleting codes algorithm and decode, to number in the group according to the error data that writes down, restore data goes to step 7) then; If not, then return step 1), continue to receive data;
7) judge whether tail packet loss flag bit is effective, if effectively, whether the interior numbering of group of then judging the data of storage is 1: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, numbering in the group of record error data, and replace the data of losing with zero padding, go to step 5);
8) finish the reception of total data after, decoded data are recombinated, remove the proprietary protocol head of packet, obtain recovered data;
For follow-up many piece of data of avoiding occurring because of in last group packet that sends data are all lost, the situation that causes receiving terminal can't judgment data whether all to be sent completely, receiving terminal is provided with corresponding timeout mechanism, and promptly hypothesis has been received the k piece of data of i packet, at t RxDo not receive last piece of data of this packet in time, then represent all DTDs of this packet.
The contrast prior art, beneficial effect of the present invention is, correcting and eleting codes is all just at the transfer of data of small data quantity, when direct application traditional algorithm, scramble time, the long situation that can not satisfy the transmission system performance requirement of decode time can occur.Because message transmission rate that the embedding error correction information can be brought and the loss on the performance, the reliability of available data transmission is based on simple digital coding basically, and data are made mistakes the back retransmission mechanism as final solution.Consider the limitation of no-feedback one-way transmission and can't require the characteristics of data re-transmission, at not having the packet loss that transfer of data exists in the feedback high speed one-way optical fiber transfer of data, the characteristics that the data volume transmission is big, the present invention proposes a kind of no-feedback one-way data transmission method based on numbering in group and the group, in conjunction with at the improved correcting and eleting codes of big data quantity transfer of data characteristics, can guarantee that data sheet is to the reliable transmission of not having feedback.
Description of drawings
Fig. 1 is for using the one-way transmission framework schematic diagram of the technical program;
Fig. 2 is the framework schematic diagram of correcting and eleting codes coding and decoding in this programme;
Fig. 3 is divided into 8 schematic diagrames such as branch such as grade for coding side with data to be encoded;
Fig. 4 is a transmitting terminal correcting and eleting codes cataloged procedure schematic diagram among the embodiment;
Fig. 5 is the data variation schematic diagrames of transmitting terminal data in whole coding, process of transmitting;
Fig. 6 receives process chart after the data for receiving terminal;
Fig. 7 is for being the schematic diagram that example is carried out correcting and eleting codes decoding with the A2 data-bag lost;
The schematic diagram that Fig. 8 carries out the correcting and eleting codes decoding during for any continuous four data packet loss;
The schematic diagram that Fig. 9 carries out the correcting and eleting codes decoding during for discontinuous four data packet loss;
Figure 10 loses the schematic diagram that carries out the correcting and eleting codes decoding under the situation of ten packets;
Figure 11 be can not restore data situation.
Embodiment
Further describe the present invention below in conjunction with drawings and Examples:
A kind of one-way transmission framework of using the technical program as shown in Figure 1, whole transmission system is made of two one-way optical fiber data transmission cards, sending ending equipment, receiving device etc.Transmitting terminal and receiving terminal can be the embedded device that links to each other with the one-way optical fiber data transmission card of various supports, main frame, small server etc., and the CPU framework is not had any requirement.
The one-way optical fiber data transmission card links to each other with transmitting apparatus or receiving equipment by computer bus, and bus type can be PCI, PCI-E or PCI-X etc.Transmission card can be an interface card or be integrated on other equipment mainboards independently, the digital signal that is used for being transferred on the bus on the card is converted into light signal (transmission part), maybe the light signal that receives is converted to digital data transmission and gives system bus (receiving unit).
Connect by simple optical fiber between the one-way optical fiber data transmission card, can only realize the one-way data communication of transmitting terminal and receiving terminal.The spatial cache that one constant volume is arranged on the one-way optical fiber data transmission card is used for the data that buffer memory is to be sent or receive.
In the present embodiment, a kind of no-feedback one-way data transmission method based on single fiber structure comprises the steps:
Transmitting terminal sends the workflow of data:
1) transmitting terminal adds the proprietary protocol head of packet to data to be sent, described proprietary protocol head of packet includes but not limited to destination, the version information that data length, Data Source, the data of data to be sent need send, and proprietary protocol head of packet length is Packet_Header_Size;
Proprietary protocol is deferred to specific form, is specially: proprietary protocol head of packet+data to be sent.Header packet information can comprise following content:
● version information
● type of data packet (control or data)
● the module source
● the destination
● data packet length
2) transmitting terminal is to having added the data to be sent end position zero padding of proprietary protocol head of packet, make that data length to be sent after the zero padding is the minimum multiple of M and greater than the data length to be sent before the zero padding, data sequential scheduling to be sent after the zero padding is divided into M part, use (M, N) the to be sent data of correcting and eleting codes algorithm after to zero padding are encoded, and the coding back obtains the N piece of data;
Correcting and eleting codes can adopt present existing coding, for example, parity check code, interweaves or convolutional encoding or adopt the combination of multiple coding, also can adopt more self-defining error correction codings.The framework of correcting and eleting codes coding and decoding such as accompanying drawing 2;
Be different from the restriction that packet size in the Network Transmission is subjected to the network equipment and transmission range, each packet in the one-way transmission often reaches the megabit rank, for fear of the too much system resource of coding calculation consumption, entangle in the present embodiment and delete encoding and decoding and adopted specially associating parity check code at one-way data transmission exploitation, finish the parity check code encoding and decoding of subdata package and interweaving of subdata package level, this algorithm has burst error and the wrong continuously ability of correcting.
Cataloged procedure:
Coding side will be divided into 8 five equilibriums to the needs coded data, regard as by 8 sub data packets and form.As Fig. 4, (A1, A2, A3, A4) regarded as a sub data packets group α, (B1, B2, B3, B4) regards a sub data packets group β as.
Get the corresponding data bag α of these two coding packages respectively iAnd β iEncode (wherein 1≤i≤4), obtains each byte in the C1 packet as the byte of A1, B1 correspondence being carried out xor operation, in like manner can get C2, C3, C4 packet.Coding back generate (A1, B1, C1) etc. four sub data packets groups, as Fig. 5.Table 1 is the relation table of information packet and monitoring data bag.
The relation table of table 1 information packet and monitoring data bag
Figure GSA00000019379700081
3) every piece of data is added corresponding transmission package header packet information, again the N piece of data of having added the transmission package header packet information is packaged, and be one group with this N piece of data in the packet that obtains behind the group bag every piece of data wherein organized interior numbering; If data length to be sent is greater than M*Buf_Size (this length is the treatable data length of each maximum of data to be sent), then to exceeding the part repeating step 1 of length)-3); And the packet that obtains behind the group bag is carried out group #;
The transmission package header packet information of described every piece of data includes but not limited to following information:
● the data length of this piece of data;
● this piece of data is numbered in the group of packet;
● check information: the correctness that is used for the receiving terminal check data;
● the group # of the packet at this piece of data place;
The length Buf_Size of every piece of data satisfies following relation, can make full use of the transmittability of transmission card like this;
Buf_Size=Transfer_Max_Size-Packet_Header_Size-Trans_Size-Trans_Header is wherein:
Transfer_Max_Size: the maximum data length that the one-way optical fiber data transmission card can transmit at every turn;
Packet_Header_Size: the length of proprietary protocol head of packet in the step 1), should be less than Buf_Size;
Trans_Size: step 2) length of the every piece of data in correcting and eleting codes coding back in;
Trans_Header: the length of transmission package header packet information;
Group # and these positional informations of the interior numbering of group are used for receiving terminal and judge whether data lose in the group of every group of packet, and by error location, which position data of noting that can be definite is lost, and these information are passed to decoder module, are used for data and recover.
In the transfer of data of reality based on optical fiber one-way transmission card, not only there are the situation of data-bag lost in verification and employing CRC-16, and each packet inside also mistake may occur.The packet error detection is used to check whether the packet that receives makes mistakes, and the packet error detection algorithm does not possess error correcting capability, if packet inside is wrong, then this bag abandons, and consigns to lower floor's routine processes, and the unification that makes mistakes in the packet bag is handled as packet loss.
Select the sign indicating number type of CRC-16 during programming realizes, because such sign indicating number type loss is very little, and coding result is preserved in computer easily.Generator polynomial is selected CRC-CCITT:G (x)=x for use 16+ x 12+ x 5+ 1
For a binary sequence number can byte oriented representation be formula (1-1), wherein B n(x) be a byte (totally 8).
B(x)=B n(x)g2 8n+B n-1(x)g2 8(n-1)+…B 0(x) (1-1)
When asking the CRC sign indicating number of this binary sequence number, multiply by 2 earlier 16(promptly moving to left 16), getting remainder divided by multinomial G (x) gained again is exactly the CRC sign indicating number:
B ( x ) 2 16 G ( x ) = B n ( x ) · 2 16 G ( x ) · 2 8 n + B n - 1 ( x ) · 2 16 G ( x ) · 2 8 ( n - 1 ) + . . . + B 0 ( x ) · 2 16 G ( x ) - - - ( 1 - 2 )
Can establish:
B n ( x ) g 2 16 G ( x ) = Q n ( x ) + R n ( x ) G ( x ) - - - ( 1 - 3 )
Q wherein n(x) be integer, R n(x) be 16 binary system remainders, (1-3) substitution (1-2) got:
B ( x ) · 2 16 G ( x ) = Q n ( x ) · 2 8 n + [ R n ( x ) · 2 8 G ( x ) + B n - 1 ( x ) · 2 16 G ( x ) ] · 2 8 ( n - 1 ) + ggg B 0 ( x ) · 2 16 G ( x ) - - - ( 1 - 4 )
Because:
R n(x)·2 8=[R nH(x)·2 8+R nL(x)]·2 8=R nH·2 16+R nL·2 8 (1-5)
R wherein NH(x) be high eight-bit, R NL(x) be the 8th, with (1-5) substitution (1-4), through putting in order:
B ( x ) · 2 16 G ( x ) = Q n ( x ) · 2 8 n + [ R nL 8 ( x ) · 2 8 G ( x ) + [ R nH 8 ( x ) + B n - 1 ( x ) ] · 2 16 G ( x ) ] · 2 8 ( n - 1 ) + . . . + B 0 · 2 16 G ( x ) - - - ( 1 - 6 )
Establish again:
R nL 8 ( x ) · 2 8 G ( x ) + [ B nH 8 ( x ) + B n - 1 ( x ) ] · 2 16 G ( x ) = Q n - 1 ( x ) + R n - 1 ( x ) G ( x ) - - - ( 1 - 7 )
R N-1(x) be 16 binary system remainders, (1.7) substitution (1.6) got at last:
B ( x ) · 2 16 G ( x ) = Q n ( x ) · 2 8 n + Q n - 1 ( x ) · 2 8 ( n - 1 ) + . . . Q 0 ( x ) + R n - 1 ( x ) G ( x ) - - - ( 1 - 8 )
16 system binary number R obviously n(x) be exactly desired binary code.
Whether the CRC-16 algorithm adds the redundant digit of two bytes before with each packet, be used for makeing mistakes at receiving terminal check data bag.If make mistakes, directly this packet is used as packet loss and is handled.
4) the every piece of data in the packet that step 3) is obtained is by the one-way optical fiber data transmission card process simple optical fiber transmission of transmitting terminal; Because transfer of data is an one-way transmission in this programme, can't accomplish flow control, therefore require the inbound pacing of the transmission speed of transmitting terminal smaller or equal to receiving terminal.
Data change as shown in Figure 5 in whole transmission flow.
Receiving terminal receives the workflow of data, as Fig. 6:
1) after receiving terminal receives data, resolve the transmission package header packet information, if the form that can't discern abandons this piece of data, and alarm;
2) utilize the correctness of this piece of data of transmission package header packet information verification, promptly, if it is inconsistent with the check information that carries from the transmission package header packet information that this piece of data parses to calculate the check information of this piece of data acquisition, illustrate that this piece of data is impaired in transmission, then abandon this piece of data;
3) according to transmission package header packet information analysis result, judge the group # of the current data that receive in packet with on the group # of a data that receive whether identical:
If group # is inequality, think then that the affiliated packet of a last piece of data has sent to finish, store the current new data that receives, and mark has been finished the reception of one group of packet; Whether the interior numbering of group of judging a last piece of data is N, if not N then thinks the tail packet loss (refer to the follow-up data in same group lose) of last one group of packet, with tail packet loss mark position is effectively, and current group # is updated to the group # of a last piece of data, goes to step 6); Whether numbering is 1 in the group of data that N then judges storage if be numbered in the group: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, and numbers in the group of record error data, and replace the data of losing with zero padding, go to step 5);
If group # is identical, then go to step 4):
4) judge in the group of this piece of data in affiliated packet numbering with in the group of a data that receive numbering whether continuous:
If numbering continuously in the group, that is, and when the k that receives i packet (during the piece of data of 1<k<N), is i if go up the group # of the packet at the data place that portion receives, is numbered (k-1) in the group, represent that then the data of receiving are continuous data; Then go to step 5);
If a numbering and a last piece of data is discontinuous in the group, then think in transmission course, occur loss of data or factor according to impaired and this piece of data by step 1) or 2) abandon, write down numbering in the group of the data that this part make mistakes, and replace the data of losing, go to step 6) then with zero padding;
As seen, if when being numbered 1≤l<N in the group of error data, the position of that piece of data of makeing mistakes can be determined according to numbering in the group of the follow-up data in same group that receives; When the follow-up many piece of data in same group were all lost, the interior numbering of group that then writes down error data depended on the packet that receives next group;
5) the transmission package header packet information of the data that receive is removed, preserved real data;
6) receiving terminal judges whether to finish the Data Receiving of the packet under this group #, if, then call the correcting and eleting codes algorithm and decode, to number in the group according to the error data that writes down, restore data goes to step 7) then; If not, then return step 1), continue to receive data;
In the present embodiment, decode procedure is as follows: decoding end is finished the decoding of the parity check code of four (2,3) according to the wrong Bale No. information that the error location module passes over.Because in most cases, transfer of data is a reliable transmission, in transmission course is can not make mistakes and lose, and can directly extract needed information packet during decoding, abandons the monitoring data bag, so decoding speed is very fast.The speed of decoding end is faster than coding side, can not cause decoding end also when deal with data, receives new data again, causes buffer memory to overflow, and causes data-bag lost.
If C1 the losing of any one packet in the C4, the direct information extraction package of decoding end, therefore decoding is very fast, and decoding speed is guaranteed.
Fig. 7 shows is the recovery situation of any one data-bag lost (among Fig. 6 be example with the A2 data-bag lost);
Continuous four data packet loss can also can be seen accompanying drawing 8 with the data packet recovery of losing by other packet arbitrarily;
Also can recover (seeing accompanying drawing 9) during discontinuous four data packet loss, but not all discontinuous four packets can both recover;
Even error correction algorithm still has the loss recovery ability under the situation of losing ten packets, see accompanying drawing 10, but this situation shown in the accompanying drawing 11 can not recover data in A2, the B2 packet, because they belong to one (2,3) coding subdata package simultaneously.
7) judge whether tail packet loss flag bit is effective, if effectively, whether the interior numbering of group of then judging the data of storage is 1: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, numbering in the group of record error data, and replace the data of losing with zero padding, go to step 5);
8) finish the reception of total data after, decoded data are recombinated, remove the proprietary protocol head of packet, obtain recovered data;
For follow-up many piece of data of avoiding occurring because of in last group packet that sends data are all lost, the situation that causes receiving terminal can't judgment data whether all to be sent completely, receiving terminal is provided with corresponding timeout mechanism, and promptly hypothesis has been received the k piece of data of i packet, at t RxDo not receive last piece of data of this group bag in time, then represent all DTDs of this packet.
Above-described specific descriptions; purpose, technical scheme and beneficial effect to invention further describe; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. no-feedback one-way data transmission method based on single fiber structure, device therefor comprises two one-way optical fiber data transmission cards that belong to transmitting terminal and receiving terminal respectively, and two one-way optical fiber data transmission cards are connected by simple optical fiber by fiber optical transceiver, it is characterized in that, comprise the steps:
Transmitting terminal sends the workflow of data:
1) transmitting terminal adds the proprietary protocol head of packet to data to be sent, and described proprietary protocol head of packet includes but not limited to destination, the version information that data length, Data Source, the data of data to be sent need send;
2) transmitting terminal is to having added the data to be sent end position zero padding of proprietary protocol head of packet, make that data length to be sent after the zero padding is the minimum multiple of M and greater than the data length to be sent before the zero padding, use (M, N) the to be sent data of correcting and eleting codes algorithm after to zero padding are encoded, the coding back obtains the N piece of data, and wherein M and N are the parameter of correcting and eleting codes algorithm;
3) every piece of data is added corresponding transmission package header packet information, again the N piece of data of having added the transmission package header packet information is packaged, and be one group with this N piece of data in the packet that obtains behind the group bag every piece of data wherein organized interior numbering; If data length to be sent is greater than M times of every piece of data length, then to exceeding the part repeating step 1 of length)-3); And the packet that obtains behind the group bag is carried out group #;
The corresponding transmission package header packet information of described every piece of data includes but not limited to following information:
● the data length of this piece of data;
● this piece of data is numbered in the group of affiliated packet;
● check information: the correctness that is used for the receiving terminal check data;
● the group # of the packet at this piece of data place;
The length Buf_Size of described every piece of data satisfies following relation:
Buf_Size=Transfer_Max_Size-Packet_Header_Size-Trans_Size-Trans_Header;
Wherein:
Transfer_Max_Size: the maximum data length that the one-way optical fiber data transmission card can transmit at every turn;
Packet_Header_Size: the length of proprietary protocol head of packet in the step 1), should be less than Buf_Size;
Trans_Size: step 2) length of the every piece of data in correcting and eleting codes coding back in;
Trans_Header: the length of transmission package header packet information;
4) the every piece of data in the packet that step 3) is obtained is by the one-way optical fiber data transmission card process simple optical fiber transmission of transmitting terminal;
Receiving terminal receives the workflow of data:
1) after receiving terminal receives data, resolve the transmission package header packet information, if the form that can't discern abandons this piece of data, and alarm; Otherwise carry out step 2);
2) utilize the correctness of this piece of data of transmission package header packet information verification, promptly, if it is inconsistent with the check information that carries from the transmission package header packet information that this piece of data parses to calculate the check information of this piece of data acquisition, think that this piece of data is impaired in transmission, then abandon this piece of data; Otherwise carry out step 3);
3) according to transmission package header packet information analysis result, judge the group # of the current data that receive in packet with on the group # of a data that receive whether identical:
If group # is inequality, think then that the affiliated packet of a last piece of data has sent to finish, store the current new data that receives, and mark has been finished the reception of one group of packet; Judging whether numbering is N in the group of a last piece of data, if not N then thinks the tail packet loss of last one group of packet, is effective with tail packet loss mark position, and current group # is updated to the group # of a last piece of data, goes to step 6); Whether numbering is 1 in the group of data that N then judges storage if be numbered in the group: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, and numbers in the group of record error data, and replace the data of losing with zero padding, go to step 5);
If group # is identical, then go to step 4):
4) judge in the group of this piece of data in affiliated packet numbering with in the group of a data that receive numbering whether continuous:
If numbering continuously in the group, that is, and when the k that receives i packet (during the piece of data of 1<k<N), is i if go up the group # of the packet at the data place that portion receives, is numbered (k-1) in the group, represent that then the data of receiving are continuous data; Then go to step 5);
If a numbering and a last piece of data is discontinuous in the group, then think in transmission course, occur loss of data or factor according to impaired and this piece of data by step 1) or 2) abandon, write down numbering in the group of the data that this part make mistakes, and replace the data of losing, go to step 6) then with zero padding;
5) the transmission package header packet information of this piece of data that will receive is removed, and preserves real data;
6) receiving terminal judges whether to finish the Data Receiving of the packet under this group #, if, then call the correcting and eleting codes algorithm and decode, to number in the group according to the error data that writes down, restore data goes to step 7) then; If not, then return step 1), continue to receive data;
7) judge whether tail packet loss flag bit is effective, if effectively, whether the interior numbering of group of then judging the data of storage is 1: when being 1, go to step 5), otherwise think that the interior numbering of the group loss of data before of this piece of data causes makeing mistakes, numbering in the group of record error data, and replace the data of losing with zero padding, go to step 5);
8) finish the reception of total data after, decoded data are recombinated, remove the proprietary protocol head of packet, obtain recovered data.
2. according to the described a kind of no-feedback one-way data transmission method of claim 1, it is characterized in that the transmission speed of transmitting terminal is smaller or equal to the inbound pacing of receiving terminal based on single fiber structure.
3. according to the described a kind of no-feedback one-way data transmission method of claim 1, it is characterized in that receiving terminal is provided with corresponding timeout mechanism, promptly at t based on single fiber structure RxDo not receive last piece of data of described packet in time, then represent all DTDs of this packet.
4. according to the described a kind of no-feedback one-way data transmission method of claim 1, it is characterized in that used one-way optical fiber data transmission card has the buffer memory ability based on single fiber structure.
CN201019114008XA 2010-02-03 2010-02-03 No-feedback one-way data transmission method based on single fiber structure Active CN101800757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201019114008XA CN101800757B (en) 2010-02-03 2010-02-03 No-feedback one-way data transmission method based on single fiber structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201019114008XA CN101800757B (en) 2010-02-03 2010-02-03 No-feedback one-way data transmission method based on single fiber structure

Publications (2)

Publication Number Publication Date
CN101800757A true CN101800757A (en) 2010-08-11
CN101800757B CN101800757B (en) 2012-06-27

Family

ID=42596248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201019114008XA Active CN101800757B (en) 2010-02-03 2010-02-03 No-feedback one-way data transmission method based on single fiber structure

Country Status (1)

Country Link
CN (1) CN101800757B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102356609A (en) * 2011-08-24 2012-02-15 华为技术有限公司 Flow control method of switched network and device
CN103560795A (en) * 2013-10-29 2014-02-05 东软熙康健康科技有限公司 Compression method, transmission method, reconstruction method and device for electrocardiograph signals
CN103581774A (en) * 2013-11-05 2014-02-12 神州数码网络(北京)有限公司 Ethernet unidirectional transmission optical port, transmission method thereof and unidirectional transmission device
CN105007275A (en) * 2015-07-29 2015-10-28 浪潮(北京)电子信息产业有限公司 Single-way safety isolation data transmission method and system
CN106453195A (en) * 2015-08-04 2017-02-22 腾讯科技(深圳)有限公司 Resource request processing, authentication request processing and authentication method, system and device
CN106599708A (en) * 2017-02-21 2017-04-26 柳州桂通科技股份有限公司 Real-time access method for preventing visitors from maliciously destroying original data when exchange-accessing between networks and system thereof
WO2018001228A1 (en) * 2016-06-30 2018-01-04 中兴通讯股份有限公司 Fibre connection detection method, network management server, receiving-end network element and computer storage medium
CN107835103A (en) * 2017-10-20 2018-03-23 郑州云海信息技术有限公司 A kind of FC interchangers virtualization test system and method for testing
CN108712235A (en) * 2018-05-29 2018-10-26 北京光润通科技发展有限公司 A kind of unidirectional feedback-less transmission method
CN108847915A (en) * 2018-05-29 2018-11-20 北京光润通科技发展有限公司 The method for realizing one-way transmission using error correction coding reconstruct source data
CN109495450A (en) * 2018-10-22 2019-03-19 智强通达科技(北京)有限公司 A kind of unidirectional information transmission system of physical isolation
CN110809138A (en) * 2019-11-19 2020-02-18 北京国保金泰信息安全技术有限公司信息安全技术研究中心 Video one-way transmission system based on no feedback light
CN110830760A (en) * 2018-08-10 2020-02-21 北京仁光科技有限公司 Secure network data interaction system and method
CN111629279A (en) * 2020-04-13 2020-09-04 北京创享苑科技文化有限公司 Video data transmission method based on fixed-length format
CN113676875A (en) * 2021-09-10 2021-11-19 湖北亿咖通科技有限公司 Communication method of vehicle-mounted equipment, communication system of vehicle-mounted equipment and vehicle
CN115333623A (en) * 2022-07-25 2022-11-11 中关村芯海择优科技有限公司 Unidirectional laser communication method, storage medium, acquisition end, monitoring end and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003117B2 (en) * 2003-02-05 2006-02-21 Voltage Security, Inc. Identity-based encryption system for secure data distribution
CN1956361B (en) * 2006-09-22 2010-05-12 武汉光迅科技股份有限公司 Implementing method of one-way transmission from Ethernet optical transmitting port to optical transmitting port and its optical fibre transceiver
CN1976259B (en) * 2006-11-20 2011-04-20 中网信息技术有限公司 Directive non-feedback optical fiber one-way transmitting physical isolating method and one-way transmitting system therefor

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102356609A (en) * 2011-08-24 2012-02-15 华为技术有限公司 Flow control method of switched network and device
CN103560795A (en) * 2013-10-29 2014-02-05 东软熙康健康科技有限公司 Compression method, transmission method, reconstruction method and device for electrocardiograph signals
CN103560795B (en) * 2013-10-29 2017-10-03 东软熙康健康科技有限公司 A kind of compression method of electrocardiosignal, transmission method, reconstructing method and device
CN103581774A (en) * 2013-11-05 2014-02-12 神州数码网络(北京)有限公司 Ethernet unidirectional transmission optical port, transmission method thereof and unidirectional transmission device
CN105007275A (en) * 2015-07-29 2015-10-28 浪潮(北京)电子信息产业有限公司 Single-way safety isolation data transmission method and system
CN105007275B (en) * 2015-07-29 2018-06-01 浪潮(北京)电子信息产业有限公司 A kind of one-way safety isolated data transmission method and system
CN106453195A (en) * 2015-08-04 2017-02-22 腾讯科技(深圳)有限公司 Resource request processing, authentication request processing and authentication method, system and device
WO2018001228A1 (en) * 2016-06-30 2018-01-04 中兴通讯股份有限公司 Fibre connection detection method, network management server, receiving-end network element and computer storage medium
CN106599708A (en) * 2017-02-21 2017-04-26 柳州桂通科技股份有限公司 Real-time access method for preventing visitors from maliciously destroying original data when exchange-accessing between networks and system thereof
CN107835103A (en) * 2017-10-20 2018-03-23 郑州云海信息技术有限公司 A kind of FC interchangers virtualization test system and method for testing
CN108712235A (en) * 2018-05-29 2018-10-26 北京光润通科技发展有限公司 A kind of unidirectional feedback-less transmission method
CN108847915A (en) * 2018-05-29 2018-11-20 北京光润通科技发展有限公司 The method for realizing one-way transmission using error correction coding reconstruct source data
CN108712235B (en) * 2018-05-29 2020-11-20 北京光润通科技发展有限公司 One-way feedback-free transmission method
CN108847915B (en) * 2018-05-29 2020-11-24 北京光润通科技发展有限公司 Method for realizing unidirectional transmission by reconstructing source end data by applying error correction coding technology
CN110830760A (en) * 2018-08-10 2020-02-21 北京仁光科技有限公司 Secure network data interaction system and method
CN109495450A (en) * 2018-10-22 2019-03-19 智强通达科技(北京)有限公司 A kind of unidirectional information transmission system of physical isolation
CN110809138A (en) * 2019-11-19 2020-02-18 北京国保金泰信息安全技术有限公司信息安全技术研究中心 Video one-way transmission system based on no feedback light
CN111629279A (en) * 2020-04-13 2020-09-04 北京创享苑科技文化有限公司 Video data transmission method based on fixed-length format
CN111629279B (en) * 2020-04-13 2021-04-16 北京创享苑科技文化有限公司 Video data transmission method based on fixed-length format
CN113676875A (en) * 2021-09-10 2021-11-19 湖北亿咖通科技有限公司 Communication method of vehicle-mounted equipment, communication system of vehicle-mounted equipment and vehicle
CN115333623A (en) * 2022-07-25 2022-11-11 中关村芯海择优科技有限公司 Unidirectional laser communication method, storage medium, acquisition end, monitoring end and equipment

Also Published As

Publication number Publication date
CN101800757B (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN101800757B (en) No-feedback one-way data transmission method based on single fiber structure
CN101035141B (en) Error detection device, method and system in physical interfaces for point-to-point communications between integrated circuits
WO2016045391A1 (en) Method and device for data transmission
CN101834700A (en) Unidirectional reliable transmission method and transceiving device based on data packets
ES2389388T3 (en) Method and device for transmitting and receiving data packets
CN105743616B (en) Long message segmentation and reliable communication method based on Big Dipper short message communication
CN103533045B (en) A kind of method fault-tolerant for PCIE data link layer high-performance
CN1656693B (en) Method for iterative hard-input forward error correction
CN101217352B (en) A buffering setting method of phase rate matching
WO2021209037A1 (en) Data recovery method and apparatus
CN103201976A (en) Packet-level erasure protection coding in aggregated packet transmissions
CN102694636A (en) Transmitting and receiving methods and systems of HARQ (hybrid automatic repeat request) technology adopting fountain codes
CN101702640A (en) Method and device for transmitting data in unidirectional network
CN106817192A (en) Method, base station and terminal that a kind of mistake is estimated
CN101162973B (en) Method and devices for digital data transfer
CN104135345B (en) A kind of cross-layer decoding method applied to long evolving system
CN103607264A (en) 3G network-based in-band data transmission method
CN107947902A (en) The data error processing system and method for a kind of high-speed interface chip
US8463955B2 (en) Transport frame structure for retransmission in DSL
CN104247319B (en) Device and method for sending/receiving grouping in a communications system
CN101662339B (en) Method and device for verifying data recovered by forward error correction
CN104144044B (en) Method for processing multi-device transparent HARQ
CN103227693B (en) Supercharged code
CN104579573B (en) Coding, coding/decoding method and the transmitting terminal and receiving terminal of the feedback information of data transfer
WO2022105753A1 (en) Network data encoding transmission method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant