CN104702371B - Dual link data transmission method based on network reliable transport protocol - Google Patents

Dual link data transmission method based on network reliable transport protocol Download PDF

Info

Publication number
CN104702371B
CN104702371B CN201510017681.7A CN201510017681A CN104702371B CN 104702371 B CN104702371 B CN 104702371B CN 201510017681 A CN201510017681 A CN 201510017681A CN 104702371 B CN104702371 B CN 104702371B
Authority
CN
China
Prior art keywords
data
transmission
link
needing
need
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.)
Expired - Fee Related
Application number
CN201510017681.7A
Other languages
Chinese (zh)
Other versions
CN104702371A (en
Inventor
赵树乔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510017681.7A priority Critical patent/CN104702371B/en
Publication of CN104702371A publication Critical patent/CN104702371A/en
Application granted granted Critical
Publication of CN104702371B publication Critical patent/CN104702371B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a kind of dual link data transmission method based on network reliable transport protocol.The length of one single transmission data is set first, it would be desirable to which the data cutting of transmission is one or more data blocks.Then storing between the device of data of transmission in need and needing receives the device of corresponding data, set up two can reliable serially-transmitted data link.During transmission, transmit, transmitted to the end from tail on second link from the beginning to the end on first link.It is last to be counted and compared on the device for needing to receive corresponding data, so as to realize the reliable and effective transmission of data.In whole transmitting procedure, both links coordinate automatically, and the performance loss caused by link-speeds are inconsistent can be made up automatically, efficiency of transmission is maximized.

Description

Dual link data transmission method based on network reliable transport protocol
Technical field
It is the invention belongs to technical field of data transmission, more particularly to what data transmission credibility and high efficiency were required System.
Technical background
Current internet society, center of gravity progressively towards mobile interchange shift, various novel intelligent mobile devices it is rapid Popularization brings the outburst of mass data.Data are needed at each in addition to past simple storage is called, when more Transmit to reach shared purpose between equipment.In the transmitting procedure of data, the speed and reliability of transmission just seem particularly It is important.Current transmission technology is to realize transmission based on traditional procotol mostly.It is more and more frequent in current data transfer, and And a variety of frameworks, such as wired connection, wireless connection, 3G4G connection, various numerous and diverse communications protocol are included in transmission environment In the environment of mixing.Traditional pattern all seems unable to do what one wishes with regard to some for data reliability and data transmission efficiency aspect .
In consideration of it, for data transfer, exigence, which has, a kind of can provide high-transmission efficiency and ensure reliability Transmission method, to solve the problem of prior art is present and risk.The present invention is used for solving problems, utilizes double-strand The forward and reverse simultaneous transmission data in road, and in whole transmitting procedure, both links coordinate automatically, can make up automatically because of link Performance loss caused by speed is inconsistent, makes efficiency of transmission and reliability all be maximized.
The content of the invention
It is an object of the invention to provide a kind of dual link data transmission method based on network reliable transport protocol, to solve Certainly problems present in prior art.
In order to realize the purpose of the present invention, the invention provides a kind of double-strand circuit-switched data based on network reliable transport protocol Transmission method, methods described comprises the following steps:
A) one single transmission data length is set.
B) the data cutting transmitted will be needed as one or more data blocks according to the single transmission data length set.
If c) last data block data length is not equal to single transmission data length, in last data block Afterbody adds 0 so that its length is equal to single transmission data length.
D) setting up two between the device for storing the device of data of transmission in need and needing and receiving corresponding data can With the link of reliable serially-transmitted data.
E) data length and single transmission data length that need to transmit are sent to the dress for needing to receive corresponding data Put, it is necessary to which the device for receiving corresponding data calculates the data number of blocks after cutting in step b.
F) on the first data link, according to order from first to last successively according to single transmission data length, by number According to the device from the data for storing transmission in need to needing the device for receiving corresponding data to send, each byte inside data block Order it is constant.
G) in Article 2 data link, according to the order from tail to head successively according to single transmission data length, by number According to the device from the data for storing transmission in need to needing the device for receiving corresponding data to send, each byte inside data block Order it is constant.
H) receive data block from two data links on the device for needing to receive corresponding data and count.
I) after the data block of data number of blocks after needing the device for receiving corresponding data to receive cutting in step b, Data block is connected according to original order, and behind remove in last data block that afterbody is unnecessary 0, that is, completes data Reception process.
J) needing the device for receiving corresponding data to send stop signal on two data links gives storage transmission in need Data device.
K) device of the data of storage transmission in need is received stops sending packet after the stop signal in step j, And cut off the link of corresponding transmission data.
The present invention, it is compared with prior art, then forward and reverse using dual link by the segmentation to data block length-specific Transmission, finally counts and compares in receiving terminal, to realize the transmitting of data.In whole transmitting procedure, both links are certainly It is dynamic to coordinate, the performance loss caused by link-speeds are inconsistent can be made up automatically, maximized efficiency of transmission.Compared with existing There is technology, be more applicable complicated network architecture environment, more can reliably ensure the coherence request in data transmission procedure.
Described above is only the preferred embodiment of the present invention, it is noted that come for those skilled in the art Say, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should be regarded as Protection scope of the present invention.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention
Fig. 2 is the schematic diagram of example 1 of the present invention
Fig. 3 is the schematic diagram of example 2 of the present invention
Dotted arrow represents the instruction of transmission in diagram.Solid arrow represents the data of transmission.Transmission is represented in dotted line frame During data sortord.
Instantiation mode
In order to realize the purpose of the present invention, technical scheme and beneficial effect are more clearly understood, right below in conjunction with example example The present invention is further elaborated.It should be understood to instantiation described herein only to explain the present invention, and It is not used in and limits the scope of the invention.
As shown in Fig. 1, the invention provides a kind of dual link data transmission method based on network reliable transport protocol, Methods described comprises the following steps
Step S101, sets a single transmission data length.
Step S102, the data cutting transmitted will be needed as one or more numbers according to the single transmission data length set According to block.
Step S103, if last data block data length is not equal to single transmission data length, at last Individual data block afterbody adds 0 so that its length is equal to single transmission data length.
Step S104, sets up storing between the device of data of transmission in need and the device for needing reception corresponding data Two can reliable serially-transmitted data link.
Described storage it is in need transmission data set can be one or two so that realize two can Link with reliable serially-transmitted data is that the device for the data for connecting a storage transmission in need and one need to receive phase Answer the device of data.
Described dual link data transmission method, the link that can be reliable serially-transmitted data is based on tcp connections The link of data link or reliable serially-transmitted data is the data link based on http connections, can also be reliable The link of serially-transmitted data is people by communication equipment reads data to another person, or reliable serially-transmitted data Link is telegraph network.
Step S105, it would be desirable to which the data length and single transmission data length of transmission, which are sent to, to be needed to receive respective counts According to device, it is necessary to which the device for receiving corresponding data calculates the data number of blocks after cutting in step S102.
Step S106, it is long according to single transmission data successively according to order from first to last on the first data link Degree, by data from the devices of the data for storing transmission in need to needing the device for receiving corresponding data to send, inside data block The order of each byte is constant.
Step S107, it is long according to single transmission data successively according to the order from tail to head in Article 2 data link Degree, by data from the devices of the data for storing transmission in need to needing the device for receiving corresponding data to send, inside data block The order of each byte is constant.
Step S108, receives data block from two data links on the device for needing to receive corresponding data and counts.
Step S109, data number of blocks after needing the device for receiving corresponding data to receive cutting in step S102 After data block, data block is connected according to original order, and behind remove in last data block that afterbody is unnecessary 0, Complete DRP data reception process.
Step S110 is, it is necessary to which the device for receiving corresponding data sends stop signal to the need that are stored with two data links The device of the data to be transmitted.
Step S111, the device of the data of storage transmission in need stops hair after receiving the stop signal in step S110 Packet is sent, and cuts off the link of corresponding transmission data.
As shown in Fig. 2 instantiation
A single pair of list of the invention introduced below, one double to list, and two instantiations are reliable based on network to illustrate The dual link data transmission method of host-host protocol.
Example 1
Assuming that needing the packet transmitted to be 64k sizes, it is long to set single transmission data according to the requirement in step S101 Spend for 4k.16 are divided into according to step S102 requirement 64k packet(64/4)Individual data block.Step S103 benefit 0 Work is not suitable for this example.In this example, it is separate unit storage transmission data set in need using Transmission Control Protocol and needs to receive Two, the device of corresponding data can reliable serially-transmitted data link, such as Fig. 2.The requirement for being first according to S105 sends data The total size and single transmission length of bag.Reception device is according to just can be according to data block size(64k)With segmentation length(4k), can Equally calculate total data block number(16).
Data block is sent from the beginning to the end according to step S106 requirement on link 1, each byte in data block is suitable Sequence is constant.Data block is sent to the end from tail according to step S107 requirement on link 2, also required that every inside data block Individual byte order is constant.Assuming that the transmission rate of link 1 is very fast, totally 10 data blocks are transmitted, link 2 transmits 6.According to step Start to receive data in rapid S108 description, reception device and count, when the device for needing to receive corresponding data receives step Data number of blocks in rapid S102 after cutting(This example is 16)Data block after, data block is connected according to original order, Complete DRP data reception process.
It is consistent as described in step S109.After data receiver is finished, according to step S110 requirement, it is necessary to receive corresponding data Device device of the stop signal to the data for storing transmission in need is sent on two data links.Storage transmission in need The devices of data receive and stop sending packet after stop signal in step S110, and cut off corresponding transmission data Link.As step S111 descriptions are consistent.
In whole transmitting procedure, both links coordinate automatically, and the property caused by link-speeds are inconsistent can be made up automatically The loss of energy, is maximized efficiency of transmission.
Example 2
Assuming that needing the packet transmitted to be 59K sizes, it is long to set single transmission data according to the requirement in step S101 Spend for 4k.15 are divided into according to step S102 requirement 59K packet(59/4 carry is rounded)Individual data block.Because most The size of latter data block wants supplement 0 also big for 4k to the 15th data block less than 4K according to step S103.In this example, For two storage transmission data sets in need, two, device for receiving corresponding data using http protocol and needing can By the link of serially-transmitted data, such as Fig. 3.The total size and single transmission for being first according to S105 requirement transmission packet are long Degree.Reception device is according to just can be according to data block size(59k)With segmentation length(4k), can equally calculate total data block number (15).
Data block is sent from the beginning to the end according to step S106 requirement on link 1, each byte in data block is suitable Sequence is constant.Data block is sent to the end from tail according to step S107 requirement on link 2, also required that every inside data block Individual byte order is constant.Assuming that the transmission rate of link 1 is slower, totally 4 data blocks are transmitted, link 2 transmits 11.According to step Start to receive data and count in rapid S108 description, reception device to transmit, when the device for needing to receive corresponding data connects Receive the data number of blocks after cutting in step S102(This example is 15)Data block after, data block is connected according to original order Get up, and behind remove in last data block that afterbody is unnecessary 0, that is, complete DRP data reception process.
It is consistent as described in step S109.After data receiver is finished, according to step S110 requirement, it is necessary to receive corresponding data Device device of the stop signal to the data for storing transmission in need is sent on two data links.Storage transmission in need The devices of data receive and stop sending packet after stop signal in step S110, and cut off corresponding transmission data Link.As step S111 descriptions are consistent.
In whole transmitting procedure, both links coordinate automatically, and the property caused by link-speeds are inconsistent can be made up automatically The loss of energy, is maximized efficiency of transmission.

