CN109951255A - A kind of data transmission method based on TCP, system, source device and target device - Google Patents

A kind of data transmission method based on TCP, system, source device and target device Download PDF

Info

Publication number
CN109951255A
CN109951255A CN201910237824.3A CN201910237824A CN109951255A CN 109951255 A CN109951255 A CN 109951255A CN 201910237824 A CN201910237824 A CN 201910237824A CN 109951255 A CN109951255 A CN 109951255A
Authority
CN
China
Prior art keywords
data packet
coded data
source
source device
target device
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
CN201910237824.3A
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201910237824.3A priority Critical patent/CN109951255A/en
Publication of CN109951255A publication Critical patent/CN109951255A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a kind of data transmission method based on TCP, it is applied to source device to transfer data to target device, this method comprises: data to be transmitted to be divided into the multiple source datas packet of preset order;Each source data packet is subjected to redundancy encoding and forms multiple coded data packets;Coded data packet is sent to target device according to preset order;If currently transmitted coded data packet does not receive the confirmation message of target device after sending within a preset time, judge that currently transmitted coded data packet has been lost;When the coded data packet lost is not the last one coded data packet, next coded data packet is sent to target device.The present invention also provides a kind of data transmission systems based on TCP, source device, target device.When packet loss occurs in transmission process in the present invention, source device is without retransmitting packet loss data but the next data packet of transmission, the case where being delayed caused by the data packet that can be lost to avoid re-transmission and follow-up data packet is caused to fail.

Description

