CN104184543B - A kind of methods, devices and systems of data transmission - Google Patents
A kind of methods, devices and systems of data transmission Download PDFInfo
- Publication number
- CN104184543B CN104184543B CN201310198792.3A CN201310198792A CN104184543B CN 104184543 B CN104184543 B CN 104184543B CN 201310198792 A CN201310198792 A CN 201310198792A CN 104184543 B CN104184543 B CN 104184543B
- Authority
- CN
- China
- Prior art keywords
- data
- ecc
- transmitted
- transmission
- packet head
- 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.)
- Active
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The present invention provides a kind of methods, devices and systems of data transmission, can reduce the repeatability of Data Detection in link transmission, reduces the working efficiency that system is improved due to link transmission expense caused by re-transmission.Concrete mode is:Data to be transmitted are obtained, the data to be transmitted include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted packet header, and error detection and correction code is calculated for the data packet head, sends the data with data packet head;When receiving data, receive the data after encapsulation, unseal the data containing error detection and correction code, and the data of reception are detected, when there is an error, error correction is then carried out to the data according to the check bit of error detection and correction code, if the error correction to the data cannot be completed by error detection and correction code, fault-tolerant request data retransmission is set for by preset.The present invention is used for data transmission.
Description
Technical field
The present invention relates to computer realm more particularly to a kind of methods, devices and systems of data transmission.
Background technology
Usually in link transmission, cyclic redundancy check (CRC, Cyclic are used to the data to be transmitted
Redundancy Check) mode protected.But since CRC only has error detection function, without error correction, therefore, make
While with CRC, it is also necessary to take retransmission mechanism to ensure the accuracy of wanted transmission data.In the server, the number of memory
It can carry out the accuracy of detection data using error detection and correction code (ECC, Error Correction Code) according to transmission, and can be right
Mistake carries out certain reparation.
In existing link transmission technology, the process of the sending port of data to be sent from memory to node computer
In, using ECC as the safeguard measure of data;And from sending node computer to the transmission process of receiving node computer in,
Carry out the correctness of detection data transmission using the mode of CRC.In this way data are increased using the transmission mode of CRC and ECC simultaneously
The repeatability of detection, simultaneously because CRC protections is a whole data packet, when detecting wrong in data packet, only
It can achieve the purpose that eliminate mistake by retransmitting data packet, the expense of entire link transmission can in this way increased, seriously reduces
The working efficiency of system.
Invention content
The present invention provides a kind of methods, devices and systems of data transmission, can reduce Data Detection in link transmission
Repeatability reduces the working efficiency that system is improved due to link transmission expense caused by re-transmission.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of data transmission method is provided, the method includes:
Data to be transmitted are obtained, the data to be transmitted include to send the information of target;
According to the information for sending target, the transmission target of the data to be transmitted is determined;
For the data encapsulation of data to be transmitted packet header, and error detection and correction code ECC is calculated for the data packet head, sent
Data with data packet head ECC.
In the first possible implementation, with reference to first aspect, described is the data encapsulation of data to be transmitted
Packet header, and ECC is calculated for the data packet head, sending the data with data packet head ECC includes:
It is the data encapsulated data packet to be transmitted when the data to be transmitted need to be sent to remote computer
Head, and calculate the data packet head ECC;
Transmission includes the data of the data packet head ECC.
Second aspect provides a kind of data transmission method, the method includes;
When forward node receives the data packet head for carrying ECC, if the destination node of forwarding, which has, can store institute
When stating the data packet of data packet head, then the data packet is directly forwarded.
The third aspect provides a kind of method of data transmission, the method includes:
The data for including error detection and correction code ECC after encapsulating are received, the data after the encapsulation include that data packet head error detection is entangled
Error code HECC;
The data containing ECC are unsealed according to the HECC, and the data of the reception are examined according to the ECC
It surveys;
If there are mistakes for the data of the reception, error correction is carried out to the data according to the check bit of the ECC, if logical
Error correction to the data cannot be completed by crossing ECC, then fault-tolerant is set for request data retransmission by preset.
In the first possible implementation, described to contain ECC according to described in HECC deblockings in conjunction with second aspect
Data, and according to the ECC to the data of the reception be detected including:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and is detected the correctness of data to described according to the ECC.
In second of possible realization method, in conjunction with second aspect, if the data of the reception there are mistake,
Carrying out error correction by ECC includes:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction fortune according to the check bit of ECC
It calculates.
In the third possible realization method, in conjunction with second aspect, if described cannot complete to correct mistake by ECC,
Include by fault-tolerant design request data retransmission then:
When the check bit by the ECC cannot complete the error correction of the data, then pass through preset fault-tolerant setting, Xiang Fa
Sending end request data retransmission.
Fourth aspect provides a kind of device of data transmission, is based on sending node computer, and described device includes:
Data capture unit, for obtaining data to be transmitted, the data to be transmitted include to send the information of target;
Target determination unit, for according to the information for sending target, determining the transmission mesh of the data to be transmitted
Mark;
Data transmission unit is calculated for being the data encapsulation of data to be transmitted packet header, and for the data packet head
Error detection and correction code ECC sends the data with data packet head ECC.
In the first possible implementation, in conjunction with the third aspect, the data transmission unit includes:
Packet header encapsulation unit, for when the data to be transmitted need to be sent to remote computer, being described to be passed
Defeated data encapsulation of data packet header, and calculate the data packet head ECC;
Data transmission unit, for send include the data packet head ECC data.
5th aspect, provides a kind of device of data transmission, described device includes:
Retransmission unit, for when forward node receives the data packet head for carrying ECC, if the destination node of forwarding
When having the data packet that can store the data packet head, then the data packet is directly forwarded.
6th aspect, provides a kind of device of data transmission, described device includes:
Data receipt unit is used to receive the data for including error detection and correction code ECC after encapsulating, the data packet after the encapsulation
Include data packet head error detection and correction code HECC;
Data detecting unit, for unsealing the data containing ECC according to the HECC, and according to the ECC to institute
The data for stating reception are detected;
Error handling unit, if there are mistakes for the data of the reception, according to the check bit of the ECC to the data
Error correction is carried out, if the error correction to the data cannot be completed by ECC, fault-tolerant request data weight is set for by preset
It passes.
In the first possible implementation, in conjunction with fourth aspect, the data detecting unit is used for:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and is detected the correctness of data to described according to the ECC.
In second of possible realization method, in conjunction with fourth aspect, the error handling unit is used for:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction fortune according to the check bit of ECC
It calculates.
In the third possible realization method, in conjunction with fourth aspect, the error handling unit is additionally operable to:
When the check bit by the ECC cannot complete the error correction of the data, then pass through preset fault-tolerant setting, Xiang Fa
Sending end request data retransmission.
7th aspect, provides a kind of system of data transmission, the system comprises;
Transmitting terminal as described in first aspect and fourth aspect;
Retransmission unit as described in terms of second aspect and the 5th;
Receiving terminal as described in terms of the third aspect and the 6th.
The embodiment of the present invention provides a kind of methods, devices and systems of data transmission, by obtaining data to be transmitted, institute
It includes to send the information of target to state data to be transmitted, according to the information for sending target, determines and sends target;For number to be transmitted
Error detection and correction code is calculated according to encapsulation of data packet header, and for the data packet head, sends the data with data packet head;Receiving number
According to when, receive the data after encapsulation, unseal the data containing error detection and correction code, and the data of reception are detected, work as presence
When mistake, then error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed pair by error detection and correction code
The error correction of the data then fault-tolerant is set for request data retransmission by preset.Data in link transmission can be reduced to examine
The repeatability of survey reduces the working efficiency that system is improved due to link transmission expense caused by re-transmission.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of schematic diagram of the method for data transmission provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the method for data transmission that the embodiment of the present invention provides again;
Fig. 3 is a kind of schematic diagram of the method for data transmission provided in an embodiment of the present invention;
Fig. 4 is the comparison diagram of data packet format before and after encapsulation provided in an embodiment of the present invention;
Fig. 5 is the tool in the communication data packet of the PCI-E buses before data packet format provided in an embodiment of the present invention modification
Hold in vivo;
Fig. 6 is the tool in the communication data packet of the modified PCI-E buses of data packet format provided in an embodiment of the present invention
Hold in vivo;
Fig. 7 provides a kind of schematic diagram of the method for data transmission for the embodiment of the present invention;
Fig. 8 provides a kind of schematic diagram of the method for data transmission for the embodiment of the present invention;
Fig. 9 provides a kind of schematic diagram of the specific method of data transmission for the embodiment of the present invention;
Figure 10 provides a kind of structural schematic diagram of the device of data transmission for another embodiment of the present invention;
Figure 11 provides a kind of structural schematic diagram of the device of data transmission for another embodiment of the present invention;
Figure 12 provides a kind of structural schematic diagram of the device of data transmission for another embodiment of the present invention;
Figure 13 provides a kind of structural schematic diagram of the device of data transmission for another embodiment of the present invention;
Figure 14 provides a kind of schematic diagram of the system of data transmission for the embodiment of the present invention;
Figure 15 provides a kind of structural schematic diagram of the device of data transmission for the embodiment of the present invention;
Figure 16 provides a kind of structural schematic diagram of the device of data transmission for the embodiment of the present invention;
Figure 17 embodiment of the present invention provides a kind of structural schematic diagram of the device of data transmission.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of method of data transmission, as shown in Figure 1, this method includes:
101, data to be transmitted are obtained, the data to be transmitted include to send the information of target.
102, according to the information for sending target, the transmission target of the data to be transmitted is determined.
103, it is the data encapsulation of data to be transmitted packet header, and error detection and correction code ECC is calculated for the data packet head,
Send the data with data packet head ECC.
Corresponding, the embodiment of the present invention provides a kind of method of data transmission again, as shown in Fig. 2, this method packet
It includes:
201, the data for including error detection and correction code ECC after encapsulating are received, the data after the encapsulation include data packet head inspection
Wrong error correcting code HECC.
202, the data containing ECC are unsealed according to the HECC, and according to the ECC to the data of the reception into
Row detection.
If 203, there are mistakes for the data of the reception, error correction is carried out to the data according to the check bit of the ECC,
If the error correction to the data cannot be completed by ECC, fault-tolerant request data retransmission is set for by preset.
The embodiment of the present invention provides a kind of method of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
In order to enable those skilled in the art to be more clearly understood that technical solution provided in an embodiment of the present invention, lead to below
Specific embodiment is crossed, a kind of method of data transmission provided in an embodiment of the present invention is described in detail, this method includes:
301, data to be transmitted are obtained, the data to be transmitted include to send the information of target.
302, according to the information for sending target, the transmission target of the data to be transmitted is determined.
303, it is the data encapsulation of data to be transmitted packet header, and error detection and correction code ECC is calculated for the data packet head,
Send the data with data packet head ECC.
Wherein, as shown in figure 3, step 303 specifically includes:
3031, when the data to be transmitted need to be sent to remote computer, for the data encapsulation to be transmitted
Data packet head, and calculate the data packet head ECC.
3032, transmission includes the data of the data packet head ECC.
Specifically, it is original using CRC when data packet format with encapsulation HECC after modified data packet comparison such as
Shown in Fig. 4, can clearly it find out in Fig. 4, compare the original data packet using CRC, modified data packet is protected using ECC
The part of HECC is added to before the data of shield, so that when receiving, the parts HECC identification data packet can be passed through first
Encapsulation format ensures the correct reading of the data to using ECC to protect part in data packet.
In Fig. 4, the effect of serial number part is that inspection data packet whether there is packet loss in point-to-point transmission, if transmitting
There is packet loss phenomenon in the process, then the data of point-to-point is activated to retransmit;
Illustratively, the process modified to data packet format is as shown in Figure 5 and Figure 6.
In Figure 5, be do not carry out the PCI-E buses before data packet format modification communication data packet in it is specific in
Hold.
Correspondingly, being the PCI-E bus data packets after being added to ECC protected fields in figure 6, it can be clearly seen that,
It is added to the field of packet header protection in shadow region, when the numerical value in the protected field of packet header is 11, illustrates the data packet
Head will be protected, specifically, increasing the DW ECC fields of dash area in the packet.
The specific implementation of the step is:
If the data to be transmitted are sent to remote node computer, the data to be transmitted are not solved
The data to be transmitted are directly sent to sending port by envelope;
If the data to be transmitted are sent to other modules of node computer itself, by the data to be transmitted
It carries out solution to be honored as a queen, be sent in caching, so that the data to be transmitted are sent to other described modules.
Further, if the data to be transmitted are sent to remote node computer, not to the number to be transmitted
According to being unsealed, the data to be transmitted, which are directly sent to sending port, includes:
If being sent to remote node computer when the data to be transmitted,
The data to be transmitted are sent to sending port.
If the data to be transmitted are sent to other modules of node computer itself, by the data to be transmitted
It carries out solution to be honored as a queen, be sent in caching, include so that the data to be transmitted are sent to other described modules:
If the data to be transmitted are to be sent to other modules of node computer itself,
The ECC in the data to be transmitted is unsealed, and obtains the data that solution is honored as a queen;
The data that the solution is honored as a queen are sent to the caching of the node computer, and then are sent to the node computer
Other modules of itself.
Further, the data to be transmitted are packaged, after calculating ECC, send the number to be transmitted
According to including:
ECC is calculated for the packet header of the data to be transmitted;
The data to be transmitted are packaged, and send the data after the encapsulation.
The embodiment of the present invention provides a kind of method of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention provides a kind of method of data transmission, and this method includes:
401, the data for including error detection and correction code ECC after encapsulating are received, the data after the encapsulation include data packet head inspection
Wrong error correcting code HECC.
402, the data containing ECC are unsealed according to the HECC, and according to the ECC to the data of the reception into
Row detection.
If 403, there are mistakes for the data of the reception, error correction is carried out to the data according to the check bit of the ECC,
If the error correction to the data cannot be completed by ECC, fault-tolerant request data retransmission is set for by preset.
Wherein, as shown in fig. 7, step 402 includes:
4021, by unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent.
4022, the ECC in the data of the reception is unsealed, and the correctness by data is carried out according to the ECC
Detection.
As shown in figure 8, step 403 includes:
If 4031, obtaining the data of the reception by error detection operation there are mistakes to be carried out according to the check bit of ECC
Error correction operation.
4032, it when the check bit by the ECC cannot complete the error correction of the data, then fault-tolerant is set by preset
It is fixed, to transmitting terminal request data retransmission.
Illustratively, according to above-mentioned steps, following embodiment table can be used by carrying out the process of primary complete data transmission
Show, specific steps are as shown in Figure 9:
501, receive the request of data that other modules of local computer or remote computer are sent, make Memory Controller Hub from
The data containing ECC are read in ECC memories, the data containing ECC include to send the information of target.
502, Memory Controller Hub judges according to the information for sending target to the processing mode containing ECC data.
It 503, then will be including the data containing ECC when the transmission target is other modules of local computer
ECC is unsealed in memory controller, and the data that solution is honored as a queen are stored in shared buffer memory or Installed System Memory, so as to corresponding module
Directly acquire the data of needs.
504, when the transmission target is other remote computers, then the data containing ECC are sent to transmission
Port, the encapsulation of data packet header in sending port, and ECC is added for data packet head in the ECC generators in sending port, most
Eventually, the data for being packaged with ECC data packet header are sent to corresponding remote computer.
505, the receiving port of remote computer is after the data packet for receiving transmitting terminal transmission, in the ECC of receiving port
The data containing data packet head ECC are unsealed in generator.
506, according to solution be honored as a queen the ECC in data carry out data check, when find exist mistake when, then according in ECC
Data carry out error correction.
507, when according to the data in ECC error correction can not be carried out, then to data sending terminal transmission data retransmission request, with
Just data are regained.
The embodiment of the present invention provides a kind of method of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention provides a kind of device 01 of data transmission, and as shown in Figure 10, which includes:
Data capture unit 011, for obtaining data to be transmitted, the data to be transmitted include to send the letter of target
Breath.
Target determination unit 012, for according to the information for sending target, determining the transmission of the data to be transmitted
Target.
Data transmission unit 013 for being the data encapsulation of data to be transmitted packet header, and is the data packet head meter
Error detection and correction code ECC is calculated, the data with data packet head ECC are sent.
Wherein, as shown in figure 11, data transmission unit 013 includes:
Packet header encapsulation unit 0131, for being described when the data to be transmitted need to be sent to remote computer
Data encapsulation of data to be transmitted packet header, and calculate the data packet head ECC.
Data transmission unit 0132, for send include the data packet head ECC data.
The embodiment of the present invention provides a kind of device of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention provides a kind of device 02 of data transmission, and as shown in figure 12, described device 02 includes:
Retransmission unit 021, for when forward node receives the data packet head for carrying ECC, if the purpose of forwarding
When node has the data packet that can store the data packet head, then the data packet is directly forwarded.
The embodiment of the present invention provides a kind of device of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention provides a kind of device 03 of data transmission, and as shown in figure 13, described device 03 includes:
Data receipt unit 031 is used to receive the data for including error detection and correction code ECC after encapsulating, the number after the encapsulation
According to including data packet head error detection and correction code HECC.
Data detecting unit 032, for unsealing the data containing ECC according to the HECC, and according to described ECC pairs
The data of the reception are detected.
Error handling unit 033, if there are mistakes for the data of the reception, according to the check bit of the ECC to described
Data carry out error correction, if cannot complete the error correction to the data by ECC, fault-tolerant number of request is set for by preset
According to re-transmission.
Wherein, the data detecting unit 032 is used for:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and is detected the correctness of data to described according to the ECC.
Further, the error handling unit 033 is used for:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction fortune according to the check bit of ECC
It calculates.
The error handling unit 033 is additionally operable to:
When the check bit by the ECC cannot complete the error correction of the data, then pass through preset fault-tolerant setting, Xiang Fa
Sending end request data retransmission.
The embodiment of the present invention provides a kind of device of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention also provides a kind of system 04 of data transmission, and as shown in figure 14, which includes:
Transmitting terminal 041 as described in device 01 in embodiment.
Retransmission unit 042 as described in device 02 in embodiment.
Receiving terminal 043 as described in device 03 in embodiment.
The embodiment of the present invention provides a kind of system of data transmission, described to be transmitted by obtaining data to be transmitted
Data include to send the information of target, according to the information for sending target, determine and send target;For data encapsulation of data to be transmitted
Packet header, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, it receives
Data after encapsulation unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot be completed to the data by error detection and correction code
Error correction then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced,
Reduce the working efficiency that system is improved due to link transmission expense caused by re-transmission.
The embodiment of the present invention also provides a kind of device 05 of data transmission, and as shown in figure 15, which includes:Bus
051;And it is connected to processor 052, memory 053, transmitter 054 and the receiver 055 of bus 051, wherein memory 053
For storing instruction, which includes to send the letter of target for obtaining data to be transmitted, the data to be transmitted
Breath;The processor 052 is used to, according to the information for sending target, determine the transmission target of the data to be transmitted;At this
It manages device 052 and is used to be the data encapsulation of data to be transmitted packet header, and error detection and correction code ECC is calculated for the data packet head,
Send the data with data packet head ECC.
In embodiments of the present invention, optionally, which executes the instruction for encapsulating for the data to be transmitted
Data packet head, and ECC is calculated for the data packet head, sending the data with data packet head ECC includes:
It is the data encapsulated data packet to be transmitted when the data to be transmitted need to be sent to remote computer
Head, and calculate the data packet head ECC;
Transmission includes the data of the data packet head ECC.
Therefore, the device of data transmission of the embodiment of the present invention, by obtaining data to be transmitted, the data to be transmitted
Including sending the information of target, according to the information for sending target, determines and send target;For data encapsulated data packet to be transmitted
Head, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, envelope is received
Data after dress unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then root
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot complete to entangle the data by error detection and correction code
Mistake then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced, dropped
It is low due to link transmission expense caused by re-transmission, improve the working efficiency of system.
The embodiment of the present invention also provides a kind of device 06 of data transmission, and as shown in figure 16, which includes:Bus
061;And it is connected to processor 062, memory 063, transmitter 064 and the receiver 065 of bus 061, wherein memory 063
For storing instruction, which is used to receive the data packet head for carrying error detection and correction code ECC when forward node
When, if the destination node of forwarding has the data packet that can store the data packet head, the data packet is directly turned
Hair.
Therefore, the device of data transmission of the embodiment of the present invention, by obtaining data to be transmitted, the data to be transmitted
Including sending the information of target, according to the information for sending target, determines and send target;For data encapsulated data packet to be transmitted
Head, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, envelope is received
Data after dress unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then root
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot complete to entangle the data by error detection and correction code
Mistake then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced, dropped
It is low due to link transmission expense caused by re-transmission, improve the working efficiency of system.
The embodiment of the present invention also provides a kind of device 07 of data transmission, and as shown in figure 17, which includes:Bus
071;And it is connected to processor 072, memory 073, transmitter 074 and the receiver 075 of bus 071, wherein memory 073
For storing instruction, which is used to receive encapsulate after include the data of error detection and correction code ECC, the number after the encapsulation
According to including data packet head error detection and correction code HECC;The processor 072 is used to unseal the number containing ECC according to the HECC
According to, and the data of the reception are detected according to the ECC;If data of the processor 072 for the reception exist
Mistake then carries out error correction, if cannot complete to entangle the data by ECC according to the check bit of the ECC to the data
Mistake then fault-tolerant is set for request data retransmission by preset.
In embodiments of the present invention, optionally, which executes the instruction for containing according to described in HECC deblockings
Have a data of ECC, and according to the ECC to the data of the reception be detected including:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and is detected the correctness of data to described according to the ECC.
In embodiments of the present invention, optionally, if the processor executes the instruction, the data for the reception are deposited
In mistake, then carrying out error correction by ECC includes:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction fortune according to the check bit of ECC
It calculates.
In embodiments of the present invention, optionally, if the processor executes the instruction and corrects mistake for that cannot be completed by ECC
Accidentally, then include by fault-tolerant design request data retransmission:
When the check bit by the ECC cannot complete the error correction of the data, then pass through preset fault-tolerant setting, Xiang Fa
Sending end request data retransmission.
Therefore, the device of data transmission of the embodiment of the present invention, by obtaining data to be transmitted, the data to be transmitted
Including sending the information of target, according to the information for sending target, determines and send target;For data encapsulated data packet to be transmitted
Head, and error detection and correction code is calculated for the data packet head, send the data with data packet head;When receiving data, envelope is received
Data after dress unseal the data containing error detection and correction code, and are detected to the data of reception, when there is an error, then root
Error correction is carried out to the data according to the check bit of error detection and correction code, if cannot complete to entangle the data by error detection and correction code
Mistake then fault-tolerant is set for request data retransmission by preset.The repeatability of Data Detection in link transmission can be reduced, dropped
It is low due to link transmission expense caused by re-transmission, improve the working efficiency of system.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that the independent physics of each unit includes, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention
Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store
The medium of program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (15)
1. a kind of data transmission method, which is characterized in that the method includes:
Data to be transmitted are obtained, the data to be transmitted include to send the information of target;The data to be transmitted be from
The data containing ECC read in ECC memories;
According to the information for sending target, the transmission target of the data to be transmitted is determined;
It is the data encapsulation of data to be transmitted packet header, and be described when the transmission target is other remote computers
Data packet head calculates error detection and correction code ECC, sends the data with data packet head ECC.
2. according to the method described in claim 1, it is characterized in that, it is described be the data encapsulation of data to be transmitted packet header,
And ECC is calculated for the data packet head, sending the data with data packet head ECC includes:
It is the data encapsulation of data to be transmitted packet header when the data to be transmitted need to be sent to remote computer,
And calculate the data packet head ECC;
Transmission includes the data of the data packet head ECC.
3. a kind of method of data transmission, which is characterized in that the method includes:
When forward node receives the data packet head with error detection and correction code ECC, if the destination node of forwarding has and can store
When the data packet of the data packet head, then the data packet is directly forwarded.
4. a kind of method of data transmission, which is characterized in that the method includes:
The data for including error detection and correction code ECC after encapsulating are received, the data after the encapsulation include data packet head error detection and correction code
HECC;
The data containing ECC are unsealed according to the HECC, and the data of the reception are detected according to the ECC;
If there are mistakes for the data of the reception, error correction is carried out to the data according to the check bit of the ECC, if passing through
ECC cannot complete the error correction to the data, then fault-tolerant be set for request data retransmission by preset.
5. according to the method described in claim 4, it is characterized in that, described unseal the number containing ECC according to the HECC
According to, and according to the ECC to the data of the reception be detected including:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and the correctness of the data received is examined according to the ECC
It surveys.
If 6. according to the method described in claim 4, it is characterized in that, the data of the reception there are mistakes, pass through
ECC carries out error correction:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction operation according to the check bit of ECC.
If 7. according to the method described in claim 4, it is characterized in that, it is described by ECC cannot complete correct mistake, pass through
Fault-tolerant design request data retransmission includes:
When the check bit by the ECC cannot complete the error correction of the data, then by preset fault-tolerant setting, to transmitting terminal
Request data retransmission.
8. a kind of device of data transmission, which is characterized in that described device includes:
Data capture unit, for obtaining data to be transmitted, the data to be transmitted include to send the information of target;It is described
Data to be transmitted are the data containing ECC read from ECC memories;
Target determination unit, for according to the information for sending target, determining the transmission target of the data to be transmitted;
Data transmission unit, for when the transmission target is other remote computers, being encapsulated for the data to be transmitted
Data packet head, and error detection and correction code ECC is calculated for the data packet head, send the data with data packet head ECC.
9. device according to claim 8, which is characterized in that the data transmission unit includes:
Packet header encapsulation unit, for when the data to be transmitted need to be sent to remote computer, being described to be transmitted
Data encapsulation of data packet header, and calculate the data packet head ECC;
Data transmission unit, for send include the data packet head ECC data.
10. a kind of device of data transmission, which is characterized in that described device includes:
Retransmission unit, when for receiving the data packet head with ECC when forward node, if the destination node of forwarding has and can deposit
When storing up the data packet of the data packet head, then the data packet is directly forwarded.
11. a kind of device of data transmission, which is characterized in that described device includes:
Data receipt unit, is used to receive the data for including error detection and correction code ECC after encapsulating, and the data after the encapsulation include number
According to packet header error detection and correction code HECC;
Data detecting unit for unsealing the data containing ECC according to the HECC, and connects according to the ECC to described
The data of receipts are detected;
Error handling unit carries out the data according to the check bit of the ECC if there are mistakes for the data of the reception
Error correction fault-tolerant is set for request data retransmission if cannot complete the error correction to the data by ECC by preset.
12. according to the devices described in claim 11, which is characterized in that the data detecting unit is used for:
By unsealing the HECC, the data received described in determination are the data that transmitting terminal is sent;
The ECC in the data of the reception is unsealed, and the correctness of the data received is examined according to the ECC
It surveys.
13. according to the devices described in claim 11, which is characterized in that the error handling unit is used for:
If obtaining the data of the reception by error detection operation there are mistakes to carry out error correction operation according to the check bit of ECC.
14. according to the devices described in claim 11, which is characterized in that the error handling unit is additionally operable to:
When the check bit by the ECC cannot complete the error correction of the data, then by preset fault-tolerant setting, to transmitting terminal
Request data retransmission.
15. a kind of system of data transmission, which is characterized in that the system comprises:
Such as the device of claim 8 to 9 any one of them data transmission;
The device of data transmission as claimed in claim 10;
Such as the device of claim 11 to 14 any one of them data transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310198792.3A CN104184543B (en) | 2013-05-24 | 2013-05-24 | A kind of methods, devices and systems of data transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310198792.3A CN104184543B (en) | 2013-05-24 | 2013-05-24 | A kind of methods, devices and systems of data transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104184543A CN104184543A (en) | 2014-12-03 |
CN104184543B true CN104184543B (en) | 2018-10-30 |
Family
ID=51965316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310198792.3A Active CN104184543B (en) | 2013-05-24 | 2013-05-24 | A kind of methods, devices and systems of data transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104184543B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372026B (en) * | 2015-07-22 | 2020-01-31 | 深圳市中兴微电子技术有限公司 | link detection method and receiving equipment |
WO2019109239A1 (en) * | 2017-12-05 | 2019-06-13 | 深圳市汇顶科技股份有限公司 | Data transmission method, transmitting end device and receiving end device |
CN110515646B (en) * | 2019-07-26 | 2022-03-25 | 华为技术有限公司 | Differential upgrading method and related equipment |
CN111427832B (en) * | 2020-04-17 | 2023-04-25 | 展讯通信(上海)有限公司 | Data transmission method and communication device of serial bus |
CN111541518A (en) * | 2020-04-17 | 2020-08-14 | 展讯通信(上海)有限公司 | Data transmission method and communication device of serial bus |
CN113918487A (en) * | 2021-10-22 | 2022-01-11 | 北京灵汐科技有限公司 | Data packet processing method and data packet processing device |
CN115567167B (en) * | 2022-12-06 | 2023-03-31 | 芯动微电子科技(珠海)有限公司 | Bus transmission data error correction method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01223844A (en) * | 1988-03-03 | 1989-09-06 | Ricoh Co Ltd | Data transmission system |
CN1813412A (en) * | 2003-02-19 | 2006-08-02 | 哈里公司 | Mobile ad-hoc network (manet) including forward error correction (fec), interleaving, and multi-route communication features and related methods |
CN101312387A (en) * | 2007-05-24 | 2008-11-26 | 富士施乐株式会社 | Data transmission apparatus, data transmission device, data reception device and data transmission system |
CN101675706A (en) * | 2007-12-12 | 2010-03-17 | 松下电器产业株式会社 | Data transmission/reception system, terminal, relay device, and data transmission method |
CN103036646A (en) * | 2012-12-05 | 2013-04-10 | 清华大学 | ECC (error correction code) decoding controlling method used for data communication |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7774684B2 (en) * | 2006-06-30 | 2010-08-10 | Intel Corporation | Reliability, availability, and serviceability in a memory device |
TWI357733B (en) * | 2008-03-25 | 2012-02-01 | Ralink Technology Corp | Method for error-correcting code selection for mim |
-
2013
- 2013-05-24 CN CN201310198792.3A patent/CN104184543B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01223844A (en) * | 1988-03-03 | 1989-09-06 | Ricoh Co Ltd | Data transmission system |
CN1813412A (en) * | 2003-02-19 | 2006-08-02 | 哈里公司 | Mobile ad-hoc network (manet) including forward error correction (fec), interleaving, and multi-route communication features and related methods |
CN101312387A (en) * | 2007-05-24 | 2008-11-26 | 富士施乐株式会社 | Data transmission apparatus, data transmission device, data reception device and data transmission system |
CN101675706A (en) * | 2007-12-12 | 2010-03-17 | 松下电器产业株式会社 | Data transmission/reception system, terminal, relay device, and data transmission method |
CN103036646A (en) * | 2012-12-05 | 2013-04-10 | 清华大学 | ECC (error correction code) decoding controlling method used for data communication |
Also Published As
Publication number | Publication date |
---|---|
CN104184543A (en) | 2014-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104184543B (en) | A kind of methods, devices and systems of data transmission | |
CN101876963B (en) | PCI.Express communication system and communication method thereof | |
CN101621471B (en) | System for transmitting and receiving packets | |
US20140006912A1 (en) | Communication system via cascade connection and communication device | |
JP2007201878A (en) | Communication system and apparatus, and communication quality testing method | |
WO2011046056A1 (en) | Transmission control method for packet communication and packet communication system | |
CN109064524A (en) | A kind of data transmission method, rebuilds machine and medium at data collection plate | |
US7200790B2 (en) | Switch level reliable transmission | |
CN107800663A (en) | The detection method and device of flow off-line files | |
CN104866454A (en) | Write message prospect processing method and device facing board-level high-speed bus | |
CN114244780A (en) | Data transmission method, data transmission device and related equipment | |
US7701846B2 (en) | Bad data packet capture device | |
CN102436430B (en) | Memory device, host controller and memory system | |
JP2004048474A (en) | Data transmitter for elevator | |
CN108540263A (en) | The communication means of communication system and communication system | |
CN102884744B (en) | For protecting up for the method and apparatus of the packet transmitted by interface | |
JP5857568B2 (en) | Information processing system, receiving apparatus, and information processing method | |
CN104967504A (en) | Method and apparatus for link data protection | |
CN104468190A (en) | Wifi data package capturing method and device and intelligent terminal | |
CN100561953C (en) | A kind of method of recording and diagnosing data | |
JP2014082578A (en) | Full duplex communication device using communication packet and having transmitter and receiver and communication method thereof | |
KR20080067044A (en) | Data transmitting/receiving method and communication system thereof | |
CN103873192A (en) | Data processing method and device | |
CN104396172B (en) | Automatic retransmission processing method, sending ending equipment and receiving device | |
CN109495384A (en) | A kind of method and apparatus improving network route reliability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |