CN103368689A - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN103368689A
CN103368689A CN2013102403801A CN201310240380A CN103368689A CN 103368689 A CN103368689 A CN 103368689A CN 2013102403801 A CN2013102403801 A CN 2013102403801A CN 201310240380 A CN201310240380 A CN 201310240380A CN 103368689 A CN103368689 A CN 103368689A
Authority
CN
China
Prior art keywords
packet
data
data transmission
ethernet
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013102403801A
Other languages
Chinese (zh)
Inventor
张克功
袁海滨
邵宗有
沙超群
郑臣明
柳胜杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN2013102403801A priority Critical patent/CN103368689A/en
Publication of CN103368689A publication Critical patent/CN103368689A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an Ethernet-based data transmission method, which comprises the following steps of transmitting a data packet by a transmitting terminal; receiving and checking the data packet by using a receiving terminal; if the data packet is checked to be accurate, informing the transmitting terminal to continue transmitting the next data packet; and if the data packet is checked to have an error, discarding the data packet, and informing the transmitting terminal to retransmit the data packet. According to the data transmission method, data checking and data retransmission measures are utilized, so that the data transmission reliability of the Ethernet is remarkably improved. Moreover, the invention also discloses an Ethernet-based data transmission system.

Description

A kind of data transmission method and system
Technical field
The present invention relates to a kind of data transmission method and system, especially a kind of data transmission method and system based on gigabit Ethernet.
Background technology
Local area ethernet begins development from 10M, and experience transition how develop into present gigabit Ethernet and even ten thousand mbit ethernets.Ethernet take efficiently, at a high speed, high-performance is as characteristics, has been widely used in the industries such as finance, commerce, education, government bodies and industrial enterprise.
Take gigabit Ethernet as example, at present, gigabit Ethernet has been widely used in and has carried out transfer of data in the electronic equipment.But because the electronic device works circumstance complication is various, data transmission channel faces the test of the various extreme operational environments such as high low temperature, vibration and electromagnetic interference, and data are lost in transmission course, error code unavoidable.So whether the gigabit Ethernet agreement is defined in data receiver and carries out CRC check (Cyclic Redundancy Check, cyclic redundancy check (CRC)), correct with the packet that verification is transmitted.If by the packet error that the discovery of CRC check mechanism is transmitted, then the error data bag is carried out discard processing.Although in most of situation, the error data bag is abandoned and do not retransmit the needs that can satisfy the electronic system transfer of data, but for some in data integrality and the more sensitive application system of reliability ratio, this practice that only abandons the error data bag can't satisfy the system data transmission requirement, because this treatment mechanism has obviously reduced integrality and the reliability of transfer of data.Because the Ethernet of other types also adopts this data transmission mechanism, obviously also exists similar problem.
For improving data transmission credibility, someone proposes the scheme of error correction after data receiver adopts data check, but the data check error correction implements more complicated, and operability is not very strong.
Therefore, in the transfer of data based on Ethernet, expectation provides a kind of data transmission method that can improve simply and effectively reliability.
Summary of the invention
The present invention is directed to the problems referred to above, proposed a kind of data transmission method based on Ethernet and system, it utilizes the measure of check sum data re-transmission to improve the data transmission credibility of gigabit Ethernet.
In one aspect of the invention, a kind of data transmission method based on Ethernet comprises step: transmitting terminal sends packet; Receiving terminal is received this packet and is carried out verification; Errorless such as verification, then notify transmitting terminal to continue to send next packet; Such as verification mistake is arranged, then abandon this packet and notify transmitting terminal to resend this packet.
In another aspect of the present invention, a kind of data transmission system based on Ethernet comprises for the data sending device that sends packet; With the data sink that is used for receive data, wherein data sink carries out verification after receiving packet, and is errorless such as verification, and then the notification data dispensing device continues to send next packet; Such as verification mistake is arranged, then abandon this packet and the notification data dispensing device resends this packet.
Preferably, after verification has mistake if data sending device resends the certain number of times of this packet, then stop transfer of data.
Preferably, above-mentioned certain number of times can be 3 times.
Preferably, Ethernet can be gigabit Ethernet.
Preferably, verification can be CRC check.
By the data transmission method based on Ethernet of the present invention and data transmission system, can improve the reliability of Ethernet data transmission simple and reliablely.
Description of drawings
Fig. 1 is the schematic diagram of data transmission method according to the present invention under the transfer of data zero defect.
Fig. 2 is the schematic diagram of data transmission method according to the present invention under transfer of data goes wrong.
Fig. 3 is the flow chart according to data transmission method of the present invention.
Embodiment
In order to make technical scheme of the present invention and advantage clearer, below in conjunction with accompanying drawing exemplary embodiment of the present invention is described in more detail, obviously, described embodiment only is a part of embodiment of the present invention, rather than all embodiment's is exhaustive.
Under the gigabit Ethernet full-duplex mode, the both sides of communication be transmit leg also be the recipient, namely transmitting terminal also is receiving terminal simultaneously, receiving terminal also is transmitting terminal simultaneously.In the following discussion, regulation T is data sending terminal, and R is data receiver.The reliability of transfer of data adopts " Stop-wait agreement " to guarantee.After transmitting terminal T whenever sends bag data, just suspend next bag data of transmission, wait for the affirmation signal of receiving terminal R passback, after receiving confirmation signal, T just continues to send next bag data.Adopt " question-response " although mechanism can cause channel utilization to reduce, it can guarantee the correctness of transfer of data, and principle simple, easily realize.
The operation of Stop-wait agreement is below described in two kinds of situation: zero defect situation and the situation that goes wrong.
The zero defect situation as shown in Figure 1, transmitting terminal T sends packet P1, sends just to suspend to send next bag, waits for the affirmation signal of receiving terminal R.Receiving terminal R received P1 and CRC check errorless after just to transmitting terminal T transmission confirmation signal.Transmitting terminal T just continues to send next packet P2 behind the affirmation signal of having received P1.Equally, after receiving the affirmation of receiving terminal R to P2, send P3, circulation down successively again.Thus, by the affirmation of recipient to each packet, can guarantee the correctness of transfer of data.
Go wrong situation as shown in Figure 2, and transmitting terminal T sends packet P1, and CRC check was found mistake when receiving terminal R received P1, and the expression data transmission fault is with regard to packet discard P1.Follow-up to resume defeated next packet different but from the CRC check in the conventional Ethernet, in the present invention, receiving terminal R is when packet discard P1, also send error flag to transmitting terminal T, notice transmitting terminal T resends one time, receiving terminal R again receive data P1 also carries out CRC check again, and is correct such as verification, and receiving terminal R sends confirmation signal to transmitting terminal T.Transmitting terminal T just continues to send next packet P2 behind the affirmation signal of having received P1.If mistake is found in check, then packet discard P1, and notice transmitting terminal T resends.So loop, until packet P1 verification is correct, then receiving terminal R sends confirmation signal to transmitting terminal T.Transmitting terminal T just continues to send next packet P2 behind the affirmation signal of having received P1.If resend several times (such as 3 times) but still check errors, then transmitting terminal T notice control unit data transmission channel goes wrong, and stops transfer of data, carries out fault and gets rid of.
According to the flow chart of data transmission method of the present invention as shown in Figure 3.At first, at step S101, transmitting terminal T sends packet P1.Then, at step S102, receiving terminal R receive data bag P1.Then, at step S103, receiving terminal R carries out verification to packet P1, and whether checking data bag P1 is correct.
Be correct such as check results, then forward step S104 to, receiving terminal R sends the correct information of packet P1 to transmitting terminal T, and notice transmitting terminal T can send next packet P2, and flow process turns back to step S101, carries out the transfer of data of next packet P2.
Be error such as check results, then forward step S105 to, receiving terminal R continues to judge that packet P1 transmits again whether reaches n time, and n is positive integer, and common value is 3, but is not limited to this.If do not reach n time, then flow process down proceeds to step S106, receiving terminal R packet discard P1, and notify again the transmission of data bag P1 of transmitting terminal T, flow process turns back to step S101, re-starts the transfer of data of packet P1.If reach n time, then flow process goes to step S107, is considered as data transmission channel and goes wrong, and stops transfer of data, carries out fault and gets rid of.
And the present invention also provides a kind of data transmission system based on Ethernet, and it comprises for the data sending device that sends packet; With the data sink that is used for receive data.Data sink carries out verification after receiving packet, errorless such as verification, then notifies described data sending device to continue to send next packet; Such as verification mistake is arranged, then abandon this packet and notify described data sending device to resend this packet.But, after verification has mistake if described data sending device resends the certain number of times of this packet, then stop transfer of data.
Obviously, packet verification and data re-transmission mechanism that the present invention proposes not merely are applicable to gigabit Ethernet, but also go for other Ethernets, such as 10M Ethernet, Fast Ethernet and ten thousand mbit ethernets etc.
Above embodiment is only in order to technical scheme of the present invention to be described but not limit it; in the situation that do not deviate from spirit of the present invention and essence thereof; those skilled in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong in the protection range of the appended claim of the present invention.