A kind of data transmission method based on TCP, system, source device and target device
Technical field
The present invention relates to technical field of data transmission more particularly to a kind of data transmission methods based on TCP, system, source Equipment and target device.
Background technique
It is also more and more in the network application software of computer network field exploitation with the high speed development of network technology, It is had gradually become a hot spot for the exploitation that TCP/IP system is core, therefore, the data transmitted in a computer network are increasingly Certain problems in the data for showing diversity and complexity, while transmitting in a network are also protrusion increasingly, such as are passed Defeated speed.
TCP just gives one serial number of each packet to guarantee that packet loss does not occur, while serial number also ensures that being transmitted to target sets Standby packet is received in-order.Then target device sends back to a corresponding confirmation (ACK) to the packet having had successfully received;If source Equipment does not receive confirmation in the reasonable round-trip delay (RTT), then be assumed to have lost will be by for corresponding data packet It is retransmitted.
However, the data versus time transmitted in some networks is more demanding, for example, executing real-time voice and video data industry Business, when target device receives the data of re-transmission, subsequent data are possible to no longer valid.
Summary of the invention
The main purpose of the present invention is to provide fast implement data transmission and avoid retransmitting to lead to the failure of follow-up data packet A kind of data transmission method based on TCP, system, source device and target device.
To achieve the above object, the present invention provides a kind of data transmission method based on TCP, is applied to source device to incite somebody to action Data are transferred to target device, which comprises
Data to be transmitted is divided into the multiple source datas packet of preset order;
Each source data packet is subjected to redundancy encoding and forms multiple coded data packets;
The coded data packet is sent to the target device according to the preset order;
If currently transmitted coded data packet does not receive the confirmation letter of the target device within a preset time after sending When breath, judge that currently transmitted coded data packet has been lost;
When the coded data packet lost is not the last one coded data packet, next coded data packet is sent To the target device.
Preferably, each source data packet size is identical.
Preferably, the size of each coded data packet is identical.
Preferably, the size of each coded data packet is greater than twice of the size of each source data packet.
Preferably, the source device is client, and the target device is server, and the data to be transmitted is multimedia Data.
To achieve the above object, the present invention also provides a source device, the source device includes first processor and first Computer readable storage medium, first computer readable storage medium for store the first computer program, described first Processor is for executing the above-mentioned data transmission method based on TCP of first computer program.
To achieve the above object, the present invention also provides a kind of data transmission methods based on TCP, are applied to target device In, for receiving the data of source device transmission, which is characterized in that the target device receives the data that the source device transmits and is Coded data packet, the coded data packet are that the source device carries out redundancy to the source data packet that need to be sent to the target device Coding is formed, and the data transmission method includes:
The coded data packet that the source device is sent is received according to preset order;
When not receiving the currently transmitted coded data packet of the source device within the preset time, the source is judged The currently transmitted coded data packet of equipment has been lost;
When the coded data packet lost is not the last one coded data packet, into the next coded number of reception According to the reception state of packet;
Obtain next data packet that the source device is sent;
If the coded data packet received be the last one coded data packet, by all coded data packets received into Row decoding;
Decoded data packet is packaged together according to preset order and is sent to application layer.
Preferably, each source data packet size is identical.
Preferably, the size of each coded data packet is identical.
Preferably, the size of each coded data packet is greater than twice of the size of each source data packet.
Preferably, the method also includes:
When the coded data packet lost is the last one coded data packet, all coded datas for will receiving Packet is decoded;
Decoded data packet is packaged together according to preset order and is sent to application layer.
Preferably, the source device is client, and the target device is server.
To achieve the above object, the present invention also provides a kind of target device, the target device include second processor and Second computer readable storage medium storing program for executing, the second computer readable storage medium storing program for executing are described for storing second computer program Second processor realizes the above-mentioned data transmission method based on TCP for executing the second computer program.
To achieve the above object, the present invention also provides a kind of data transmission system, the data transmission system includes above-mentioned Source device and above-mentioned target device.
When the present invention in transmission process by packet loss occur, source device can continue to send next data packet, target Equipment can receive next data packet, without retransmitting packet loss data, can prolong to avoid caused by the data packet for retransmitting loss When and cause follow-up data packet fail the case where.
Detailed description of the invention
Fig. 1 is a kind of data transmission system schematic diagram based on TCP that first embodiment of the invention provides;
Fig. 2 provides first embodiment a kind of flow diagram of the data transmission method based on TCP for the present invention;
Fig. 3 is a kind of flow diagram for data transmission method based on TCP that second embodiment of the invention provides;
Fig. 4 is a kind of flow diagram for data transmission method based on TCP that third embodiment of the invention provides;
Fig. 5 is the schematic diagram of internal structure for the source device that first embodiment of the invention discloses;
Fig. 6 is the schematic diagram of internal structure for the target device that first embodiment of the invention discloses.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
Referring to Fig.1, Fig. 1 is a kind of schematic diagram of the data transmission system 99 based on TCP provided in an embodiment of the present invention.Number According to Transmission system 99 for running the data transmission method based on TCP.Data transmission system 99 includes source device 100 and target Equipment 200.In the present embodiment, source device 100 is client.Target device 200 is server.Source device 100 is set to target The data of standby 200 transmission can be but be not limited to real-time audio and video data.
Fig. 2 is the flow diagram of the data transmission method based on TCP run in source device 100.Data transmission Method is executed by source device 100 and transfers data to target device 200 to realize.Wherein, source device 100 transmits data to target Before equipment 20, source device 100, which with target device 200 is completed three-way handshake and establishes, to be connect.That is, the data transmission method is Based on what is executed on the basis of source device 100 and the well-established connection of target device 200.Source device 100 and target device 200 How completing three-way handshake can carry out according to existing TCP transmission agreement, and details are not described herein.Under the data transmission method includes Face step.
Data to be transmitted is divided into the multiple source datas packet of preset order by step S201.Specifically, source device 100 will It needs to be sent to the data to be transmitted of target device 200 and according to the size of setting is divided into multiple source datas packet and to each source One serial number of data packet, serial number user indicate the transmission sequence of each data packet.In the present embodiment, the size of each source data packet It is identical, that is, the size of each source data packet is fixed.For example, the size of each source data packet is fixed as 2bit.
Each source data packet progress redundancy encoding is formed multiple coded data packets by step S203.Specifically, source device Each source data packet is carried out redundancy encoding by 100.Wherein, source device 100 uses the information code more than the information content than source data packet Source data packet is encoded, coded data packet is formed.It is to be appreciated that twice of the size of coded data packet than source data packet Size it is also big.For example, the size of source data packet is 2bit, then coded data packet is greater than 4bit, for example, 5bit or more Greatly.In the present embodiment, the information number of codes used when source device 100 carries out redundancy encoding to source data packet is identical, that is, each to compile The size of code data packet is identical.Coded data packet also has a serial number, identical as the serial number of corresponding source data packet data.
Step S205 sends coded data packet to target device according to the preset order.Specifically, source device 100 according to The serial number of each source data packet sends coded data packet to target device 200, ensures that coded data packet and source data packet Serial number it is consistent.
Step S207, if currently transmitted coded data packet does not receive target device really within a preset time after sending When recognizing information, judge that currently transmitted coded data packet has been lost.Specifically, one coded data of the every transmission of source device 100 Packet, will start timer just to wait target device 200 to receive currently transmitted coded data packet.When target device 200 receives When to the coded data packet, the confirmation message for indicating to have received currently transmitted data packet is sent to source device 100.When source is set Standby 100 do not receive the confirmation message within the preset time, then judge that currently transmitted coded data packet has been lost.
Step S209 sends next coding when the coded data packet lost is not the last one coded data packet Data packet is to target device.Specifically, if the coded data packet lost is not the last one coded data packet, source device 100 send next data packet to target device 200.If the coded data packet lost is the last one data packet, stop It sends.For example, there is packet loss when being sent to third coded data packet, then source device when coded data packet is altogether by N number of 100 continue to send the 4th coded data packet, and so on, until all coded data packets are sent.
In above-described embodiment, if currently transmitted coded data packet loss, source device 100 directly transmit next coded number According to packet to target device 200, without retransmitting, cause subsequent transmission to the data of target device 200 so as to avoid retransmitting Failure, and transmission speed can be promoted.In above-described embodiment, since coded data packet is using redundancy encoding, a coding Data-bag lost only loses fraction source data, and when decoding still can be reduced to initial data.
Fig. 3 is please referred to, runs on one of target device 200 based on TCP's for what one embodiment of the invention provided The flow chart of data transmission method.The data transmission method includes below step.
Step S301 receives the coded data packet that source device is sent according to preset order.Specifically, in the coded data packet The source data packet that need to be sent to target device 200 including source device 100.The coded data packet is source device 100 to source data packet Carry out redundancy encoding formation.Source data packet is that the data to be transmitted that 100 pairs of need of source device are transferred to target device 200 is divided It cuts.
Step S303 judges when not receiving the currently transmitted coded data packet of source device within the preset time The currently transmitted coded data packet of source device has been lost.Specifically, the currently transmitted coded data packet of source device is that target is set Standby 200 currently need received coded data packet, if target device 200 does not receive within a preset time, judge that source is set Standby 100 currently transmitted coded data packets have been lost.
Step S305, it is next into receiving when the coded data packet lost is not the last one coded data packet The reception state of coded data packet.Specifically, when the coded data packet lost is not the last one data packet, target device 200 are directly entered the state for receiving next coded data packet, and source device 100 can be made to be sent to the number of target device 200 It can be received by target device 200 according to packet.
Step S307 obtains next data packet that source device is sent.
Step S309, if the coded data packet received is the last one coded data packet, all volumes for will receiving Code data packet is decoded.Specifically, target device 200 can will be compiled to when receiving all coded data packets and being decoded Code data packet is reduced to source data packet.Since coded data packet is using redundancy encoding, even if one of data or a small amount of The coded data packet received is decoded the source data packet that still can include by the coded data packet of loss by data-bag lost It decodes and.
Decoded data packet is packaged together according to preset order and is sent to application layer by step S311.
Step S313, when the coded data packet lost is the last one coded data packet, all volumes for will receiving Code data packet is decoded, and executes step S311.
Fig. 4 is please referred to, source device 100 and target device 200 pairs when executing for data transmission method provided by the invention The specific embodiment carried out data transmission between side.The data transmission method includes below step.
Data to be transmitted is divided into the multiple source datas packet of preset order by step S401, source device 100.In the present embodiment In with 6 source data packet D1~D6For be described.
Each source data packet progress redundancy encoding is formed multiple coded data packets by step S403.Wherein, source data packet D1 ~D6Corresponding coded data packet is N1~N6
S405, source device 100 send coded data packet N according to preset order1To target device 200.
S406, when receiving coded data packet N1, the transmission of target device 200 confirmation message R1To source device 100.
S407, when receiving confirmation message R1, the transmission of source device 100 coded data packet N2To target device 200.
S408, when not receiving coded data packet N within a preset time2, target device 200 judges coded data packet N2 It has been lost that, and enter and receive coded data packet N3State, without sending confirmation message R2To source device.
S409, when not receiving confirmation message R within a preset time2, source device 100 judges coded data packet N2It has lost It loses, directly transmits coded data packet N3
It is to be appreciated that source device 100 continues to send coded data packet N according to above method4~N6, target device 200 presses Coded data packet N is continued to according to above method3~N6, details are not described herein.In the present embodiment, N3~N6All set by target Standby 200 receive successfully.
S410, when target device 300 receives the last one data packet R6When, target device 200 is to the coding received Data packet N1,N3~N6It is decoded, available source coded data packet D1~D6
Decoded data packet is packaged together according to preset order and is sent to application layer by S412.
In above-described embodiment, coded data packet N2It loses, source device 100 is without retransmitting coded data packet N2, and after supervention Send coded data packet N3.Target device 200 can directly receive coded data packet N3, without waiting for reception coded data packet N2.Cause This, can be to avoid N3~N6By coded data packet N2Losing influences and Problem of Failure.In addition, since source data packet carries out redundancy volume Code, even if the source data packet lost can also be gone out by decoded back by being lost code segment data packet.
Incorporated by reference to referring to Fig. 1 and Fig. 5, wherein Fig. 5 is the interior of the source device 100 that first embodiment of the invention provides Portion's structural schematic diagram.Source device 100 includes first memory 11, second processor 12, the first bus 13.
Wherein, first memory 11 includes at least a type of readable storage medium storing program for executing, which includes dodging It deposits, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..First Memory 11 can be the internal storage unit of source device 1, such as the hard disk of the source device 100 in some embodiments.First What memory 11 was also possible to be equipped on the External memory equipment of source device 100, such as source device 100 in further embodiments Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, first memory 11 can also both include the internal storage unit of source device 100 It also include External memory equipment.First memory 11 can be not only used for storage and be installed on the application software of source device 100 and each Class data, such as the code etc. of the first computer executable program 01, can be also used for temporarily storing exported or will The data to be exported.
First processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips store in first memory 11 for running Program code or processing data, such as execute program 01 etc..
First bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Fig. 5 Bar thick line indicates, it is not intended that an only bus or a type of bus.
Fig. 5 illustrates only the source device 100 with component 11-13 and the first computer executable program 01, this field Technical staff may include than illustrating more it is understood that the structure shown in Fig. 5 does not constitute the restriction to source device 100 Perhaps more component perhaps combines certain components or different component layouts less.
First memory 11 is for storing executable program.Journey can be performed for executing the first computer in first processor 12 Sequence 01 is to realize above-mentioned data transmission method.
Incorporated by reference to a kind of inside of the target device 200 provided referring to Fig. 1 and Fig. 6, Fig. 6 for first embodiment of the invention Structural schematic diagram.The target device 200 includes second memory 21, second processor 22, the second bus 23.
Wherein, second memory 21 includes at least a type of readable storage medium storing program for executing, which includes dodging It deposits, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Second Memory 21 can be the internal storage unit of second memory 21 in some embodiments.Second memory 21 is for storing the The code etc. of two executive programs 02 can be also used for temporarily storing the data that has exported or will export.
Second processor 22 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips store in second memory 21 for running Program code or processing data, such as execute second computer and execute program 02 etc..
Second bus 23 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Fig. 6 Bar thick line indicates, it is not intended that an only bus or a type of bus.
Fig. 6 illustrates only the target device 200 with component 21-23 and second computer executable program 02, ability Field technique personnel may include than figure it is understood that the structure shown in Fig. 6 does not constitute the restriction to target device 200 Show that less perhaps more components perhaps combine certain components or different component layouts.
Second memory 21 is for storing executable program.The second processor 22 is for executing executable program 02 with reality Existing above-mentioned data transmission method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the computer When program instruction, the process or function being somebody's turn to do according to the embodiment of the present invention are entirely or partly generated.The computer can be general Computer, special purpose computer, computer network or other programmable devices.The computer instruction can store in computer In readable storage medium storing program for executing, or transmit from a computer readable storage medium to another computer readable storage medium, for example, The computer instruction can from a web-site, computer, server or data center by it is wired (such as coaxial cable, Optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, Server or data center are transmitted.The computer readable storage medium can be any available Jie that computer can store Matter either includes the data storage devices such as one or more usable mediums integrated server, data center.The usable medium It can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid-state Hard disk Solid State Disk (SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
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 is drawn Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of device or unit Or communication connection, it can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member for this, show as unit Component may or may not be physical unit, it can it is in one place, or may be distributed over multiple nets On network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the complete of the method that each embodiment of the application provides Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (14)