Claims (7)

1. a kind of dual link data transmission method based on network reliable transport protocol, step 1 sets a single transmission data Length, step 2 will need the data cutting transmitted as one or more data blocks according to the single transmission data length set, step If rapid 3 last data block data length are not equal to single transmission data length, chased after in last data block afterbody Plus 0 so that its length is equal to single transmission data length, step 4 connects in the device for the data for storing transmission in need with needs Set up between the device for receiving corresponding data two can reliable serially-transmitted data link, step 5 will need the data of transmission Length and single transmission data length are sent to the device for needing to receive corresponding data, it is necessary to receive the device meter of corresponding data The data number of blocks after cutting in step 2 is calculated, step 6 is on the first data link, according to order from first to last successively According to single transmission data length, by data from the devices of the data for storing transmission in need to needing to receive the dress of corresponding data The order for putting each byte inside transmission, data block is constant, and step 7 is in Article 2 data link, according to suitable from tail to head Sequence is successively according to single transmission data length, by data from the devices of the data for storing transmission in need to needing to receive respective counts According to device send, the order of each byte is constant inside data block, and step 8 is on the device for needing to receive corresponding data from two Data link receives data block and counted, and step 9 is after needing the device for receiving corresponding data to receive cutting in step 2 Data number of blocks data block after, data block is connected according to original order, and removes in last data block Afterbody it is unnecessary 0 after, that is, complete DRP data reception process, step 10 needs the device for receiving corresponding data on two data links Device of the stop signal to the data for storing transmission in need is sent, the device that step 12 stores the data of transmission in need is received Stop sending packet after stop signal into step 11, and cut off the link of corresponding transmission data.
2. dual link data transmission method according to claim 1, it is characterised in that in step 4, is storing transmission in need The devices of data can be one, like this two can the link of serially-transmitted data be reliably to connect one to be stored with The device for needing the data of transmission and a device for needing to receive corresponding data.
3. dual link data transmission method according to claim 1, it is characterised in that in step 4, is storing transmission in need The devices of data can be two, like this two can the link of serially-transmitted data be reliably to connect two to be stored with The device for needing the data of transmission and a device for needing to receive corresponding data.
4. dual link data transmission method according to claim 1, it is characterised in that in step 4, reliable serially-transmitted data Link can be the data link based on tcp connections.
5. dual link data transmission method according to claim 1, it is characterised in that in step 4, reliable serially-transmitted data Link can be the data link based on http connections.
6. dual link data transmission method according to claim 1, it is characterised in that in step 4, reliable serially-transmitted data Link can be people by communication equipment read data to another person.
7. dual link data transmission method according to claim 1, it is characterised in that in step 4, reliable serially-transmitted data Link can be telegraph network.
CN201510017681.7A 2015-01-14 2015-01-14 Dual link data transmission method based on network reliable transport protocol Expired - Fee Related CN104702371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510017681.7A CN104702371B (en) 2015-01-14 2015-01-14 Dual link data transmission method based on network reliable transport protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510017681.7A CN104702371B (en) 2015-01-14 2015-01-14 Dual link data transmission method based on network reliable transport protocol