Claims (10)

1. data transmission method based on Ethernet, it comprises step:
Transmitting terminal sends packet;
Receiving terminal is received this packet and is carried out verification;
Errorless such as verification, then notify transmitting terminal to continue to send next packet; Such as verification mistake is arranged, then abandon this packet and notify transmitting terminal to resend this packet.
2. data transmission method as claimed in claim 1 is if wherein transmitting terminal sends the certain number of times of this packet but still after verification has mistake, then stops transfer of data.
3. data transmission method as claimed in claim 2, wherein said certain number of times is 3 times.
4. such as the arbitrary described data transmission method of claims 1 to 3, wherein said Ethernet is gigabit Ethernet.
5. such as the arbitrary described data transmission method of claims 1 to 3, the wherein said CRC check that is verified as.
6. data transmission system based on Ethernet, it comprises:
Be used for sending the data sending device of packet; With
The data sink that is used for receive data;
It is characterized in that, described data sink carries out verification after receiving packet, errorless such as verification, then notifies described data sending device to continue to send next packet; Such as verification mistake is arranged, then abandon this packet and notify described data sending device to resend this packet.
7. data transmission system as claimed in claim 6 is if wherein described data sending device resends the certain number of times of this packet but still after verification has mistake, then stops transfer of data.
8. data transmission system as claimed in claim 7, wherein said certain number of times is 3 times.
9. such as the arbitrary described data transmission system of claim 6 to 8, wherein said Ethernet is gigabit Ethernet.
10. such as the arbitrary described data transmission system of claim 6 to 8, the wherein said CRC check that is verified as.
CN2013102403801A 2013-06-18 2013-06-18 Data transmission method and system Pending CN103368689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102403801A CN103368689A (en) 2013-06-18 2013-06-18 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102403801A CN103368689A (en) 2013-06-18 2013-06-18 Data transmission method and system