1. a kind of data transmission method based on TCP, applied to source device to transfer data to target device, feature exists In, which comprises
Data to be transmitted is divided into the multiple source datas packet of preset order;
Each source data packet is subjected to redundancy encoding and forms multiple coded data packets;
The coded data packet is sent to the target device according to the preset order;
If currently transmitted coded data packet does not receive the confirmation message of the target device after sending within a preset time, Judge that currently transmitted coded data packet has been lost;
When the coded data packet lost is not the last one coded data packet, next coded data packet is sent to institute State target device.
2. data transmission method as described in claim 1, which is characterized in that each source data packet size is identical.
3. data transmission method as described in claim 1, which is characterized in that the size of each coded data packet is identical.
4. data transmission method as described in claim 1, which is characterized in that the size of each coded data packet is greater than every Twice of the size of one source data packet.
5. data transmission method as described in claim 1, which is characterized in that the source device is client, and the target is set Standby is server, and the data to be transmitted is multi-medium data.
6. a kind of data transmission method based on TCP is applied in target device, for receiving the data of source device transmission, It is characterized in that, the data that the target device receives the source device transmission are coded data packet, and the coded data packet is institute It states source device to form the source data packet progress redundancy encoding that need to be sent to the target device, the data transmission method packet It includes:
The coded data packet that the source device is sent is received according to preset order;
When not receiving the currently transmitted coded data packet of the source device within the preset time, the source device is judged Currently transmitted coded data packet has been lost;
When the coded data packet lost is not the last one coded data packet, into the next coded data packet of reception Reception state;
Obtain next data packet that the source device is sent;
If the coded data packet received is the last one coded data packet, all coded data packets received are solved Code;
Decoded data packet is packaged together according to preset order and is sent to application layer.
7. data transmission method as claimed in claim 6, which is characterized in that each source data packet size is identical.
8. data transmission method as claimed in claim 6, which is characterized in that the size of each coded data packet is identical.
9. data transmission method as claimed in claim 6, which is characterized in that the size of each coded data packet is greater than every Twice of the size of one source data packet.
10. data transmission method as claimed in claim 6, which is characterized in that the method also includes:
When the coded data packet lost is the last one coded data packet, by all coded data packets received into Row decoding;
Decoded data packet is packaged together according to preset order and is sent to application layer.
11. data transmission method as claimed in claim 6, which is characterized in that the source device is client, and the target is set Standby is server.
12. a source device, the source device includes first processor and the first computer readable storage medium, and feature exists In first computer readable storage medium is for storing the first computer program, and the first processor is for executing institute It states the first computer program and realizes the data transmission method based on TCP described in Claims 1 to 5 any one.
13. a kind of target device, the target device includes second processor and second computer readable storage medium storing program for executing, feature It is, the second computer readable storage medium storing program for executing is for storing second computer program, and the second processor is for executing The second computer program realizes the data transmission method based on TCP described in claim 6~11 any one.
14. a kind of data transmission system, the data transmission system includes source device and target device, which is characterized in that described Source device includes source device described in claim 12, and the target device includes target device described in claim 13.
CN201910237824.3A 2019-03-27 2019-03-27 A kind of data transmission method based on TCP, system, source device and target device Pending CN109951255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910237824.3A CN109951255A (en) 2019-03-27 2019-03-27 A kind of data transmission method based on TCP, system, source device and target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910237824.3A CN109951255A (en) 2019-03-27 2019-03-27 A kind of data transmission method based on TCP, system, source device and target device