Publications (2)

Publication Number Publication Date
CN104702371A CN104702371A (en) 2015-06-10
CN104702371B true CN104702371B (en) 2017-09-19

Family

ID=53349174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510017681.7A Expired - Fee Related CN104702371B (en) 2015-01-14 2015-01-14 Dual link data transmission method based on network reliable transport protocol

Country Status (1)

Country Link
CN (1) CN104702371B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357364B (en) 2015-07-15 2020-09-25 腾讯科技(深圳)有限公司 Data transmission method, device and system
CN105933240A (en) * 2016-04-27 2016-09-07 长沙丰灼通讯科技有限公司 Wired-wireless-combined high-efficiency data transmission method
CN108616547A (en) * 2016-12-02 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of transmission file
CN110427133A (en) * 2019-07-31 2019-11-08 中国工商银行股份有限公司 Data processing method and data processing equipment
CN111726389A (en) * 2020-05-06 2020-09-29 百富计算机技术(深圳)有限公司 Data downloading method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674152A (en) * 2008-09-08 2010-03-17 华为技术有限公司 Method, device and system for data transmission based on forward error correction (FEC)
CN101789915A (en) * 2009-01-23 2010-07-28 英华达(上海)电子有限公司 Data transmission method and device
CN104065643A (en) * 2014-05-07 2014-09-24 上海文广互动电视有限公司 Method and system of multimedia network transmission based on tree logic
CN104125301A (en) * 2014-08-12 2014-10-29 广州消息树网络科技有限公司 Multi-line data transmission method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009027201A1 (en) * 2009-06-25 2011-03-31 Robert Bosch Gmbh Sensor transmission device and method for transmitting useful data of a sensor to a bus control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674152A (en) * 2008-09-08 2010-03-17 华为技术有限公司 Method, device and system for data transmission based on forward error correction (FEC)
CN101789915A (en) * 2009-01-23 2010-07-28 英华达(上海)电子有限公司 Data transmission method and device
CN104065643A (en) * 2014-05-07 2014-09-24 上海文广互动电视有限公司 Method and system of multimedia network transmission based on tree logic
CN104125301A (en) * 2014-08-12 2014-10-29 广州消息树网络科技有限公司 Multi-line data transmission method