Publications (1)

Publication Number Publication Date
CN103368689A true CN103368689A (en) 2013-10-23

Family

ID=49369307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102403801A Pending CN103368689A (en) 2013-06-18 2013-06-18 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN103368689A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601299A (en) * 2013-10-30 2015-05-06 北京临近空间飞行器系统工程研究所 Data transmission system and method based on two-way acknowledgment
CN105871510A (en) * 2016-03-26 2016-08-17 深圳市中联宇航科技有限公司 Method and device for transmitting aeronautical data
CN107670148A (en) * 2017-10-27 2018-02-09 上海京颐科技股份有限公司 Transfusion monitoring system and method
CN110445583A (en) * 2019-08-12 2019-11-12 珠海市伟高变频科技有限公司 Method of calibration, check system and the computer readable storage medium of data transmission
CN111641481A (en) * 2020-05-25 2020-09-08 北京计算机技术及应用研究所 Data retransmission method based on XAUI interface bus
CN115314458A (en) * 2022-07-05 2022-11-08 深圳手回科技集团有限公司 Message pushing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155014A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and apparatus for data mixing and automatic requesting for retransmission
CN101621364A (en) * 2008-06-30 2010-01-06 富士通株式会社 Automatic retransmission controller and reconfiguration device of retransmission block
CN101729224A (en) * 2008-10-20 2010-06-09 富士通株式会社 Transmission data generating device and receiving machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155014A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and apparatus for data mixing and automatic requesting for retransmission
CN101621364A (en) * 2008-06-30 2010-01-06 富士通株式会社 Automatic retransmission controller and reconfiguration device of retransmission block
CN101729224A (en) * 2008-10-20 2010-06-09 富士通株式会社 Transmission data generating device and receiving machine

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601299A (en) * 2013-10-30 2015-05-06 北京临近空间飞行器系统工程研究所 Data transmission system and method based on two-way acknowledgment
CN104601299B (en) * 2013-10-30 2017-11-28 北京临近空间飞行器系统工程研究所 A kind of data transmission system and method based on two-way confirmation
CN105871510A (en) * 2016-03-26 2016-08-17 深圳市中联宇航科技有限公司 Method and device for transmitting aeronautical data
CN105871510B (en) * 2016-03-26 2019-05-07 深圳市中联宇航科技有限公司 A kind of transmission method and device of aeronautical data
CN107670148A (en) * 2017-10-27 2018-02-09 上海京颐科技股份有限公司 Transfusion monitoring system and method
CN110445583A (en) * 2019-08-12 2019-11-12 珠海市伟高变频科技有限公司 Method of calibration, check system and the computer readable storage medium of data transmission
CN110445583B (en) * 2019-08-12 2022-05-17 珠海市伟高变频科技有限公司 Data transmission verification method, data transmission verification system and computer-readable storage medium
CN111641481A (en) * 2020-05-25 2020-09-08 北京计算机技术及应用研究所 Data retransmission method based on XAUI interface bus
CN115314458A (en) * 2022-07-05 2022-11-08 深圳手回科技集团有限公司 Message pushing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10631179B2 (en) HARQ frame data structure and method of transmitting and receiving with HARQ in systems using blind detection
CN103368689A (en) Data transmission method and system
US7746786B2 (en) Retransmission control method and device
US20080195912A1 (en) Method of communicatoin
CN103248467B (en) Based on the RDMA communication means of sheet inner connection tube reason
EP3430750A1 (en) Method for partial retransmission
US9622147B2 (en) System and method for performing hybrid automatic repeat request (HARQ) in a WLAN system
CN101841469A (en) Data transmitting method, system and device in Internet of things
CN111837342B (en) Bit error correction for wireless retransmission communication systems
CN110178330B (en) Techniques for communicating data in radio communications
US8335958B2 (en) Method of communication, in particular with capability of frame abortion or retransmission indication, between a transmitter and a receiver based on frames and corresponding communication node
US20080225776A1 (en) Apparatus, methods, and computer program products providing unsolicited HARQ for system information in the downlink
JP2015027100A (en) Transmission control method for packet communication, and packet communication system
CN113132063A (en) Physical layer retransmission control method
CN103312473A (en) Method and device for reducing HARQ (Hybrid Automatic Repeat Request) combination failures
CN106470497A (en) A kind of data transmission method, wireless spread-spectrum technology send and receiving entity
CN104038327A (en) Error retransmission method for FC (fiber channel) network
CN101964703A (en) Data retransmission method and system
CN104410927A (en) Low-redundancy compensation method of video transmission packet loss in erasure channel
JP2016174211A (en) Communication system
CN114095117A (en) Retransmission method and related device for Ethernet error frame
CN104144043B (en) A kind of method that hybrid automatic repeat-request merges
CN115361236A (en) Data transmission consistency checking method, device, equipment and medium
US20120079336A1 (en) Techniques utilizing arq feedback for efficient transmitter buffer usage
CN102088334A (en) 10 gigabit Ethernet data receiving and verification method based on FPGA

Legal Events

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

Application publication date: 20131023

RJ01 Rejection of invention patent application after publication