Publications (1)

Publication Number Publication Date
CN109951255A true CN109951255A (en) 2019-06-28

Family

ID=67011971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910237824.3A Pending CN109951255A (en) 2019-03-27 2019-03-27 A kind of data transmission method based on TCP, system, source device and target device

Country Status (1)

Country Link
CN (1) CN109951255A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438274A (en) * 2021-05-26 2021-09-24 曙光网络科技有限公司 Data transmission method and device, computer equipment and readable storage medium
WO2022143902A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Data packet transmission method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011124167A2 (en) * 2011-05-11 2011-10-13 华为技术有限公司 Encoding method and device thereof, decoding method and device thereof, encoding and decoding system
US20150236819A1 (en) * 2012-11-08 2015-08-20 Igor Zhovnirnovsky Method & apparatus for improving the performance of tcp and other network protocols in a communications network using proxy servers
CN107276722A (en) * 2017-06-21 2017-10-20 北京奇艺世纪科技有限公司 A kind of data transmission method and system based on UDP
CN107809302A (en) * 2017-08-23 2018-03-16 银江股份有限公司 File metadata redundant transmission, method of reseptance and system under a kind of unreliable link

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011124167A2 (en) * 2011-05-11 2011-10-13 华为技术有限公司 Encoding method and device thereof, decoding method and device thereof, encoding and decoding system
US20150236819A1 (en) * 2012-11-08 2015-08-20 Igor Zhovnirnovsky Method & apparatus for improving the performance of tcp and other network protocols in a communications network using proxy servers
CN107276722A (en) * 2017-06-21 2017-10-20 北京奇艺世纪科技有限公司 A kind of data transmission method and system based on UDP
CN107809302A (en) * 2017-08-23 2018-03-16 银江股份有限公司 File metadata redundant transmission, method of reseptance and system under a kind of unreliable link

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022143902A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Data packet transmission method and related device
CN113438274A (en) * 2021-05-26 2021-09-24 曙光网络科技有限公司 Data transmission method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US5948060A (en) Speeding-up communication rates on links transferring data structures by a method of handing scatter/gather of storage blocks in commanded computer systems
CN109981480A (en) A kind of data transmission method and the first equipment
CN109428773B (en) Communication method and device
CN104995874B (en) Data Transport Protocol with protocol anomaly state
CN104092763B (en) A kind of application program installation kit method for pushing and device
CN110460412A (en) Method and RDMA network interface card for data transmission
CN107528747B (en) Method and device for diagnosing communication state of master station and slave station and computer readable storage medium
CN105007308B (en) A kind of document transmission method under database isolating device environment
CN109951255A (en) A kind of data transmission method based on TCP, system, source device and target device
CN106484652B (en) A kind of more queue communication method and system based on NTB hardware
CN105519057A (en) Multicast transmitting device, multicast receiving device and multicast transmission acknowledgement method
CN104125046A (en) Data transmission method, apparatus and system thereof
CN113992654A (en) High-speed file transmission method, system, equipment and medium
US20210392187A1 (en) Data transmission and network interface controller
US10230498B2 (en) Data acknowledgment to multiple devices
CN106788916B (en) Data transmission method and data transmission device for bus
KR20170117326A (en) Direct memory access control device for at least one processing unit having a random access memory
CN105191198A (en) Data transmission and feedback processing method and apparatus
CN104412559A (en) Wireless usb protocol
CN114116583B (en) Serial communication method of double chips and system with double chips
EP3000025B1 (en) Remote update of a portable storage device
KR20140125311A (en) Apparatus and method for processing traffic using network interface card with multi-core
WO2017063589A1 (en) Data transmission method and apparatus
CN103051559B (en) Data stream reception treating method and apparatus
US9185727B2 (en) Access point for wireless LAN and medium access control method thereof

Legal Events

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

Application publication date: 20190628

RJ01 Rejection of invention patent application after publication