Also Published As

Publication number Publication date
CN104702371A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702371B (en) Dual link data transmission method based on network reliable transport protocol
CN101662418B (en) Detecting method and terminal of file transmission
CN102035692B (en) Method and device for detecting quality of link
RU2002102704A (en) DEVICE AND METHOD FOR REPEATING DATA IN ACCORDANCE WITH THE PROTOCOL OF THE RADIO COMMUNICATION LINK IN THE MOBILE COMMUNICATION SYSTEM
CN104618019A (en) WiFi (wireless fidelity) access system based on visible light transmission and data frame transformation method
NZ586513A (en) A method and a transmitting unit for reducing a risk of transmission stalling between a transmitting unit and a receiving unit in a communication network system
CN101534249A (en) Method for transmitting data on bound link and network equipment thereof
MX2020008163A (en) Wireless device, network node, and methods performed thereby.
CN104426758A (en) Transmission control system, device and method
JP2001308926A (en) Method and system for transmission of data between receiver and transmitter
CN105553795B (en) A method of the transmission standard Ethernet data in Industrial Ethernet
WO2002025898A3 (en) Method and apparatus for reducing transmission overhead in a communication system
CA2419836A1 (en) Data transmission protocol
CN109673021A (en) Service delay determines method
CN105050196A (en) Multi-user communication scheduling system and method based on full duplex relay caching
CN102780633A (en) Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol
CN104640156B (en) A kind of data distribution formula acquisition and storage method based on wire and wireless hybrid network
CN102255790A (en) Method and system for informing congestion control information
RU2010134937A (en) METHOD FOR MAKING DIFFERENT PACKAGE LENGTHS IN DATA TRANSFER PROTOCOL
CN103716293A (en) Low voltage power line spread spectrum communication protocol employing time scale synchronization collision detection method
CN104580171B (en) The transmission method of Transmission Control Protocol, device and system
CN103825682B (en) Efficient and rapid method for transmitting WTB multicast message data
WO2012103829A3 (en) Method, device and system for transmitting data in coaxial network
CN104579993A (en) Implementation method for high-speed communication
CN106455127B (en) A kind of integrated base station and base station stacking system

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170919

Termination date: 20220114